/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: //home/henzagold/adminold/export/js/chunk-bd4b8e58.d5d86a01.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bd4b8e58"],{1283:function(t,e,o){"use strict";o.r(e),o.d(e,"AgGridVue",(function(){return j}));var r=o("2b0e"); /** * vue-class-component v7.2.6 * (c) 2015-present Evan You * @license MIT */function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function s(t){return a(t)||l(t)||u()}function a(t){if(Array.isArray(t)){for(var e=0,o=new Array(t.length);e<t.length;e++)o[e]=t[e];return o}}function l(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function p(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function c(t,e){d(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(o){d(t.prototype,e.prototype,o)})),Object.getOwnPropertyNames(e).forEach((function(o){d(t,e,o)}))}function d(t,e,o){var r=o?Reflect.getOwnMetadataKeys(e,o):Reflect.getOwnMetadataKeys(e);r.forEach((function(r){var n=o?Reflect.getOwnMetadata(r,e,o):Reflect.getOwnMetadata(r,e);o?Reflect.defineMetadata(r,n,t,o):Reflect.defineMetadata(r,n,t)}))}var h={__proto__:[]},f=h instanceof Array;function g(t){return function(e,o,r){var n="function"===typeof e?e:e.constructor;n.__decorators__||(n.__decorators__=[]),"number"!==typeof r&&(r=void 0),n.__decorators__.push((function(e){return t(e,o,r)}))}}function v(t){var e=n(t);return null==t||"object"!==e&&"function"!==e}function y(t,e){var o=e.prototype._init;e.prototype._init=function(){var e=this,o=Object.getOwnPropertyNames(t);if(t.$options.props)for(var r in t.$options.props)t.hasOwnProperty(r)||o.push(r);o.forEach((function(o){Object.defineProperty(e,o,{get:function(){return t[o]},set:function(e){t[o]=e},configurable:!0})}))};var r=new e;e.prototype._init=o;var n={};return Object.keys(r).forEach((function(t){void 0!==r[t]&&(n[t]=r[t])})),n}var m=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var o=t.prototype;Object.getOwnPropertyNames(o).forEach((function(t){if("constructor"!==t)if(m.indexOf(t)>-1)e[t]=o[t];else{var r=Object.getOwnPropertyDescriptor(o,t);void 0!==r.value?"function"===typeof r.value?(e.methods||(e.methods={}))[t]=r.value:(e.mixins||(e.mixins=[])).push({data:function(){return i({},t,r.value)}}):(r.get||r.set)&&((e.computed||(e.computed={}))[t]={get:r.get,set:r.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return y(this,t)}});var n=t.__decorators__;n&&(n.forEach((function(t){return t(e)})),delete t.__decorators__);var s=Object.getPrototypeOf(t.prototype),a=s instanceof r["default"]?s.constructor:r["default"],l=a.extend(e);return E(l,t,a),p()&&c(l,t),l}var w={prototype:!0,arguments:!0,callee:!0,caller:!0};function E(t,e,o){Object.getOwnPropertyNames(e).forEach((function(r){if(!w[r]){var n=Object.getOwnPropertyDescriptor(t,r);if(!n||n.configurable){var i=Object.getOwnPropertyDescriptor(e,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(t,r,i)}}}))}function R(t){return"function"===typeof t?C(t):function(e){return C(e,t)}}R.registerHooks=function(t){m.push.apply(m,s(t))};var O=R;var S="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function _(t,e,o){if(S&&!Array.isArray(t)&&"function"!==typeof t&&"undefined"===typeof t.type){var r=Reflect.getMetadata("design:type",e,o);r!==Object&&(t.type=r)}}function b(t){return void 0===t&&(t={}),function(e,o){_(t,e,o),g((function(e,o){(e.props||(e.props={}))[o]=t}))(e,o)}}var P=o("2c53"),T=function(){function t(){}return t.getComponentType=function(t,e){if("string"===typeof e){var o=this.searchForComponentInstance(t,e);return o?r["default"].extend(o):(console.error("Could not find component with name of "+e+". Is it in Vue.components?"),null)}return e},t.createAndMountComponent=function(t,e,o){var r={data:{params:Object.freeze(t)},parent:o};o.componentDependencies&&o.componentDependencies.forEach((function(t){return r[t]=o[t]}));var n=new e(r);return n.$mount(),n},t.searchForComponentInstance=function(t,e,o,r){void 0===o&&(o=10),void 0===r&&(r=!1);var n=null,i=t.$parent,s=0;while(!n&&i&&i.$options&&++s<o)n=i.$options.components[e],i=i.$parent;return n||r?n:(console.error("Could not find component with name of "+e+". Is it in Vue.components?"),null)},t}(),D=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),A=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},N=function(t){function e(e){var o=t.call(this)||this;return o.parent=e,o}return D(e,t),e.prototype.createWrapper=function(t){var e=this,o=function(o){function n(){return null!==o&&o.apply(this,arguments)||this}return D(n,o),n.prototype.init=function(t){o.prototype.init.call(this,t)},n.prototype.hasMethod=function(t){return null!=r.getFrameworkComponentInstance()[t]},n.prototype.callMethod=function(t,e){var o=this.getFrameworkComponentInstance(),n=r.getFrameworkComponentInstance();return n[t].apply(o,e)},n.prototype.addMethod=function(t,e){r[t]=e},n.prototype.overrideProcessing=function(t){return e.parent.autoParamsRefresh&&"refresh"===t},n.prototype.processMethod=function(t,e){return"refresh"===t&&(this.getFrameworkComponentInstance().params=e[0]),this.hasMethod(t)?this.callMethod(t,e):"refresh"===t},n.prototype.createComponent=function(o){return e.createComponent(t,o)},n}(I),r=new o;return r},e.prototype.createComponent=function(t,e){var o=T.getComponentType(this.parent,t);if(o)return T.createAndMountComponent(e,o,this.parent)},e.prototype.createMethodProxy=function(t,e,o){return function(){return t.overrideProcessing(e)?t.processMethod(e,arguments):t.hasMethod(e)?t.callMethod(e,arguments):(o&&console.warn("AG Grid: Framework component is missing the method "+e+"()"),null)}},e.prototype.destroy=function(){this.parent=null},e=A([Object(P["b"])("frameworkComponentWrapper")],e),e}(P["a"]),I=function(){function t(){}return t.prototype.getGui=function(){return this.component.$el},t.prototype.destroy=function(){this.getFrameworkComponentInstance()&&"function"===typeof this.getFrameworkComponentInstance().destroy&&this.getFrameworkComponentInstance().destroy(),this.component.$destroy()},t.prototype.getFrameworkComponentInstance=function(){return this.component},t.prototype.init=function(t){this.component=this.createComponent(t)},t}(),G=function(){var t={gridOptions:{default:function(){return{}}},rowDataModel:void 0},e={rowDataModel:function(t,e){this.processChanges("rowData",t,e)}};P["d"].ALL_PROPERTIES.forEach((function(o){t[o]={},e[o]=function(t,e){this.processChanges(o,t,e)}}));var o={prop:"rowDataModel",event:"data-model-changed"};return[t,e,o]},F=function(){function t(){}return t.hasChildColumns=function(t){return t&&t.default&&t.default.length>0},t.mapChildColumnDefs=function(e){return e.default.map((function(e){return t.toColDef(e)}))},t.toColDef=function(e){var o=t.createColDefFromGridColumn(e);return e.children&&e.children.length>0&&(o.children=t.getChildColDefs(e.children)),o},t.getChildColDefs=function(e){return e.map((function(e){return t.createColDefFromGridColumn(e)}))},t.createColDefFromGridColumn=function(t){var e={};return Object.assign(e,t.data.attrs),delete e.children,P["c"].BOOLEAN_PROPERTIES.forEach((function(t){var o=e;""===o[t]&&(o[t]=!0)})),e},t}(),L=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),M=function(t){function e(e){var o=t.call(this)||this;return o.parent=e,o}return L(e,t),e.prototype.frameworkComponent=function(t,e){var o=!!T.searchForComponentInstance(this.parent,t,10,!0),r=o?t:null;if(!r&&e&&e[t]){var n=e[t];o=!!T.searchForComponentInstance(this.parent,n,10,!0),r=o?n:null}return r},e.prototype.isFrameworkComponent=function(t){return"object"===typeof t},e}(P["f"]),x=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),H=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},V=G(),W=V[0],k=V[1],B=V[2],j=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.gridCreated=!1,e.isDestroyed=!1,e.gridReadyFired=!1,e.emitRowModel=null,e}var o;return x(e,t),o=e,e.kebabProperty=function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},e.prototype.render=function(t){return t("div")},e.prototype.globalEventListener=function(t,e){if(!this.isDestroyed){"gridReady"===t&&(this.gridReadyFired=!0),this.updateModelIfUsed(t);var r=o.kebabProperty(t);this.$listeners[r]?this.$emit(r,e):this.$listeners[t]&&this.$emit(t,e)}},e.prototype.processChanges=function(t,e,o){if(this.gridCreated){if(this.skipChange(t,e,o))return;var r={};r[t]={currentValue:e,previousValue:o},P["d"].processOnChange(r,this.gridOptions,this.gridOptions.api,this.gridOptions.columnApi)}},e.prototype.mounted=function(){var t=this;this.emitRowModel=this.debounce((function(){t.$emit("data-model-changed",Object.freeze(t.getRowData()))}),20);var e=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:e},modules:this.modules};new P["e"](this.$el,o,r),this.gridCreated=!0},e.prototype.destroyed=function(){this.gridCreated&&(this.gridOptions.api&&this.gridOptions.api.destroy(),this.isDestroyed=!0)},e.prototype.checkForBindingConflicts=function(){var t=this;(t.rowData||this.gridOptions.rowData)&&t.rowDataModel&&console.warn("AG Grid: Using both rowData and rowDataModel. rowData will be ignored.")},e.prototype.getRowData=function(){var t=[];return this.gridOptions.api.forEachNode((function(e){t.push(e.data)})),t},e.prototype.updateModelIfUsed=function(t){this.gridReadyFired&&this.$listeners["data-model-changed"]&&-1!==o.ROW_DATA_EVENTS.indexOf(t)&&this.emitRowModel&&this.emitRowModel()},e.prototype.getRowDataBasedOnBindings=function(){var t=this,e=t.rowDataModel;return e||(t.rowData?t.rowData:t.gridOptions.rowData)},e.prototype.skipChange=function(t,e,o){if(this.gridReadyFired&&"rowData"===t&&this.$listeners["data-model-changed"]){if(e===o)return!0;if(e&&o){var r=e,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},e.prototype.debounce=function(t,e){var o;return function(){var r=function(){t()};window.clearTimeout(o),o=window.setTimeout(r,e)}},e.ROW_DATA_EVENTS=["rowDataChanged","rowDataUpdated","cellValueChanged","rowValueChanged"],H([b(Boolean)],e.prototype,"autoParamsRefresh",void 0),H([b({default:function(){return[]}})],e.prototype,"componentDependencies",void 0),H([b({default:function(){return[]}})],e.prototype,"modules",void 0),e=o=H([Object(P["b"])("agGridVue"),O({props:W,watch:k,model:B})],e),e}(r["default"])},"2c53":function(t,e,o){"use strict";(function(t){ /** * @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(t){return null==t||""===t?null:t}function n(t,e){return void 0===e&&(e=!1),null!=t&&(""!==t||e)}function i(t){return!n(t)}function s(t){return null==t||0===t.length}function a(t){return null!=t&&"function"===typeof t.toString?t.toString():null}function l(t){if(void 0!==t){if(null===t||""===t)return null;if("number"===typeof t)return isNaN(t)?void 0:t;var e=parseInt(t,10);return isNaN(e)?void 0:e}}function u(t){if(void 0!==t)return null!==t&&""!==t&&("boolean"===typeof t?t:/true/i.test(t))}function p(t){if(null!=t&&""!==t)return t}function c(t,e){return null==t&&null==e||(null!=t||null==e)&&((null==t||null!=e)&&t===e)}function d(t,e){var o=t?JSON.stringify(t):null,r=e?JSON.stringify(e):null;return o===r}function h(t,e,o){void 0===o&&(o=!1);var r=null==t,n=null==e;if(t&&t.toNumber&&(t=t.toNumber()),e&&e.toNumber&&(e=e.toNumber()),r&&n)return 0;if(r)return-1;if(n)return 1;function i(t,e){return t>e?1:t<e?-1:0}if("string"!==typeof t)return i(t,e);if(!o)return i(t,e);try{return t.localeCompare(e)}catch(s){return i(t,e)}}function f(t){if(t instanceof Set||t instanceof Map){var e=[];return t.forEach((function(t){return e.push(t)})),e}return Object.values(t)}o.d(e,"a",(function(){return by})),o.d(e,"b",(function(){return rt})),o.d(e,"c",(function(){return _e})),o.d(e,"d",(function(){return Ie})),o.d(e,"e",(function(){return Oy})),o.d(e,"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 t(){this.existingKeys={}}return t.prototype.addExistingKeys=function(t){for(var e=0;e<t.length;e++)this.existingKeys[t[e]]=!0},t.prototype.getUniqueKey=function(t,e){t=a(t);var o=0;while(1){var r=void 0;if(t?(r=t,0!==o&&(r+="_"+o)):e?(r=e,0!==o&&(r+="_"+o)):r=""+o,!this.existingKeys[r])return this.existingKeys[r]=!0,r;o++}},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 */ /** * @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(t,e){null!=t&&(Array.isArray(t)?t.forEach((function(t,o){return e(""+o,t)})):Object.keys(t).forEach((function(o){return e(o,t[o])})))}function m(t){for(var e={},o=Object.keys(t),r=0;r<o.length;r++){var n=o[r],i=t[n];e[n]=i}return e}function C(t){return JSON.parse(JSON.stringify(t))}function w(t,e){if(t){var o=t,r={};return Object.keys(o).forEach((function(t){if(!(e&&e.indexOf(t)>=0)){var n=o[t],i=F(n)&&n.constructor===Object;r[t]=i?w(n):n}})),r}}function E(t,e){return t[e]}function R(t,e,o){t[e]=o}function O(t,e){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];o.forEach((function(o){return S(t,e,o)}))}function S(t,e,o,r){var n=E(t,o);void 0!==n&&R(e,o,r?r(n):n)}function _(t){var e={};return t.filter((function(t){return null!=t})).forEach((function(t){Object.keys(t).forEach((function(t){return e[t]=null}))})),Object.keys(e)}function b(t){if(!t)return[];var e=Object;if("function"===typeof e.values)return e.values(t);var o=[];for(var r in t)t.hasOwnProperty(r)&&t.propertyIsEnumerable(r)&&o.push(t[r]);return o}function P(t,e,o,r){void 0===o&&(o=!0),void 0===r&&(r=!1),n(e)&&y(e,(function(e,n){var i=t[e];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={},t[e]=i)}}F(n)&&F(i)&&!Array.isArray(i)?P(i,n,o,r):(o||void 0!==n)&&(t[e]=n)}}))}function T(t){return i(t)||0===Object.keys(t).length}function D(t,e,o){if(null==t)return o;var r=e.split("."),n=t;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(t,e,o){if(null!=t){var r=e.split("."),n=t;while(r.length>1)if(n=n[r.shift()],null==n)return;n[r[0]]=o}}function N(t){return Object.freeze(t),f(t).forEach((function(t){(F(t)||"function"===typeof t)&&N(t)})),t}function I(t,e,o){if(e&&t){if(!o)return t[e];for(var r=e.split("."),n=t,i=0;i<r.length;i++){if(null==n)return;n=n[r[i]]}return n}}function G(t,e){Object.keys(t).forEach((function(e){var o=t[e];"object"===typeof o&&(t[e]=void 0)}));var o=Object.getPrototypeOf(t),r={};Object.keys(o).forEach((function(t){var n=o[t];if("function"===typeof n){var i=function(){console.warn("AG Grid: "+e+" function "+t+"() 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[t]={value:i,writable:!0}}})),Object.defineProperties(t,r)}function F(t){return"object"===typeof t&&null!==t}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(t,e){M[e]||(t(),M[e]=!0)}function H(t){if(t.name)return t.name;var e=/function\s+([^\(]+)/.exec(t.toString());return e&&2===e.length?e[1].trim():null}function V(t){return!!(t&&t.constructor&&t.call&&t.apply)}function W(t){U(t,400)}var k=[],B=!1;function j(t){k.push(t),B||(B=!0,window.setTimeout((function(){var t=k.slice();k.length=0,B=!1,t.forEach((function(t){return t()}))}),0))}function U(t,e){void 0===e&&(e=0),t.length>0&&window.setTimeout((function(){return t.forEach((function(t){return t()}))}),e)}function z(t,e,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||t.apply(s,n)}),e),a&&t.apply(s,n)}}function K(t,e){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<e||(o=s,t.apply(i,r))}}function Y(t,e,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;(t()||a)&&(e(),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 t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce((function(t,e){return e(t)}),e)}}function X(t){t&&t()}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 t(t,e){if(this.beanWrappers={},this.destroyed=!1,t&&t.beanClasses){this.contextParams=t,this.logger=e,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 t.prototype.getBeanInstances=function(){return f(this.beanWrappers).map((function(t){return t.beanInstance}))},t.prototype.createBean=function(t,e){if(!t)throw Error("Can't wire to bean since it is null");return this.wireBeans([t],e),t},t.prototype.wireBeans=function(t,e){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),n(e)&&t.forEach(e),this.callLifeCycleMethods(t,"postConstructMethods")},t.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),y(this.beanWrappers,(function(e,o){var r;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(r=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var n=t.getBeansForParameters(r,o.bean.name),i=$(o.bean,n);o.beanInstance=i}));var e=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+e)},t.prototype.createBeanWrapper=function(t){var e=t.__agBeanMetaData;if(!e){var o=void 0;return o=t.prototype.constructor?H(t.prototype.constructor):""+t,void console.error("Context item "+o+" is not a bean")}var r={bean:t,beanInstance:null,beanName:e.beanName};this.beanWrappers[e.beanName]=r},t.prototype.autoWireBeans=function(t){var e=this;t.forEach((function(t){e.forEachMetaDataInHierarchy(t,(function(o,r){var n=o.agClassAttributes;n&&n.forEach((function(o){var n=e.lookupBeanInstance(r,o.beanName,o.optional);t[o.attributeName]=n}))}))}))},t.prototype.methodWireBeans=function(t){var e=this;t.forEach((function(t){e.forEachMetaDataInHierarchy(t,(function(o,r){y(o.autowireMethods,(function(o,n){if("agConstructor"!==o){var i=e.getBeansForParameters(n,r);t[o].apply(t,i)}}))}))}))},t.prototype.forEachMetaDataInHierarchy=function(t,e){var o=Object.getPrototypeOf(t);while(null!=o){var r=o.constructor;if(r.hasOwnProperty("__agBeanMetaData")){var n=r.__agBeanMetaData,i=this.getBeanName(r);e(n,i)}o=Object.getPrototypeOf(o)}},t.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var e=t.toString(),o=e.substring(9,e.indexOf("("));return o},t.prototype.getBeansForParameters=function(t,e){var o=this,r=[];return t&&y(t,(function(t,n){var i=o.lookupBeanInstance(e,n);r[Number(t)]=i})),r},t.prototype.lookupBeanInstance=function(t,e,o){if(void 0===o&&(o=!1),"context"===e)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(e))return this.contextParams.providedBeanInstances[e];var r=this.beanWrappers[e];return r?r.beanInstance:(o||console.error("AG Grid: unable to find bean reference "+e+" while initialising "+t),null)},t.prototype.callLifeCycleMethods=function(t,e){var o=this;t.forEach((function(t){return o.callLifeCycleMethodsOnBean(t,e)}))},t.prototype.callLifeCycleMethodsOnBean=function(t,e,o){var r={};this.forEachMetaDataInHierarchy(t,(function(t){var n=t[e];n&&n.forEach((function(t){t!=o&&(r[t]=!0)}))}));var n=Object.keys(r);n.forEach((function(e){return t[e]()}))},t.prototype.getBean=function(t){return this.lookupBeanInstance("getBean",t,!0)},t.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},t.prototype.destroyBean=function(t){t&&this.destroyBeans([t])},t.prototype.destroyBeans=function(t){var e=this;return t?(t.forEach((function(t){e.callLifeCycleMethodsOnBean(t,"preDestroyMethods","destroy");var o=t;"function"===typeof o.destroy&&o.destroy()})),[]):[]},t}();function $(t,e){var o=[null].concat(e),r=t.bind.apply(t,o);return new r}function tt(t,e,o){var r=lt(t.constructor);r.preConstructMethods||(r.preConstructMethods=[]),r.preConstructMethods.push(e)}function et(t,e,o){var r=lt(t.constructor);r.postConstructMethods||(r.postConstructMethods=[]),r.postConstructMethods.push(e)}function ot(t,e,o){var r=lt(t.constructor);r.preDestroyMethods||(r.preDestroyMethods=[]),r.preDestroyMethods.push(e)}function rt(t){return function(e){var o=lt(e);o.beanName=t}}function nt(t){return function(e,o,r){st(e,t,!1,e,o,null)}}function it(t){return function(e,o,r){st(e,t,!0,e,o,null)}}function st(t,e,o,r,n,i){if(null!==e)if("number"!==typeof i){var s=lt(t.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:n,beanName:e,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 at(t){return function(e,o,r){var n,i="function"==typeof e?e:e.constructor;if("number"===typeof r){var s=void 0;o?(n=lt(i),s=o):(n=lt(i),s="agConstructor"),n.autowireMethods||(n.autowireMethods={}),n.autowireMethods[s]||(n.autowireMethods[s]={}),n.autowireMethods[s][r]=t}}}function lt(t){return t.hasOwnProperty("__agBeanMetaData")||(t.__agBeanMetaData={}),t.__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 ut,pt=function(){return pt=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},pt.apply(this,arguments)},ct=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},dt=function(t,e){return function(o,r){e(o,r,t)}},ht=function(){function t(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return t.prototype.setBeans=function(t,e,o,r){if(void 0===r&&(r=null),this.frameworkOverrides=o,this.gridOptionsWrapper=e,r){var n=e.useAsyncEvents();this.addGlobalListener(r,n)}},t.prototype.getListeners=function(t,e,o){var r=e?this.allAsyncListeners:this.allSyncListeners,n=r.get(t);return!n&&o&&(n=new Set,r.set(t,n)),n},t.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},t.prototype.addEventListener=function(t,e,o){void 0===o&&(o=!1),this.getListeners(t,o,!0).add(e)},t.prototype.removeEventListener=function(t,e,o){void 0===o&&(o=!1);var r=this.getListeners(t,o,!1);if(r&&(r.delete(e),0===r.size)){var n=o?this.allAsyncListeners:this.allSyncListeners;n.delete(t)}},t.prototype.addGlobalListener=function(t,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).add(t)},t.prototype.removeGlobalListener=function(t,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).delete(t)},t.prototype.dispatchEvent=function(t){var e=t;this.gridOptionsWrapper&&(e=pt(pt({},t),{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()})),this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},t.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},t.prototype.dispatchToListeners=function(t,e){var o=this,r=t.type,n=function(r){return r.forEach((function(r){e?o.dispatchAsync((function(){return r(t)})):r(t)}))},i=this.getListeners(r,e,!1);i&&n(i);var s=e?this.globalAsyncListeners:this.globalSyncListeners;s.forEach((function(n){e?o.dispatchAsync((function(){return o.frameworkOverrides.dispatchEvent(r,(function(){return n(r,t)}),!0)})):o.frameworkOverrides.dispatchEvent(r,(function(){return n(r,t)}),!0)}))},t.prototype.dispatchAsync=function(t){this.asyncFunctionsQueue.push(t),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},t.prototype.flushAsyncQueue=function(){this.scheduled=!1;var t=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],t.forEach((function(t){return t()}))},ct([dt(0,at("loggerFactory")),dt(1,at("gridOptionsWrapper")),dt(2,at("frameworkOverrides")),dt(3,at("globalEventListener"))],t.prototype,"setBeans",null),t=ct([rt("eventService")],t),t}(),ft=function(){function t(){}return t.ROW_BUFFER_SIZE=10,t.LAYOUT_INTERVAL=500,t.BATCH_WAIT_MILLIS=50,t.EXPORT_TYPE_DRAG_COPY="dragCopy",t.EXPORT_TYPE_CLIPBOARD="clipboard",t.EXPORT_TYPE_EXCEL="excel",t.EXPORT_TYPE_CSV="csv",t.ROW_MODEL_TYPE_INFINITE="infinite",t.ROW_MODEL_TYPE_VIEWPORT="viewport",t.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",t.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",t.ALWAYS="always",t.ONLY_WHEN_GROUPING="onlyWhenGrouping",t.PINNED_TOP="top",t.PINNED_BOTTOM="bottom",t.DOM_LAYOUT_NORMAL="normal",t.DOM_LAYOUT_PRINT="print",t.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",t.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",t.SOURCE_PASTE="paste",t.PINNED_RIGHT="right",t.PINNED_LEFT="left",t.SORT_ASC="asc",t.SORT_DESC="desc",t.INPUT_SELECTOR="input, select, button, textarea",t.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",t.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *",t}();(function(t){t["CommunityCoreModule"]="@ag-grid-community/core",t["CommunityAllModules"]="@ag-grid-community/all",t["InfiniteRowModelModule"]="@ag-grid-community/infinite-row-model",t["ClientSideRowModelModule"]="@ag-grid-community/client-side-row-model",t["CsvExportModule"]="@ag-grid-community/csv-export",t["EnterpriseCoreModule"]="@ag-grid-enterprise/core",t["EnterpriseAllModules"]="@ag-grid-enterprise/all",t["RowGroupingModule"]="@ag-grid-enterprise/row-grouping",t["ColumnToolPanelModule"]="@ag-grid-enterprise/column-tool-panel",t["FiltersToolPanelModule"]="@ag-grid-enterprise/filter-tool-panel",t["MenuModule"]="@ag-grid-enterprise/menu",t["SetFilterModule"]="@ag-grid-enterprise/set-filter",t["MultiFilterModule"]="@ag-grid-enterprise/multi-filter",t["StatusBarModule"]="@ag-grid-enterprise/status-bar",t["SideBarModule"]="@ag-grid-enterprise/side-bar",t["RangeSelectionModule"]="@ag-grid-enterprise/range-selection",t["MasterDetailModule"]="@ag-grid-enterprise/master-detail",t["RichSelectModule"]="@ag-grid-enterprise/rich-select",t["GridChartsModule"]="@ag-grid-enterprise/charts",t["ViewportRowModelModule"]="@ag-grid-enterprise/viewport-row-model",t["ServerSideRowModelModule"]="@ag-grid-enterprise/server-side-row-model",t["ExcelExportModule"]="@ag-grid-enterprise/excel-export",t["ClipboardModule"]="@ag-grid-enterprise/clipboard",t["SparklinesModule"]="@ag-grid-enterprise/sparklines",t["AngularModule"]="@ag-grid-community/angular",t["ReactModule"]="@ag-grid-community/react",t["VueModule"]="@ag-grid-community/vue",t["PolymerModule"]="@ag-grid-community/polymer"})(ut||(ut={})); /** * @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=function(){function t(){}return t.register=function(e,o){void 0===o&&(o=!0),t.modulesMap[e.moduleName]=e,void 0===t.moduleBased?t.moduleBased=o:t.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")},t.registerModules=function(e,o){void 0===o&&(o=!0),e&&e.forEach((function(e){return t.register(e,o)}))},t.assertRegistered=function(e,o){if(this.isRegistered(e))return!0;var r,n=o+e;return r=t.moduleBased?"AG Grid: unable to use "+o+" as module "+e+" 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},t.isRegistered=function(e){return!!t.modulesMap[e]},t.getRegisteredModules=function(){return f(t.modulesMap)},t.isPackageBased=function(){return!t.moduleBased},t.modulesMap={},t}(),vt=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},yt=0,mt=function(){function t(t,e,o,r){this.instanceId=yt++,this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new ht,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=e,this.colId=o,this.primary=r,this.setState(t)}return t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setState=function(t){void 0!==t.sort?t.sort!==ft.SORT_ASC&&t.sort!==ft.SORT_DESC||(this.sort=t.sort):t.initialSort!==ft.SORT_ASC&&t.initialSort!==ft.SORT_DESC||(this.sort=t.initialSort);var e=l(t.sortIndex),o=l(t.initialSortIndex);void 0!==e?null!==e&&(this.sortIndex=e):null!==o&&(this.sortIndex=o);var r=u(t.hide),n=u(t.initialHide);this.visible=void 0!==r?!r:!n,void 0!==t.pinned?this.setPinned(t.pinned):this.setPinned(t.initialPinned);var i=l(t.flex),s=l(t.initialFlex);void 0!==i?this.flex=i:void 0!==s&&(this.flex=s)},t.prototype.setColDef=function(e,o){this.colDef=e,this.userProvidedColDef=o,this.initMinAndMaxWidths(),this.initDotNotation(),this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_COL_DEF_CHANGED,"api"))},t.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},t.prototype.setParent=function(t){this.parent=t},t.prototype.getParent=function(){return this.parent},t.prototype.setOriginalParent=function(t){this.originalParent=t},t.prototype.getOriginalParent=function(){return this.originalParent},t.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},t.prototype.initDotNotation=function(){var t=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=n(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!t,this.tooltipFieldContainsDots=n(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!t},t.prototype.initMinAndMaxWidths=function(){var t=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(t),this.maxWidth=this.columnUtils.calculateColMaxWidth(t)},t.prototype.resetActualWidth=function(t){void 0===t&&(t="api");var e=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(e,t,!0)},t.prototype.isEmptyGroup=function(){return!1},t.prototype.isRowGroupDisplayed=function(t){if(i(this.colDef)||i(this.colDef.showRowGroup))return!1;var e=!0===this.colDef.showRowGroup,o=this.colDef.showRowGroup===t;return e||o},t.prototype.isPrimary=function(){return this.primary},t.prototype.isFilterAllowed=function(){var t=!!this.colDef.filter||!!this.colDef.filterFramework;return t},t.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},t.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},t.prototype.validate=function(){var t=this.colDef;function e(t,e,o){x((function(){o?console.warn(t,o):x((function(){return console.warn(t)}),e)}),e)}var o=this.gridOptionsWrapper.isRowModelDefault();if(o&&!gt.isRegistered(ut.RowGroupingModule)){var r=["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"];r.forEach((function(o){n(t[o])&&(gt.isPackageBased()?e("AG Grid: "+o+" is only valid in ag-grid-enterprise, your column definition should not have "+o,"ColumnRowGroupingMissing"+o):e("AG Grid: "+o+" is only valid with AG Grid Enterprise Module "+ut.RowGroupingModule+" - your column definition should not have "+o,"ColumnRowGroupingMissing"+o))}))}if(gt.isRegistered(ut.RichSelectModule)||"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||(gt.isPackageBased()?e("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):e("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+ut.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()){var i=["rowGroup","rowGroupIndex","pivot","pivotIndex"];i.forEach((function(o){n(t[o])&&e("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&&e("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),t.pinnedRowCellRenderer&&e("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"),t.pinnedRowCellRendererParams&&e("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"),t.pinnedRowCellRendererFramework&&e("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"),t.pinnedRowValueGetter&&e("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")},t.prototype.addEventListener=function(t,e){this.eventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.eventService.removeEventListener(t,e)},t.prototype.createColumnFunctionCallbackParams=function(t){return{node:t,data:t.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},t.prototype.isSuppressNavigable=function(t){if("boolean"===typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"===typeof this.colDef.suppressNavigable){var e=this.createColumnFunctionCallbackParams(t),o=this.colDef.suppressNavigable;return o(e)}return!1},t.prototype.isCellEditable=function(t){return!(t.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(t,this.colDef.editable)},t.prototype.isSuppressFillHandle=function(){return!!u(this.colDef.suppressFillHandle)},t.prototype.isAutoHeight=function(){return!!u(this.colDef.autoHeight)},t.prototype.isAutoHeaderHeight=function(){return!!u(this.colDef.autoHeaderHeight)},t.prototype.isRowDrag=function(t){return this.isColumnFunc(t,this.colDef.rowDrag)},t.prototype.isDndSource=function(t){return this.isColumnFunc(t,this.colDef.dndSource)},t.prototype.isCellCheckboxSelection=function(t){return this.isColumnFunc(t,this.colDef.checkboxSelection)},t.prototype.isSuppressPaste=function(t){return this.isColumnFunc(t,this.colDef?this.colDef.suppressPaste:null)},t.prototype.isResizable=function(){return!!u(this.colDef.resizable)},t.prototype.isColumnFunc=function(t,e){if("boolean"===typeof e)return e;if("function"===typeof e){var o=this.createColumnFunctionCallbackParams(t),r=e;return r(o)}return!1},t.prototype.setMoving=function(e,o){void 0===o&&(o="api"),this.moving=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_MOVING_CHANGED,o))},t.prototype.createColumnEvent=function(t,e){return{type:t,column:this,columns:[this],source:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},t.prototype.isMoving=function(){return this.moving},t.prototype.getSort=function(){return this.sort},t.prototype.setSort=function(e,o){void 0===o&&(o="api"),this.sort!==e&&(this.sort=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_SORT_CHANGED,o)))},t.prototype.setMenuVisible=function(e,o){void 0===o&&(o="api"),this.menuVisible!==e&&(this.menuVisible=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_MENU_VISIBLE_CHANGED,o)))},t.prototype.isMenuVisible=function(){return this.menuVisible},t.prototype.isSortAscending=function(){return this.sort===ft.SORT_ASC},t.prototype.isSortDescending=function(){return this.sort===ft.SORT_DESC},t.prototype.isSortNone=function(){return i(this.sort)},t.prototype.isSorting=function(){return n(this.sort)},t.prototype.getSortIndex=function(){return this.sortIndex},t.prototype.setSortIndex=function(t){this.sortIndex=t},t.prototype.setAggFunc=function(t){this.aggFunc=t},t.prototype.getAggFunc=function(){return this.aggFunc},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.getRight=function(){return this.left+this.actualWidth},t.prototype.setLeft=function(e,o){void 0===o&&(o="api"),this.oldLeft=this.left,this.left!==e&&(this.left=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_LEFT_CHANGED,o)))},t.prototype.isFilterActive=function(){return this.filterActive},t.prototype.setFilterActive=function(e,o,r){void 0===o&&(o="api"),this.filterActive!==e&&(this.filterActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_FILTER_ACTIVE_CHANGED,o)));var n=this.createColumnEvent(t.EVENT_FILTER_CHANGED,o);r&&P(n,r),this.eventService.dispatchEvent(n)},t.prototype.setPinned=function(t){!0===t||t===ft.PINNED_LEFT?this.pinned=ft.PINNED_LEFT:t===ft.PINNED_RIGHT?this.pinned=ft.PINNED_RIGHT:this.pinned=null},t.prototype.setFirstRightPinned=function(e,o){void 0===o&&(o="api"),this.firstRightPinned!==e&&(this.firstRightPinned=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_FIRST_RIGHT_PINNED_CHANGED,o)))},t.prototype.setLastLeftPinned=function(e,o){void 0===o&&(o="api"),this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_LAST_LEFT_PINNED_CHANGED,o)))},t.prototype.isFirstRightPinned=function(){return this.firstRightPinned},t.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},t.prototype.isPinned=function(){return this.pinned===ft.PINNED_LEFT||this.pinned===ft.PINNED_RIGHT},t.prototype.isPinnedLeft=function(){return this.pinned===ft.PINNED_LEFT},t.prototype.isPinnedRight=function(){return this.pinned===ft.PINNED_RIGHT},t.prototype.getPinned=function(){return this.pinned},t.prototype.setVisible=function(e,o){void 0===o&&(o="api");var r=!0===e;this.visible!==r&&(this.visible=r,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_VISIBLE_CHANGED,o)))},t.prototype.isVisible=function(){return this.visible},t.prototype.getColDef=function(){return this.colDef},t.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},t.prototype.getColId=function(){return this.colId},t.prototype.getId=function(){return this.getColId()},t.prototype.getUniqueId=function(){return this.getId()},t.prototype.getDefinition=function(){return this.colDef},t.prototype.getActualWidth=function(){return this.actualWidth},t.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},t.prototype.setAutoHeaderHeight=function(t){var e=t!==this.autoHeaderHeight;return this.autoHeaderHeight=t,e},t.prototype.createBaseColDefParams=function(t){var e={node:t,data:t.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return e},t.prototype.getColSpan=function(t){if(i(this.colDef.colSpan))return 1;var e=this.createBaseColDefParams(t),o=this.colDef.colSpan(e);return Math.max(o,1)},t.prototype.getRowSpan=function(t){if(i(this.colDef.rowSpan))return 1;var e=this.createBaseColDefParams(t),o=this.colDef.rowSpan(e);return Math.max(o,1)},t.prototype.setActualWidth=function(t,e,o){void 0===e&&(e="api"),void 0===o&&(o=!1),null!=this.minWidth&&(t=Math.max(t,this.minWidth)),null!=this.maxWidth&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.actualWidth=t,this.flex&&"flex"!==e&&"gridInitializing"!==e&&(this.flex=null),o||this.fireColumnWidthChangedEvent(e))},t.prototype.fireColumnWidthChangedEvent=function(e){this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_WIDTH_CHANGED,e))},t.prototype.isGreaterThanMax=function(t){return null!=this.maxWidth&&t>this.maxWidth},t.prototype.getMinWidth=function(){return this.minWidth},t.prototype.getMaxWidth=function(){return this.maxWidth},t.prototype.getFlex=function(){return this.flex||0},t.prototype.setFlex=function(t){this.flex!==t&&(this.flex=t)},t.prototype.setMinimum=function(t){void 0===t&&(t="api"),n(this.minWidth)&&this.setActualWidth(this.minWidth,t)},t.prototype.setRowGroupActive=function(e,o){void 0===o&&(o="api"),this.rowGroupActive!==e&&(this.rowGroupActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_ROW_GROUP_CHANGED,o)))},t.prototype.isRowGroupActive=function(){return this.rowGroupActive},t.prototype.setPivotActive=function(e,o){void 0===o&&(o="api"),this.pivotActive!==e&&(this.pivotActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_PIVOT_CHANGED,o)))},t.prototype.isPivotActive=function(){return this.pivotActive},t.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},t.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},t.prototype.setValueActive=function(e,o){void 0===o&&(o="api"),this.aggregationActive!==e&&(this.aggregationActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_VALUE_CHANGED,o)))},t.prototype.isValueActive=function(){return this.aggregationActive},t.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},t.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},t.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},t.prototype.getMenuTabs=function(t){var e=this.getColDef().menuTabs;return null==e&&(e=t),e},t.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},t.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},t.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},t.EVENT_MOVING_CHANGED="movingChanged",t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_WIDTH_CHANGED="widthChanged",t.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",t.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",t.EVENT_VISIBLE_CHANGED="visibleChanged",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_COL_DEF_CHANGED="colDefChanged",t.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",t.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_PIVOT_CHANGED="columnPivotChanged",t.EVENT_VALUE_CHANGED="columnValueChanged",vt([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),vt([nt("columnUtils")],t.prototype,"columnUtils",void 0),vt([et],t.prototype,"initialise",null),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 */ /** * @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(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var o=0;o<t.length;o++){var r=t[o];if(n(r))return r}return null}function wt(t){return null!=t&&t.length>0}function Et(t){if(t&&t.length)return t[t.length-1]}function Rt(t,e,o){return null==t&&null==e||null!=t&&null!=e&&t.length===e.length&&t.every((function(t,r){return o?o(t,e[r]):e[r]===t}))}function Ot(t,e){return Rt(t,e)}function St(t,e){return Rt(t,e)}function _t(t){return t.sort((function(t,e){return t-e}))}function bt(t,e){if(t)for(var o=t.length-2;o>=0;o--){var r=t[o]===e,n=t[o+1]===e;r&&n&&t.splice(o+1,1)}}function Pt(t,e){var o=t.indexOf(e);o>=0&&t.splice(o,1)}function Tt(t,e){e.forEach((function(e){return Pt(t,e)}))}function Dt(t,e,o){t.splice(o,0,e)}function At(t,e,o){if(null!=t&&null!=e)for(var r=e.length-1;r>=0;r--){var n=e[r];Dt(t,n,o)}}function Nt(t,e,o){Tt(t,e),e.slice().reverse().forEach((function(e){return Dt(t,e,o)}))}function It(t,e){return t.indexOf(e)>-1}function Gt(t){return[].concat.apply([],t)}function Ft(t,e){null!=e&&null!=t&&e.forEach((function(e){return t.push(e)}))}function Lt(t){return t.map(a)}function Mt(t,e){if(null!=t)for(var o=t.length-1;o>=0;o--)e(t[o],o)}var xt=Object.freeze({__proto__:null,firstExistingValue:Ct,existsAndNotEmpty:wt,last:Et,areEqual:Rt,compareArrays:Ot,shallowCompare:St,sortNumerically:_t,removeRepeatsFromArray:bt,removeFromArray:Pt,removeAllFromArray:Tt,insertIntoArray:Dt,insertArrayIntoArray:At,moveInArray:Nt,includes:It,flatten:Gt,pushAll:Ft,toStrings:Lt,forEachReverse:Mt}),Ht=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Vt=function(){function t(t,e,o,r){this.displayedChildren=[],this.localEventService=new ht,this.groupId=e,this.instanceId=o,this.providedColumnGroup=t,this.pinned=r}return t.createUniqueId=function(t,e){return t+"_"+e},t.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},t.prototype.getParent=function(){return this.parent},t.prototype.setParent=function(t){this.parent=t},t.prototype.getUniqueId=function(){return t.createUniqueId(this.groupId,this.instanceId)},t.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},t.prototype.isMoving=function(){var t=this.getProvidedColumnGroup().getLeafColumns();return!(!t||0===t.length)&&t.every((function(t){return t.isMoving()}))},t.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(e){e instanceof t&&e.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var e=Et(this.displayedChildren),o=e.getLeft();this.setLeft(o)}else{var r=this.displayedChildren[0].getLeft();this.setLeft(r)}else this.setLeft(null)},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.setLeft=function(e){this.oldLeft=e,this.left!==e&&(this.left=e,this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_LEFT_CHANGED)))},t.prototype.getPinned=function(){return this.pinned},t.prototype.createAgEvent=function(t){return{type:t}},t.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},t.prototype.getGroupId=function(){return this.groupId},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.isChildInThisGroupDeepSearch=function(e){var o=!1;return this.children.forEach((function(r){e===r&&(o=!0),r instanceof t&&r.isChildInThisGroupDeepSearch(e)&&(o=!0)})),o},t.prototype.getActualWidth=function(){var t=0;return this.displayedChildren&&this.displayedChildren.forEach((function(e){t+=e.getActualWidth()})),t},t.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var t=!1;return this.displayedChildren.forEach((function(e){e.isResizable()&&(t=!0)})),t},t.prototype.getMinWidth=function(){var t=0;return this.displayedChildren.forEach((function(e){t+=e.getMinWidth()||0})),t},t.prototype.addChild=function(t){this.children||(this.children=[]),this.children.push(t)},t.prototype.getDisplayedChildren=function(){return this.displayedChildren},t.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},t.prototype.getDisplayedLeafColumns=function(){var t=[];return this.addDisplayedLeafColumns(t),t},t.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},t.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},t.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},t.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},t.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},t.prototype.setExpanded=function(t){this.providedColumnGroup.setExpanded(t)},t.prototype.addDisplayedLeafColumns=function(e){this.displayedChildren.forEach((function(o){o instanceof mt?e.push(o):o instanceof t&&o.addDisplayedLeafColumns(e)}))},t.prototype.addLeafColumns=function(e){this.children.forEach((function(o){o instanceof mt?e.push(o):o instanceof t&&o.addLeafColumns(e)}))},t.prototype.getChildren=function(){return this.children},t.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},t.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},t.prototype.getOriginalColumnGroup=function(){return console.warn("AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead"),this.getProvidedColumnGroup()},t.prototype.getPaddingLevel=function(){var t=this.getParent();return this.isPadding()&&t&&t.isPadding()?1+t.getPaddingLevel():0},t.prototype.calculateDisplayedColumns=function(){var e=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(t.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(r){var n=r instanceof t&&(!r.displayedChildren||!r.displayedChildren.length);if(!n){var i=r.getColumnGroupShow();switch(i){case t.HEADER_GROUP_SHOW_OPEN:o.providedColumnGroup.isExpanded()&&e.displayedChildren.push(r);break;case t.HEADER_GROUP_SHOW_CLOSED:o.providedColumnGroup.isExpanded()||e.displayedChildren.push(r);break;default:e.displayedChildren.push(r);break}}})),this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED))},t.HEADER_GROUP_SHOW_OPEN="open",t.HEADER_GROUP_SHOW_CLOSED="closed",t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",Ht([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(),Wt=function(){function t(t,e,o,r){this.localEventService=new ht,this.expandable=!1,this.colGroupDef=t,this.groupId=e,this.expanded=!!t&&!!t.openByDefault,this.padding=o,this.level=r}return t.prototype.reset=function(t,e){this.colGroupDef=t,this.level=e,this.originalParent=null,this.children=void 0,this.expandable=void 0},t.prototype.setOriginalParent=function(t){this.originalParent=t},t.prototype.getOriginalParent=function(){return this.originalParent},t.prototype.getLevel=function(){return this.level},t.prototype.isVisible=function(){return!!this.children&&this.children.some((function(t){return t.isVisible()}))},t.prototype.isPadding=function(){return this.padding},t.prototype.setExpanded=function(e){this.expanded=void 0!==e&&e;var o={type:t.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(o)},t.prototype.isExpandable=function(){return this.expandable},t.prototype.isExpanded=function(){return this.expanded},t.prototype.getGroupId=function(){return this.groupId},t.prototype.getId=function(){return this.getGroupId()},t.prototype.setChildren=function(t){this.children=t},t.prototype.getChildren=function(){return this.children},t.prototype.getColGroupDef=function(){return this.colGroupDef},t.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},t.prototype.addLeafColumns=function(e){this.children&&this.children.forEach((function(o){o instanceof mt?e.push(o):o instanceof t&&o.addLeafColumns(e)}))},t.prototype.getColumnGroupShow=function(){var t=this.colGroupDef;if(t)return t.columnGroupShow},t.prototype.setupExpandable=function(){var t=this;this.setExpandable(),this.getLeafColumns().forEach((function(e){return e.addEventListener(mt.EVENT_VISIBLE_CHANGED,t.onColumnVisibilityChanged.bind(t))}))},t.prototype.setExpandable=function(){if(!this.isPadding()){for(var e=!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===Vt.HEADER_GROUP_SHOW_OPEN?(e=!0,r=!0):l===Vt.HEADER_GROUP_SHOW_CLOSED?(o=!0,r=!0):(e=!0,o=!0)}}var u=e&&o&&r;if(this.expandable!==u){this.expandable=u;var p={type:t.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(p)}}},t.prototype.findChildrenRemovingPadding=function(){var e=[],o=function(r){r.forEach((function(r){var n=r instanceof t&&r.isPadding();n?o(r.children):e.push(r)}))};return o(this.children),e},t.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},t.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},t.EVENT_EXPANDED_CHANGED="expandedChanged",t.EVENT_EXPANDABLE_CHANGED="expandableChanged",t}(),kt={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},Bt="__ag_Grid_Stop_Propagation",jt=["touchstart","touchend","touchmove","touchcancel"],Ut={}; /** * @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(t){t[Bt]=!0}function Kt(t){return!0===t[Bt]}var Yt=function(){var t={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},e=function(e){if("boolean"===typeof Ut[e])return Ut[e];var o=document.createElement(t[e]||"div");return e="on"+e,Ut[e]=e in o};return e}();function qt(t,e,o){var r=e.target;while(r){var n=t.getDomData(r,o);if(n)return n;r=r.parentElement}return null}function Xt(t,e){t.addEventListener("changed",e),t.addEventListener("paste",e),t.addEventListener("input",e)}function Qt(t,e){return!(!e||!t)&&$t(e).indexOf(t)>=0}function Jt(t){var e=[],o=t.target;while(o)e.push(o),o=o.parentElement;return e}function Zt(t){t.__agGridEventPath=$t(t)}function $t(t){var e=t;return e.path?e.path:e.composedPath?e.composedPath():e.__agGridEventPath?e.__agGridEventPath:Jt(t)}function te(t,e,o,r){var n=It(jt,o),i=n?{passive:!0}:void 0;t&&t.addEventListener&&t.addEventListener(e,o,r,i)}var ee=Object.freeze({__proto__:null,stopPropagationForAgGrid:zt,isStopPropagationForAgGrid:Kt,isEventSupported:Yt,getCtrlForEvent:qt,addChangeListener:Xt,isElementInEventPath:Qt,createEventPath:Jt,addAgGridEventPath:Zt,getEventPath:$t,addSafePassiveEventListener:te}),oe=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},re=function(){function t(){var t=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!t.destroyed}}return t.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},t.prototype.getContext=function(){return this.context},t.prototype.destroy=function(){this.destroyFunctions.forEach((function(t){return t()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:t.EVENT_DESTROYED})},t.prototype.addEventListener=function(t,e){this.localEventService||(this.localEventService=new ht),this.localEventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.localEventService&&this.localEventService.removeEventListener(t,e)},t.prototype.dispatchEventAsync=function(t){var e=this;window.setTimeout((function(){return e.dispatchEvent(t)}),0)},t.prototype.dispatchEvent=function(t){this.localEventService&&this.localEventService.dispatchEvent(t)},t.prototype.addManagedListener=function(t,e,o){var r=this;if(!this.destroyed){t instanceof HTMLElement?te(this.getFrameworkOverrides(),t,e,o):t.addEventListener(e,o);var n=function(){return t.removeEventListener(e,o),r.destroyFunctions=r.destroyFunctions.filter((function(t){return t!==n})),null};return this.destroyFunctions.push(n),n}},t.prototype.addDestroyFunc=function(t){this.isAlive()?this.destroyFunctions.push(t):t()},t.prototype.createManagedBean=function(t,e){var o=this.createBean(t,e);return this.addDestroyFunc(this.destroyBean.bind(this,t,e)),o},t.prototype.createBean=function(t,e,o){return(e||this.getContext()).createBean(t,o)},t.prototype.destroyBean=function(t,e){return(e||this.getContext()).destroyBean(t)},t.prototype.destroyBeans=function(t,e){var o=this;return t&&t.forEach((function(t){return o.destroyBean(t,e)})),[]},t.EVENT_DESTROYED="destroyed",oe([nt("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),oe([nt("context")],t.prototype,"context",void 0),oe([nt("eventService")],t.prototype,"eventService",void 0),oe([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),oe([ot],t.prototype,"destroy",null),t}(),ne=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ie=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},se=function(t,e){return function(o,r){e(o,r,t)}},ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ne(e,t),e.prototype.setBeans=function(t){this.logger=t.create("ColumnFactory")},e.prototype.createColumnTree=function(t,e,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(t,0,e,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(t,e){t instanceof Wt&&t.setupExpandable(),t.setOriginalParent(e)};return this.columnUtils.depthFirstOriginalTreeSearch(null,p,c),{columnTree:p,treeDept:u}},e.prototype.extractExistingTreeData=function(t){var e=[],o=[],r=[];return t&&this.columnUtils.depthFirstOriginalTreeSearch(null,t,(function(t){if(t instanceof Wt){var n=t;o.push(n)}else{var i=t;r.push(i.getId()),e.push(i)}})),{existingCols:e,existingGroups:o,existingColKeys:r}},e.prototype.createForAutoGroups=function(t,e){var o=this;return t.map((function(t){return o.createAutoGroupTreeItem(e,t)}))},e.prototype.createAutoGroupTreeItem=function(t,e){for(var o=this.findDepth(t),r=e,n=o-1;n>=0;n--){var i=new Wt(null,"FAKE_PATH_"+e.getId()+"}_"+n,!0,n);this.context.createBean(i),i.setChildren([r]),r.setOriginalParent(i),r=i}return r},e.prototype.findDepth=function(t){var e=0,o=t;while(o&&o[0]&&o[0]instanceof Wt)e++,o=o[0].getChildren();return e},e.prototype.balanceColumnTree=function(t,e,o,r){for(var n=[],i=0;i<t.length;i++){var s=t[i];if(s instanceof Wt){var a=s,l=this.balanceColumnTree(a.getChildren(),e+1,o,r);a.setChildren(l),n.push(a)}else{for(var u=void 0,p=void 0,c=o-1;c>=e;c--){var d=r.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new Wt(h,d,!0,e);this.context.createBean(f),p&&p.setChildren([f]),p=f,u||(u=p)}if(u&&p){n.push(u);var g=t.some((function(t){return t instanceof Wt}));if(g){p.setChildren([s]);continue}p.setChildren(t);break}n.push(s)}}return n},e.prototype.findMaxDept=function(t,e){for(var o=e,r=0;r<t.length;r++){var n=t[r];if(n instanceof Wt){var i=n,s=this.findMaxDept(i.getChildren(),e+1);o<s&&(o=s)}}return o},e.prototype.recursivelyCreateColumns=function(t,e,o,r,n,i){var s=this;return(t||[]).map((function(t){return s.isColumnGroup(t)?s.createColumnGroup(o,t,e,r,n,i):s.createColumn(o,t,r,n)}))},e.prototype.createColumnGroup=function(t,e,o,r,n,i){var s,a=this.createMergedColGroupDef(e),l=n.getUniqueKey(a.groupId||null,null),u=this.findExistingGroup(e,i);u?(s=u,s.reset(a,o),Pt(i,u)):(s=new Wt(a,l,!1,o),this.context.createBean(s));var p=this.recursivelyCreateColumns(a.children,o+1,t,r,n,i);return s.setChildren(p),s},e.prototype.createMergedColGroupDef=function(t){var e={};return Object.assign(e,this.gridOptionsWrapper.getDefaultColGroupDef()),Object.assign(e,t),this.checkForDeprecatedItems(e),e},e.prototype.createColumn=function(t,e,o,r){var n=this.mergeColDefs(e);this.checkForDeprecatedItems(n);var i=this.findExistingColumn(e,o);if(o&&i&&Pt(o,i),i)i.setColDef(n,e),this.applyColumnState(i,n);else{var s=r.getUniqueKey(n.colId,n.field);i=new mt(n,e,s,t),this.context.createBean(i)}return i},e.prototype.applyColumnState=function(t,e){var o=l(e.flex);void 0!==o&&t.setFlex(o);var r=t.getFlex()<=0;if(r){var n=l(e.width);if(null!=n)t.setActualWidth(n);else{var i=t.getActualWidth();t.setActualWidth(i)}}void 0!==e.sort&&(e.sort==ft.SORT_ASC||e.sort==ft.SORT_DESC?t.setSort(e.sort):t.setSort(void 0));var s=l(e.sortIndex);void 0!==s&&t.setSortIndex(s);var a=u(e.hide);void 0!==a&&t.setVisible(!a),void 0!==e.pinned&&t.setPinned(e.pinned)},e.prototype.findExistingColumn=function(t,e){return(e||[]).find((function(e){var o=e.getUserProvidedColDef();if(!o)return!1;var r=null!=t.colId,n=null!=t.field;return r?e.getId()===t.colId:n?o.field===t.field:o===t}))},e.prototype.findExistingGroup=function(t,e){return e.find((function(e){var o=e.getColGroupDef();if(!o)return!1;var r=null!=t.groupId;return!!r&&e.getId()===t.groupId}))},e.prototype.mergeColDefs=function(t){var e={},o=this.gridOptionsWrapper.getDefaultColDef();P(e,o,!1,!0);var r=t.type;r||(r=o&&o.type),r&&this.assignColumnTypes(r,e),P(e,t,!1,!0);var n=this.gridOptionsWrapper.getAutoGroupColumnDef(),i=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();return t.rowGroup&&n&&i&&P(e,{sort:n.sort,initialSort:n.initialSort},!1,!0),e},e.prototype.assignColumnTypes=function(t,e){var o=[];if(t instanceof Array){var r=t.some((function(t){return"string"!==typeof t}));r?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):o=t}else{if("string"!==typeof t)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");o=t.split(",")}var n=Object.assign({},kt),i=this.gridOptionsWrapper.getColumnTypes()||{};y(i,(function(t,e){t in n?console.warn("AG Grid: the column type '"+t+"' is a default column type and cannot be overridden."):n[t]=e})),o.forEach((function(t){var o=n[t.trim()];o?P(e,o,!1,!0):console.warn("AG Grid: colDef.type '"+t+"' does not correspond to defined gridOptions.columnTypes")}))},e.prototype.checkForDeprecatedItems=function(t){if(t){var e=t;void 0!==e.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!==e.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!==e.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!==e.suppressRowGroup&&console.warn("AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==e.suppressAggregation&&console.warn("AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(e.suppressRowGroup||e.suppressAggregation)&&console.warn("AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),e.displayName&&(console.warn("AG Grid: Found displayName "+e.displayName+", please use headerName instead, displayName is deprecated."),e.headerName=e.displayName)}},e.prototype.isColumnGroup=function(t){return void 0!==t.children},ie([nt("columnUtils")],e.prototype,"columnUtils",void 0),ie([se(0,at("loggerFactory"))],e.prototype,"setBeans",null),e=ie([rt("columnFactory")],e),e}(re),le=function(){function t(){}return t.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",t.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",t.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",t.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",t.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",t.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",t.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",t.EVENT_COLUMN_MOVED="columnMoved",t.EVENT_COLUMN_VISIBLE="columnVisible",t.EVENT_COLUMN_PINNED="columnPinned",t.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",t.EVENT_COLUMN_RESIZED="columnResized",t.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",t.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",t.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",t.EVENT_ROW_GROUP_OPENED="rowGroupOpened",t.EVENT_ROW_DATA_CHANGED="rowDataChanged",t.EVENT_ROW_DATA_UPDATED="rowDataUpdated",t.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",t.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",t.EVENT_CHART_CREATED="chartCreated",t.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",t.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",t.EVENT_CHART_DESTROYED="chartDestroyed",t.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",t.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",t.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",t.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",t.EVENT_MODEL_UPDATED="modelUpdated",t.EVENT_PASTE_START="pasteStart",t.EVENT_PASTE_END="pasteEnd",t.EVENT_FILL_START="fillStart",t.EVENT_FILL_END="fillEnd",t.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",t.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",t.EVENT_CELL_CLICKED="cellClicked",t.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",t.EVENT_CELL_MOUSE_DOWN="cellMouseDown",t.EVENT_CELL_CONTEXT_MENU="cellContextMenu",t.EVENT_CELL_VALUE_CHANGED="cellValueChanged",t.EVENT_CELL_EDIT_REQUEST="cellEditRequest",t.EVENT_ROW_VALUE_CHANGED="rowValueChanged",t.EVENT_CELL_FOCUSED="cellFocused",t.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",t.EVENT_ROW_SELECTED="rowSelected",t.EVENT_SELECTION_CHANGED="selectionChanged",t.EVENT_CELL_KEY_DOWN="cellKeyDown",t.EVENT_CELL_KEY_PRESS="cellKeyPress",t.EVENT_CELL_MOUSE_OVER="cellMouseOver",t.EVENT_CELL_MOUSE_OUT="cellMouseOut",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_MODIFIED="filterModified",t.EVENT_FILTER_OPENED="filterOpened",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",t.EVENT_ROW_CLICKED="rowClicked",t.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",t.EVENT_GRID_READY="gridReady",t.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",t.EVENT_VIEWPORT_CHANGED="viewportChanged",t.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",t.EVENT_FIRST_DATA_RENDERED="firstDataRendered",t.EVENT_DRAG_STARTED="dragStarted",t.EVENT_DRAG_STOPPED="dragStopped",t.EVENT_CHECKBOX_CHANGED="checkboxChanged",t.EVENT_ROW_EDITING_STARTED="rowEditingStarted",t.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",t.EVENT_CELL_EDITING_STARTED="cellEditingStarted",t.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",t.EVENT_BODY_SCROLL="bodyScroll",t.EVENT_BODY_SCROLL_END="bodyScrollEnd",t.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",t.EVENT_PAGINATION_CHANGED="paginationChanged",t.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",t.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",t.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",t.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",t.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",t.EVENT_FLASH_CELLS="flashCells",t.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",t.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",t.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",t.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",t.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",t.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",t.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",t.EVENT_ROW_DRAG_ENTER="rowDragEnter",t.EVENT_ROW_DRAG_MOVE="rowDragMove",t.EVENT_ROW_DRAG_LEAVE="rowDragLeave",t.EVENT_ROW_DRAG_END="rowDragEnd",t.EVENT_POPUP_TO_FRONT="popupToFront",t.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",t.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",t.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",t.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",t.EVENT_KEYBOARD_FOCUS="keyboardFocus",t.EVENT_MOUSE_FOCUS="mouseFocus",t.EVENT_STORE_UPDATED="storeUpdated",t}(),ue=function(){function t(){this.existingIds={}}return t.prototype.getInstanceIdForKey=function(t){var e,o=this.existingIds[t];return e="number"!==typeof o?0:o+1,this.existingIds[t]=e,e},t}(),pe=/[&<>"']/g,ce={"&":"&","<":"<",">":">",'"':""","'":"'"}; /** * @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 de(t){var e=String.fromCharCode;function o(t){var e=[];if(!t)return[];var o,r,n=t.length,i=0;while(i<n)o=t.charCodeAt(i++),o>=55296&&o<=56319&&i<n?(r=t.charCodeAt(i++),56320==(64512&r)?e.push(((1023&o)<<10)+(1023&r)+65536):(e.push(o),i--)):e.push(o);return e}function r(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function n(t,o){return e(t>>o&63|128)}function i(t){if(t>=0&&t<=31&&10!==t){var o=t.toString(16).toUpperCase(),i=o.padStart(4,"0");return"_x"+i+"_"}if(0==(4294967168&t))return e(t);var s="";return 0==(4294965248&t)?s=e(t>>6&31|192):0==(4294901760&t)?(r(t),s=e(t>>12&15|224),s+=n(t,6)):0==(4292870144&t)&&(s=e(t>>18&7|240),s+=n(t,12),s+=n(t,6)),s+=e(63&t|128),s}var s,a=o(t),l=a.length,u=-1,p="";while(++u<l)s=a[u],p+=i(s);return p}function he(t){return null===t||void 0===t?null:t.replace(/([A-Z])/g,(function(t){return"-"+t[0].toLowerCase()}))}function fe(t){return null===t||void 0===t?null:t.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))}function ge(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()}function ve(t,e){if(null==t)return null;var o=t.toString().toString();return e?o:o.replace(pe,(function(t){return ce[t]}))}function ye(t){if(!t||null==t)return null;var e=/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,o=t.replace(e,"$1$4 $2$3$5").replace("."," ").split(" ");return o.map((function(t){return t.substring(0,1).toUpperCase()+(t.length>1?t.substring(1,t.length):"")})).join(" ")}var me=Object.freeze({__proto__:null,utf8_encode:de,camelCaseToHyphen:he,hyphenToCamelCase:fe,capitalise:ge,escapeString:ve,camelCaseToHumanText:ye}); /** * @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(t){var e=new Map;return t.forEach((function(t){return e.set(t[0],t[1])})),e}function we(t,e){var o=new Map;return t.forEach((function(t){return o.set(e(t),t)})),o}function Ee(t){var e=[];return t.forEach((function(t,o){return e.push(o)})),e}var Re=Object.freeze({__proto__:null,convertToMap:Ce,mapById:we,keys:Ee}),Oe=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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},Se=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Oe(arguments[e]));return t},_e=function(){function t(){}return t.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"],t.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"],t.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],t.NUMBER_PROPERTIES=["sortedAt","sortIndex","initialSortIndex","flex","initialFlex","width","initialWidth","minWidth","maxWidth","rowGroupIndex","initialRowGroupIndex","pivotIndex","initialPivotIndex"],t.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"],t.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"],t.ALL_PROPERTIES=Se(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.NUMBER_PROPERTIES,t.FUNCTION_PROPERTIES,t.BOOLEAN_PROPERTIES),t.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],t}(),be=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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},Pe=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(be(arguments[e]));return t},Te=function(){function t(){}return t.STRING_PROPERTIES=["rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType","colResizeDefault"],t.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"],t.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass"],t.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"],t.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"],t.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"],t.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"],t.FUNCTION_PROPERTIES=Pe(t.FUNCTIONAL_PROPERTIES,t.CALLBACK_PROPERTIES),t.ALL_PROPERTIES=Pe(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.NUMBER_PROPERTIES,t.FUNCTION_PROPERTIES,t.BOOLEAN_PROPERTIES),t.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],t}(),De=function(){return De=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},De.apply(this,arguments)},Ae=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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},Ne=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Ae(arguments[e]));return t},Ie=function(){function t(){}return t.getEventCallbacks=function(){return t.EVENT_CALLBACKS||(t.EVENT_CALLBACKS=t.EVENTS.map((function(e){return t.getCallbackForEvent(e)}))),t.EVENT_CALLBACKS},t.copyAttributesToGridOptions=function(e,o,r){"object"!==typeof e&&(e={});var n=e,i=function(t){return"undefined"!==typeof o[t]};return i("groupAggFiltering")&&"function"!==typeof o.groupAggFiltering&&(n.groupAggFiltering=t.toBoolean(o.groupAggFiltering),delete o.groupAggFiltering),Ne(t.ARRAY_PROPERTIES,t.STRING_PROPERTIES,t.OBJECT_PROPERTIES,t.FUNCTION_PROPERTIES,t.getEventCallbacks()).filter(i).forEach((function(t){return n[t]=o[t]})),t.BOOLEAN_PROPERTIES.filter(i).forEach((function(e){return n[e]=t.toBoolean(o[e])})),t.NUMBER_PROPERTIES.filter(i).forEach((function(e){return n[e]=t.toNumber(o[e])})),e},t.getCallbackForEvent=function(t){return!t||t.length<2?t:"on"+t[0].toUpperCase()+t.substr(1)},t.processOnChange=function(e,o,r,n){if(e){var i=De({},e),s=o,a=function(t){return i[t]};a("groupAggFiltering")&&("function"===typeof i.groupAggFiltering?s.groupAggFiltering=i.groupAggFiltering:s.groupAggFiltering=t.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(t.toNumber(i.paginationPageSize.currentValue)),delete i.paginationPageSize),i.rowGroupPanelShow&&(r.setRowGroupPanelShow(i.rowGroupPanelShow.currentValue),delete i.rowGroupPanelShow),i.groupRemoveSingleChildren&&(r.setGroupRemoveSingleChildren(t.toBoolean(i.groupRemoveSingleChildren.currentValue)),delete i.groupRemoveSingleChildren),i.groupRemoveLowestSingleChildren&&(r.setGroupRemoveLowestSingleChildren(t.toBoolean(i.groupRemoveLowestSingleChildren.currentValue)),delete i.groupRemoveLowestSingleChildren),i.suppressRowDrag&&(r.setSuppressRowDrag(t.toBoolean(i.suppressRowDrag.currentValue)),delete i.suppressRowDrag),i.suppressMoveWhenRowDragging&&(r.setSuppressMoveWhenRowDragging(t.toBoolean(i.suppressMoveWhenRowDragging.currentValue)),delete i.suppressMoveWhenRowDragging),i.suppressRowClickSelection&&(r.setSuppressRowClickSelection(t.toBoolean(i.suppressRowClickSelection.currentValue)),delete i.suppressRowClickSelection),i.suppressClipboardPaste&&(r.setSuppressClipboardPaste(t.toBoolean(i.suppressClipboardPaste.currentValue)),delete i.suppressClipboardPaste),i.headerHeight&&(r.setHeaderHeight(t.toNumber(i.headerHeight.currentValue)),delete i.headerHeight),i.pivotHeaderHeight&&(r.setPivotHeaderHeight(t.toNumber(i.pivotHeaderHeight.currentValue)),delete i.pivotHeaderHeight),i.groupHeaderHeight&&(r.setGroupHeaderHeight(t.toNumber(i.groupHeaderHeight.currentValue)),delete i.groupHeaderHeight),i.pivotGroupHeaderHeight&&(r.setPivotGroupHeaderHeight(t.toNumber(i.pivotGroupHeaderHeight.currentValue)),delete i.pivotGroupHeaderHeight),i.floatingFiltersHeight&&(r.setFloatingFiltersHeight(t.toNumber(i.floatingFiltersHeight.currentValue)),delete i.floatingFiltersHeight),i.functionsReadOnly&&(r.setFunctionsReadOnly(t.toBoolean(i.functionsReadOnly.currentValue)),delete i.functionsReadOnly),Ne(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.getEventCallbacks()).filter(a).forEach((function(t){return s[t]=i[t].currentValue})),t.BOOLEAN_PROPERTIES.filter(a).forEach((function(e){return s[e]=t.toBoolean(i[e].currentValue)})),t.NUMBER_PROPERTIES.filter(a).forEach((function(e){return s[e]=t.toNumber(i[e].currentValue)})),i.enableCellTextSelection&&(r.setEnableCellTextSelection(t.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(t.toBoolean(i.pivotMode.currentValue)),delete i.pivotMode);var l=r;Object.keys(i).forEach((function(t){var o="set"+t.charAt(0).toUpperCase()+t.substring(1);l[o]&&l[o](e[t].currentValue)}));var u={type:le.EVENT_COMPONENT_STATE_CHANGED};y(e,(function(t,e){u[t]=e})),r.dispatchEvent(u)}},t.toBoolean=function(t){return"boolean"===typeof t?t:"string"===typeof t&&("TRUE"===t.toUpperCase()||""==t)},t.toNumber=function(t){return"number"===typeof t?t:"string"===typeof t?Number(t):void 0},t.EVENTS=[],t.PUBLIC_EVENTS=[],t.EXCLUDED_INTERNAL_EVENTS=[],t.STRING_PROPERTIES=Te.STRING_PROPERTIES,t.OBJECT_PROPERTIES=Te.OBJECT_PROPERTIES,t.ARRAY_PROPERTIES=Te.ARRAY_PROPERTIES,t.NUMBER_PROPERTIES=Te.NUMBER_PROPERTIES,t.BOOLEAN_PROPERTIES=Te.BOOLEAN_PROPERTIES,t.FUNCTION_PROPERTIES=Te.FUNCTION_PROPERTIES,t.ALL_PROPERTIES=Te.ALL_PROPERTIES,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 */Ie.EVENTS=f(le),Ie.EXCLUDED_INTERNAL_EVENTS=[le.EVENT_SCROLLBAR_WIDTH_CHANGED,le.EVENT_CHECKBOX_CHANGED,le.EVENT_HEIGHT_SCALE_CHANGED,le.EVENT_BODY_HEIGHT_CHANGED,le.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,le.EVENT_SCROLL_VISIBILITY_CHANGED,le.EVENT_COLUMN_HOVER_CHANGED,le.EVENT_FLASH_CELLS,le.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,le.EVENT_DISPLAYED_ROWS_CHANGED,le.EVENT_LEFT_PINNED_WIDTH_CHANGED,le.EVENT_RIGHT_PINNED_WIDTH_CHANGED,le.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,le.EVENT_POPUP_TO_FRONT,le.EVENT_KEYBOARD_FOCUS,le.EVENT_MOUSE_FOCUS,le.EVENT_STORE_UPDATED,le.EVENT_COLUMN_PANEL_ITEM_DRAG_START,le.EVENT_COLUMN_PANEL_ITEM_DRAG_END,le.EVENT_FILL_START,le.EVENT_FILL_END,le.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,le.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,le.EVENT_FULL_WIDTH_ROW_FOCUSED,le.EVENT_HEADER_HEIGHT_CHANGED,le.EVENT_COLUMN_HEADER_HEIGHT_CHANGED],Ie.PUBLIC_EVENTS=Ie.EVENTS.filter((function(t){return!It(Ie.EXCLUDED_INTERNAL_EVENTS,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 Ge,Fe,Le,Me,xe,He,Ve,We,ke,Be,je=function(){function t(){}return t.parse=function(e){if(!e)return null;if(!0===e)return{toolPanels:[t.DEFAULT_COLUMN_COMP,t.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"===typeof e)return t.parse([e]);if(Array.isArray(e)){var o=[];return e.forEach((function(e){var r=t.DEFAULT_BY_KEY[e];r?o.push(r):console.warn("AG Grid: the key "+e+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(t.DEFAULT_BY_KEY).join(","))})),0===o.length?null:{toolPanels:o,defaultToolPanel:o[0].id}}var r={toolPanels:t.parseComponents(e.toolPanels),defaultToolPanel:e.defaultToolPanel,hiddenByDefault:e.hiddenByDefault,position:e.position};return r},t.parseComponents=function(e){var o=[];return e?(e.forEach((function(e){var r=null;if("string"===typeof e){var n=t.DEFAULT_BY_KEY[e];if(!n)return void console.warn("AG Grid: the key "+e+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(t.DEFAULT_BY_KEY).join(","));r=n}else r=e;o.push(r)})),o):o},t.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},t.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},t.DEFAULT_BY_KEY={columns:t.DEFAULT_COLUMN_COMP,filters:t.DEFAULT_FILTER_COMP},t}(),Ue=function(t){var e="function"===typeof Symbol&&Symbol.iterator,o=e&&t[e],r=0;if(o)return o.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"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 ze(){if(Be)return Be;var t,e,o=navigator.userAgent,r=o.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(r[1]))return t=/\brv[ :]+(\d+)/g.exec(o)||[],e=null!=t[1]?parseFloat(t[1]):0,{name:"IE",version:e};if("Chrome"===r[1]&&(t=o.match(/\bOPR|Edge\/(\d+)/),null!=t))return e=null!=t[1]?parseFloat(t[1]):0,{name:"Opera",version:e};r=r[2]?[r[1],r[2]]:[navigator.appName,navigator.appVersion,"-?"],t=o.match(/version\/(\d+)/i),null!=t&&r.splice(1,1,t[1]);var n=r[0];return e=null!=r[1]?parseFloat(r[1]):0,Be={name:n,version:e},Be}function Ke(){return void 0===Fe&&(Fe=/*@cc_on!@*/!!document.documentMode),Fe}function Ye(){return void 0===Le&&(Le=!Ke()&&!!window.StyleMedia),Le}function qe(){return void 0===Ge&&(Ge=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Ge}function Xe(){if(void 0===Me){var t=window;Me=!!t.chrome&&(!!t.chrome.webstore||!!t.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return Me}function Qe(){if(void 0===xe){var t=window;xe="undefined"!==typeof t.InstallTrigger}return xe}function Je(){return void 0===He&&(He=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),He}function Ze(){return void 0===Ve&&(Ve=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),Ve}function $e(){return!qe()||ze().version>=15}function to(t){if(!t)return null;var e=t.tabIndex,o=t.getAttribute("tabIndex");return-1!==e||null!==o&&(""!==o||Qe())?e.toString():null}function eo(){if(!document.body)return-1;var t=1e6,e=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,o=document.createElement("div");document.body.appendChild(o);while(1){var r=2*t;if(o.style.height=r+"px",r>e||o.clientHeight!==r)break;t=r}return document.body.removeChild(o),t}function oo(){return null==ke&&ro(),ke}function ro(){var t=document.body,e=document.createElement("div");e.style.width=e.style.height="100px",e.style.opacity="0",e.style.overflow="scroll",e.style.msOverflowStyle="scrollbar",e.style.position="absolute",t.appendChild(e);var o=e.offsetWidth-e.clientWidth;0===o&&0===e.clientWidth&&(o=null),e.parentNode&&e.parentNode.removeChild(e),null!=o&&(ke=o,We=0===o)}function no(){return null==We&&ro(),We}function io(){var t,e,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(t){return"-"+t+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var a=window.getComputedStyle(n);if("touch"===a.overflowScrolling&&(s=!0),!s)try{for(var l=Ue(r),u=l.next();!u.done;u=l.next())if(o=u.value,"touch"===a[o+"OverflowScrolling"]){s=!0;break}}catch(p){t={error:p}}finally{try{u&&!u.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.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:ze,isBrowserEdge:Ye,isBrowserSafari:qe,isBrowserChrome:Xe,isBrowserFirefox:Qe,isMacOsUserAgent:Je,isIOSUserAgent:Ze,browserSupportsPreventScroll:$e,getTabIndex:to,getMaxDivHeight:eo,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(t,e,o){var r={},n=t.filter((function(t){return!e.some((function(e){return e===t}))}));return n.length>0&&n.forEach((function(t){return r[t]=po(t,o)})),r}function po(t,e,o,r){var n=r?fo:ho,i=e.map((function(e){return{value:e,relevance:n(t.toLowerCase(),e.toLocaleLowerCase())}}));return i.sort((function(t,e){return e.relevance-t.relevance})),o&&(i=i.filter((function(t){return 0!==t.relevance}))),i.map((function(t){return t.value}))}function co(t){var e,o,r,n=t.toLowerCase(),i=new Array(n.length-1);for(e=o=0,r=i.length;o<=r;e=o+=1)i[e]=n.slice(e,e+2);return i}function ho(t,e){if(0===t.length&&0===e.length)return 0;var o,r,n=co(t),i=co(e),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(t,e){for(var o=t.replace(/\s/g,""),r=e.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(t,e){return t.toString().padStart(e,"0")}function yo(t,e){for(var o=[],r=t;r<=e;r++)o.push(r);return o}function mo(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Co(t){return"string"===typeof t&&(t=parseInt(t,10)),"number"===typeof t?Math.floor(t):null}function wo(t,e){for(var o="",r=0;r<e;r++)o+=String.fromCharCode(255&t),t>>>=8;return o}function Eo(t,e,o){return"number"!==typeof t?"":Ro(Math.round(100*t)/100,e,o)}function Ro(t,e,o){return"number"!==typeof t?"":t.toString().replace(".",o).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+e)}function Oo(t){return null==t?null:t.reduce((function(t,e){return t+e}),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(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},_o.apply(this,arguments)},bo=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Po=function(t,e){return function(o,r){e(o,r,t)}},To=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t=[],e=0;e<arguments.length;e++)t=t.concat(To(arguments[e]));return t},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(t){return!0===t||"true"===t}function Mo(t){return"number"==typeof t?t:"string"==typeof t?parseInt(t,10):void 0}function xo(t,e){return t>=0?t:e}function Ho(t,e){var o=parseInt(t,10);return mo(o)&&o>0?o:e}var Vo=function(){function t(){this.propertyEventService=new ht,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var e;return e=t,t.prototype.agWire=function(t,e){this.gridOptions.api=t,this.gridOptions.columnApi=e,this.checkForDeprecated(),this.checkForViolations()},t.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},t.prototype.init=function(){var t=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=je.parse(this.gridOptions.sideBar));var e=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),e),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(t){return"AG Grid: '"+t+"' 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)?gt.assertRegistered(ut.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(e){t.gridOptions.icons&&t.gridOptions.icons[e]&&console.warn("gridOptions.icons."+e+" 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()},t.prototype.checkColumnDefProperties=function(){var t=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(e){var o=Object.getOwnPropertyNames(e),r=Do(_e.ALL_PROPERTIES,_e.FRAMEWORK_PROPERTIES);t.checkProperties(o,r,r,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},t.prototype.checkGridOptionsProperties=function(){var t=Object.getOwnPropertyNames(this.gridOptions),e=Do(Te.ALL_PROPERTIES,Te.FRAMEWORK_PROPERTIES,f(le).map((function(t){return Ie.getCallbackForEvent(t)}))),o=Do(e,["api","columnApi"]);this.checkProperties(t,o,e,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},t.prototype.checkProperties=function(t,e,o,r,n){var i=uo(t,e,o);y(i,(function(t,e){console.warn("ag-grid: invalid "+r+" property '"+t+"' did you mean any of these: "+e.slice(0,8).join(", "))})),Object.keys(i).length>0&&console.warn("ag-grid: to see all the valid "+r+" properties please check: "+n)},t.prototype.mergeGridCommonParams=function(t){var e=this;if(t){var o=function(o){var r=_o(_o({},o),{api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()});return t(r)};return o}return t},t.prototype.getDomDataKey=function(){return this.domDataKey},t.prototype.getDomData=function(t,e){var o=t[this.getDomDataKey()];return o?o[e]:void 0},t.prototype.setDomData=function(t,e,o){var r=this.getDomDataKey(),n=t[r];i(n)&&(n={},t[r]=n),n[e]=o},t.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},t.prototype.isSuppressRowDeselection=function(){return Lo(this.gridOptions.suppressRowDeselection)},t.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},t.prototype.isRowMultiSelectWithClick=function(){return Lo(this.gridOptions.rowMultiSelectWithClick)},t.prototype.getContext=function(){return this.gridOptions.context},t.prototype.isPivotMode=function(){return Lo(this.gridOptions.pivotMode)},t.prototype.isSuppressExpandablePivotGroups=function(){return Lo(this.gridOptions.suppressExpandablePivotGroups)},t.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},t.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},t.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===ft.ROW_MODEL_TYPE_INFINITE},t.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===ft.ROW_MODEL_TYPE_VIEWPORT},t.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===ft.ROW_MODEL_TYPE_SERVER_SIDE},t.prototype.isRowModelDefault=function(){return i(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===ft.ROW_MODEL_TYPE_CLIENT_SIDE},t.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},t.prototype.isSuppressFocusAfterRefresh=function(){return Lo(this.gridOptions.suppressFocusAfterRefresh)},t.prototype.isSuppressBrowserResizeObserver=function(){return Lo(this.gridOptions.suppressBrowserResizeObserver)},t.prototype.isSuppressMaintainUnsortedOrder=function(){return Lo(this.gridOptions.suppressMaintainUnsortedOrder)},t.prototype.isSuppressClearOnFillReduction=function(){return Lo(this.gridOptions.suppressClearOnFillReduction)},t.prototype.isShowToolPanel=function(){return Lo(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},t.prototype.getSideBar=function(){return this.gridOptions.sideBar},t.prototype.isSuppressTouch=function(){return Lo(this.gridOptions.suppressTouch)},t.prototype.isMaintainColumnOrder=function(){return Lo(this.gridOptions.maintainColumnOrder)},t.prototype.isSuppressRowTransform=function(){return Lo(this.gridOptions.suppressRowTransform)},t.prototype.isSuppressColumnStateEvents=function(){return Lo(this.gridOptions.suppressColumnStateEvents)},t.prototype.isAllowDragFromColumnsToolPanel=function(){return Lo(this.gridOptions.allowDragFromColumnsToolPanel)},t.prototype.useAsyncEvents=function(){return!Lo(this.gridOptions.suppressAsyncEvents)},t.prototype.isEnableCellChangeFlash=function(){return Lo(this.gridOptions.enableCellChangeFlash)},t.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},t.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},t.prototype.isGroupSelectsChildren=function(){return Lo(this.gridOptions.groupSelectsChildren)},t.prototype.isSuppressRowHoverHighlight=function(){return Lo(this.gridOptions.suppressRowHoverHighlight)},t.prototype.isColumnHoverHighlight=function(){return Lo(this.gridOptions.columnHoverHighlight)},t.prototype.isGroupSelectsFiltered=function(){return Lo(this.gridOptions.groupSelectsFiltered)},t.prototype.isGroupHideOpenParents=function(){return Lo(this.gridOptions.groupHideOpenParents)},t.prototype.isGroupMaintainOrder=function(){return Lo(this.gridOptions.groupMaintainOrder)},t.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},t.prototype.isColumnsSortingCoupledToGroup=function(){var t,e=this.getAutoGroupColumnDef(),o=this.isRowModelDefault();return o&&!(null===(t=e)||void 0===t?void 0:t.comparator)},t.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("multipleColumns",this.gridOptions.groupDisplayType):Lo(this.gridOptions.groupHideOpenParents)},t.prototype.isGroupUseEntireRow=function(t){return!t&&(!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("groupRows",this.gridOptions.groupDisplayType))},t.prototype.isRowGroupPanelSuppressSort=function(){return Lo(this.gridOptions.rowGroupPanelSuppressSort)},t.prototype.isGroupRowsSticky=function(){return Lo(this.gridOptions.groupRowsSticky)},t.prototype.isGroupSuppressAutoColumn=function(){var t=!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("custom",this.gridOptions.groupDisplayType);return!!t||!!this.gridOptions.treeDataDisplayType&&this.matchesTreeDataDisplayType("custom",this.gridOptions.treeDataDisplayType)},t.prototype.isGroupRemoveSingleChildren=function(){return Lo(this.gridOptions.groupRemoveSingleChildren)},t.prototype.isGroupRemoveLowestSingleChildren=function(){return Lo(this.gridOptions.groupRemoveLowestSingleChildren)},t.prototype.isGroupIncludeFooter=function(){return Lo(this.gridOptions.groupIncludeFooter)},t.prototype.isGroupIncludeTotalFooter=function(){return Lo(this.gridOptions.groupIncludeTotalFooter)},t.prototype.isGroupSuppressBlankHeader=function(){return Lo(this.gridOptions.groupSuppressBlankHeader)},t.prototype.isSuppressRowClickSelection=function(){return Lo(this.gridOptions.suppressRowClickSelection)},t.prototype.isSuppressCellFocus=function(){return Lo(this.gridOptions.suppressCellFocus)},t.prototype.isSuppressMultiSort=function(){return Lo(this.gridOptions.suppressMultiSort)},t.prototype.isAlwaysMultiSort=function(){return Lo(this.gridOptions.alwaysMultiSort)},t.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},t.prototype.isPivotSuppressAutoColumn=function(){return Lo(this.gridOptions.pivotSuppressAutoColumn)},t.prototype.isSuppressDragLeaveHidesColumns=function(){return Lo(this.gridOptions.suppressDragLeaveHidesColumns)},t.prototype.isSuppressRowGroupHidesColumns=function(){return Lo(this.gridOptions.suppressRowGroupHidesColumns)},t.prototype.isSuppressScrollOnNewData=function(){return Lo(this.gridOptions.suppressScrollOnNewData)},t.prototype.isSuppressScrollWhenPopupsAreOpen=function(){return Lo(this.gridOptions.suppressScrollWhenPopupsAreOpen)},t.prototype.isRowDragEntireRow=function(){return Lo(this.gridOptions.rowDragEntireRow)},t.prototype.getRowDragText=function(t){if(t){var e=t.getColDef();if(e.rowDragText)return e.rowDragText}return this.gridOptions.rowDragText},t.prototype.isSuppressRowDrag=function(){return Lo(this.gridOptions.suppressRowDrag)},t.prototype.isRowDragManaged=function(){return Lo(this.gridOptions.rowDragManaged)},t.prototype.isSuppressMoveWhenRowDragging=function(){return Lo(this.gridOptions.suppressMoveWhenRowDragging)},t.prototype.isRowDragMultiRow=function(){return Lo(this.gridOptions.rowDragMultiRow)},t.prototype.getDomLayout=function(){var t=this.gridOptions.domLayout||ft.DOM_LAYOUT_NORMAL,e=[ft.DOM_LAYOUT_PRINT,ft.DOM_LAYOUT_AUTO_HEIGHT,ft.DOM_LAYOUT_NORMAL];return-1===e.indexOf(t)?(x((function(){return console.warn("AG Grid: "+t+" is not valid for DOM Layout, valid values are "+ft.DOM_LAYOUT_NORMAL+", "+ft.DOM_LAYOUT_AUTO_HEIGHT+" and "+ft.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),ft.DOM_LAYOUT_NORMAL):t},t.prototype.isSuppressHorizontalScroll=function(){return Lo(this.gridOptions.suppressHorizontalScroll)},t.prototype.isSuppressMaxRenderedRowRestriction=function(){return Lo(this.gridOptions.suppressMaxRenderedRowRestriction)},t.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return Lo(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},t.prototype.isAlwaysShowHorizontalScroll=function(){return Lo(this.gridOptions.alwaysShowHorizontalScroll)},t.prototype.isAlwaysShowVerticalScroll=function(){return Lo(this.gridOptions.alwaysShowVerticalScroll)},t.prototype.isDebounceVerticalScrollbar=function(){return Lo(this.gridOptions.debounceVerticalScrollbar)},t.prototype.isSuppressLoadingOverlay=function(){return Lo(this.gridOptions.suppressLoadingOverlay)},t.prototype.isSuppressNoRowsOverlay=function(){return Lo(this.gridOptions.suppressNoRowsOverlay)},t.prototype.isSuppressFieldDotNotation=function(){return Lo(this.gridOptions.suppressFieldDotNotation)},t.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},t.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},t.prototype.isFunctionsPassive=function(){return Lo(this.gridOptions.functionsPassive)},t.prototype.isSuppressChangeDetection=function(){return Lo(this.gridOptions.suppressChangeDetection)},t.prototype.isSuppressAnimationFrame=function(){return Lo(this.gridOptions.suppressAnimationFrame)},t.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},t.prototype.isCacheQuickFilter=function(){return Lo(this.gridOptions.cacheQuickFilter)},t.prototype.isUnSortIcon=function(){return Lo(this.gridOptions.unSortIcon)},t.prototype.isSuppressMenuHide=function(){return Lo(this.gridOptions.suppressMenuHide)},t.prototype.isEnterMovesDownAfterEdit=function(){return Lo(this.gridOptions.enterMovesDownAfterEdit)},t.prototype.isEnterMovesDown=function(){return Lo(this.gridOptions.enterMovesDown)},t.prototype.isUndoRedoCellEditing=function(){return Lo(this.gridOptions.undoRedoCellEditing)},t.prototype.getUndoRedoCellEditingLimit=function(){return Mo(this.gridOptions.undoRedoCellEditingLimit)},t.prototype.isEnableCellEditingOnBackspace=function(){return Lo(this.gridOptions.enableCellEditingOnBackspace)},t.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},t.prototype.getRowClass=function(){return this.gridOptions.rowClass},t.prototype.getRowStyleFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowStyle)},t.prototype.getRowClassFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowClass)},t.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},t.prototype.isServerSideInfiniteScroll=function(){return Lo(this.gridOptions.serverSideInfiniteScroll)},t.prototype.getServerSideGroupLevelParamsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getServerSideGroupLevelParams)},t.prototype.getCreateChartContainerFunc=function(){return this.mergeGridCommonParams(this.gridOptions.createChartContainer)},t.prototype.getPopupParent=function(){return this.gridOptions.popupParent},t.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},t.prototype.getPostProcessPopupFunc=function(){return this.mergeGridCommonParams(this.gridOptions.postProcessPopup)},t.prototype.getPaginationNumberFormatterFunc=function(){return this.mergeGridCommonParams(this.gridOptions.paginationNumberFormatter)},t.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},t.prototype.getIsApplyServerSideTransactionFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isApplyServerSideTransaction)},t.prototype.getInitialGroupOrderComparator=function(){var t=this.gridOptions,e=t.initialGroupOrderComparator,o=t.defaultGroupOrderComparator;return e?this.mergeGridCommonParams(e):o?function(t){return o(t.nodeA,t.nodeB)}:void 0},t.prototype.getIsFullWidthCellFunc=function(){var t=this.gridOptions,e=t.isFullWidthRow,o=t.isFullWidthCell;return e?this.mergeGridCommonParams(e):o?function(t){return o(t.rowNode)}:void 0},t.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},t.prototype.isEmbedFullWidthRows=function(){return Lo(this.gridOptions.embedFullWidthRows)||Lo(this.gridOptions.deprecatedEmbedFullWidthRows)},t.prototype.isDetailRowAutoHeight=function(){return Lo(this.gridOptions.detailRowAutoHeight)},t.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},t.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},t.prototype.getApi=function(){return this.gridOptions.api},t.prototype.getColumnApi=function(){return this.gridOptions.columnApi},t.prototype.isReadOnlyEdit=function(){return Lo(this.gridOptions.readOnlyEdit)},t.prototype.isImmutableData=function(){var t=null!=this.gridOptions.getRowId,e=Lo(this.gridOptions.immutableData),o=Lo(this.gridOptions.resetRowDataOnUpdate);return!o&&(t||e)},t.prototype.isEnsureDomOrder=function(){return Lo(this.gridOptions.ensureDomOrder)},t.prototype.isEnableCharts=function(){return!!Lo(this.gridOptions.enableCharts)&>.assertRegistered(ut.GridChartsModule,"enableCharts")},t.prototype.isEnableChartToolPanelsButton=function(){return Lo(this.gridOptions.enableChartToolPanelsButton)},t.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},t.prototype.isSingleClickEdit=function(){return Lo(this.gridOptions.singleClickEdit)},t.prototype.isSuppressClickEdit=function(){return Lo(this.gridOptions.suppressClickEdit)},t.prototype.isStopEditingWhenCellsLoseFocus=function(){return Lo(this.gridOptions.stopEditingWhenCellsLoseFocus)},t.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},t.prototype.getMaxConcurrentDatasourceRequests=function(){var t=Mo(this.gridOptions.maxConcurrentDatasourceRequests);return null==t?2:t<=0?void 0:t},t.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},t.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},t.prototype.getPaginationPageSize=function(){return Mo(this.gridOptions.paginationPageSize)},t.prototype.isPaginateChildRows=function(){var t=this.isGroupRemoveSingleChildren()||this.isGroupRemoveLowestSingleChildren();return!!t||Lo(this.gridOptions.paginateChildRows)},t.prototype.getCacheBlockSize=function(){return Ho(this.gridOptions.cacheBlockSize)},t.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},t.prototype.getServerSideInitialRowCount=function(){var t=this.gridOptions.serverSideInitialRowCount;return"number"===typeof t&&t>0?t:1},t.prototype.isPurgeClosedRowNodes=function(){return Lo(this.gridOptions.purgeClosedRowNodes)},t.prototype.isSuppressPaginationPanel=function(){return Lo(this.gridOptions.suppressPaginationPanel)},t.prototype.getRowData=function(){return this.gridOptions.rowData},t.prototype.isEnableRtl=function(){return Lo(this.gridOptions.enableRtl)},t.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},t.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},t.prototype.isAngularCompileRows=function(){return Lo(this.gridOptions.angularCompileRows)},t.prototype.isAngularCompileFilters=function(){return Lo(this.gridOptions.angularCompileFilters)},t.prototype.isDebug=function(){return Lo(this.gridOptions.debug)},t.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},t.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},t.prototype.getDatasource=function(){return this.gridOptions.datasource},t.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},t.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},t.prototype.isAccentedSort=function(){return Lo(this.gridOptions.accentedSort)},t.prototype.isEnableBrowserTooltips=function(){return Lo(this.gridOptions.enableBrowserTooltips)},t.prototype.isEnableCellExpressions=function(){return Lo(this.gridOptions.enableCellExpressions)},t.prototype.isEnableGroupEdit=function(){return Lo(this.gridOptions.enableGroupEdit)},t.prototype.isSuppressMiddleClickScrolls=function(){return Lo(this.gridOptions.suppressMiddleClickScrolls)},t.prototype.isPreventDefaultOnContextMenu=function(){return Lo(this.gridOptions.preventDefaultOnContextMenu)},t.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return Lo(this.gridOptions.suppressPreventDefaultOnMouseWheel)},t.prototype.isSuppressColumnVirtualisation=function(){return Lo(this.gridOptions.suppressColumnVirtualisation)},t.prototype.isSuppressRowVirtualisation=function(){return Lo(this.gridOptions.suppressRowVirtualisation)},t.prototype.isSuppressContextMenu=function(){return Lo(this.gridOptions.suppressContextMenu)},t.prototype.isAllowContextMenuWithControlKey=function(){return Lo(this.gridOptions.allowContextMenuWithControlKey)},t.prototype.isSuppressCopyRowsToClipboard=function(){return Lo(this.gridOptions.suppressCopyRowsToClipboard)},t.prototype.isSuppressCopySingleCellRanges=function(){return Lo(this.gridOptions.suppressCopySingleCellRanges)},t.prototype.isCopyHeadersToClipboard=function(){return Lo(this.gridOptions.copyHeadersToClipboard)},t.prototype.isCopyGroupHeadersToClipboard=function(){return Lo(this.gridOptions.copyGroupHeadersToClipboard)},t.prototype.isSuppressClipboardPaste=function(){return Lo(this.gridOptions.suppressClipboardPaste)},t.prototype.isSuppressLastEmptyLineOnPaste=function(){return Lo(this.gridOptions.suppressLastEmptyLineOnPaste)},t.prototype.isPagination=function(){return Lo(this.gridOptions.pagination)},t.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return Lo(this.gridOptions.suppressEnterpriseResetOnNewColumns)},t.prototype.getProcessDataFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processDataFromClipboard)},t.prototype.getAsyncTransactionWaitMillis=function(){return n(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:ft.BATCH_WAIT_MILLIS},t.prototype.isSuppressMovableColumns=function(){return Lo(this.gridOptions.suppressMovableColumns)},t.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&Lo(this.gridOptions.animateRows)},t.prototype.isSuppressColumnMoveAnimation=function(){return Lo(this.gridOptions.suppressColumnMoveAnimation)},t.prototype.isSuppressAggFuncInHeader=function(){return Lo(this.gridOptions.suppressAggFuncInHeader)},t.prototype.isSuppressAggAtRootLevel=function(){return Lo(this.gridOptions.suppressAggAtRootLevel)},t.prototype.isSuppressAggFilteredOnly=function(){var t=void 0!==this.getGroupAggFiltering();return t||Lo(this.gridOptions.suppressAggFilteredOnly)},t.prototype.isRemovePivotHeaderRowWhenSingleValueColumn=function(){return Lo(this.gridOptions.removePivotHeaderRowWhenSingleValueColumn)},t.prototype.isShowOpenedGroup=function(){return Lo(this.gridOptions.showOpenedGroup)},t.prototype.isReactUi=function(){return Lo(this.gridOptions.reactUi)},t.prototype.isSuppressReactUi=function(){return Lo(this.gridOptions.suppressReactUi)},t.prototype.isEnableRangeSelection=function(){return gt.isRegistered(ut.RangeSelectionModule)&&Lo(this.gridOptions.enableRangeSelection)},t.prototype.isEnableRangeHandle=function(){return Lo(this.gridOptions.enableRangeHandle)},t.prototype.isEnableFillHandle=function(){return Lo(this.gridOptions.enableFillHandle)},t.prototype.getFillHandleDirection=function(){var t=this.gridOptions.fillHandleDirection;return t?"x"!==t&&"y"!==t&&"xy"!==t?(x((function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")}),"warn invalid fill direction"),"xy"):t:"xy"},t.prototype.getFillOperation=function(){return this.mergeGridCommonParams(this.gridOptions.fillOperation)},t.prototype.isSuppressMultiRangeSelection=function(){return Lo(this.gridOptions.suppressMultiRangeSelection)},t.prototype.isPaginationAutoPageSize=function(){return Lo(this.gridOptions.paginationAutoPageSize)},t.prototype.isRememberGroupStateWhenNewData=function(){return Lo(this.gridOptions.rememberGroupStateWhenNewData)},t.prototype.getIcons=function(){return this.gridOptions.icons},t.prototype.getGroupAggFiltering=function(){var t=this.gridOptions.groupAggFiltering;return"function"===typeof t?this.mergeGridCommonParams(t):Lo(t)?function(){return!0}:void 0},t.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},t.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},t.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},t.prototype.isMasterDetail=function(){var t=Lo(this.gridOptions.masterDetail);return!!t&>.assertRegistered(ut.MasterDetailModule,"masterDetail")},t.prototype.isKeepDetailRows=function(){return Lo(this.gridOptions.keepDetailRows)},t.prototype.getKeepDetailRowsCount=function(){var t=this.gridOptions.keepDetailRowsCount;return n(t)&&t>0?this.gridOptions.keepDetailRowsCount:Fo},t.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},t.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},t.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},t.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},t.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},t.prototype.isSuppressAutoSize=function(){return Lo(this.gridOptions.suppressAutoSize)},t.prototype.isEnableCellTextSelection=function(){return Lo(this.gridOptions.enableCellTextSelection)},t.prototype.isSuppressParentsInRowNodes=function(){return Lo(this.gridOptions.suppressParentsInRowNodes)},t.prototype.isSuppressClipboardApi=function(){return Lo(this.gridOptions.suppressClipboardApi)},t.prototype.isFunctionsReadOnly=function(){return Lo(this.gridOptions.functionsReadOnly)},t.prototype.isEnableCellTextSelect=function(){return Lo(this.gridOptions.enableCellTextSelection)},t.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},t.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},t.prototype.getDefaultExportParams=function(t){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default"+ge(t)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===t&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===t&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},t.prototype.isSuppressCsvExport=function(){return Lo(this.gridOptions.suppressCsvExport)},t.prototype.isAllowShowChangeAfterFilter=function(){return Lo(this.gridOptions.allowShowChangeAfterFilter)},t.prototype.isSuppressExcelExport=function(){return Lo(this.gridOptions.suppressExcelExport)},t.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return Lo(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},t.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},t.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},t.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isServerSideGroupOpenByDefault)},t.prototype.getIsGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isGroupOpenByDefault)},t.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},t.prototype.getGroupRowAggFunc=function(){var t=this.gridOptions,e=t.getGroupRowAgg,o=t.groupRowAggNodes;return e?this.mergeGridCommonParams(e):o?function(t){return o(t.nodes)}:void 0},t.prototype.getContextMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getContextMenuItems)},t.prototype.getMainMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getMainMenuItems)},t.prototype.getRowIdFunc=function(){var t=this.gridOptions,e=t.getRowId,o=t.getRowNodeId;return e?this.mergeGridCommonParams(e):o?function(t){return o(t.data)}:void 0},t.prototype.getNavigateToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextHeader)},t.prototype.getTabToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextHeader)},t.prototype.getNavigateToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextCell)},t.prototype.getTabToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextCell)},t.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},t.prototype.isTreeData=function(){var t=Lo(this.gridOptions.treeData);return!!t&>.assertRegistered(ut.RowGroupingModule,"Tree Data")},t.prototype.isValueCache=function(){return Lo(this.gridOptions.valueCache)},t.prototype.isValueCacheNeverExpires=function(){return Lo(this.gridOptions.valueCacheNeverExpires)},t.prototype.isDeltaSort=function(){return Lo(this.gridOptions.deltaSort)},t.prototype.isAggregateOnlyChangedColumns=function(){return Lo(this.gridOptions.aggregateOnlyChangedColumns)},t.prototype.getProcessPivotResultColDefFunc=function(){return this.gridOptions.processPivotResultColDef||this.gridOptions.processSecondaryColDef},t.prototype.getProcessPivotResultColGroupDefFunc=function(){return this.gridOptions.processPivotResultColGroupDef||this.gridOptions.processSecondaryColGroupDef},t.prototype.getSendToClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.sendToClipboard)},t.prototype.getProcessRowPostCreateFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processRowPostCreate)},t.prototype.getProcessCellForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellForClipboard)},t.prototype.getProcessHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processHeaderForClipboard)},t.prototype.getProcessGroupHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processGroupHeaderForClipboard)},t.prototype.getProcessCellFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellFromClipboard)},t.prototype.getViewportRowModelPageSize=function(){return Ho(this.gridOptions.viewportRowModelPageSize,Io)},t.prototype.getViewportRowModelBufferSize=function(){return xo(this.gridOptions.viewportRowModelBufferSize,Go)},t.prototype.isServerSideSortAllLevels=function(){var t=Lo(this.gridOptions.serverSideSortAllLevels);return!this.isRowModelServerSide()&&t?(x((function(){return console.warn("AG Grid: The `serverSideSortAllLevels` property can only be used with the server side row model.")}),"serverSideSortAllLevels"),!1):t},t.prototype.isServerSideFilterAllLevels=function(){var t=Lo(this.gridOptions.serverSideFilterAllLevels);return!this.isRowModelServerSide()&&t?(x((function(){return console.warn("AG Grid: The `serverSideFilterAllLevels` property can only be used with the server side row model.")}),"serverSideFilterAllLevels"),!1):t},t.prototype.isServerSideSortOnServer=function(){var t=Lo(this.gridOptions.serverSideSortOnServer);return!this.isRowModelServerSide()&&t?(x((function(){return console.warn("AG Grid: The `serverSideSortOnServer` property can only be used with the server side row model.")}),"serverSideSortOnServerRowModel"),!1):this.isTreeData()&&t?(x((function(){return console.warn("AG Grid: The `serverSideSortOnServer` property cannot be used while using tree data.")}),"serverSideSortOnServerTreeData"),!1):t},t.prototype.isServerSideFilterOnServer=function(){var t=Lo(this.gridOptions.serverSideFilterOnServer);return!this.isRowModelServerSide()&&t?(x((function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property can only be used with the server side row model.")}),"serverSideFilterOnServerRowModel"),!1):this.isTreeData()&&t?(x((function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property cannot be used while using tree data.")}),"serverSideFilterOnServerTreeData"),!1):t},t.prototype.getPostSortFunc=function(){var t=this.gridOptions,e=t.postSortRows,o=t.postSort;return e?this.mergeGridCommonParams(e):o?function(t){return o(t.nodes)}:void 0},t.prototype.getChartToolbarItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getChartToolbarItems)},t.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},t.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},t.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},t.prototype.getChartToolPanelsDef=function(){return this.gridOptions.chartToolPanelsDef},t.prototype.getClipboardDelimiter=function(){return n(this.gridOptions.clipboardDelimiter)?this.gridOptions.clipboardDelimiter:"\t"},t.prototype.setProperty=function(t,e,o){void 0===o&&(o=!1);var r=this.gridOptions[t];if(o||r!==e){this.gridOptions[t]=e;var n={type:t,currentValue:e,previousValue:r};this.propertyEventService.dispatchEvent(n)}},t.prototype.addEventListener=function(t,e){this.propertyEventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.propertyEventService.removeEventListener(t,e)},t.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},t.prototype.getAutoSizePadding=function(){var t=this.gridOptions.autoSizePadding;return null!=t&&t>=0?t:20},t.prototype.getHeaderHeight=function(){return"number"===typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},t.prototype.getFloatingFiltersHeight=function(){return"number"===typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},t.prototype.getGroupHeaderHeight=function(){return"number"===typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},t.prototype.getPivotHeaderHeight=function(){return"number"===typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},t.prototype.getPivotGroupHeaderHeight=function(){return"number"===typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},t.prototype.isExternalFilterPresent=function(){return"function"===typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent({api:this.getApi(),columnApi:this.getColumnApi(),context:this.getContext()})},t.prototype.doesExternalFilterPass=function(t){return"function"===typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(t)},t.prototype.getTooltipDelay=function(t){var e=this.gridOptions,o=e.tooltipShowDelay,r=e.tooltipHideDelay,i="show"===t?o:r,s=ge(t);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},t.prototype.isTooltipMouseTrack=function(){return Lo(this.gridOptions.tooltipMouseTrack)},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return Lo(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},t.prototype.getDocument=function(){var t=null;return this.gridOptions.getDocument&&n(this.gridOptions.getDocument)?t=this.gridOptions.getDocument():this.eGridDiv&&(t=this.eGridDiv.ownerDocument),t&&n(t)?t:document},t.prototype.getMinColWidth=function(){var t=this.gridOptions.minColWidth;if(n(t)&&t>e.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var o=this.getFromTheme(null,"headerCellMinWidth");return n(o)?Math.max(o,e.MIN_COL_WIDTH):e.MIN_COL_WIDTH},t.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>e.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},t.prototype.getColWidth=function(){return"number"!==typeof this.gridOptions.colWidth||this.gridOptions.colWidth<e.MIN_COL_WIDTH?200:this.gridOptions.colWidth},t.prototype.getRowBuffer=function(){var t=this.gridOptions.rowBuffer;return"number"===typeof t?t<0&&(x((function(){return console.warn("AG Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=t=0):t=ft.ROW_BUFFER_SIZE,t},t.prototype.getRowBufferInPixels=function(){var t=this.getRowBuffer(),e=this.getRowHeightAsNumber();return t*e},t.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var t="number"===typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0,e=t?this.gridOptions.scrollbarWidth:oo();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:le.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},t.prototype.checkForDeprecated=function(){var t=this.gridOptions;t.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),t.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."),t.enableMultiRowDragging&&(t.rowDragMultiRow=!0,delete t.enableMultiRowDragging,console.warn("AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`."));var e=function(e,o,r){null!=t[e]&&(console.warn("AG Grid: since version "+r+", '"+e+"' is deprecated / renamed, please use the new property name '"+o+"' instead."),null==t[o]&&(t[o]=t[e]))};if(e("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),e("deltaRowDataMode","immutableData","23.1.x"),e("serverSideFilteringAlwaysResets","serverSideFilterAllLevels","28.0.0"),e("serverSideSortingAlwaysResets","serverSideSortAllLevels","28.0.0"),(t.immutableColumns||t.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"),e("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),t.groupRowInnerRenderer||t.groupRowInnerRendererParams||t.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."),t.groupRowRendererParams||(t.groupRowRendererParams={});var o=t.groupRowRendererParams;t.groupRowInnerRenderer&&(o.innerRenderer=t.groupRowInnerRenderer),t.groupRowInnerRendererParams&&(o.innerRendererParams=t.groupRowInnerRendererParams),t.groupRowInnerRendererFramework&&(o.innerRendererFramework=t.groupRowInnerRendererFramework)}if(t.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."),t.detailCellRendererParams&&t.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"),t.detailRowAutoHeight=!0),t.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."),t.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."),t.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'),t.defaultExportParams&&console.warn("AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`."),t.stopEditingWhenGridLosesFocus&&(console.warn("AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`."),t.stopEditingWhenCellsLoseFocus=!0),t.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"),t.groupMultiAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`"),t.groupDisplayType="multipleColumns"),t.groupUseEntireRow&&(console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`"),t.groupDisplayType="groupRows"),t.groupSuppressAutoColumn){var r=t.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+r+" = 'custom'`"),t.groupDisplayType="custom"}t.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."),t.defaultGroupSortComparator&&(console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`"),t.defaultGroupOrderComparator=t.defaultGroupSortComparator),t.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."),t.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."),t.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."),t.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."),t.colWidth&&console.warn("AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`."),t.minColWidth&&console.warn("AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`."),t.maxColWidth&&console.warn("AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`."),t.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."),t.suppressReactUi&&console.warn("AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."),t.suppressCellSelection&&(console.warn("AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`."),t.suppressCellFocus=t.suppressCellSelection),t.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."),t.immutableData&&(t.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.")),t.clipboardDeliminator&&(console.warn("AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`."),t.clipboardDelimiter=t.clipboardDeliminator),e("processSecondaryColDef","processPivotResultColDef","28.0.x"),e("processSecondaryColGroupDef","processPivotResultColGroupDef","28.0.x"),t.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."),t.serverSideInfiniteScroll="partial"===t.serverSideStoreType),e("getServerSideStoreParams","getServerSideGroupLevelParams","28.0.x")},t.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},t.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."))},t.prototype.getLocaleTextFunc=function(){var t=this,e=this.gridOptions,o=e.localeText,r=e.getLocaleText,n=e.localeTextFunc;return r?function(e,o,n){var i={key:e,defaultValue:o,variableValues:n,api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()};return r(i)}:n||function(t,e,r){var n=o&&o[t];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:e}},t.prototype.globalEventHandler=function(t,e){if(!this.destroyed){var o=Ie.getCallbackForEvent(t);"function"===typeof this.gridOptions[o]&&this.gridOptions[o](e)}},t.prototype.setRowHeightVariable=function(t){var e=this.eGridDiv.style.getPropertyValue("--ag-line-height").trim(),o=t+"px";e!=o&&this.eGridDiv.style.setProperty("--ag-line-height",o)},t.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||i(this.gridOptions.rowHeight))return this.getDefaultRowHeight();var t=this.gridOptions.rowHeight;return t&&this.isNumeric(t)?(this.setRowHeightVariable(t),t):(console.warn("AG Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},t.prototype.isGetRowHeightFunction=function(){return"function"===typeof this.gridOptions.getRowHeight},t.prototype.getRowHeightForNode=function(t,e,o){if(void 0===e&&(e=!1),null==o&&(o=this.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(e)return{height:o,estimated:!0};var r={node:t,data:t.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(t.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}},t.prototype.isDynamicRowHeight=function(){return"function"===typeof this.gridOptions.getRowHeight},t.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},t.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},t.prototype.isNumeric=function(t){return!isNaN(t)&&"number"===typeof t&&isFinite(t)},t.prototype.getFromTheme=function(t,e){var o=this.environment.getTheme().theme;return o&&0===o.indexOf("ag-theme")?this.environment.getSassVariable(o,e):t},t.prototype.getDefaultRowHeight=function(){return this.getFromTheme(Ao,"rowHeight")},t.prototype.matchesGroupDisplayType=function(t,e){var o=["groupRows","multipleColumns","custom","singleColumn"];return o.indexOf(e)<0?(console.warn("AG Grid: '"+e+"' is not a valid groupDisplayType value - possible values are: '"+o.join("', '")+"'"),!1):e===t},t.prototype.matchesTreeDataDisplayType=function(t,e){var o=["auto","custom"];return o.indexOf(e)<0?(console.warn("AG Grid: '"+e+"' is not a valid treeDataDisplayType value - possible values are: '"+o.join("', '")+"'"),!1):e===t},t.MIN_COL_WIDTH=10,t.PROP_HEADER_HEIGHT="headerHeight",t.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",t.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",t.PROP_GROUP_DISPLAY_TYPE="groupDisplayType",t.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",t.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",t.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",t.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",t.PROP_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",t.PROP_TAB_TO_NEXT_CELL="tabToNextCell",t.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",t.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",t.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresent",t.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",t.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",t.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",t.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",t.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",t.PROP_GET_ROW_CLASS="getRowClass",t.PROP_GET_ROW_STYLE="getRowStyle",t.PROP_GET_ROW_HEIGHT="getRowHeight",t.PROP_POPUP_PARENT="popupParent",t.PROP_DOM_LAYOUT="domLayout",t.PROP_ROW_CLASS="rowClass",t.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",t.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",t.PROP_GET_GROUP_ROW_AGG="getGroupRowAgg",t.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",t.PROP_GET_CHILD_COUNT="getChildCount",t.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",t.PROP_GET_ROW_NODE_ID="getRowNodeId",t.PROP_GET_ROW_ID="getRowId",t.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",t.PROP_IS_FULL_WIDTH_ROW="isFullWidthRow",t.PROP_IS_ROW_SELECTABLE="isRowSelectable",t.PROP_IS_ROW_MASTER="isRowMaster",t.PROP_POST_SORT="postSort",t.PROP_POST_SORT_ROWS="postSortRows",t.PROP_GET_DOCUMENT="getDocument",t.PROP_POST_PROCESS_POPUP="postProcessPopup",t.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",t.PROP_INITIAL_GROUP_ORDER_COMPARATOR="initialGroupOrderComparator",t.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",t.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",t.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",t.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",t.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",t.PROP_SEND_TO_CLIPBOARD="sendToClipboard",t.PROP_PROCESS_PIVOT_RESULT_COL_DEF="processPivotResultColDef",t.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF="processPivotResultColGroupDef",t.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",t.PROP_GET_SERVER_SIDE_GROUP_PARAMS="getServerSideGroupLevelParams",t.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",t.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",t.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",t.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",t.PROP_AUTO_GROUP_COLUMN_DEF="autoGroupColumnDef",t.PROP_DEFAULT_COL_DEF="defaultColDef",bo([nt("gridOptions")],t.prototype,"gridOptions",void 0),bo([nt("eventService")],t.prototype,"eventService",void 0),bo([nt("environment")],t.prototype,"environment",void 0),bo([nt("eGridDiv")],t.prototype,"eGridDiv",void 0),bo([Po(0,at("gridApi")),Po(1,at("columnApi"))],t.prototype,"agWire",null),bo([ot],t.prototype,"destroy",null),bo([et],t.prototype,"init",null),t=e=bo([rt("gridOptionsWrapper")],t),t}(),Wo=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ko=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Bo=function(t,e){return function(o,r){e(o,r,t)}},jo=function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(o[r[n]]=t[r[n]])}return o},Uo=function(t){var e="function"===typeof Symbol&&Symbol.iterator,o=e&&t[e],r=0;if(o)return o.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},zo=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t=[],e=0;e<arguments.length;e++)t=t.concat(zo(arguments[e]));return t},Yo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.primaryHeaderRowCount=0,e.secondaryHeaderRowCount=0,e.gridHeaderRowCount=0,e.displayedColumnsLeft=[],e.displayedColumnsRight=[],e.displayedColumnsCenter=[],e.displayedColumns=[],e.displayedColumnsAndGroupsMap={},e.viewportColumns=[],e.viewportColumnsHash="",e.headerViewportColumns=[],e.viewportColumnsCenter=[],e.headerViewportColumnsCenter=[],e.autoHeightActiveAtLeastOnce=!1,e.rowGroupColumns=[],e.valueColumns=[],e.pivotColumns=[],e.ready=!1,e.autoGroupsNeedBuilding=!1,e.forceRecreateAutoGroups=!1,e.pivotMode=!1,e.bodyWidth=0,e.leftWidth=0,e.rightWidth=0,e.bodyWidthDirty=!0,e.flexColsCalculatedAtLestOnce=!1,e}return Wo(e,t),e.prototype.init=function(){var t=this;this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var e=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_GROUP_DISPLAY_TYPE,(function(){return t.onAutoGroupColumnDefChanged()})),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_AUTO_GROUP_COLUMN_DEF,(function(){return t.onAutoGroupColumnDefChanged()})),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_DEFAULT_COL_DEF,(function(){return t.onDefaultColDefChanged()}))},e.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},e.prototype.onDefaultColDefChanged=function(){this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0)},e.prototype.setColumnDefs=function(t,e){void 0===e&&(e="api");var o=!!this.columnDefs;this.columnDefs=t,this.createColumnsFromColumnDefs(o,e)},e.prototype.createColumnsFromColumnDefs=function(t,e){var o=this;void 0===e&&(e="api");var r=t?this.compareColumnStatesAndRaiseEvents(e):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(t){return o.primaryColumnsMap[t.getId()]=t})),this.extractRowGroupColumns(e,n),this.extractPivotColumns(e,n),this.extractValueColumns(e,n),this.ready=!0;var a=void 0===this.gridColsArePrimary,l=this.gridColsArePrimary||a;l&&(this.updateGridColumns(),t&&!this.gridOptionsWrapper.isMaintainColumnOrder()&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(e),this.checkViewportColumns()),this.dispatchEverythingChanged(e),r&&r(),this.dispatchNewColumnsLoaded()},e.prototype.dispatchNewColumnsLoaded=function(){var t={type:le.EVENT_NEW_COLUMNS_LOADED};this.eventService.dispatchEvent(t)},e.prototype.dispatchEverythingChanged=function(t){void 0===t&&(t="api");var e={type:le.EVENT_COLUMN_EVERYTHING_CHANGED,source:t};this.eventService.dispatchEvent(e)},e.prototype.orderGridColumnsLikePrimary=function(){var t=this,e=this.primaryColumns;e&&(this.gridColumns.sort((function(o,r){var n=e.indexOf(o),i=e.indexOf(r),s=n>=0,a=i>=0;if(s&&a)return n-i;if(s)return 1;if(a)return-1;var l=t.gridColumns.indexOf(o),u=t.gridColumns.indexOf(r);return l-u})),this.gridColumns=this.placeLockedColumns(this.gridColumns))},e.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},e.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)},e.prototype.getDisplayedColumnsStartingAt=function(t){var e=t,o=[];while(null!=e)o.push(e),e=this.getDisplayedColAfter(e);return o},e.prototype.checkViewportColumns=function(){if(null!=this.displayedColumnsCenter){var t=this.extractViewport();if(t){var e={type:le.EVENT_VIRTUAL_COLUMNS_CHANGED};this.eventService.dispatchEvent(e)}}},e.prototype.setViewportPosition=function(t,e){(t!==this.scrollWidth||e!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=t,this.scrollPosition=e,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},e.prototype.isPivotMode=function(){return this.pivotMode},e.prototype.isPivotSettingAllowed=function(t){return!t||!this.gridOptionsWrapper.isTreeData()||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},e.prototype.setPivotMode=function(t,e){if(void 0===e&&(e="api"),t!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=t,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(e);var o={type:le.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(o)}},e.prototype.getSecondaryPivotColumn=function(t,e){if(i(this.secondaryColumns))return null;var o=this.getPrimaryColumn(e),r=null;return this.secondaryColumns.forEach((function(e){var n=e.getColDef().pivotKeys,i=e.getColDef().pivotValueColumn,s=Rt(n,t),a=i===o;s&&a&&(r=e)})),r},e.prototype.setBeans=function(t){this.logger=t.create("columnModel")},e.prototype.setFirstRightAndLastLeftPinned=function(t){var e,o;this.gridOptionsWrapper.isEnableRtl()?(e=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,o=this.displayedColumnsRight?Et(this.displayedColumnsRight):null):(e=this.displayedColumnsLeft?Et(this.displayedColumnsLeft):null,o=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(r){r.setLastLeftPinned(r===e,t),r.setFirstRightPinned(r===o,t)}))},e.prototype.autoSizeColumns=function(t){var e=this,o=t.columns,r=t.skipHeader,n=t.skipHeaderGroups,i=t.stopAtGroup,s=t.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(t){if(l.indexOf(t)>=0)return!1;var o=e.autoWidthCalculator.getPreferredWidthForColumn(t,p);if(o>0){var r=e.normaliseColumnWidth(t,o);t.setActualWidth(r,a),l.push(t),u++}return!0}),a);c||this.autoSizeColumnGroupsByColumns(o,i),this.fireColumnResizedEvent(l,!0,"autosizeColumns")},e.prototype.fireColumnResizedEvent=function(t,e,o,r){if(void 0===r&&(r=null),t&&t.length){var n={type:le.EVENT_COLUMN_RESIZED,columns:t,column:1===t.length?t[0]:null,flexColumns:r,finished:e,source:o};this.eventService.dispatchEvent(n)}},e.prototype.autoSizeColumn=function(t,e,o){void 0===o&&(o="api"),t&&this.autoSizeColumns({columns:[t],skipHeader:e,skipHeaderGroups:!0,source:o})},e.prototype.autoSizeColumnGroupsByColumns=function(t,e){var o,r,n,i,s,a=new Set,l=this.getGridColumns(t);l.forEach((function(t){var o=t.getParent();while(o&&o!=e)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},e.prototype.autoSizeAllColumns=function(t,e){void 0===e&&(e="api");var o=this.getAllDisplayedColumns();this.autoSizeColumns({columns:o,skipHeader:t,source:e})},e.prototype.getColumnsFromTree=function(t){var e=[],o=function(t){for(var r=0;r<t.length;r++){var n=t[r];n instanceof mt?e.push(n):n instanceof Wt&&o(n.getChildren())}};return o(t),e},e.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},e.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},e.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},e.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},e.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},e.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},e.prototype.isColumnDisplayed=function(t){return this.getAllDisplayedColumns().indexOf(t)>=0},e.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},e.prototype.getViewportColumns=function(){return this.viewportColumns},e.prototype.getDisplayedLeftColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedColumnsLeft):this.displayedColumnsLeft},e.prototype.getDisplayedRightColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedColumnsRight):this.displayedColumnsRight},e.prototype.getDisplayedColumnsForRow=function(t,e,o,r){for(var n,i=[],s=null,a=function(a){var l,u=e[a],p=e.length-a,c=Math.min(u.getColSpan(t),p),d=[u];if(c>1){for(var h=c-1,f=1;f<=h;f++)d.push(e[a+f]);a+=h}if(o?(l=!1,d.forEach((function(t){o(t)&&(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<e.length;l++)a(l),l=n;return i},e.prototype.getViewportCenterColumnsForRow=function(t){var e=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var o=function(t){var o=t.getLeft();return n(o)&&o>e.viewportLeft},r=this.suppressColumnVirtualisation?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(t,this.displayedColumnsCenter,r,o)},e.prototype.getAriaColumnIndex=function(t){return this.getAllGridColumns().indexOf(t)+1},e.prototype.isColumnInHeaderViewport=function(t){return!!t.isAutoHeaderHeight()||this.isColumnInRowViewport(t)},e.prototype.isColumnInRowViewport=function(t){if(t.isAutoHeight())return!0;var e=t.getLeft()||0,o=e+t.getActualWidth(),r=this.viewportLeft-200,n=this.viewportRight+200,i=e<r&&o<r,s=e>n&&o>n;return!i&&!s},e.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},e.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},e.prototype.updatePrimaryColumnList=function(t,e,o,r,n,i){var a=this;if(void 0===i&&(i="api"),t&&!s(t)){var l=!1;if(t.forEach((function(t){var n=a.getPrimaryColumn(t);if(n){if(o){if(e.indexOf(n)>=0)return;e.push(n)}else{if(e.indexOf(n)<0)return;Pt(e,n)}r(n),l=!0}})),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var u={type:n,columns:e,column:1===e.length?e[0]:null,source:i};this.eventService.dispatchEvent(u)}}},e.prototype.setRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(t,this.rowGroupColumns,le.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),e)},e.prototype.setRowGroupActive=function(t,e,o){t!==e.isRowGroupActive()&&(e.setRowGroupActive(t,o),t&&!this.gridOptionsWrapper.isSuppressRowGroupHidesColumns()&&this.setColumnVisible(e,!1,o),t||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||this.setColumnVisible(e,!0,o))},e.prototype.addRowGroupColumn=function(t,e){void 0===e&&(e="api"),t&&this.addRowGroupColumns([t],e)},e.prototype.addRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),le.EVENT_COLUMN_ROW_GROUP_CHANGED,e)},e.prototype.removeRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),le.EVENT_COLUMN_ROW_GROUP_CHANGED,e)},e.prototype.removeRowGroupColumn=function(t,e){void 0===e&&(e="api"),t&&this.removeRowGroupColumns([t],e)},e.prototype.addPivotColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!0,(function(t){return t.setPivotActive(!0,e)}),le.EVENT_COLUMN_PIVOT_CHANGED,e)},e.prototype.setPivotColumns=function(t,e){void 0===e&&(e="api"),this.setPrimaryColumnList(t,this.pivotColumns,le.EVENT_COLUMN_PIVOT_CHANGED,(function(t,o){o.setPivotActive(t,e)}),e)},e.prototype.addPivotColumn=function(t,e){void 0===e&&(e="api"),this.addPivotColumns([t],e)},e.prototype.removePivotColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!1,(function(t){return t.setPivotActive(!1,e)}),le.EVENT_COLUMN_PIVOT_CHANGED,e)},e.prototype.removePivotColumn=function(t,e){void 0===e&&(e="api"),this.removePivotColumns([t],e)},e.prototype.setPrimaryColumnList=function(t,e,o,r,i){var s=this;e.length=0,n(t)&&t.forEach((function(t){var o=s.getPrimaryColumn(t);o&&e.push(o)})),(this.primaryColumns||[]).forEach((function(t){var o=e.indexOf(t)>=0;r(o,t)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i),this.fireColumnEvent(o,e,i)},e.prototype.setValueColumns=function(t,e){void 0===e&&(e="api"),this.setPrimaryColumnList(t,this.valueColumns,le.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),e)},e.prototype.setValueActive=function(t,e,o){if(t!==e.isValueActive()&&(e.setValueActive(t,o),t&&!e.getAggFunc())){var r=this.aggFuncService.getDefaultAggFunc(e);e.setAggFunc(r)}},e.prototype.addValueColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.valueColumns,!0,this.setValueActive.bind(this,!0),le.EVENT_COLUMN_VALUE_CHANGED,e)},e.prototype.addValueColumn=function(t,e){void 0===e&&(e="api"),t&&this.addValueColumns([t],e)},e.prototype.removeValueColumn=function(t,e){void 0===e&&(e="api"),this.removeValueColumns([t],e)},e.prototype.removeValueColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.valueColumns,!1,this.setValueActive.bind(this,!1),le.EVENT_COLUMN_VALUE_CHANGED,e)},e.prototype.normaliseColumnWidth=function(t,e){var o=t.getMinWidth();n(o)&&e<o&&(e=o);var r=t.getMaxWidth();return n(r)&&t.isGreaterThanMax(e)&&(e=r),e},e.prototype.getPrimaryOrGridColumn=function(t){var e=this.getPrimaryColumn(t);return e||this.getGridColumn(t)},e.prototype.setColumnWidths=function(t,e,o,r){var n=this;void 0===r&&(r="api");var i=[];t.forEach((function(t){var o=n.getPrimaryOrGridColumn(t.key);if(o){i.push({width:t.newWidth,ratios:[1],columns:[o]});var r="shift"===n.gridOptionsWrapper.getColResizeDefault();if(r&&(e=!e),e){var s=n.getDisplayedColAfter(o);if(!s)return;var a=o.getActualWidth()-t.newWidth,l=s.getActualWidth()+a;i.push({width:l,ratios:[1],columns:[s]})}}})),0!==i.length&&this.resizeColumnSets({resizeSets:i,finished:o,source:r})},e.prototype.checkMinAndMaxWidthsForSet=function(t){var e=t.columns,o=t.width,r=0,i=0,s=!0;e.forEach((function(t){var e=t.getMinWidth();r+=e||0;var o=t.getMaxWidth();n(o)&&o>0?i+=o:s=!1}));var a=o>=r,l=!s||o<=i;return a&&l},e.prototype.resizeColumnSets=function(t){var e=this,o=t.resizeSets,r=t.finished,i=t.source,s=!o||o.every((function(t){return e.checkMinAndMaxWidthsForSet(t)}));if(s){var a=[],l=[];o.forEach((function(t){var e=t.width,o=t.columns,r=t.ratios,s={},u={};o.forEach((function(t){return l.push(t)}));var p=!0,c=0,d=function(){if(c++,c>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";p=!1;var t=[],i=0,a=e;o.forEach((function(e,o){var n=u[e.getId()];if(n)a-=s[e.getId()];else{t.push(e);var l=r[o];i+=l}}));var l=1/i;t.forEach((function(o,i){var c,d=i===t.length-1;d?c=a:(c=Math.round(r[i]*e*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(t){var e=s[t.getId()],o=t.getActualWidth();o!==e&&(t.setActualWidth(e,i),a.push(t))}))}));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)}},e.prototype.setColumnAggFunc=function(t,e,o){if(void 0===o&&(o="api"),t){var r=this.getPrimaryColumn(t);r&&(r.setAggFunc(e),this.fireColumnEvent(le.EVENT_COLUMN_VALUE_CHANGED,[r],o))}},e.prototype.fireColumnEvent=function(t,e,o){var r={type:t,columns:e,column:e&&1==e.length?e[0]:null,source:o};this.eventService.dispatchEvent(r)},e.prototype.moveRowGroupColumn=function(t,e,o){void 0===o&&(o="api");var r=this.rowGroupColumns[t];this.rowGroupColumns.splice(t,1),this.rowGroupColumns.splice(e,0,r);var n={type:le.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,source:o};this.eventService.dispatchEvent(n)},e.prototype.moveColumns=function(t,e,o){if(void 0===o&&(o="api"),this.columnAnimationService.start(),e>this.gridColumns.length-t.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+e),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var r=this.getGridColumns(t),n=!this.doesMovePassRules(r,e);if(!n){Nt(this.gridColumns,r,e),this.updateDisplayedColumns(o);var i={type:le.EVENT_COLUMN_MOVED,columns:r,column:1===r.length?r[0]:null,toIndex:e,source:o};this.eventService.dispatchEvent(i),this.columnAnimationService.finish()}},e.prototype.doesMovePassRules=function(t,e){var o=this.getProposedColumnOrder(t,e);return this.doesOrderPassRules(o)},e.prototype.doesOrderPassRules=function(t){return!!this.doesMovePassMarryChildren(t)&&!!this.doesMovePassLockedPositions(t)},e.prototype.getProposedColumnOrder=function(t,e){var o=this.gridColumns.slice();return Nt(o,t,e),o},e.prototype.sortColumnsLikeGridColumns=function(t){var e=this;if(t&&!(t.length<=1)){var o=t.filter((function(t){return e.gridColumns.indexOf(t)<0})).length>0;o||t.sort((function(t,o){var r=e.gridColumns.indexOf(t),n=e.gridColumns.indexOf(o);return r-n}))}},e.prototype.doesMovePassLockedPositions=function(t){var e=0,o=!0,r=function(t){return t?!0===t||"left"===t?0:2:1};return t.forEach((function(t){var n=r(t.getColDef().lockPosition);n<e&&(o=!1),e=n})),o},e.prototype.doesMovePassMarryChildren=function(t){var e=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof Wt){var r=o,n=r.getColGroupDef(),i=n&&n.marryChildren;if(i){var s=[];r.getLeafColumns().forEach((function(e){var o=t.indexOf(e);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&&(e=!1)}}})),e},e.prototype.moveColumn=function(t,e,o){void 0===o&&(o="api"),this.moveColumns([t],e,o)},e.prototype.moveColumnByIndex=function(t,e,o){void 0===o&&(o="api");var r=this.gridColumns[t];this.moveColumn(r,e,o)},e.prototype.getColumnDefs=function(){var t=this;if(this.primaryColumns){var e=this.primaryColumns.slice();return this.gridColsArePrimary?e.sort((function(e,o){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(o)})):this.lastPrimaryOrder&&e.sort((function(e,o){return t.lastPrimaryOrder.indexOf(e)-t.lastPrimaryOrder.indexOf(o)})),this.columnDefFactory.buildColumnDefs(e,this.rowGroupColumns,this.pivotColumns)}},e.prototype.getBodyContainerWidth=function(){return this.bodyWidth},e.prototype.getContainerWidth=function(t){switch(t){case ft.PINNED_LEFT:return this.leftWidth;case ft.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},e.prototype.updateBodyWidths=function(){var t=this.getWidthOfColsInList(this.displayedColumnsCenter),e=this.getWidthOfColsInList(this.displayedColumnsLeft),o=this.getWidthOfColsInList(this.displayedColumnsRight);this.bodyWidthDirty=this.bodyWidth!==t;var r=this.bodyWidth!==t||this.leftWidth!==e||this.rightWidth!==o;if(r){this.bodyWidth=t,this.leftWidth=e,this.rightWidth=o;var n={type:le.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(n)}},e.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},e.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},e.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},e.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},e.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},e.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},e.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},e.prototype.getDisplayedColumns=function(t){switch(t){case ft.PINNED_LEFT:return this.getDisplayedLeftColumns();case ft.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},e.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},e.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},e.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},e.prototype.getAllGridColumns=function(){return this.gridColumns},e.prototype.isEmpty=function(){return s(this.gridColumns)},e.prototype.isRowGroupEmpty=function(){return s(this.rowGroupColumns)},e.prototype.setColumnVisible=function(t,e,o){void 0===o&&(o="api"),this.setColumnsVisible([t],e,o)},e.prototype.setColumnsVisible=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o="api"),this.applyColumnState({state:t.map((function(t){return{colId:"string"===typeof t?t:t.getColId(),hide:!e}}))},o)},e.prototype.setColumnPinned=function(t,e,o){void 0===o&&(o="api"),t&&this.setColumnsPinned([t],e,o)},e.prototype.setColumnsPinned=function(t,e,o){var r;(void 0===o&&(o="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),r=!0===e||e===ft.PINNED_LEFT?ft.PINNED_LEFT:e===ft.PINNED_RIGHT?ft.PINNED_RIGHT:null,this.actionOnGridColumns(t,(function(t){return t.getPinned()!==r&&(t.setPinned(r),!0)}),o,(function(){var t={type:le.EVENT_COLUMN_PINNED,pinned:r,column:null,columns:null,source:o};return t})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},e.prototype.actionOnGridColumns=function(t,e,o,r){var i=this;if(!s(t)){var a=[];if(t.forEach((function(t){var o=i.getGridColumn(t);if(o){var r=e(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)}}},e.prototype.getDisplayedColBefore=function(t){var e=this.getAllDisplayedColumns(),o=e.indexOf(t);return o>0?e[o-1]:null},e.prototype.getDisplayedColAfter=function(t){var e=this.getAllDisplayedColumns(),o=e.indexOf(t);return o<e.length-1?e[o+1]:null},e.prototype.getDisplayedGroupAfter=function(t){return this.getDisplayedGroupAtDirection(t,"After")},e.prototype.getDisplayedGroupBefore=function(t){return this.getDisplayedGroupAtDirection(t,"Before")},e.prototype.getDisplayedGroupAtDirection=function(t,e){var o=t.getProvidedColumnGroup().getLevel()+t.getPaddingLevel(),r=t.getDisplayedLeafColumns(),n="After"===e?Et(r):r[0],i="getDisplayedCol"+e;while(1){var s=this[i](n);if(!s)return null;var a=this.getColumnGroupAtLevel(s,o);if(a!==t)return a}},e.prototype.getColumnGroupAtLevel=function(t,e){var o,r,n=t.getParent();while(1){var i=n.getProvidedColumnGroup();if(o=i.getLevel(),r=n.getPaddingLevel(),o+r<=e)break;n=n.getParent()}return n},e.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},e.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},e.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var t;return(t=[]).concat.apply(t,Ko([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},e.prototype.getPrimaryAndAutoGroupCols=function(){var t;return(t=[]).concat.apply(t,Ko([this.primaryColumns||[],this.groupAutoColumns||[]]))},e.prototype.getPrimaryAndSecondaryColumns=function(){var t;return(t=[]).concat.apply(t,Ko([this.primaryColumns||[],this.secondaryColumns||[]]))},e.prototype.createStateItemFromColumn=function(t){var e=t.isRowGroupActive()?this.rowGroupColumns.indexOf(t):null,o=t.isPivotActive()?this.pivotColumns.indexOf(t):null,r=t.isValueActive()?t.getAggFunc():null,n=null!=t.getSort()?t.getSort():null,i=null!=t.getSortIndex()?t.getSortIndex():null,s=null!=t.getFlex()&&t.getFlex()>0?t.getFlex():null,a={colId:t.getColId(),width:t.getActualWidth(),hide:!t.isVisible(),pinned:t.getPinned(),sort:n,sortIndex:i,aggFunc:r,rowGroup:t.isRowGroupActive(),rowGroupIndex:e,pivot:t.isPivotActive(),pivotIndex:o,flex:s};return a},e.prototype.getColumnState=function(){if(i(this.primaryColumns)||!this.isAlive())return[];var t=this.getPrimaryAndSecondaryAndAutoColumns(),e=t.map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(e),e},e.prototype.orderColumnStateList=function(t){var e=Ce(this.gridColumns.map((function(t,e){return[t.getColId(),e]})));t.sort((function(t,o){var r=e.has(t.colId)?e.get(t.colId):-1,n=e.has(o.colId)?e.get(o.colId):-1;return r-n}))},e.prototype.resetColumnState=function(t){void 0===t&&(t="api");var e=this.getColumnsFromTree(this.primaryColumnTree),o=[],r=1e3,n=1e3,s=[];this.groupAutoColumns&&(s=s.concat(this.groupAutoColumns)),e&&(s=s.concat(e)),s.forEach((function(t){var e=function(t,e){return null!=t?t:null!=e?e:null},s=t.getColDef(),a=e(s.sort,s.initialSort),l=e(s.sortIndex,s.initialSortIndex),u=e(s.hide,s.initialHide),p=e(s.pinned,s.initialPinned),c=e(s.width,s.initialWidth),d=e(s.flex,s.initialFlex),h=e(s.rowGroupIndex,s.initialRowGroupIndex),f=e(s.rowGroup,s.initialRowGroup);null!=h||null!=f&&0!=f||(h=null,f=null);var g=e(s.pivotIndex,s.initialPivotIndex),v=e(s.pivot,s.initialPivot);null!=g||null!=v&&0!=v||(g=null,v=null);var y=e(s.aggFunc,s.initialAggFunc),m={colId:t.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},t)},e.prototype.applyColumnState=function(t,e){var o=this;if(s(this.primaryColumns))return!1;if(t&&t.state&&!t.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(e);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(ft.GROUP_AUTO_COLUMN_ID);if(s)return p.push(r),void c.push(r);var h=i(n);h?(o.syncColumnWithStateItem(h,r,t.defaultState,l,u,!1,e),Pt(a,h)):(c.push(r),d+=1)}));var g=function(r){return o.syncColumnWithStateItem(r,null,t.defaultState,l,u,!1,e)};a.forEach(g);var v=function(t,e,o,r){var n=t[o.getId()],i=t[r.getId()],s=null!=n,a=null!=i;if(s&&a)return n-i;if(s)return-1;if(a)return 1;var l=e.indexOf(o),u=e.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);Pt(y,n),o.syncColumnWithStateItem(n,r,t.defaultState,null,null,!0,e)})),y.forEach(g),o.applyOrderAfterApplyState(t),o.updateDisplayedColumns(e),o.dispatchEverythingChanged(e),s(),{unmatchedAndAutoStates:c,unmatchedCount:d}};this.columnAnimationService.start();var i=r(t.state||[],this.primaryColumns||[],(function(t){return o.getPrimaryColumn(t)})),a=i.unmatchedAndAutoStates,l=i.unmatchedCount;return(a.length>0||n(t.defaultState))&&(l=r(a,this.secondaryColumns||[],(function(t){return o.getSecondaryColumn(t)})).unmatchedCount),this.columnAnimationService.finish(),0===l},e.prototype.applyOrderAfterApplyState=function(t){var e=this;if(t.applyOrder&&t.state){var o=[],r={};t.state.forEach((function(t){if(t.colId&&!r[t.colId]){var n=e.gridColumnsMap[t.colId];n&&(o.push(n),r[t.colId]=!0)}}));var n=0;this.gridColumns.forEach((function(t){var e=t.getColId(),i=null!=r[e];if(!i){var s=e.startsWith(ft.GROUP_AUTO_COLUMN_ID);s?Dt(o,t,n++):o.push(t)}})),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.")}},e.prototype.compareColumnStatesAndRaiseEvents=function(t){var e=this,o={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},r=this.getColumnState(),n={};return r.forEach((function(t){n[t.colId]=t})),function(){if(!e.gridOptionsWrapper.isSuppressColumnStateEvents()){var i=e.getPrimaryAndSecondaryAndAutoColumns(),s=function(o,r,n,i){var s=r.map(i),a=n.map(i),l=Rt(s,a);if(!l){var u={type:o,columns:n,column:1===n.length?n[0]:null,source:t};e.eventService.dispatchEvent(u)}},a=function(t){var e=[];return i.forEach((function(o){var r=n[o.getColId()];r&&t(r,o)&&e.push(o)})),e},l=function(t){return t.getColId()};s(le.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,e.rowGroupColumns,l),s(le.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,e.pivotColumns,l);var u=function(t,e){var o=null!=t.aggFunc,r=o!=e.isValueActive(),n=o&&t.aggFunc!=e.getAggFunc();return r||n},p=a(u);p.length>0&&e.fireColumnEvent(le.EVENT_COLUMN_VALUE_CHANGED,e.valueColumns,t);var c=function(t,e){return t.width!=e.getActualWidth()};e.fireColumnResizedEvent(a(c),!0,t);var d=function(t,e){return t.pinned!=e.getPinned()};e.raiseColumnPinnedEvent(a(d),t);var h=function(t,e){return t.hide==e.isVisible()};e.raiseColumnVisibleEvent(a(h),t);var f=function(t,e){return t.sort!=e.getSort()||t.sortIndex!=e.getSortIndex()};a(f).length>0&&e.sortController.dispatchSortChangedEvents(t),e.raiseColumnMovedEvent(r,t)}}},e.prototype.raiseColumnPinnedEvent=function(t,e){if(t.length){var o=1===t.length?t[0]:null,r=this.getCommonValue(t,(function(t){return t.getPinned()})),n={type:le.EVENT_COLUMN_PINNED,pinned:null!=r?r:null,columns:t,column:o,source:e};this.eventService.dispatchEvent(n)}},e.prototype.getCommonValue=function(t,e){if(t&&0!=t.length){for(var o=e(t[0]),r=1;r<t.length;r++)if(o!==e(t[r]))return;return o}},e.prototype.raiseColumnVisibleEvent=function(t,e){if(t.length){var o=1===t.length?t[0]:null,r=this.getCommonValue(t,(function(t){return t.isVisible()})),n={type:le.EVENT_COLUMN_VISIBLE,visible:r,columns:t,column:o,source:e};this.eventService.dispatchEvent(n)}},e.prototype.raiseColumnMovedEvent=function(t,e){var o=this,r=this.getColumnState(),n={};r.forEach((function(t){return n[t.colId]=t}));var i={};t.forEach((function(t){n[t.colId]&&(i[t.colId]=!0)}));var s=t.filter((function(t){return i[t.colId]})),a=r.filter((function(t){return i[t.colId]})),l=[];if(a.forEach((function(t,e){var r=s&&s[e];if(r&&r.colId!==t.colId){var n=o.getGridColumn(r.colId);n&&l.push(n)}})),l.length){var u={type:le.EVENT_COLUMN_MOVED,columns:l,column:null,source:e};this.eventService.dispatchEvent(u)}},e.prototype.syncColumnWithStateItem=function(t,e,o,r,i,s,a){if(t){var l=function(t,r){var i={value1:void 0,value2:void 0},s=!1;return e&&(void 0!==e[t]&&(i.value1=e[t],s=!0),n(r)&&void 0!==e[r]&&(i.value2=e[r],s=!0)),!s&&o&&(void 0!==o[t]&&(i.value1=o[t]),n(r)&&void 0!==o[r]&&(i.value2=o[r])),i},u=l("hide").value1;void 0!==u&&t.setVisible(!u,a);var p=l("pinned").value1;void 0!==p&&t.setPinned(p);var c=this.columnUtils.calculateColMinWidth(t.getColDef()),d=l("flex").value1;void 0!==d&&t.setFlex(d);var h=t.getFlex()<=0;if(h){var f=l("width").value1;null!=f&&null!=c&&f>=c&&t.setActualWidth(f,a)}var g=l("sort").value1;void 0!==g&&(g===ft.SORT_DESC||g===ft.SORT_ASC?t.setSort(g,a):t.setSort(void 0,a));var v=l("sortIndex").value1;if(void 0!==v&&t.setSortIndex(v),!s&&t.isPrimary()){var y=l("aggFunc").value1;void 0!==y&&("string"===typeof y?(t.setAggFunc(y),t.isValueActive()||(t.setValueActive(!0,a),this.valueColumns.push(t))):(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."),t.isValueActive()&&(t.setValueActive(!1,a),Pt(this.valueColumns,t))));var m=l("rowGroup","rowGroupIndex"),C=m.value1,w=m.value2;void 0===C&&void 0===w||("number"===typeof w||C?(t.isRowGroupActive()||(t.setRowGroupActive(!0,a),this.rowGroupColumns.push(t)),r&&"number"===typeof w&&(r[t.getId()]=w)):t.isRowGroupActive()&&(t.setRowGroupActive(!1,a),Pt(this.rowGroupColumns,t)));var E=l("pivot","pivotIndex"),R=E.value1,O=E.value2;void 0===R&&void 0===O||("number"===typeof O||R?(t.isPivotActive()||(t.setPivotActive(!0,a),this.pivotColumns.push(t)),i&&"number"===typeof O&&(i[t.getId()]=O)):t.isPivotActive()&&(t.setPivotActive(!1,a),Pt(this.pivotColumns,t)))}}},e.prototype.getGridColumns=function(t){return this.getColumns(t,this.getGridColumn.bind(this))},e.prototype.getColumns=function(t,e){var o=[];return t&&t.forEach((function(t){var r=e(t);r&&o.push(r)})),o},e.prototype.getColumnWithValidation=function(t){if(null==t)return null;var e=this.getGridColumn(t);return e||console.warn("AG Grid: could not find column "+t),e},e.prototype.getPrimaryColumn=function(t){return this.primaryColumns?this.getColumn(t,this.primaryColumns,this.primaryColumnsMap):null},e.prototype.getGridColumn=function(t){return this.getColumn(t,this.gridColumns,this.gridColumnsMap)},e.prototype.getSecondaryColumn=function(t){return this.secondaryColumns?this.getColumn(t,this.secondaryColumns,this.secondaryColumnsMap):null},e.prototype.getColumn=function(t,e,o){if(!t)return null;if("string"==typeof t&&o[t])return o[t];for(var r=0;r<e.length;r++)if(this.columnsMatch(e[r],t))return e[r];return this.getAutoColumn(t)},e.prototype.getSourceColumnsForGroupColumn=function(t){var e=t.getColDef().showRowGroup;if(!e)return null;if(!0===e)return this.rowGroupColumns.slice(0);var o=this.getPrimaryColumn(e);return o?[o]:null},e.prototype.getAutoColumn=function(t){var e=this;return this.groupAutoColumns&&n(this.groupAutoColumns)&&!i(this.groupAutoColumns)&&this.groupAutoColumns.find((function(o){return e.columnsMatch(o,t)}))||null},e.prototype.columnsMatch=function(t,e){var o=t===e,r=t.getColDef()===e,n=t.getColId()==e;return o||r||n},e.prototype.getDisplayNameForColumn=function(t,e,o){if(void 0===o&&(o=!1),!t)return null;var r=this.getHeaderName(t.getColDef(),t,null,null,e);return o?this.wrapHeaderNameWithAggFunc(t,r):r},e.prototype.getDisplayNameForProvidedColumnGroup=function(t,e,o){var r=e?e.getColGroupDef():null;return r?this.getHeaderName(r,null,t,e,o):null},e.prototype.getDisplayNameForColumnGroup=function(t,e){return this.getDisplayNameForProvidedColumnGroup(t,t.getProvidedColumnGroup(),e)},e.prototype.getHeaderName=function(t,e,o,r,n){var i=t.headerValueGetter;if(i){var s={colDef:t,column:e,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!=t.headerName?t.headerName:t.field?ye(t.field):""},e.prototype.wrapHeaderNameWithAggFunc=function(t,e){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return e;var o,r=t.getColDef().pivotValueColumn,i=n(r),s=null;if(i){var a=this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn()&&1===this.valueColumns.length,l=void 0!==t.getColDef().pivotTotalColumnIds;if(a&&!l)return e;s=r?r.getAggFunc():null,o=!0}else{var u=t.isValueActive(),p=this.pivotMode||!this.isRowGroupEmpty();u&&p?(s=t.getAggFunc(),o=!0):o=!1}if(o){var c="string"===typeof s?s:"func",d=this.gridOptionsWrapper.getLocaleTextFunc(),h=d(c,c);return h+"("+e+")"}return e},e.prototype.getColumnGroup=function(t,e){if(!t)return null;if(t instanceof Vt)return t;var o=this.getAllDisplayedTrees(),r="number"===typeof e,n=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,(function(o){if(o instanceof Vt){var i=o,s=void 0;s=r?t===i.getGroupId()&&e===i.getInstanceId():t===i.getGroupId(),s&&(n=i)}})),n},e.prototype.isReady=function(){return this.ready},e.prototype.extractValueColumns=function(t,e){this.valueColumns=this.extractColumns(e,this.valueColumns,(function(e,o){return e.setValueActive(o,t)}),(function(){}),(function(){}),(function(t){var e=t.aggFunc;return null===e||""===e?null:void 0!==e?!!e:void 0}),(function(t){return null!=t.initialAggFunc&&""!=t.initialAggFunc})),this.valueColumns.forEach((function(t){var e=t.getColDef();null!=e.aggFunc&&""!=e.aggFunc?t.setAggFunc(e.aggFunc):t.getAggFunc()||t.setAggFunc(e.initialAggFunc)}))},e.prototype.extractRowGroupColumns=function(t,e){this.rowGroupColumns=this.extractColumns(e,this.rowGroupColumns,(function(e,o){return e.setRowGroupActive(o,t)}),(function(t){return t.rowGroupIndex}),(function(t){return t.initialRowGroupIndex}),(function(t){return t.rowGroup}),(function(t){return t.initialRowGroup}))},e.prototype.extractColumns=function(t,e,o,r,n,i,s){void 0===t&&(t=[]),void 0===e&&(e=[]);var a=[],p=[];(this.primaryColumns||[]).forEach((function(o){var c,d=t.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):e.indexOf(o)>=0,c){var R=d?null!=v||null!=y:null!=v;R?a.push(o):p.push(o)}}));var c=function(t){var e=r(t.getColDef()),o=n(t.getColDef());return null!=e?e:o};a.sort((function(t,e){var o=c(t),r=c(e);return o===r?0:o<r?-1:1}));var d=[].concat(a);return e.forEach((function(t){p.indexOf(t)>=0&&d.push(t)})),p.forEach((function(t){d.indexOf(t)<0&&d.push(t)})),e.forEach((function(t){d.indexOf(t)<0&&o(t,!1)})),d.forEach((function(t){e.indexOf(t)<0&&o(t,!0)})),d},e.prototype.extractPivotColumns=function(t,e){this.pivotColumns=this.extractColumns(e,this.pivotColumns,(function(e,o){return e.setPivotActive(o,t)}),(function(t){return t.pivotIndex}),(function(t){return t.initialPivotIndex}),(function(t){return t.pivot}),(function(t){return t.initialPivot}))},e.prototype.resetColumnGroupState=function(t){void 0===t&&(t="api");var e=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(t){if(t instanceof Wt){var o=t.getColGroupDef(),r={groupId:t.getGroupId(),open:o?o.openByDefault:void 0};e.push(r)}})),this.setColumnGroupState(e,t)},e.prototype.getColumnGroupState=function(){var t=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(e){e instanceof Wt&&t.push({groupId:e.getGroupId(),open:e.isExpanded()})})),t},e.prototype.setColumnGroupState=function(t,e){var o=this;void 0===e&&(e="api"),this.columnAnimationService.start();var r=[];t.forEach((function(t){var e=t.groupId,n=t.open,i=o.getProvidedColumnGroup(e);i&&i.isExpanded()!==n&&(o.logger.log("columnGroupOpened("+i.getGroupId()+","+n+")"),i.setExpanded(n),r.push(i))})),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e),r.forEach((function(t){var e={type:le.EVENT_COLUMN_GROUP_OPENED,columnGroup:t};o.eventService.dispatchEvent(e)})),this.columnAnimationService.finish()},e.prototype.setColumnGroupOpened=function(t,e,o){var r;void 0===o&&(o="api"),r=t instanceof Wt?t.getId():t||"",this.setColumnGroupState([{groupId:r,open:e}],o)},e.prototype.getProvidedColumnGroup=function(t){"string"!==typeof t&&console.error("AG Grid: group key must be a string");var e=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){o instanceof Wt&&o.getId()===t&&(e=o)})),e},e.prototype.calculateColumnsForDisplay=function(){var t,e=this;return t=this.pivotMode&&i(this.secondaryColumns)?this.gridColumns.filter((function(t){var o=e.groupAutoColumns&&It(e.groupAutoColumns,t),r=e.valueColumns&&It(e.valueColumns,t);return o||r})):this.gridColumns.filter((function(t){var o=e.groupAutoColumns&&It(e.groupAutoColumns,t);return o||t.isVisible()})),t},e.prototype.checkColSpanActiveInCols=function(t){var e=!1;return t.forEach((function(t){n(t.getColDef().colSpan)&&(e=!0)})),e},e.prototype.calculateColumnsForGroupDisplay=function(){var t=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var e=function(e){var o=e.getColDef(),r=o.showRowGroup;o&&n(r)&&(t.groupDisplayColumns.push(e),"string"===typeof r?t.groupDisplayColumnsMap[r]=e:!0===r&&t.getRowGroupColumns().forEach((function(o){t.groupDisplayColumnsMap[o.getId()]=e})))};this.gridColumns.forEach(e),this.groupAutoColumns&&this.groupAutoColumns.forEach(e)},e.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},e.prototype.getGroupDisplayColumnForGroup=function(t){return this.groupDisplayColumnsMap[t]},e.prototype.updateDisplayedColumns=function(t){var e=this.calculateColumnsForDisplay();this.buildDisplayedTrees(e),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t)},e.prototype.isSecondaryColumnsPresent=function(){return n(this.secondaryColumns)},e.prototype.setSecondaryColumns=function(t,e){var o=this;void 0===e&&(e="api");var r=t&&t.length>0;if(r||!i(this.secondaryColumns)){if(r){this.processSecondaryColumnDefinitions(t);var n=this.columnFactory.createColumnTree(t,!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(t){return o.secondaryColumnsMap[t.getId()]=t})),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(e)}},e.prototype.processSecondaryColumnDefinitions=function(t){var e=this.gridOptionsWrapper.getProcessPivotResultColDefFunc(),o=this.gridOptionsWrapper.getProcessPivotResultColGroupDefFunc();if(e||o){var r=function(t){t.forEach((function(t){var i=n(t.children);if(i){var s=t;o&&o(s),r(s.children)}else{var a=t;e&&e(a)}}))};t&&r(t)}},e.prototype.updateGridColumns=function(){var t=this,e=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(e){return void 0!==t.gridColumnsMap[e.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,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=Ce(this.groupAutoColumns.map((function(t){return[t,!0]})));o=o.filter((function(t){return!i.has(t)})),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(e){return t.gridColumnsMap[e.getId()]=e})),this.setAutoHeightActive(),!Rt(e,this.gridBalancedTree)){var s={type:le.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(s)}},e.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter((function(t){return t.isAutoHeight()})).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var t=this.rowModel.getType(),e=t===ft.ROW_MODEL_TYPE_CLIENT_SIDE||t===ft.ROW_MODEL_TYPE_SERVER_SIDE;if(!e){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")}}},e.prototype.orderGridColsLike=function(t){if(!i(t)){var e=Ce(t.map((function(t,e){return[t,e]}))),o=!0;if(this.gridColumns.forEach((function(t){e.has(t)&&(o=!1)})),!o){var r=Ce(this.gridColumns.map((function(t){return[t,!0]}))),n=t.filter((function(t){return r.has(t)})),s=Ce(n.map((function(t){return[t,!0]}))),a=this.gridColumns.filter((function(t){return!s.has(t)})),l=n.slice();a.forEach((function(t){var e=t.getOriginalParent();if(e){var o=[];while(!o.length&&e){var r=e.getLeafColumns();r.forEach((function(t){var e=l.indexOf(t)>=0,r=o.indexOf(t)<0;e&&r&&o.push(t)})),e=e.getOriginalParent()}if(o.length){var n=o.map((function(t){return l.indexOf(t)})),i=Math.max.apply(Math,Ko(n));Dt(l,t,i+1)}else l.push(t)}else l.push(t)})),this.gridColumns=l}}},e.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},e.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=(this.primaryColumns||[]).concat(this.groupAutoColumns):this.primaryColumns&&(this.columnsForQuickFilter=this.primaryColumns)},e.prototype.placeLockedColumns=function(t){var e=[],o=[],r=[];return t.forEach((function(t){var n=t.getColDef().lockPosition;"right"===n?r.push(t):"left"===n||!0===n?e.push(t):o.push(t)})),Ko(e,o,r)},e.prototype.addAutoGroupToGridColumns=function(){if(!i(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var t=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=t.concat(this.gridBalancedTree)}},e.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},e.prototype.updateGroupsAndDisplayedColumns=function(t){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(t),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var e={type:le.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(e)},e.prototype.deriveDisplayedColumns=function(t){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(t),this.displayedAutoHeightCols=this.displayedColumns.filter((function(t){return t.isAutoHeight()}))},e.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},e.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},e.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)},e.prototype.setLeftValues=function(t){this.setLeftValuesOfColumns(t),this.setLeftValuesOfGroups()},e.prototype.setLeftValuesOfColumns=function(t){var e=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=e.getWidthOfColsInList(n);n.forEach((function(e){i-=e.getActualWidth(),e.setLeft(i,t)}))}else{var s=0;n.forEach((function(e){e.setLeft(s,t),s+=e.getActualWidth()}))}Tt(o,n)})),o.forEach((function(e){e.setLeft(null,t)}))}},e.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(t){t.forEach((function(t){if(t instanceof Vt){var e=t;e.checkLeft()}}))}))},e.prototype.derivedDisplayedColumnsFromDisplayedTree=function(t,e){e.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(t,(function(t){t instanceof mt&&e.push(t)}))},e.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)},e.prototype.getVirtualHeaderGroupRow=function(t,e){var o;switch(t){case ft.PINNED_LEFT:o=this.viewportRowLeft[e];break;case ft.PINNED_RIGHT:o=this.viewportRowRight[e];break;default:o=this.viewportRowCenter[e];break}return i(o)&&(o=[]),o},e.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var t={};this.headerViewportColumns.forEach((function(e){return t[e.getId()]=!0}));var e=function(o,r,n){for(var i=!1,s=0;s<o.length;s++){var a=o[s],l=!1;if(a instanceof mt)l=!0===t[a.getId()];else{var u=a,p=u.getDisplayedChildren();p&&(l=e(p,r,n+1))}l&&(i=!0,r[n]||(r[n]=[]),r[n].push(a))}return i};e(this.displayedTreeLeft,this.viewportRowLeft,0),e(this.displayedTreeRight,this.viewportRowRight,0),e(this.displayedTreeCentre,this.viewportRowCenter,0)},e.prototype.extractViewport=function(){var t=function(t){return t.getId()+"-"+(t.getPinned()||"normal")};this.extractViewportColumns();var e=this.viewportColumns.map(t).join("#"),o=this.viewportColumnsHash!==e;return o&&(this.viewportColumnsHash=e,this.calculateHeaderRows()),o},e.prototype.refreshFlexedColumns=function(t){var e=this;void 0===t&&(t={});var o=t.source?t.source:"flex";if(null!=t.viewportWidth&&(this.flexViewportWidth=t.viewportWidth),!this.flexViewportWidth)return[];var r=-1;t.resizingCols&&t.resizingCols.forEach((function(t){var o=e.displayedColumnsCenter.indexOf(t);r<o&&(r=o)}));var i=function(t){var o=e.displayedColumnsCenter.indexOf(t)>r;return t.getFlex()&&o},s=this.displayedColumnsCenter.filter((function(t){return!i(t)})),a=this.displayedColumnsCenter.filter((function(t){return i(t)})),l=[];if(!a.length)return[];var u,p=[];t:while(1){var c=a.reduce((function(t,e){return t+e.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),Pt(a,h),l.push(h),s.push(h);continue t}p[d]=Math.round(f)}break}var m=u;return a.forEach((function(t,e){t.setActualWidth(Math.min(p[e],m),o),l.push(t),m-=p[e]})),t.skipSetLeft||this.setLeftValues(o),t.updateBodyWidths&&this.updateBodyWidths(),t.fireResizedEvent&&this.fireColumnResizedEvent(l,!0,o,a),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),a},e.prototype.sizeColumnsToFit=function(t,e,o,r){var i,s,a,l,u,p,c,d,h,f,g;void 0===e&&(e="sizeColumnsToFit");var v={};r&&(null===(s=null===(i=r)||void 0===i?void 0:i.columnLimits)||void 0===s||s.forEach((function(t){var e=t.key,o=jo(t,["key"]);v["string"===typeof e?e:e.getColId()]=o})));var y=this.getAllDisplayedColumns(),m=t===this.getWidthOfColsInList(y);if(!(t<=0||!y.length||m)){var C=[],w=[];y.forEach((function(t){!0===t.getColDef().suppressSizeToFit?w.push(t):C.push(t)}));var E=C.slice(0),R=!1,O=function(t){Pt(C,t),w.push(t)};C.forEach((function(t){return t.resetActualWidth(e)}));while(!R){R=!0;var S=t-this.getWidthOfColsInList(w);if(S<=0)C.forEach((function(t){var o,n,i,s,a=(i=null===(n=null===(o=v)||void 0===o?void 0:o[t.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?t.setMinimum(e):t.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,e,!0),b-=M}}E.forEach((function(t){t.fireColumnWidthChangedEvent(e)})),this.setLeftValues(e),this.updateBodyWidths(),o||this.fireColumnResizedEvent(E,!0,e)}},e.prototype.buildDisplayedTrees=function(t){var e=[],o=[],r=[];t.forEach((function(t){switch(t.getPinned()){case"left":e.push(t);break;case"right":o.push(t);break;default:r.push(t);break}}));var n=new ue;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(e,this.gridBalancedTree,n,ft.PINNED_LEFT,this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,n,ft.PINNED_RIGHT,this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(r,this.gridBalancedTree,n,null,this.displayedTreeCentre),this.updateDisplayedMap()},e.prototype.updateDisplayedMap=function(){var t=this;this.displayedColumnsAndGroupsMap={};var e=function(e){t.displayedColumnsAndGroupsMap[e.getUniqueId()]=e};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,e),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,e),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,e)},e.prototype.isDisplayed=function(t){var e=this.displayedColumnsAndGroupsMap[t.getUniqueId()];return e===t},e.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var t=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(t,(function(t){if(t instanceof Vt){var e=t;e.calculateDisplayedColumns()}}))},e.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},e.prototype.createGroupAutoColumnsIfNeeded=function(){if(!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var t=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),e=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn(),o=this.rowGroupColumns.length>0||this.usingTreeData,r=o&&!e&&!t;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},e.prototype.autoColsEqual=function(t,e){return Rt(t,e,(function(t,e){return t.getColId()===e.getColId()}))},e.prototype.getWidthOfColsInList=function(t){return t.reduce((function(t,e){return t+e.getActualWidth()}),0)},e.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},e.prototype.hasFloatingFilters=function(){if(!this.gridColumns)return!1;var t=this.gridColumns.some((function(t){return t.getColDef().floatingFilter}));return t},e.prototype.getFirstDisplayedColumn=function(){var t=this.gridOptionsWrapper.isEnableRtl(),e=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];t&&e.reverse();for(var o=0;o<e.length;o++){var r=this[e[o]]();if(r.length)return t?Et(r):r[0]}return null},e.prototype.setColumnHeaderHeight=function(t,e){var o=t.setAutoHeaderHeight(e);if(o){var r={type:le.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:t,columns:[t],source:"autosizeColumnHeaderHeight"};this.eventService.dispatchEvent(r)}},e.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.gridOptionsWrapper.getPivotGroupHeaderHeight():this.gridOptionsWrapper.getGroupHeaderHeight()},e.prototype.getColumnHeaderRowHeight=function(){var t=this.isPivotMode()?this.gridOptionsWrapper.getPivotHeaderHeight():this.gridOptionsWrapper.getHeaderHeight(),e=this.getAllDisplayedColumns().filter((function(t){return t.isAutoHeaderHeight()})).map((function(t){return t.getAutoHeaderHeight()||0}));return Math.max.apply(Math,Ko([t],e))},ko([nt("expressionService")],e.prototype,"expressionService",void 0),ko([nt("columnFactory")],e.prototype,"columnFactory",void 0),ko([nt("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),ko([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),ko([nt("autoWidthCalculator")],e.prototype,"autoWidthCalculator",void 0),ko([nt("columnUtils")],e.prototype,"columnUtils",void 0),ko([nt("columnAnimationService")],e.prototype,"columnAnimationService",void 0),ko([nt("autoGroupColService")],e.prototype,"autoGroupColService",void 0),ko([it("aggFuncService")],e.prototype,"aggFuncService",void 0),ko([it("valueCache")],e.prototype,"valueCache",void 0),ko([it("animationFrameService")],e.prototype,"animationFrameService",void 0),ko([nt("rowModel")],e.prototype,"rowModel",void 0),ko([nt("sortController")],e.prototype,"sortController",void 0),ko([nt("columnDefFactory")],e.prototype,"columnDefFactory",void 0),ko([et],e.prototype,"init",null),ko([Bo(0,at("loggerFactory"))],e.prototype,"setBeans",null),e=ko([rt("columnModel")],e),e}(re),qo=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xo=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Qo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qo(e,t),e.prototype.calculateColMinWidth=function(t){return null!=t.minWidth?t.minWidth:this.gridOptionsWrapper.getMinColWidth()},e.prototype.calculateColMaxWidth=function(t){return null!=t.maxWidth?t.maxWidth:this.gridOptionsWrapper.getMaxColWidth()||Number.MAX_SAFE_INTEGER},e.prototype.calculateColInitialWidth=function(t){var e,o=this.calculateColMinWidth(t),r=this.calculateColMaxWidth(t),n=l(t.width),i=l(t.initialWidth);return e=null!=n?n:null!=i?i:this.gridOptionsWrapper.getColWidth(),Math.max(Math.min(e,r),o)},e.prototype.getOriginalPathForColumn=function(t,e){var o=[],r=!1,n=function(e,i){for(var s=0;s<e.length;s++){if(r)return;var a=e[s];if(a instanceof Wt){var l=a;n(l.getChildren(),i+1),o[i]=a}else a===t&&(r=!0)}};return n(e,0),r?o:null},e.prototype.depthFirstOriginalTreeSearch=function(t,e,o){var r=this;e&&e.forEach((function(e){e instanceof Wt&&r.depthFirstOriginalTreeSearch(e,e.getChildren(),o),o(e,t)}))},e.prototype.depthFirstAllColumnTreeSearch=function(t,e){var o=this;t&&t.forEach((function(t){t instanceof Vt&&o.depthFirstAllColumnTreeSearch(t.getChildren(),e),e(t)}))},e.prototype.depthFirstDisplayedColumnTreeSearch=function(t,e){var o=this;t&&t.forEach((function(t){t instanceof Vt&&o.depthFirstDisplayedColumnTreeSearch(t.getDisplayedChildren(),e),e(t)}))},e=Xo([rt("columnUtils")],e),e}(re),Jo=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zo=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},$o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jo(e,t),e.prototype.createDisplayedGroups=function(t,e,o,r,n){var i,s,a=this,l=[],u=this.mapOldGroupsById(n);return t.forEach((function(t){for(var n=a.getOriginalPathForColumn(e,t),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(t);else{var g=Et(p);g.addChild(t)}i=p,s=n})),this.setupParentsIntoColumns(l,null),l},e.prototype.createColumnGroup=function(t,e,o,r){var i=t.getGroupId(),s=e.getInstanceIdForKey(i),a=Vt.createUniqueId(i,s),l=o[a];return l&&l.getProvidedColumnGroup()!==t&&(l=null),n(l)?l.reset():(l=new Vt(t,i,s,r),this.context.createBean(l)),l},e.prototype.mapOldGroupsById=function(t){var e={},o=function(t){t.forEach((function(t){if(t instanceof Vt){var r=t;e[t.getUniqueId()]=r,o(r.getChildren())}}))};return t&&o(t),e},e.prototype.setupParentsIntoColumns=function(t,e){var o=this;t.forEach((function(t){if(t.setParent(e),t instanceof Vt){var r=t;o.setupParentsIntoColumns(r.getChildren(),r)}}))},e.prototype.getOriginalPathForColumn=function(t,e){var o=[],r=!1,n=function(t,i){for(var s=0;s<t.length;s++){if(r)return;var a=t[s];a instanceof Wt?(n(a.getChildren(),i+1),o[i]=a):a===e&&(r=!0)}};return n(t,0),r?o:(console.warn("AG Grid: could not get path"),null)},e=Zo([rt("displayedGroupCreator")],e),e}(re),tr=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),er=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},or=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.componentsMappedByName={},e}return tr(e,t),e.prototype.setupComponents=function(t){var e=this;t&&t.forEach((function(t){return e.addComponent(t)}))},e.prototype.addComponent=function(t){var e=t.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.toUpperCase();this.componentsMappedByName[o]=t.componentClass},e.prototype.getComponentClass=function(t){return this.componentsMappedByName[t]},e=er([rt("agStackComponentsRegistry")],e),e}(re),rr=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t(t,e,o,r){void 0===r&&(r=1),this.r=Math.min(1,Math.max(0,t||0)),this.g=Math.min(1,Math.max(0,e||0)),this.b=Math.min(1,Math.max(0,o||0)),this.a=Math.min(1,Math.max(0,r||0))}return t.fromString=function(e){if(e.indexOf("#")>=0)return t.fromHexString(e);var o=t.nameToHex[e];if(o)return t.fromHexString(o);if(e.indexOf("rgb")>=0)return t.fromRgbaString(e);throw new Error("Invalid color string: '"+e+"'")},t.parseHex=function(t){var e;switch(t=t.replace(/ /g,"").slice(1),t.length){case 6:case 8:e=[];for(var o=0;o<t.length;o+=2)e.push(parseInt(""+t[o]+t[o+1],16));break;case 3:case 4:e=t.split("").map((function(t){return parseInt(t,16)})).map((function(t){return t+16*t}));break}if(e.length>=3&&e.every((function(t){return t>=0})))return 3===e.length&&e.push(255),e},t.fromHexString=function(e){var o=t.parseHex(e);if(o){var r=rr(o,4),n=r[0],i=r[1],s=r[2],a=r[3];return new t(n/255,i/255,s/255,a/255)}throw new Error("Malformed hexadecimal color string: '"+e+"'")},t.stringToRgba=function(t){for(var e=rr([NaN,NaN],2),o=e[0],r=e[1],n=0;n<t.length;n++){var i=t[n];if(o||"("!==i){if(")"===i){r=n;break}}else o=n}var s=o&&r&&t.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}},t.fromRgbaString=function(e){var o=t.stringToRgba(e);if(o){if(3===o.length)return new t(o[0],o[1],o[2]);if(4===o.length)return new t(o[0],o[1],o[2],o[3])}throw new Error("Malformed rgb/rgba color string: '"+e+"'")},t.fromArray=function(e){if(4===e.length)return new t(e[0],e[1],e[2],e[3]);if(3===e.length)return new t(e[0],e[1],e[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},t.fromHSB=function(e,o,r,n){void 0===n&&(n=1);var i=t.HSBtoRGB(e,o,r);return new t(i[0],i[1],i[2],n)},t.padHex=function(t){return 1===t.length?"0"+t:t},t.prototype.toHexString=function(){var e="#"+t.padHex(Math.round(255*this.r).toString(16))+t.padHex(Math.round(255*this.g).toString(16))+t.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(e+=t.padHex(Math.round(255*this.a).toString(16))),e},t.prototype.toRgbaString=function(t){void 0===t&&(t=3);var e=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],o=Math.pow(10,t);return 1!==this.a?(e.push(Math.round(this.a*o)/o),"rgba("+e.join(", ")+")"):"rgb("+e.join(", ")+")"},t.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},t.prototype.toHSB=function(){return t.RGBtoHSB(this.r,this.g,this.b)},t.RGBtoHSB=function(t,e,o){var r=Math.min(t,e,o),n=Math.max(t,e,o),i=0!==n?(n-r)/n:0,s=NaN;if(r!==n){var a=n-r,l=(n-t)/a,u=(n-e)/a,p=(n-o)/a;s=t===n?p-u:e===n?2+l-p:4+u-l,s/=6,s<0&&(s+=1)}return[360*s,i,n]},t.HSBtoRGB=function(t,e,o){isNaN(t)&&(t=0),t=(t%360+360)%360/360;var r=0,n=0,i=0;if(0===e)r=n=i=o;else{var s=6*(t-Math.floor(t)),a=s-Math.floor(s),l=o*(1-e),u=o*(1-e*a),p=o*(1-e*(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]},t.prototype.derive=function(e,o,r,n){var i=t.RGBtoHSB(this.r,this.g,this.b),s=i[2];0==s&&r>1&&(s=.05);var a=((i[0]+e)%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=t.HSBtoRGB(a,l,s);return p.push(u),t.fromArray(p)},t.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},t.prototype.darker=function(){return this.derive(0,1,.7,1)},t.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"}),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 */ /** * @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(t,e){void 0===e&&(e=",");var o=[],r=function(t){return"\r"===t||"\n"===t},n=!1;if(""===t)return[[""]];for(var i,s,a,l=function(l,u,p){var c=t[p-1],d=t[p],h=t[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===e||r(c))return n=!0,i=l,s=u,a=p,"continue"}if(!n){if(d===e)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<t.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(t,e,o){var r=t.parentElement,n=r&&r.firstChild;while(n)e&&n.classList.toggle(e,n===t),o&&n.classList.toggle(o,n!==t),n=n.nextSibling}function ur(t){var e=Element.prototype.matches||Element.prototype.msMatchesSelector,o=e.call(t,ft.INPUT_SELECTOR),r=e.call(t,ft.FOCUSABLE_EXCLUDE),n=_r(t),i=o&&!r&&n;return i}function pr(t,e){t.classList.toggle("ag-hidden",!e)}function cr(t,e){t.classList.toggle("ag-invisible",!e)}function dr(t,e){var o="disabled",r=e?function(t){return t.setAttribute(o,"")}:function(t){return t.removeAttribute(o)};r(t),Qr(t.querySelectorAll("input"),(function(t){return r(t)}))}function hr(t,e,o){var r=0;while(t){if(t.classList.contains(e))return!0;if(t=t.parentElement,"number"==typeof o){if(++r>o)break}else if(t===o)break}return!1}function fr(t){var e=window.getComputedStyle(t),o=e.height,r=e.width,n=e.paddingTop,i=e.paddingRight,s=e.paddingBottom,a=e.paddingLeft,l=e.marginTop,u=e.marginRight,p=e.marginBottom,c=e.marginLeft,d=e.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(t){var e=fr(t);return"border-box"===e.boxSizing?e.height-e.paddingTop-e.paddingBottom:e.height}function vr(t){var e=fr(t);return"border-box"===e.boxSizing?e.width-e.paddingLeft-e.paddingRight:e.width}function yr(t){var e=fr(t),o=e.marginBottom+e.marginTop;return Math.ceil(t.offsetHeight+o)}function mr(t){var e=fr(t),o=e.marginLeft+e.marginRight;return Math.ceil(t.offsetWidth+o)}function Cr(){if("boolean"===typeof sr)return sr;var t=document.createElement("div");return t.style.direction="rtl",t.style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.top="0px",t.style.overflow="hidden",t.dir="rtl",t.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(t),t.scrollLeft=1,sr=0===Math.floor(t.scrollLeft),document.body.removeChild(t),sr}function wr(t,e){var o=t.scrollLeft;return e&&(o=Math.abs(o),Xe()&&!Cr()&&(o=t.scrollWidth-t.clientWidth-o)),o}function Er(t,e,o){o&&(Cr()?e*=-1:(qe()||Xe())&&(e=t.scrollWidth-t.clientWidth-e)),t.scrollLeft=e}function Rr(t){while(t&&t.firstChild)t.removeChild(t.firstChild)}function Or(t,e){Sr(t.querySelector(e))}function Sr(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function _r(t){return null!==t.offsetParent}function br(t){var e=document.createElement("div");return e.innerHTML=(t||"").trim(),e.firstChild}function Pr(t,e){t.lastChild?t.insertAdjacentHTML("afterbegin",e):t.innerHTML=e}function Tr(t,e){if(t.attributes&&t.attributes[e]){var o=t.attributes[e];return o.value}return null}function Dr(t){return t&&t.clientHeight?t.clientHeight:0}function Ar(t){return t&&t.clientWidth?t.clientWidth:0}function Nr(t,e,o){if(!o||o.nextSibling!==e){var r=document.activeElement,n=e.contains(r);o?o.nextSibling?t.insertBefore(e,o.nextSibling):t.appendChild(e):t.firstChild&&t.firstChild!==e&&t.insertAdjacentElement("afterbegin",e),n&&r&&$e()&&r.focus({preventScroll:!0})}}function Ir(t,e){for(var o=0;o<e.length;o++){var r=e[o],n=t.children[o];n!==r&&t.insertBefore(r,n)}}function Gr(t,e,o){o?o.insertAdjacentElement("afterend",e):t.firstChild?t.insertAdjacentElement("afterbegin",e):t.appendChild(e)}function Fr(t,e){n(t.firstChild)?t.insertBefore(e,t.firstChild):t.appendChild(e)}function Lr(t,e){e&&Object.keys(e).forEach((function(o){var r=fe(o);r&&(t.style[r]=e[o])}))}function Mr(t){return t.clientWidth<t.scrollWidth}function xr(t){return t.clientHeight<t.scrollHeight}function Hr(t,e){"flex"===e?(t.style.removeProperty("width"),t.style.removeProperty("minWidth"),t.style.removeProperty("maxWidth"),t.style.flex="1 1 auto"):Vr(t,e)}function Vr(t,e){e=Br(e),t.style.width=e.toString(),t.style.maxWidth=e.toString(),t.style.minWidth=e.toString()}function Wr(t,e){"flex"===e?(t.style.removeProperty("height"),t.style.removeProperty("minHeight"),t.style.removeProperty("maxHeight"),t.style.flex="1 1 auto"):kr(t,e)}function kr(t,e){e=Br(e),t.style.height=e.toString(),t.style.maxHeight=e.toString(),t.style.minHeight=e.toString()}function Br(t){return"number"===typeof t?t+"px":t}function jr(t){return"function"===typeof Node?t instanceof Node:t&&"object"===typeof t&&"number"===typeof t.nodeType&&"string"===typeof t.nodeName}function Ur(t){return"function"===typeof HTMLElement?t instanceof HTMLElement:t&&F(t)&&1===t.nodeType&&"string"===typeof t.nodeName}function zr(t){return jr(t)||Ur(t)}function Kr(t){if(null==t)return[];var e=[];return Qr(t,(function(t){return e.push(t)})),e}function Yr(t,e){if(t)for(var o=0;o<t.length;o++){var r=t[o];e(r.name,r.value)}}function qr(t,e){"boolean"===typeof e?(t.checked=e,t.indeterminate=!1):t.indeterminate=!0}function Xr(t,e,o){null==o?t.removeAttribute(e):t.setAttribute(e,o.toString())}function Qr(t,e){if(null!=t)for(var o=0;o<t.length;o++)e(t[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(t){var e=/function (.{1,})\(/,o=t.toString(),r=e.exec(o);return r&&r.length>1?r[1]:""}function $r(t){var e=t.length,o=0;if(e<=1)return t;for(var r=0;r<t.length;r++){var n=t[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<e;c++)p=t[c],s+=c,a+=p,u+=c*c,l+=c*p;var d=(e*l-s*a)/(e*u-s*s),h=a/e-d*s/e,f=[];for(c=0;c<=e;c++)f.push(parseFloat((c*d+h).toFixed(o)));return f}function tn(t){if(!t)return"";var e=[];return y(t,(function(t,o){var r=he(t);e.push(r+": "+o+";")})),e.join(" ")}function en(t){var e=document.createElement("div"),o=document.querySelector("#__ag__message");if(e.innerHTML=t,!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(e,o.children[0])}function on(t,e){t.then((function(t){var o=t.getGui();null!=o&&("object"===typeof o?e.appendChild(o):e.innerHTML=o)}))}var rn=Object.freeze({__proto__:null,getNameOfClass:Zr,findLineByLeastSquares:$r,cssStyleObjectToMarkup:tn,message:en,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(t,e,o){t.setAttribute(an(e),o.toString())}function sn(t,e){t.removeAttribute(an(e))}function an(t){return"aria-"+t}function ln(t,e){e?t.setAttribute("role",e):t.removeAttribute("role")}function un(t){var e;return e=t.isSortAscending()?"ascending":t.isSortDescending()?"descending":"none",e}function pn(t){return parseInt(t.getAttribute("aria-level"),10)}function cn(t){return parseInt(t.getAttribute("aria-posinset"),10)}function dn(t){return t.getAttribute("aria-describedby")||""}function hn(t,e){var o="label";null!=e&&""!==e?nn(t,o,e):sn(t,o)}function fn(t,e){var o="labelledby";e?nn(t,o,e):sn(t,o)}function gn(t,e){var o="description";e?nn(t,o,e):sn(t,o)}function vn(t,e){var o="describedby";e?nn(t,o,e):sn(t,o)}function yn(t,e){nn(t,"level",e)}function mn(t,e){nn(t,"disabled",e)}function Cn(t,e){e?nn(t,"hidden",!0):sn(t,"hidden")}function wn(t,e){nn(t,"expanded",e)}function En(t){sn(t,"expanded")}function Rn(t,e){nn(t,"setsize",e)}function On(t,e){nn(t,"posinset",e)}function Sn(t,e){nn(t,"multiselectable",e)}function _n(t,e){nn(t,"rowcount",e)}function bn(t,e){nn(t,"rowindex",e)}function Pn(t,e){nn(t,"colcount",e)}function Tn(t,e){nn(t,"colindex",e)}function Dn(t,e){nn(t,"colspan",e)}function An(t,e){nn(t,"sort",e)}function Nn(t){sn(t,"sort")}function In(t,e){var o="selected";e?nn(t,o,e):sn(t,o)}function Gn(t,e){nn(t,"checked",void 0===e?"mixed":e)}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(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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(t,e,o){if(void 0===e&&(e=!0),void 0===o&&(o="-"),!t)return null;var r=[t.getFullYear(),t.getMonth()+1,t.getDate()].map((function(t){return vo(t,2)})).join(o);return e&&(r+=" "+[t.getHours(),t.getMinutes(),t.getSeconds()].map((function(t){return vo(t,2)})).join(":")),r}var xn=function(t){if(t>3&&t<21)return"th";var e=t%10;switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Hn(t,e){void 0===e&&(e="YYYY-MM-DD");var o=vo(t.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""+t.getFullYear()},MMMM:function(){return r[t.getMonth()]},MMM:function(){return r[t.getMonth()].slice(0,3)},MM:function(){return vo(t.getMonth()+1,2)},Mo:function(){return""+(t.getMonth()+1)+xn(t.getMonth()+1)},M:function(){return""+(t.getMonth()+1)},Do:function(){return""+t.getDate()+xn(t.getDate())},DD:function(){return vo(t.getDate(),2)},D:function(){return""+t.getDate()},dddd:function(){return n[t.getDay()]},ddd:function(){return n[t.getDay()].slice(0,3)},dd:function(){return n[t.getDay()].slice(0,2)},do:function(){return""+t.getDay()+xn(t.getDay())},d:function(){return""+t.getDay()}},s=new RegExp(Object.keys(i).join("|"),"g");return e.replace(s,(function(t){return t in i?i[t]():t}))}function Vn(t){if(!t)return null;var e=Ln(t.split(" "),2),o=e[0],r=e[1];if(!o)return null;var n=o.split("-").map((function(t){return parseInt(t,10)}));if(3!==n.filter((function(t){return!isNaN(t)})).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(t){return parseInt(t,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(t,e,o){var r=jn(t,e,o);if(r&&r.className.indexOf("ag-icon")>-1)return r;var n=document.createElement("span");return n.appendChild(r),n}function jn(t,e,o,r){var n=null,i=o&&o.getColDef().icons;if(i&&(n=i[t]),e&&!n){var s=e.getIcons();s&&(n=s[t])}if(!n){var a=document.createElement("span"),l=kn[t];return l||(r?l=t:(console.warn("AG Grid: Did not find icon "+t),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 t(){}return t.BACKSPACE="Backspace",t.TAB="Tab",t.ENTER="Enter",t.ESCAPE="Escape",t.SPACE=" ",t.LEFT="ArrowLeft",t.UP="ArrowUp",t.RIGHT="ArrowRight",t.DOWN="ArrowDown",t.DELETE="Delete",t.F2="F2",t.PAGE_UP="PageUp",t.PAGE_DOWN="PageDown",t.PAGE_HOME="Home",t.PAGE_END="End",t.A="KeyA",t.C="KeyC",t.V="KeyV",t.D="KeyD",t.Z="KeyZ",t.Y="KeyY",t}(),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 ti(t){if(t.altKey||t.ctrlKey||t.metaKey)return!1;var e=1===t.key.length,o=ri(t);return e||o}function ei(t,e,o,r,n){var i=t.getSuppressKeyboardEventFunc(),s=r?r.getColDef().suppressKeyboardEvent:void 0;if(!i&&!s)return!1;var a={event:e,editing:n,column:r,api:t.getApi(),node:o,data:o.data,colDef:r.getColDef(),context:t.getContext(),columnApi:t.getColumnApi()};if(s){var l=s(a);if(l)return!0}return!!i&&i(a)}function oi(t,e,o,r){var i=r.getDefinition(),s=i&&i.suppressHeaderKeyboardEvent;if(!n(s))return!1;var a={api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext(),colDef:i,column:r,headerRowIndex:o,event:e};return!!s(a)}function ri(t){return Ye()&&t.key===Kn&&t.charCode===Yn}function ni(t){var e,o=t.keyCode;switch(o){case qn:e=zn.A;break;case Xn:e=zn.C;break;case Qn:e=zn.V;break;case Jn:e=zn.D;break;case Zn:e=zn.Z;break;case $n:e=zn.Y;break;default:e=t.code}return e}function ii(t,e){return void 0===e&&(e=!1),t===zn.DELETE||!e&&t===zn.BACKSPACE&&Je()}var si=Object.freeze({__proto__:null,isEventFromPrintableCharacter:ti,isUserSuppressingKeyboardEvent:ei,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(t,e,o){if(0===o)return!1;var r=Math.abs(t.clientX-e.clientX),n=Math.abs(t.clientY-e.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(t,e){if(!t)return!1;for(var o,r,n=function(t,o){var r=e[t.id],n=e[o.id],i=void 0!==r,s=void 0!==n,a=i&&s,l=!i&&!s;return a?r-n:l?t.__objectId-o.__objectId:i?1:-1},i=!1,s=0;s<t.length-1;s++)if(o=t[s],r=t[s+1],n(o,r)>0){i=!0;break}return!!i&&(t.sort(n),!0)}function pi(t,e){var o=[];function r(t){t&&t.forEach((function(t){if(t.group||t.hasChildren()){o.push(t.key);var n=o.join("|");e(t,n),r(t.childrenAfterGroup),o.pop()}}))}r(t)}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(t){var e=new Set;return t.forEach((function(t){return e.add(t)})),e}var hi,fi=Object.freeze({__proto__:null,convertToSet:di}),gi=function(){return gi=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},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),xt),lo),ar),Wn),Jr),ee),J),go),g),Un),si),Re),li),So),L),ci),fi),me),yi=vi,mi=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=1),this.nextValue=t,this.step=e}return t.prototype.next=function(){var t=this.nextValue;return this.nextValue+=this.step,t},t.prototype.peek=function(){return this.nextValue},t.prototype.skip=function(t){this.nextValue+=t},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 */(function(t){t[t["IN_PROGRESS"]=0]="IN_PROGRESS",t[t["RESOLVED"]=1]="RESOLVED"})(hi||(hi={}));var Ci,wi=function(){function t(t){var e=this;this.status=hi.IN_PROGRESS,this.resolution=null,this.waiters=[],t((function(t){return e.onDone(t)}),(function(t){return e.onReject(t)}))}return t.all=function(e){return new t((function(t){var o=e.length,r=new Array(o);e.forEach((function(e,n){e.then((function(e){r[n]=e,o--,0===o&&t(r)}))}))}))},t.resolve=function(e){return void 0===e&&(e=null),new t((function(t){return t(e)}))},t.prototype.then=function(e){var o=this;return new t((function(t){o.status===hi.RESOLVED?t(e(o.resolution)):o.waiters.push((function(o){return t(e(o))}))}))},t.prototype.resolveNow=function(t,e){return this.status===hi.RESOLVED?e(this.resolution):t},t.prototype.onDone=function(t){this.status=hi.RESOLVED,this.resolution=t,this.waiters.forEach((function(e){return e(t)}))},t.prototype.onReject=function(t){console.warn("TBI")},t}(),Ei=(function(){function t(){this.timestamp=(new Date).getTime()}t.prototype.print=function(t){var e=(new Date).getTime()-this.timestamp;console.info(t+" = "+e),this.timestamp=(new Date).getTime()}}(),function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}()),Ri=function(){return Ri=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},Ri.apply(this,arguments)},Oi=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,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(t){t[t["NOTHING"]=0]="NOTHING",t[t["WAITING_TO_SHOW"]=1]="WAITING_TO_SHOW",t[t["SHOWING"]=2]="SHOWING"})(Ci||(Ci={}));var Si=function(t){function e(e){var o=t.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=e,o}return Ei(e,t),e.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 t=this.parentComp.getGui();this.addManagedListener(t,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(t,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(t,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(t,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(t,"keydown",this.onKeyDown.bind(this))},e.prototype.destroy=function(){this.setToDoNothing(),t.prototype.destroy.call(this)},e.prototype.onMouseEnter=function(t){if(!Ze()&&this.state==Ci.NOTHING){var e=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),e),this.lastMouseEvent=t,this.state=Ci.WAITING_TO_SHOW}},e.prototype.onMouseLeave=function(){this.setToDoNothing()},e.prototype.onKeyDown=function(){this.setToDoNothing()},e.prototype.setToDoNothing=function(){this.state===Ci.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=Ci.NOTHING},e.prototype.onMouseMove=function(t){this.lastMouseEvent=t,this.tooltipMouseTrack&&this.state===Ci.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},e.prototype.onMouseDown=function(){this.setToDoNothing()},e.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),e.lastTooltipHideTime=(new Date).getTime()),this.state=Ci.NOTHING},e.prototype.destroyTooltipComp=function(){var t=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var e=this.tooltipPopupDestroyFunc,o=this.tooltipComp;window.setTimeout((function(){e(),t.getContext().destroyBean(o)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},e.prototype.isLastTooltipHiddenRecently=function(){var t=(new Date).getTime(),o=e.lastTooltipHideTime;return t-o<this.SHOW_QUICK_TOOLTIP_DIFF},e.prototype.showTooltip=function(){var t=Ri({},this.parentComp.getTooltipParams());if(n(t.value)){this.state=Ci.SHOWING,this.tooltipInstanceCount++;var e=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount),o=this.userComponentFactory.getTooltipCompDetails(t);o.newAgStackInstance().then(e)}else this.setToDoNothing()},e.prototype.newTooltipComponentCallback=function(t,e){var o=this.state!==Ci.SHOWING||this.tooltipInstanceCount!==t;if(o)this.getContext().destroyBean(e);else{var r=e.getGui();this.tooltipComp=e,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)}},e.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack})},e.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},Oi([nt("popupService")],e.prototype,"popupService",void 0),Oi([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Oi([nt("columnApi")],e.prototype,"columnApi",void 0),Oi([nt("gridApi")],e.prototype,"gridApi",void 0),Oi([et],e.prototype,"postConstruct",null),e}(re),_i=function(){function t(t){this.cssClassStates={},this.getGui=t}return t.prototype.addCssClass=function(t){var e=this,o=(t||"").split(" ");if(o.length>1)o.forEach((function(t){return e.addCssClass(t)}));else{var r=!0!==this.cssClassStates[t];if(r&&t.length){var n=this.getGui();n&&n.classList.add(t),this.cssClassStates[t]=!0}}},t.prototype.removeCssClass=function(t){var e=this,o=(t||"").split(" ");if(o.length>1)o.forEach((function(t){return e.removeCssClass(t)}));else{var r=!1!==this.cssClassStates[t];if(r&&t.length){var n=this.getGui();n&&n.classList.remove(t),this.cssClassStates[t]=!1}}},t.prototype.containsCssClass=function(t){var e=this.getGui();return!!e&&e.classList.contains(t)},t.prototype.addOrRemoveCssClass=function(t,e){var o=this;if(t){if(t.indexOf(" ")>=0){var r=(t||"").split(" ");if(r.length>1)return void r.forEach((function(t){return o.addOrRemoveCssClass(t,e)}))}var n=this.cssClassStates[t]!==e;if(n&&t.length){var i=this.getGui();i&&i.classList.toggle(t,e),this.cssClassStates[t]=e}}},t}(),bi=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Pi=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Ti=new mi,Di=function(t){function e(e){var o=t.call(this)||this;return o.displayed=!0,o.visible=!0,o.compId=Ti.next(),o.cssClassManager=new _i((function(){return o.eGui})),e&&o.setTemplate(e),o}return bi(e,t),e.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsWrapper.isEnableBrowserTooltips()},e.prototype.getCompId=function(){return this.compId},e.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},e.prototype.setTooltip=function(t){var e=this,o=function(){e.usingBrowserTooltips?e.getGui().removeAttribute("title"):e.tooltipFeature=e.destroyBean(e.tooltipFeature)},r=function(){e.usingBrowserTooltips?e.getGui().setAttribute("title",e.tooltipText):e.tooltipFeature=e.createBean(new Si(e))};this.tooltipText!=t&&(this.tooltipText&&o(),null!=t&&(this.tooltipText=t,this.tooltipText&&r()))},e.prototype.createChildComponentsFromTags=function(t,e){var o=this,r=Kr(t.childNodes);r.forEach((function(r){if(r instanceof HTMLElement){var n=o.createComponentFromElement(r,(function(t){var e=t.getGui();e&&o.copyAttributesFromNode(r,t.getGui())}),e);if(n){if(n.addItems&&r.children.length){o.createChildComponentsFromTags(r,e);var i=Array.prototype.slice.call(r.children);n.addItems(i)}o.swapComponentForNode(n,t,r)}else r.childNodes&&o.createChildComponentsFromTags(r,e)}}))},e.prototype.createComponentFromElement=function(t,o,r){var n=t.nodeName,i=r?r[t.getAttribute("ref")]:void 0,s=this.agStackComponentsRegistry.getComponentClass(n);if(s){e.elementGettingCreated=t;var a=new s(i);return a.setParentComponent(this),this.createBean(a,null,o),a}return null},e.prototype.copyAttributesFromNode=function(t,e){Yr(t.attributes,(function(t,o){return e.setAttribute(t,o)}))},e.prototype.swapComponentForNode=function(t,e,o){var r=t.getGui();e.replaceChild(r,o),e.insertBefore(document.createComment(o.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,t)),this.swapInComponentForQuerySelectors(t,o)},e.prototype.swapInComponentForQuerySelectors=function(t,e){var o=this;this.iterateOverQuerySelectors((function(r){o[r.attributeName]===e&&(o[r.attributeName]=t)}))},e.prototype.iterateOverQuerySelectors=function(t){var e=Object.getPrototypeOf(this);while(null!=e){var o=e.__agComponentMetaData,r=H(e.constructor);o&&o[r]&&o[r].querySelectors&&o[r].querySelectors.forEach((function(e){return t(e)})),e=Object.getPrototypeOf(e)}},e.prototype.setTemplate=function(t,e){var o=br(t);this.setTemplateFromElement(o,e)},e.prototype.setTemplateFromElement=function(t,e){this.eGui=t,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),e)},e.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},e.prototype.wireQuerySelectors=function(){var t=this;if(this.eGui){var e=this;this.iterateOverQuerySelectors((function(o){var r=function(t){return e[o.attributeName]=t},n=o.refSelector&&t.eGui.getAttribute("ref")===o.refSelector;if(n)r(t.eGui);else{var i=t.eGui.querySelector(o.querySelector);i&&r(i.__agComponent||i)}}))}},e.prototype.getGui=function(){return this.eGui},e.prototype.getFocusableElement=function(){return this.eGui},e.prototype.setParentComponent=function(t){this.parentComponent=t},e.prototype.getParentComponent=function(){return this.parentComponent},e.prototype.setGui=function(t){this.eGui=t},e.prototype.queryForHtmlElement=function(t){return this.eGui.querySelector(t)},e.prototype.queryForHtmlInputElement=function(t){return this.eGui.querySelector(t)},e.prototype.appendChild=function(t,e){if(null!=t)if(e||(e=this.eGui),zr(t))e.appendChild(t);else{var o=t;e.appendChild(o.getGui())}},e.prototype.isDisplayed=function(){return this.displayed},e.prototype.setVisible=function(t){t!==this.visible&&(this.visible=t,cr(this.eGui,t))},e.prototype.setDisplayed=function(t){if(t!==this.displayed){this.displayed=t,pr(this.eGui,t);var o={type:e.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(o)}},e.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),t.prototype.destroy.call(this)},e.prototype.addGuiEventListener=function(t,e){var o=this;this.eGui.addEventListener(t,e),this.addDestroyFunc((function(){return o.eGui.removeEventListener(t,e)}))},e.prototype.addCssClass=function(t){this.cssClassManager.addCssClass(t)},e.prototype.removeCssClass=function(t){this.cssClassManager.removeCssClass(t)},e.prototype.containsCssClass=function(t){return this.cssClassManager.containsCssClass(t)},e.prototype.addOrRemoveCssClass=function(t,e){this.cssClassManager.addOrRemoveCssClass(t,e)},e.prototype.getAttribute=function(t){var e=this.eGui;return e?e.getAttribute(t):null},e.prototype.getRefElement=function(t){return this.queryForHtmlElement('[ref="'+t+'"]')},e.EVENT_DISPLAYED_CHANGED="displayedChanged",Pi([nt("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),Pi([tt],e.prototype,"preConstructOnComponent",null),Pi([tt],e.prototype,"createChildComponentsPreConstruct",null),e}(re); /** * @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(t){return Ni.bind(this,"[ref="+t+"]",t)}function Ni(t,e,o,r,n){null!==t?"number"!==typeof n?Ii(o,"querySelectors",{attributeName:r,querySelector:t,refSelector:e}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}function Ii(t,e,o){var r=Gi(t,H(t.constructor));r[e]||(r[e]=[]),r[e].push(o)}function Gi(t,e){return t.__agComponentMetaData||(t.__agComponentMetaData={}),t.__agComponentMetaData[e]||(t.__agComponentMetaData[e]={}),t.__agComponentMetaData[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 Fi,Li=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Mi=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},xi=function(t){function e(){return t.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(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){this.params=t;var e=this.columnModel.getDisplayNameForColumn(t.column,"header",!0),o=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(e+" "+o("ariaFilterInput","Filter Input"))},e.prototype.onParentModelChanged=function(t){var e=this;t?this.params.parentFilterInstance((function(o){if(o.getModelAsString){var r=o.getModelAsString(t);e.eFloatingFilterText.setValue(r)}})):this.eFloatingFilterText.setValue("")},Mi([Ai("eFloatingFilterText")],e.prototype,"eFloatingFilterText",void 0),Mi([nt("columnModel")],e.prototype,"columnModel",void 0),e}(Di),Hi=function(){function t(t,e,o,r){var n=this;this.alive=!0,this.context=t,this.eParent=r;var i=e.getDateCompDetails(o),s=i.newAgStackInstance();s.then((function(e){n.alive?(n.dateComp=e,e&&(r.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached(),n.tempValue&&e.setDate(n.tempValue),null!=n.disabled&&n.setDateCompDisabled(n.disabled))):t.destroyBean(e)}))}return t.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},t.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},t.prototype.setDate=function(t){this.dateComp?this.dateComp.setDate(t):this.tempValue=t},t.prototype.setDisabled=function(t){this.dateComp?this.setDateCompDisabled(t):this.disabled=t},t.prototype.setDisplayed=function(t){pr(this.eParent,t)},t.prototype.setInputPlaceholder=function(t){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(t)},t.prototype.setInputAriaLabel=function(t){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(t)},t.prototype.afterGuiAttached=function(t){this.dateComp&&"function"===typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(t)},t.prototype.setDateCompDisabled=function(t){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(t)},t}(),Vi=function(){return Vi=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},Vi.apply(this,arguments)},Wi=function(){function t(){this.customFilterOptions={}}return t.prototype.init=function(t,e){this.filterOptions=t.filterOptions||e,this.mapCustomOptions(),this.selectDefaultItem(t),this.checkForDeprecatedParams()},t.prototype.checkForDeprecatedParams=function(){this.filterOptions.some((function(t){return"string"!=typeof t&&null!=t.test}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some((function(t){return"string"!=typeof t&&null!=t.hideFilterInput}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},t.prototype.getFilterOptions=function(){return this.filterOptions},t.prototype.mapCustomOptions=function(){var t=this;this.filterOptions&&this.filterOptions.forEach((function(e){if("string"!==typeof e){var o=[["displayKey"],["displayName"],["predicate","test"]],r=function(t){return!!t.some((function(t){return null!=e[t]}))||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+t+"'"),!1)};if(o.every(r)){var n=e.test,i=Vi({},e);null!=n&&null==e.predicate&&(i.predicate=function(t,e){return n(t[0],e)},delete i.test),i.hideFilterInput&&null==i.numberOfInputs&&(i.numberOfInputs=0,delete i.hideFilterInput),t.customFilterOptions[e.displayKey]=i}else t.filterOptions=t.filterOptions.filter((function(t){return t===e}))||[]}}))},t.prototype.selectDefaultItem=function(t){if(t.defaultOption)this.defaultOption=t.defaultOption;else if(this.filterOptions.length>=1){var e=this.filterOptions[0];"string"===typeof e?this.defaultOption=e:e.displayKey?this.defaultOption=e.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},t.prototype.getDefaultOption=function(){return this.defaultOption},t.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},t}(),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 t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ji=function(){return ji=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},ji.apply(this,arguments)},Ui=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},zi=function(t){function e(e,o){void 0===o&&(o={});var r=t.call(this)||this;return r.eFocusableElement=e,r.callbacks=o,r.callbacks=ji({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(t){if(!t.defaultPrevented){var e=r.focusService.findNextFocusableElement(r.eFocusableElement,!1,t.shiftKey);e&&(e.focus(),t.preventDefault())}}},o),r}return Bi(e,t),e.prototype.postConstruct=function(){this.eFocusableElement.classList.add(e.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)},e.prototype.addKeyDownListeners=function(t){var e=this;this.addManagedListener(t,"keydown",(function(t){t.defaultPrevented||Kt(t)||(e.callbacks.shouldStopEventPropagation(t)?zt(t):t.key===zn.TAB?e.callbacks.onTabKeyDown(t):e.callbacks.handleKeyDown&&e.callbacks.handleKeyDown(t))}))},e.FOCUS_MANAGED_CLASS="ag-focus-managed",Ui([nt("focusService")],e.prototype,"focusService",void 0),Ui([et],e.prototype,"postConstruct",null),e}(re),Ki=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Yi=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},qi=function(t){function e(e){var o=t.call(this)||this;return o.filterNameKey=e,o.applyActive=!1,o.hidePopup=null,o.appliedModel=null,o}return Ki(e,t),e.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new zi(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},e.prototype.handleKeyDown=function(t){},e.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},e.prototype.isFilterActive=function(){return!!this.appliedModel},e.prototype.resetTemplate=function(t){var e=this.getGui();e&&e.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,t),e=this.getGui(),e&&e.addEventListener("submit",this.onFormSubmit)},e.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},e.prototype.init=function(t){var e=this;this.setParams(t),this.resetUiToDefaults(!0).then((function(){e.updateUiVisibility(),e.setupOnBtApplyDebounce()}))},e.prototype.setParams=function(t){this.providedFilterParams=t,this.applyActive=e.isUseApplyButton(t),this.createButtonPanel()},e.prototype.createButtonPanel=function(){var t=this,e=this.providedFilterParams.buttons;if(!(!e||e.length<1||this.isReadOnly())){var o=document.createElement("div");o.classList.add("ag-filter-apply-panel");var r=function(e){var r,n;switch(e){case"apply":r=t.translate("applyFilter"),n=function(e){return t.onBtApply(!1,!1,e)};break;case"clear":r=t.translate("clearFilter"),n=function(){return t.onBtClear()};break;case"reset":r=t.translate("resetFilter"),n=function(){return t.onBtReset()};break;case"cancel":r=t.translate("cancelFilter"),n=function(e){t.onBtCancel(e)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var i="apply"===e?"submit":"button",s=br('<button\n type="'+i+'"\n ref="'+e+'FilterButton"\n class="ag-standard-button ag-filter-apply-panel-button"\n >'+r+"\n </button>");o.appendChild(s),t.addManagedListener(s,"click",n)};di(e).forEach((function(t){return r(t)})),this.getGui().appendChild(o)}},e.prototype.getDefaultDebounceMs=function(){return 0},e.prototype.setupOnBtApplyDebounce=function(){var t=e.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=z(this.onBtApply.bind(this),t)},e.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},e.prototype.setModel=function(t){var e=this,o=null!=t?this.setModelIntoUi(t):this.resetUiToDefaults();return o.then((function(){e.updateUiVisibility(),e.applyModel()}))},e.prototype.onBtCancel=function(t){var e=this,o=this.getModel(),r=function(){e.onUiChanged(!1,"prevent"),e.providedFilterParams.closeOnApply&&e.close(t)};null!=o?this.setModelIntoUi(o).then(r):this.resetUiToDefaults().then(r)},e.prototype.onBtClear=function(){var t=this;this.resetUiToDefaults().then((function(){return t.onUiChanged()}))},e.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},e.prototype.applyModel=function(){var t=this.getModelFromUi();if(!this.isModelValid(t))return!1;var e=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(e,t)},e.prototype.isModelValid=function(t){return!0},e.prototype.onFormSubmit=function(t){t.preventDefault()},e.prototype.onBtApply=function(t,e,o){void 0===t&&(t=!1),void 0===e&&(e=!1),o&&o.preventDefault(),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:t,afterDataChange:e});var r=this.providedFilterParams.closeOnApply;r&&this.applyActive&&!t&&!e&&this.close(o)},e.prototype.onNewRowsLoaded=function(){},e.prototype.close=function(t){if(this.hidePopup){var e,o=t,r=o&&o.key;"Enter"!==r&&"Space"!==r||(e={keyboardEvent:o}),this.hidePopup(e),this.hidePopup=null}},e.prototype.onUiChanged=function(t,e){if(void 0===t&&(t=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly){var o=this.isModelValid(this.getModelFromUi());dr(this.getRefElement("applyFilterButton"),!o)}t&&!e||"immediately"===e?this.onBtApply(t):(this.applyActive||e)&&"debounce"!==e||this.onBtApplyDebounce()},e.prototype.afterGuiAttached=function(t){null!=t&&(this.hidePopup=t.hidePopup)},e.getDebounceMs=function(t,o){return e.isUseApplyButton(t)?(null!=t.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=t.debounceMs?t.debounceMs:o},e.isUseApplyButton=function(t){return!!t.buttons&&t.buttons.indexOf("apply")>=0},e.prototype.destroy=function(){var e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,t.prototype.destroy.call(this)},e.prototype.translate=function(t){var e=this.gridOptionsWrapper.getLocaleTextFunc();return e(t,ki[t])},e.prototype.getCellValue=function(t){var e=this.providedFilterParams,o=e.api,r=e.colDef,n=e.column,i=e.columnApi,s=e.context;return this.providedFilterParams.valueGetter({api:o,colDef:r,column:n,columnApi:i,context:s,data:t.data,getValue:function(e){return t.data[e]},node:t})},Yi([nt("rowModel")],e.prototype,"rowModel",void 0),Yi([et],e.prototype,"postConstruct",null),e}(Di),Xi=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Qi=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Ji=function(t){function e(e,o){var r=t.call(this,o)||this;return r.labelSeparator="",r.labelAlignment="left",r.disabled=!1,r.label="",r.config=e||{},r}return Xi(e,t),e.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var t=this.config,e=t.labelSeparator,o=t.label,r=t.labelWidth,n=t.labelAlignment;null!=e&&this.setLabelSeparator(e),null!=o&&this.setLabel(o),null!=r&&this.setLabelWidth(r),this.setLabelAlignment(n||this.labelAlignment),this.refreshLabel()},e.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))},e.prototype.setLabelSeparator=function(t){return this.labelSeparator===t||(this.labelSeparator=t,null!=this.label&&this.refreshLabel()),this},e.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},e.prototype.getLabel=function(){return this.label},e.prototype.setLabel=function(t){return this.label===t||(this.label=t,this.refreshLabel()),this},e.prototype.setLabelAlignment=function(t){var e=this.getGui(),o=e.classList;return o.toggle("ag-label-align-left","left"===t),o.toggle("ag-label-align-right","right"===t),o.toggle("ag-label-align-top","top"===t),this},e.prototype.setLabelWidth=function(t){return null==this.label||Hr(this.eLabel,t),this},e.prototype.setDisabled=function(t){t=!!t;var e=this.getGui();return dr(e,t),e.classList.toggle("ag-disabled",t),this.disabled=t,this},e.prototype.isDisabled=function(){return!!this.disabled},Qi([et],e.prototype,"postConstruct",null),e}(Di),Zi=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),$i=function(t){function e(e,o,r){var n=t.call(this,e,o)||this;return n.className=r,n}return Zi(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},e.prototype.onValueChange=function(t){var o=this;return this.addManagedListener(this,e.EVENT_CHANGED,(function(){return t(o.getValue())})),this},e.prototype.getWidth=function(){return this.getGui().clientWidth},e.prototype.setWidth=function(t){return Vr(this.getGui(),t),this},e.prototype.getPreviousValue=function(){return this.previousValue},e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(t,o){return this.value===t||(this.previousValue=this.value,this.value=t,o||this.dispatchEvent({type:e.EVENT_CHANGED})),this},e.EVENT_CHANGED="valueChange",e}(Ji),ts=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),es=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},os=function(t){function e(e,o,r,n){var i=t.call(this,e,'<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 ts(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this);var o=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",o),vn(this.eWrapper,o);var r=function(){e.skipClick?e.skipClick=!1:e.isDisabled()||(e.pickerComponent=e.showPicker())},n=this.getGui();if(this.addManagedListener(n,"mousedown",(function(t){!e.skipClick&&e.pickerComponent&&e.pickerComponent.isAlive()&&_r(e.pickerComponent.getGui())&&n.contains(t.target)&&(e.skipClick=!0)})),this.addManagedListener(n,"keydown",(function(t){switch(t.key){case zn.UP:case zn.DOWN:case zn.ENTER:case zn.SPACE:r();case zn.ESCAPE:e.isPickerDisplayed&&t.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)}},e.prototype.refreshLabel=function(){n(this.getLabel())?fn(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},e.prototype.setAriaLabel=function(t){return hn(this.eWrapper,t),this},e.prototype.setInputWidth=function(t){return Hr(this.eWrapper,t),this},e.prototype.getFocusableElement=function(){return this.eWrapper},es([Ai("eLabel")],e.prototype,"eLabel",void 0),es([Ai("eWrapper")],e.prototype,"eWrapper",void 0),es([Ai("eDisplayField")],e.prototype,"eDisplayField",void 0),es([Ai("eIcon")],e.prototype,"eIcon",void 0),e}($i),rs=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ns=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},is=function(t){function e(e){void 0===e&&(e="default");var o=t.call(this,'<div class="ag-list ag-'+e+'-list" role="listbox"></div>')||this;return o.cssIdentifier=e,o.options=[],o.itemEls=[],o}return rs(e,t),e.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},e.prototype.handleKeyDown=function(t){var e=t.key;switch(e){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=e===zn.DOWN,n=void 0;if(t.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}},e.prototype.addOptions=function(t){var e=this;return t.forEach((function(t){return e.addOption(t)})),this},e.prototype.addOption=function(t){var e=t.value,o=t.text,r=ve(o||e);return this.options.push({value:e,text:r}),this.renderOption(e,r),this.updateIndices(),this},e.prototype.updateIndices=function(){var t=this.getGui().querySelectorAll(".ag-list-item");t.forEach((function(e,o){On(e,o+1),Rn(e,t.length)}))},e.prototype.renderOption=function(t,e){var o=this,r=document.createElement("div");ln(r,"option"),r.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),r.innerHTML="<span>"+e+"</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(t)})),this.getGui().appendChild(r)},e.prototype.setValue=function(t,e){if(this.value===t)return this.fireItemSelected(),this;if(null==t)return this.reset(),this;var o=this.options.findIndex((function(e){return e.value===t}));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]),e||this.fireChangeEvent()}return this},e.prototype.setValueByIndex=function(t){return this.setValue(this.options[t].value)},e.prototype.getValue=function(){return this.value},e.prototype.getDisplayValue=function(){return this.displayValue},e.prototype.refreshHighlighted=function(){var t=this;this.clearHighlighted();var e=this.options.findIndex((function(e){return e.value===t.value}));-1!==e&&this.highlightItem(this.itemEls[e])},e.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},e.prototype.highlightItem=function(t){t.offsetParent&&(this.clearHighlighted(),this.highlightedEl=t,this.highlightedEl.classList.add(e.ACTIVE_CLASS),In(this.highlightedEl,!0),this.highlightedEl.focus())},e.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(e.ACTIVE_CLASS),In(this.highlightedEl,!1),this.highlightedEl=null)},e.prototype.fireChangeEvent=function(){this.dispatchEvent({type:$i.EVENT_CHANGED}),this.fireItemSelected()},e.prototype.fireItemSelected=function(){this.dispatchEvent({type:e.EVENT_ITEM_SELECTED})},e.EVENT_ITEM_SELECTED="selectedItem",e.ACTIVE_CLASS="ag-active-item",ns([et],e.prototype,"init",null),e}(Di),ss=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),as=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},ls=function(t){function e(e){return t.call(this,e,"ag-select","smallDown","listbox")||this}return ss(e,t),e.prototype.init=function(){var t=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(){t.hideList&&t.hideList()})),this.listComponent.addManagedListener(this.listComponent,$i.EVENT_CHANGED,(function(){t.setValue(t.listComponent.getValue(),!1,!0),t.hideList&&t.hideList()}))},e.prototype.showPicker=function(){var t=this,e=this.listComponent.getGui(),o=this.gridOptionsWrapper.getDocument(),r=this.addManagedListener(o.body,"wheel",(function(o){!e.contains(o.target)&&t.hideList&&t.hideList()})),n=this.addManagedListener(e,"focusout",(function(o){!e.contains(o.relatedTarget)&&t.hideList&&t.hideList()})),i=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:!0,eChild:e,closeOnEsc:!0,closedCallback:function(){t.hideList=null,t.isPickerDisplayed=!1,n(),r(),t.isAlive()&&(wn(t.eWrapper,!1),t.getFocusableElement().focus())},ariaLabel:i("ariaLabelSelectField","Select Field")});return s&&(this.hideList=s.hideFunc),this.isPickerDisplayed=!0,Hr(e,mr(this.eWrapper)),wn(this.eWrapper,!0),e.style.maxHeight=gr(this.popupService.getPopupParent())+"px",e.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:e,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},e.prototype.addOptions=function(t){var e=this;return t.forEach((function(t){return e.addOption(t)})),this},e.prototype.addOption=function(t){return this.listComponent.addOption(t),this},e.prototype.setValue=function(e,o,r){if(this.value===e)return this;r||this.listComponent.setValue(e,!0);var n=this.listComponent.getValue();return n===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),t.prototype.setValue.call(this,e,o))},e.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),t.prototype.destroy.call(this)},as([nt("popupService")],e.prototype,"popupService",void 0),as([et],e.prototype,"init",null),e}(os),us=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ps=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},cs=function(t){function e(e,o,r,n){void 0===r&&(r="text"),void 0===n&&(n="input");var i=t.call(this,e,'\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(e,t),e.prototype.postConstruct=function(){t.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 e=this.config,o=e.width,r=e.value;null!=o&&this.setWidth(o),null!=r&&this.setValue(r),this.addInputListeners()},e.prototype.refreshLabel=function(){n(this.getLabel())?fn(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},e.prototype.addInputListeners=function(){var t=this;this.addManagedListener(this.eInput,"input",(function(e){return t.setValue(e.target.value)}))},e.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},e.prototype.getInputElement=function(){return this.eInput},e.prototype.setInputWidth=function(t){return Hr(this.eWrapper,t),this},e.prototype.setInputName=function(t){return this.getInputElement().setAttribute("name",t),this},e.prototype.getFocusableElement=function(){return this.eInput},e.prototype.setMaxLength=function(t){var e=this.eInput;return e.maxLength=t,this},e.prototype.setInputPlaceholder=function(t){return Xr(this.eInput,"placeholder",t),this},e.prototype.setInputAriaLabel=function(t){return hn(this.eInput,t),this},e.prototype.setDisabled=function(e){return dr(this.eInput,e),t.prototype.setDisabled.call(this,e)},ps([Ai("eLabel")],e.prototype,"eLabel",void 0),ps([Ai("eWrapper")],e.prototype,"eWrapper",void 0),ps([Ai("eInput")],e.prototype,"eInput",void 0),e}($i),ds=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),hs=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s};(function(t){t[t["One"]=0]="One",t[t["Two"]=1]="Two"})(Fi||(Fi={}));var fs,gs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ds(e,t),e.prototype.getNumberOfInputs=function(t){var o=this.optionsFactory.getCustomOption(t);if(o){var r=o.numberOfInputs;return null!=r?r:1}var n=[e.EMPTY,e.NOT_BLANK,e.BLANK];return t&&n.indexOf(t)>=0?0:t===e.IN_RANGE?2:1},e.prototype.onFloatingFilterChanged=function(t,e){this.setTypeFromFloatingFilter(t),this.setValueFromFloatingFilter(e),this.onUiChanged(!0)},e.prototype.setTypeFromFloatingFilter=function(t){this.eType1.setValue(t),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},e.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},e.prototype.getConditionTypes=function(){return[this.eType1.getValue(),this.eType2.getValue()]},e.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},e.prototype.areModelsEqual=function(t,e){if(!t&&!e)return!0;if(!t&&e||t&&!e)return!1;var o,r=!t.operator,n=!e.operator,i=!r&&n||r&&!n;if(i)return!1;if(r){var s=t,a=e;o=this.areSimpleModelsEqual(s,a)}else{var l=t,u=e;o=l.operator===u.operator&&this.areSimpleModelsEqual(l.condition1,u.condition1)&&this.areSimpleModelsEqual(l.condition2,u.condition2)}return o},e.prototype.setModelIntoUi=function(t){var e=t.operator;if(e){var o=t,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=t;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()},e.prototype.doesFilterPass=function(t){var e=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 e.individualConditionPasses(t,o)}))},e.prototype.setParams=function(e){t.prototype.setParams.call(this,e),this.optionsFactory=new Wi,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.allowTwoConditions=!e.suppressAndOrCondition,this.alwaysShowBothConditions=!!e.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.putOptionsIntoDropdown(),this.addChangedListeners()},e.prototype.getDefaultJoinOperator=function(t){return It(["AND","OR"],t)?t:"AND"},e.prototype.putOptionsIntoDropdown=function(){var t=this,e=this.optionsFactory.getFilterOptions(),o=[this.eType1,this.eType2];e.forEach((function(e){var r="string"===typeof e?t.createBoilerplateListOption(e):t.createCustomListOption(e);o.forEach((function(t){return t.addOption(r)}))})),o.forEach((function(t){return t.setDisabled(e.length<=1)}))},e.prototype.createBoilerplateListOption=function(t){return{value:t,text:this.translate(t)}},e.prototype.createCustomListOption=function(t){var e=t.displayKey,o=this.optionsFactory.getCustomOption(t.displayKey);return{value:e,text:o?this.gridOptionsWrapper.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(e)}},e.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},e.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)},e.prototype.getCssIdentifier=function(){return"simple-filter"},e.prototype.updateUiVisibility=function(){var t=this,e=[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]],o=[this.eCondition1Body,this.eCondition2Body];e.forEach((function(e,o){var r=t.isConditionVisible(o),n=t.isConditionDisabled(o);e.forEach((function(t){t instanceof cs||t instanceof ls?(t.setDisabled(n),t.setDisplayed(r)):(dr(t,n),pr(t,r))}))})),o.forEach((function(e,o){pr(e,t.isConditionBodyVisible(o))})),this.forEachInput((function(e,o,r,n){t.setElementDisplayed(e,o<n),t.setElementDisabled(e,t.isConditionDisabled(r))})),this.resetPlaceholder()},e.prototype.afterGuiAttached=function(e){if(t.prototype.afterGuiAttached.call(this,e),this.resetPlaceholder(),!e||!e.suppressFocus&&!this.isReadOnly()){var o=this.getInputs()[0][0];if(!o)return;o instanceof cs&&o.getInputElement().focus()}},e.prototype.getPlaceholderText=function(t,e){var o=this.translate(t);if(V(this.filterPlaceholder)){var r=this.filterPlaceholder,n=0===e?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},e.prototype.resetPlaceholder=function(){var t=this,e=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?e("ariaFilterFromValue","Filter from value"):0===r?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value");o.setInputPlaceholder(t.getPlaceholderText(s,n)),o.setInputAriaLabel(a)}}))},e.prototype.setElementValue=function(t,e,o){t instanceof cs&&t.setValue(null!=e?String(e):null,o)},e.prototype.setElementDisplayed=function(t,e){t instanceof Di&&pr(t.getGui(),e)},e.prototype.setElementDisabled=function(t,e){t instanceof Di&&dr(t.getGui(),e)},e.prototype.attachElementOnChange=function(t,e){t instanceof cs&&t.onValueChange(e)},e.prototype.forEachInput=function(t){var e=this,o=this.getInputs();this.getConditionTypes().forEach((function(r,n){for(var i=e.getNumberOfInputs(r),s=0;s<o[n].length;s++){var a=o[n][s];null!=a&&t(a,s,n,i)}}))},e.prototype.isConditionVisible=function(t){return 0===t||!!this.allowTwoConditions&&(this.isReadOnly()?this.isConditionUiComplete(t):!!this.alwaysShowBothConditions||this.isConditionUiComplete(t-1))},e.prototype.isConditionDisabled=function(t){return!!this.isReadOnly()||(!this.isConditionVisible(t)||0!==t&&!this.isConditionUiComplete(t-1))},e.prototype.isConditionBodyVisible=function(t){if(!this.isConditionVisible(t))return!1;var e=this.getConditionTypes()[t],o=this.getNumberOfInputs(e);return o>0},e.prototype.isConditionUiComplete=function(t){var o=this.getConditionTypes()[t];return o!==e.EMPTY&&!this.getValues(t).some((function(t){return null==t}))},e.prototype.resetUiToDefaults=function(t){var e=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,t).setAriaLabel(r).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),t).setAriaLabel(r).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),t).setName(n).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),t).setName(n).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput((function(o){e.setElementValue(o,null,t),e.setElementDisabled(o,e.isReadOnly())})),this.resetPlaceholder(),wi.resolve()},e.prototype.setConditionIntoUi=function(t,e){var o=this,r=this.mapValuesFromModel(t);this.forEachInput((function(t,n,i,s){i===e&&o.setElementValue(t,null!=r[n]?r[n]:null)}))},e.prototype.setValueFromFloatingFilter=function(t){var e=this;this.forEachInput((function(o,r,n,i){e.setElementValue(o,0===r&&0===n?t:null)}))},e.prototype.isDefaultOperator=function(t){return t===this.defaultJoinOperator},e.prototype.addChangedListeners=function(){var t=this;if(!this.isReadOnly()){var e=function(){return t.onUiChanged()};this.eType1.onValueChange(e),this.eType2.onValueChange(e),this.eJoinOperatorOr.onValueChange(e),this.eJoinOperatorAnd.onValueChange(e),this.forEachInput((function(o){t.attachElementOnChange(o,e)}))}},e.prototype.individualConditionPasses=function(t,e){var o=this.getCellValue(t.node),r=this.mapValuesFromModel(e),n=this.optionsFactory.getCustomOption(e.type),i=this.evaluateCustomFilter(n,r,o);return null!=i?i:null==o?this.evaluateNullValue(e.type):this.evaluateNonNullValue(r,o,e,t)},e.prototype.evaluateCustomFilter=function(t,e,o){if(null!=t){var r=t.predicate;return null==r||e.some((function(t){return null==t}))?void 0:r(e,o)}},e.prototype.isBlank=function(t){return null==t||"string"===typeof t&&0===t.trim().length},e.EMPTY="empty",e.BLANK="blank",e.NOT_BLANK="notBlank",e.EQUALS="equals",e.NOT_EQUAL="notEqual",e.LESS_THAN="lessThan",e.LESS_THAN_OR_EQUAL="lessThanOrEqual",e.GREATER_THAN="greaterThan",e.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",e.IN_RANGE="inRange",e.CONTAINS="contains",e.NOT_CONTAINS="notContains",e.STARTS_WITH="startsWith",e.ENDS_WITH="endsWith",hs([Ai("eOptions1")],e.prototype,"eType1",void 0),hs([Ai("eOptions2")],e.prototype,"eType2",void 0),hs([Ai("eJoinOperatorPanel")],e.prototype,"eJoinOperatorPanel",void 0),hs([Ai("eJoinOperatorAnd")],e.prototype,"eJoinOperatorAnd",void 0),hs([Ai("eJoinOperatorOr")],e.prototype,"eJoinOperatorOr",void 0),hs([Ai("eCondition1Body")],e.prototype,"eCondition1Body",void 0),hs([Ai("eCondition2Body")],e.prototype,"eCondition2Body",void 0),e}(qi),vs=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ys=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vs(e,t),e.prototype.setParams=function(e){t.prototype.setParams.call(this,e),this.scalarFilterParams=e},e.prototype.evaluateNullValue=function(t){switch(t){case e.EQUALS:case e.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case e.GREATER_THAN:case e.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case e.LESS_THAN:case e.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case e.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case e.BLANK:return!0;case e.NOT_BLANK:return!1}return!1},e.prototype.evaluateNonNullValue=function(t,o,r){var n=this.comparator(),i=null!=t[0]?n(t[0],o):0;switch(r.type){case e.EQUALS:return 0===i;case e.NOT_EQUAL:return 0!==i;case e.GREATER_THAN:return i>0;case e.GREATER_THAN_OR_EQUAL:return i>=0;case e.LESS_THAN:return i<0;case e.LESS_THAN_OR_EQUAL:return i<=0;case e.IN_RANGE:var s=n(t[1],o);return this.scalarFilterParams.inRangeInclusive?i>=0&&s<=0:i>0&&s<0;case e.BLANK:return this.isBlank(o);case e.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}},e}(gs),ms=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Cs=function(){return Cs=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},Cs.apply(this,arguments)},ws=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Es=1e3,Rs=1/0,Os=function(t){function e(){var e=t.call(this,"dateFilter")||this;return e.minValidYear=Es,e.maxValidYear=Rs,e}return ms(e,t),e.prototype.afterGuiAttached=function(e){t.prototype.afterGuiAttached.call(this,e),this.dateCondition1FromComp.afterGuiAttached(e)},e.prototype.mapValuesFromModel=function(t){var e=t||{},o=e.dateFrom,r=e.dateTo,n=e.type;return[o&&Vn(o)||null,r&&Vn(r)||null].slice(0,this.getNumberOfInputs(n))},e.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},e.prototype.defaultComparator=function(t,e){var o=e;return null==e||o<t?-1:o>t?1:0},e.prototype.setParams=function(e){t.prototype.setParams.call(this,e),this.dateFilterParams=e;var o=function(t,o){if(null!=e[t]){if(!isNaN(e[t]))return null==e[t]?o:Number(e[t]);console.warn("AG Grid: DateFilter "+t+" 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()},e.prototype.createDateComponents=function(){var t=this,e=function(e){return new Hi(t.getContext(),t.userComponentFactory,{onDateChanged:function(){return t.onUiChanged()},filterParams:t.dateFilterParams},e)};this.dateCondition1FromComp=e(this.eCondition1PanelFrom),this.dateCondition1ToComp=e(this.eCondition1PanelTo),this.dateCondition2FromComp=e(this.eCondition2PanelFrom),this.dateCondition2ToComp=e(this.eCondition2PanelTo),this.addDestroyFunc((function(){t.forEachInput((function(t){return t.destroy()}))}))},e.prototype.setElementValue=function(t,e,o){t.setDate(e)},e.prototype.setElementDisplayed=function(t,e){t.setDisplayed(e)},e.prototype.setElementDisabled=function(t,e){t.setDisabled(e)},e.prototype.getDefaultFilterOptions=function(){return e.DEFAULT_FILTER_OPTIONS},e.prototype.createValueTemplate=function(t){var e=t===Fi.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+e+'Body">\n <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+e+'PanelFrom"></div>\n <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+e+'PanelTo"></div>\n </div>'},e.prototype.isConditionUiComplete=function(e){var o=this;if(!t.prototype.isConditionUiComplete.call(this,e))return!1;var r=function(t){return null!=t&&t.getUTCFullYear()>=o.minValidYear&&t.getUTCFullYear()<=o.maxValidYear},n=!0;return this.forEachInput((function(t,o,i,s){i!==e||!n||o>=s||(n=n&&r(t.getDate()))})),n},e.prototype.areSimpleModelsEqual=function(t,e){return t.dateFrom===e.dateFrom&&t.dateTo===e.dateTo&&t.type===e.type},e.prototype.getFilterType=function(){return"date"},e.prototype.createCondition=function(t){var e=this.getConditionTypes()[t],o={},r=this.getValues(t);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:e},o)},e.prototype.resetPlaceholder=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),e=this.translate("dateFormatOoo"),o=t("ariaFilterValue","Filter Value");this.forEachInput((function(t){t.setInputPlaceholder(e),t.setInputAriaLabel(o)}))},e.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},e.prototype.getValues=function(t){var e=[];return this.forEachInput((function(o,r,n,i){t===n&&r<i&&e.push(o.getDate())})),e},e.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")],e.prototype,"eCondition1PanelFrom",void 0),ws([Ai("eCondition1PanelTo")],e.prototype,"eCondition1PanelTo",void 0),ws([Ai("eCondition2PanelFrom")],e.prototype,"eCondition2PanelFrom",void 0),ws([Ai("eCondition2PanelTo")],e.prototype,"eCondition2PanelTo",void 0),ws([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),e}(ys),Ss=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),_s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ss(e,t),e.prototype.getDefaultDebounceMs=function(){return 0},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.getTextFromModel=function(t){if(!t)return null;var e=null!=t.operator;if(e){var o=t,r=o||{},n=r.condition1,i=r.condition2,s=this.getTextFromModel(n),a=this.getTextFromModel(i);return[s,o.operator,a].join(" ")}if(t.type===gs.BLANK||t.type===gs.NOT_BLANK){var l=this.gridOptionsWrapper.getLocaleTextFunc();return l(t.type,t.type)}var u=t,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)},e.prototype.isEventFromFloatingFilter=function(t){return t&&t.afterFloatingFilter},e.prototype.getLastType=function(){return this.lastType},e.prototype.isReadOnly=function(){return this.readOnly},e.prototype.setLastTypeFromModel=function(t){if(t){var e,o=t.operator;if(o){var r=t;e=r.condition1}else e=t;this.lastType=e.type}else this.lastType=this.optionsFactory.getDefaultOption()},e.prototype.canWeEditAfterModelFromParentFilter=function(t){if(!t)return this.isTypeEditable(this.lastType);var e=t.operator;if(e)return!1;var o=t;return this.isTypeEditable(o.type)},e.prototype.init=function(t){this.optionsFactory=new Wi,this.optionsFactory.init(t.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!t.filterParams.readOnly;var e=this.isTypeEditable(this.lastType);this.setEditable(e)},e.prototype.doesFilterHaveSingleInput=function(t){var e=this.optionsFactory.getCustomOption(t),o=(e||{}).numberOfInputs;return null==o||1==o},e.prototype.isTypeEditable=function(t){var e=[gs.IN_RANGE,gs.EMPTY,gs.BLANK,gs.NOT_BLANK];return!!t&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(t)&&e.indexOf(t)<0},e}(Di),bs=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ps=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Ts=function(t){function e(){return t.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(e,t),e.prototype.getDefaultFilterOptions=function(){return Os.DEFAULT_FILTER_OPTIONS},e.prototype.conditionToString=function(t,e){var o=t.type,r=(e||{}).numberOfInputs,n=o==gs.IN_RANGE||2===r,i=Vn(t.dateFrom),s=Vn(t.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},e.prototype.init=function(e){t.prototype.init.call(this,e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent();var o=this.gridOptionsWrapper.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(o("ariaDateFilterInput","Date Filter Input"))},e.prototype.setEditable=function(t){pr(this.eDateWrapper,t),pr(this.eReadOnlyText.getGui(),!t)},e.prototype.onParentModelChanged=function(e,o){if(!this.isEventFromFloatingFilter(o)){t.prototype.setLastTypeFromModel.call(this,e);var r=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(r),r){if(e){var n=e;this.dateComp.setDate(Vn(n.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.getTextFromModel(e)),this.dateComp.setDate(null)}},e.prototype.onDateChanged=function(){var t=this,e=this.dateComp.getDate(),o=Mn(e);this.params.parentFilterInstance((function(e){if(e){var r=Vn(o);e.onFloatingFilterChanged(t.getLastType()||null,r)}}))},e.prototype.createDateComponent=function(){var t=this,e=qi.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o={onDateChanged:z(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new Hi(this.getContext(),this.userComponentFactory,o,this.eDateWrapper),this.addDestroyFunc((function(){return t.dateComp.destroy()}))},Ps([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Ps([Ai("eReadOnlyText")],e.prototype,"eReadOnlyText",void 0),Ps([Ai("eDateWrapper")],e.prototype,"eDateWrapper",void 0),e}(_s),Ds=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),As=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Ns=function(t){function e(){return t.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(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){var e=this,o=this.gridOptionsWrapper.getDocument(),r=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(t)&&(r.type="date"),this.addManagedListener(r,"mousedown",(function(){e.eDateInput.isDisabled()||r.focus()})),this.addManagedListener(r,"input",(function(r){r.target===o.activeElement&&(e.eDateInput.isDisabled()||t.onDateChanged())}));var n=t.filterParams||{},i=n.minValidYear,s=n.maxValidYear;i&&(r.min=i+"-01-01"),s&&(r.max=s+"-12-31")},e.prototype.getDate=function(){return Vn(this.eDateInput.getValue())},e.prototype.setDate=function(t){this.eDateInput.setValue(Mn(t,!1))},e.prototype.setInputPlaceholder=function(t){this.eDateInput.setInputPlaceholder(t)},e.prototype.setDisabled=function(t){this.eDateInput.setDisabled(t)},e.prototype.afterGuiAttached=function(t){t&&t.suppressFocus||this.eDateInput.getInputElement().focus()},e.prototype.shouldUseBrowserDatePicker=function(t){return t.filterParams&&null!=t.filterParams.browserDatePicker?t.filterParams.browserDatePicker:Xe()||Qe()},As([Ai("eDateInput")],e.prototype,"eDateInput",void 0),e}(Di),Is=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Gs=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Fs=function(t){function e(){return t.call(this,"numberFilter")||this}return Is(e,t),e.prototype.mapValuesFromModel=function(t){var e=t||{},o=e.filter,r=e.filterTo,n=e.type;return[null==o?null:o,null==r?null:r].slice(0,this.getNumberOfInputs(n))},e.prototype.getDefaultDebounceMs=function(){return 500},e.prototype.comparator=function(){return function(t,e){return t===e?0:t<e?1:-1}},e.prototype.setParams=function(e){this.numberFilterParams=e;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})}t.prototype.setParams.call(this,e)},e.prototype.getDefaultFilterOptions=function(){return e.DEFAULT_FILTER_OPTIONS},e.prototype.createValueTemplate=function(t){var e=t===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'+e+'Body" role="presentation">\n <'+r+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+e+'"></'+r+">\n <"+r+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+e+'"></'+r+">\n </div>"},e.prototype.getValues=function(t){var e=this,o=[];return this.forEachInput((function(r,n,i,s){t===i&&n<s&&o.push(e.stringToFloat(r.getValue()))})),o},e.prototype.areSimpleModelsEqual=function(t,e){return t.filter===e.filter&&t.filterTo===e.filterTo&&t.type===e.type},e.prototype.getFilterType=function(){return"number"},e.prototype.stringToFloat=function(t){if("number"===typeof t)return t;var e=r(t);return null!=e&&""===e.trim()&&(e=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(e):null==e||"-"===e.trim()?null:parseFloat(e)},e.prototype.createCondition=function(t){var e=this.getConditionTypes()[t],o={filterType:this.getFilterType(),type:e},r=this.getValues(t);return r.length>0&&(o.filter=r[0]),r.length>1&&(o.filterTo=r[1]),o},e.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},e.prototype.getAllowedCharPattern=function(){var t=(this.numberFilterParams||{}).allowedCharPattern;return t||(Xe()||Ye()?null:"\\d\\-\\.")},e.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")],e.prototype,"eValueFrom1",void 0),Gs([Ai("eValue-index1-1")],e.prototype,"eValueTo1",void 0),Gs([Ai("eValue-index0-2")],e.prototype,"eValueFrom2",void 0),Gs([Ai("eValue-index1-2")],e.prototype,"eValueTo2",void 0),e}(ys),Ls=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ms=function(){return Ms=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},Ms.apply(this,arguments)},xs=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Hs=function(t){function e(){return t.call(this,"textFilter")||this}return Ls(e,t),e.trimInput=function(t){var e=t&&t.trim();return""===e?t:e},e.prototype.getDefaultDebounceMs=function(){return 500},e.prototype.setParams=function(o){t.prototype.setParams.call(this,o),this.textFilterParams=o,this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?e.DEFAULT_FORMATTER:e.DEFAULT_LOWERCASE_FORMATTER)},e.prototype.getTextMatcher=function(){var t=this.textFilterParams.textCustomComparator;return t?(yi.doOnce((function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")}),"textCustomComparator.deprecated"),function(e){var o=e.filterOption,r=e.value,n=e.filterText;return t(o,r,n)}):this.textFilterParams.textMatcher||e.DEFAULT_MATCHER},e.prototype.createCondition=function(t){var e=this.getConditionTypes()[t],o={filterType:this.getFilterType(),type:e},r=this.getValues(t);return r.length>0&&(o.filter=r[0]),r.length>1&&(o.filterTo=r[1]),o},e.prototype.getFilterType=function(){return"text"},e.prototype.areSimpleModelsEqual=function(t,e){return t.filter===e.filter&&t.filterTo===e.filterTo&&t.type===e.type},e.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},e.prototype.getValues=function(t){var o=this,n=[];return this.forEachInput((function(i,s,a,l){if(t===a&&s<l){var u=r(i.getValue()),p=(o.textFilterParams.trimInput?e.trimInput(u):u)||null;n.push(p),i.setValue(p,!0)}})),n},e.prototype.getDefaultFilterOptions=function(){return e.DEFAULT_FILTER_OPTIONS},e.prototype.createValueTemplate=function(t){var e=t===Fi.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+e+'Body" role="presentation">\n <ag-input-text-field class=".ag-filter-from ag-filter-filter" ref="eValue-index0-'+e+'"></ag-input-text-field>\n <ag-input-text-field class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+e+'"></ag-input-text-field>\n </div>'},e.prototype.mapValuesFromModel=function(t){var e=t||{},o=e.filter,r=e.filterTo,n=e.type;return[o||null,r||null].slice(0,this.getNumberOfInputs(n))},e.prototype.evaluateNullValue=function(t){var e=[gs.NOT_EQUAL,gs.NOT_CONTAINS,gs.BLANK];return!!t&&e.indexOf(t)>=0},e.prototype.evaluateNonNullValue=function(t,e,o,r){var n=this,i=t.map((function(t){return n.formatter(t)}))||[],s=this.formatter(e),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(e);if(o.type===gs.NOT_BLANK)return!this.isBlank(e);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(t){return n.matcher(Ms(Ms({},f),{filterText:t}))}))},e.DEFAULT_FILTER_OPTIONS=[gs.CONTAINS,gs.NOT_CONTAINS,gs.EQUALS,gs.NOT_EQUAL,gs.STARTS_WITH,gs.ENDS_WITH,gs.BLANK,gs.NOT_BLANK],e.DEFAULT_FORMATTER=function(t){return t},e.DEFAULT_LOWERCASE_FORMATTER=function(t){return null==t?null:t.toString().toLowerCase()},e.DEFAULT_MATCHER=function(t){var o=t.filterOption,r=t.value,n=t.filterText;if(null==n)return!1;switch(o){case e.CONTAINS:return r.indexOf(n)>=0;case e.NOT_CONTAINS:return r.indexOf(n)<0;case e.EQUALS:return r===n;case e.NOT_EQUAL:return r!=n;case e.STARTS_WITH:return 0===r.indexOf(n);case e.ENDS_WITH:var i=r.lastIndexOf(n);return i>=0&&i===r.length-n.length;default:return!1}},xs([Ai("eValue-index0-1")],e.prototype,"eValueFrom1",void 0),xs([Ai("eValue-index1-1")],e.prototype,"eValueTo1",void 0),xs([Ai("eValue-index0-2")],e.prototype,"eValueFrom2",void 0),xs([Ai("eValue-index1-2")],e.prototype,"eValueTo2",void 0),e}(gs),Vs=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ws=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},ks=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vs(e,t),e.prototype.postConstruct=function(){this.resetTemplate()},e.prototype.resetTemplate=function(t){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 ',t)},e.prototype.getDefaultDebounceMs=function(){return 500},e.prototype.onParentModelChanged=function(t,e){this.isEventFromFloatingFilter(e)||(this.setLastTypeFromModel(t),this.eFloatingFilterInput.setValue(this.getTextFromModel(t)),this.setEditable(this.canWeEditAfterModelFromParentFilter(t)))},e.prototype.init=function(e){t.prototype.init.call(this,e),this.params=e,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=e.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(e.column,"header",!0),l=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(a+" "+l("ariaFilterInput","Filter Input"))},e.prototype.syncUpWithParentFilter=function(t){var e=this,o=t.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(t){t&&t.onFloatingFilterChanged(e.getLastType()||null,r||null)}))}},e.prototype.conditionToString=function(t,e){var o=(e||{}).numberOfInputs,r=t.type==gs.IN_RANGE||2===o;return r?t.filter+"-"+t.filterTo:null!=t.filter?""+t.filter:""+t.type},e.prototype.setEditable=function(t){this.eFloatingFilterInput.setDisabled(!t)},Ws([nt("columnModel")],e.prototype,"columnModel",void 0),Ws([Ai("eFloatingFilterInput")],e.prototype,"eFloatingFilterInput",void 0),Ws([et],e.prototype,"postConstruct",null),e}(_s),Bs=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),js=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Bs(e,t),e.prototype.getDefaultFilterOptions=function(){return Fs.DEFAULT_FILTER_OPTIONS},e}(ks),Us=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),zs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Us(e,t),e.prototype.getDefaultFilterOptions=function(){return Hs.DEFAULT_FILTER_OPTIONS},e}(ks),Ks=function(){function t(t,e){var o=this;void 0===e&&(e=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new ht,this.eElement=t,this.preventMouseClick=e;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 t.prototype.getActiveTouch=function(t){for(var e=0;e<t.length;e++){var o=t[e].identifier===this.touchStart.identifier;if(o)return t[e]}return null},t.prototype.addEventListener=function(t,e){this.eventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.eventService.removeEventListener(t,e)},t.prototype.onTouchStart=function(e){var o=this;if(!this.touching){this.touchStart=e.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:t.EVENT_LONG_TAP,touchStart:o.touchStart,touchEvent:e};o.eventService.dispatchEvent(i)}}),500)}},t.prototype.onTouchMove=function(t){if(this.touching){var e=this.getActiveTouch(t.touches);if(e){var o=!ai(e,this.touchStart,4);o&&(this.moved=!0)}}},t.prototype.onTouchEnd=function(e){if(this.touching){if(!this.moved){var o={type:t.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.checkForDoubleTap()}this.preventMouseClick&&e.cancelable&&e.preventDefault(),this.touching=!1}},t.prototype.checkForDoubleTap=function(){var e=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0){var o=e-this.lastTapTime;if(o>t.DOUBLE_TAP_MILLIS){var r={type:t.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(r),this.lastTapTime=null}else this.lastTapTime=e}else this.lastTapTime=e},t.prototype.destroy=function(){this.destroyFuncs.forEach((function(t){return t()}))},t.EVENT_TAP="tap",t.EVENT_DOUBLE_TAP="doubleTap",t.EVENT_LONG_TAP="longTap",t.DOUBLE_TAP_MILLIS=500,t}(),Ys=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),qs=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Xs=function(t){function e(o){var r=t.call(this)||this;return o||r.setTemplate(e.TEMPLATE),r}return Ys(e,t),e.prototype.attachCustomElements=function(t,e,o,r,n){this.eSortOrder=t,this.eSortAsc=e,this.eSortDesc=o,this.eSortMixed=r,this.eSortNone=n},e.prototype.setupSort=function(t,e){var o=this;void 0===e&&(e=!1),this.column=t,this.suppressOrder=e,this.setupMultiSortIndicator();var r=!!this.column.getColDef().sortable;r&&(this.addInIcon("sortAscending",this.eSortAsc,t),this.addInIcon("sortDescending",this.eSortDesc,t),this.addInIcon("sortUnSort",this.eSortNone,t),this.addManagedListener(this.eventService,le.EVENT_SORT_CHANGED,(function(){return o.onSortChanged()})),this.addManagedListener(this.eventService,le.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return o.onSortChanged()})),this.onSortChanged())},e.prototype.addInIcon=function(t,e,o){if(null!=e){var r=jn(t,this.gridOptionsWrapper,o);r&&e.appendChild(r)}},e.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},e.prototype.updateIcons=function(){var t=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){var e="asc"===t;this.eSortAsc.classList.toggle("ag-hidden",!e)}if(this.eSortDesc){var o="desc"===t;this.eSortDesc.classList.toggle("ag-hidden",!o)}if(this.eSortNone){var r=!this.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon(),n=null===t||void 0===t;this.eSortNone.classList.toggle("ag-hidden",r||!n)}},e.prototype.setupMultiSortIndicator=function(){var t=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var e=this.column.getColDef().showRowGroup,o=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();o&&e&&(this.addManagedListener(this.eventService,le.EVENT_SORT_CHANGED,(function(){return t.updateMultiSortIndicator()})),this.addManagedListener(this.eventService,le.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return t.updateMultiSortIndicator()})),this.updateMultiSortIndicator())},e.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var t="mixed"===this.sortController.getDisplaySortForColumn(this.column);this.eSortMixed.classList.toggle("ag-hidden",!t)}},e.prototype.updateSortOrder=function(){var t,e=this;if(this.eSortOrder){var o=this.sortController.getColumnsWithSortingOrdered(),r=(t=this.sortController.getDisplaySortIndexForColumn(this.column),null!==t&&void 0!==t?t:-1),n=o.some((function(t){var o;return o=e.sortController.getDisplaySortIndexForColumn(t),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)}},e.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")],e.prototype,"eSortOrder",void 0),qs([Ai("eSortAsc")],e.prototype,"eSortAsc",void 0),qs([Ai("eSortDesc")],e.prototype,"eSortDesc",void 0),qs([Ai("eSortMixed")],e.prototype,"eSortMixed",void 0),qs([Ai("eSortNone")],e.prototype,"eSortNone",void 0),qs([nt("columnModel")],e.prototype,"columnModel",void 0),qs([nt("sortController")],e.prototype,"sortController",void 0),e}(Di),Qs=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Js=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Zs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return Qs(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.refresh=function(t){return this.params=t,this.workOutTemplate()==this.currentTemplate&&(this.workOutShowMenu()==this.currentShowMenu&&(this.workOutSort()==this.currentSort&&(this.setDisplayName(t),!0)))},e.prototype.workOutTemplate=function(){var t=Ct(this.params.template,e.TEMPLATE);return t=t&&t.trim?t.trim():t,t},e.prototype.init=function(t){this.params=t,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(t.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(t)},e.prototype.setDisplayName=function(t){if(this.currentDisplayName!=t.displayName){this.currentDisplayName=t.displayName;var e=ve(this.currentDisplayName);this.eText&&(this.eText.innerHTML=e)}},e.prototype.setupIcons=function(t){this.addInIcon("menu",this.eMenu,t),this.addInIcon("filter",this.eFilter,t)},e.prototype.addInIcon=function(t,e,o){if(null!=e){var r=jn(t,this.gridOptionsWrapper,o);r&&e.appendChild(r)}},e.prototype.setupTap=function(){var t=this,e=this.gridOptionsWrapper;if(!e.isSuppressTouch()){var o=new Ks(this.getGui(),!0),r=e.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){e.getApi().showColumnMenuAfterMouseClick(t.params.column,o.touchStart)};this.addManagedListener(s,Ks[a],l)}if(this.params.enableSorting){var u=function(e){var o=e.touchStart.target;r&&t.eMenu.contains(o)||t.sortController.progressSort(t.params.column,!1,"uiColumnSorted")};this.addManagedListener(o,Ks.EVENT_TAP,u)}this.addDestroyFunc((function(){return o.destroy()})),i&&this.addDestroyFunc((function(){return s.destroy()}))}},e.prototype.workOutShowMenu=function(){var t=!this.gridOptionsWrapper.isSuppressMenuHide(),e=Ze()&&t,o=this.params.enableMenu&&!e;return o},e.prototype.setMenu=function(){var t=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var e=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",(function(){return t.showMenu(t.eMenu)})),this.eMenu.classList.toggle("ag-header-menu-always-show",e)}else Sr(this.eMenu)},e.prototype.showMenu=function(t){t||(t=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,t,"columnMenu")},e.prototype.workOutSort=function(){return this.params.enableSorting},e.prototype.setupSort=function(){var t=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 e=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,mt.EVENT_MOVING_CHANGED,(function(){t.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(o){var r=t.params.column.isMoving(),n=(new Date).getTime(),i=n-t.lastMovingChanged<50,s=r||i;if(!s){var a=e?o.ctrlKey||o.metaKey:o.shiftKey;t.params.progressSort(a)}}));var o=function(){var e;if(t.addOrRemoveCssClass("ag-header-cell-sorted-asc",t.params.column.isSortAscending()),t.addOrRemoveCssClass("ag-header-cell-sorted-desc",t.params.column.isSortDescending()),t.addOrRemoveCssClass("ag-header-cell-sorted-none",t.params.column.isSortNone()),t.params.column.getColDef().showRowGroup){var o=t.columnModel.getSourceColumnsForGroupColumn(t.params.column),r=null===(e=o)||void 0===e?void 0:e.every((function(e){return t.params.column.getSort()==e.getSort()})),n=!r;t.addOrRemoveCssClass("ag-header-cell-sorted-mixed",n)}};this.addManagedListener(this.eventService,le.EVENT_SORT_CHANGED,o),this.addManagedListener(this.eventService,le.EVENT_COLUMN_ROW_GROUP_CHANGED,o)}},e.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,mt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},e.prototype.onFilterChanged=function(){var t=this.params.column.isFilterActive();this.eFilter.classList.toggle("ag-hidden",!t)},e.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([nt("sortController")],e.prototype,"sortController",void 0),Js([nt("menuFactory")],e.prototype,"menuFactory",void 0),Js([nt("columnModel")],e.prototype,"columnModel",void 0),Js([Ai("eFilter")],e.prototype,"eFilter",void 0),Js([Ai("eSortIndicator")],e.prototype,"eSortIndicator",void 0),Js([Ai("eMenu")],e.prototype,"eMenu",void 0),Js([Ai("eLabel")],e.prototype,"eLabel",void 0),Js([Ai("eText")],e.prototype,"eText",void 0),Js([Ai("eSortOrder")],e.prototype,"eSortOrder",void 0),Js([Ai("eSortAsc")],e.prototype,"eSortAsc",void 0),Js([Ai("eSortDesc")],e.prototype,"eSortDesc",void 0),Js([Ai("eSortMixed")],e.prototype,"eSortMixed",void 0),Js([Ai("eSortNone")],e.prototype,"eSortNone",void 0),e}(Di),$s=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ta=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},ea=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return $s(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){this.params=t,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},e.prototype.checkWarnings=function(){var t=this.params;if(t.template){var e="AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)";x((function(){return console.warn(e)}),"HeaderGroupComp.templateNotSupported")}},e.prototype.setupExpandIcons=function(){var t=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var e=function(e){if(!Kt(e)){var o=!t.params.columnGroup.isExpanded();t.columnModel.setColumnGroupOpened(t.params.columnGroup.getProvidedColumnGroup(),o,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,e),this.addTouchAndClickListeners(this.eOpenIcon,e);var o=function(t){zt(t)};this.addManagedListener(this.eCloseIcon,"dblclick",o),this.addManagedListener(this.eOpenIcon,"dblclick",o),this.addManagedListener(this.getGui(),"dblclick",e),this.updateIconVisibility();var r=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(r,Wt.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(r,Wt.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},e.prototype.addTouchAndClickListeners=function(t,e){var o=new Ks(t,!0);this.addManagedListener(o,Ks.EVENT_TAP,e),this.addDestroyFunc((function(){return o.destroy()})),this.addManagedListener(t,"click",e)},e.prototype.updateIconVisibility=function(){var t=this.params.columnGroup;if(t.isExpandable()){var e=this.params.columnGroup.isExpanded();pr(this.eOpenIcon,e),pr(this.eCloseIcon,!e)}else pr(this.eOpenIcon,!1),pr(this.eCloseIcon,!1)},e.prototype.addInIcon=function(t,e){var o=jn(t,this.gridOptionsWrapper,null);o&&this.getRefElement(e).appendChild(o)},e.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return pr(this.eOpenIcon,!1),void pr(this.eCloseIcon,!1)},e.prototype.setupLabel=function(){var t=this.params.displayName;if(n(t)){var e=ve(t);this.getRefElement("agLabel").innerHTML=e}},e.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>',ta([nt("columnModel")],e.prototype,"columnModel",void 0),ta([Ai("agOpened")],e.prototype,"eOpenIcon",void 0),ta([Ai("agClosed")],e.prototype,"eCloseIcon",void 0),e}(Di),oa=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ra=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oa(e,t),e.prototype.isPopup=function(){return!0},e.prototype.setParentComponent=function(e){e.addCssClass("ag-has-popup"),t.prototype.setParentComponent.call(this,e)},e.prototype.destroy=function(){var e=this.parentComponent,o=e&&e.isAlive();o&&e.getGui().classList.remove("ag-has-popup"),t.prototype.destroy.call(this)},e}(Di),na=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ia=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},sa=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return na(e,t),e.prototype.init=function(t){this.params=t,this.focusAfterAttached=t.cellStartedEdit,this.eTextArea.setMaxLength(t.maxLength||200).setCols(t.cols||60).setRows(t.rows||10),n(t.value)&&this.eTextArea.setValue(t.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},e.prototype.onKeyDown=function(t){var e=t.key;(e===zn.LEFT||e===zn.UP||e===zn.RIGHT||e===zn.DOWN||t.shiftKey&&e===zn.ENTER)&&t.stopPropagation()},e.prototype.afterGuiAttached=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(t("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},e.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},e.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")],e.prototype,"eTextArea",void 0),e}(ra),aa=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),la=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},ua=function(t){function e(){var e=t.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return e.startedByEnter=!1,e}return aa(e,t),e.prototype.init=function(t){var e=this;if(this.focusAfterAttached=t.cellStartedEdit,i(t.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=t.eventKey&&t.eventKey===zn.ENTER;var o=!1;t.values.forEach((function(r){var n={value:r},i=e.valueFormatterService.formatValue(t.column,null,r),s=null!==i&&void 0!==i;n.text=s?i:r,e.eSelect.addOption(n),o=o||t.value===r})),o?this.eSelect.setValue(t.value,!0):t.values.length&&this.eSelect.setValue(t.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((function(){return t.stopEditing()}))}},e.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},e.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},e.prototype.getValue=function(){return this.eSelect.getValue()},e.prototype.isPopup=function(){return!1},la([nt("valueFormatterService")],e.prototype,"valueFormatterService",void 0),la([Ai("eSelect")],e.prototype,"eSelect",void 0),e}(ra),pa=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ca=function(t){function e(){var e=t.call(this)||this;return x((function(){return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} ')}),"PopupSelectCellEditor.deprecated"),e}return pa(e,t),e.prototype.isPopup=function(){return!0},e}(ua),da=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ha=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},fa=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return da(e,t),e.prototype.init=function(t){this.params=t;var e,o=this.eInput;t.cellStartedEdit?(this.focusAfterAttached=!0,t.eventKey===zn.BACKSPACE||t.eventKey===zn.DELETE?e="":t.charPress?e=t.charPress:(e=this.getStartValue(t),t.eventKey!==zn.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,e=this.getStartValue(t)),null!=e&&o.setValue(e,!0),null!=t.maxLength&&o.setMaxLength(t.maxLength),this.addManagedListener(o.getGui(),"keydown",(function(t){var e=t.key;e!==zn.PAGE_UP&&e!==zn.PAGE_DOWN||t.preventDefault()}))},e.prototype.afterGuiAttached=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),e=this.eInput;if(e.setInputAriaLabel(t("ariaInputEditor","Input Editor")),this.focusAfterAttached){qe()||e.getFocusableElement().focus();var o=e.getInputElement();if(this.highlightAllOnFocus)o.select();else{var r=e.getValue(),i=n(r)&&r.length||0;i&&o.setSelectionRange(i,i)}}},e.prototype.focusIn=function(){var t=this.eInput,e=t.getFocusableElement(),o=t.getInputElement();e.focus(),o.select()},e.prototype.getValue=function(){var t=this.eInput;return this.params.parseValue(t.getValue())},e.prototype.getStartValue=function(t){var e=t.useFormatter||t.column.getColDef().refData;return e?t.formatValue(t.value):t.value},e.prototype.isPopup=function(){return!1},e.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")],e.prototype,"eInput",void 0),e}(ra),ga=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),va=function(t){function e(){var e=t.call(this)||this;return x((function(){return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} ')}),"PopupTextCellEditor.deprecated"),e}return ga(e,t),e.prototype.isPopup=function(){return!0},e}(fa),ya=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ma=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Ca="↑",wa="↓",Ea=function(t){function e(){var o=t.call(this,e.TEMPLATE)||this;return o.refreshCount=0,o}return ya(e,t),e.prototype.init=function(t){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(t)},e.prototype.showDelta=function(t,e){var o=Math.abs(e),r=t.formatValue(o),i=n(r)?r:o,s=e>=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)},e.prototype.setTimerToRemoveDelta=function(){var t=this;this.refreshCount++;var e=this.refreshCount;window.setTimeout((function(){e===t.refreshCount&&t.hideDeltaValue()}),2e3)},e.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),Rr(this.eDelta)},e.prototype.refresh=function(t){var e=t.value;if(e===this.lastValue)return!1;if(n(t.valueFormatted)?this.eValue.innerHTML=t.valueFormatted:n(t.value)?this.eValue.innerHTML=e:Rr(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"===typeof e&&"number"===typeof this.lastValue){var o=e-this.lastValue;this.showDelta(t,o)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=e,!0},e.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',ma([nt("filterManager")],e.prototype,"filterManager",void 0),e}(Di),Ra=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Oa=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Sa=function(t){function e(){var o=t.call(this,e.TEMPLATE)||this;return o.refreshCount=0,o.eCurrent=o.queryForHtmlElement(".ag-value-slide-current"),o}return Ra(e,t),e.prototype.init=function(t){this.refresh(t)},e.prototype.addSlideAnimation=function(){var t=this;this.refreshCount++;var e=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(){e===t.refreshCount&&t.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((function(){e===t.refreshCount&&(t.getGui().removeChild(t.ePrevious),t.ePrevious=null)}),3e3)},e.prototype.refresh=function(t){var e=t.value;return i(e)&&(e=""),e!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=e,n(t.valueFormatted)?this.eCurrent.innerHTML=t.valueFormatted:n(t.value)?this.eCurrent.innerHTML=e:Rr(this.eCurrent),!0))},e.TEMPLATE='<span>\n <span class="ag-value-slide-current"></span>\n </span>',Oa([nt("filterManager")],e.prototype,"filterManager",void 0),e}(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(t){t[t["Above"]=0]="Above",t[t["Below"]=1]="Below"})(fs||(fs={}));var _a,ba,Pa,Ta=function(){function t(e){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=t.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.beans=e}return t.prototype.setData=function(t){this.setDataCommon(t,!1)},t.prototype.updateData=function(t){this.setDataCommon(t,!0)},t.prototype.setDataCommon=function(t,e){var o=this.data;this.data=t,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var r=this.createDataChangedEvent(t,o,e);this.dispatchLocalEvent(r)},t.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},t.prototype.createDataChangedEvent=function(e,o,r){return{type:t.EVENT_DATA_CHANGED,node:this,oldData:o,newData:e,update:r}},t.prototype.createLocalRowEvent=function(t){return{type:t,node:this}},t.prototype.getRowIndexString=function(){return this.rowPinned===ft.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===ft.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},t.prototype.createDaemonNode=function(){var e=new t(this.beans);return e.id=this.id,e.data=this.data,e.daemon=!0,e.selected=this.selected,e.level=this.level,e},t.prototype.setDataAndId=function(t,e){var o=n(this.id)?this.createDaemonNode():null,r=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(e),this.beans.selectionService.syncInRowNode(this,o),this.checkRowSelectable();var i=this.createDataChangedEvent(t,r,!1);this.dispatchLocalEvent(i)},t.prototype.checkRowSelectable=function(){var t=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!t||t(this))},t.prototype.setRowSelectable=function(e){if(this.selectable!==e){this.selectable=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_SELECTABLE_CHANGED));var o=this.beans.gridOptionsWrapper.isGroupSelectsChildren();if(o){var r=this.calculateSelectedFromChildren();this.setSelected(null!==r&&void 0!==r&&r)}}},t.prototype.setId=function(e){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(t.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+t.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=e},t.prototype.getGroupKeys=function(t){void 0===t&&(t=!1);var e=[],o=this;t&&(o=o.parent);while(o&&o.level>=0)e.push(o.key),o=o.parent;return e.reverse(),e},t.prototype.isPixelInRange=function(t){return!(!n(this.rowTop)||!n(this.rowHeight))&&(t>=this.rowTop&&t<this.rowTop+this.rowHeight)},t.prototype.setFirstChild=function(e){this.firstChild!==e&&(this.firstChild=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_FIRST_CHILD_CHANGED)))},t.prototype.setLastChild=function(e){this.lastChild!==e&&(this.lastChild=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_LAST_CHILD_CHANGED)))},t.prototype.setChildIndex=function(e){this.childIndex!==e&&(this.childIndex=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_CHILD_INDEX_CHANGED)))},t.prototype.setRowTop=function(e){this.oldRowTop=this.rowTop,this.rowTop!==e&&(this.rowTop=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_TOP_CHANGED)),this.setDisplayed(null!==e))},t.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},t.prototype.setDisplayed=function(e){this.displayed!==e&&(this.displayed=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_DISPLAYED_CHANGED)))},t.prototype.setDragging=function(e){this.dragging!==e&&(this.dragging=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_DRAGGING_CHANGED)))},t.prototype.setHighlighted=function(e){e!==this.highlighted&&(this.highlighted=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HIGHLIGHT_CHANGED)))},t.prototype.setAllChildrenCount=function(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},t.prototype.setMaster=function(e){this.master!==e&&(this.master&&!e&&(this.expanded=!1),this.master=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_MASTER_CHANGED)))},t.prototype.setGroup=function(e){this.group!==e&&(this.group&&!e&&(this.expanded=!1),this.group=e,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_GROUP_CHANGED)))},t.prototype.setRowHeight=function(e,o){void 0===o&&(o=!1),this.rowHeight=e,this.rowHeightEstimated=o,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HEIGHT_CHANGED))},t.prototype.setRowAutoHeight=function(t,e){this.__autoHeights||(this.__autoHeights={});var o=this.__autoHeights;o[e.getId()]=t,null!=t&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=z(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},t.prototype.checkAutoHeights=function(){var t=!1,e=!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?(e=!1,i>o&&(o=i)):t=!0})),!t&&((e||o<10)&&(o=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),o!=this.rowHeight)){this.setRowHeight(o);var i=this.beans.rowModel;i.onRowHeightChangedDebounced&&i.onRowHeightChangedDebounced()}}},t.prototype.setRowIndex=function(e){this.rowIndex!==e&&(this.rowIndex=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_ROW_INDEX_CHANGED)))},t.prototype.setUiLevel=function(e){this.uiLevel!==e&&(this.uiLevel=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_UI_LEVEL_CHANGED)))},t.prototype.setExpanded=function(e,o){if(this.expanded!==e){this.expanded=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_EXPANDED_CHANGED));var r=Object.assign({},this.createGlobalRowEvent(le.EVENT_ROW_GROUP_OPENED),{expanded:e,event:o||null});this.beans.rowNodeEventThrottle.dispatchExpanded(r),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},t.prototype.createGlobalRowEvent=function(t){return{type:t,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()}},t.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},t.prototype.setDataValue=function(t,e,o){var r=this.beans.columnModel.getPrimaryColumn(t),n=this.beans.valueService.getValue(r,this),i=this.beans.valueService.setValue(this,r,e,o);return this.dispatchCellChangedEvent(r,e,n),this.checkRowSelectable(),i},t.prototype.setGroupValue=function(t,e){var o=this.beans.columnModel.getGridColumn(t);i(this.groupData)&&(this.groupData={});var r=o.getColId(),n=this.groupData[r];n!==e&&(this.groupData[r]=e,this.dispatchCellChangedEvent(o,e,n))},t.prototype.setAggData=function(t){var e=this,o=_([this.aggData,t]),r=this.aggData;this.aggData=t,this.eventService&&o.forEach((function(t){var o=e.beans.columnModel.getGridColumn(t),n=e.aggData?e.aggData[t]:void 0,i=r?r[t]:void 0;e.dispatchCellChangedEvent(o,n,i)}))},t.prototype.updateHasChildren=function(){var e=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;e!==this.__hasChildren&&(this.__hasChildren=!!e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HAS_CHILDREN_CHANGED)))},t.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},t.prototype.isEmptyRowGroupNode=function(){return this.group&&s(this.childrenAfterGroup)},t.prototype.dispatchCellChangedEvent=function(e,o,r){var n={type:t.EVENT_CELL_CHANGED,node:this,column:e,newValue:o,oldValue:r};this.dispatchLocalEvent(n)},t.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},t.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},t.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},t.prototype.depthFirstSearch=function(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(e){return e.depthFirstSearch(t)})),t(this)},t.prototype.calculateSelectedFromChildren=function(){var t,e=!1,o=!1,r=!1;if(!(null===(t=this.childrenAfterGroup)||void 0===t?void 0:t.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:e=!0;break;case!1:o=!0;break;default:r=!0;break}}return r||e&&o?void 0:!!e||!o&&(this.selectable?this.selected:null)},t.prototype.setSelectedInitialValue=function(t){this.selected=t},t.prototype.setSelected=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1),this.setSelectedParams({newValue:t,clearSelection:e,suppressFinishActions:o,rangeSelect:!1})},t.prototype.isRowPinned=function(){return this.rowPinned===ft.PINNED_TOP||this.rowPinned===ft.PINNED_BOTTOM},t.prototype.setSelectedParams=function(t){var e,o=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),r=!0===t.newValue,n=!0===t.clearSelection,i=!0===t.suppressFinishActions,s=!0===t.rangeSelect,a=o&&!0===t.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(t);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(t.newValue);return this.beans.selectionService.setLastSelectedNode(this),p}}var c=0,d=a&&this.group;if(!d){var h=this.selectThisNode(r,t.event);h&&c++}if(o&&(null===(e=this.childrenAfterGroup)||void 0===e?void 0:e.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:le.EVENT_SELECTION_CHANGED};this.beans.eventService.dispatchEvent(g)}r&&this.beans.selectionService.setLastSelectedNode(this)}return c},t.prototype.doRowRangeSelection=function(t){var e=this;void 0===t&&(t=!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===t&&e===r)){var n=r.selectThisNode(t);n&&i++}})),this.beans.selectionService.updateGroupsFromChildrenSelections();var s={type:le.EVENT_SELECTION_CHANGED};return this.beans.eventService.dispatchEvent(s),i},t.prototype.isParentOfNode=function(t){var e=this.parent;while(e){if(e===t)return!0;e=e.parent}return!1},t.prototype.selectThisNode=function(e,o){var r=!this.selectable&&e,n=this.selected===e;if(r||n)return!1;this.selected=e,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_ROW_SELECTED));var i=Object.assign({},this.createGlobalRowEvent(le.EVENT_ROW_SELECTED),{event:o||null});return this.beans.eventService.dispatchEvent(i),!0},t.prototype.selectChildNodes=function(t,e){var o=e?this.childrenAfterAggFilter:this.childrenAfterGroup;if(i(o))return 0;for(var r=0,n=0;n<o.length;n++)r+=o[n].setSelectedParams({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:e});return r},t.prototype.addEventListener=function(t,e){this.eventService||(this.eventService=new ht),this.eventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.eventService&&(this.eventService.removeEventListener(t,e),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},t.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_MOUSE_ENTER))},t.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_MOUSE_LEAVE))},t.prototype.getFirstChildOfFirstChild=function(t){var e=this,o=!0,r=!1,i=null;while(o&&!r){var s=e.parent,a=n(s)&&e.firstChild;a?s.rowGroupColumn===t&&(r=!0,i=s):o=!1,e=s}return r?i:null},t.prototype.isFullWidthCell=function(){var t=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc();return!!t&&t({rowNode:this})},t.prototype.getRoute=function(){if(null!=this.key){var t=[],e=this;while(null!=e.key)t.push(e.key),e=e.parent;return t.reverse()}},t.ID_PREFIX_ROW_GROUP="row-group-",t.ID_PREFIX_TOP_PINNED="t-",t.ID_PREFIX_BOTTOM_PINNED="b-",t.OBJECT_ID_SEQUENCE=0,t.EVENT_ROW_SELECTED="rowSelected",t.EVENT_DATA_CHANGED="dataChanged",t.EVENT_CELL_CHANGED="cellChanged",t.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",t.EVENT_MASTER_CHANGED="masterChanged",t.EVENT_GROUP_CHANGED="groupChanged",t.EVENT_MOUSE_ENTER="mouseEnter",t.EVENT_MOUSE_LEAVE="mouseLeave",t.EVENT_HEIGHT_CHANGED="heightChanged",t.EVENT_TOP_CHANGED="topChanged",t.EVENT_DISPLAYED_CHANGED="displayedChanged",t.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",t.EVENT_LAST_CHILD_CHANGED="lastChildChanged",t.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",t.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",t.EVENT_EXPANDED_CHANGED="expandedChanged",t.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",t.EVENT_SELECTABLE_CHANGED="selectableChanged",t.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",t.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",t.EVENT_DRAGGING_CHANGED="draggingChanged",t}(),Da=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Aa=function(){return Aa=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},Aa.apply(this,arguments)},Na=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Ia=function(t){function e(){return t.call(this,'\n <div class="ag-selection-checkbox" role="presentation">\n <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n </div>')||this}return Da(e,t),e.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},e.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},e.prototype.onDataChanged=function(){this.onSelectionChanged()},e.prototype.onSelectableChanged=function(){this.showOrHideSelect()},e.prototype.onSelectionChanged=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),e=this.rowNode.isSelected(),o=void 0===e?t("ariaIndeterminate","indeterminate"):!0===e?t("ariaChecked","checked"):t("ariaUnchecked","unchecked"),r=t("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(e,!0),this.eCheckbox.setInputAriaLabel(r+" ("+o+")")},e.prototype.onCheckedClicked=function(t){var e=this.gridOptionsWrapper.isGroupSelectsFiltered(),o=this.rowNode.setSelectedParams({newValue:!1,rangeSelect:t.shiftKey,groupSelectsFiltered:e});return o},e.prototype.onUncheckedClicked=function(t){var e=this.gridOptionsWrapper.isGroupSelectsFiltered(),o=this.rowNode.setSelectedParams({newValue:!0,rangeSelect:t.shiftKey,groupSelectsFiltered:e});return o},e.prototype.init=function(t){var e=this;this.rowNode=t.rowNode,this.column=t.column,this.overrides=t.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(function(t){zt(t)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(t){zt(t);var o=e.eCheckbox.getValue(),r=e.eCheckbox.getPreviousValue();if(void 0===r||void 0===o){var n=e.onUncheckedClicked(t||{});0===n&&e.onCheckedClicked(t)}else o?e.onCheckedClicked(t):e.onUncheckedClicked(t||{})})),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,le.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")},e.prototype.showOrHideSelect=function(){var t,e,o,r,n=this.rowNode.selectable,i=this.getIsVisible();if(n)if("function"===typeof i){var s=null===(t=this.overrides)||void 0===t?void 0:t.callbackParams,a=null===(e=this.column)||void 0===e?void 0:e.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)},e.prototype.getIsVisible=function(){var t,e;return this.overrides?this.overrides.isVisible:null===(e=null===(t=this.column)||void 0===t?void 0:t.getColDef())||void 0===e?void 0:e.checkboxSelection},Na([Ai("eCheckbox")],e.prototype,"eCheckbox",void 0),Na([et],e.prototype,"postConstruct",null),e}(Di),Ga=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Fa=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},La=function(t){var e="function"===typeof Symbol&&Symbol.iterator,o=e&&t[e],r=0;if(o)return o.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"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(t){t[t["ToolPanel"]=0]="ToolPanel",t[t["HeaderCell"]=1]="HeaderCell",t[t["RowDrag"]=2]="RowDrag",t[t["ChartPanel"]=3]="ChartPanel"})(_a||(_a={})),function(t){t[t["Up"]=0]="Up",t[t["Down"]=1]="Down"}(ba||(ba={})),function(t){t[t["Left"]=0]="Left",t[t["Right"]=1]="Right"}(Pa||(Pa={}));var Ma,xa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dragSourceAndParamsList=[],e.dropTargets=[],e}var o;return Ga(e,t),o=e,e.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)},e.prototype.addDragSource=function(t,e){void 0===e&&(e=!1);var o={eElement:t.eElement,dragStartPixels:t.dragStartPixels,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:o,dragSource:t}),this.dragService.addDragSource(o,e)},e.prototype.removeDragSource=function(t){var e=this.dragSourceAndParamsList.find((function(e){return e.dragSource===t}));e&&(this.dragService.removeDragSource(e.params),Pt(this.dragSourceAndParamsList,e))},e.prototype.clearDragSourceParamsList=function(){var t=this;this.dragSourceAndParamsList.forEach((function(e){return t.dragService.removeDragSource(e.params)})),this.dragSourceAndParamsList.length=0},e.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},e.prototype.onDragStart=function(t,e){this.dragging=!0,this.dragSource=t,this.eventLastTime=e,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},e.prototype.onDragStop=function(t){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var e=this.createDropTargetEvent(this.lastDropTarget,t,null,null,!1);this.lastDropTarget.onDragStop(e)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},e.prototype.onDragging=function(t,e){var o,r,n,i,s=this,a=this.getHorizontalDirection(t),l=this.getVerticalDirection(t);this.eventLastTime=t,this.positionGhost(t);var u=this.dropTargets.filter((function(e){return s.isMouseOnDropTarget(t,e)})),p=this.findCurrentDropTarget(t,u);if(p!==this.lastDropTarget)this.leaveLastTargetIfExists(t,a,l,e),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,t,a,l,e),this.lastDropTarget=p;else if(p&&p.onDragging){var c=this.createDropTargetEvent(p,t,a,l,e);p.onDragging(c)}},e.prototype.getAllContainersFromDropTarget=function(t){var e=t.getSecondaryContainers?t.getSecondaryContainers():null,o=[[t.getContainer()]];return e?o.concat(e):o},e.prototype.allContainersIntersect=function(t,e){var o,r;try{for(var n=La(e),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=t.clientX>=a.left&&t.clientX<a.right,u=t.clientY>=a.top&&t.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},e.prototype.isMouseOnDropTarget=function(t,e){var o,r,n=this.getAllContainersFromDropTarget(e),i=!1;try{for(var s=La(n),a=s.next();!a.done;a=s.next()){var l=a.value;if(this.allContainersIntersect(t,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!(e.targetContainsSource&&!e.getContainer().contains(this.dragSource.eElement))&&(i&&e.isInterestedIn(this.dragSource.type,this.dragSource.eElement))},e.prototype.findCurrentDropTarget=function(t,e){var o,r,n,i,s=e.length;if(0===s)return null;if(1===s)return e[0];var a=this.gridOptionsWrapper.getDocument(),l=a.elementsFromPoint(t.clientX,t.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(e)),h=d.next();!h.done;h=d.next()){var f=h.value,g=Gt(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},e.prototype.enterDragTargetIfExists=function(t,e,o,r,n){if(t){if(t.onDragEnter){var i=this.createDropTargetEvent(t,e,o,r,n);t.onDragEnter(i)}this.setGhostIcon(t.getIconName?t.getIconName():null)}},e.prototype.leaveLastTargetIfExists=function(t,e,o,r){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var n=this.createDropTargetEvent(this.lastDropTarget,t,e,o,r);this.lastDropTarget.onDragLeave(n)}this.setGhostIcon(null)}},e.prototype.addDropTarget=function(t){this.dropTargets.push(t)},e.prototype.removeDropTarget=function(t){this.dropTargets=this.dropTargets.filter((function(e){return e.getContainer()!==t.getContainer()}))},e.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(t){return t.external}))},e.prototype.findExternalZone=function(t){var e=this.dropTargets.filter((function(t){return t.external}));return e.find((function(e){return e.getContainer()===t.getContainer()}))||null},e.prototype.getHorizontalDirection=function(t){var e=this.eventLastTime&&this.eventLastTime.clientX,o=t.clientX;return e===o?null:e>o?Pa.Left:Pa.Right},e.prototype.getVerticalDirection=function(t){var e=this.eventLastTime&&this.eventLastTime.clientY,o=t.clientY;return e===o?null:e>o?ba.Up:ba.Down},e.prototype.createDropTargetEvent=function(t,e,o,r,n){var i=t.getContainer(),s=i.getBoundingClientRect(),a=this,l=a.gridApi,u=a.columnApi,p=a.dragItem,c=a.dragSource,d=e.clientX-s.left,h=e.clientY-s.top;return{event:e,x:d,y:h,vDirection:r,hDirection:o,dragSource:c,fromNudge:n,dragItem:p,api:l,columnApi:u,dropZoneTarget:i}},e.prototype.positionGhost=function(t){var e=this.eGhost;if(e){var o=e.getBoundingClientRect(),r=o.height,n=so()-2,i=ao()-2,s=t.pageY-r/2,a=t.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+e.clientWidth>n+c&&(a=n+c-e.clientWidth),a<0&&(a=0),i>0&&s+e.clientHeight>i+p&&(s=i+p-e.clientHeight),s<0&&(s=0),e.style.left=a+"px",e.style.top=s+"px"}},e.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},e.prototype.createGhost=function(){this.eGhost=br(o.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var t=this.environment.getTheme().theme;t&&this.eGhost.classList.add(t),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var e=this.eGhost.querySelector(".ag-dnd-ghost-label"),r=this.dragSource.dragItemName;V(r)&&(r=r()),e.innerHTML=ve(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")},e.prototype.setGhostIcon=function(t,e){void 0===e&&(e=!1),Rr(this.eGhostIcon);var r=null;switch(t||(t=this.dragSource.defaultIconName||o.ICON_NOT_ALLOWED),t){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",e),r===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||r&&this.eGhostIcon.appendChild(r)},e.ICON_PINNED="pinned",e.ICON_MOVE="move",e.ICON_LEFT="left",e.ICON_RIGHT="right",e.ICON_GROUP="group",e.ICON_AGGREGATE="aggregate",e.ICON_PIVOT="pivot",e.ICON_NOT_ALLOWED="notAllowed",e.ICON_HIDE="hide",e.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([nt("dragService")],e.prototype,"dragService",void 0),Fa([nt("mouseEventService")],e.prototype,"mouseEventService",void 0),Fa([nt("environment")],e.prototype,"environment",void 0),Fa([nt("columnApi")],e.prototype,"columnApi",void 0),Fa([nt("gridApi")],e.prototype,"gridApi",void 0),Fa([et],e.prototype,"init",null),Fa([ot],e.prototype,"clearDragSourceParamsList",null),e=o=Fa([rt("dragAndDropService")],e),e}(re),Ha=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Va=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Wa=function(t){function e(e,o,r,n,i,s){var a=t.call(this)||this;return a.cellValueFn=e,a.rowNode=o,a.column=r,a.customGui=n,a.dragStartPixels=i,a.suppressVisibilityChange=s,a.dragSource=null,a}return Ha(e,t),e.prototype.isCustomGui=function(){return null!=this.customGui},e.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 t=this.beans.gridOptionsWrapper.isRowDragManaged()?new ja(this,this.beans,this.rowNode,this.column):new Ba(this,this.beans,this.rowNode,this.column);this.createManagedBean(t,this.beans.context)}},e.prototype.setDragElement=function(t,e){this.setTemplateFromElement(t),this.addDragSource(e)},e.prototype.getSelectedNodes=function(){var t=this.beans.gridOptionsWrapper.isRowDragMultiRow();if(!t)return[this.rowNode];var e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e:[this.rowNode]},e.prototype.checkCompatibility=function(){var t=this.beans.gridOptionsWrapper.isRowDragManaged(),e=this.beans.gridOptionsWrapper.isTreeData();e&&t&&x((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},e.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},e.prototype.addDragSource=function(t){var e=this;void 0===t&&(t=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 t,n=e.getDragItem(),i=(null===(t=n.rowNodes)||void 0===t?void 0:t.length)||1;return o?o(n,i):1===i?e.cellValueFn():i+" "+r("rowDragRows","rows")},getDragItem:function(){return e.getDragItem()},dragStartPixels:t,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},e.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},Va([nt("beans")],e.prototype,"beans",void 0),Va([et],e.prototype,"postConstruct",null),Va([ot],e.prototype,"removeDragSource",null),e}(Di),ka=function(t){function e(e,o,r){var n=t.call(this)||this;return n.parent=e,n.rowNode=o,n.column=r,n}return Ha(e,t),e.prototype.setDisplayedOrVisible=function(t){if(t)this.parent.setDisplayed(!1);else{var e=!0,o=!1;this.column&&(e=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),o=V(this.column.getColDef().rowDrag)),o?(this.parent.setDisplayed(!0),this.parent.setVisible(e)):(this.parent.setDisplayed(e),this.parent.setVisible(!0))}},e}(re),Ba=function(t){function e(e,o,r,n){var i=t.call(this,e,r,n)||this;return i.beans=o,i}return Ha(e,t),e.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,le.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},e.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},e.prototype.workOutVisibility=function(){var t=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(t)},Va([et],e.prototype,"postConstruct",null),e}(ka),ja=function(t){function e(e,o,r,n){var i=t.call(this,e,r,n)||this;return i.beans=o,i}return Ha(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,le.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,le.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,le.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,le.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()},e.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},e.prototype.workOutVisibility=function(){var t=this.beans.ctrlsService.getGridBodyCtrl(),e=t.getRowDragFeature(),o=e&&e.shouldPreventRowMove(),r=this.beans.gridOptionsWrapper.isSuppressRowDrag(),n=this.beans.dragAndDropService.hasExternalDropZones(),i=o&&!n||r;this.setDisplayedOrVisible(i)},Va([et],e.prototype,"postConstruct",null),e}(ka),Ua=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),za=function(){return za=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},za.apply(this,arguments)},Ka=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Ya=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ua(e,t),e.prototype.init=function(t,e,o,r,n,i,s){this.params=s,this.eGui=e,this.eCheckbox=o,this.eExpanded=r,this.eContracted=n,this.comp=t,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())},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.expandListener=null},e.prototype.refreshAriaExpanded=function(){var t=this.params,e=t.node,o=t.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var r=function(){wn(o,!!e.expanded)};this.expandListener=this.addManagedListener(e,Ta.EVENT_EXPANDED_CHANGED,r)||null,r()}else En(o)},e.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter())return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var t=this.params.colDef,e=null==t;if(e)return!0;if(!0===t.showRowGroup)return!0;var o=this.columnModel.getRowGroupColumns();if(!o||0===o.length)return!0;var r=o[0];return r.getId()===t.showRowGroup},e.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var t=this.params.pinned===ft.PINNED_LEFT,e=this.params.pinned===ft.PINNED_RIGHT,o=!t&&!e;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!e:!o:this.columnModel.isPinningLeft()?!t:!o},e.prototype.findDisplayedGroupNode=function(){var t=this.params.column,e=this.params.node;if(this.showingValueForOpenedParent){var o=e.parent;while(null!=o){if(o.rowGroupColumn&&t.isRowGroupDisplayed(o.rowGroupColumn.getId())){this.displayedGroupNode=o;break}o=o.parent}}i(this.displayedGroupNode)&&(this.displayedGroupNode=e)},e.prototype.setupShowingValueForOpenedParent=function(){var t=this.params.node,e=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(t.groupData){var o=null!=t.rowGroupColumn;if(o){var r=t.rowGroupColumn.getId(),n=e.isRowGroupDisplayed(r);if(n)return void(this.showingValueForOpenedParent=!1)}var i=null!=t.groupData[e.getId()];this.showingValueForOpenedParent=i}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},e.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},e.prototype.addGroupValue=function(){var t=this.adjustParamsWithDetailsFromRelatedColumn(),e=this.getInnerCompDetails(t),o=t.valueFormatted,r=t.value,n=null!=o?o:r;this.comp.setInnerRenderer(e,n)},e.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var t=this.displayedGroupNode.rowGroupColumn,e=this.params.column;if(!t)return this.params;var o=null!=e;if(o){var r=e.isRowGroupDisplayed(t.getId());if(!r)return this.params}var n=this.params,i=this.params,s=i.value,a=i.node,l=this.valueFormatterService.formatValue(t,a,s),u=za(za({},n),{valueFormatted:l});return u},e.prototype.addFooterValue=function(){var t=this.params.footerValueGetter,e="";if(t){var o=m(this.params);o.value=this.params.value,"function"===typeof t?e=t(o):"string"===typeof t?e=this.expressionService.evaluate(t,o):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+(null!=this.params.value?this.params.value:"");var r=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(r,e)},e.prototype.getInnerCompDetails=function(t){var e=this;if(t.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,t);var o=this.userComponentFactory.getInnerRendererDetails(t,t),r=function(t){return t&&t.componentClass==e.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,t);if(s&&!r(s))return s;if(r(s)&&i.cellRendererParams&&i.cellRendererParams.innerRenderer){var a=this.userComponentFactory.getInnerRendererDetails(i.cellRendererParams,t);return a}}},e.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,Ta.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},e.prototype.updateChildCount=function(){var t=this.displayedGroupNode.allChildrenCount,e=this.isShowRowGroupForThisRow(),o=e&&null!=t&&t>=0,r=o?"("+t+")":"";this.comp.setChildCount(r)},e.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var t=this.displayedGroupNode.rowGroupColumn;if(!t)return!1;var e=this.params.column,o=null==e||e.isRowGroupDisplayed(t.getId());return o},e.prototype.addExpandAndContract=function(){var t=this.params,e=jn("groupExpanded",this.gridOptionsWrapper,null),o=jn("groupContracted",this.gridOptionsWrapper,null);e&&this.eExpanded.appendChild(e),o&&this.eContracted.appendChild(o);var r=t.eGridCell;this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||t.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(t.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)},e.prototype.onExpandClicked=function(t){Kt(t)||(zt(t),this.onExpandOrContract(t))},e.prototype.onExpandOrContract=function(t){var e=this.displayedGroupNode,o=!e.expanded;!o&&e.sticky&&this.scrollToStickyNode(e),e.setExpanded(o,t)},e.prototype.scrollToStickyNode=function(t){var e=this.ctrlsService.getGridBodyCtrl(),o=e.getScrollFeature();o.setVerticalScrollPosition(t.rowTop-t.stickyRowTop)},e.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var t=this.displayedGroupNode,e=this.columnModel.isPivotMode()&&t.leafGroup,o=t.isExpandable()&&!t.footer&&!e;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},e.prototype.showExpandAndContractIcons=function(){var t=this,e=t.params,o=t.displayedGroupNode,r=t.columnModel,n=e.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)},e.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},e.prototype.setupIndent=function(){var t=this.params.node,e=this.params.suppressPadding;e||(this.addManagedListener(t,Ta.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},e.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var t=this.params,e=t.node,o=!!t.colDef,r=this.gridOptionsWrapper.isTreeData(),n=!o||r||!0===t.colDef.showRowGroup,i=n?e.uiLevel:0,s=t.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)}},e.prototype.addFullWidthRowDraggerIfNeeded=function(){var t=this;if(this.params.fullWidth&&this.params.rowDrag){var e=new Wa((function(){return t.params.value}),this.params.node);this.createManagedBean(e,this.context),this.eGui.insertAdjacentElement("afterbegin",e.getGui())}},e.prototype.isUserWantsSelected=function(){var t=this.params.checkbox;return"function"===typeof t||!0===t},e.prototype.addCheckboxIfNeeded=function(){var t=this,e=this.displayedGroupNode,o=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(o){var r=new Ia;this.getContext().createBean(r),r.init({rowNode:e,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(r.getGui()),this.addDestroyFunc((function(){return t.getContext().destroyBean(r)}))}this.comp.setCheckboxVisible(o)},e.prototype.onKeyDown=function(t){var e=t.key===zn.ENTER;if(e&&!this.params.suppressEnterExpand){var o=this.params.column&&this.params.column.isCellEditable(this.params.node);o||this.onExpandOrContract(t)}},e.prototype.onCellDblClicked=function(t){if(!Kt(t)){var e=Qt(this.eExpanded,t)||Qt(this.eContracted,t);e||this.onExpandOrContract(t)}},Ka([nt("expressionService")],e.prototype,"expressionService",void 0),Ka([nt("valueFormatterService")],e.prototype,"valueFormatterService",void 0),Ka([nt("columnModel")],e.prototype,"columnModel",void 0),Ka([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Ka([nt("gridOptions")],e.prototype,"gridOptions",void 0),Ka([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),e}(re),qa=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xa=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Qa=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return qa(e,t),e.prototype.init=function(t){var e=this,o={setInnerRenderer:function(t,o){return e.setRenderDetails(t,o)},setChildCount:function(t){return e.eChildCount.innerHTML=t},addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},setContractedDisplayed:function(t){return pr(e.eContracted,t)},setExpandedDisplayed:function(t){return pr(e.eExpanded,t)},setCheckboxVisible:function(t){return e.eCheckbox.classList.toggle("ag-invisible",!t)}},r=this.createManagedBean(new Ya),n=!t.colDef,i=this.getGui();r.init(o,i,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,t),n&&ln(i,"gridcell")},e.prototype.setRenderDetails=function(t,e){var o=this;if(t){var r=t.newAgStackInstance();if(!r)return;r.then((function(t){if(t){var e=function(){return o.context.destroyBean(t)};o.isAlive()?(o.eValue.appendChild(t.getGui()),o.addDestroyFunc(e)):e()}}))}else this.eValue.innerText=e},e.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),t.prototype.destroy.call(this)},e.prototype.refresh=function(){return!1},e.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")],e.prototype,"eExpanded",void 0),Xa([Ai("eContracted")],e.prototype,"eContracted",void 0),Xa([Ai("eCheckbox")],e.prototype,"eCheckbox",void 0),Xa([Ai("eValue")],e.prototype,"eValue",void 0),Xa([Ai("eChildCount")],e.prototype,"eChildCount",void 0),e}(Di),Ja=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Za=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},$a=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return Ja(e,t),e.prototype.init=function(t){t.node.failedLoad?this.setupFailed():this.setupLoading()},e.prototype.setupFailed=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingError","ERR")},e.prototype.setupLoading=function(){var t=jn("groupLoading",this.gridOptionsWrapper,null);t&&this.eLoadingIcon.appendChild(t);var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingOoo","Loading")},e.prototype.refresh=function(t){return!1},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.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")],e.prototype,"eLoadingIcon",void 0),Za([Ai("eLoadingText")],e.prototype,"eLoadingText",void 0),e}(Di),tl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),el=function(t){function e(){return t.call(this)||this}return tl(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){var o=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():e.DEFAULT_LOADING_OVERLAY_TEMPLATE,r=this.gridOptionsWrapper.getLocaleTextFunc(),n=o.replace("[LOADING...]",r("loadingOoo","Loading..."));this.setTemplate(n)},e.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',e}(Di),ol=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),rl=function(t){function e(){return t.call(this)||this}return ol(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){var o=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():e.DEFAULT_NO_ROWS_TEMPLATE,r=this.gridOptionsWrapper.getLocaleTextFunc(),n=o.replace("[NO_ROWS_TO_SHOW]",r("noRowsToShow","No Rows To Show"));this.setTemplate(n)},e.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',e}(Di),nl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),il=function(t){function e(){return t.call(this,'<div class="ag-tooltip"></div>')||this}return nl(e,t),e.prototype.init=function(t){var e=t.value;this.getGui().innerHTML=ve(e)},e}(ra),sl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),al=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},ll=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.agGridDefaults={agDateInput:Ns,agColumnHeader:Zs,agColumnGroupHeader:ea,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:el,agNoRowsOverlay:rl,agTooltipComponent:il},e.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"}},e.jsComps={},e.fwComps={},e}return sl(e,t),e.prototype.init=function(){var t=this;null!=this.gridOptions.components&&y(this.gridOptions.components,(function(e,o){return t.registerJsComponent(e,o)})),null!=this.gridOptions.frameworkComponents&&y(this.gridOptions.frameworkComponents,(function(e,o){return t.registerFwComponent(e,o)}))},e.prototype.registerDefaultComponent=function(t,e){var o=this.translateIfDeprecated(t);this.agGridDefaults[o]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[o]=e},e.prototype.registerJsComponent=function(t,e){var o=this.translateIfDeprecated(t);this.fwComps[o]?console.error("Trying to register a component that you have already registered for frameworks: "+o):this.jsComps[o]=e},e.prototype.registerFwComponent=function(t,e){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(t);this.fwComps[r]=e},e.prototype.retrieve=function(t){var e=this.translateIfDeprecated(t),o=function(t,e){return{componentFromFramework:e,component:t}},r=this.getFrameworkOverrides().frameworkComponent(e,this.gridOptions.components);if(null!=r)return o(r,!0);var n=this.fwComps[e];if(n)return o(n,!0);var i=this.jsComps[e];if(i){var s=this.getFrameworkOverrides().isFrameworkComponent(i);return o(i,s)}var a=this.agGridDefaults[e];return a?o(a,!1):(Object.keys(this.agGridDefaults).indexOf(e)<0&&console.warn("AG Grid: Looking for component ["+e+"] but it wasn't found."),null)},e.prototype.translateIfDeprecated=function(t){var e=this.agDeprecatedNames[t];return null!=e?(x((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+e.propertyHolder+":"+t+" to "+e.propertyHolder+":"+e.newComponentName)}),"DEPRECATE_COMPONENT_"+t),e.newComponentName):t},al([nt("gridOptions")],e.prototype,"gridOptions",void 0),al([nt("agComponentUtils")],e.prototype,"agComponentUtils",void 0),al([et],e.prototype,"init",null),e=al([rt("userComponentRegistry")],e),e}(re),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 t(){}return t.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},t.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},t}(),Pl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Tl=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Dl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pl(e,t),e.prototype.getHeaderCompDetails=function(t,e){return this.getCompDetails(t,pl,"agColumnHeader",e)},e.prototype.getHeaderGroupCompDetails=function(t){var e=t.columnGroup.getColGroupDef();return this.getCompDetails(e,cl,"agColumnGroupHeader",t)},e.prototype.getFullWidthCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,Rl,null,t,!0)},e.prototype.getFullWidthLoadingCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,Ol,"agLoadingCellRenderer",t,!0)},e.prototype.getFullWidthGroupCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,Sl,"agGroupRowRenderer",t,!0)},e.prototype.getFullWidthDetailCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,_l,"agDetailCellRenderer",t,!0)},e.prototype.getInnerRendererDetails=function(t,e){return this.getCompDetails(t,fl,null,e)},e.prototype.getFullWidthGroupRowInnerCellRenderer=function(t,e){return this.getCompDetails(t,fl,null,e)},e.prototype.getCellRendererDetails=function(t,e){return this.getCompDetails(t,dl,null,e)},e.prototype.getCellEditorDetails=function(t,e){return this.getCompDetails(t,hl,"agCellEditor",e,!0)},e.prototype.getFilterDetails=function(t,e,o){return this.getCompDetails(t,ml,o,e,!0)},e.prototype.getDateCompDetails=function(t){return this.getCompDetails(this.gridOptions,ul,"agDateInput",t,!0)},e.prototype.getLoadingOverlayCompDetails=function(t){return this.getCompDetails(this.gridOptions,gl,"agLoadingOverlay",t,!0)},e.prototype.getNoRowsOverlayCompDetails=function(t){return this.getCompDetails(this.gridOptions,vl,"agNoRowsOverlay",t,!0)},e.prototype.getTooltipCompDetails=function(t){return this.getCompDetails(t.colDef,yl,"agTooltipComponent",t,!0)},e.prototype.getSetFilterCellRendererDetails=function(t,e){return this.getCompDetails(t,dl,null,e)},e.prototype.getFloatingFilterCompDetails=function(t,e,o){return this.getCompDetails(t,Cl,o,e)},e.prototype.getToolPanelCompDetails=function(t,e){return this.getCompDetails(t,wl,null,e,!0)},e.prototype.getStatusPanelCompDetails=function(t,e){return this.getCompDetails(t,El,null,e,!0)},e.prototype.getCompDetails=function(t,e,o,r,n){var i=this;void 0===n&&(n=!1);var s=e.propertyName,a=e.cellRenderer,l=this.getCompKeys(t,e,r),u=l.compName,p=l.jsComp,c=l.fwComp,d=l.paramsFromSelector,h=l.popupFromSelector,f=l.popupPositionFromSelector,g=function(t){var e=i.userComponentRegistry.retrieve(t);e&&(p=e.componentFromFramework?void 0:e.component,c=e.componentFromFramework?e.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(t,e,r,d),y=null==p,m=p||c;return{componentFromFramework:y,componentClass:m,params:v,type:e,popupFromSelector:h,popupPositionFromSelector:f,newAgStackInstance:function(){return i.newAgStackInstance(m,y,v,e)}}}n&&console.error("Could not find component "+u+", did you forget to configure this component?")},e.prototype.getCompKeys=function(t,e,o){var r,n,i,s,a,l,u=this,p=e.propertyName;if(t){var c=t,d=c[p+"Selector"],h=d?d(o):null,f=function(t,e){var o=function(){var t="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(t)}),"UserComponentFactory."+p+"FrameworkDeprecated")};if("string"===typeof t)r=t;else if("string"===typeof e)o(),r=e;else if(null!=t&&!0!==t){var s=u.getFrameworkOverrides().isFrameworkComponent(t);s?i=t:n=t}else null!=e&&(o(),i=e)};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}},e.prototype.newAgStackInstance=function(t,e,o,r){var n,i=r.propertyName,s=!e;if(s)n=new t;else{var a=this.componentMetadataProvider.retrieve(i);n=this.frameworkComponentWrapper.wrap(t,a.mandatoryMethodList,a.optionalMethodList,r)}var l=this.initComponent(n,o);return null==l?wi.resolve(n):l.then((function(){return n}))},e.prototype.mergeParamsWithApplicationProvidedParams=function(t,e,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=t,s=i&&i[e.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},e.prototype.initComponent=function(t,e){if(this.context.createBean(t),null!=t.init)return t.init(e)},e.prototype.getDefaultFloatingFilterType=function(t){if(null==t)return null;var e=null,o=this.getCompKeys(t,ml),r=o.compName,n=o.jsComp,i=o.fwComp;if(r)e=bl.getFloatingFilterType(r);else{var s=null==n&&null==i&&!0===t.filter;if(s){var a=gt.isRegistered(ut.SetFilterModule);e=a?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"}}return e},Tl([nt("gridOptions")],e.prototype,"gridOptions",void 0),Tl([nt("agComponentUtils")],e.prototype,"agComponentUtils",void 0),Tl([nt("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),Tl([nt("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),Tl([it("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),e=Tl([rt("userComponentFactory")],e),e}(re); /** * @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(t){t[t["SINGLE_SHEET"]=0]="SINGLE_SHEET",t[t["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 t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Il=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Gl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return Nl(e,t),e.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},e.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},e.prototype.removeListener=function(t){var e=t.dragSource.eElement,o=t.mouseDownListener;if(e.removeEventListener("mousedown",o),t.touchEnabled){var r=t.touchStartListener;e.removeEventListener("touchstart",r,{passive:!0})}},e.prototype.removeDragSource=function(t){var e=this.dragSources.find((function(e){return e.dragSource===t}));e&&(this.removeListener(e),Pt(this.dragSources,e))},e.prototype.isDragging=function(){return this.dragging},e.prototype.addDragSource=function(t,e){var o=this;void 0===e&&(e=!1);var r=this.onMouseDown.bind(this,t);t.eElement.addEventListener("mousedown",r);var n=null,i=this.gridOptionsWrapper.isSuppressTouch();e&&!i&&(n=function(e){ur(e.target)||(e.cancelable&&e.preventDefault(),o.onTouchStart(t,e))},t.eElement.addEventListener("touchstart",n,{passive:!1})),this.dragSources.push({dragSource:t,mouseDownListener:r,touchStartListener:n,touchEnabled:e})},e.prototype.onTouchStart=function(t,e){var o=this;this.currentDragParams=t,this.dragging=!1;var r=e.touches[0];this.touchLastTime=r,this.touchStart=r;var n=function(e){return o.onTouchMove(e,t.eElement)},i=function(e){return o.onTouchUp(e,t.eElement)},s=function(t){t.cancelable&&t.preventDefault()},a=e.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===t.dragStartPixels&&this.onCommonMove(r,this.touchStart,t.eElement)},e.prototype.onMouseDown=function(t,e){var o=this,r=e;if((!t.skipMouseEvent||!t.skipMouseEvent(e))&&!r._alreadyProcessedByDragService&&(r._alreadyProcessedByDragService=!0,0===e.button)){this.currentDragParams=t,this.dragging=!1,this.mouseStartEvent=e;var n=this.gridOptionsWrapper.getDocument(),i=function(e){return o.onMouseMove(e,t.eElement)},s=function(e){return o.onMouseUp(e,t.eElement)},a=function(t){return t.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===t.dragStartPixels&&this.onMouseMove(e,t.eElement)}},e.prototype.addTemporaryEvents=function(t){t.forEach((function(t){var e=t.target,o=t.type,r=t.listener,n=t.options;e.addEventListener(o,r,n)})),this.dragEndFunctions.push((function(){t.forEach((function(t){var e=t.target,o=t.type,r=t.listener,n=t.options;e.removeEventListener(o,r,n)}))}))},e.prototype.isEventNearStartEvent=function(t,e){var o=this.currentDragParams.dragStartPixels,r=n(o)?o:4;return ai(t,e,r)},e.prototype.getFirstActiveTouch=function(t){for(var e=0;e<t.length;e++)if(t[e].identifier===this.touchStart.identifier)return t[e];return null},e.prototype.onCommonMove=function(t,e,o){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(t,e))return;this.dragging=!0;var r={type:le.EVENT_DRAG_STARTED,target:o};this.eventService.dispatchEvent(r),this.currentDragParams.onDragStart(e),this.currentDragParams.onDragging(e)}this.currentDragParams.onDragging(t)},e.prototype.onTouchMove=function(t,e){var o=this.getFirstActiveTouch(t.touches);o&&this.onCommonMove(o,this.touchStart,e)},e.prototype.onMouseMove=function(t,e){(this.gridOptionsWrapper.isEnableCellTextSelect()||qe())&&"mousemove"===t.type&&t.cancelable&&this.mouseEventService.isEventFromThisGrid(t)&&!this.isOverFormFieldElement(t)&&t.preventDefault(),this.onCommonMove(t,this.mouseStartEvent,e)},e.prototype.isOverFormFieldElement=function(t){var e,o,r=t.target,n=null===(e=r)||void 0===e?void 0:e.tagName.toLocaleLowerCase();return!!(null===(o=n)||void 0===o?void 0:o.match("^a$|textarea|input|select|button"))},e.prototype.onTouchUp=function(t,e){var o=this.getFirstActiveTouch(t.changedTouches);o||(o=this.touchLastTime),this.onUpCommon(o,e)},e.prototype.onMouseUp=function(t,e){this.onUpCommon(t,e)},e.prototype.onUpCommon=function(t,e){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(t);var o={type:le.EVENT_DRAG_STOPPED,target:e};this.eventService.dispatchEvent(o)}this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(t){return t()})),this.dragEndFunctions.length=0},Il([nt("loggerFactory")],e.prototype,"loggerFactory",void 0),Il([nt("mouseEventService")],e.prototype,"mouseEventService",void 0),Il([et],e.prototype,"init",null),Il([ot],e.prototype,"removeAllListeners",null),e=Il([rt("dragService")],e),e}(re),Fl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ll=function(){return Ll=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},Ll.apply(this,arguments)},Ml=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},xl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.allColumnFilters=new Map,e.activeAggregateFilters=[],e.activeColumnFilters=[],e.quickFilter=null,e.quickFilterParts=null,e.processingFilterChange=!1,e}var o;return Fl(e,t),o=e,e.prototype.init=function(){var t=this;this.addManagedListener(this.eventService,le.EVENT_GRID_COLUMNS_CHANGED,(function(){return t.onColumnsChanged()})),this.addManagedListener(this.eventService,le.EVENT_COLUMN_VALUE_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,le.EVENT_COLUMN_PIVOT_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,le.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},e.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},e.prototype.setFilterModel=function(t){var e=this,o=[],r=this.getFilterModel();if(t){var n=di(Object.keys(t));this.allColumnFilters.forEach((function(r,i){var s=t[i];o.push(e.setModelOnFilterWrapper(r.filterPromise,s)),n.delete(i)})),n.forEach((function(r){var n=e.columnModel.getPrimaryColumn(r)||e.columnModel.getGridColumn(r);if(n)if(n.isFilterAllowed()){var i=e.getOrCreateFilterWrapper(n,"NO_UI");i?o.push(e.setModelOnFilterWrapper(i.filterPromise,t[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(t){o.push(e.setModelOnFilterWrapper(t.filterPromise,null))}));wi.all(o).then((function(){var t=e.getFilterModel(),o=[];e.allColumnFilters.forEach((function(e,n){var i=r?r[n]:null,s=t?t[n]:null;yi.jsonEquals(i,s)||o.push(e.column)})),o.length>0&&e.onFilterChanged({columns:o})}))},e.prototype.setModelOnFilterWrapper=function(t,e){return new wi((function(o){t.then((function(t){"function"!==typeof t.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),o()),(t.setModel(e)||wi.resolve()).then((function(){return o()}))}))}))},e.prototype.getFilterModel=function(){var t={};return this.allColumnFilters.forEach((function(e,o){var r=e.filterPromise,i=r.resolveNow(null,(function(t){return t}));if(null==i)return null;if("function"===typeof i.getModel){var s=i.getModel();n(s)&&(t[o]=s)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),t},e.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},e.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},e.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},e.prototype.doAggregateFiltersPass=function(t,e){return this.doColumnFiltersPass(t,e,!0)},e.prototype.updateActiveFilters=function(){var t=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var e=function(t){return!!t&&(t.isFilterActive?t.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},o=!!this.gridOptionsWrapper.getGroupAggFiltering(),r=function(e){var r=!e.isPrimary();if(r)return!0;var n=!t.columnModel.isPivotActive(),i=e.isValueActive();return!(!i||!n)&&(!!t.columnModel.isPivotMode()||o)};this.allColumnFilters.forEach((function(o){if(o.filterPromise.resolveNow(!1,e)){var n=o.filterPromise.resolveNow(null,(function(t){return t}));r(o.column)?t.activeAggregateFilters.push(n):t.activeColumnFilters.push(n)}}))},e.prototype.updateFilterFlagInColumns=function(t,e){this.allColumnFilters.forEach((function(o){var r=o.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}));o.column.setFilterActive(r,t,e)}))},e.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},e.prototype.doColumnFiltersPass=function(t,e,o){for(var r=t.data,n=t.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!==e){if("function"!==typeof l.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!l.doesFilterPass({node:t,data:s}))return!1}}return!0},e.prototype.parseQuickFilter=function(t){return n(t)?this.gridOptionsWrapper.isRowModelDefault()?t.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},e.prototype.setQuickFilter=function(t){if(null==t||"string"===typeof t){var e=this.parseQuickFilter(t);this.quickFilter!==e&&(this.quickFilter=e,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof t)},e.prototype.refreshFiltersForAggregations=function(){var t=this.gridOptionsWrapper.getGroupAggFiltering();t&&this.onFilterChanged()},e.prototype.callOnFilterChangedOutsideRenderCycle=function(t){var e=this;void 0===t&&(t={});var o=function(){return e.onFilterChanged(t)};this.rowRenderer.isRefreshInProgress()?setTimeout(o,0):o()},e.prototype.onFilterChanged=function(t){void 0===t&&(t={});var e=t.filterInstance,o=t.additionalEventAttributes,r=t.columns;this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",o),this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent(),this.allColumnFilters.forEach((function(t){t.filterPromise&&t.filterPromise.then((function(t){t&&t!==e&&t.onAnyFilterChanged&&t.onAnyFilterChanged()}))}));var n={type:le.EVENT_FILTER_CHANGED,columns:r||[]};o&&P(n,o),this.processingFilterChange=!0,this.eventService.dispatchEvent(n),this.processingFilterChange=!1},e.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},e.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},e.prototype.doesRowPassOtherFilters=function(t,e){return this.doesRowPassFilter({rowNode:e,filterInstanceToSkip:t})},e.prototype.doesRowPassQuickFilterNoCache=function(t,e){var o=this,r=this.columnModel.getAllColumnsForQuickFilter();return r.some((function(r){var i=o.getQuickFilterTextForColumn(r,t);return n(i)&&i.indexOf(e)>=0}))},e.prototype.doesRowPassQuickFilterCache=function(t,e){return t.quickFilterAggregateText||this.aggregateRowForQuickFilter(t),t.quickFilterAggregateText.indexOf(e)>=0},e.prototype.doesRowPassQuickFilter=function(t){var e=this,o=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.every((function(r){return o?e.doesRowPassQuickFilterCache(t,r):e.doesRowPassQuickFilterNoCache(t,r)}))},e.prototype.doesRowPassAggregateFilters=function(t){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(t.rowNode,t.filterInstanceToSkip))},e.prototype.doesRowPassFilter=function(t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(t.rowNode))&&(!(this.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(t.rowNode))&&!(this.isColumnFilterPresent()&&!this.doColumnFiltersPass(t.rowNode,t.filterInstanceToSkip)))},e.prototype.getQuickFilterTextForColumn=function(t,e){var o=this.valueService.getValue(t,e,!0),r=t.getColDef();if(r.getQuickFilterText){var i={value:o,node:e,data:e.data,column:t,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},e.prototype.aggregateRowForQuickFilter=function(t){var e=this,r=[],i=this.columnModel.getAllColumnsForQuickFilter();i.forEach((function(o){var i=e.getQuickFilterTextForColumn(o,t);n(i)&&r.push(i)})),t.quickFilterAggregateText=r.join(o.QUICK_FILTER_SEPARATOR)},e.prototype.onNewRowsLoaded=function(t){this.allColumnFilters.forEach((function(t){t.filterPromise.then((function(t){t.onNewRowsLoaded&&t.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(t),this.updateActiveFilters()},e.prototype.createValueGetter=function(t){var e=this;return function(o){var r=o.node;return e.valueService.getValue(t,r,!0)}},e.prototype.getFilterComponent=function(t,e,o){var r;if(void 0===o&&(o=!0),o)return(null===(r=this.getOrCreateFilterWrapper(t,e))||void 0===r?void 0:r.filterPromise)||null;var n=this.cachedFilter(t);return n?n.filterPromise:null},e.prototype.isFilterActive=function(t){var e=this.cachedFilter(t);return!!e&&e.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}))},e.prototype.getOrCreateFilterWrapper=function(t,e){if(!t.isFilterAllowed())return null;var o=this.cachedFilter(t);return o?"NO_UI"!==e&&this.putIntoGui(o,e):(o=this.createFilterWrapper(t,e),this.allColumnFilters.set(t.getColId(),o)),o},e.prototype.cachedFilter=function(t){return this.allColumnFilters.get(t.getColId())},e.prototype.createFilterInstance=function(t){var e,o=this,r=gt.isRegistered(ut.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",n=t.getColDef(),i=Ll(Ll({},this.createFilterParams(t,n)),{filterModifiedCallback:function(){var r={type:le.EVENT_FILTER_MODIFIED,column:t,filterInstance:e};o.eventService.dispatchEvent(r)},filterChangedCallback:function(r){var n={filterInstance:e,additionalEventAttributes:r,columns:[t]};o.callOnFilterChangedOutsideRenderCycle(n)},doesRowPassOtherFilter:function(t){return o.doesRowPassOtherFilters(e,t)}}),s=this.userComponentFactory.getFilterDetails(n,i,r);if(!s)return null;var a=s.newAgStackInstance();return a&&a.then((function(t){return e=t})),a},e.prototype.createFilterParams=function(t,e){var o={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:t,colDef:m(e),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(t),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}};return o},e.prototype.createFilterWrapper=function(t,e){var o={column:t,filterPromise:null,compiledElement:null,guiPromise:wi.resolve(null)};return o.filterPromise=this.createFilterInstance(t),o.filterPromise&&this.putIntoGui(o,e),o},e.prototype.putIntoGui=function(t,e){var o=this,r=document.createElement("div");r.className="ag-filter",t.guiPromise=new wi((function(i){t.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:le.EVENT_FILTER_OPENED,column:t.column,source:e,eGui:r};o.eventService.dispatchEvent(l)}))}))},e.prototype.onColumnsChanged=function(){var t=this,e=[];this.allColumnFilters.forEach((function(o,r){var n;n=o.column.isPrimary()?t.columnModel.getPrimaryColumn(r):t.columnModel.getGridColumn(r),n||(e.push(o.column),t.disposeFilterWrapper(o,"filterDestroyed"))})),e.length>0&&this.onFilterChanged({columns:e})},e.prototype.destroyFilter=function(t,e){void 0===e&&(e="api");var o=this.allColumnFilters.get(t.getColId());o&&(this.disposeFilterWrapper(o,e),this.onFilterChanged({columns:[t]}))},e.prototype.disposeFilterWrapper=function(t,e){var o=this;t.filterPromise.then((function(r){(r.setModel(null)||wi.resolve()).then((function(){o.getContext().destroyBean(r),t.column.setFilterActive(!1,e),o.allColumnFilters.delete(t.column.getColId())}))}))},e.prototype.destroy=function(){var e=this;t.prototype.destroy.call(this),this.allColumnFilters.forEach((function(t){return e.disposeFilterWrapper(t,"filterDestroyed")}))},e.QUICK_FILTER_SEPARATOR="\n",Ml([nt("valueService")],e.prototype,"valueService",void 0),Ml([nt("columnModel")],e.prototype,"columnModel",void 0),Ml([nt("rowModel")],e.prototype,"rowModel",void 0),Ml([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Ml([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),Ml([et],e.prototype,"init",null),Ml([ot],e.prototype,"destroy",null),e=o=Ml([rt("filterManager")],e),e}(re),Hl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Vl=function(t){function e(e,o){var r=t.call(this,e)||this;return r.ctrl=o,r}return Hl(e,t),e.prototype.getCtrl=function(){return this.ctrl},e}(Di),Wl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),kl=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Bl=function(t){function e(o){return t.call(this,e.TEMPLATE,o)||this}return Wl(e,t),e.prototype.postConstruct=function(){var t=this,e=this.getGui(),o={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},addOrRemoveBodyCssClass:function(e,o){return t.eFloatingFilterBody.classList.toggle(e,o)},addOrRemoveButtonWrapperCssClass:function(e,o){return t.eButtonWrapper.classList.toggle(e,o)},setCompDetails:function(e){return t.setCompDetails(e)},getFloatingFilterComp:function(){return t.compPromise},setWidth:function(t){return e.style.width=t},setMenuIcon:function(e){return t.eButtonShowMainFilter.appendChild(e)}};this.ctrl.setComp(o,e,this.eButtonShowMainFilter,this.eFloatingFilterBody)},e.prototype.setCompDetails=function(t){var e=this;this.compPromise=t.newAgStackInstance(),this.compPromise.then((function(t){return e.afterCompCreated(t)}))},e.prototype.afterCompCreated=function(t){var e=this;t&&(this.addDestroyFunc((function(){return e.context.destroyBean(t)})),this.isAlive()&&(this.eFloatingFilterBody.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached()))},e.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")],e.prototype,"eFloatingFilterBody",void 0),kl([Ai("eButtonWrapper")],e.prototype,"eButtonWrapper",void 0),kl([Ai("eButtonShowMainFilter")],e.prototype,"eButtonShowMainFilter",void 0),kl([et],e.prototype,"postConstruct",null),e}(Vl),jl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ul=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s};(function(t){t["AUTO_HEIGHT"]="ag-layout-auto-height",t["NORMAL"]="ag-layout-normal",t["PRINT"]="ag-layout-print"})(Al||(Al={}));var zl,Kl=function(t){function e(e){var o=t.call(this)||this;return o.view=e,o}return jl(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},e.prototype.updateLayoutClasses=function(){var t=this.gridOptionsWrapper.getDomLayout(),e={autoHeight:t===ft.DOM_LAYOUT_AUTO_HEIGHT,normal:t===ft.DOM_LAYOUT_NORMAL,print:t===ft.DOM_LAYOUT_PRINT},o=e.autoHeight?Al.AUTO_HEIGHT:e.print?Al.PRINT:Al.NORMAL;this.view.updateLayoutClasses(o,e)},Ul([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ul([et],e.prototype,"postConstruct",null),e}(re),Yl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ql=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Xl=function(t){function e(e){var o=t.call(this)||this;return o.scrollLeft=-1,o.nextScrollTop=-1,o.scrollTop=-1,o.eBodyViewport=e,o.resetLastHorizontalScrollElementDebounced=z(o.resetLastHorizontalScrollElement.bind(o),500),o}return Yl(e,t),e.prototype.postConstruct=function(){var t=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(e){t.centerRowContainerCtrl=e.centerRowContainerCtrl,t.onDisplayedColumnsWidthChanged(),t.addScrollListener()}))},e.prototype.addScrollListener=function(){var t=this.ctrlsService.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(t.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var e=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?z(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",e)},e.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},e.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(t){var e=null==this.centerRowContainerCtrl;if(!e){void 0===t&&(t=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var o=this.enableRtl?t:-t,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(t),this.enableRtl)}},e.prototype.isControllingScroll=function(t){return this.lastHorizontalScrollElement?t===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=t,!0)},e.prototype.onFakeHorizontalScroll=function(){var t=this.ctrlsService.getFakeHScrollCtrl().getViewport();this.isControllingScroll(t)&&this.onBodyHorizontalScroll(t)},e.prototype.onCenterViewportScroll=function(){var t=this.centerRowContainerCtrl.getViewportElement();this.isControllingScroll(t)&&this.onBodyHorizontalScroll(t)},e.prototype.onBodyHorizontalScroll=function(t){var e=this.centerRowContainerCtrl.getViewportElement(),o=e.scrollLeft;this.shouldBlockScrollUpdate("horizontal",o,!0)||(this.doHorizontalScroll(Math.round(wr(t,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},e.prototype.onVerticalScroll=function(){var t=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",t,!0)||(this.animationFrameService.setScrollTop(t),this.nextScrollTop=t,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},e.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},e.prototype.doHorizontalScroll=function(t){var e=this.ctrlsService.getFakeHScrollCtrl().getViewport(),o=wr(e,this.enableRtl);this.scrollLeft===t&&t===o||(this.scrollLeft=t,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(t),this.onHorizontalViewportChanged())},e.prototype.fireScrollEvent=function(t){var e=this,o={type:le.EVENT_BODY_SCROLL,direction:t,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(o),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var t=Object.assign({},o,{type:le.EVENT_BODY_SCROLL_END});e.eventService.dispatchEvent(t)}),100)},e.prototype.shouldBlockScrollUpdate=function(t,e,o){if(void 0===o&&(o=!1),o&&!Ze())return!1;if("vertical"===t){var r=gr(this.eBodyViewport),n=this.eBodyViewport.scrollHeight;if(e<0||e+r>n)return!0}if("horizontal"===t){var i=this.centerRowContainerCtrl.getCenterWidth(),s=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&Cr()){if(e>0)return!0}else if(e<0)return!0;if(Math.abs(e)+i>s)return!0}return!1},e.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},e.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},e.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCtrl.getViewportElement())},e.prototype.executeAnimationFrameScroll=function(){var t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),t},e.prototype.setHorizontalScrollPosition=function(t){var e=0,o=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",t)&&(t=this.enableRtl&&Cr()?t>0?0:o:Math.min(Math.max(t,e),o)),Er(this.centerRowContainerCtrl.getViewportElement(),Math.abs(t),this.enableRtl),this.doHorizontalScroll(t)},e.prototype.setVerticalScrollPosition=function(t){this.eBodyViewport.scrollTop=t},e.prototype.getVScrollPosition=function(){var t={top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight};return t},e.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},e.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},e.prototype.scrollHorizontally=function(t){var e=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(e+t),this.centerRowContainerCtrl.getViewportElement().scrollLeft-e},e.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},e.prototype.ensureNodeVisible=function(t,e){void 0===e&&(e=null);for(var o=this.rowModel.getRowCount(),r=-1,n=0;n<o;n++){var i=this.rowModel.getRow(n);if("function"===typeof t){var s=t;if(i&&s(i)){r=n;break}}else if(t===i||t===i.data){r=n;break}}r>=0&&this.ensureIndexVisible(r,e)},e.prototype.ensureIndexVisible=function(t,e){if(this.gridOptionsWrapper.getDomLayout()!==ft.DOM_LAYOUT_PRINT){var o=this.paginationProxy.getRowCount();if("number"!==typeof t||t<0||t>=o)console.warn("invalid row index for ensureIndexVisible: "+t);else{var r=this.gridOptionsWrapper.isPagination(),n=r&&!this.gridOptionsWrapper.isSuppressPaginationPanel();n||this.paginationProxy.goToPageWithIndex(t);var i,s=this.ctrlsService.getGridBodyCtrl(),a=s.getStickyTopHeight(),l=this.paginationProxy.getRow(t);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"===e?S=C:"bottom"===e?S=w:"middle"===e?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()}}},e.prototype.ensureColumnVisible=function(t,e){void 0===e&&(e="auto");var o=this.columnModel.getGridColumn(t);if(o&&!o.isPinned()&&this.columnModel.isColumnDisplayed(o)){var r=this.getPositionedHorizontalScroll(o,e);null!==r&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(r),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},e.prototype.getPositionedHorizontalScroll=function(t,e){var o=this.isColumnOutsideViewport(t),r=o.columnBeforeStart,n=o.columnAfterEnd,i=this.centerRowContainerCtrl.getCenterWidth()<t.getActualWidth(),s=this.centerRowContainerCtrl.getCenterWidth(),a=this.enableRtl,l=(a?r:n)||i,u=a?n:r;"auto"!==e&&(l="start"===e,u="end"===e);var p="middle"===e;if(l||u||p){var c=this.getColumnBounds(t),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},e.prototype.isColumnOutsideViewport=function(t){var e=this.getViewportBounds(),o=e.start,r=e.end,n=this.getColumnBounds(t),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}},e.prototype.getColumnBounds=function(t){var e=this.enableRtl,o=this.columnModel.getBodyContainerWidth(),r=t.getActualWidth(),n=t.getLeft(),i=e?-1:1,s=e?o-n:n,a=s+r*i,l=s+r/2*i;return{colLeft:s,colMiddle:l,colRight:a}},e.prototype.getViewportBounds=function(){var t=this.centerRowContainerCtrl.getCenterWidth(),e=this.centerRowContainerCtrl.getCenterViewportScrollLeft(),o=e,r=t+e;return{start:o,end:r,width:t}},ql([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),ql([nt("animationFrameService")],e.prototype,"animationFrameService",void 0),ql([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),ql([nt("rowModel")],e.prototype,"rowModel",void 0),ql([nt("rowContainerHeightService")],e.prototype,"heightScaler",void 0),ql([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),ql([nt("columnModel")],e.prototype,"columnModel",void 0),ql([et],e.prototype,"postConstruct",null),e}(re),Ql=function(){function t(t){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=t.scrollContainer,this.scrollHorizontally=-1!==t.scrollAxis.indexOf("x"),this.scrollVertically=-1!==t.scrollAxis.indexOf("y"),this.scrollByTick=null!=t.scrollByTick?t.scrollByTick:20,t.onScrollCallback&&(this.onScrollCallback=t.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=t.getVerticalPosition,this.setVerticalPosition=t.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=t.getHorizontalPosition,this.setHorizontalPosition=t.setHorizontalPosition),this.shouldSkipVerticalScroll=t.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=t.shouldSkipHorizontalScroll||function(){return!1}}return t.prototype.check=function(t,e){void 0===e&&(e=!1);var o=e||this.shouldSkipVerticalScroll();if(!o||!this.shouldSkipHorizontalScroll()){var r=this.scrollContainer.getBoundingClientRect(),n=this.scrollByTick;this.tickLeft=t.clientX<r.left+n,this.tickRight=t.clientX>r.right-n,this.tickUp=t.clientY<r.top+n&&!o,this.tickDown=t.clientY>r.bottom-n&&!o,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},t.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},t.prototype.doTick=function(){var t;if(this.tickCount++,t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-t),this.tickDown&&this.setVerticalPosition(e+t)}if(this.scrollHorizontally){var o=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(o-t),this.tickRight&&this.setHorizontalPosition(o+t)}this.onScrollCallback&&this.onScrollCallback()},t.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},t}(),Jl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zl=function(){return Zl=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},Zl.apply(this,arguments)},$l=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},tu=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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},eu=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(tu(arguments[e]));return t},ou=function(t){function e(e){var o=t.call(this)||this;return o.isMultiRowDrag=!1,o.isGridSorted=!1,o.isGridFiltered=!1,o.isRowGroupActive=!1,o.eContainer=e,o}return Jl(e,t),e.prototype.postConstruct=function(){var t=this;this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel);var e=function(){t.onSortChanged(),t.onFilterChanged(),t.onRowGroupChanged()};this.addManagedListener(this.eventService,le.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_MODEL_UPDATED,(function(){e()})),e(),this.ctrlsService.whenReady((function(){var e=t.ctrlsService.getGridBodyCtrl();t.autoScrollService=new Ql({scrollContainer:e.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return e.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(t){return e.getScrollFeature().setVerticalScrollPosition(t)},onScrollCallback:function(){t.onDragging(t.lastDraggingEvent)}})}))},e.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},e.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},e.prototype.onRowGroupChanged=function(){var t=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!s(t)},e.prototype.getContainer=function(){return this.eContainer},e.prototype.isInterestedIn=function(t){return t===_a.RowDrag},e.prototype.getIconName=function(){var t=this.gridOptionsWrapper.isRowDragManaged();return t&&this.shouldPreventRowMove()?xa.ICON_NOT_ALLOWED:xa.ICON_MOVE},e.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},e.prototype.getRowNodes=function(t){var e=this;if(!this.isFromThisGrid(t))return t.dragItem.rowNodes||[];var o=this.gridOptionsWrapper.isRowDragMultiRow(),r=eu(this.selectionService.getSelectedNodes()).sort((function(t,o){return null==t.rowIndex||null==o.rowIndex?0:e.getRowIndexNumber(t)-e.getRowIndexNumber(o)})),n=t.dragItem.rowNode;return o&&-1!==r.indexOf(n)?(this.isMultiRowDrag=!0,r):(this.isMultiRowDrag=!1,[n])},e.prototype.onDragEnter=function(t){t.dragItem.rowNodes=this.getRowNodes(t),this.dispatchGridEvent(le.EVENT_ROW_DRAG_ENTER,t),this.getRowNodes(t).forEach((function(t){t.setDragging(!0)})),this.onEnterOrDragging(t)},e.prototype.onDragging=function(t){this.onEnterOrDragging(t)},e.prototype.isFromThisGrid=function(t){var e=t.dragSource.dragSourceDomDataKey;return e===this.gridOptionsWrapper.getDomDataKey()},e.prototype.isDropZoneWithinThisGrid=function(t){var e=this.ctrlsService.getGridBodyCtrl(),o=e.getGui(),r=t.dropZoneTarget;return!o.contains(r)},e.prototype.onEnterOrDragging=function(t){this.dispatchGridEvent(le.EVENT_ROW_DRAG_MOVE,t),this.lastDraggingEvent=t;var e=this.mouseEventService.getNormalisedPosition(t).y,o=this.gridOptionsWrapper.isRowDragManaged();o&&this.doManagedDrag(t,e),this.autoScrollService.check(t.event)},e.prototype.doManagedDrag=function(t,e){var o=this.isFromThisGrid(t),r=this.gridOptionsWrapper.isRowDragManaged(),n=t.dragItem.rowNodes;r&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!o?this.isDropZoneWithinThisGrid(t)||this.clientSideRowModel.highlightRowAtPixel(n[0],e):this.moveRows(n,e))},e.prototype.getRowIndexNumber=function(t){return parseInt(Et(t.getRowIndexString().split("-")),10)},e.prototype.moveRowAndClearHighlight=function(t){var e=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),r=o&&o.highlighted===fs.Below,n=this.mouseEventService.getNormalisedPosition(t).y,i=t.dragItem.rowNodes,s=r?1:0;if(this.isFromThisGrid(t))i.forEach((function(t){t.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(t){return t.data})).filter((function(t){return!e.clientSideRowModel.getRowNode(a?a({data:t,level:0}):t.id)})),addIndex:l})}this.clearRowHighlight()},e.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},e.prototype.moveRows=function(t,e,o){void 0===o&&(o=0);var r=this.clientSideRowModel.ensureRowsAtPixel(t,e,o);r&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},e.prototype.addRowDropZone=function(t){var e=this;if(t.getContainer())if(this.dragAndDropService.findExternalZone(t))console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var o={getContainer:t.getContainer};t.fromGrid?(t.fromGrid=void 0,o=t):(t.onDragEnter&&(o.onDragEnter=function(o){t.onDragEnter(e.draggingToRowDragEvent(le.EVENT_ROW_DRAG_ENTER,o))}),t.onDragLeave&&(o.onDragLeave=function(o){t.onDragLeave(e.draggingToRowDragEvent(le.EVENT_ROW_DRAG_LEAVE,o))}),t.onDragging&&(o.onDragging=function(o){t.onDragging(e.draggingToRowDragEvent(le.EVENT_ROW_DRAG_MOVE,o))}),t.onDragStop&&(o.onDragStop=function(o){t.onDragStop(e.draggingToRowDragEvent(le.EVENT_ROW_DRAG_END,o))})),this.dragAndDropService.addDropTarget(Zl({isInterestedIn:function(t){return t===_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")},e.prototype.getRowDropZone=function(t){var e=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 t?{getContainer:o,onDragEnter:t.onDragEnter?function(o){r(o),t.onDragEnter(e.draggingToRowDragEvent(le.EVENT_ROW_DRAG_ENTER,o))}:r,onDragLeave:t.onDragLeave?function(o){n(o),t.onDragLeave(e.draggingToRowDragEvent(le.EVENT_ROW_DRAG_LEAVE,o))}:n,onDragging:t.onDragging?function(o){i(o),t.onDragging(e.draggingToRowDragEvent(le.EVENT_ROW_DRAG_MOVE,o))}:i,onDragStop:t.onDragStop?function(o){s(o),t.onDragStop(e.draggingToRowDragEvent(le.EVENT_ROW_DRAG_END,o))}:s,fromGrid:!0}:{getContainer:o,onDragEnter:r,onDragLeave:n,onDragging:i,onDragStop:s,fromGrid:!0}},e.prototype.draggingToRowDragEvent=function(t,e){var o,r,n=this.mouseEventService.getNormalisedPosition(e).y,i=n>this.paginationProxy.getCurrentPageHeight(),s=-1;switch(i||(s=this.rowModel.getRowIndexAtPixel(n),o=this.rowModel.getRow(s)),e.vDirection){case ba.Down:r="down";break;case ba.Up:r="up";break;default:r=null;break}var a={type:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),event:e.event,node:e.dragItem.rowNode,nodes:e.dragItem.rowNodes,overIndex:s,overNode:o,y:n,vDirection:r};return a},e.prototype.dispatchGridEvent=function(t,e){var o=this.draggingToRowDragEvent(t,e);this.eventService.dispatchEvent(o)},e.prototype.onDragLeave=function(t){this.dispatchGridEvent(le.EVENT_ROW_DRAG_LEAVE,t),this.stopDragging(t),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(t)&&(this.isMultiRowDrag=!1)},e.prototype.onDragStop=function(t){this.dispatchGridEvent(le.EVENT_ROW_DRAG_END,t),this.stopDragging(t),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(t)||this.isDropZoneWithinThisGrid(t)||this.moveRowAndClearHighlight(t)},e.prototype.stopDragging=function(t){this.autoScrollService.ensureCleared(),this.getRowNodes(t).forEach((function(t){t.setDragging(!1)}))},$l([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),$l([nt("rowModel")],e.prototype,"rowModel",void 0),$l([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),$l([nt("columnModel")],e.prototype,"columnModel",void 0),$l([nt("focusService")],e.prototype,"focusService",void 0),$l([nt("sortController")],e.prototype,"sortController",void 0),$l([nt("filterManager")],e.prototype,"filterManager",void 0),$l([nt("selectionService")],e.prototype,"selectionService",void 0),$l([nt("mouseEventService")],e.prototype,"mouseEventService",void 0),$l([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),$l([it("rangeService")],e.prototype,"rangeService",void 0),$l([et],e.prototype,"postConstruct",null),e}(re),ru=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),nu=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,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(t){t["ANIMATION_ON"]="ag-row-animation",t["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(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stickyTopHeight=0,e}return ru(e,t),e.prototype.getScrollFeature=function(){return this.bodyScrollFeature},e.prototype.getBodyViewportElement=function(){return this.eBodyViewport},e.prototype.setComp=function(t,e,o,r,n,i){this.comp=t,this.eGridBody=e,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)},e.prototype.getComp=function(){return this.comp},e.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,le.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},e.prototype.addFocusListeners=function(t){var e=this;t.forEach((function(t){e.addManagedListener(t,"focusin",(function(e){var o=e.target,r=hr(o,"ag-root",t);t.classList.toggle("ag-has-focus",!r)})),e.addManagedListener(t,"focusout",(function(e){var o=e.target,r=e.relatedTarget,n=t.contains(r),i=hr(r,"ag-root",t),s=hr(o,"ag-root",t);s||n&&!i||t.classList.remove("ag-has-focus")}))}))},e.prototype.setColumnMovingCss=function(t){this.comp.setColumnMovingCss(t?uu:null,t)},e.prototype.setCellTextSelection=function(t){void 0===t&&(t=!1);var e=t?au:null;this.comp.setCellSelectableCss(e,t)},e.prototype.onScrollVisibilityChanged=function(){var t=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(t),this.setStickyTopWidth(t)},e.prototype.onGridColumnsChanged=function(){var t=this.columnModel.getAllGridColumns();this.comp.setColumnCount(t?t.length:0)},e.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(t){if(t.target instanceof HTMLImageElement)return t.preventDefault(),!1}))},e.prototype.addStopEditingWhenGridLosesFocus=function(){var t=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var e=function(e){var r=e.relatedTarget;if(null!==to(r)){var n=o.some((function(t){return t.contains(r)}))&&t.mouseEventService.isElementInThisGrid(r);if(!n){var i=t.popupService;n=i.getActivePopups().some((function(t){return t.contains(r)}))||i.isElementWithinCustomPopup(r)}n||t.rowRenderer.stopEditing()}else t.rowRenderer.stopEditing()},o=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];o.forEach((function(o){return t.addManagedListener(o,"focusout",e)}))}},e.prototype.updateRowCount=function(){var t=this.headerNavigationService.getHeaderRowCount(),e=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,o=-1===e?-1:t+e;this.comp.setRowCount(o)},e.prototype.registerBodyViewportResizeListener=function(t){this.comp.registerBodyViewportResizeListener(t)},e.prototype.setVerticalScrollPaddingVisible=function(t){var e=t?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(e)},e.prototype.isVerticalScrollShowing=function(){var t=this.gridOptionsWrapper.isAlwaysShowVerticalScroll(),e=t?lu:null,o=this.gridOptionsWrapper.getDomLayout()===ft.DOM_LAYOUT_NORMAL;return this.comp.setAlwaysVerticalScrollClass(e,t),t||o&&xr(this.eBodyViewport)},e.prototype.setupRowAnimationCssClass=function(){var t=this,e=function(){var e=t.gridOptionsWrapper.isAnimateRows()&&!t.rowContainerHeightService.isStretching(),o=e?zl.ANIMATION_ON:zl.ANIMATION_OFF;t.comp.setRowAnimationCssOnBodyViewport(o,e)};e(),this.addManagedListener(this.eventService,le.EVENT_HEIGHT_SCALE_CHANGED,e)},e.prototype.getGridBodyElement=function(){return this.eGridBody},e.prototype.addBodyViewportListener=function(){var t=this,e=function(e,o,r){if(e||r){if(t.gridOptionsWrapper.isPreventDefaultOnContextMenu()){var n=e||r;n.preventDefault()}var i=(e||o).target;i!==t.eBodyViewport&&i!==t.ctrlsService.getCenterRowContainerCtrl().getViewportElement()||t.contextMenuFactory&&(e?t.contextMenuFactory.onContextMenu(e,null,null,null,null,t.eGridBody):r&&t.contextMenuFactory.onContextMenu(null,r,null,null,null,t.eGridBody))}};this.addManagedListener(this.eBodyViewport,"contextmenu",e),this.mockContextMenuForIPad(e),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this))},e.prototype.mockContextMenuForIPad=function(t){if(Ze()){var e=new Ks(this.eBodyViewport),o=function(e){t(void 0,e.touchStart,e.touchEvent)};this.addManagedListener(e,Ks.EVENT_LONG_TAP,o),this.addDestroyFunc((function(){return e.destroy()}))}},e.prototype.onBodyViewportWheel=function(t){this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()&&this.popupService.hasAnchoredPopup()&&t.preventDefault()},e.prototype.onStickyTopWheel=function(t){t.preventDefault(),t.offsetY&&this.scrollVertically(t.deltaY)},e.prototype.getGui=function(){return this.eGridBody},e.prototype.scrollVertically=function(t){var e=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(e+t),this.eBodyViewport.scrollTop-e},e.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new ou(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},e.prototype.getRowDragFeature=function(){return this.rowDragFeature},e.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},e.prototype.setFloatingHeights=function(){var t=this.pinnedRowModel,e=t.getPinnedTopTotalHeight();e&&(e+=1);var o=t.getPinnedBottomTotalHeight();o&&(o+=1),this.comp.setTopHeight(e),this.comp.setBottomHeight(o),this.comp.setTopDisplay(e?"inherit":"none"),this.comp.setBottomDisplay(o?"inherit":"none"),this.setStickyTopOffsetTop()},e.prototype.setStickyTopHeight=function(t){void 0===t&&(t=0),this.comp.setStickyTopHeight(t+"px"),this.stickyTopHeight=t},e.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},e.prototype.setStickyTopWidth=function(t){if(t){var e=this.gridOptionsWrapper.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+e+"px)")}else this.comp.setStickyTopWidth("100%")},e.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},e.prototype.setStickyTopOffsetTop=function(){var t=this.ctrlsService.getGridHeaderCtrl(),e=t.getHeaderHeight(),o=this.pinnedRowModel.getPinnedTopTotalHeight(),r=0;e>0&&(r+=e+1),o>0&&(r+=o+1),this.comp.setStickyTopTop(r+"px")},e.prototype.sizeColumnsToFit=function(t,e){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,t):void 0===e?window.setTimeout((function(){o.sizeColumnsToFit(t,100)}),0):100===e?window.setTimeout((function(){o.sizeColumnsToFit(t,500)}),100):500===e?window.setTimeout((function(){o.sizeColumnsToFit(t,-1)}),500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},e.prototype.addScrollEventListener=function(t){this.eBodyViewport.addEventListener("scroll",t)},e.prototype.removeScrollEventListener=function(t){this.eBodyViewport.removeEventListener("scroll",t)},nu([nt("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),nu([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),nu([nt("columnModel")],e.prototype,"columnModel",void 0),nu([nt("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),nu([it("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),nu([nt("headerNavigationService")],e.prototype,"headerNavigationService",void 0),nu([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),nu([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),nu([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),nu([nt("popupService")],e.prototype,"popupService",void 0),nu([nt("mouseEventService")],e.prototype,"mouseEventService",void 0),nu([nt("rowModel")],e.prototype,"rowModel",void 0),e}(re);(function(t){t[t["FILL"]=0]="FILL",t[t["RANGE"]=1]="RANGE"})(iu||(iu={})),function(t){t[t["VALUE"]=0]="VALUE",t[t["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 t(t,e){this.beans=t,this.cellCtrl=e}return t.prototype.setComp=function(t,e){this.cellComp=t,this.eGui=e,this.onRangeSelectionChanged()},t.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())},t.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),e=this.isSingleCell(),o=!e&&t.top,r=!e&&t.right,n=!e&&t.bottom,i=!e&&t.left;this.cellComp.addOrRemoveCssClass(yu,o),this.cellComp.addOrRemoveCssClass(mu,r),this.cellComp.addOrRemoveCssClass(Cu,n),this.cellComp.addOrRemoveCssClass(wu,i)},t.prototype.isSingleCell=function(){var t=this.beans.rangeService;return 1===this.rangeCount&&t&&!t.isMoreThanOneCell()},t.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var e=t.getCellRanges();return e.length>0&&e.every((function(t){return It([su.DIMENSION,su.VALUE],t.type)}))},t.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},t.prototype.getRangeBorders=function(){var t,e,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?(t=c.getDisplayedColAfter(l),e=c.getDisplayedColBefore(l)):(t=c.getDisplayedColBefore(l),e=c.getDisplayedColAfter(l));var d=p.getCellRanges().filter((function(t){return p.isCellInSpecificRange(o.cellCtrl.getCellPosition(),t)}));t||(a=!0),e||(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&&t&&f.columns.indexOf(t)<0&&(a=!0),!i&&e&&f.columns.indexOf(e)<0&&(i=!0)}return{top:n,right:i,bottom:s,left:a}},t.prototype.refreshHandle=function(){if(this.beans.rangeService){var t=this.shouldHaveSelectionHandle();this.selectionHandle&&!t&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),t&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass(vu,!!this.selectionHandle)}},t.prototype.shouldHaveSelectionHandle=function(){var t=this.beans,e=t.gridOptionsWrapper,o=t.rangeService,r=o.getCellRanges(),n=r.length;if(this.rangeCount<1||n<1)return!1;var i=Et(r),s=this.cellCtrl.getCellPosition(),a=e.isEnableFillHandle()&&!this.cellCtrl.isSuppressFillHandle(),l=e.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)},t.prototype.addSelectionHandle=function(){var t=this.beans,e=t.gridOptionsWrapper,o=t.rangeService,r=Et(o.getCellRanges()).type,n=e.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)},t.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},t}(),Ru=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ou=function(t){function e(e,o){var r=t.call(this)||this;return r.cellCtrl=e,r.beans=o,r.column=e.getColumn(),r.rowNode=e.getRowNode(),r.setupColSpan(),r.setupRowSpan(),r}return Ru(e,t),e.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},e.prototype.setComp=function(t){this.eGui=t,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},e.prototype.onDisplayColumnsChanged=function(){var t=this.getColSpanningList();Rt(this.colsSpanning,t)||(this.colsSpanning=t,this.onWidthChanged(),this.onLeftChanged())},e.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,le.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,le.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},e.prototype.onWidthChanged=function(){if(this.eGui){var t=this.getCellWidth();this.eGui.style.width=t+"px"}},e.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(t,e){return t+e.getActualWidth()}),0):this.column.getActualWidth()},e.prototype.getColSpanningList=function(){var t=this.column.getColSpan(this.rowNode),e=[];if(1===t)e.push(this.column);else for(var o=this.column,r=this.column.getPinned(),n=0;o&&n<t;n++){if(e.push(o),o=this.beans.columnModel.getDisplayedColAfter(o),!o||i(o))break;if(r!==o.getPinned())break}return e},e.prototype.onLeftChanged=function(){if(this.eGui){var t=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=t+"px"}},e.prototype.getCellLeft=function(){var t;return t=this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?Et(this.colsSpanning):this.column,t.getLeft()},e.prototype.modifyLeftForPrintLayout=function(t){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()===ft.PINNED_LEFT)return t;var e=this.beans.columnModel.getDisplayedColumnsLeftWidth();if(this.column.getPinned()===ft.PINNED_RIGHT){var o=this.beans.columnModel.getBodyContainerWidth();return e+o+(t||0)}return e+(t||0)},e.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var t=this.beans.gridOptionsWrapper.getRowHeightAsNumber(),e=t*this.rowSpan;this.eGui.style.height=e+"px",this.eGui.style.zIndex="1"}},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e}(re),Su=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),_u=function(t){function e(e,o){var r=t.call(this)||this;return r.staticClasses=[],r.cellCtrl=e,r.beans=o,r.column=e.getColumn(),r.rowNode=e.getRowNode(),r}return Su(e,t),e.prototype.setComp=function(t){this.cellComp=t,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},e.prototype.applyCellClassRules=function(){var t=this,e=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:e,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(e.cellClassRules,o,(function(e){return t.cellComp.addOrRemoveCssClass(e,!0)}),(function(e){return t.cellComp.addOrRemoveCssClass(e,!1)}))},e.prototype.applyUserStyles=function(){var t=this.column.getColDef();if(t.cellStyle){var e;if("function"===typeof t.cellStyle){var o={column:this.column,value:this.cellCtrl.getValue(),colDef:t,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=t.cellStyle;e=r(o)}else e=t.cellStyle;this.cellComp.setUserStyles(e)}},e.prototype.applyClassesFromColDef=function(){var t=this,e=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:e,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(e){return t.cellComp.addOrRemoveCssClass(e,!1)})),this.staticClasses=this.beans.stylingService.getStaticCellClasses(e,o),this.staticClasses.length&&this.staticClasses.forEach((function(e){return t.cellComp.addOrRemoveCssClass(e,!0)}))},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e}(re),bu=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Pu=function(t){function e(e,o){var r=t.call(this)||this;return r.ctrl=e,r.beans=o,r}return bu(e,t),e.prototype.setComp=function(t){this.comp=t,this.setupTooltip()},e.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()},e.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},e.prototype.createTooltipFeatureIfNeeded=function(){var t=this;if(null==this.genericTooltipFeature){var e={getTooltipParams:function(){return t.getTooltipParams()},getGui:function(){return t.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new Si(e),this.beans.context)}},e.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},e.prototype.getTooltipParams=function(){var t=this.ctrl,e=t.getColumn?t.getColumn():void 0,o=t.getColDef?t.getColDef():void 0,r=t.getRowNode?t.getRowNode():void 0;return{location:t.getLocation(),colDef:o,column:e,rowIndex:t.getRowIndex?t.getRowIndex():void 0,node:r,data:r?r.data:void 0,value:this.getTooltipText(),valueFormatted:t.getValueFormatted?t.getValueFormatted():void 0}},e.prototype.getTooltipText=function(){return this.tooltip},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e}(re),Tu=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Du=function(){function t(){}return t.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},Tu([nt("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Tu([nt("paginationProxy")],t.prototype,"paginationProxy",void 0),Tu([nt("context")],t.prototype,"context",void 0),Tu([nt("columnApi")],t.prototype,"columnApi",void 0),Tu([nt("gridApi")],t.prototype,"gridApi",void 0),Tu([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Tu([nt("expressionService")],t.prototype,"expressionService",void 0),Tu([nt("rowRenderer")],t.prototype,"rowRenderer",void 0),Tu([nt("templateService")],t.prototype,"templateService",void 0),Tu([nt("valueService")],t.prototype,"valueService",void 0),Tu([nt("eventService")],t.prototype,"eventService",void 0),Tu([nt("columnModel")],t.prototype,"columnModel",void 0),Tu([nt("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Tu([nt("navigationService")],t.prototype,"navigationService",void 0),Tu([nt("columnAnimationService")],t.prototype,"columnAnimationService",void 0),Tu([it("rangeService")],t.prototype,"rangeService",void 0),Tu([nt("focusService")],t.prototype,"focusService",void 0),Tu([it("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),Tu([nt("popupService")],t.prototype,"popupService",void 0),Tu([nt("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Tu([nt("stylingService")],t.prototype,"stylingService",void 0),Tu([nt("columnHoverService")],t.prototype,"columnHoverService",void 0),Tu([nt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Tu([nt("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),Tu([nt("animationFrameService")],t.prototype,"animationFrameService",void 0),Tu([nt("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Tu([nt("sortController")],t.prototype,"sortController",void 0),Tu([nt("filterManager")],t.prototype,"filterManager",void 0),Tu([nt("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),Tu([nt("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),Tu([nt("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),Tu([nt("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Tu([nt("selectionService")],t.prototype,"selectionService",void 0),Tu([it("selectionHandleFactory")],t.prototype,"selectionHandleFactory",void 0),Tu([nt("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),Tu([nt("rowModel")],t.prototype,"rowModel",void 0),Tu([nt("ctrlsService")],t.prototype,"ctrlsService",void 0),Tu([nt("ctrlsFactory")],t.prototype,"ctrlsFactory",void 0),Tu([nt("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Tu([nt("valueCache")],t.prototype,"valueCache",void 0),Tu([nt("rowNodeEventThrottle")],t.prototype,"rowNodeEventThrottle",void 0),Tu([et],t.prototype,"postConstruct",null),t=Tu([rt("beans")],t),t}(),Au=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Nu=function(t){function e(e,o,r){var n=t.call(this)||this;return n.cellCtrl=e,n.beans=o,n.column=r,n}return Au(e,t),e.prototype.onMouseEvent=function(t,e){if(!Kt(e))switch(t){case"click":this.onCellClicked(e);break;case"mousedown":case"touchstart":this.onMouseDown(e);break;case"dblclick":this.onCellDoubleClicked(e);break;case"mouseout":this.onMouseOut(e);break;case"mouseover":this.onMouseOver(e);break}},e.prototype.onCellClicked=function(t){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(t),void t.preventDefault();var e=this.beans,o=e.eventService,r=e.rangeService,n=e.gridOptionsWrapper,i=t.ctrlKey||t.metaKey;r&&i&&r.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&r.intersectLastRange(!0);var s=this.cellCtrl.createEvent(t,le.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()},e.prototype.isDoubleClickOnIPad=function(){if(!Ze()||Yt("dblclick"))return!1;var t=(new Date).getTime(),e=t-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=t,e},e.prototype.onCellDoubleClicked=function(t){var e=this.column.getColDef(),o=this.cellCtrl.createEvent(t,le.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"===typeof e.onCellDoubleClicked&&window.setTimeout((function(){return e.onCellDoubleClicked(o)}),0);var r=!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit();r&&this.cellCtrl.startRowOrCellEdit(null,null,t)},e.prototype.onMouseDown=function(t){var e=t.ctrlKey,o=t.metaKey,r=t.shiftKey,n=t.target,i=this.beans,s=i.eventService,a=i.rangeService;if(!this.isRightClickInExistingRange(t)){var l=a&&0!=a.getCellRanges().length;if(!r||!l){var u=(Ye()||qe())&&!this.cellCtrl.isEditing()&&!ur(n);this.cellCtrl.focusCell(u)}if(r&&l&&t.preventDefault(),!this.containsWidget(n)){if(a){var p=this.cellCtrl.getCellPosition();if(r)a.extendLatestRangeToCell(p);else{var c=e||o;a.setRangeToCell(p,c)}}s.dispatchEvent(this.cellCtrl.createEvent(t,le.EVENT_CELL_MOUSE_DOWN))}}},e.prototype.isRightClickInExistingRange=function(t){var e=this.beans.rangeService;if(e){var o=e.isCellInAnyRange(this.cellCtrl.getCellPosition());if(o&&2===t.button)return!0}return!1},e.prototype.containsWidget=function(t){return hr(t,"ag-selection-checkbox",3)},e.prototype.onMouseOut=function(t){if(!this.mouseStayingInsideCell(t)){var e=this.cellCtrl.createEvent(t,le.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(e),this.beans.columnHoverService.clearMouseOver()}},e.prototype.onMouseOver=function(t){if(!this.mouseStayingInsideCell(t)){var e=this.cellCtrl.createEvent(t,le.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(e),this.beans.columnHoverService.setMouseOver([this.column])}},e.prototype.mouseStayingInsideCell=function(t){if(!t.target||!t.relatedTarget)return!1;var e=this.cellCtrl.getGui(),o=e.contains(t.target),r=e.contains(t.relatedTarget);return o&&r},e.prototype.destroy=function(){},e}(Du),Iu=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Gu=function(t){function e(e,o,r,n,i){var s=t.call(this)||this;return s.cellCtrl=e,s.beans=o,s.rowNode=n,s.rowCtrl=i,s}return Iu(e,t),e.prototype.setComp=function(t){this.eGui=t},e.prototype.onKeyDown=function(t){var e=t.key;switch(e){case zn.ENTER:this.onEnterKeyDown(t);break;case zn.F2:this.onF2KeyDown(t);break;case zn.ESCAPE:this.onEscapeKeyDown(t);break;case zn.TAB:this.onTabKeyDown(t);break;case zn.BACKSPACE:case zn.DELETE:this.onBackspaceOrDeleteKeyPressed(e,t);break;case zn.DOWN:case zn.UP:case zn.RIGHT:case zn.LEFT:this.onNavigationKeyPressed(t,e);break}},e.prototype.onNavigationKeyPressed=function(t,e){this.cellCtrl.isEditing()||(t.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(t):this.beans.navigationService.navigateToNextCell(t,e,this.cellCtrl.getCellPosition(),!0),t.preventDefault())},e.prototype.onShiftRangeSelect=function(t){if(this.beans.rangeService){var e=this.beans.rangeService.extendLatestRangeInDirection(t);e&&this.beans.navigationService.ensureCellVisible(e)}},e.prototype.onTabKeyDown=function(t){this.beans.navigationService.onTabKeyDown(this.cellCtrl,t)},e.prototype.onBackspaceOrDeleteKeyPressed=function(t,e){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:le.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),ii(t,s.isEnableCellEditingOnBackspace())?a&&s.isEnableRangeSelection()?a.clearCellRangeCellValues():r.isCellEditable()&&i.setDataValue(r.getColumn(),null,"cellKeyboardListenerFeature"):r.startRowOrCellEdit(t,void 0,e),l.dispatchEvent({type:le.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},e.prototype.onEnterKeyDown=function(t){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,t),this.cellCtrl.isEditing()&&t.preventDefault())},e.prototype.onF2KeyDown=function(t){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(zn.F2,void 0,t)},e.prototype.onEscapeKeyDown=function(t){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},e.prototype.onKeyPress=function(t){var e=t.target,o=e!==this.eGui;if(!o&&!this.cellCtrl.isEditing()){var r=String.fromCharCode(t.charCode);" "===r?this.onSpaceKeyPressed(t):ti(t)&&(this.cellCtrl.startRowOrCellEdit(null,r,t),t.preventDefault())}},e.prototype.onSpaceKeyPressed=function(t){var e=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&e.isRowSelection()){var o=this.rowNode.isSelected(),r=!o;if(r||!e.isSuppressRowDeselection()){var n=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),i=this.rowNode.setSelectedParams({newValue:r,rangeSelect:t.shiftKey,groupSelectsFiltered:n});void 0===o&&0===i&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:t.shiftKey,groupSelectsFiltered:n})}}t.preventDefault()},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e}(re),Fu=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Lu=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Mu=function(t){function e(e,o,r,n){var i=t.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return i.rowNode=e,i.column=o,i.beans=r,i.eCell=n,i}return Fu(e,t),e.prototype.postConstruct=function(){var t=this.getGui();t.appendChild(jn("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",(function(t){t.stopPropagation()})),this.addDragSource(),this.checkVisibility()},e.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},e.prototype.onDragStart=function(t){var e=this,o=this.column.getColDef().dndSourceOnRowDrag;t.dataTransfer.setDragImage(this.eCell,0,0);var r=function(){try{var o=JSON.stringify(e.rowNode.data);t.dataTransfer.setData("application/json",o),t.dataTransfer.setData("text/plain",o)}catch(r){}};if(o){var n={rowNode:this.rowNode,dragEvent:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};o(n)}else r()},e.prototype.checkVisibility=function(){var t=this.column.isDndSource(this.rowNode);this.setDisplayed(t)},Lu([et],e.prototype,"postConstruct",null),e}(Di),xu=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Hu=function(){return Hu=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},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(t){function e(e,o,r,n){var i=t.call(this)||this;return i.suppressRefreshCell=!1,i.onCellCompAttachedFuncs=[],i.column=e,i.rowNode=o,i.beans=r,i.rowCtrl=n,i.instanceId=e.getId()+"-"+Qu++,i.createCellPosition(),i.addFeatures(),i}return xu(e,t),e.prototype.addFeatures=function(){var t=this;this.cellPositionFeature=new Ou(this,this.beans),this.addDestroyFunc((function(){return t.cellPositionFeature.destroy()})),this.cellCustomStyleFeature=new _u(this,this.beans),this.addDestroyFunc((function(){return t.cellCustomStyleFeature.destroy()})),this.cellMouseListenerFeature=new Nu(this,this.beans,this.column),this.addDestroyFunc((function(){return t.cellMouseListenerFeature.destroy()})),this.cellKeyboardListenerFeature=new Gu(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc((function(){return t.cellKeyboardListenerFeature.destroy()}));var e=this.beans.rangeService&&this.beans.gridOptionsWrapper.isEnableRangeSelection();e&&(this.cellRangeFeature=new Eu(this.beans,this),this.addDestroyFunc((function(){return t.cellRangeFeature.destroy()}))),this.addTooltipFeature()},e.prototype.addTooltipFeature=function(){var t=this,e=function(){var e=t.column.getColDef(),o=t.rowNode.data;if(e.tooltipField&&n(o))return I(o,e.tooltipField,t.column.isTooltipFieldContainsDots());var r=e.tooltipValueGetter;return r?r({location:"cell",api:t.beans.gridOptionsWrapper.getApi(),columnApi:t.beans.gridOptionsWrapper.getColumnApi(),context:t.beans.gridOptionsWrapper.getContext(),colDef:t.column.getColDef(),column:t.column,rowIndex:t.cellPosition.rowIndex,node:t.rowNode,data:t.rowNode.data,value:t.value,valueFormatted:t.valueFormatted}):null},o={getColumn:function(){return t.column},getColDef:function(){return t.column.getColDef()},getRowIndex:function(){return t.cellPosition.rowIndex},getRowNode:function(){return t.rowNode},getGui:function(){return t.getGui()},getLocation:function(){return"cell"},getTooltipValue:e,getValueFormatted:function(){return t.valueFormatted}};this.tooltipFeature=new Pu(o,this.beans),this.addDestroyFunc((function(){return t.tooltipFeature.destroy()}))},e.prototype.setComp=function(t,e,o,r,n){this.cellComp=t,this.gow=this.beans.gridOptionsWrapper,this.eGui=e,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=ve(this.column.getId());this.cellComp.setColId(i),this.cellComp.setRole("gridcell"),this.cellPositionFeature.setComp(e),this.cellCustomStyleFeature.setComp(t),this.tooltipFeature.setComp(t),this.cellKeyboardListenerFeature.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(t,e),n&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach((function(t){return t()})),this.onCellCompAttachedFuncs=[])},e.prototype.setupAutoHeight=function(t){var e=this;if(this.column.isAutoHeight()){var o=t.parentElement,r=this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height,n=function(i){if(!e.editing&&e.isAlive()){var s=fr(o),a=s.paddingTop,l=s.paddingBottom,u=t.offsetHeight,p=u+a+l;if(i<5){var c=e.beans.gridOptionsWrapper.getDocument(),d=!c||!c.contains(t),h=0==p;if(d||h)return void e.beans.frameworkOverrides.setTimeout((function(){return n(i+1)}),0)}var f=Math.max(p,r);e.rowNode.setRowAutoHeight(f,e.column)}},i=function(){return n(0)};i();var s=this.beans.resizeObserverService.observeResize(t,i);this.addDestroyFunc((function(){s(),e.rowNode.setRowAutoHeight(void 0,e.column)}))}},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.showValue=function(t){void 0===t&&(t=!1);var e=null!=this.valueFormatted?this.valueFormatted:this.value,o=this.createCellRendererParams(),r=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),o);this.cellComp.setRenderDetails(r,e,t),this.refreshHandle()},e.prototype.setupControlComps=function(){var t=this.column.getColDef();this.includeSelection=this.isIncludeControl(t.checkboxSelection),this.includeRowDrag=this.isIncludeControl(t.rowDrag),this.includeDndSource=this.isIncludeControl(t.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},e.prototype.isForceWrapper=function(){var t=this.beans.gridOptionsWrapper.isEnableCellTextSelection()||this.column.isAutoHeight();return t},e.prototype.isIncludeControl=function(t){var e=null!=this.rowNode.rowPinned,o="function"===typeof t,r=!e&&(o||!0===t);return r},e.prototype.refreshShouldDestroy=function(){var t=this.column.getColDef(),e=this.includeSelection!=this.isIncludeControl(t.checkboxSelection),o=this.includeRowDrag!=this.isIncludeControl(t.rowDrag),r=this.includeDndSource!=this.isIncludeControl(t.dndSource);return e||o||r},e.prototype.startEditing=function(t,e,o,r){var n,i,s=this;if(void 0===t&&(t=null),void 0===e&&(e=null),void 0===o&&(o=!1),void 0===r&&(r=null),this.isCellEditable()&&!this.editing)if(this.cellComp){var a=this.createCellEditorParams(t,e,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,le.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(d)}else this.onCellCompAttachedFuncs.push((function(){s.startEditing(t,e,o,r)}))},e.prototype.setEditing=function(t,e){void 0===e&&(e=!1),this.editing!==t&&(this.editing=t,this.editingInPopup=e,this.setInlineEditingClass(),this.refreshHandle())},e.prototype.stopRowOrCellEdit=function(t){void 0===t&&(t=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.stopRowEditing(t):this.stopEditing(t)},e.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},e.prototype.takeValueFromCellEditor=function(t){var e={newValueExists:!1};if(t)return e;var o=this.cellComp.getCellEditor();if(!o)return e;var r=o.isCancelAfterEnd&&o.isCancelAfterEnd();if(r)return e;var n=o.getValue();return{newValue:n,newValueExists:!0}},e.prototype.saveNewValue=function(t,e){if(e===t)return!1;if(this.beans.gridOptionsWrapper.isReadOnlyEdit())return this.dispatchEventForSaveValueReadOnly(t,e),!1;this.suppressRefreshCell=!0;var o=this.rowNode.setDataValue(this.column,e);return this.suppressRefreshCell=!1,o},e.prototype.dispatchEventForSaveValueReadOnly=function(t,e){var o=this.rowNode,r={type:le.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:t,newValue:e,value:e,source:void 0};this.beans.eventService.dispatchEvent(r)},e.prototype.stopEditing=function(t){if(void 0===t&&(t=!1),!this.editing)return!1;var e=this.takeValueFromCellEditor(t),o=e.newValue,r=e.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,!t&&!!i),i},e.prototype.dispatchEditingStoppedEvent=function(t,e,o){var r=Hu(Hu({},this.createEvent(null,le.EVENT_CELL_EDITING_STOPPED)),{oldValue:t,newValue:e,valueChanged:o});this.beans.eventService.dispatchEvent(r)},e.prototype.setInlineEditingClass=function(){var t=this;if(this.isAlive())if(this.cellComp){var e=this.editing&&!this.editingInPopup,o=this.editing&&this.editingInPopup;this.cellComp.addOrRemoveCssClass(Ku,e),this.cellComp.addOrRemoveCssClass(zu,!e),this.cellComp.addOrRemoveCssClass(Yu,o),this.rowCtrl.setInlineEditingCss(this.editing)}else this.onCellCompAttachedFuncs.push((function(){t.setInlineEditingClass()}))},e.prototype.hackSayEditingInPopup=function(){this.editingInPopup||(this.editingInPopup=!0,this.setInlineEditingClass())},e.prototype.createCellEditorParams=function(t,e,o){var r={value:this.getValueFromValueService(),key:t,eventKey:t,charPress:e,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},e.prototype.createCellRendererParams=function(){var t=this,e=function(e,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."),t.rowCtrl.addEventListener(e,o)},o={value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValueFromValueService.bind(this),setValue:function(e){return t.beans.valueService.setValue(t.rowNode,t.column,e)},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(e,o,r,n){return t.registerRowDragger(e,o,n)},addRowCompListener:e};return o},e.prototype.parseValue=function(t){var e=this.column.getColDef(),o={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:t,colDef:e,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},r=e.valueParser;return n(r)?this.beans.expressionService.evaluate(r,o):t},e.prototype.setFocusOutOnEditor=function(){if(this.editing){var t=this.cellComp.getCellEditor();t&&t.focusOut&&t.focusOut()}},e.prototype.setFocusInOnEditor=function(){if(this.editing){var t=this.cellComp.getCellEditor();t&&t.focusIn?t.focusIn():this.focusCell(!0)}},e.prototype.onCellChanged=function(t){if(this.cellComp){var e=t.column===this.column;e&&this.refreshCell({})}},e.prototype.refreshCell=function(t){if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var e=this.column.getColDef(),o=null!=t&&!!t.newData,r=null!=t&&!!t.suppressFlash||!!e.suppressCellFlash,n=null==e.field&&null==e.valueGetter&&null==e.showRowGroup,i=t&&t.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()||e.enableCellChangeFlash);u&&this.flashCell(),this.cellCustomStyleFeature.applyUserStyles(),this.cellCustomStyleFeature.applyClassesFromColDef()}this.refreshToolTip(),this.cellCustomStyleFeature.applyCellClassRules()}},e.prototype.stopEditingAndFocus=function(t){void 0===t&&(t=!1),this.stopRowOrCellEdit(),this.focusCell(!0),t||this.navigateAfterEdit()},e.prototype.navigateAfterEdit=function(){var t=this.beans.gridOptionsWrapper.isFullRowEdit();if(!t){var e=this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit();e&&this.beans.navigationService.navigateToNextCell(null,zn.DOWN,this.getCellPosition(),!1)}},e.prototype.flashCell=function(t){var e=t&&t.flashDelay,o=t&&t.fadeDelay;this.animateCell("data-changed",e,o)},e.prototype.animateCell=function(t,e,o){var r=this,i="ag-cell-"+t,s="ag-cell-"+t+"-animation",a=this.beans.gridOptionsWrapper;e||(e=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))}),e)},e.prototype.onFlashCells=function(t){if(this.cellComp){var e=this.beans.cellPositionUtils.createId(this.getCellPosition()),o=t.cells[e];o&&this.animateCell("highlight")}},e.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},e.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},e.prototype.formatValue=function(t){var e=this.callValueFormatter(t);return null!=e?e:t},e.prototype.callValueFormatter=function(t){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,t)},e.prototype.updateAndFormatValue=function(t){void 0===t&&(t=!1);var e=this.value,o=this.valueFormatted;this.value=this.getValueFromValueService(),this.valueFormatted=this.callValueFormatter(this.value);var r=!!t||(!this.valuesAreEqual(e,this.value)||this.valueFormatted!=o);return r},e.prototype.valuesAreEqual=function(t,e){var o=this.column.getColDef();return o.equals?o.equals(t,e):t===e},e.prototype.getComp=function(){return this.cellComp},e.prototype.getValueFromValueService=function(){var t=this.rowNode.leafGroup&&this.beans.columnModel.isPivotMode(),e=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!t,o=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),r=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),n=e&&o&&!r,i=this.beans.valueService.getValue(this.column,this.rowNode,!1,n);return i},e.prototype.getValue=function(){return this.value},e.prototype.getValueFormatted=function(){return this.valueFormatted},e.prototype.addDomData=function(){var t=this,o=this.getGui();this.beans.gridOptionsWrapper.setDomData(o,e.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc((function(){return t.beans.gridOptionsWrapper.setDomData(o,e.DOM_DATA_KEY_CELL_CTRL,null)}))},e.prototype.createEvent=function(t,e){var o={type:e,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:t,rowIndex:this.rowNode.rowIndex};return o},e.prototype.onKeyPress=function(t){this.cellKeyboardListenerFeature.onKeyPress(t)},e.prototype.onKeyDown=function(t){this.cellKeyboardListenerFeature.onKeyDown(t)},e.prototype.onMouseEvent=function(t,e){this.cellMouseListenerFeature.onMouseEvent(t,e)},e.prototype.getGui=function(){return this.eGui},e.prototype.refreshToolTip=function(){this.tooltipFeature.refreshToolTip()},e.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},e.prototype.onLeftChanged=function(){this.cellComp&&this.cellPositionFeature.onLeftChanged()},e.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},e.prototype.setAriaColIndex=function(){var t=this.beans.columnModel.getAriaColumnIndex(this.column);Tn(this.getGui(),t)},e.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},e.prototype.onWidthChanged=function(){return this.cellPositionFeature.onWidthChanged()},e.prototype.getColumn=function(){return this.column},e.prototype.getRowNode=function(){return this.rowNode},e.prototype.getBeans=function(){return this.beans},e.prototype.isPrintLayout=function(){return this.printLayout},e.prototype.appendChild=function(t){this.eGui.appendChild(t)},e.prototype.refreshHandle=function(){this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},e.prototype.getCellPosition=function(){return this.cellPosition},e.prototype.isEditing=function(){return this.editing},e.prototype.startRowOrCellEdit=function(t,e,o){void 0===o&&(o=null),this.cellComp&&(this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.startRowEditing(t,e,this):this.startEditing(t,e,!0,o))},e.prototype.getRowCtrl=function(){return this.rowCtrl},e.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},e.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},e.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},e.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},e.prototype.focusCell=function(t){void 0===t&&(t=!1),this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:t})},e.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},e.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var t=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass(ju,t)}},e.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var t=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass(Uu,t)}},e.prototype.onCellFocused=function(t){if(this.cellComp&&!this.gow.isSuppressCellFocus()){var e=this.beans.focusService.isCellFocused(this.cellPosition);if(this.cellComp.addOrRemoveCssClass(Bu,e),e&&t&&t.forceBrowserFocus){var o=this.cellComp.getFocusableElement();o.focus({preventScroll:!!t.preventScrollOnBrowserFocus})}var r=this.beans.gridOptionsWrapper.isFullRowEdit();e||r||!this.editing||this.stopRowOrCellEdit()}},e.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:r(this.rowNode.rowPinned),column:this.column}},e.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass(Vu,!0),this.cellComp.addOrRemoveCssClass(zu,!0);var t=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass(Wu,t),this.cellComp.addOrRemoveCssClass(ku,!t)},e.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsWrapper.isColumnHoverHighlight()){var t=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass(qu,t)}},e.prototype.onColDefChanged=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},e.prototype.setWrapText=function(){var t=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass(Xu,t)},e.prototype.dispatchCellContextMenuEvent=function(t){var e=this.column.getColDef(),o=this.createEvent(t,le.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),e.onCellContextMenu&&window.setTimeout((function(){return e.onCellContextMenu(o)}),0)},e.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},e.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},e.prototype.destroy=function(){this.onCellCompAttachedFuncs=[],t.prototype.destroy.call(this)},e.prototype.createSelectionCheckbox=function(){var t=new Ia;return this.beans.context.createBean(t),t.init({rowNode:this.rowNode,column:this.column}),t},e.prototype.createDndSource=function(){var t=new Mu(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(t),t},e.prototype.registerRowDragger=function(t,e,o){var r=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(t,e);else{var n=this.createRowDragComp(t,e,o);n&&(this.customRowDragComp=n,this.addDestroyFunc((function(){return r.beans.context.destroyBean(n)})))}},e.prototype.createRowDragComp=function(t,e,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,t,e,o);return this.beans.context.createBean(a),a},e.DOM_DATA_KEY_CELL_CTRL="cellCtrl",e}(re),Zu=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),$u=function(t){var e="function"===typeof Symbol&&Symbol.iterator,o=e&&t[e],r=0;if(o)return o.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},tp=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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},ep=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(tp(arguments[e]));return t};(function(t){t["Normal"]="Normal",t["FullWidth"]="FullWidth",t["FullWidthLoading"]="FullWidthLoading",t["FullWidthGroup"]="FullWidthGroup",t["FullWidthDetail"]="FullWidthDetail"})(cu||(cu={}));var op,rp,np=0,ip=function(t){function e(e,o,r,n,i){var s=t.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=e,s.paginationPage=s.beans.paginationProxy.getCurrentPage(),s.useAnimationFrameForCreate=n,s.printLayout=i,s.instanceId=e.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(e,t),e.prototype.isSticky=function(){return this.rowNode.sticky},e.prototype.getBeans=function(){return this.beans},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setComp=function(t,e,o){var r={rowComp:t,element:e,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()},e.prototype.isCacheable=function(){return this.rowType===cu.FullWidthDetail&&this.beans.gridOptionsWrapper.isKeepDetailRows()},e.prototype.setCached=function(t){var e=t?"none":"";this.allRowGuis.forEach((function(t){return t.element.style.display=e}))},e.prototype.initialiseRowComps=function(){var t=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(){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}))}));var r=this.getRowBusinessKey(),n=ve(this.rowNode.id),i=ve(r);this.allRowGuis.forEach((function(r){var s=r.rowComp;s.setRole("row");var a=t.getInitialRowClasses(r.containerType);a.forEach((function(t){return s.addOrRemoveCssClass(t,!0)})),t.rowNode.group&&wn(r.element,1==t.rowNode.expanded),null!=n&&s.setRowId(n),null!=i&&s.setRowBusinessKey(i),t.isFullWidth()&&!t.beans.gridOptionsWrapper.isSuppressCellFocus()&&s.setTabIndex(-1),o.setDomData(r.element,e.DOM_DATA_KEY_ROW_CTRL,t),t.addDestroyFunc((function(){return o.setDomData(r.element,e.DOM_DATA_KEY_ROW_CTRL,null)})),t.useAnimationFrameForCreate?t.beans.animationFrameService.createTask(t.addHoverFunctionality.bind(t,r.element),t.rowNode.rowIndex,"createTasksP2"):t.addHoverFunctionality(r.element),t.isFullWidth()&&t.setupFullWidth(r),o.isRowDragEntireRow()&&t.addRowDraggerToRow(r),t.useAnimationFrameForCreate&&t.beans.animationFrameService.addDestroyTask((function(){t.isAlive()&&r.rowComp.addOrRemoveCssClass("ag-after-created",!0)}))})),this.executeProcessRowPostCreateFunc()},e.prototype.addRowDraggerToRow=function(t){var e=this.beans.gridOptionsWrapper;if(e.isEnableRangeSelection())x((function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")}),"rowDragAndRangeSelectionEnabled");else{var o=e.getLocaleTextFunc(),r=new Wa((function(){return"1 "+o("rowDragRow","row")}),this.rowNode,void 0,t.element,void 0,!0);this.createManagedBean(r,this.beans.context)}},e.prototype.setupFullWidth=function(t){var e=this.getPinnedForContainer(t.containerType),o=this.createFullWidthParams(t.element,e),r=gt.isRegistered(ut.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}t.rowComp.showFullWidth(n)}else gt.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 "+ut.MasterDetailModule)},e.prototype.isPrintLayout=function(){return this.printLayout},e.prototype.getCellElement=function(t){var e=this.getCellCtrl(t);return e?e.getGui():null},e.prototype.executeProcessRowPostCreateFunc=function(){var t=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();if(t){var e={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)};t(e)}},e.prototype.setRowType=function(){var t=this.rowNode.stub,e=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=t?cu.FullWidthLoading:o?cu.FullWidthDetail:e?cu.FullWidth:i?cu.FullWidthGroup:cu.Normal},e.prototype.updateColumnLists=function(t){var e=this;if(void 0===t&&(t=!1),!this.isFullWidth()){var o=t||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout;o?this.updateColumnListsImpl():this.updateColumnListsPending||(this.beans.animationFrameService.createTask((function(){e.active&&e.updateColumnListsImpl()}),this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}},e.prototype.createCellCtrls=function(t,e,o){var r=this;void 0===o&&(o=null);var n={list:[],map:{}},i=function(t,e){n.list.push(e),n.map[t]=e};return e.forEach((function(e){var o=e.getInstanceId(),n=t.map[o];n||(n=new Ju(e,r.rowNode,r.beans,r)),i(o,n)})),t.list.forEach((function(t){var e=null!=n.map[t.getColumn().getInstanceId()];if(!e){var s=!r.isCellEligibleToBeRemoved(t,o);s?i(t.getColumn().getInstanceId(),t):t.destroy()}})),n},e.prototype.updateColumnListsImpl=function(){var t=this;this.updateColumnListsPending=!1;var e=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,e.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var o=e.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o);var r=e.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,ft.PINNED_LEFT);var n=e.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,n,ft.PINNED_RIGHT)}this.allRowGuis.forEach((function(e){var o=e.containerType===rp.LEFT?t.leftCellCtrls:e.containerType===rp.RIGHT?t.rightCellCtrls:t.centerCellCtrls;e.rowComp.setCellCtrls(o.list)}))},e.prototype.isCellEligibleToBeRemoved=function(t,e){var o=!0,r=!1,n=t.getColumn();if(n.getPinned()!=e)return o;var i=t.isEditing(),s=this.beans.focusService.isCellFocused(t.getCellPosition()),a=i||s;if(a){var l=t.getColumn(),u=this.beans.columnModel.getAllDisplayedColumns(),p=u.indexOf(l)>=0;return p?r:o}return o},e.prototype.setAnimateFlags=function(t){if(!this.isSticky()&&t){var e=n(this.rowNode.oldRowTop);this.slideRowIn=e,this.fadeRowIn=!e}else this.slideRowIn=!1,this.fadeRowIn=!1},e.prototype.isEditing=function(){return this.editingRow},e.prototype.stopRowEditing=function(t){this.stopEditing(t)},e.prototype.isFullWidth=function(){return this.rowType!==cu.Normal},e.prototype.getRowType=function(){return this.rowType},e.prototype.refreshFullWidth=function(){var t=this,e=function(e,o){if(!e)return!0;var r=e.rowComp.getFullWidthCellRenderer();if(!r)return!1;if(!r.refresh)return!1;var n=t.createFullWidthParams(e.element,o),i=r.refresh(n);return i},o=e(this.fullWidthGui,null),r=e(this.centerGui,null),n=e(this.leftGui,ft.PINNED_LEFT),i=e(this.rightGui,ft.PINNED_RIGHT),s=o&&r&&n&&i;return s},e.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 t=this.beans.eventService;this.addManagedListener(t,le.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(t,le.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(t,le.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(t,le.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(t,le.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(t,le.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(t,le.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(t,le.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},e.prototype.onColumnMoved=function(){this.updateColumnLists()},e.prototype.addListenersForCellComps=function(){var t=this;this.addManagedListener(this.rowNode,Ta.EVENT_ROW_INDEX_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,Ta.EVENT_CELL_CHANGED,(function(e){t.getAllCellCtrls().forEach((function(t){return t.onCellChanged(e)}))}))},e.prototype.onRowNodeDataChanged=function(t){this.getAllCellCtrls().forEach((function(e){return e.refreshCell({suppressFlash:!t.update,newData:!t.update})})),this.onRowSelected(),this.postProcessCss()},e.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},e.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},e.prototype.onRowNodeHighlightChanged=function(){var t=this.rowNode.highlighted;this.allRowGuis.forEach((function(e){var o=t===fs.Above,r=t===fs.Below;e.rowComp.addOrRemoveCssClass("ag-row-highlight-above",o),e.rowComp.addOrRemoveCssClass("ag-row-highlight-below",r)}))},e.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},e.prototype.postProcessRowDragging=function(){var t=this.rowNode.dragging;this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-dragging",t)}))},e.prototype.updateExpandedCss=function(){var t=this.rowNode.isExpandable(),e=1==this.rowNode.expanded;this.allRowGuis.forEach((function(o){o.rowComp.addOrRemoveCssClass("ag-row-group",t),o.rowComp.addOrRemoveCssClass("ag-row-group-expanded",t&&e),o.rowComp.addOrRemoveCssClass("ag-row-group-contracted",t&&!e),wn(o.element,t&&e)}))},e.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},e.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},e.prototype.getRowPosition=function(){return{rowPinned:r(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},e.prototype.onKeyboardNavigate=function(t){var e=this.allRowGuis.find((function(e){return e.element.contains(t.target)})),o=e?e.element:null,r=o===t.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(t,t.key,s,!0),t.preventDefault()}},e.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented&&!Kt(t)){var e=this.allRowGuis.find((function(e){return e.element.contains(t.target)})),o=e?e.element:null,r=o===t.target,n=null;r||(n=this.beans.focusService.findNextFocusableElement(o,!1,t.shiftKey)),(this.isFullWidth()&&r||!n)&&this.beans.navigationService.onTabKeyDown(this,t)}},e.prototype.onFullWidthRowFocused=function(t){var e,o=this.rowNode,r=this.isFullWidth()&&t.rowIndex===o.rowIndex&&t.rowPinned==o.rowPinned,n=this.fullWidthGui?this.fullWidthGui.element:null===(e=this.centerGui)||void 0===e?void 0:e.element;n&&(n.classList.toggle("ag-full-width-focus",r),r&&n.focus({preventScroll:!0}))},e.prototype.refreshCell=function(t){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,t),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,t),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,t),this.updateColumnLists()},e.prototype.removeCellCtrl=function(t,e){var o={list:[],map:{}};return t.list.forEach((function(t){t!==e&&(o.list.push(t),o.map[t.getInstanceId()]=t)})),o},e.prototype.onMouseEvent=function(t,e){switch(t){case"dblclick":this.onRowDblClick(e);break;case"click":this.onRowClick(e);break;case"touchstart":case"mousedown":this.onRowMouseDown(e);break}},e.prototype.createRowEvent=function(t,e){return{type:t,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:e}},e.prototype.createRowEventWithSource=function(t,e){var o=this.createRowEvent(t,e);return o.source=this,o},e.prototype.onRowDblClick=function(t){if(!Kt(t)){var e=this.createRowEventWithSource(le.EVENT_ROW_DOUBLE_CLICKED,t);this.beans.eventService.dispatchEvent(e)}},e.prototype.onRowMouseDown=function(t){if(this.lastMouseDownOnDragger=hr(t.target,"ag-row-drag",3),this.isFullWidth()){var e=this.rowNode,o=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:e.rowIndex,column:o.getAllDisplayedColumns()[0],rowPinned:e.rowPinned,forceBrowserFocus:!0})}},e.prototype.onRowClick=function(t){var e=Kt(t)||this.lastMouseDownOnDragger;if(!e){var o=this.createRowEventWithSource(le.EVENT_ROW_CLICKED,t);this.beans.eventService.dispatchEvent(o);var r=t.ctrlKey||t.metaKey,n=t.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:t}):r?a&&this.rowNode.setSelectedParams({newValue:!1,event:t}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!n,rangeSelect:n,event:t});else{var l=!s&&!r;this.rowNode.setSelectedParams({newValue:!0,clearSelection:l,rangeSelect:n,event:t})}}}},e.prototype.setupDetailRowAutoHeight=function(t){var e=this;if(this.rowType===cu.FullWidthDetail&&this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var o=function(){var o=t.clientHeight;if(null!=o&&o>0){var r=function(){e.rowNode.setRowHeight(o),e.beans.clientSideRowModel?e.beans.clientSideRowModel.onRowHeightChanged():e.beans.serverSideRowModel&&e.beans.serverSideRowModel.onRowHeightChanged()};e.beans.frameworkOverrides.setTimeout(r,0)}},r=this.beans.resizeObserverService.observeResize(t,o);this.addDestroyFunc(r),o()}},e.prototype.createFullWidthParams=function(t,e){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:t,eParentOfValue:t,pinned:e,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(t,e,r,n){return o.addFullWidthRowDragging(t,e,r,n)}};return r},e.prototype.addFullWidthRowDragging=function(t,e,o,r){if(void 0===o&&(o=""),this.isFullWidth()){var n=new Wa((function(){return o}),this.rowNode,void 0,t,e,r);this.createManagedBean(n,this.beans.context)}},e.prototype.onUiLevelChanged=function(){var t=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=t){var e="ag-row-level-"+t,o="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass(e,!0),t.rowComp.addOrRemoveCssClass(o,!1)}))}this.rowLevel=t},e.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},e.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},e.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},e.prototype.refreshFirstAndLastRowStyles=function(){var t=this.isFirstRowOnPage(),e=this.isLastRowOnPage();this.firstRowOnPage!==t&&(this.firstRowOnPage=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-first",t)}))),this.lastRowOnPage!==e&&(this.lastRowOnPage=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-last",e)})))},e.prototype.stopEditing=function(t){var e,o;if(void 0===t&&(t=!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(t);n&&!t&&!i&&u&&(i=!0)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(e)throw e.error}}if(i){var p=this.createRowEvent(le.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(p)}n&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},e.prototype.setInlineEditingCss=function(t){this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass("ag-row-inline-editing",t),e.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!t)}))},e.prototype.setEditingRow=function(t){this.editingRow=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-editing",t)}));var e=t?this.createRowEvent(le.EVENT_ROW_EDITING_STARTED):this.createRowEvent(le.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(e)},e.prototype.startRowEditing=function(t,e,o,r){if(void 0===t&&(t=null),void 0===e&&(e=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(t,e,s,r):i.startEditing(null,null,s,r),!!n||i.isEditing()}),!1);n&&this.setEditingRow(!0)}},e.prototype.getAllCellCtrls=function(){var t=ep(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list);return t},e.prototype.postProcessClassesFromGridOptions=function(){var t=this,e=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);e&&e.length&&e.forEach((function(e){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(e,!0)}))}))},e.prototype.postProcessRowClassRules=function(){var t=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(function(e){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(e,!0)}))}),(function(e){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(e,!1)}))}))},e.prototype.setStylesFromGridOptions=function(){var t=this.processStylesFromGridOptions();this.allRowGuis.forEach((function(e){return e.rowComp.setUserStyles(t)}))},e.prototype.getRowBusinessKey=function(){var t=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"===typeof t)return t(this.rowNode)},e.prototype.getPinnedForContainer=function(t){var e=t===rp.LEFT?ft.PINNED_LEFT:t===rp.RIGHT?ft.PINNED_RIGHT:null;return e},e.prototype.getInitialRowClasses=function(t){var e=this.getPinnedForContainer(t),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:e};return this.beans.rowCssClassCalculator.getInitialRowClasses(o)},e.prototype.processStylesFromGridOptions=function(){var t=this.beans.gridOptionsWrapper.getRowStyle();if(!t||"function"!==typeof t){var e,o=this.beans.gridOptionsWrapper.getRowStyleFunc();if(o){var r={data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex};e=o(r)}return Object.assign({},t,e)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},e.prototype.onRowSelected=function(){var t=this,e=!!this.rowNode.isSelected();this.allRowGuis.forEach((function(o){o.rowComp.addOrRemoveCssClass("ag-row-selected",e),In(o.element,!!e||void 0);var r=t.createAriaLabel();hn(o.element,null==r?"":r)}))},e.prototype.createAriaLabel=function(){var t=this.rowNode.isSelected();if(!t||!this.beans.gridOptionsWrapper.isSuppressRowDeselection()){var e=this.beans.gridOptionsWrapper.getLocaleTextFunc(),o=e(t?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(t?"deselect":"select")+" this row.");return o}},e.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},e.prototype.addHoverFunctionality=function(t){var e=this;this.active&&(this.addManagedListener(t,"mouseenter",(function(){return e.rowNode.onMouseEnter()})),this.addManagedListener(t,"mouseleave",(function(){return e.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,Ta.EVENT_MOUSE_ENTER,(function(){e.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||t.classList.add("ag-row-hover")})),this.addManagedListener(this.rowNode,Ta.EVENT_MOUSE_LEAVE,(function(){t.classList.remove("ag-row-hover")})))},e.prototype.roundRowTopToBounds=function(t){var e=this.beans.ctrlsService.getGridBodyCtrl(),o=e.getScrollFeature().getVScrollPosition(),r=this.applyPaginationOffset(o.top,!0)-100,n=this.applyPaginationOffset(o.bottom,!0)+100;return Math.min(Math.max(r,t),n)},e.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},e.prototype.onRowHeightChanged=function(){if(null!=this.rowNode.rowHeight){var t=this.rowNode.rowHeight,e=this.beans.gridOptionsWrapper.getDefaultRowHeight(),o=this.beans.gridOptionsWrapper.isGetRowHeightFunction(),r=o?this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height:void 0,n=r?Math.min(e,r)-2+"px":void 0;this.allRowGuis.forEach((function(e){e.element.style.height=t+"px",n&&e.element.style.setProperty("--ag-line-height",n)}))}},e.prototype.addEventListener=function(e,o){"renderedRowRemoved"!==e&&"rowRemoved"!==e||(e=le.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+le.EVENT_VIRTUAL_ROW_REMOVED)),t.prototype.addEventListener.call(this,e,o)},e.prototype.removeEventListener=function(e,o){"renderedRowRemoved"!==e&&"rowRemoved"!==e||(e=le.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+le.EVENT_VIRTUAL_ROW_REMOVED)),t.prototype.removeEventListener.call(this,e,o)},e.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var e=this.createRowEvent(le.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(e),this.beans.eventService.dispatchEvent(e),t.prototype.destroy.call(this)},e.prototype.setupRemoveAnimation=function(){if(!this.isSticky()){var t=null!=this.rowNode.rowTop;if(t){var e=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(e)}else this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)}))}},e.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var t=function(t){return t.list.forEach((function(t){return t.destroy()})),{list:[],map:{}}};this.centerCellCtrls=t(this.centerCellCtrls),this.leftCellCtrls=t(this.leftCellCtrls),this.rightCellCtrls=t(this.rightCellCtrls)},e.prototype.setFocusedClasses=function(){var t=this;this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass("ag-row-focus",t.rowFocused),e.rowComp.addOrRemoveCssClass("ag-row-no-focus",!t.rowFocused)}))},e.prototype.onCellFocusChanged=function(){var t=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);t!==this.rowFocused&&(this.rowFocused=t,this.setFocusedClasses()),!t&&this.editingRow&&this.stopEditing(!1)},e.prototype.onPaginationChanged=function(){var t=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==t&&(this.paginationPage=t,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},e.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},e.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},e.prototype.applyPaginationOffset=function(t,e){if(void 0===e&&(e=!1),this.rowNode.isRowPinned())return t;var o=this.beans.paginationProxy.getPixelOffset(),r=e?1:-1;return t+o*r},e.prototype.setRowTop=function(t){if(!this.printLayout&&n(t)){var e=this.applyPaginationOffset(t),o=this.rowNode.isRowPinned()?e:this.beans.rowContainerHeightService.getRealPixelPosition(e),r=o+"px";this.setRowTopStyle(r)}},e.prototype.getInitialRowTop=function(){var t=this.beans.gridOptionsWrapper.isSuppressRowTransform();return t?this.getInitialRowTopShared():void 0},e.prototype.getInitialTransform=function(){var t=this.beans.gridOptionsWrapper.isSuppressRowTransform();return t?void 0:"translateY("+this.getInitialRowTopShared()+")"},e.prototype.getInitialRowTopShared=function(){if(this.printLayout)return"";var t;if(this.isSticky())t=this.rowNode.stickyRowTop;else{var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,o=this.applyPaginationOffset(e);t=this.rowNode.isRowPinned()?o:this.beans.rowContainerHeightService.getRealPixelPosition(o)}return t+"px"},e.prototype.setRowTopStyle=function(t){var e=this.beans.gridOptionsWrapper.isSuppressRowTransform();this.allRowGuis.forEach((function(o){return e?o.rowComp.setTop(t):o.rowComp.setTransform("translateY("+t+")")}))},e.prototype.getRowNode=function(){return this.rowNode},e.prototype.getCellCtrl=function(t){var e=null;return this.getAllCellCtrls().forEach((function(o){o.getColumn()==t&&(e=o)})),null!=e||this.getAllCellCtrls().forEach((function(o){o.getColSpanningList().indexOf(t)>=0&&(e=o)})),e},e.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},e.prototype.updateRowIndexes=function(){var t=this.rowNode.getRowIndexString(),e=this.beans.headerNavigationService.getHeaderRowCount(),o=this.rowNode.rowIndex%2===0,r=e+this.rowNode.rowIndex+1;this.allRowGuis.forEach((function(e){e.rowComp.setRowIndex(t),e.rowComp.addOrRemoveCssClass("ag-row-even",o),e.rowComp.addOrRemoveCssClass("ag-row-odd",!o),bn(e.element,r)}))},e.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},e.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},e.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},e.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},e.DOM_DATA_KEY_ROW_CTRL="renderedRow",e}(re),sp=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ap=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},lp=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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(t){function e(e){var o=t.call(this)||this;return o.element=e,o}return sp(e,t),e.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},e.prototype.addKeyboardEvents=function(){var t=this,e=["keydown","keypress"];e.forEach((function(e){var o=t.processKeyboardEvent.bind(t,e);t.addManagedListener(t.element,e,o)}))},e.prototype.addMouseListeners=function(){var t=this,e=Yt("touchstart")?"touchstart":"mousedown",o=["dblclick","contextmenu","mouseover","mouseout","click",e];o.forEach((function(e){var o=t.processMouseEvent.bind(t,e);t.addManagedListener(t.element,e,o)}))},e.prototype.processMouseEvent=function(t,e){if(this.mouseEventService.isEventFromThisGrid(e)&&!Kt(e)){var o=this.getRowForEvent(e),r=this.mouseEventService.getRenderedCellForEvent(e);"contextmenu"===t?this.handleContextMenuMouseEvent(e,null,o,r):(r&&r.onMouseEvent(t,e),o&&o.onMouseEvent(t,e))}},e.prototype.mockContextMenuForIPad=function(){var t=this;if(Ze()){var e=new Ks(this.element),o=function(e){var o=t.getRowForEvent(e.touchEvent),r=t.mouseEventService.getRenderedCellForEvent(e.touchEvent);t.handleContextMenuMouseEvent(null,e.touchEvent,o,r)};this.addManagedListener(e,Ks.EVENT_LONG_TAP,o),this.addDestroyFunc((function(){return e.destroy()}))}},e.prototype.getRowForEvent=function(t){var e=t.target;while(e){var o=this.gridOptionsWrapper.getDomData(e,ip.DOM_DATA_KEY_ROW_CTRL);if(o)return o;e=e.parentElement}return null},e.prototype.handleContextMenuMouseEvent=function(t,e,o,r){var n=o?o.getRowNode():null,i=r?r.getColumn():null,s=null;if(i){var a=t||e;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(t,e,n,i,s,u)},e.prototype.processKeyboardEvent=function(t,e){var o=qt(this.gridOptionsWrapper,e,Ju.DOM_DATA_KEY_CELL_CTRL),r=qt(this.gridOptionsWrapper,e,ip.DOM_DATA_KEY_ROW_CTRL);e.defaultPrevented||(o?this.processCellKeyboardEvent(o,t,e):r&&r.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,t,e))},e.prototype.processCellKeyboardEvent=function(t,e,o){var r=t.getRowNode(),n=t.getColumn(),i=t.isEditing(),s=!ei(this.gridOptionsWrapper,o,r,n,i);if(s)switch(e){case"keydown":var a=!i&&this.navigationService.handlePageScrollingKey(o);a||t.onKeyDown(o),this.doGridOperations(o,t.isEditing());break;case"keypress":t.onKeyPress(o);break}if("keydown"===e){var l=t.createEvent(o,le.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(l)}if("keypress"===e){var u=t.createEvent(o,le.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(u)}},e.prototype.processFullWidthRowKeyboardEvent=function(t,e,o){var r=t.getRowNode(),n=this.focusService.getFocusedCell(),i=n&&n.column,s=!ei(this.gridOptionsWrapper,o,r,i,!1);if(s){var a=o.key;if("keydown"===e)switch(a){case zn.UP:case zn.DOWN:t.onKeyboardNavigate(o);break;case zn.TAB:t.onTabKeyDown(o)}}if("keydown"===e){var l=t.createRowEvent(le.EVENT_CELL_KEY_DOWN,o);this.eventService.dispatchEvent(l)}if("keypress"===e){var u=t.createRowEvent(le.EVENT_CELL_KEY_PRESS,o);this.eventService.dispatchEvent(u)}},e.prototype.doGridOperations=function(t,e){if((t.ctrlKey||t.metaKey)&&!e&&this.mouseEventService.isEventFromThisGrid(t)){var o=ni(t);return o===zn.A?this.onCtrlAndA(t):o===zn.C?this.onCtrlAndC(t):o===zn.V?this.onCtrlAndV():o===zn.D?this.onCtrlAndD(t):o===zn.Z?this.onCtrlAndZ(t):o===zn.Y?this.onCtrlAndY():void 0}},e.prototype.onCtrlAndA=function(t){var e=this,o=e.pinnedRowModel,r=e.paginationProxy,n=e.rangeService,i=ft.PINNED_BOTTOM,a=ft.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:Et(f)})}t.preventDefault()},e.prototype.onCtrlAndC=function(t){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),t.preventDefault())},e.prototype.onCtrlAndV=function(){gt.isRegistered(ut.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},e.prototype.onCtrlAndD=function(t){gt.isRegistered(ut.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),t.preventDefault()},e.prototype.onCtrlAndZ=function(t){this.gridOptionsWrapper.isUndoRedoCellEditing()&&(t.preventDefault(),t.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo())},e.prototype.onCtrlAndY=function(){this.undoRedoService.redo()},ap([nt("mouseEventService")],e.prototype,"mouseEventService",void 0),ap([nt("valueService")],e.prototype,"valueService",void 0),ap([it("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),ap([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),ap([nt("navigationService")],e.prototype,"navigationService",void 0),ap([nt("focusService")],e.prototype,"focusService",void 0),ap([nt("undoRedoService")],e.prototype,"undoRedoService",void 0),ap([nt("columnModel")],e.prototype,"columnModel",void 0),ap([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),ap([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),ap([it("rangeService")],e.prototype,"rangeService",void 0),ap([it("clipboardService")],e.prototype,"clipboardService",void 0),ap([et],e.prototype,"postConstruct",null),e}(re),pp=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),cp=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},dp=function(t){function e(e){var o=t.call(this)||this;return o.centerContainerCtrl=e,o}return pp(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl(),t.listenForResize()})),this.addManagedListener(this.eventService,le.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},e.prototype.listenForResize=function(){var t=this,e=function(){return t.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(e),this.gridBodyCtrl.registerBodyViewportResizeListener(e)},e.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},e.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var t=this.centerContainerCtrl.getCenterWidth();t!==this.centerWidth&&(this.centerWidth=t,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},e.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},e.prototype.getBodyHeight=function(){return this.bodyHeight},e.prototype.checkBodyHeight=function(){var t=this.gridBodyCtrl.getBodyViewportElement(),e=gr(t);if(this.bodyHeight!==e){this.bodyHeight=e;var o={type:le.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(o)}},e.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},e.prototype.updateScrollVisibleServiceImpl=function(){var t={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(t),this.gridBodyCtrl.setVerticalScrollPaddingVisible(t.verticalScrollShowing)},e.prototype.isHorizontalScrollShowing=function(){var t=this.gridOptionsWrapper.isAlwaysShowHorizontalScroll();return t||this.centerContainerCtrl.isViewportHScrollShowing()},e.prototype.onHorizontalViewportChanged=function(){var t=this.centerContainerCtrl.getCenterWidth(),e=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(t,e)},cp([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),cp([nt("columnModel")],e.prototype,"columnModel",void 0),cp([nt("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),cp([et],e.prototype,"postConstruct",null),e}(re),hp=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),fp=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},gp=function(t){function e(e){var o=t.call(this)||this;return o.element=e,o}return hp(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,le.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},e.prototype.onPinnedLeftWidthChanged=function(){var t=this.pinnedWidthService.getPinnedLeftWidth(),e=t>0;pr(this.element,e),e&&Vr(this.element,t)},fp([nt("pinnedWidthService")],e.prototype,"pinnedWidthService",void 0),fp([et],e.prototype,"postConstruct",null),e}(re),vp=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),yp=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},mp=function(t){function e(e){var o=t.call(this)||this;return o.element=e,o}return vp(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,le.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},e.prototype.onPinnedRightWidthChanged=function(){var t=this.pinnedWidthService.getPinnedRightWidth(),e=t>0;pr(this.element,e),e&&Vr(this.element,t)},yp([nt("pinnedWidthService")],e.prototype,"pinnedWidthService",void 0),yp([et],e.prototype,"postConstruct",null),e}(re),Cp=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),wp=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Ep=function(t){function e(e,o){var r=t.call(this)||this;return r.eContainer=e,r.eWrapper=o,r}return Cp(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,le.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},e.prototype.onHeightChanged=function(){var t=this.maxDivHeightScaler.getUiContainerHeight(),e=null!=t?t+"px":"";this.eContainer.style.height=e,this.eWrapper&&(this.eWrapper.style.height=e)},wp([nt("rowContainerHeightService")],e.prototype,"maxDivHeightScaler",void 0),wp([et],e.prototype,"postConstruct",null),e}(re),Rp=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Op=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Sp=function(t){function e(e){var o=t.call(this)||this;return o.eContainer=e,o}return Rp(e,t),e.prototype.postConstruct=function(){var t=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!i(this.rangeService)){var e={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(e),this.addDestroyFunc((function(){return t.dragService.removeDragSource(e)}))}},Op([it("rangeService")],e.prototype,"rangeService",void 0),Op([nt("dragService")],e.prototype,"dragService",void 0),Op([et],e.prototype,"postConstruct",null),e}(re),_p=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),bp=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Pp=function(t){function e(e){var o=t.call(this)||this;return o.callback=e,o}return _p(e,t),e.prototype.postConstruct=function(){var t=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_DOM_LAYOUT,t),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.setWidth()},e.prototype.setWidth=function(){var t=this.columnModel,e=this.gridOptionsWrapper.getDomLayout()===ft.DOM_LAYOUT_PRINT,o=t.getBodyContainerWidth(),r=t.getDisplayedColumnsLeftWidth(),n=t.getDisplayedColumnsRightWidth(),i=e?o+r+n:o;this.callback(i)},bp([nt("columnModel")],e.prototype,"columnModel",void 0),bp([et],e.prototype,"postConstruct",null),e}(re),Tp=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Dp=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Ap=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t=[],e=0;e<arguments.length;e++)t=t.concat(Ap(arguments[e]));return t};function Ip(t){switch(t){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(t){t["LEFT"]="left",t["RIGHT"]="right",t["CENTER"]="center",t["FULL_WIDTH"]="fullWidth",t["TOP_LEFT"]="topLeft",t["TOP_RIGHT"]="topRight",t["TOP_CENTER"]="topCenter",t["TOP_FULL_WIDTH"]="topFullWidth",t["STICKY_TOP_LEFT"]="stickyTopLeft",t["STICKY_TOP_RIGHT"]="stickyTopRight",t["STICKY_TOP_CENTER"]="stickyTopCenter",t["STICKY_TOP_FULL_WIDTH"]="stickyTopFullWidth",t["BOTTOM_LEFT"]="bottomLeft",t["BOTTOM_RIGHT"]="bottomRight",t["BOTTOM_CENTER"]="bottomCenter",t["BOTTOM_FULL_WIDTH"]="bottomFullWidth"})(op||(op={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["CENTER"]="center",t["FULL_WIDTH"]="fullWidth"}(rp||(rp={}));var Gp=Ce([[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=Ce([[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=Ce([[op.CENTER,"ag-center-cols-clipper"]]),Mp=function(t){function e(e){var o=t.call(this)||this;return o.name=e,o}return Tp(e,t),e.getRowContainerCssClasses=function(t){var e=Gp.get(t),o=Fp.get(t),r=Lp.get(t);return{container:e,viewport:o,wrapper:r}},e.getPinned=function(t){switch(t){case op.BOTTOM_LEFT:case op.TOP_LEFT:case op.STICKY_TOP_LEFT:case op.LEFT:return ft.PINNED_LEFT;case op.BOTTOM_RIGHT:case op.TOP_RIGHT:case op.STICKY_TOP_RIGHT:case op.RIGHT:return ft.PINNED_RIGHT;default:return null}},e.prototype.postConstruct=function(){var t=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows(),this.forContainers([op.CENTER],(function(){return t.viewportSizeFeature=t.createManagedBean(new dp(t))}))},e.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}},e.prototype.forContainers=function(t,e){t.indexOf(this.name)>=0&&e()},e.prototype.getContainerElement=function(){return this.eContainer},e.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},e.prototype.setComp=function(t,e,o,r){var n=this;this.comp=t,this.eContainer=e,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(t){return n.comp.setContainerWidth(t+"px")})))})),this.addListeners(),this.registerWithCtrlsService()},e.prototype.addListeners=function(){var t=this;this.addManagedListener(this.eventService,le.EVENT_SCROLL_VISIBILITY_CHANGED,(function(){return t.onScrollVisibilityChanged()})),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return t.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return t.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_ROWS_CHANGED,(function(){return t.onDisplayedRowsChanged()})),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},e.prototype.listenOnDomOrder=function(){var t=this,e=[op.STICKY_TOP_CENTER,op.STICKY_TOP_LEFT,op.STICKY_TOP_RIGHT,op.STICKY_TOP_FULL_WIDTH],o=e.indexOf(this.name)>=0;if(o)this.comp.setDomOrder(!0);else{var r=function(){return t.comp.setDomOrder(t.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_DOM_LAYOUT,r),r()}},e.prototype.stopHScrollOnPinnedRows=function(){var t=this;this.forContainers([op.TOP_CENTER,op.STICKY_TOP_CENTER,op.BOTTOM_CENTER],(function(){var e=function(){return t.eViewport.scrollLeft=0};t.addManagedListener(t.eViewport,"scroll",e)}))},e.prototype.onDisplayedColumnsChanged=function(){var t=this;this.forContainers([op.CENTER],(function(){return t.onHorizontalViewportChanged()}))},e.prototype.onDisplayedColumnsWidthChanged=function(){var t=this;this.forContainers([op.CENTER],(function(){return t.onHorizontalViewportChanged()}))},e.prototype.onScrollVisibilityChanged=function(){if(this.name===op.CENTER){var t=this.scrollVisibleService.isHorizontalScrollShowing(),e=t&&this.gridOptionsWrapper.getScrollbarWidth()||0,o=0==e?"100%":"calc(100% + "+e+"px)";this.comp.setViewportHeight(o)}},e.prototype.addPreventScrollWhileDragging=function(){var t=this,e=function(e){t.dragService.isDragging()&&e.cancelable&&e.preventDefault()};this.eContainer.addEventListener("touchmove",e,{passive:!1}),this.addDestroyFunc((function(){return t.eContainer.removeEventListener("touchmove",e)}))},e.prototype.onHorizontalViewportChanged=function(){var t=this.getCenterWidth(),e=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(t,e)},e.prototype.getCenterWidth=function(){return vr(this.eViewport)},e.prototype.getCenterViewportScrollLeft=function(){return wr(this.eViewport,this.enableRtl)},e.prototype.registerViewportResizeListener=function(t){var e=this.resizeObserverService.observeResize(this.eViewport,t);this.addDestroyFunc((function(){return e()}))},e.prototype.isViewportVisible=function(){return _r(this.eViewport)},e.prototype.isViewportHScrollShowing=function(){return Mr(this.eViewport)},e.prototype.getViewportScrollLeft=function(){return wr(this.eViewport,this.enableRtl)},e.prototype.isHorizontalScrollShowing=function(){var t=this.gridOptionsWrapper.isAlwaysShowHorizontalScroll();return t||Mr(this.eViewport)},e.prototype.getViewportElement=function(){return this.eViewport},e.prototype.setContainerTranslateX=function(t){this.eContainer.style.transform="translateX("+t+"px)"},e.prototype.getHScrollPosition=function(){var t={left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth};return t},e.prototype.setCenterViewportScrollLeft=function(t){Er(this.eViewport,t,this.enableRtl)},e.prototype.onDisplayedRowsChanged=function(){var t=this,e=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=t.gridOptionsWrapper.getDomLayout()===ft.DOM_LAYOUT_PRINT,i=t.embedFullWidthRows||n,s=e?!i&&r:i||!r;return s},r=this.getRowCtrls(),n=r.filter(o);this.comp.setRowCtrls(n)},e.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([nt("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),Dp([nt("dragService")],e.prototype,"dragService",void 0),Dp([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),Dp([nt("columnModel")],e.prototype,"columnModel",void 0),Dp([nt("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Dp([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),Dp([et],e.prototype,"postConstruct",null),e}(re),xp=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Hp=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,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(t){function e(){return t.call(this,Vp)||this}return xp(e,t),e.prototype.init=function(){var t=this,e=function(t,e){var o=t+"px";e.style.minHeight=o,e.style.height=o},o={setRowAnimationCssOnBodyViewport:function(e,o){return t.setRowAnimationCssOnBodyViewport(e,o)},setColumnCount:function(e){return Pn(t.getGui(),e)},setRowCount:function(e){return _n(t.getGui(),e)},setTopHeight:function(o){return e(o,t.eTop)},setBottomHeight:function(o){return e(o,t.eBottom)},setTopDisplay:function(e){return t.eTop.style.display=e},setBottomDisplay:function(e){return t.eBottom.style.display=e},setStickyTopHeight:function(e){return t.eStickyTop.style.height=e},setStickyTopTop:function(e){return t.eStickyTop.style.top=e},setStickyTopWidth:function(e){return t.eStickyTop.style.width=e},setColumnMovingCss:function(e,o){return t.addOrRemoveCssClass(uu,o)},updateLayoutClasses:function(e,o){var r=t.eBodyViewport.classList;r.toggle(Al.AUTO_HEIGHT,o.autoHeight),r.toggle(Al.NORMAL,o.normal),r.toggle(Al.PRINT,o.print),t.addOrRemoveCssClass(Al.AUTO_HEIGHT,o.autoHeight),t.addOrRemoveCssClass(Al.NORMAL,o.normal),t.addOrRemoveCssClass(Al.PRINT,o.print)},setAlwaysVerticalScrollClass:function(e,o){return t.eBodyViewport.classList.toggle(lu,o)},registerBodyViewportResizeListener:function(e){var o=t.resizeObserverService.observeResize(t.eBodyViewport,e);t.addDestroyFunc((function(){return o()}))},setPinnedTopBottomOverflowY:function(e){return t.eTop.style.overflowY=t.eBottom.style.overflowY=e},setCellSelectableCss:function(e,o){[t.eTop,t.eBodyViewport,t.eBottom].forEach((function(t){return t.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)},e.prototype.setRowAnimationCssOnBodyViewport=function(t,e){var o=this.eBodyViewport.classList;o.toggle(zl.ANIMATION_ON,e),o.toggle(zl.ANIMATION_OFF,!e)},e.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},Hp([nt("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Hp([it("rangeService")],e.prototype,"rangeService",void 0),Hp([Ai("eBodyViewport")],e.prototype,"eBodyViewport",void 0),Hp([Ai("eStickyTop")],e.prototype,"eStickyTop",void 0),Hp([Ai("eTop")],e.prototype,"eTop",void 0),Hp([Ai("eBottom")],e.prototype,"eBottom",void 0),Hp([Ai("gridHeader")],e.prototype,"headerRootComp",void 0),Hp([et],e.prototype,"init",null),e}(Di),kp=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Bp=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},jp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kp(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},e.prototype.onDisplayedColumnsChanged=function(){this.update()},e.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},e.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},e.prototype.updateImpl=function(){var t=this.ctrlsService.getCenterRowContainerCtrl();if(t){var e={horizontalScrollShowing:t.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(e)}},e.prototype.setScrollsVisible=function(t){var e=this.horizontalScrollShowing!==t.horizontalScrollShowing||this.verticalScrollShowing!==t.verticalScrollShowing;if(e){this.horizontalScrollShowing=t.horizontalScrollShowing,this.verticalScrollShowing=t.verticalScrollShowing;var o={type:le.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(o)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Bp([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),Bp([et],e.prototype,"postConstruct",null),e=Bp([rt("scrollVisibleService")],e),e}(re),Up=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),zp=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Kp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.gridInstanceId=o.gridInstanceSequence.next(),e}var o;return Up(e,t),o=e,e.prototype.stampTopLevelGridCompWithGridInstance=function(t){t[o.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(t){return qt(this.gridOptionsWrapper,t,Ju.DOM_DATA_KEY_CELL_CTRL)},e.prototype.isEventFromThisGrid=function(t){var e=this.isElementInThisGrid(t.target);return e},e.prototype.isElementInThisGrid=function(t){var e=t;while(e){var r=e[o.GRID_DOM_KEY];if(n(r)){var i=r===this.gridInstanceId;return i}e=e.parentElement}return!1},e.prototype.getCellPositionForEvent=function(t){var e=this.getRenderedCellForEvent(t);return e?e.getCellPosition():null},e.prototype.getNormalisedPosition=function(t){var e,o,r=this.gridOptionsWrapper.getDomLayout()===ft.DOM_LAYOUT_NORMAL,n=t;if(null!=n.clientX||null!=n.clientY?(e=n.clientX,o=n.clientY):(e=n.x,o=n.y),r){var i=this.ctrlsService.getGridBodyCtrl(),s=i.getScrollFeature().getVScrollPosition(),a=i.getScrollFeature().getHScrollPosition();e+=a.left,o+=s.top}return{x:e,y:o}},e.gridInstanceSequence=new mi,e.GRID_DOM_KEY="__ag_grid_instance",zp([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),e=o=zp([rt("mouseEventService")],e),e}(re),Yp=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),qp=function(){return qp=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},qp.apply(this,arguments)},Xp=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Qp=function(t){function e(){var e=t.call(this)||this;return e.onPageDown=K(e.onPageDown,100),e.onPageUp=K(e.onPageUp,100),e}return Yp(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.gridBodyCon=e.gridBodyCtrl}))},e.prototype.handlePageScrollingKey=function(t){var e=t.key,o=t.altKey,r=t.ctrlKey||t.metaKey,n=!!this.rangeService&&t.shiftKey,i=this.mouseEventService.getCellPositionForEvent(t);if(!i)return!1;var s=!1;switch(e){case zn.PAGE_HOME:case zn.PAGE_END:r||o||(this.onHomeOrEndKey(e),s=!0);break;case zn.LEFT:case zn.RIGHT:case zn.UP:case zn.DOWN:!r||o||n||(this.onCtrlUpDownLeftRight(e,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&&t.preventDefault(),s},e.prototype.navigateTo=function(t){var e=t.scrollIndex,o=t.scrollType,r=t.scrollColumn,i=t.focusIndex,s=t.focusColumn;if(n(r)&&!r.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(r),n(e)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e,o),t.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)}},e.prototype.onPageDown=function(t){var e=this.ctrlsService.getGridBodyCtrl(),o=e.getScrollFeature().getVScrollPosition(),r=this.getViewportHeight(),n=this.paginationProxy.getPixelOffset(),i=o.top+r,s=this.paginationProxy.getRowIndexAtPixel(i+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(t,s):this.navigateToNextPage(t,s)},e.prototype.onPageUp=function(t){var e=this.ctrlsService.getGridBodyCtrl(),o=e.getScrollFeature().getVScrollPosition(),r=this.paginationProxy.getPixelOffset(),n=o.top,i=this.paginationProxy.getRowIndexAtPixel(n+r);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(t,i,!0):this.navigateToNextPage(t,i,!0)},e.prototype.navigateToNextPage=function(t,e,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(t.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===t.rowIndex){var f=o?-1:1;e=h=t.rowIndex+f}o?(i="bottom",h<a&&(h=a),e<a&&(e=a)):(i="top",h>l&&(h=l),e>l&&(e=l)),this.isRowTallerThanView(h)&&(e=h,i="top"),this.navigateTo({scrollIndex:e,scrollType:i,scrollColumn:null,focusIndex:h,focusColumn:t.column})},e.prototype.navigateToNextPageWithAutoHeight=function(t,e,o){var r=this;void 0===o&&(o=!1),this.navigateTo({scrollIndex:e,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:e,focusColumn:t.column}),setTimeout((function(){var n=r.getNextFocusIndexForAutoHeight(t,o);r.navigateTo({scrollIndex:e,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:n,focusColumn:t.column,isAsync:!0})}),50)},e.prototype.getNextFocusIndexForAutoHeight=function(t,e){var o;void 0===e&&(e=!1);var r=e?-1:1,n=this.getViewportHeight(),i=this.paginationProxy.getPageLastRow(),s=0,a=t.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))},e.prototype.getViewportHeight=function(){var t=this.ctrlsService.getGridBodyCtrl(),e=t.getScrollFeature().getVScrollPosition(),o=this.gridOptionsWrapper.getScrollbarWidth(),r=e.bottom-e.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(r-=o),r},e.prototype.isRowTallerThanView=function(t){var e=this.paginationProxy.getRow(t);if(!e)return!1;var o=e.rowHeight;return"number"===typeof o&&o>this.getViewportHeight()},e.prototype.onCtrlUpDownLeftRight=function(t,e){var o=this.cellNavigationService.getNextCellToFocus(t,e,!0),r=o.rowIndex,n=o.column;this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:n,focusIndex:r,focusColumn:n})},e.prototype.onHomeOrEndKey=function(t){var e=t===zn.PAGE_HOME,o=this.columnModel.getAllDisplayedColumns(),r=e?o[0]:Et(o),n=e?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:n,scrollType:null,scrollColumn:r,focusIndex:n,focusColumn:r})},e.prototype.onTabKeyDown=function(t,e){var o=e.shiftKey,r=this.tabToNextCellCommon(t,o,e);if(r)e.preventDefault();else if(o){var n=t.getRowPosition(),i=n.rowIndex,s=n.rowPinned,a=s?0===i:i===this.paginationProxy.getPageFirstRow();a&&(e.preventDefault(),this.focusService.focusLastHeader(e))}else t instanceof Ju&&t.focusCell(!0),this.focusService.focusNextGridCoreContainer(o)&&e.preventDefault()},e.prototype.tabToNextCell=function(t,e){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,t,e)},e.prototype.tabToNextCellCommon=function(t,e,o){var r,n=t.isEditing();if(!n&&t instanceof Ju){var i=t,s=i.getRowCtrl();s&&(n=s.isEditing())}return r=n?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(t,e,o):this.moveToNextEditingCell(t,e,o):this.moveToNextCellNotEditing(t,e),r||!!this.focusService.getFocusedHeader()},e.prototype.moveToNextEditingCell=function(t,e,o){void 0===o&&(o=null);var r=t.getCellPosition();t.getGui().focus(),t.stopEditing();var n=this.findNextCellToFocusOn(r,e,!0);return null!=n&&(n.startEditing(null,null,!0,o),n.focusCell(!1),!0)},e.prototype.moveToNextEditingRow=function(t,e,o){void 0===o&&(o=null);var r=t.getCellPosition(),n=this.findNextCellToFocusOn(r,e,!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&&t.setFocusOutOnEditor(),!l){var u=t.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},e.prototype.moveToNextCellNotEditing=function(t,e){var o,r=this.columnModel.getAllDisplayedColumns();o=t instanceof ip?qp(qp({},t.getRowPosition()),{column:e?r[0]:Et(r)}):t.getCellPosition();var i=this.findNextCellToFocusOn(o,e,!1);if(i instanceof Ju)i.focusCell(!0);else if(i)return this.tryToFocusFullWidthRow(i.getRowPosition(),e);return n(i)},e.prototype.findNextCellToFocusOn=function(t,e,o){var r=t;while(1){t!==r&&(t=r),e||(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextTabbedCell(r,e);var i=this.gridOptionsWrapper.getTabToNextCellFunc();if(n(i)){var s={backwards:e,editing:o,previousCellPosition:t,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}}},e.prototype.isCellEditable=function(t){var e=this.lookupRowNodeForCell(t);return!!e&&t.column.isCellEditable(e)},e.prototype.getCellByPosition=function(t){var e=this.rowRenderer.getRowByPosition(t);return e?e.getCellCtrl(t.column):null},e.prototype.lookupRowNodeForCell=function(t){return t.rowPinned===ft.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(t.rowIndex):t.rowPinned===ft.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(t.rowIndex):this.paginationProxy.getRow(t.rowIndex)},e.prototype.navigateToNextCell=function(t,e,o,r){var s=o,a=!1;while(s&&(s===o||!this.isValidNavigateCell(s)))this.gridOptionsWrapper.isEnableRtl()?e===zn.LEFT&&(s=this.getLastCellOfColSpan(s)):e===zn.RIGHT&&(s=this.getLastCellOfColSpan(s)),s=this.cellNavigationService.getNextCellToFocus(e,s),a=i(s);if(a&&t&&t.key===zn.UP&&(s={rowIndex:-1,rowPinned:null,column:o.column}),r){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(n(l)){var u={key:e,previousCellPosition:o,nextCellPosition:s||null,event:t},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:t||void 0})}else{var d=this.getNormalisedPosition(s);d?this.focusPosition(d):this.tryToFocusFullWidthRow(s)}},e.prototype.getNormalisedPosition=function(t){this.ensureCellVisible(t);var e=this.getCellByPosition(t);return e?(t=e.getCellPosition(),this.ensureCellVisible(t),t):null},e.prototype.tryToFocusFullWidthRow=function(t,e){void 0===e&&(e=!1);var o=this.columnModel.getAllDisplayedColumns(),r=this.rowRenderer.getRowByPosition(t);if(!r||!r.isFullWidth())return!1;var n=this.focusService.getFocusedCell(),i={rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:t.column||(e?Et(o):o[0])};this.focusPosition(i);var s=null!=n&&this.rowPositionUtils.before(i,n),a={type:le.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},e.prototype.focusPosition=function(t){this.focusService.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(t)},e.prototype.isValidNavigateCell=function(t){var e=this.rowPositionUtils.getRowNode(t);return!!e},e.prototype.getLastCellOfColSpan=function(t){var e=this.getCellByPosition(t);if(!e)return t;var o=e.getColSpanningList();return 1===o.length?t:{rowIndex:t.rowIndex,column:Et(o),rowPinned:t.rowPinned}},e.prototype.ensureCellVisible=function(t){var e,o=this.gridOptionsWrapper.isGroupRowsSticky(),r=this.rowModel.getRow(t.rowIndex),n=o&&(null===(e=r)||void 0===e?void 0:e.sticky);!n&&i(t.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t.rowIndex),t.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(t.column)},Xp([nt("mouseEventService")],e.prototype,"mouseEventService",void 0),Xp([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),Xp([nt("focusService")],e.prototype,"focusService",void 0),Xp([it("rangeService")],e.prototype,"rangeService",void 0),Xp([nt("columnModel")],e.prototype,"columnModel",void 0),Xp([nt("rowModel")],e.prototype,"rowModel",void 0),Xp([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),Xp([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),Xp([nt("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Xp([nt("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Xp([nt("cellNavigationService")],e.prototype,"cellNavigationService",void 0),Xp([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Xp([et],e.prototype,"postConstruct",null),e=Xp([rt("navigationService")],e),e}(re),Jp=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zp=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},$p=function(t){function e(e){var o=t.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return o.params=e,o}return Jp(e,t),e.prototype.postConstruct=function(){this.gridOptionsWrapper.setDomData(this.getGui(),e.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},e.prototype.addKeyDownListener=function(){var t=this,e=this.getGui(),o=this.params,r=function(e){ei(t.gridOptionsWrapper,e,o.node,o.column,!0)||o.onKeyDown(e)};this.addManagedListener(e,"keydown",r)},e.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",Zp([et],e.prototype,"postConstruct",null),e}(ra),tc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ec=function(t){function e(e,o,r,n,i){var s=t.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=e,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(t,e,o){var r=o||a;null!=e&&""!=e?r.setAttribute(t,e):r.removeAttribute(t)},u={addOrRemoveCssClass:function(t,e){return s.addOrRemoveCssClass(t,e)},setUserStyles:function(t){return Lr(a,t)},getFocusableElement:function(){return s.getFocusableElement()},setTabIndex:function(t){return l("tabindex",t.toString())},setRole:function(t){return ln(a,t)},setColId:function(t){return l("col-id",t)},setTitle:function(t){return l("title",t)},setIncludeSelection:function(t){return s.includeSelection=t},setIncludeRowDrag:function(t){return s.includeRowDrag=t},setIncludeDndSource:function(t){return s.includeDndSource=t},setRenderDetails:function(t,e,o){return s.setRenderDetails(t,e,o)},setEditDetails:function(t,e,o){return s.setEditDetails(t,e,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 tc(e,t),e.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},e.prototype.setRenderDetails=function(t,e,o){var r=this.cellEditor&&!this.cellEditorPopupWrapper;if(!r){this.firstRender=null==this.firstRender;var n=this.refreshWrapper(!1);if(t){var i=o||n,s=!i&&this.refreshCellRenderer(t);s||(this.destroyRenderer(),this.createCellRendererInstance(t))}else this.destroyRenderer(),this.insertValueWithoutCellRenderer(e)}},e.prototype.setEditDetails=function(t,e,o){t?this.createCellEditorInstance(t,e,o):this.destroyEditor()},e.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)},e.prototype.refreshWrapper=function(t){var e=this.includeRowDrag||this.includeDndSource||this.includeSelection,o=e||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=!t&&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(),!t&&e&&this.addControls(),l},e.prototype.addControls=function(){var t=this.eCellValue.id="cell-"+this.getCompId(),e=[];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)),e.push(this.checkboxSelectionComp.getCheckboxId())),e.push(t),vn(this.getGui(),e.join(" "))},e.prototype.createCellEditorInstance=function(t,e,o){var r=this,n=this.editorVersion,s=t.newAgStackInstance();if(s){var a=t.params;s.then((function(t){return r.afterCellEditorCreated(n,t,a,e,o)}));var l=i(this.cellEditor);l&&a.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},e.prototype.insertValueWithoutCellRenderer=function(t){var e=this.getParentOfValue();Rr(e);var o=null!=t?ve(t):null;null!=o&&(e.innerHTML=o)},e.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},e.prototype.destroyRenderer=function(){var t=this.beans.context;this.cellRenderer=t.destroyBean(this.cellRenderer),Sr(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},e.prototype.destroyEditor=function(){var t=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=t.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=t.destroyBean(this.cellEditorPopupWrapper),Sr(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},e.prototype.refreshCellRenderer=function(t){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==t.componentClass)return!1;var e=this.cellRenderer.refresh(t.params);return!0===e||void 0===e},e.prototype.createCellRendererInstance=function(t){var e=this,o=this.beans.gridOptionsWrapper.isAngularCompileRows(),r=this.beans.gridOptionsWrapper.isSuppressAnimationFrame(),n=!o&&!r,i=this.rendererVersion,s=t.componentClass,a=function(){var o=e.rendererVersion!==i||!e.isAlive();if(!o){var r=t.newAgStackInstance(),n=e.afterCellRendererCreated.bind(e,i,s);r&&r.then(n)}};n&&this.firstRender?this.beans.animationFrameService.createTask(a,this.rowNode.rowIndex,"createTasksP2"):a()},e.prototype.getCtrl=function(){return this.cellCtrl},e.prototype.getRowCtrl=function(){return this.rowCtrl},e.prototype.getCellRenderer=function(){return this.cellRenderer},e.prototype.getCellEditor=function(){return this.cellEditor},e.prototype.afterCellRendererCreated=function(t,e,o){var r=!this.isAlive()||t!==this.rendererVersion;if(r)this.beans.context.destroyBean(o);else if(this.cellRenderer=o,this.cellRendererClass=e,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var n=this.getParentOfValue();Rr(n),n.appendChild(this.cellRendererGui)}},e.prototype.afterCellEditorCreated=function(t,e,o,r,n){var i=t!==this.editorVersion;if(i)this.beans.context.destroyBean(e);else{var s=e.isCancelBeforeStart&&e.isCancelBeforeStart();if(s)return this.beans.context.destroyBean(e),void this.cellCtrl.stopEditing();if(!e.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(e);this.cellEditor=e,this.cellEditorGui=e.getGui();var a=r||void 0!==e.isPopup&&e.isPopup();a?(r||this.cellCtrl.hackSayEditingInPopup(),this.addPopupCellEditor(o,n)):this.addInCellEditor(),e.afterGuiAttached&&e.afterGuiAttached()}},e.prototype.addInCellEditor=function(){var t=this.getGui(),e=this.beans.gridOptionsWrapper.getDocument();if(t.contains(e.activeElement)&&t.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui){var o=this.getParentOfValue();o.appendChild(this.cellEditorGui)}},e.prototype.addPopupCellEditor=function(t,e){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(t));var n=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&n.appendChild(this.cellEditorGui);var i=this.beans.popupService,s=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),a=null!=e?e: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)},e.prototype.detach=function(){this.eRow.removeChild(this.getGui())},e.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),t.prototype.destroy.call(this)},e.prototype.clearParentOfValue=function(){var t=this.getGui(),e=this.beans.gridOptionsWrapper.getDocument();t.contains(e.activeElement)&&$e()&&t.focus({preventScroll:!0}),Rr(this.getParentOfValue())},e}(Di),oc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),rc=function(t){function e(e,o,r){var n=t.call(this)||this;n.cellComps={},n.beans=o,n.rowCtrl=e,n.setTemplate('<div comp-id="'+n.getCompId()+'" style="'+n.getInitialStyle()+'"/>');var i=n.getGui(),s=i.style,a={setDomOrder:function(t){return n.domOrder=t},setCellCtrls:function(t){return n.setCellCtrls(t)},showFullWidth:function(t){return n.showFullWidth(t)},getFullWidthCellRenderer:function(){return n.getFullWidthCellRenderer()},addOrRemoveCssClass:function(t,e){return n.addOrRemoveCssClass(t,e)},setUserStyles:function(t){return Lr(i,t)},setTop:function(t){return s.top=t},setTransform:function(t){return s.transform=t},setRowIndex:function(t){return i.setAttribute("row-index",t)},setRole:function(t){return ln(i,t)},setRowId:function(t){return i.setAttribute("row-id",t)},setRowBusinessKey:function(t){return i.setAttribute("row-business-key",t)},setTabIndex:function(t){return i.setAttribute("tabindex",t.toString())}};return e.setComp(a,n.getGui(),r),n}return oc(e,t),e.prototype.getInitialStyle=function(){var t=this.rowCtrl.getInitialTransform(),e=this.rowCtrl.getInitialRowTop();return t?"transform: "+t:"top: "+e},e.prototype.showFullWidth=function(t){var e=this,o=function(t){if(e.isAlive()){var o=t.getGui();e.getGui().appendChild(o),e.rowCtrl.setupDetailRowAutoHeight(o),e.setFullWidthRowComp(t)}else e.beans.context.destroyBean(t)},r=t.newAgStackInstance();r&&r.then(o)},e.prototype.setCellCtrls=function(t){var e=this,o=Object.assign({},this.cellComps);t.forEach((function(t){var r=t.getInstanceId(),n=e.cellComps[r];null==n?e.newCellComp(t):o[r]=null}));var r=b(o).filter((function(t){return null!=t}));this.destroyCells(r),this.ensureDomOrder(t)},e.prototype.ensureDomOrder=function(t){var e=this;if(this.domOrder){var o=[];t.forEach((function(t){var r=e.cellComps[t.getInstanceId()];r&&o.push(r.getGui())})),Ir(this.getGui(),o)}},e.prototype.newCellComp=function(t){var e=new ec(this.beans,t,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[t.getInstanceId()]=e,this.getGui().appendChild(e.getGui())},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.destroyAllCells()},e.prototype.destroyAllCells=function(){var t=b(this.cellComps).filter((function(t){return null!=t}));this.destroyCells(t)},e.prototype.setFullWidthRowComp=function(t){var e=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=t,this.addDestroyFunc((function(){e.fullWidthCellRenderer=e.beans.context.destroyBean(e.fullWidthCellRenderer)}))},e.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},e.prototype.destroyCells=function(t){var e=this;t.forEach((function(t){if(t){var o=t.getCtrl().getInstanceId();e.cellComps[o]===t&&(t.detach(),t.destroy(),e.cellComps[o]=null)}}))},e}(Di),nc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ic=function(){return ic=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},ic.apply(this,arguments)},sc=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s};function ac(){var t,e=Di.elementGettingCreated.getAttribute("name"),o=Mp.getRowContainerCssClasses(e),r=e===op.CENTER,n=e===op.TOP_CENTER||e===op.STICKY_TOP_CENTER||e===op.BOTTOM_CENTER;return t=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>',t}var lc,uc=function(t){function e(){var e=t.call(this,ac())||this;return e.rowComps={},e.name=Di.elementGettingCreated.getAttribute("name"),e.type=Ip(e.name),e}return nc(e,t),e.prototype.postConstruct=function(){var t=this,e={setViewportHeight:function(e){return t.eViewport.style.height=e},setRowCtrls:function(e){return t.setRowCtrls(e)},setDomOrder:function(e){t.domOrder=e},setContainerWidth:function(e){return t.eContainer.style.width=e}},o=this.createManagedBean(new Mp(this.name));o.setComp(e,this.eContainer,this.eViewport,this.eWrapper)},e.prototype.preDestroy=function(){this.setRowCtrls([])},e.prototype.setRowCtrls=function(t){var e=this,o=ic({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;var r=function(t){var r=t.getInstanceId(),n=o[r];if(n)e.rowComps[r]=n,delete o[r],e.ensureDomOrder(n.getGui());else{var i=e.newRowComp(t);e.rowComps[r]=i,e.appendRow(i.getGui())}};t.forEach(r),b(o).forEach((function(t){e.eContainer.removeChild(t.getGui()),t.destroy()})),ln(this.eContainer,t.length?"rowgroup":"presentation")},e.prototype.appendRow=function(t){this.domOrder?Gr(this.eContainer,t,this.lastPlacedElement):this.eContainer.appendChild(t),this.lastPlacedElement=t},e.prototype.ensureDomOrder=function(t){this.domOrder&&(Nr(this.eContainer,t,this.lastPlacedElement),this.lastPlacedElement=t)},e.prototype.newRowComp=function(t){Mp.getPinned(this.name);var e=new rc(t,this.beans,this.type);return e},sc([nt("beans")],e.prototype,"beans",void 0),sc([Ai("eViewport")],e.prototype,"eViewport",void 0),sc([Ai("eContainer")],e.prototype,"eContainer",void 0),sc([Ai("eWrapper")],e.prototype,"eWrapper",void 0),sc([et],e.prototype,"postConstruct",null),sc([ot],e.prototype,"preDestroy",null),e}(Di),pc=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},cc=function(){function t(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return t.prototype.onDragEnter=function(t){var e=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var o=t.dragItem.columns;o&&o.forEach((function(t){t.isPrimary()&&(t.isAnyFunctionActive()||(t.isAllowValue()?e.columnsToAggregate.push(t):t.isAllowRowGroup()?e.columnsToGroup.push(t):t.isAllowPivot()&&e.columnsToPivot.push(t)))}))}},t.prototype.getIconName=function(){var t=this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length;return t>0?this.pinned?xa.ICON_PINNED:xa.ICON_MOVE:null},t.prototype.onDragLeave=function(t){this.clearColumnsList()},t.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},t.prototype.onDragging=function(t){},t.prototype.onDragStop=function(t){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([nt("columnModel")],t.prototype,"columnModel",void 0),pc([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(),dc=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},hc=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t(t,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=t,this.eContainer=e,this.centerContainer=!n(t)}return t.prototype.init=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()}))},t.prototype.getIconName=function(){return this.pinned?xa.ICON_PINNED:xa.ICON_MOVE},t.prototype.onDragEnter=function(t){var e=t.dragItem.columns,o=t.dragSource.type===_a.ToolPanel;if(o)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var r=t.dragItem.visibleState,n=(e||[]).filter((function(t){return r[t.getId()]}));this.setColumnsVisible(n,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(t,!0,!0)},t.prototype.onDragLeave=function(t){this.ensureIntervalCleared()},t.prototype.setColumnsVisible=function(t,e,o){if(void 0===o&&(o="api"),t){var r=t.filter((function(t){return!t.getColDef().lockVisible}));this.columnModel.setColumnsVisible(r,e,o)}},t.prototype.setColumnsPinned=function(t,e,o){if(void 0===o&&(o="api"),t){var r=t.filter((function(t){return!t.getColDef().lockPinned}));this.columnModel.setColumnsPinned(r,e,o)}},t.prototype.onDragStop=function(){this.ensureIntervalCleared()},t.prototype.normaliseX=function(t){if(this.gridOptionsWrapper.isEnableRtl()){var e=this.eContainer.clientWidth;t=e-t}return this.centerContainer&&(t+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},t.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var e=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),o=e+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=t<e+50,this.needToMoveLeft=t>o-50):(this.needToMoveLeft=t<e+50,this.needToMoveRight=t>o-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},t.prototype.onDragging=function(t,e,o){var r=this;if(void 0===e&&(e=!1),void 0===o&&(o=!1),this.lastDraggingEvent=t,!i(t.hDirection)){var n=this.normaliseX(t.x);e||this.checkCenterForScrolling(n);var s=this.normaliseDirection(t.hDirection),a=t.dragSource.type,l=t.dragSource.getDragItem().columns;l=l.filter((function(t){return!t.getColDef().lockPinned||t.getPinned()==r.pinned})),this.attemptMoveColumns(a,l,s,n,e,o)}},t.prototype.normaliseDirection=function(t){if(!this.gridOptionsWrapper.isEnableRtl())return t;switch(t){case Pa.Left:return Pa.Right;case Pa.Right:return Pa.Left;default:console.error("AG Grid: Unknown direction "+t)}},t.prototype.calculateOldIndex=function(t){var e=this.columnModel.getAllGridColumns(),o=_t(t.map((function(t){return e.indexOf(t)}))),r=o[0],n=Et(o),i=n-r,s=i!==o.length-1;return s?null:r},t.prototype.attemptMoveColumns=function(t,e,o,r,n,i){var s=o===Pa.Left,a=o===Pa.Right;if(t===_a.HeaderCell){var l=[];e.forEach((function(t){var e=null,o=t.getParent();while(null!=o&&1===o.getDisplayedLeafColumns().length)e=o,o=o.getParent();null!=e?e.getLeafColumns().forEach((function(t){l.includes(t)||l.push(t)})):l.includes(t)||l.push(t)})),e=l}var u=e.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(t==_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(t){return f.includes(t)}));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(t,e){return t.fragCount-e.fragCount}));var R=g[0].move;this.columnModel.moveColumns(u,R,"uiColumnDragged")}}},t.prototype.groupFragCount=function(t){function e(t){var e=[],o=t.getOriginalParent();while(null!=o)e.push(o),o=o.getOriginalParent();return e}for(var o=0,r=function(r){var n,i=e(t[r]),s=e(t[r+1]);n=hc(i.length>s.length?[i,s]:[s,i],2),i=n[0],s=n[1],i.forEach((function(t){-1===s.indexOf(t)&&o++}))},n=0;n<t.length-1;n++)r(n);return o},t.prototype.calculateValidMoves=function(t,e,o){var r=this.gridOptionsWrapper.isSuppressMovableColumns()||t.some((function(t){return t.getColDef().suppressMovable}));if(r)return[];var n,i=this.columnModel.getDisplayedColumns(this.pinned),s=this.columnModel.getAllGridColumns(),a=i.filter((function(e){return It(t,e)})),l=i.filter((function(e){return!It(t,e)})),u=s.filter((function(e){return!It(t,e)})),p=0,c=o;if(e){var d=0;a.forEach((function(t){return d+=t.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++}e&&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(t,e){return t-e};if(e){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},t.prototype.isColumnHidden=function(t,e){return t.indexOf(e)<0},t.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))},t.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(xa.ICON_MOVE))},t.prototype.moveInterval=function(){var t;this.intervalCount++,t=10+5*this.intervalCount,t>100&&(t=100);var e=null,o=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=o.scrollHorizontally(-t):this.needToMoveRight&&(e=o.scrollHorizontally(t)),0!==e)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var r=this.lastDraggingEvent.dragItem.columns,n=r.filter((function(t){return!t.getColDef().lockPinned}));if(n.length>0&&(this.dragAndDropService.setGhostIcon(xa.ICON_PINNED),this.failedMoveAttempts>7)){var i=this.needToMoveLeft?ft.PINNED_LEFT:ft.PINNED_RIGHT;this.setColumnsPinned(n,i,"uiColumnDragged"),this.dragAndDropService.nudge()}}},dc([nt("columnModel")],t.prototype,"columnModel",void 0),dc([nt("dragAndDropService")],t.prototype,"dragAndDropService",void 0),dc([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),dc([nt("ctrlsService")],t.prototype,"ctrlsService",void 0),dc([et],t.prototype,"init",null),t}(),gc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),vc=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},yc=function(t){function e(e,o){var r=t.call(this)||this;return r.pinned=e,r.eContainer=o,r}return gc(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){switch(t.pinned){case ft.PINNED_LEFT:t.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.leftRowContainerCtrl.getContainerElement()],[e.bottomLeftRowContainerCtrl.getContainerElement()],[e.topLeftRowContainerCtrl.getContainerElement()]];break;case ft.PINNED_RIGHT:t.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.rightRowContainerCtrl.getContainerElement()],[e.bottomRightRowContainerCtrl.getContainerElement()],[e.topRightRowContainerCtrl.getContainerElement()]];break;default:t.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.centerRowContainerCtrl.getViewportElement()],[e.bottomCenterRowContainerCtrl.getViewportElement()],[e.topCenterRowContainerCtrl.getViewportElement()]];break}}))},e.prototype.isInterestedIn=function(t){return t===_a.HeaderCell||t===_a.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.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)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.isDropColumnInPivotMode=function(t){return this.columnModel.isPivotMode()&&t.dragSource.type===_a.ToolPanel},e.prototype.onDragEnter=function(t){this.currentDropListener=this.isDropColumnInPivotMode(t)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(t)},e.prototype.onDragLeave=function(t){this.currentDropListener.onDragLeave(t)},e.prototype.onDragging=function(t){this.currentDropListener.onDragging(t)},e.prototype.onDragStop=function(t){this.currentDropListener.onDragStop(t)},vc([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),vc([nt("columnModel")],e.prototype,"columnModel",void 0),vc([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),vc([et],e.prototype,"postConstruct",null),vc([et],e.prototype,"init",null),e}(re),mc=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t=[],e=0;e<arguments.length;e++)t=t.concat(mc(arguments[e]));return t},wc=function(){function t(){}return t.getHeaderClassesFromColDef=function(t,e,o,r){return i(t)?[]:this.getColumnClassesFromCollDef(t.headerClass,t,e,o,r)},t.getToolPanelClassesFromColDef=function(t,e,o,r){return i(t)?[]:this.getColumnClassesFromCollDef(t.toolPanelClass,t,e,o,r)},t.getClassParams=function(t,e,o,r){return{colDef:t,column:o,columnGroup:r,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()}},t.getColumnClassesFromCollDef=function(t,e,o,r,n){if(i(t))return[];var s;if("function"===typeof t){var a=this.getClassParams(e,o,r,n);s=t(a)}else s=t;return"string"===typeof s?[s]:Array.isArray(s)?Cc(s):[]},t}(),Ec=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Rc=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Oc=function(t){function e(o){var r=t.call(this,e.TEMPLATE,o)||this;return r.headerCompVersion=0,r.column=o.getColumnGroupChild(),r.pinned=o.getPinned(),r}return Ec(e,t),e.prototype.postConstruct=function(){var t=this,e=this.getGui(),o=function(t,o,r){var n=r||e;null!=o&&""!=o?n.setAttribute(t,o):n.removeAttribute(t)},r={setWidth:function(t){return e.style.width=t},addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},setColId:function(t){return o("col-id",t)},setTitle:function(t){return o("title",t)},setAriaDescription:function(t){return gn(e,t)},setAriaSort:function(t){return t?An(e,t):Nn(e)},setUserCompDetails:function(e){return t.setUserCompDetails(e)},getUserCompInstance:function(){return t.headerComp}};this.ctrl.setComp(r,this.getGui(),this.eResize,this.eHeaderCompWrapper);var n=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",n)},e.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},e.prototype.setUserCompDetails=function(t){var e=this;this.headerCompVersion++;var o=this.headerCompVersion;t.newAgStackInstance().then((function(t){return e.afterCompCreated(o,t)}))},e.prototype.afterCompCreated=function(t,e){t==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=e,this.headerCompGui=e.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(e)},e.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")],e.prototype,"eResize",void 0),Rc([Ai("eHeaderCompWrapper")],e.prototype,"eHeaderCompWrapper",void 0),Rc([et],e.prototype,"postConstruct",null),Rc([ot],e.prototype,"destroyHeaderComp",null),e}(Vl),Sc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),_c=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},bc=function(t){function e(o){return t.call(this,e.TEMPLATE,o)||this}return Sc(e,t),e.prototype.postConstruct=function(){var t=this,e=this.getGui(),o=function(t,o){return void 0!=o?e.setAttribute(t,o):e.removeAttribute(t)},r={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},addOrRemoveResizableCssClass:function(e,o){return t.eResize.classList.toggle(e,o)},setWidth:function(t){return e.style.width=t},setColId:function(t){return e.setAttribute("col-id",t)},setAriaExpanded:function(t){return o("aria-expanded",t)},setTitle:function(t){return o("title",t)},setUserCompDetails:function(e){return t.setUserCompDetails(e)}};this.ctrl.setComp(r,e,this.eResize)},e.prototype.setUserCompDetails=function(t){var e=this;t.newAgStackInstance().then((function(t){return e.afterHeaderCompCreated(t)}))},e.prototype.afterHeaderCompCreated=function(t){var e=this,o=function(){return e.destroyBean(t)};this.isAlive()?(this.getGui().appendChild(t.getGui()),this.addDestroyFunc(o),this.ctrl.setDragSource(t.getGui())):o()},e.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([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),_c([Ai("eResize")],e.prototype,"eResize",void 0),_c([et],e.prototype,"postConstruct",null),e}(Vl),Pc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Tc=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,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(t){t["COLUMN_GROUP"]="group",t["COLUMN"]="column",t["FLOATING_FILTER"]="filter"})(lc||(lc={}));var Dc,Ac=function(t){function e(e){var o=t.call(this)||this;o.headerComps={};var r=e.getType()==lc.COLUMN_GROUP?"ag-header-row-column-group":e.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=e,o}return Pc(e,t),e.prototype.init=function(){var t=this,e={setTransform:function(e){return t.getGui().style.transform=e},setHeight:function(e){return t.getGui().style.height=e},setTop:function(e){return t.getGui().style.top=e},setHeaderCtrls:function(e){return t.setHeaderCtrls(e)},setWidth:function(e){return t.getGui().style.width=e},setAriaRowIndex:function(e){return bn(t.getGui(),e)}};this.ctrl.setComp(e)},e.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},e.prototype.setHeaderCtrls=function(t){var e=this;if(this.isAlive()){var o=this.headerComps;this.headerComps={},t.forEach((function(t){var r=t.getInstanceId(),n=o[r];delete o[r],null==n&&(n=e.createHeaderComp(t),e.getGui().appendChild(n.getGui())),e.headerComps[r]=n})),y(o,(function(t,o){e.getGui().removeChild(o.getGui()),e.destroyBean(o)}));var r=this.gridOptionsWrapper.isEnsureDomOrder();if(r){var n=b(this.headerComps);n.sort((function(t,e){var o=t.getCtrl().getColumnGroupChild().getLeft(),r=e.getCtrl().getColumnGroupChild().getLeft();return o-r}));var i=n.map((function(t){return t.getGui()}));Ir(this.getGui(),i)}}},e.prototype.createHeaderComp=function(t){var e;switch(this.ctrl.getType()){case lc.COLUMN_GROUP:e=new bc(t);break;case lc.FLOATING_FILTER:e=new Bl(t);break;default:e=new Oc(t);break}return this.createBean(e),e.setParentComponent(this),e},Tc([et],e.prototype,"init",null),Tc([ot],e.prototype,"destroyHeaderCtrls",null),e}(Di),Nc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ic=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Gc=0,Fc=function(t){function e(e,o){var r=t.call(this)||this;return r.lastFocusEvent=null,r.columnGroupChild=e,r.parentRowCtrl=o,r.instanceId=e.getUniqueId()+"-"+Gc++,r}return Nc(e,t),e.prototype.shouldStopEventPropagation=function(t){var e=this.focusService.getFocusedHeader(),o=e.headerRowIndex,r=e.column;return oi(this.gridOptionsWrapper,t,o,r)},e.prototype.getWrapperHasFocus=function(){var t=this.gridOptionsWrapper.getDocument(),e=t.activeElement;return e===this.eGui},e.prototype.setGui=function(t){this.eGui=t,this.addDomData()},e.prototype.handleKeyDown=function(t){var e=this.getWrapperHasFocus();switch(t.key){case zn.PAGE_DOWN:case zn.PAGE_UP:case zn.PAGE_HOME:case zn.PAGE_END:e&&t.preventDefault()}},e.prototype.addDomData=function(){var t=this,o=e.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,o,this),this.addDestroyFunc((function(){return t.gridOptionsWrapper.setDomData(t.eGui,o,null)}))},e.prototype.getGui=function(){return this.eGui},e.prototype.focus=function(t){return!!this.eGui&&(this.lastFocusEvent=t||null,this.eGui.focus(),!0)},e.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},e.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},e.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.getColumnGroupChild=function(){return this.columnGroupChild},e.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",Ic([nt("focusService")],e.prototype,"focusService",void 0),Ic([nt("beans")],e.prototype,"beans",void 0),Ic([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),e}(re); /** * @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(t){t["EVERYTHING"]="group",t["FILTER"]="filter",t["SORT"]="sort",t["MAP"]="map",t["AGGREGATE"]="aggregate",t["FILTER_AGGREGATES"]="filter_aggregates",t["PIVOT"]="pivot",t["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(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s};function Mc(t){var e=t,o=null!=e&&null!=e.getFrameworkComponentInstance;return o?e.getFrameworkComponentInstance():t}var xc,Hc=function(){function t(){this.detailGridInfoMap={},this.destroyCalled=!1}return t.prototype.registerOverlayWrapperComp=function(t){this.overlayWrapperComp=t},t.prototype.registerSideBarComp=function(t){this.sideBarComp=t},t.prototype.init=function(){var t=this;switch(this.rowModel.getType()){case ft.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case ft.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case ft.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel;break}this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()}))},t.prototype.__getAlignedGridService=function(){return this.alignedGridsService},t.prototype.__getContext=function(){return this.context},t.prototype.addDetailGridInfo=function(t,e){this.detailGridInfoMap[t]=e},t.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},t.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},t.prototype.forEachDetailGridInfo=function(t){var e=0;y(this.detailGridInfoMap,(function(o,r){n(r)&&(t(r,e),e++)}))},t.prototype.getDataAsCsv=function(t){if(gt.assertRegistered(ut.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(t)},t.prototype.exportDataAsCsv=function(t){gt.assertRegistered(ut.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(t)},t.prototype.getExcelExportMode=function(t){var e=this.gridOptionsWrapper.getDefaultExportParams("excel"),o=Object.assign({exportMode:"xlsx"},e,t);return o.exportMode},t.prototype.getDataAsExcel=function(t){if(gt.assertRegistered(ut.ExcelExportModule,"api.getDataAsExcel")){var e=this.getExcelExportMode(t);if(this.excelCreator.getFactoryMode(e)!==Ma.MULTI_SHEET)return this.excelCreator.getDataAsExcel(t);console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},t.prototype.exportDataAsExcel=function(t){if(gt.assertRegistered(ut.ExcelExportModule,"api.exportDataAsExcel")){var e=this.getExcelExportMode(t);this.excelCreator.getFactoryMode(e)!==Ma.MULTI_SHEET?this.excelCreator.exportDataAsExcel(t):console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},t.prototype.getSheetDataForExcel=function(t){if(gt.assertRegistered(ut.ExcelExportModule,"api.getSheetDataForExcel")){var e=this.getExcelExportMode(t);return this.excelCreator.setFactoryMode(Ma.MULTI_SHEET,e),this.excelCreator.getSheetDataForExcel(t)}},t.prototype.getMultipleSheetsAsExcel=function(t){if(gt.assertRegistered(ut.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(t)},t.prototype.exportMultipleSheetsAsExcel=function(t){if(gt.assertRegistered(ut.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(t)},t.prototype.setEnterpriseDatasource=function(t){console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(t)},t.prototype.setGridAriaProperty=function(t,e){if(t){var o=this.ctrlsService.getGridBodyCtrl().getGui(),r="aria-"+t;null===e?o.removeAttribute(r):o.setAttribute(r,e)}},t.prototype.setServerSideDatasource=function(t){this.serverSideRowModel?this.serverSideRowModel.setDatasource(t):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+ft.ROW_MODEL_TYPE_SERVER_SIDE+"'")},t.prototype.setCacheBlockSize=function(t){this.serverSideRowModel?(this.gridOptionsWrapper.setProperty("cacheBlockSize",t),this.serverSideRowModel.resetRootStore()):console.warn("AG Grid: you can only set cacheBlockSize with gridOptions.rowModelType '"+ft.ROW_MODEL_TYPE_SERVER_SIDE+"'")},t.prototype.setDatasource=function(t){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(t):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+ft.ROW_MODEL_TYPE_INFINITE+"'")},t.prototype.setViewportDatasource=function(t){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(t):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+ft.ROW_MODEL_TYPE_VIEWPORT+"'")},t.prototype.setRowData=function(t){var e=null==this.immutableService;e?console.warn("AG Grid: you can only set rowData when using the Client Side Row Model"):this.immutableService.isActive()?this.immutableService.setRowData(t):(this.selectionService.reset(),this.clientSideRowModel.setRowData(t))},t.prototype.setFloatingTopRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(t)},t.prototype.setFloatingBottomRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(t)},t.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},t.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},t.prototype.getFloatingTopRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(t)},t.prototype.getFloatingBottomRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(t)},t.prototype.setPinnedTopRowData=function(t){this.pinnedRowModel.setPinnedTopRowData(t)},t.prototype.setPinnedBottomRowData=function(t){this.pinnedRowModel.setPinnedBottomRowData(t)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},t.prototype.getPinnedTopRow=function(t){return this.pinnedRowModel.getPinnedTopRow(t)},t.prototype.getPinnedBottomRow=function(t){return this.pinnedRowModel.getPinnedBottomRow(t)},t.prototype.setColumnDefs=function(t,e){void 0===e&&(e="api"),this.columnModel.setColumnDefs(t,e)},t.prototype.setAutoGroupColumnDef=function(t,e){this.gridOptionsWrapper.setProperty(Vo.PROP_AUTO_GROUP_COLUMN_DEF,t,!0)},t.prototype.setDefaultColDef=function(t,e){this.gridOptionsWrapper.setProperty(Vo.PROP_DEFAULT_COL_DEF,t,!0)},t.prototype.expireValueCache=function(){this.valueCache.expire()},t.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},t.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},t.prototype.setAlwaysShowHorizontalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",t)},t.prototype.setAlwaysShowVerticalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",t)},t.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},t.prototype.refreshCells=function(t){void 0===t&&(t={}),Array.isArray(t)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(t)},t.prototype.flashCells=function(t){void 0===t&&(t={}),this.rowRenderer.flashCells(t)},t.prototype.redrawRows=function(t){void 0===t&&(t={});var e=t?t.rowNodes:void 0;this.rowRenderer.redrawRows(e)},t.prototype.setFunctionsReadOnly=function(t){this.gridOptionsWrapper.setProperty("functionsReadOnly",t)},t.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(t){return t.refresh()}))},t.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},t.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},t.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},t.prototype.getModel=function(){return this.rowModel},t.prototype.setRowNodeExpanded=function(t,e){t&&t.setExpanded(e)},t.prototype.onGroupExpandedOrCollapsed=function(t){i(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),n(t)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:Dc.MAP})},t.prototype.refreshInMemoryRowModel=function(t){console.warn("AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(t)},t.prototype.refreshClientSideRowModel=function(t){i(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var e=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(t)&&(e=o[t]),i(e))console.error("AG Grid: invalid step "+t+", available steps are "+Object.keys(o).join(", "));else{var r=!this.gridOptionsWrapper.isSuppressAnimationFrame(),s={step:e,keepRenderedRows:!0,keepEditingRows:!0,animate:r};this.clientSideRowModel.refreshModel(s)}},t.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},t.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},t.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},t.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},t.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")},t.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")},t.prototype.getToolPanelInstance=function(t){if(this.sideBarComp){var e=this.sideBarComp.getToolPanelInstance(t);return Mc(e)}console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.addVirtualRowListener=function(t,e,o){"string"!==typeof t&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(t,e,o)},t.prototype.addRenderedRowListener=function(t,e,o){"virtualRowSelected"===t&&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(t,e,o)},t.prototype.setQuickFilter=function(t){this.filterManager.setQuickFilter(t)},t.prototype.selectIndex=function(t,e,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(t,e)},t.prototype.deselectIndex=function(t,e){void 0===e&&(e=!1),console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(t)},t.prototype.selectNode=function(t,e,o){void 0===e&&(e=!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"),t.setSelectedParams({newValue:!0,clearSelection:!e})},t.prototype.deselectNode=function(t,e){void 0===e&&(e=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!1})},t.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},t.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},t.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},t.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},t.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})},t.prototype.sizeColumnsToFit=function(t){this.gridBodyCtrl.sizeColumnsToFit(t)},t.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},t.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},t.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},t.prototype.isNodeSelected=function(t){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),t.isSelected()},t.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},t.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},t.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},t.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},t.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},t.prototype.ensureColIndexVisible=function(t){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},t.prototype.ensureColumnVisible=function(t,e){void 0===e&&(e="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(t,e)},t.prototype.ensureIndexVisible=function(t,e){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t,e)},t.prototype.ensureNodeVisible=function(t,e){void 0===e&&(e=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(t,e)},t.prototype.forEachLeafNode=function(t){i(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(t)},t.prototype.forEachNode=function(t){this.rowModel.forEachNode(t)},t.prototype.forEachNodeAfterFilter=function(t){i(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(t)},t.prototype.forEachNodeAfterFilterAndSort=function(t){i(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(t)},t.prototype.getFilterInstance=function(t,e){var o=this.getFilterInstanceImpl(t,(function(t){if(e){var o=Mc(t);e(o)}})),r=Mc(o);return r},t.prototype.getFilterInstanceImpl=function(t,e){var o=this.columnModel.getPrimaryColumn(t);if(o){var r=this.filterManager.getFilterComponent(o,"NO_UI"),n=r&&r.resolveNow(null,(function(t){return t}));return n?setTimeout(e,0,n):r&&r.then((function(t){e(t)})),n}},t.prototype.destroyFilter=function(t){var e=this.columnModel.getPrimaryColumn(t);if(e)return this.filterManager.destroyFilter(e,"filterDestroyed")},t.prototype.getStatusPanel=function(t){if(this.statusBarService){var e=this.statusBarService.getStatusPanel(t);return Mc(e)}},t.prototype.getColumnDef=function(t){var e=this.columnModel.getPrimaryColumn(t);return e?e.getColDef():null},t.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},t.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},t.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},t.prototype.setFilterModel=function(t){this.filterManager.setFilterModel(t)},t.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},t.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},t.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},t.prototype.setFocusedCell=function(t,e,o){this.focusService.setFocusedCell({rowIndex:t,column:e,rowPinned:o,forceBrowserFocus:!0})},t.prototype.setSuppressRowDrag=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_SUPPRESS_ROW_DRAG,t)},t.prototype.setSuppressMoveWhenRowDragging=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,t)},t.prototype.setSuppressRowClickSelection=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_SUPPRESS_ROW_CLICK_SELECTION,t)},t.prototype.addRowDropZone=function(t){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(t)},t.prototype.removeRowDropZone=function(t){var e=this.dragAndDropService.findExternalZone(t);e&&this.dragAndDropService.removeDropTarget(e)},t.prototype.getRowDropZoneParams=function(t){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(t)},t.prototype.setHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_HEADER_HEIGHT,t)},t.prototype.setDomLayout=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_DOM_LAYOUT,t)},t.prototype.setEnableCellTextSelection=function(t){this.gridBodyCtrl.setCellTextSelection(t)},t.prototype.setFillHandleDirection=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_FILL_HANDLE_DIRECTION,t)},t.prototype.setGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GROUP_HEADER_HEIGHT,t)},t.prototype.setFloatingFiltersHeight=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_FLOATING_FILTERS_HEIGHT,t)},t.prototype.setPivotHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_PIVOT_HEADER_HEIGHT,t)},t.prototype.setPivotGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_PIVOT_GROUP_HEADER_HEIGHT,t)},t.prototype.setIsExternalFilterPresent=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_EXTERNAL_FILTER_PRESENT,t)},t.prototype.setDoesExternalFilterPass=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_DOES_EXTERNAL_FILTER_PASS,t)},t.prototype.setNavigateToNextCell=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_NAVIGATE_TO_NEXT_CELL,t)},t.prototype.setTabToNextCell=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_TAB_TO_NEXT_CELL,t)},t.prototype.setTabToNextHeader=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_TAB_TO_NEXT_HEADER,t)},t.prototype.setNavigateToNextHeader=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_NAVIGATE_TO_NEXT_HEADER,t)},t.prototype.setRowGroupPanelShow=function(t){this.gridOptionsWrapper.setProperty("rowGroupPanelShow",t)},t.prototype.setGroupRowAggNodes=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GROUP_ROW_AGG_NODES,t)},t.prototype.setGetGroupRowAgg=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_GROUP_ROW_AGG,t)},t.prototype.setGetBusinessKeyForNode=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_BUSINESS_KEY_FOR_NODE,t)},t.prototype.setGetChildCount=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_CHILD_COUNT,t)},t.prototype.setProcessRowPostCreate=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_PROCESS_ROW_POST_CREATE,t)},t.prototype.setGetRowNodeId=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_ROW_NODE_ID,t)},t.prototype.setGetRowId=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_ROW_ID,t)},t.prototype.setGetRowClass=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_ROW_CLASS,t)},t.prototype.setIsFullWidthCell=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_FULL_WIDTH_CELL,t)},t.prototype.setIsFullWidthRow=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_FULL_WIDTH_ROW,t)},t.prototype.setIsRowSelectable=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_ROW_SELECTABLE,t)},t.prototype.setIsRowMaster=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_ROW_MASTER,t)},t.prototype.setPostSort=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_POST_SORT,t)},t.prototype.setPostSortRows=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_POST_SORT_ROWS,t)},t.prototype.setGetDocument=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_DOCUMENT,t)},t.prototype.setGetContextMenuItems=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_CONTEXT_MENU_ITEMS,t)},t.prototype.setGetMainMenuItems=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_MAIN_MENU_ITEMS,t)},t.prototype.setProcessCellForClipboard=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_PROCESS_CELL_FOR_CLIPBOARD,t)},t.prototype.setSendToClipboard=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_SEND_TO_CLIPBOARD,t)},t.prototype.setProcessCellFromClipboard=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_PROCESS_CELL_FROM_CLIPBOARD,t)},t.prototype.setProcessSecondaryColDef=function(t){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColDef has been renamed, please use setProcessPivotResultColDef instead"),this.setProcessPivotResultColDef(t)},t.prototype.setProcessSecondaryColGroupDef=function(t){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColGroupDef has been renamed, please use setProcessPivotResultColGroupDef instead"),this.setProcessPivotResultColGroupDef(t)},t.prototype.setProcessPivotResultColDef=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_PROCESS_PIVOT_RESULT_COL_DEF,t)},t.prototype.setProcessPivotResultColGroupDef=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF,t)},t.prototype.setPostProcessPopup=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_POST_PROCESS_POPUP,t)},t.prototype.setDefaultGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,t)},t.prototype.setInitialGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_INITIAL_GROUP_ORDER_COMPARATOR,t)},t.prototype.setGetChartToolbarItems=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_CHART_TOOLBAR_ITEMS,t)},t.prototype.setPaginationNumberFormatter=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_PAGINATION_NUMBER_FORMATTER,t)},t.prototype.setGetServerSideStoreParams=function(t){this.setGetServerSideGroupLevelParams(t)},t.prototype.setGetServerSideGroupLevelParams=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_SERVER_SIDE_GROUP_PARAMS,t)},t.prototype.setIsServerSideGroupOpenByDefault=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,t)},t.prototype.setIsApplyServerSideTransaction=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,t)},t.prototype.setIsServerSideGroup=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_SERVER_SIDE_GROUP,t)},t.prototype.setGetServerSideGroupKey=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_SERVER_SIDE_GROUP_KEY,t)},t.prototype.setGetRowStyle=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_ROW_STYLE,t)},t.prototype.setGetRowHeight=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_ROW_HEIGHT,t)},t.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},t.prototype.setSideBarVisible=function(t){this.sideBarComp?this.sideBarComp.setDisplayed(t):t&&console.warn("AG Grid: sideBar is not loaded")},t.prototype.setSideBarPosition=function(t){this.sideBarComp?this.sideBarComp.setSideBarPosition(t):console.warn("AG Grid: sideBar is not loaded")},t.prototype.openToolPanel=function(t){this.sideBarComp?this.sideBarComp.openToolPanel(t):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},t.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},t.prototype.setSideBar=function(t){this.gridOptionsWrapper.setProperty("sideBar",je.parse(t))},t.prototype.setSuppressClipboardPaste=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_SUPPRESS_CLIPBOARD_PASTE,t)},t.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},t.prototype.doLayout=function(){var t="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(t)}),"doLayoutDeprecated")},t.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()}},t.prototype.setGroupRemoveSingleChildren=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GROUP_REMOVE_SINGLE_CHILDREN,t)},t.prototype.setGroupRemoveLowestSingleChildren=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,t)},t.prototype.setGroupDisplayType=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_GROUP_DISPLAY_TYPE,t)},t.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},t.prototype.getValue=function(t,e){var o=this.columnModel.getPrimaryColumn(t);return i(o)&&(o=this.columnModel.getGridColumn(t)),i(o)?null:this.valueService.getValue(o,e)},t.prototype.addEventListener=function(t,e){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(t,e,o)},t.prototype.addGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(t,e)},t.prototype.removeEventListener=function(t,e){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(t,e,o)},t.prototype.removeGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(t,e)},t.prototype.dispatchEvent=function(t){this.eventService.dispatchEvent(t)},t.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var t=this.ctrlsService.getGridCtrl();t&&t.destroyGridUi(),this.context.destroy()}},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(G.bind(window,this,"Grid API"),100)},t.prototype.warnIfDestroyed=function(t){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+t+" was called on a grid that was destroyed."),this.destroyCalled},t.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode((function(t){return t.quickFilterAggregateText=null}))},t.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},t.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},t.prototype.camelCaseToHumanReadable=function(t){return ye(t)},t.prototype.addRangeSelection=function(t){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()")},t.prototype.addCellRange=function(t){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(t)},t.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},t.prototype.undoCellEditing=function(){this.undoRedoService.undo()},t.prototype.redoCellEditing=function(){this.undoRedoService.redo()},t.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},t.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},t.prototype.getChartModels=function(){if(gt.assertRegistered(ut.RangeSelectionModule,"api.getChartModels")&>.assertRegistered(ut.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},t.prototype.getChartRef=function(t){if(gt.assertRegistered(ut.RangeSelectionModule,"api.getChartRef")&>.assertRegistered(ut.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(t)},t.prototype.getChartImageDataURL=function(t){if(gt.assertRegistered(ut.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(t)},t.prototype.downloadChart=function(t){if(gt.assertRegistered(ut.GridChartsModule,"api.downloadChart"))return this.chartService.downloadChart(t)},t.prototype.openChartToolPanel=function(t){if(gt.assertRegistered(ut.GridChartsModule,"api.openChartToolPanel"))return this.chartService.openChartToolPanel(t)},t.prototype.closeChartToolPanel=function(t){if(gt.assertRegistered(ut.GridChartsModule,"api.closeChartToolPanel"))return this.chartService.closeChartToolPanel(t.chartId)},t.prototype.createRangeChart=function(t){if(gt.assertRegistered(ut.RangeSelectionModule,"api.createRangeChart")&>.assertRegistered(ut.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(t)},t.prototype.createCrossFilterChart=function(t){if(gt.assertRegistered(ut.RangeSelectionModule,"api.createCrossFilterChart")&>.assertRegistered(ut.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(t)},t.prototype.restoreChart=function(t,e){if(gt.assertRegistered(ut.RangeSelectionModule,"api.restoreChart")&>.assertRegistered(ut.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(t,e)},t.prototype.createPivotChart=function(t){if(gt.assertRegistered(ut.RangeSelectionModule,"api.createPivotChart")&>.assertRegistered(ut.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(t)},t.prototype.copyToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyToClipboard(t)},t.prototype.copySelectedRowsToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(t)},t.prototype.copySelectedRangeToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(t)},t.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},t.prototype.showColumnMenuAfterButtonClick=function(t,e){var o=this.columnModel.getGridColumn(t);this.menuFactory.showMenuAfterButtonClick(o,e,"columnMenu")},t.prototype.showColumnMenuAfterMouseClick=function(t,e){var o=this.columnModel.getGridColumn(t);o||(o=this.columnModel.getPrimaryColumn(t)),o?this.menuFactory.showMenuAfterMouseEvent(o,e):console.error("AG Grid: column '"+t+"' not found")},t.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},t.prototype.setPopupParent=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_POPUP_PARENT,t)},t.prototype.tabToNextCell=function(t){return this.navigationService.tabToNextCell(!1,t)},t.prototype.tabToPreviousCell=function(t){return this.navigationService.tabToNextCell(!0,t)},t.prototype.getCellRendererInstances=function(t){void 0===t&&(t={});var e=this.rowRenderer.getCellRendererInstances(t),o=e.map(Mc);return o},t.prototype.getCellEditorInstances=function(t){void 0===t&&(t={});var e=this.rowRenderer.getCellEditorInstances(t),o=e.map(Mc);return o},t.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},t.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.rowRenderer.stopEditing(t)},t.prototype.startEditingCell=function(t){var e=this.columnModel.getGridColumn(t.colKey);if(e){var o={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:e},r=null==t.rowPinned;r&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t.rowIndex);var n=this.navigationService.getCellByPosition(o);n&&n.startRowOrCellEdit(t.key,t.charPress)}else console.warn("AG Grid: no column found for "+t.colKey)},t.prototype.addAggFunc=function(t,e){this.aggFuncService&&this.aggFuncService.addAggFunc(t,e)},t.prototype.addAggFuncs=function(t){this.aggFuncService&&this.aggFuncService.addAggFuncs(t)},t.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},t.prototype.applyServerSideTransaction=function(t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(t);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},t.prototype.applyServerSideTransactionAsync=function(t,e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(t,e);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},t.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},t.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.")},t.prototype.applyTransaction=function(t){if(this.clientSideRowModel){var e=this.clientSideRowModel.updateRowData(t);return this.rowRenderer.refreshFullWidthRows(e.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),e}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},t.prototype.setDeltaSort=function(t){this.gridOptionsWrapper.setProperty("deltaSort",t)},t.prototype.updateRowData=function(t){var e="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(e)}),"updateRowData deprecated"),this.applyTransaction(t)},t.prototype.applyTransactionAsync=function(t,e){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(t,e):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},t.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},t.prototype.batchUpdateRowData=function(t,e){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(t,e)},t.prototype.insertItemsAtIndex=function(t,e,o){console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:t,update:null,remove:null})},t.prototype.removeItems=function(t,e){console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var o=t.map((function(t){return t.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:o})},t.prototype.addItems=function(t,e){console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:null,update:null,remove:null})},t.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},t.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},t.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeEnterpriseCache=function(t){console.warn("AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true})"),this.purgeServerSideCache(t)},t.prototype.purgeServerSideCache=function(t){void 0===t&&(t=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead."),this.refreshServerSide({route:t,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},t.prototype.refreshServerSide=function(t){this.serverSideRowModel?this.serverSideRowModel.refreshStore(t):console.warn("AG Grid: api.refreshServerSide is only available when rowModelType='serverSide'.")},t.prototype.refreshServerSideStore=function(t){var e="AG Grid: Grid API refreshServerSideStore() was renamed to refreshServerSide() in v28.0";return x((function(){return console.warn(e)}),"refreshServerSideStore-renamed"),this.refreshServerSide(t)},t.prototype.getServerSideStoreState=function(){var t="AG Grid: Grid API getServerSideStoreState() was renamed to getServerSideGroupLevelState() in v28.0";return x((function(){return console.warn(t)}),"getServerSideStoreState-renamed"),this.getServerSideGroupLevelState()},t.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideGroupLevelState is only available when rowModelType='serverSide'."),[])},t.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},t.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},t.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},t.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},t.prototype.setVirtualRowCount=function(t,e){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(t,e)},t.prototype.setInfiniteRowCount=function(t,e){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(t,e)},t.prototype.setRowCount=function(t,e){this.infiniteRowModel?this.infiniteRowModel.setRowCount(t,e):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},t.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},t.prototype.checkGridSize=function(){console.warn("In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful.")},t.prototype.getFirstRenderedRow=function(){return console.warn("In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},t.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},t.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},t.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},t.prototype.getDisplayedRowAtIndex=function(t){return this.rowModel.getRow(t)},t.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},t.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},t.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},t.prototype.paginationSetPageSize=function(t){this.gridOptionsWrapper.setProperty("paginationPageSize",t)},t.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},t.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},t.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},t.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},t.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},t.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},t.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},t.prototype.paginationGoToPage=function(t){this.paginationProxy.goToPage(t)},t.prototype.setRowClass=function(t){this.gridOptionsWrapper.setProperty(Vo.PROP_ROW_CLASS,t)},Lc([it("immutableService")],t.prototype,"immutableService",void 0),Lc([it("csvCreator")],t.prototype,"csvCreator",void 0),Lc([it("excelCreator")],t.prototype,"excelCreator",void 0),Lc([nt("rowRenderer")],t.prototype,"rowRenderer",void 0),Lc([nt("navigationService")],t.prototype,"navigationService",void 0),Lc([nt("filterManager")],t.prototype,"filterManager",void 0),Lc([nt("columnModel")],t.prototype,"columnModel",void 0),Lc([nt("selectionService")],t.prototype,"selectionService",void 0),Lc([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Lc([nt("valueService")],t.prototype,"valueService",void 0),Lc([nt("alignedGridsService")],t.prototype,"alignedGridsService",void 0),Lc([nt("eventService")],t.prototype,"eventService",void 0),Lc([nt("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Lc([nt("context")],t.prototype,"context",void 0),Lc([nt("rowModel")],t.prototype,"rowModel",void 0),Lc([nt("sortController")],t.prototype,"sortController",void 0),Lc([nt("paginationProxy")],t.prototype,"paginationProxy",void 0),Lc([nt("focusService")],t.prototype,"focusService",void 0),Lc([nt("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Lc([it("rangeService")],t.prototype,"rangeService",void 0),Lc([it("clipboardService")],t.prototype,"clipboardService",void 0),Lc([it("aggFuncService")],t.prototype,"aggFuncService",void 0),Lc([nt("menuFactory")],t.prototype,"menuFactory",void 0),Lc([it("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),Lc([nt("valueCache")],t.prototype,"valueCache",void 0),Lc([nt("animationFrameService")],t.prototype,"animationFrameService",void 0),Lc([it("statusBarService")],t.prototype,"statusBarService",void 0),Lc([it("chartService")],t.prototype,"chartService",void 0),Lc([it("undoRedoService")],t.prototype,"undoRedoService",void 0),Lc([it("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Lc([it("ssrmTransactionManager")],t.prototype,"serverSideTransactionManager",void 0),Lc([nt("ctrlsService")],t.prototype,"ctrlsService",void 0),Lc([it("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),Lc([et],t.prototype,"init",null),Lc([ot],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),t=Lc([rt("gridApi")],t),t}(),Vc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Wc=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},kc=function(t){function e(e,o,r,n){var i=t.call(this)||this;return i.columnOrGroup=e,i.eCell=o,i.ariaEl=i.eCell.querySelector("[role=columnheader]")||i.eCell,i.colsSpanning=n,i.beans=r,i}return Vc(e,t),e.prototype.setColsSpanning=function(t){this.colsSpanning=t,this.onLeftChanged()},e.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?Et(this.colsSpanning):this.columnOrGroup},e.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,mt.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,Vo.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},e.prototype.setLeftFirstTime=function(){var t=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),e=n(this.columnOrGroup.getOldLeft()),o=this.beans.columnAnimationService.isActive()&&e&&!t;o?this.animateInLeft():this.onLeftChanged()},e.prototype.animateInLeft=function(){var t=this,e=this.getColumnOrGroup(),o=e.getLeft(),r=e.getOldLeft(),n=this.modifyLeftForPrintLayout(e,r),i=this.modifyLeftForPrintLayout(e,o);this.setLeft(n),this.actualLeft=i,this.beans.columnAnimationService.executeNextVMTurn((function(){t.actualLeft===i&&t.setLeft(i)}))},e.prototype.onLeftChanged=function(){var t=this.getColumnOrGroup(),e=t.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(t,e),this.setLeft(this.actualLeft)},e.prototype.modifyLeftForPrintLayout=function(t,e){var o=this.beans.gridOptionsWrapper.getDomLayout()===ft.DOM_LAYOUT_PRINT;if(!o)return e;if(t.getPinned()===ft.PINNED_LEFT)return e;var r=this.beans.columnModel.getDisplayedColumnsLeftWidth();if(t.getPinned()===ft.PINNED_RIGHT){var n=this.beans.columnModel.getBodyContainerWidth();return r+n+e}return r+e},e.prototype.setLeft=function(t){var e;if(n(t)&&(this.eCell.style.left=t+"px"),this.columnOrGroup instanceof mt)e=this.columnOrGroup;else{var o=this.columnOrGroup,r=o.getLeafColumns();if(!r.length)return;r.length>1&&Dn(this.ariaEl,r.length),e=r[0]}var i=this.beans.columnModel.getAriaColumnIndex(e);Tn(this.ariaEl,i)},Wc([et],e.prototype,"postConstruct",null),e}(re),Bc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),jc=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Uc=function(t){function e(e,o){var r=t.call(this)||this;return r.columns=e,r.element=o,r}return Bc(e,t),e.prototype.postConstruct=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&this.addMouseHoverListeners()},e.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},e.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},e.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},jc([nt("columnHoverService")],e.prototype,"columnHoverService",void 0),jc([et],e.prototype,"postConstruct",null),e}(re),zc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Kc=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Yc=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.column=e,r}return zc(e,t),e.prototype.setComp=function(e,o,r,n){t.prototype.setGui.call(this,o),this.comp=e,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))},e.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 t=jn("filter",this.gridOptionsWrapper,this.column);t&&this.eButtonShowMainFilter.appendChild(t)}},e.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)}))},e.prototype.onTabKeyDown=function(t){var e=this.gridOptionsWrapper.getDocument(),o=e.activeElement,r=o===this.eGui;if(!r){var n=this.focusService.findNextFocusableElement(this.eGui,null,t.shiftKey);if(n)return this.beans.headerNavigationService.scrollToColumn(this.column),t.preventDefault(),void n.focus();var i=this.findNextColumnWithFloatingFilter(t.shiftKey);i&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:i},event:t})&&t.preventDefault()}},e.prototype.findNextColumnWithFloatingFilter=function(t){var e=this.beans.columnModel,o=this.column;do{if(o=t?e.getDisplayedColBefore(o):e.getDisplayedColAfter(o),!o)break}while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o},e.prototype.handleKeyDown=function(e){t.prototype.handleKeyDown.call(this,e);var o=this.getWrapperHasFocus();switch(e.key){case zn.UP:case zn.DOWN:o||e.preventDefault();case zn.LEFT:case zn.RIGHT:if(o)return;e.stopPropagation();case zn.ENTER:o&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case zn.ESCAPE:o||this.eGui.focus()}},e.prototype.onFocusIn=function(t){var e=this.eGui.contains(t.relatedTarget);if(!e){var o=!!t.relatedTarget&&!t.relatedTarget.classList.contains("ag-floating-filter"),r=!!t.relatedTarget&&hr(t.relatedTarget,"ag-floating-filter");if(o&&r&&t.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)}},e.prototype.setupHover=function(){var t=this;this.createManagedBean(new Uc([this.column],this.eGui));var e=function(){if(t.gridOptionsWrapper.isColumnHoverHighlight()){var e=t.columnHoverService.isHovered(t.column);t.comp.addOrRemoveCssClass("ag-column-hover",e)}};this.addManagedListener(this.eventService,le.EVENT_COLUMN_HOVER_CHANGED,e),e()},e.prototype.setupLeft=function(){var t=new kc(this.column,this.eGui,this.beans);this.createManagedBean(t)},e.prototype.setupUserComp=function(){var t=this;if(this.active){var e=this.column.getColDef(),o=this.filterManager.createFilterParams(this.column,e),r=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(e,ml,o),n=this.userComponentFactory.getDefaultFloatingFilterType(e);null==n&&(n="agReadOnlyFloatingFilter");var i={column:this.column,filterParams:r,currentParentModel:function(){return t.currentParentModel()},parentFilterInstance:function(e){return t.parentFilterInstance(e)},showParentFilter:function(){return t.showParentFilter()},suppressFilterButton:!1};this.suppressFilterButton=!!e.floatingFilterComponentParams&&!!e.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.getFloatingFilterCompDetails(e,i,n);s&&this.comp.setCompDetails(s)}},e.prototype.currentParentModel=function(){var t=this.getFilterComponent(!1);return t?t.resolveNow(null,(function(t){return t&&t.getModel()})):null},e.prototype.getFilterComponent=function(t){return void 0===t&&(t=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",t)},e.prototype.parentFilterInstance=function(t){var e=this.getFilterComponent();null!=e&&e.then((function(e){t(Mc(e))}))},e.prototype.showParentFilter=function(){var t=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,t,"floatingFilter","filterMenuTab",["filterMenuTab"])},e.prototype.setupSyncWithFilter=function(){var t=this;if(this.active){var e=function(e){var o=t.comp.getFloatingFilterComp();if(o){var r=t.currentParentModel();o.then((function(t){t&&t.onParentModelChanged(r,e)}))}};this.addManagedListener(this.column,mt.EVENT_FILTER_CHANGED,e),this.filterManager.isFilterActive(this.column)&&e(null)}},e.prototype.setupWidth=function(){var t=this,e=function(){var e=t.column.getActualWidth()+"px";t.comp.setWidth(e)};this.addManagedListener(this.column,mt.EVENT_WIDTH_CHANGED,e),e()},Kc([nt("filterManager")],e.prototype,"filterManager",void 0),Kc([nt("columnHoverService")],e.prototype,"columnHoverService",void 0),Kc([nt("menuFactory")],e.prototype,"menuFactory",void 0),e}(Fc),qc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xc=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Qc=function(t){function e(e,o,r,n,i){var s=t.call(this)||this;return s.pinned=e,s.column=o,s.eResize=r,s.comp=n,s.ctrl=i,s}return qc(e,t),e.prototype.postConstruct=function(){var t,e,o=this,r=this.column.getColDef(),n=[],i=function(){if(pr(o.eResize,t),t){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),e){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(t){return t()})),n.length=0},a=function(){var n=o.column.isResizable(),a=!o.gridOptionsWrapper.isSuppressAutoSize()&&!r.suppressAutoSize,l=n!==t||a!==e;l&&(t=n,e=a,s(),i())};a(),this.addDestroyFunc(s),this.ctrl.addRefreshFunction(a)},e.prototype.onResizing=function(t,e){var o=this.normaliseResizeAmount(e),r=[{key:this.column,newWidth:this.resizeStartWidth+o}];this.columnModel.setColumnWidths(r,this.resizeWithShiftKey,t,"uiColumnDragged"),t&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},e.prototype.onResizeStart=function(t){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=t,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},e.prototype.normaliseResizeAmount=function(t){var e=t,o=this.pinned!==ft.PINNED_LEFT,r=this.pinned===ft.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?o&&(e*=-1):r&&(e*=-1),e},Xc([nt("horizontalResizeService")],e.prototype,"horizontalResizeService",void 0),Xc([nt("columnModel")],e.prototype,"columnModel",void 0),Xc([et],e.prototype,"postConstruct",null),e}(re),Jc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zc=function(t){function e(e,o,r){void 0===o&&(o="ag-checkbox"),void 0===r&&(r="checkbox");var n=t.call(this,e,o,r)||this;return n.labelAlignment="right",n.selected=!1,n.readOnly=!1,n.passive=!1,n}return Jc(e,t),e.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},e.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},e.prototype.setPassive=function(t){this.passive=t},e.prototype.isReadOnly=function(){return this.readOnly},e.prototype.setReadOnly=function(t){this.eWrapper.classList.toggle("ag-disabled",t),this.eInput.disabled=t,this.readOnly=t},e.prototype.setDisabled=function(e){return this.eWrapper.classList.toggle("ag-disabled",e),t.prototype.setDisabled.call(this,e)},e.prototype.toggle=function(){if(!this.eInput.disabled){var t=this.isSelected(),e=this.getNextValue();this.passive?this.dispatchChange(e,t):this.setValue(e)}},e.prototype.getValue=function(){return this.isSelected()},e.prototype.setValue=function(t,e){return this.refreshSelectedClass(t),this.setSelected(t,e),this},e.prototype.setName=function(t){var e=this.getInputElement();return e.name=t,this},e.prototype.isSelected=function(){return this.selected},e.prototype.setSelected=function(t,e){this.isSelected()!==t&&(this.previousValue=this.isSelected(),t=this.selected="boolean"===typeof t?t:void 0,this.eInput.checked=t,this.eInput.indeterminate=void 0===t,e||this.dispatchChange(this.selected,this.previousValue))},e.prototype.dispatchChange=function(t,o,r){this.dispatchEvent({type:e.EVENT_CHANGED,selected:t,previousValue:o,event:r});var n=this.getInputElement(),i={type:le.EVENT_CHECKBOX_CHANGED,id:n.id,name:n.name,selected:t,previousValue:o};this.eventService.dispatchEvent(i)},e.prototype.onCheckboxClick=function(t){if(!this.passive&&!this.eInput.disabled){var e=this.isSelected(),o=this.selected=t.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,e,t)}},e.prototype.refreshSelectedClass=function(t){this.eWrapper.classList.toggle("ag-checked",!0===t),this.eWrapper.classList.toggle("ag-indeterminate",null==t)},e}(cs),$c=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),td=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},ed=function(t){function e(e){var o=t.call(this)||this;o.cbSelectAllVisible=!1,o.processingEventFromCheckbox=!1,o.column=e;var r=e.getColDef();return o.filteredOnly=!!r&&!!r.headerCheckboxSelectionFilteredOnly,o}return $c(e,t),e.prototype.onSpaceKeyPressed=function(t){var e=this.cbSelectAll,o=this.gridOptionsWrapper.getDocument();e.isDisplayed()&&!e.getGui().contains(o.activeElement)&&(t.preventDefault(),e.setValue(!e.getValue()))},e.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},e.prototype.setComp=function(t){this.headerCellCtrl=t,this.cbSelectAll=this.createManagedBean(new Zc),this.cbSelectAll.addCssClass("ag-header-select-all"),ln(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,le.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,le.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,le.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()},e.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},e.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},e.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},e.prototype.getNextCheckboxState=function(t){return(0!==t.selected||0!==t.notSelected)&&(t.selected>0&&t.notSelected>0?null:t.selected>0)},e.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var t=this.getSelectionCount(),e=this.getNextCheckboxState(t);this.cbSelectAll.setValue(e),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},e.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var t=this.gridOptionsWrapper.getLocaleTextFunc(),e=this.cbSelectAll.getValue(),o=e?t("ariaChecked","checked"):t("ariaUnchecked","unchecked"),r=t("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()},e.prototype.getSelectionCount=function(){var t=this,e=0,o=0,r=function(r){t.gridOptionsWrapper.isGroupSelectsChildren()&&r.group||(r.isSelected()?e++:r.selectable&&o++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(r):this.gridApi.forEachNode(r),{notSelected:o,selected:e}},e.prototype.checkRightRowModelType=function(){var t=this.rowModel.getType(),e=t===ft.ROW_MODEL_TYPE_CLIENT_SIDE;e||console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using "+t)},e.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var t=this.cbSelectAll.getValue();t?this.selectionService.selectAllRowNodes(this.filteredOnly):this.selectionService.deselectAllRowNodes(this.filteredOnly)}},e.prototype.isCheckboxSelection=function(){var t=this.column.getColDef().headerCheckboxSelection;if("function"===typeof t){var e=t,o={column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsWrapper.getContext()};t=e(o)}return!!t&&(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))},td([nt("gridApi")],e.prototype,"gridApi",void 0),td([nt("columnApi")],e.prototype,"columnApi",void 0),td([nt("rowModel")],e.prototype,"rowModel",void 0),td([nt("selectionService")],e.prototype,"selectionService",void 0),e}(re),od=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),rd=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},nd=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.refreshFunctions=[],r.userHeaderClasses=new Set,r.ariaDescriptionProperties=new Map,r.column=e,r}return od(e,t),e.prototype.setComp=function(e,o,r,n){var i=this;t.prototype.setGui.call(this,o),this.comp=e,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,e,this)),this.createManagedBean(new Uc([this.column],o)),this.createManagedBean(new kc(this.column,o,this.beans)),this.createManagedBean(new zi(o,{shouldStopEventPropagation:function(t){return i.shouldStopEventPropagation(t)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.column,mt.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},e.prototype.setupUserComp=function(){var t=this.lookupUserCompDetails();this.setCompDetails(t)},e.prototype.setCompDetails=function(t){this.userCompDetails=t,this.comp.setUserCompDetails(t)},e.prototype.lookupUserCompDetails=function(){var t=this.createParams(),e=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(e,t)},e.prototype.createParams=function(){var t=this,e=this.column.getColDef(),o={column:this.column,displayName:this.displayName,enableSorting:e.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(e){t.gridApi.showColumnMenuAfterButtonClick(t.column,e)},progressSort:function(e){t.sortController.progressSort(t.column,!!e,"uiColumnSorted")},setSort:function(e,o){t.sortController.setSortForColumn(t.column,e,!!o,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()};return o},e.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new ed(this.column)),this.selectAllFeature.setComp(this)},e.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},e.prototype.handleKeyDown=function(e){t.prototype.handleKeyDown.call(this,e),e.key===zn.SPACE&&this.selectAllFeature.onSpaceKeyPressed(e),e.key===zn.ENTER&&this.onEnterKeyPressed(e)},e.prototype.onEnterKeyPressed=function(t){var e=this.comp.getUserCompInstance();if(e)if(t.ctrlKey||t.metaKey)this.menuEnabled&&e.showMenu&&(t.preventDefault(),e.showMenu());else if(this.sortable){var o=t.shiftKey;this.sortController.progressSort(this.column,o,"uiColumnSorted")}},e.prototype.isMenuEnabled=function(){return this.menuEnabled},e.prototype.onFocusIn=function(t){if(!this.getGui().contains(t.relatedTarget)){var e=this.getRowIndex();this.focusService.setFocusedHeader(e,this.column)}this.setActiveHeader(!0)},e.prototype.onFocusOut=function(t){this.getGui().contains(t.relatedTarget)||this.setActiveHeader(!1)},e.prototype.setupTooltip=function(){var t=this,e={getColumn:function(){return t.column},getColDef:function(){return t.column.getColDef()},getGui:function(){return t.eGui},getLocation:function(){return"header"},getTooltipValue:function(){var e=t.column.getColDef().headerTooltip;return e}},o=this.createManagedBean(new Pu(e,this.beans));o.setComp(this.comp),this.refreshFunctions.push((function(){return o.refreshToolTip()}))},e.prototype.setupClassesFromColDef=function(){var t=this,e=function(){var e=t.column.getColDef(),o=t.gridOptionsWrapper,r=wc.getHeaderClassesFromColDef(e,o,t.column,null),n=t.userHeaderClasses;t.userHeaderClasses=new Set(r),r.forEach((function(e){n.has(e)?n.delete(e):t.comp.addOrRemoveCssClass(e,!0)})),n.forEach((function(e){return t.comp.addOrRemoveCssClass(e,!1)}))};this.refreshFunctions.push(e),e()},e.prototype.setDragSource=function(t){var e=this;if(this.dragSourceElement=t,this.removeDragSource(),t&&this.draggable){var o=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns();this.moveDragSource={type:_a.HeaderCell,eElement:t,defaultIconName:o?xa.ICON_HIDE:xa.ICON_NOT_ALLOWED,getDragItem:function(){return e.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return e.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return e.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(t){var r,n;if(o){var i=(null===(n=null===(r=t)||void 0===r?void 0:r.columns)||void 0===n?void 0:n.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(i,!0,"uiColumnMoved")}},onGridExit:function(t){var r,n;if(o){var i=(null===(n=null===(r=t)||void 0===r?void 0:r.columns)||void 0===n?void 0:n.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(i,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},e.prototype.createDragItem=function(){var t={};return t[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:t}},e.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},e.prototype.onColDefChanged=function(){this.refresh()},e.prototype.updateState=function(){var t=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!t.suppressMenu,this.sortable=t.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},e.prototype.addRefreshFunction=function(t){this.refreshFunctions.push(t)},e.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((function(t){return t()}))},e.prototype.refreshHeaderComp=function(){var t=this.lookupUserCompDetails(),e=this.comp.getUserCompInstance(),o=null!=e&&this.userCompDetails.componentClass==t.componentClass,r=!!o&&this.attemptHeaderCompRefresh(t.params);r?this.setDragSource(this.dragSourceElement):this.setCompDetails(t)},e.prototype.attemptHeaderCompRefresh=function(t){var e=this.comp.getUserCompInstance();if(!e)return!1;if(!e.refresh)return!1;var o=e.refresh(t);return o},e.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},e.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},e.prototype.workOutDraggable=function(){var t=this.column.getColDef(),e=this.gridOptionsWrapper.isSuppressMovableColumns(),o=!e&&!t.suppressMovable&&!t.lockPosition;return!!o||!!t.enableRowGroup||!!t.enablePivot},e.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},e.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},e.prototype.onColumnValueChanged=function(){this.checkDisplayName()},e.prototype.setupWidth=function(){var t=this,e=function(){t.comp.setWidth(t.column.getActualWidth()+"px")};this.addManagedListener(this.column,mt.EVENT_WIDTH_CHANGED,e),e()},e.prototype.setupMovingCss=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-header-cell-moving",t.column.isMoving())};this.addManagedListener(this.column,mt.EVENT_MOVING_CHANGED,e),e()},e.prototype.setupMenuClass=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-column-menu-visible",t.column.isMenuVisible())};this.addManagedListener(this.column,mt.EVENT_MENU_VISIBLE_CHANGED,e),e()},e.prototype.setupSortableClass=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!t.sortable)};e(),this.addRefreshFunction(e),this.addManagedListener(this.column,mt.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},e.prototype.setupWrapTextClass=function(){var t=this,e=function(){var e=!!t.column.getColDef().wrapHeaderText;t.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",e)};e(),this.addRefreshFunction(e)},e.prototype.setupAutoHeight=function(t){var e,o=this,r=function(e){if(o.isAlive()){var n=fr(o.getGui()),i=n.paddingTop,s=n.paddingBottom,a=t.offsetHeight,l=a+i+s;if(e<5){var u=o.beans.gridOptionsWrapper.getDocument(),p=!u||!u.contains(t),c=0==l;if(p||c)return void o.beans.frameworkOverrides.setTimeout((function(){return r(e+1)}),0)}o.columnModel.setColumnHeaderHeight(o.column,l)}},n=!1,i=function(){var t=o.column.isAutoHeaderHeight();t&&!n&&s(),!t&&n&&a()},s=function(){n=!0,r(0),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),e=o.resizeObserverService.observeResize(t,(function(){return r(0)}))},a=function(){n=!1,e&&e(),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),e=void 0};i(),this.addDestroyFunc((function(){return a()})),this.addManagedListener(this.column,mt.EVENT_WIDTH_CHANGED,(function(){return n&&r(0)})),this.addManagedListener(this.column,mt.EVENT_SORT_CHANGED,(function(){n&&o.beans.frameworkOverrides.setTimeout((function(){return r(0)}))})),this.addRefreshFunction(i)},e.prototype.refreshAriaSort=function(){if(this.sortable){var t=this.gridOptionsWrapper.getLocaleTextFunc();this.comp.setAriaSort(un(this.column)),this.setAriaDescriptionProperty("sort",t("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},e.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var t=this.gridOptionsWrapper.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",t("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},e.prototype.setAriaDescriptionProperty=function(t,e){null!=e?this.ariaDescriptionProperties.set(t,e):this.ariaDescriptionProperties.delete(t)},e.prototype.refreshAriaDescription=function(){var t=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(t.length?t.join(" "):void 0)},e.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},e.prototype.addColumnHoverListener=function(){var t=this,e=function(){if(t.gridOptionsWrapper.isColumnHoverHighlight()){var e=t.columnHoverService.isHovered(t.column);t.comp.addOrRemoveCssClass("ag-column-hover",e)}};this.addManagedListener(this.eventService,le.EVENT_COLUMN_HOVER_CHANGED,e),e()},e.prototype.setupFilterCss=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-header-cell-filtered",t.column.isFilterActive())};this.addManagedListener(this.column,mt.EVENT_FILTER_ACTIVE_CHANGED,e),e()},e.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},e.prototype.addActiveHeaderMouseListeners=function(){var t=this,e=function(e){return t.setActiveHeader("mouseenter"===e.type)};this.addManagedListener(this.getGui(),"mouseenter",e),this.addManagedListener(this.getGui(),"mouseleave",e)},e.prototype.setActiveHeader=function(t){this.comp.addOrRemoveCssClass("ag-header-active",t)},rd([nt("columnModel")],e.prototype,"columnModel",void 0),rd([nt("columnHoverService")],e.prototype,"columnHoverService",void 0),rd([nt("sortController")],e.prototype,"sortController",void 0),rd([nt("menuFactory")],e.prototype,"menuFactory",void 0),rd([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),rd([nt("resizeObserverService")],e.prototype,"resizeObserverService",void 0),rd([nt("gridApi")],e.prototype,"gridApi",void 0),rd([nt("columnApi")],e.prototype,"columnApi",void 0),rd([ot],e.prototype,"removeDragSource",null),e}(Fc),id=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),sd=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},ad=function(t){function e(e,o,r,n){var i=t.call(this)||this;return i.eResize=o,i.comp=e,i.pinned=r,i.columnGroup=n,i}return id(e,t),e.prototype.postConstruct=function(){var t=this;if(this.columnGroup.isResizable()){var e=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(e),!this.gridOptionsWrapper.isSuppressAutoSize()){var o=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",(function(){var e=[],r=t.columnGroup.getDisplayedLeafColumns();r.forEach((function(t){t.getColDef().suppressAutoSize||e.push(t.getColId())})),e.length>0&&t.columnModel.autoSizeColumns({columns:e,skipHeader:o,stopAtGroup:t.columnGroup,source:"uiColumnResized"}),t.resizeLeafColumnsToFit()}))}}else this.comp.addOrRemoveResizableCssClass("ag-hidden",!0)},e.prototype.onResizeStart=function(t){var e=this;this.calculateInitialValues();var o=null;if(t&&(o=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),o){var r=o.getDisplayedLeafColumns();this.resizeTakeFromCols=r.filter((function(t){return t.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(t){return e.resizeTakeFromStartWidth+=t.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(t){return e.resizeTakeFromRatios.push(t.getActualWidth()/e.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},e.prototype.onResizing=function(t,e){var o=this.normaliseDragChange(e),r=this.resizeStartWidth+o;this.resizeColumns(r,t)},e.prototype.resizeLeafColumnsToFit=function(){var t=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),t>this.resizeStartWidth&&this.resizeColumns(t,!0)},e.prototype.resizeColumns=function(t,e){void 0===e&&(e=!0);var o=[];if(o.push({columns:this.resizeCols,ratios:this.resizeRatios,width:t}),this.resizeTakeFromCols){var r=t-this.resizeStartWidth;o.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-r})}this.columnModel.resizeColumnSets({resizeSets:o,finished:e,source:"uiColumnDragged"}),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},e.prototype.calculateInitialValues=function(){var t=this,e=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=e.filter((function(t){return t.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(e){return t.resizeStartWidth+=e.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(e){return t.resizeRatios.push(e.getActualWidth()/t.resizeStartWidth)}))},e.prototype.normaliseDragChange=function(t){var e=t;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==ft.PINNED_LEFT&&(e*=-1):this.pinned===ft.PINNED_RIGHT&&(e*=-1),e},sd([nt("horizontalResizeService")],e.prototype,"horizontalResizeService",void 0),sd([nt("autoWidthCalculator")],e.prototype,"autoWidthCalculator",void 0),sd([nt("columnModel")],e.prototype,"columnModel",void 0),sd([et],e.prototype,"postConstruct",null),e}(re),ld=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ud=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},pd=function(t){function e(e,o){var r=t.call(this)||this;return r.removeChildListenersFuncs=[],r.columnGroup=o,r.comp=e,r}return ld(e,t),e.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,Vt.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},e.prototype.addListenersToChildrenColumns=function(){var t=this;this.removeListenersOnChildrenColumns();var e=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(o){o.addEventListener(mt.EVENT_WIDTH_CHANGED,e),o.addEventListener(mt.EVENT_VISIBLE_CHANGED,e),t.removeChildListenersFuncs.push((function(){o.removeEventListener(mt.EVENT_WIDTH_CHANGED,e),o.removeEventListener(mt.EVENT_VISIBLE_CHANGED,e)}))}))},e.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(t){return t()})),this.removeChildListenersFuncs=[]},e.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},e.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},ud([et],e.prototype,"postConstruct",null),e}(re),cd=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),dd=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},hd=function(t){function e(e,o){var r=t.call(this,e,o)||this;return r.columnGroup=e,r}return cd(e,t),e.prototype.setComp=function(e,o,r){t.prototype.setGui.call(this,o),this.comp=e,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(e,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new ad(e,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)}))},e.prototype.resizeLeafColumnsToFit=function(){this.groupResizeFeature.onResizeStart(!1),this.groupResizeFeature.resizeLeafColumnsToFit()},e.prototype.setupUserComp=function(){var t=this,e=this.displayName,o={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(e){t.columnModel.setColumnGroupOpened(t.columnGroup.getProvidedColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!e){var r=this.columnGroup,n=r.getLeafColumns();while(r.getParent()&&r.getParent().getLeafColumns().length===n.length)r=r.getParent();var i=r.getColGroupDef();i&&(e=i.headerName),e||(e=n?this.columnModel.getDisplayNameForColumn(n[0],"header",!0):"")}var s=this.userComponentFactory.getHeaderGroupCompDetails(o);this.comp.setUserCompDetails(s)},e.prototype.setupTooltip=function(){var t=this,e=this.columnGroup.getColGroupDef(),o={getColumn:function(){return t.columnGroup},getGui:function(){return t.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return e&&e.headerTooltip}};e&&(o.getColDef=function(){return e});var r=this.createManagedBean(new Pu(o,this.beans));r.setComp(this.comp)},e.prototype.setupExpandable=function(){var t=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(t,Wt.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(t,Wt.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},e.prototype.refreshExpanded=function(){var t=this.columnGroup;this.expandable=t.isExpandable();var e=t.isExpanded();this.expandable?this.comp.setAriaExpanded(e?"true":"false"):this.comp.setAriaExpanded(void 0)},e.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},e.prototype.addClasses=function(){var t=this,e=this.columnGroup.getColGroupDef(),o=wc.getHeaderClassesFromColDef(e,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(e){return t.comp.addOrRemoveCssClass(e,!0)}))},e.prototype.setupMovingCss=function(){var t=this,e=this.columnGroup.getProvidedColumnGroup(),o=e.getLeafColumns(),r=function(){return t.comp.addOrRemoveCssClass("ag-header-cell-moving",t.columnGroup.isMoving())};o.forEach((function(e){t.addManagedListener(e,mt.EVENT_MOVING_CHANGED,r)})),r()},e.prototype.onFocusIn=function(t){if(!this.eGui.contains(t.relatedTarget)){var e=this.getRowIndex();this.beans.focusService.setFocusedHeader(e,this.columnGroup)}},e.prototype.handleKeyDown=function(e){t.prototype.handleKeyDown.call(this,e);var o=this.getWrapperHasFocus();if(this.expandable&&o&&e.key===zn.ENTER){var r=this.columnGroup,n=!r.isExpanded();this.columnModel.setColumnGroupOpened(r.getProvidedColumnGroup(),n,"uiColumnExpanded")}},e.prototype.setDragSource=function(t){var e=this;if(!this.isSuppressMoving()){var o=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns(),n={type:_a.HeaderCell,eElement:t,defaultIconName:r?xa.ICON_HIDE:xa.ICON_NOT_ALLOWED,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return o.forEach((function(t){return t.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return o.forEach((function(t){return t.setMoving(!1,"uiColumnDragged")}))},onGridEnter:function(t){var o,n;if(r){var i=(null===(n=null===(o=t)||void 0===o?void 0:o.columns)||void 0===n?void 0:n.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(i,!0,"uiColumnMoved")}},onGridExit:function(t){var o,n;if(r){var i=(null===(n=null===(o=t)||void 0===o?void 0:o.columns)||void 0===n?void 0:n.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(i,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(n,!0),this.addDestroyFunc((function(){return e.dragAndDropService.removeDragSource(n)}))}},e.prototype.getDragItemForGroup=function(){var t=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),e={};t.forEach((function(t){return e[t.getId()]=t.isVisible()}));var o=[];return this.columnModel.getAllDisplayedColumns().forEach((function(e){t.indexOf(e)>=0&&(o.push(e),Pt(t,e))})),t.forEach((function(t){return o.push(t)})),{columns:o,visibleState:e}},e.prototype.isSuppressMoving=function(){var t=!1;this.columnGroup.getLeafColumns().forEach((function(e){(e.getColDef().suppressMovable||e.getColDef().lockPosition)&&(t=!0)}));var e=t||this.gridOptionsWrapper.isSuppressMovableColumns();return e},dd([nt("columnModel")],e.prototype,"columnModel",void 0),dd([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),dd([nt("gridApi")],e.prototype,"gridApi",void 0),dd([nt("columnApi")],e.prototype,"columnApi",void 0),e}(Fc),fd=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),gd=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},vd=0,yd=function(t){function e(e,o,r){var n=t.call(this)||this;return n.instanceId=vd++,n.headerCellCtrls={},n.rowIndex=e,n.pinned=o,n.type=r,n}return fd(e,t),e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setComp=function(t){this.comp=t,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),qe()&&this.comp.setTransform("translateZ(0)"),t.setAriaRowIndex(this.rowIndex+1)},e.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,le.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,le.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))},e.prototype.getHeaderCellCtrl=function(t){return f(this.headerCellCtrls).find((function(e){return e.getColumnGroupChild()===t}))},e.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},e.prototype.getType=function(){return this.type},e.prototype.onColumnResized=function(){this.setWidth()},e.prototype.setWidth=function(){var t=this.getWidthForRow();this.comp.setWidth(t+"px")},e.prototype.getWidthForRow=function(){var t=this.gridOptionsWrapper.getDomLayout()===ft.DOM_LAYOUT_PRINT;if(t){var e=null!=this.pinned;return e?0:this.columnModel.getContainerWidth(ft.PINNED_RIGHT)+this.columnModel.getContainerWidth(ft.PINNED_LEFT)+this.columnModel.getContainerWidth(null)}return this.columnModel.getContainerWidth(this.pinned)},e.prototype.onRowHeightChanged=function(){var t=this.columnModel.getHeaderRowCount(),e=[],o=0;this.columnModel.hasFloatingFilters()&&(t++,o=1);for(var r=this.columnModel.getColumnGroupHeaderRowHeight(),n=this.columnModel.getColumnHeaderRowHeight(),i=1+o,s=t-i,a=0;a<s;a++)e.push(r);e.push(n);for(a=0;a<o;a++)e.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var l=0;for(a=0;a<this.rowIndex;a++)l+=e[a];var u=e[this.rowIndex]+"px";this.comp.setTop(l+"px"),this.comp.setHeight(u)},e.prototype.getPinned=function(){return this.pinned},e.prototype.getRowIndex=function(){return this.rowIndex},e.prototype.onVirtualColumnsChanged=function(){var t=this,e=this.headerCellCtrls;this.headerCellCtrls={};var o=this.getColumnsInViewport();o.forEach((function(o){if(!o.isEmptyGroup()){var r=o.getUniqueId(),n=e[r];delete e[r];var i=n&&n.getColumnGroupChild()!=o;if(i&&(t.destroyBean(n),n=void 0),null==n)switch(t.type){case lc.FLOATING_FILTER:n=t.createBean(new Yc(o,t));break;case lc.COLUMN_GROUP:n=t.createBean(new hd(o,t));break;default:n=t.createBean(new nd(o,t));break}t.headerCellCtrls[r]=n}}));var r=function(e){var o=t.focusService.isHeaderWrapperFocused(e);if(!o)return!1;var r=t.columnModel.isDisplayed(e.getColumnGroupChild());return r};y(e,(function(e,o){var n=r(o);n?t.headerCellCtrls[e]=o:t.destroyBean(o)}));var n=b(this.headerCellCtrls);this.comp.setHeaderCtrls(n)},e.prototype.destroyCtrls=function(){var t=this;y(this.headerCellCtrls,(function(e,o){t.destroyBean(o)})),this.headerCellCtrls={}},e.prototype.getColumnsInViewport=function(){var t=this.gridOptionsWrapper.getDomLayout()===ft.DOM_LAYOUT_PRINT;return t?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},e.prototype.getColumnsInViewportPrintLayout=function(){var t=this;if(null!=this.pinned)return[];var e=[],o=this.getActualDepth();return[ft.PINNED_LEFT,null,ft.PINNED_RIGHT].forEach((function(r){var n=t.columnModel.getVirtualHeaderGroupRow(r,o);e=e.concat(n)})),e},e.prototype.getActualDepth=function(){return this.type==lc.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},e.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},e.prototype.focusHeader=function(t,e){var o=b(this.headerCellCtrls),r=o.find((function(e){return e.getColumnGroupChild()==t}));return!!r&&(r.focus(e),!0)},gd([nt("columnModel")],e.prototype,"columnModel",void 0),gd([nt("focusService")],e.prototype,"focusService",void 0),gd([ot],e.prototype,"destroyCtrls",null),e}(re),md=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Cd=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},wd=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t=[],e=0;e<arguments.length;e++)t=t.concat(wd(arguments[e]));return t},Rd=function(t){function e(e){var o=t.call(this)||this;return o.groupsRowCtrls=[],o.pinned=e,o}return md(e,t),e.prototype.setComp=function(t,e){this.comp=t,this.eViewport=e,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,le.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()},e.prototype.setupDragAndDrop=function(t){var e=new yc(this.pinned,t);this.createManagedBean(e)},e.prototype.refresh=function(t){var e=this;void 0===t&&(t=!1);var o=new mi,r=this.focusService.getFocusHeaderToUseAfterRefresh(),n=function(){var t=e.columnModel.getHeaderRowCount()-1;e.groupsRowCtrls=e.destroyBeans(e.groupsRowCtrls);for(var r=0;r<t;r++){var n=e.createBean(new yd(o.next(),e.pinned,lc.COLUMN_GROUP));e.groupsRowCtrls.push(n)}},i=function(){var r=o.next(),n=null==e.columnsRowCtrl||!t||e.columnsRowCtrl.getRowIndex()!==r;n&&(e.destroyBean(e.columnsRowCtrl),e.columnsRowCtrl=e.createBean(new yd(r,e.pinned,lc.COLUMN)))},s=function(){var r=e.columnModel.hasFloatingFilters(),n=function(){e.filtersRowCtrl=e.destroyBean(e.filtersRowCtrl)};if(r){var i=o.next();if(e.filtersRowCtrl){var s=e.filtersRowCtrl.getRowIndex()!==i;t&&!s||n()}e.filtersRowCtrl||(e.filtersRowCtrl=e.createBean(new yd(i,e.pinned,lc.FLOATING_FILTER)))}else n()};n(),i(),s();var a=this.getAllCtrls();this.comp.setCtrls(a),this.restoreFocusOnHeader(r)},e.prototype.restoreFocusOnHeader=function(t){null!=t&&t.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:t})},e.prototype.getAllCtrls=function(){var t=Ed(this.groupsRowCtrls,[this.columnsRowCtrl]);return this.filtersRowCtrl&&t.push(this.filtersRowCtrl),t},e.prototype.onGridColumnsChanged=function(){this.refresh(!0)},e.prototype.setupCenterWidth=function(){var t=this;null==this.pinned&&this.createManagedBean(new Pp((function(e){return t.comp.setCenterWidth(e+"px")})))},e.prototype.setHorizontalScroll=function(t){this.comp.setContainerTransform("translateX("+t+"px)")},e.prototype.resetScrollLeft=function(){this.eViewport.scrollLeft=0},e.prototype.setupPinnedWidth=function(){var t=this;if(null!=this.pinned){var e=this.pinned===ft.PINNED_LEFT,o=this.pinned===ft.PINNED_RIGHT,r=function(){var r=e?t.pinnedWidthService.getPinnedLeftWidth():t.pinnedWidthService.getPinnedRightWidth();if(null!=r){var n=0==r,i=t.gridOptionsWrapper.isEnableRtl(),s=t.gridOptionsWrapper.getScrollbarWidth(),a=t.scrollVisibleService.isVerticalScrollShowing()&&(i&&e||!i&&o),l=a?r+s:r;t.comp.setPinnedContainerWidth(l+"px"),t.comp.addOrRemoveCssClass("ag-hidden",n)}};this.addManagedListener(this.eventService,le.EVENT_LEFT_PINNED_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,le.EVENT_RIGHT_PINNED_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,le.EVENT_SCROLL_VISIBILITY_CHANGED,r),this.addManagedListener(this.eventService,le.EVENT_SCROLLBAR_WIDTH_CHANGED,r)}},e.prototype.getHeaderCtrlForColumn=function(t){if(t instanceof mt){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(t)}if(0!==this.groupsRowCtrls.length)for(var e=0;e<this.groupsRowCtrls.length;e++){var o=this.groupsRowCtrls[e].getHeaderCellCtrl(t);if(o)return o}},e.prototype.getHtmlElementForColumnHeader=function(t){var e=this.getHeaderCtrlForColumn(t);return e?e.getGui():null},e.prototype.getRowType=function(t){var e=this.getAllCtrls(),o=e[t];return o?o.getType():void 0},e.prototype.focusHeader=function(t,e,o){var r=this.getAllCtrls(),n=r[t];return!!n&&n.focusHeader(e,o)},e.prototype.getRowCount=function(){return this.getAllCtrls().length},Cd([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),Cd([nt("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),Cd([nt("pinnedWidthService")],e.prototype,"pinnedWidthService",void 0),Cd([nt("columnModel")],e.prototype,"columnModel",void 0),Cd([nt("focusService")],e.prototype,"focusService",void 0),e}(re),Od=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Sd=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},_d=function(t){function e(e){var o=t.call(this)||this;return o.headerRowComps={},o.rowCompsList=[],o.pinned=e,o}return Od(e,t),e.prototype.init=function(){var t=this;this.selectAndSetTemplate();var e={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},setCtrls:function(e){return t.setCtrls(e)},setCenterWidth:function(e){return t.eCenterContainer.style.width=e},setContainerTransform:function(e){return t.eCenterContainer.style.transform=e},setPinnedContainerWidth:function(e){var o=t.getGui();o.style.width=e,o.style.maxWidth=e,o.style.minWidth=e}},o=this.createManagedBean(new Rd(this.pinned));o.setComp(e,this.getGui())},e.prototype.selectAndSetTemplate=function(){var t=this.pinned==ft.PINNED_LEFT,o=this.pinned==ft.PINNED_RIGHT,r=t?e.PINNED_LEFT_TEMPLATE:o?e.PINNED_RIGHT_TEMPLATE:e.CENTER_TEMPLATE;this.setTemplate(r),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},e.prototype.destroyRowComps=function(){this.setCtrls([])},e.prototype.destroyRowComp=function(t){this.destroyBean(t),this.eRowContainer.removeChild(t.getGui())},e.prototype.setCtrls=function(t){var e,o=this,r=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];var n=function(t){var r=t.getGui(),n=r.parentElement!=o.eRowContainer;n&&o.eRowContainer.appendChild(r),e&&Nr(o.eRowContainer,r,e),e=r};t.forEach((function(t){var e=t.getInstanceId(),i=r[e];delete r[e];var s=i||o.createBean(new Ac(t));o.headerRowComps[e]=s,o.rowCompsList.push(s),n(s)})),b(r).forEach((function(t){return o.destroyRowComp(t)}))},e.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"/>',e.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"/>',e.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")],e.prototype,"eCenterContainer",void 0),Sd([et],e.prototype,"init",null),Sd([ot],e.prototype,"destroyRowComps",null),e}(Di),bd=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Pd=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,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(t){t[t["UP"]=0]="UP",t[t["DOWN"]=1]="DOWN",t[t["LEFT"]=2]="LEFT",t[t["RIGHT"]=3]="RIGHT"})(xc||(xc={}));var Td=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return bd(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.gridBodyCon=e.gridBodyCtrl}))},e.prototype.getHeaderRowCount=function(){var t=this.ctrlsService.getHeaderRowContainerCtrl();return t?t.getRowCount():0},e.prototype.getHeaderRowType=function(t){var e=this.ctrlsService.getHeaderRowContainerCtrl();if(e)return e.getRowType(t)},e.prototype.navigateVertically=function(t,e,o){if(e||(e=this.focusService.getFocusedHeader()),!e)return!1;var r=e.headerRowIndex,n=e.column,i=this.getHeaderRowCount(),s=t===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})},e.prototype.navigateHorizontally=function(t,e,o){void 0===e&&(e=!1);var r,n,i=this.focusService.getFocusedHeader(),s=t===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||!e?this.focusService.focusHeaderPosition({headerPosition:r,direction:n,fromTab:e,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(i,n,o)},e.prototype.focusNextHeaderRow=function(t,e,o){var r,n=t.headerRowIndex,i=null;return"Before"===e?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:e,fromTab:!0,allowUserOverride:!0,event:o})},e.prototype.scrollToColumn=function(t,e){if(void 0===e&&(e="After"),!t.getPinned()){var o;if(t instanceof Vt){var r=t.getDisplayedLeafColumns();o="Before"===e?Et(r):r[0]}else o=t;this.gridBodyCon.getScrollFeature().ensureColumnVisible(o)}},Pd([nt("focusService")],e.prototype,"focusService",void 0),Pd([nt("headerPositionUtils")],e.prototype,"headerPositionUtils",void 0),Pd([nt("animationFrameService")],e.prototype,"animationFrameService",void 0),Pd([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),Pd([et],e.prototype,"postConstruct",null),e=Pd([rt("headerNavigationService")],e),e}(re),Dd=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ad=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Nd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dd(e,t),e.prototype.setComp=function(t,e,o){this.comp=t,this.eGui=e,this.createManagedBean(new zi(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,le.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},e.prototype.setupHeaderHeight=function(){var t=this.setHeaderHeight.bind(this);t(),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_PIVOT_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_GROUP_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_PIVOT_GROUP_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_FLOATING_FILTERS_HEIGHT,t),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,le.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,t)},e.prototype.getHeaderHeight=function(){return this.headerHeight},e.prototype.setHeaderHeight=function(){var t,e=this,o=e.columnModel,r=e.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(t=n*r.getFloatingFiltersHeight(),t+=p*a,t+=l,this.headerHeight!==t){this.headerHeight=t;var c=t+1+"px";this.comp.setHeightAndMinHeight(c),this.eventService.dispatchEvent({type:le.EVENT_HEADER_HEIGHT_CHANGED})}},e.prototype.onPivotModeChanged=function(){var t=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",t),this.comp.addOrRemoveCssClass("ag-pivot-off",!t)},e.prototype.onTabKeyDown=function(t){var e=this.gridOptionsWrapper.isEnableRtl(),o=t.shiftKey!==e?xc.LEFT:xc.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0,t)||this.focusService.focusNextGridCoreContainer(t.shiftKey))&&t.preventDefault()},e.prototype.handleKeyDown=function(t){var e=null;switch(t.key){case zn.LEFT:e=xc.LEFT;case zn.RIGHT:n(e)||(e=xc.RIGHT),this.headerNavigationService.navigateHorizontally(e,!1,t);break;case zn.UP:e=xc.UP;case zn.DOWN:n(e)||(e=xc.DOWN),this.headerNavigationService.navigateVertically(e,null,t)&&t.preventDefault();break;default:return}},e.prototype.onFocusOut=function(t){var e=this.gridOptionsWrapper.getDocument(),o=t.relatedTarget;!o&&this.eGui.contains(e.activeElement)||this.eGui.contains(o)||this.focusService.clearFocusedHeader()},Ad([nt("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Ad([nt("focusService")],e.prototype,"focusService",void 0),Ad([nt("columnModel")],e.prototype,"columnModel",void 0),Ad([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),e}(re),Id=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Gd=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Fd=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return Id(e,t),e.prototype.postConstruct=function(){var t=this,e={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},setHeightAndMinHeight:function(e){t.getGui().style.height=e,t.getGui().style.minHeight=e}},o=this.createManagedBean(new Nd);o.setComp(e,this.getGui(),this.getFocusableElement());var r=function(e){t.createManagedBean(e),t.appendChild(e)};r(new _d(ft.PINNED_LEFT)),r(new _d(null)),r(new _d(ft.PINNED_RIGHT))},e.TEMPLATE='<div class="ag-header" role="presentation"/>',Gd([et],e.prototype,"postConstruct",null),e}(Di),Ld=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Md=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},xd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ld(e,t),e.prototype.addResizeBar=function(t){var e=this,o={dragStartPixels:t.dragStartPixels||0,eElement:t.eResizeBar,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this,t),onDragging:this.onDragging.bind(this,t)};this.dragService.addDragSource(o,!0);var r=function(){return e.dragService.removeDragSource(o)};return r},e.prototype.onDragStart=function(t,e){this.dragStartX=e.clientX,this.setResizeIcons();var o=e instanceof MouseEvent&&!0===e.shiftKey;t.onResizeStart(o)},e.prototype.setResizeIcons=function(){var t=this.ctrlsService.getGridCtrl();t.setResizeCursor(!0),t.disableUserSelect(!0)},e.prototype.onDragStop=function(t,e){t.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){var t=this.ctrlsService.getGridCtrl();t.setResizeCursor(!1),t.disableUserSelect(!1)},e.prototype.onDragging=function(t,e){this.resizeAmount=e.clientX-this.dragStartX,t.onResizing(this.resizeAmount)},Md([nt("dragService")],e.prototype,"dragService",void 0),Md([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),e=Md([rt("horizontalResizeService")],e),e}(re),Hd=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Vd=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Wd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Hd(e,t),e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.showMenuAfterMouseEvent=function(t,e){var o=this;this.showPopup(t,(function(r){o.popupService.positionPopupUnderMouseEvent({column:t,type:"columnMenu",mouseEvent:e,ePopup:r})}),e.target)},e.prototype.showMenuAfterButtonClick=function(t,e,o){var r=this;this.showPopup(t,(function(n){r.popupService.positionPopupUnderComponent({type:o,eventSource:e,ePopup:n,keepWithinBounds:!0,column:t})}),e)},e.prototype.showPopup=function(t,e,o){var r=this,n=this.filterManager.getOrCreateFilterWrapper(t,"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(t){return r.trapFocusWithin(t,s)})),n.guiPromise.then((function(t){return s.appendChild(t)}));var a=o||this.ctrlsService.getGridBodyCtrl().getGui(),l=function(e){t.setMenuVisible(!1,"contextMenu");var n=e 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 e(s)},anchorToElement:a,ariaLabel:u("ariaLabelColumnMenu","Column Menu")});p&&(this.hidePopup=i=p.hideFunc),n.filterPromise.then((function(t){e(s),t.afterGuiAttached&&t.afterGuiAttached({container:"columnMenu",hidePopup:i})})),t.setMenuVisible(!0,"contextMenu")},e.prototype.trapFocusWithin=function(t,e){t.key!==zn.TAB||t.defaultPrevented||this.focusService.findNextFocusableElement(e,!1,t.shiftKey)||(t.preventDefault(),this.focusService.focusInto(e,t.shiftKey))},e.prototype.isMenuEnabled=function(t){return t.isFilterAllowed()},Vd([nt("filterManager")],e.prototype,"filterManager",void 0),Vd([nt("popupService")],e.prototype,"popupService",void 0),Vd([nt("focusService")],e.prototype,"focusService",void 0),Vd([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),e=Vd([rt("menuFactory")],e),e}(re),kd=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Bd=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,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(t){function e(o){var r=t.call(this,e.getTemplate(o.cssClass))||this;return r.items=[],r.tabbedItemScrollMap=new Map,r.params=o,o.items&&o.items.forEach((function(t){return r.addItem(t)})),r}kd(e,t),e.prototype.postConstruct=function(){this.createManagedBean(new zi(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},e.getTemplate=function(t){return'<div class="ag-tabs '+t+'">\n <div ref="eHeader" role="tablist" class="ag-tabs-header '+(t?t+"-header":"")+'"></div>\n <div ref="eBody" role="presentation" class="ag-tabs-body '+(t?t+"-body":"")+'"></div>\n </div>'},e.prototype.handleKeyDown=function(t){var e=this.gridOptionsWrapper.getDocument();switch(t.key){case zn.RIGHT:case zn.LEFT:if(!this.eHeader.contains(e.activeElement))return;var o=t.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;t.preventDefault();var s=this.items[i];this.showItemWrapper(s),s.eHeaderButton.focus();break;case zn.UP:case zn.DOWN:t.stopPropagation();break}},e.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented){var e=this,o=e.focusService,r=e.eHeader,n=e.eBody,i=e.activeItem,s=this.gridOptionsWrapper.getDocument(),a=s.activeElement;if(t.preventDefault(),r.contains(a))o.focusInto(n,t.shiftKey);else if(o.isFocusUnderManagedComponent(n))i.eHeaderButton.focus();else{var l=o.findNextFocusableElement(n,!1,t.shiftKey);l?l.focus():i.eHeaderButton.focus()}}},e.prototype.setAfterAttachedParams=function(t){this.afterAttachedParams=t},e.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},e.prototype.addItem=function(t){var e=document.createElement("span");ln(e,"tab"),e.setAttribute("tabIndex","-1"),e.appendChild(t.title),e.classList.add("ag-tab"),this.eHeader.appendChild(e),hn(e,t.titleLabel);var o={tabbedItem:t,eHeaderButton:e};this.items.push(o),e.addEventListener("click",this.showItemWrapper.bind(this,o))},e.prototype.showItem=function(t){var e=this.items.find((function(e){return e.tabbedItem===t}));e&&this.showItemWrapper(e)},e.prototype.showItemWrapper=function(t){var e=this,o=t.tabbedItem,r=t.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:o}),this.activeItem!==t?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),Rr(this.eBody),o.bodyPromise.then((function(t){e.eBody.appendChild(t);var r=!e.focusService.isKeyboardMode();if(e.focusService.focusInto(e.eBody,!1,r),o.afterAttachedCallback&&o.afterAttachedCallback(e.afterAttachedParams),e.params.keepScrollPosition){var n=o.getScrollableContainer&&o.getScrollableContainer()||t;e.lastScrollListener=e.addManagedListener(n,"scroll",(function(){e.tabbedItemScrollMap.set(o.name,n.scrollTop)}));var i=e.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=t):X(this.params.onActiveItemClicked)},Bd([nt("focusService")],e.prototype,"focusService",void 0),Bd([Ai("eHeader")],e.prototype,"eHeader",void 0),Bd([Ai("eBody")],e.prototype,"eBody",void 0),Bd([et],e.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 t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),zd=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Kd=50,Yd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.polyfillFunctions=[],e}return Ud(e,t),e.prototype.observeResize=function(t,e){var o=this,r=this.gridOptionsWrapper.getDocument(),n=r.defaultView||window,i=z(e,Kd),s=function(){var e=new n.ResizeObserver(i);return e.observe(t),function(){return e.disconnect()}},a=function(){var r=Ar(t),n=Dr(t),i=!0,s=function(){if(i){var a=Ar(t),l=Dr(t),u=a!==r||l!==n;u&&(r=a,n=l,e()),o.doNextPolyfillTurn(s)}};return s(),function(){return i=!1}},l=this.gridOptionsWrapper.isSuppressBrowserResizeObserver(),u=!!n.ResizeObserver;return u&&!l?s():a()},e.prototype.doNextPolyfillTurn=function(t){this.polyfillFunctions.push(t),this.schedulePolyfill()},e.prototype.schedulePolyfill=function(){var t=this;if(!this.polyfillScheduled){var e=function(){var e=t.polyfillFunctions;t.polyfillScheduled=!1,t.polyfillFunctions=[],e.forEach((function(t){return t()}))};this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout(e,Kd)}},e=zd([rt("resizeObserverService")],e),e}(re),qd=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xd=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Qd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.createTasksP1={list:[],sorted:!1},e.createTasksP2={list:[],sorted:!1},e.destroyTasks=[],e.ticking=!1,e.scrollGoingDown=!0,e.lastScrollTop=0,e.taskCount=0,e.cancelledTasks=new Set,e}return qd(e,t),e.prototype.setScrollTop=function(t){this.scrollGoingDown=t>this.lastScrollTop,this.lastScrollTop=t},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},e.prototype.isOn=function(){return this.useAnimationFrame},e.prototype.verifyAnimationFrameOn=function(t){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+t+" called but animation frames are off")},e.prototype.createTask=function(t,e,o){this.verifyAnimationFrameOn(o);var r={task:t,index:e,createOrder:++this.taskCount};this.addTaskToList(this[o],r),this.schedule()},e.prototype.cancelTask=function(t){this.cancelledTasks.add(t)},e.prototype.addTaskToList=function(t,e){t.list.push(e),t.sorted=!1},e.prototype.sortTaskList=function(t){if(!t.sorted){var e=this.scrollGoingDown?1:-1;t.list.sort((function(t,o){return t.index!==o.index?e*(o.index-t.index):o.createOrder-t.createOrder})),t.sorted=!0}},e.prototype.addDestroyTask=function(t){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(t),this.schedule()},e.prototype.executeFrame=function(t){this.verifyAnimationFrameOn("executeFrame");var e=this.createTasksP1,o=e.list,r=this.createTasksP2,n=r.list,i=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=t<=0,u=this.ctrlsService.getGridBodyCtrl();while(l||a<t){var p=u.getScrollFeature().executeAnimationFrameScroll();if(!p){var c=void 0;if(o.length)this.sortTaskList(e),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()},e.prototype.stopTicking=function(){this.ticking=!1},e.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},e.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},e.prototype.requestFrame=function(){var t=this.executeFrame.bind(this,60),e=this.gridOptionsWrapper.getDocument(),o=e.defaultView||window;o.requestAnimationFrame?o.requestAnimationFrame(t):o.webkitRequestAnimationFrame?o.webkitRequestAnimationFrame(t):o.setTimeout(t,0)},e.prototype.isQueueEmpty=function(){return!this.ticking},e.prototype.debounce=function(t){var e=this,o=!1;return function(){e.isOn()?o||(o=!0,e.addDestroyTask((function(){o=!1,t()}))):e.getFrameworkOverrides().setTimeout(t,0)}},Xd([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),Xd([et],e.prototype,"init",null),e=Xd([rt("animationFrameService")],e),e}(re),Jd=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zd=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},$d="ag-resizer-wrapper",th='<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>',eh=function(t){function e(e,o){var r=t.call(this)||this;return r.element=e,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(e,t),e.prototype.center=function(){var t=this.offsetParent,e=t.clientHeight,o=t.clientWidth,r=o/2-this.getWidth()/2,n=e/2-this.getHeight()/2;this.offsetElement(r,n)},e.prototype.initialisePosition=function(){var t=this.config,e=t.centered,o=t.forcePopupParentAsOffsetParent,r=t.minWidth,n=t.width,i=t.minHeight,s=t.height,a=t.x,l=t.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(),e)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},e.prototype.isPositioned=function(){return this.positioned},e.prototype.getPosition=function(){return this.position},e.prototype.setMovable=function(t,e){if(this.config.popup&&t!==this.movable){this.movable=t;var o=this.moveElementDragListener||{eElement:e,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};t?(this.dragService.addDragSource(o),this.moveElementDragListener=o):(this.dragService.removeDragSource(o),this.moveElementDragListener=void 0)}},e.prototype.setResizable=function(t){var e=this;if(this.clearResizeListeners(),t?this.addResizers():this.removeResizers(),"boolean"===typeof t){if(!1===t)return;t={topLeft:t,top:t,topRight:t,right:t,bottomRight:t,bottom:t,bottomLeft:t,left:t}}Object.keys(t).forEach((function(o){var r=t,n=!!r[o],i=e.getResizerElement(o),s={dragStartPixels:0,eElement:i,onDragStart:function(t){return e.onResizeStart(t,o)},onDragging:e.onResize.bind(e),onDragStop:function(t){return e.onResizeEnd(t,o)}};!!e.resizable[o]===n&&(e.isAlive()||n)||(n?(e.dragService.addDragSource(s),e.resizeListeners.push(s),i.style.pointerEvents="all"):i.style.pointerEvents="none",e.resizable[o]=n)}))},e.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},e.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var t=this.lastSize,e=t.height,o=t.width;-1!==o&&(this.element.style.width=o+"px"),-1!==e&&(this.element.style.height=e+"px")},e.prototype.getHeight=function(){return this.element.offsetHeight},e.prototype.setHeight=function(t){var e=this.config.popup,o=this.element,r=!1;if("string"===typeof t&&-1!==t.indexOf("%"))kr(o,t),t=yr(o),r=!0;else if(this.positioned){var n=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect();t=Math.max(this.minHeight,t);var s=this.offsetParent.clientHeight,a=e?this.position.y:n.top,l=e?0:i.top;s&&t+a>s+l&&(t=s-a)}this.getHeight()!==t&&(r?(o.style.maxHeight="unset",o.style.minHeight="unset"):e?kr(o,t):(o.style.height=t+"px",o.style.flex="0 0 auto",this.lastSize.height="number"===typeof t?t:parseFloat(t)))},e.prototype.getWidth=function(){return this.element.offsetWidth},e.prototype.setWidth=function(t){var e=this.element,o=this.config.popup,r=!1;if("string"===typeof t&&-1!==t.indexOf("%"))Vr(e,t),t=mr(e),r=!0;else if(this.positioned){t=Math.max(this.minWidth,t);var n=this.offsetParent.clientWidth,i=o?this.position.x:this.element.getBoundingClientRect().left;n&&t+i>n&&(t=n-i)}this.getWidth()!==t&&(r?(e.style.maxWidth="unset",e.style.minWidth="unset"):this.config.popup?Vr(e,t):(e.style.width=t+"px",e.style.flex=" unset",this.lastSize.width="number"===typeof t?t:parseFloat(t)))},e.prototype.offsetElement=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var o=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:o,x:t,y:e,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable()}),this.setPosition(parseFloat(o.style.left),parseFloat(o.style.top))},e.prototype.setPosition=function(t,e){this.position.x=t,this.position.y=e},e.prototype.updateDragStartPosition=function(t,e){this.dragStartPosition={x:t,y:e}},e.prototype.calculateMouseMovement=function(t){var e=t.e,o=t.isLeft,r=t.isTop,n=t.anywhereWithin,i=t.topBuffer,s=e.clientX-this.dragStartPosition.x,a=e.clientY-this.dragStartPosition.y,l=this.shouldSkipX(e,!!o,!!n,s)?0:s,u=this.shouldSkipY(e,!!r,i,a)?0:a;return{movementX:l,movementY:u}},e.prototype.shouldSkipX=function(t,e,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>=t.clientX||i.right<=t.clientX&&i.right<=s.right;return!!l||(l=e?r<0&&t.clientX>a+i.left||r>0&&t.clientX<a+i.left:o?r<0&&t.clientX>s.right||r>0&&t.clientX<a+i.left:r<0&&t.clientX>s.right||r>0&&t.clientX<s.right,l)},e.prototype.shouldSkipY=function(t,e,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>=t.clientY||i.bottom<=t.clientY&&i.bottom<=s.bottom;return!!l||(l=e?r<0&&t.clientY>a+i.top+o||r>0&&t.clientY<a+i.top:r<0&&t.clientY>s.bottom||r>0&&t.clientY<s.bottom,l)},e.prototype.createResizeMap=function(){var t=this.element;this.resizerMap={topLeft:{element:t.querySelector("[ref=eTopLeftResizer]")},top:{element:t.querySelector("[ref=eTopResizer]")},topRight:{element:t.querySelector("[ref=eTopRightResizer]")},right:{element:t.querySelector("[ref=eRightResizer]")},bottomRight:{element:t.querySelector("[ref=eBottomRightResizer]")},bottom:{element:t.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:t.querySelector("[ref=eBottomLeftResizer]")},left:{element:t.querySelector("[ref=eLeftResizer]")}}},e.prototype.addResizers=function(){if(!this.resizersAdded){var t=this.element;if(t){var e=new DOMParser,o=e.parseFromString(th,"text/html").body;t.appendChild(o.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},e.prototype.removeResizers=function(){this.resizerMap=void 0;var t=this.element.querySelector("."+$d);t&&this.element.removeChild(t),this.resizersAdded=!1},e.prototype.getResizerElement=function(t){return this.resizerMap[t].element},e.prototype.onResizeStart=function(t,e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!e.match(/top/i),isRight:!!e.match(/right/i),isBottom:!!e.match(/bottom/i),isLeft:!!e.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[e].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(t.clientX,t.clientY)},e.prototype.getSiblings=function(){var t=this.element,e=t.parentElement;return e?Array.prototype.slice.call(e.children).filter((function(t){return!t.classList.contains("ag-hidden")})):null},e.prototype.getMinSizeOfSiblings=function(){for(var t=this.getSiblings()||[],e=0,o=0,r=0;r<t.length;r++){var n=t[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;e+=s,o+=a}}return{height:e,width:o}},e.prototype.applySizeToSiblings=function(t){var e=null,o=this.getSiblings();if(o){for(var r=0;r<o.length;r++){var n=o[r];n!==e&&(t?n.style.height=n.offsetHeight+"px":n.style.width=n.offsetWidth+"px",n.style.flex="0 0 auto",n===this.element&&(e=o[r+1]))}e&&(e.style.removeProperty("height"),e.style.removeProperty("min-height"),e.style.removeProperty("max-height"),e.style.flex="1 1 auto")}},e.prototype.isResizable=function(){return Object.values(this.resizable).some((function(t){return t}))},e.prototype.onResize=function(t){if(this.isResizing&&this.currentResizer){var e=this.config,o=e.popup,r=e.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:t,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(t.clientX,t.clientY),((o||r)&&v||y)&&this.offsetElement(f+v,g+y)}},e.prototype.onResizeEnd=function(t,e){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[e].element.classList.remove("ag-active"),this.dispatchEvent(o)},e.prototype.refreshSize=function(){var t=this.element;this.config.popup&&(this.config.width||this.setWidth(t.offsetWidth),this.config.height||this.setHeight(t.offsetHeight))},e.prototype.onMoveStart=function(t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(t.clientX,t.clientY)},e.prototype.onMove=function(t){if(this.isMoving){var e,o=this.position,r=o.x,n=o.y;this.config.calculateTopBuffer&&(e=this.config.calculateTopBuffer());var i=this.calculateMouseMovement({e:t,isTop:!0,anywhereWithin:!0,topBuffer:e}),s=i.movementX,a=i.movementY;this.offsetElement(r+s,n+a),this.updateDragStartPosition(t.clientX,t.clientY)}},e.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},e.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},e.prototype.findBoundaryElement=function(){var t=this.element;while(t){if("static"!==window.getComputedStyle(t).position)return t;t=t.parentElement}return this.element},e.prototype.clearResizeListeners=function(){while(this.resizeListeners.length){var t=this.resizeListeners.pop();this.dragService.removeDragSource(t)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.clearResizeListeners(),this.removeResizers()},Zd([nt("popupService")],e.prototype,"popupService",void 0),Zd([nt("dragService")],e.prototype,"dragService",void 0),e}(re),oh=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),rh=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},nh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oh(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.centerRowContainerCtrl=e.centerRowContainerCtrl}))},e.prototype.getPreferredWidthForColumn=function(t,e){var o=this.getHeaderCellForColumn(t);if(!o)return-1;var r=this.rowRenderer.getAllCellsForColumn(t);return e||r.push(o),this.addElementsToContainerAndGetWidth(r)},e.prototype.getPreferredWidthForColumnGroup=function(t){var e=this.getHeaderCellForColumn(t);return e?this.addElementsToContainerAndGetWidth([e]):-1},e.prototype.addElementsToContainerAndGetWidth=function(t){var e=this,o=document.createElement("form");o.style.position="fixed";var r=this.centerRowContainerCtrl.getContainerElement();r.appendChild(o),t.forEach((function(t){return e.cloneItemIntoDummy(t,o)}));var n=o.offsetWidth;r.removeChild(o);var i=this.gridOptionsWrapper.getAutoSizePadding();return n+i},e.prototype.getHeaderCellForColumn=function(t){var e=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(o){var r=o.getHtmlElementForColumnHeader(t);null!=r&&(e=r)})),e},e.prototype.cloneItemIntoDummy=function(t,e){var o=t.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(t){return o.classList.contains(t)}));i?(n.add("ag-header","ag-header-row"),r.style.position="static"):n.add("ag-row");var s=t.parentElement;while(s){var a=["ag-header-row","ag-row"].some((function(t){return s.classList.contains(t)}));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),e.appendChild(r)},rh([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),rh([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),rh([nt("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),rh([et],e.prototype,"postConstruct",null),e=rh([rt("autoWidthCalculator")],e),e}(re),ih=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),sh=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},ah=function(t){var e="function"===typeof Symbol&&Symbol.iterator,o=e&&t[e],r=0;if(o)return o.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},lh=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t=[],e=0;e<arguments.length;e++)t=t.concat(lh(arguments[e]));return t},ph=function(t){function e(e,o){var r=t.call(this)||this;return r.createRowCon=e,r.destroyRowCtrls=o,r.stickyRowCtrls=[],r.containerHeight=0,r}return ih(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.gridBodyCtrl=e.gridBodyCtrl}))},e.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},e.prototype.checkStickyRows=function(){var t=0;if(this.gridOptionsWrapper.isGroupRowsSticky()){var e=[],o=this.rowRenderer.getFirstVisibleVerticalPixel(),r=function(r){e.push(r);var n=r;while(n.expanded)n=Et(n.childrenAfterSort);var i=n.rowTop+n.rowHeight,s=o+t+r.rowHeight;r.stickyRowTop=i<s?t+(i-s):t,t=0,e.forEach((function(e){var o=e.stickyRowTop+e.rowHeight;t<o&&(t=o)}))};while(1){var n=o+t,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(t){return e.indexOf(t)<0&&t.displayed}));if(u)r(u);else{if(!(s.group&&s.expanded&&!s.footer&&s.rowTop<n))break;r(s)}}this.refreshNodesAndContainerHeight(e,t)}else this.refreshNodesAndContainerHeight([],t)},e.prototype.refreshNodesAndContainerHeight=function(t,e){var o,r,n,i=this,s=this.stickyRowCtrls.filter((function(e){return-1===t.indexOf(e.getRowNode())})),a=t.filter((function(t){return-1===i.stickyRowCtrls.findIndex((function(e){return e.getRowNode()===t}))})),l={};s.forEach((function(t){l[t.getRowNode().id]=t,i.stickyRowCtrls=i.stickyRowCtrls.filter((function(e){return e!==t}))}));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(t){return t.sticky=!0,i.createRowCon(t,!1,!1)}));(n=this.stickyRowCtrls).push.apply(n,uh(d)),this.stickyRowCtrls.forEach((function(t){return t.setRowTop(t.getRowNode().stickyRowTop)})),this.stickyRowCtrls.sort((function(t,e){return e.getRowNode().rowIndex-t.getRowNode().rowIndex})),this.containerHeight!==e&&(this.containerHeight=e,this.gridBodyCtrl.setStickyTopHeight(e))},sh([nt("rowModel")],e.prototype,"rowModel",void 0),sh([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),sh([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),sh([et],e.prototype,"postConstruct",null),e}(re),ch=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),dh=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},hh=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t=[],e=0;e<arguments.length;e++)t=t.concat(hh(arguments[e]));return t},gh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.destroyFuncsForColumnListeners=[],e.rowCtrlsByRowIndex={},e.zombieRowCtrls={},e.allRowCtrls=[],e.topRowCtrls=[],e.bottomRowCtrls=[],e.refreshInProgress=!1,e.dataFirstRenderedFired=!1,e}return ch(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl(),t.initialise()}))},e.prototype.initialise=function(){this.addManagedListener(this.eventService,le.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,le.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,le.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()!=ft.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()===ft.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},e.prototype.initialiseCache=function(){if(this.gridOptionsWrapper.isKeepDetailRows()){var t=this.gridOptionsWrapper.getKeepDetailRowsCount(),e=null!=t?t:3;this.cachedRowCtrls=new vh(e)}},e.prototype.getRowCtrls=function(){return this.allRowCtrls},e.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},e.prototype.updateAllRowCtrls=function(){var t=b(this.rowCtrlsByRowIndex);this.gridOptionsWrapper.isEnsureDomOrder()&&t.sort((function(t,e){return t.getRowNode().rowIndex-e.getRowNode.rowIndex}));var e=b(this.zombieRowCtrls),o=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=fh(t,e,o)},e.prototype.registerCellEventListeners=function(){var t=this;this.addManagedListener(this.eventService,le.EVENT_CELL_FOCUSED,(function(e){t.getAllCellCtrls().forEach((function(t){return t.onCellFocused(e)})),t.getFullWidthRowCtrls().forEach((function(t){t.onFullWidthRowFocused(e)}))})),this.addManagedListener(this.eventService,le.EVENT_FLASH_CELLS,(function(e){t.getAllCellCtrls().forEach((function(t){return t.onFlashCells(e)}))})),this.addManagedListener(this.eventService,le.EVENT_COLUMN_HOVER_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onColumnHover()}))})),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onDisplayedColumnsChanged()}))})),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){t.printLayout&&t.getAllCellCtrls().forEach((function(t){return t.onLeftChanged()}))}));var e=this.gridOptionsWrapper.isEnableRangeSelection();e&&(this.addManagedListener(this.eventService,le.EVENT_RANGE_SELECTION_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,le.EVENT_COLUMN_MOVED,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,le.EVENT_COLUMN_PINNED,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,le.EVENT_COLUMN_VISIBLE,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,le.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},e.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(t){return t()})),this.destroyFuncsForColumnListeners.length=0},e.prototype.refreshListenersToColumnsForCellComps=function(){var t=this;this.removeGridColumnListeners();var e=this.columnModel.getAllGridColumns();e&&e.forEach((function(e){var o=function(o){t.getAllCellCtrls().forEach((function(t){t.getColumn()===e&&o(t)}))},r=function(){o((function(t){return t.onLeftChanged()}))},n=function(){o((function(t){return t.onWidthChanged()}))},i=function(){o((function(t){return t.onFirstRightPinnedChanged()}))},s=function(){o((function(t){return t.onLastLeftPinnedChanged()}))},a=function(){o((function(t){return t.onColDefChanged()}))};e.addEventListener(mt.EVENT_LEFT_CHANGED,r),e.addEventListener(mt.EVENT_WIDTH_CHANGED,n),e.addEventListener(mt.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),e.addEventListener(mt.EVENT_LAST_LEFT_PINNED_CHANGED,s),e.addEventListener(mt.EVENT_COL_DEF_CHANGED,a),t.destroyFuncsForColumnListeners.push((function(){e.removeEventListener(mt.EVENT_LEFT_CHANGED,r),e.removeEventListener(mt.EVENT_WIDTH_CHANGED,n),e.removeEventListener(mt.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),e.removeEventListener(mt.EVENT_LAST_LEFT_PINNED_CHANGED,s),e.removeEventListener(mt.EVENT_COL_DEF_CHANGED,a)}))}))},e.prototype.onDomLayoutChanged=function(){var t=this.gridOptionsWrapper.getDomLayout()===ft.DOM_LAYOUT_PRINT,e=t||this.gridOptionsWrapper.isEmbedFullWidthRows(),o=e!==this.embedFullWidthRows||this.printLayout!==t;this.printLayout=t,this.embedFullWidthRows=e,o&&this.redrawAfterModelUpdate()},e.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t)},e.prototype.onPageLoaded=function(t){var e={recycleRows:t.keepRenderedRows,animate:t.animate,newData:t.newData,newPage:t.newPage,onlyBody:!0};this.redrawAfterModelUpdate(e)},e.prototype.getAllCellsForColumn=function(t){var e=[];return this.getAllRowCtrls().forEach((function(o){var r=o.getCellElement(t);r&&e.push(r)})),e},e.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},e.prototype.getTopRowCtrls=function(){return this.topRowCtrls},e.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},e.prototype.refreshFloatingRows=function(t,e){var o=this;t.forEach((function(t){t.destroyFirstPass(),t.destroySecondPass()})),t.length=0,e&&e.forEach((function(e){var r=new ip(e,o.beans,!1,!1,o.printLayout);t.push(r)}))},e.prototype.onPinnedRowDataChanged=function(){var t={recycleRows:!0};this.redrawAfterModelUpdate(t)},e.prototype.getRenderedIndexesForRowNodes=function(t){var e=[];return i(t)||y(this.rowCtrlsByRowIndex,(function(o,r){var n=r.getRowNode();t.indexOf(n)>=0&&e.push(o)})),e},e.prototype.redrawRows=function(t){var e=null!=t&&t.length>0;if(e){var o=this.getRenderedIndexesForRowNodes(t);this.removeRowCtrls(o)}this.redrawAfterModelUpdate({recycleRows:e})},e.prototype.getCellToRestoreFocusToAfterRefresh=function(t){var e,o=(null===(e=t)||void 0===e?void 0:e.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},e.prototype.redrawAfterModelUpdate=function(t){void 0===t&&(t={}),this.getLockOnRefresh();var e=this.getCellToRestoreFocusToAfterRefresh(t);this.updateContainerHeights(),this.scrollToTopIfNewData(t);var o=!this.printLayout&&!!t.recycleRows,r=t.animate&&this.gridOptionsWrapper.isAnimateRows(),n=o?this.recycleRows():null;o||this.removeAllRowComps();var i=function(){if(null==e||null==n)return!1;var t=!1;return y(n,(function(o,r){var n=r.getRowNode(),i=n.rowIndex==e.rowIndex,s=n.rowPinned==e.rowPinned;i&&s&&(t=!0)})),t},s=i();this.redraw(n,r),this.gridBodyCtrl.updateRowCount(),t.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),s||this.restoreFocusedCell(e),this.releaseLockOnRefresh()},e.prototype.scrollToTopIfNewData=function(t){var e=t.newData||t.newPage,o=this.gridOptionsWrapper.isSuppressScrollOnNewData();e&&!o&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},e.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.rowContainerHeightService.setModelHeight(t)}},e.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},e.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},e.prototype.isRefreshInProgress=function(){return this.refreshInProgress},e.prototype.restoreFocusedCell=function(t){t&&this.focusService.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})},e.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.getAllRowCtrls().forEach((function(e){e.stopEditing(t)}))},e.prototype.getAllCellCtrls=function(){var t=[];return this.getAllRowCtrls().forEach((function(e){return t=t.concat(e.getAllCellCtrls())})),t},e.prototype.getAllRowCtrls=function(){var t=this,e=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],o=fh(this.topRowCtrls,this.bottomRowCtrls,e);return Object.keys(this.rowCtrlsByRowIndex).forEach((function(e){return o.push(t.rowCtrlsByRowIndex[e])})),o},e.prototype.addRenderedRowListener=function(t,e,o){var r=this.rowCtrlsByRowIndex[e];r&&r.addEventListener(t,o)},e.prototype.flashCells=function(t){void 0===t&&(t={});var e=t.flashDelay,o=t.fadeDelay;this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){return t.flashCell({flashDelay:e,fadeDelay:o})}))},e.prototype.refreshCells=function(t){void 0===t&&(t={});var e={forceRefresh:t.force,newData:!1,suppressFlash:t.suppressFlash};this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){if(t.refreshShouldDestroy()){var o=t.getRowCtrl();o&&o.refreshCell(t)}else t.refreshCell(e)})),this.getFullWidthRowCtrls(t.rowNodes).forEach((function(t){t.refreshFullWidth()}))},e.prototype.getCellRendererInstances=function(t){var e=this.getCellCtrls(t.rowNodes,t.columns).map((function(t){return t.getCellRenderer()})).filter((function(t){return null!=t}));return e},e.prototype.getCellEditorInstances=function(t){var e=[];return this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){var o=t.getCellEditor();o&&e.push(o)})),e},e.prototype.getEditingCells=function(){var t=[];return this.getAllCellCtrls().forEach((function(e){if(e.isEditing()){var o=e.getCellPosition();t.push(o)}})),t},e.prototype.mapRowNodes=function(t){if(t){var e={top:{},bottom:{},normal:{}};return t.forEach((function(t){var o=t.id;t.rowPinned===ft.PINNED_TOP?e.top[o]=t:t.rowPinned===ft.PINNED_BOTTOM?e.bottom[o]=t:e.normal[o]=t})),e}},e.prototype.isRowInMap=function(t,e){var o=t.id,r=t.rowPinned;return r===ft.PINNED_BOTTOM?null!=e.bottom[o]:r===ft.PINNED_TOP?null!=e.top[o]:null!=e.normal[o]},e.prototype.getCellCtrls=function(t,e){var o,r=this,i=this.mapRowNodes(t),s=[];n(e)&&(o={},e.forEach((function(t){var e=r.columnModel.getGridColumn(t);n(e)&&(o[e.getId()]=!0)})));var a=function(t){var e=t.getRowNode();(null==i||r.isRowInMap(e,i))&&t.getAllCellCtrls().forEach((function(t){var e=t.getColumn().getId(),r=o&&!o[e];r||s.push(t)}))};return y(this.rowCtrlsByRowIndex,(function(t,e){a(e)})),this.topRowCtrls&&this.topRowCtrls.forEach(a),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(a),s},e.prototype.destroy=function(){this.removeAllRowComps(),t.prototype.destroy.call(this)},e.prototype.removeAllRowComps=function(){var t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t)},e.prototype.recycleRows=function(){var t=[];y(this.rowCtrlsByRowIndex,(function(e,o){var r=null==o.getRowNode().id;r&&t.push(e)})),this.removeRowCtrls(t);var e={};return y(this.rowCtrlsByRowIndex,(function(t,o){var r=o.getRowNode();e[r.id]=o})),this.rowCtrlsByRowIndex={},e},e.prototype.removeRowCtrls=function(t){var e=this;t.forEach((function(t){var o=e.rowCtrlsByRowIndex[t];o&&(o.destroyFirstPass(),o.destroySecondPass()),delete e.rowCtrlsByRowIndex[t]}))},e.prototype.redrawAfterScroll=function(){var t;if(this.stickyRowFeature&&$e()&&(t=this.getCellToRestoreFocusToAfterRefresh()||void 0),this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(),null!=t){var e=this.getCellToRestoreFocusToAfterRefresh();null!=t&&null==e&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(t))}},e.prototype.removeRowCompsNotToDraw=function(t){var e={};t.forEach((function(t){return e[t]=!0}));var o=Object.keys(this.rowCtrlsByRowIndex),r=o.filter((function(t){return!e[t]}));this.removeRowCtrls(r)},e.prototype.calculateIndexesToDraw=function(t){var e=this,o=yo(this.firstRenderedRow,this.lastRenderedRow),r=function(t,r){var n=r.getRowNode().rowIndex;null!=n&&(n<e.firstRenderedRow||n>e.lastRenderedRow)&&e.doNotUnVirtualiseRow(r)&&o.push(n)};return y(this.rowCtrlsByRowIndex,r),y(t,r),o.sort((function(t,e){return t-e})),o=o.filter((function(t){var o=e.paginationProxy.getRow(t);return o&&!o.sticky})),o},e.prototype.redraw=function(t,e,o){var r=this;void 0===e&&(e=!1),void 0===o&&(o=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows();var i=this.calculateIndexesToDraw(t);if(this.removeRowCompsNotToDraw(i),this.printLayout&&(e=!1),i.forEach((function(i){var s=r.createOrUpdateRowCtrl(i,t,e,o);n(s)})),t){var s=o&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout;s?this.beans.animationFrameService.addDestroyTask((function(){r.destroyRowCtrls(t,e),r.updateAllRowCtrls(),r.dispatchDisplayedRowsChanged()})):this.destroyRowCtrls(t,e)}this.updateAllRowCtrls()},e.prototype.dispatchDisplayedRowsChanged=function(){var t={type:le.EVENT_DISPLAYED_ROWS_CHANGED};this.eventService.dispatchEvent(t)},e.prototype.onDisplayedColumnsChanged=function(){var t=this.columnModel.isPinningLeft(),e=this.columnModel.isPinningRight(),o=this.pinningLeft!==t||e!==this.pinningRight;o&&(this.pinningLeft=t,this.pinningRight=e,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},e.prototype.redrawFullWidthEmbeddedRows=function(){var t=[];this.getFullWidthRowCtrls().forEach((function(e){var o=e.getRowNode().rowIndex;t.push(o.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(t),this.redrawAfterScroll()},e.prototype.getFullWidthRowCtrls=function(t){var e=this,o=this.mapRowNodes(t);return b(this.rowCtrlsByRowIndex).filter((function(t){if(!t.isFullWidth())return!1;var r=t.getRowNode();return!(null!=o&&!e.isRowInMap(r,o))}))},e.prototype.refreshFullWidthRows=function(t){var e=[],o=!!t,r=o?{}:void 0;o&&r&&t.forEach((function(t){return r[t.id]=!0})),this.getFullWidthRowCtrls().forEach((function(t){var n=t.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=t.refreshFullWidth();if(!a){var l=t.getRowNode().rowIndex;e.push(l.toString())}})),this.removeRowCtrls(e),this.redrawAfterScroll()},e.prototype.createOrUpdateRowCtrl=function(t,e,o,r){var i,s=this.rowCtrlsByRowIndex[t];s||(i=this.paginationProxy.getRow(t),n(i)&&n(e)&&e[i.id]&&i.alreadyRendered&&(s=e[i.id],e[i.id]=null));var a=!s;if(a){if(i||(i=this.paginationProxy.getRow(t)),!n(i))return;s=this.createRowCon(i,o,r)}return i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[t]=s,s},e.prototype.destroyRowCtrls=function(t,e){var o=this,r=[];y(t,(function(t,n){n&&(o.cachedRowCtrls&&n.isCacheable()?o.cachedRowCtrls.addRow(n):(n.destroyFirstPass(),e?(o.zombieRowCtrls[n.getInstanceId()]=n,r.push((function(){n.destroySecondPass(),delete o.zombieRowCtrls[n.getInstanceId()]}))):n.destroySecondPass()))})),e&&(r.push((function(){o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()})),W(r))},e.prototype.workOutFirstAndLastRowsToRender=function(){var t,e;if(this.paginationProxy.isRowsToRender())if(this.printLayout)t=this.paginationProxy.getPageFirstRow(),e=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),t=v,e=y}else t=0,e=-1;var w=this.gridOptionsWrapper.getDomLayout()===ft.DOM_LAYOUT_NORMAL,E=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),R=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);w&&!E&&e-t>R&&(e=t+R);var O=t!==this.firstRenderedRow,S=e!==this.lastRenderedRow;if(O||S){this.firstRenderedRow=t,this.lastRenderedRow=e;var _={type:le.EVENT_VIEWPORT_CHANGED,firstRow:t,lastRow:e};this.eventService.dispatchEvent(_)}},e.prototype.dispatchFirstDataRenderedEvent=function(){var t=this;if(!this.dataFirstRenderedFired){this.dataFirstRenderedFired=!0;var e={type:le.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame((function(){t.beans.eventService.dispatchEvent(e)}))}},e.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(t,e){var o=this.paginationProxy.ensureRowHeightsValid(t,e,-1,-1);return o&&this.updateContainerHeights(),o},e.prototype.getFirstVisibleVerticalPixel=function(){return this.firstVisibleVPixel},e.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},e.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},e.prototype.doNotUnVirtualiseRow=function(t){var e=!1,o=!0,r=t.getRowNode(),n=this.focusService.isRowNodeFocused(r),i=t.isEditing(),s=r.detail,a=n||i||s;if(!a)return e;var l=this.paginationProxy.isRowPresent(r);return l?o:e},e.prototype.createRowCon=function(t,e,o){var r=this.cachedRowCtrls?this.cachedRowCtrls.getRow(t):null;if(r)return r;var n=this.gridOptionsWrapper.isSuppressAnimationFrame(),i=o&&!n&&!this.printLayout,s=new ip(t,this.beans,e,i,this.printLayout);return s},e.prototype.getRenderedNodes=function(){var t=this.rowCtrlsByRowIndex;return Object.keys(t).map((function(e){return t[e].getRowNode()}))},e.prototype.getRowByPosition=function(t){var e,o=t.rowIndex;switch(t.rowPinned){case ft.PINNED_TOP:e=this.topRowCtrls[o];break;case ft.PINNED_BOTTOM:e=this.bottomRowCtrls[o];break;default:e=this.rowCtrlsByRowIndex[o],e||(e=this.getStickyTopRowCtrls().find((function(t){return t.getRowNode().rowIndex===o}))||null);break}return e},e.prototype.getRowNode=function(t){switch(t.rowPinned){case ft.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case ft.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},e.prototype.isRangeInRenderedViewport=function(t,e){var o=null==t||null==e;if(o)return!1;var r=t>this.lastRenderedRow,n=e<this.firstRenderedRow,i=!n&&!r;return i},dh([nt("animationFrameService")],e.prototype,"animationFrameService",void 0),dh([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),dh([nt("columnModel")],e.prototype,"columnModel",void 0),dh([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),dh([nt("rowModel")],e.prototype,"rowModel",void 0),dh([nt("focusService")],e.prototype,"focusService",void 0),dh([nt("beans")],e.prototype,"beans",void 0),dh([nt("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),dh([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),dh([et],e.prototype,"postConstruct",null),e=dh([rt("rowRenderer")],e),e}(re),vh=function(){function t(t){this.entriesMap={},this.entriesList=[],this.maxCount=t}return t.prototype.addRow=function(t){if(this.entriesMap[t.getRowNode().id]=t,this.entriesList.push(t),t.setCached(!0),this.entriesList.length>this.maxCount){var e=this.entriesList[0];e.destroyFirstPass(),e.destroySecondPass(),this.removeFromCache(e)}},t.prototype.getRow=function(t){if(null==t||null==t.id)return null;var e=this.entriesMap[t.id];if(!e)return null;this.removeFromCache(e),e.setCached(!1);var o=e.getRowNode()!=t;return o?null:e},t.prototype.removeFromCache=function(t){var e=t.getRowNode().id;delete this.entriesMap[e],Pt(this.entriesList,t)},t.prototype.getEntries=function(){return this.entriesList},t}(),yh=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),mh=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Ch=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yh(e,t),e.prototype.formatValue=function(t,e,o,r,n){void 0===n&&(n=!0);var i,s=null,a=t.getColDef();if(r?i=r:n&&(i=e&&e.rowPinned&&a.pinnedRowValueFormatter?a.pinnedRowValueFormatter:a.valueFormatter),i){var l={value:o,node:e,data:e?e.data:null,colDef:a,column:t,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([nt("expressionService")],e.prototype,"expressionService",void 0),e=mh([rt("valueFormatterService")],e),e}(re),wh=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Eh=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Rh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wh(e,t),e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(t){var e=t===ft.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return s(e)},e.prototype.isRowsToRender=function(t){return!this.isEmpty(t)},e.prototype.getRowAtPixel=function(t,e){var o=e===ft.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>=t)return r}return o.length-1},e.prototype.setPinnedTopRowData=function(t){this.pinnedTopRows=this.createNodesFromData(t,!0);var e={type:le.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(e)},e.prototype.setPinnedBottomRowData=function(t){this.pinnedBottomRows=this.createNodesFromData(t,!1);var e={type:le.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(e)},e.prototype.createNodesFromData=function(t,e){var o=this,r=[];if(t){var n=0;t.forEach((function(t,i){var s=new Ta(o.beans);s.data=t;var a=e?Ta.ID_PREFIX_TOP_PINNED:Ta.ID_PREFIX_BOTTOM_PINNED;s.id=a+i,s.rowPinned=e?ft.PINNED_TOP:ft.PINNED_BOTTOM,s.setRowTop(n),s.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(s).height),s.setRowIndex(i),n+=s.rowHeight,r.push(s)}))}return r},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(t){return this.pinnedTopRows[t]},e.prototype.getPinnedBottomRow=function(t){return this.pinnedBottomRows[t]},e.prototype.forEachPinnedTopRow=function(t){s(this.pinnedTopRows)||this.pinnedTopRows.forEach(t)},e.prototype.forEachPinnedBottomRow=function(t){s(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(t)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(t){if(!t||0===t.length)return 0;var e=Et(t);return e.rowTop+e.rowHeight},Eh([nt("beans")],e.prototype,"beans",void 0),Eh([et],e.prototype,"init",null),e=Eh([rt("pinnedRowModel")],e),e}(re);(function(t){t["Applied"]="Applied",t["StoreNotFound"]="StoreNotFound",t["StoreLoading"]="StoreLoading",t["StoreWaitingToLoad"]="StoreWaitingToLoad",t["StoreLoadingFailed"]="StoreLoadingFailed",t["StoreWrongType"]="StoreWrongType",t["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 t(t,e){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=t,this.pathRoot={rowNode:e,children:null},this.mapToItems[e.id]=this.pathRoot}return t.prototype.setInactive=function(){this.active=!1},t.prototype.isActive=function(){return this.active},t.prototype.depthFirstSearchChangedPath=function(t,e){if(t.children)for(var o=0;o<t.children.length;o++)this.depthFirstSearchChangedPath(t.children[o],e);e(t.rowNode)},t.prototype.depthFirstSearchEverything=function(t,e,o){if(t.childrenAfterGroup)for(var r=0;r<t.childrenAfterGroup.length;r++){var n=t.childrenAfterGroup[r];n.childrenAfterGroup?this.depthFirstSearchEverything(t.childrenAfterGroup[r],e,o):o&&e(n)}e(t)},t.prototype.forEachChangedNodeDepthFirst=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1),this.active&&!o?this.depthFirstSearchChangedPath(this.pathRoot,t):this.depthFirstSearchEverything(this.pathRoot.rowNode,t,e)},t.prototype.executeFromRootNode=function(t){t(this.pathRoot.rowNode)},t.prototype.createPathItems=function(t){var e=t,o=0;while(!this.mapToItems[e.id]){var r={rowNode:e,children:null};this.mapToItems[e.id]=r,o++,e=e.parent}return o},t.prototype.populateColumnsMap=function(t,e){var o=this;if(this.keepingColumns&&e){var r=t;while(r)this.nodeIdsToColumns[r.id]||(this.nodeIdsToColumns[r.id]={}),e.forEach((function(t){return o.nodeIdsToColumns[r.id][t.getId()]=!0})),r=r.parent}},t.prototype.linkPathItems=function(t,e){for(var o=t,r=0;r<e;r++){var n=this.mapToItems[o.id],i=this.mapToItems[o.parent.id];i.children||(i.children=[]),i.children.push(n),o=o.parent}},t.prototype.addParentNode=function(t,e){if(t&&!t.isRowPinned()){var o=this.createPathItems(t);this.linkPathItems(t,o),this.populateColumnsMap(t,e)}},t.prototype.canSkip=function(t){return this.active&&!this.mapToItems[t.id]},t.prototype.getValueColumnsForNode=function(t,e){if(!this.keepingColumns)return e;var o=this.nodeIdsToColumns[t.id],r=e.filter((function(t){return o[t.getId()]}));return r},t.prototype.getNotValueColumnsForNode=function(t,e){if(!this.keepingColumns)return null;var o=this.nodeIdsToColumns[t.id],r=e.filter((function(t){return!o[t.getId()]}));return r},t}(),_h=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),bh=function(t){function e(o){var r=t.call(this)||this;return r.state=e.STATE_WAITING_TO_LOAD,r.version=0,r.id=o,r}return _h(e,t),e.prototype.getId=function(){return this.id},e.prototype.load=function(){this.state=e.STATE_LOADING,this.loadFromDatasource()},e.prototype.getVersion=function(){return this.version},e.prototype.setStateWaitingToLoad=function(){this.version++,this.state=e.STATE_WAITING_TO_LOAD},e.prototype.getState=function(){return this.state},e.prototype.pageLoadFailed=function(t){var o=this.isRequestMostRecentAndLive(t);o&&(this.state=e.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},e.prototype.success=function(t,e){this.successCommon(t,e)},e.prototype.pageLoaded=function(t,e,o){this.successCommon(t,{rowData:e,rowCount:o})},e.prototype.isRequestMostRecentAndLive=function(t){var e=t===this.version,o=this.isAlive();return e&&o},e.prototype.successCommon=function(t,o){this.dispatchLoadCompleted();var r=this.isRequestMostRecentAndLive(t);r&&(this.state=e.STATE_LOADED,this.processServerResult(o))},e.prototype.dispatchLoadCompleted=function(t){void 0===t&&(t=!0);var o={type:e.EVENT_LOAD_COMPLETE,success:t,block:this};this.dispatchEvent(o)},e.EVENT_LOAD_COMPLETE="loadComplete",e.STATE_WAITING_TO_LOAD="needsLoading",e.STATE_LOADING="loading",e.STATE_LOADED="loaded",e.STATE_FAILED="failed",e}(re),Ph=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Th=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Dh=function(t,e){return function(o,r){e(o,r,t)}},Ah=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.activeBlockLoadsCount=0,e.blocks=[],e.active=!0,e}var o;return Ph(e,t),o=e,e.prototype.postConstruct=function(){this.maxConcurrentRequests=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();var t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();t&&t>0&&(this.checkBlockToLoadDebounce=yi.debounce(this.performCheckBlocksToLoad.bind(this),t))},e.prototype.setBeans=function(t){this.logger=t.create("RowNodeBlockLoader")},e.prototype.addBlock=function(t){this.blocks.push(t),t.addEventListener(bh.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},e.prototype.removeBlock=function(t){yi.removeFromArray(this.blocks,t)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.active=!1},e.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:o.BLOCK_LOADER_FINISHED_EVENT})},e.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},e.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 t=void 0!==this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0,e=this.blocks.filter((function(t){return t.getState()===bh.STATE_WAITING_TO_LOAD})).slice(0,t);this.activeBlockLoadsCount+=e.length,e.forEach((function(t){return t.load()})),this.printCacheStatus()}},e.prototype.getBlockState=function(){var t={};return this.blocks.forEach((function(e){var o=e.getBlockStateJson(),r=o.id,n=o.state;t[r]=n})),t},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},e.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},e.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",Th([et],e.prototype,"postConstruct",null),Th([Dh(0,at("loggerFactory"))],e.prototype,"setBeans",null),e=o=Th([rt("rowNodeBlockLoader")],e),e}(re),Nh=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ih=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Gh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPage=0,e.topDisplayedRowIndex=0,e.bottomDisplayedRowIndex=0,e.pixelOffset=0,e.masterRowCount=0,e}return Nh(e,t),e.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,le.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},e.prototype.ensureRowHeightsValid=function(t,e,o,r){var n=this.rowModel.ensureRowHeightsValid(t,e,this.getPageFirstRow(),this.getPageLastRow());return n&&this.calculatePages(),n},e.prototype.onModelUpdated=function(t){this.calculatePages();var e={type:le.EVENT_PAGINATION_CHANGED,animate:!!t&&t.animate,newData:!!t&&t.newData,newPage:!!t&&t.newPage,keepRenderedRows:!!t&&t.keepRenderedRows};this.eventService.dispatchEvent(e)},e.prototype.onPaginationPageSizeChanged=function(){this.calculatePages();var t={type:le.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0};this.eventService.dispatchEvent(t)},e.prototype.goToPage=function(t){if(this.active&&this.currentPage!==t){this.currentPage=t;var e={type:le.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0};this.onModelUpdated(e)}},e.prototype.getPixelOffset=function(){return this.pixelOffset},e.prototype.getRow=function(t){return this.rowModel.getRow(t)},e.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},e.prototype.getRowIndexAtPixel=function(t){return this.rowModel.getRowIndexAtPixel(t)},e.prototype.getCurrentPageHeight=function(){return i(this.topRowBounds)||i(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},e.prototype.getCurrentPagePixelRange=function(){var t=this.topRowBounds?this.topRowBounds.rowTop:0,e=this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0;return{pageFirstPixel:t,pageLastPixel:e}},e.prototype.isRowPresent=function(t){if(!this.rowModel.isRowPresent(t))return!1;var e=t.rowIndex>=this.topDisplayedRowIndex&&t.rowIndex<=this.bottomDisplayedRowIndex;return e},e.prototype.isEmpty=function(){return this.rowModel.isEmpty()},e.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},e.prototype.getNodesInRangeForSelection=function(t,e){return this.rowModel.getNodesInRangeForSelection(t,e)},e.prototype.forEachNode=function(t){return this.rowModel.forEachNode(t)},e.prototype.getType=function(){return this.rowModel.getType()},e.prototype.getRowBounds=function(t){var e=this.rowModel.getRowBounds(t);return e.rowIndex=t,e},e.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},e.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},e.prototype.getRowCount=function(){return this.rowModel.getRowCount()},e.prototype.getPageForIndex=function(t){return Math.floor(t/this.pageSize)},e.prototype.goToPageWithIndex=function(t){if(this.active){var e=this.getPageForIndex(t);this.goToPage(e)}},e.prototype.isRowInPage=function(t){if(!this.active)return!0;var e=this.getPageForIndex(t.rowIndex);return e===this.currentPage},e.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},e.prototype.getCurrentPage=function(){return this.currentPage},e.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},e.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},e.prototype.goToFirstPage=function(){this.goToPage(0)},e.prototype.goToLastPage=function(){var t=this.rowModel.getRowCount(),e=Math.floor(t/this.pageSize);this.goToPage(e)},e.prototype.getPageSize=function(){return this.pageSize},e.prototype.getTotalPages=function(){return this.totalPages},e.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},e.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(n(this.topRowBounds)?this.topRowBounds.rowTop:0)},e.prototype.setPixelOffset=function(t){this.pixelOffset!==t&&(this.pixelOffset=t,this.eventService.dispatchEvent({type:le.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},e.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},e.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!mo(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var e=this.pageSize*this.currentPage,o=this.pageSize*(this.currentPage+1)-1;if(o>t&&(o=t),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(e),o===t)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var r=this.rowModel.getTopLevelRowDisplayedIndex(o+1);this.bottomDisplayedRowIndex=r-1}}},e.prototype.getMasterRowCount=function(){return this.masterRowCount},e.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!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>t&&(this.bottomDisplayedRowIndex=t)}else this.setZeroRows()},e.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},Ih([nt("rowModel")],e.prototype,"rowModel",void 0),Ih([et],e.prototype,"postConstruct",null),e=Ih([rt("paginationProxy")],e),e}(re),Fh=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Lh=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Mh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fh(e,t),e.prototype.processAllCellClasses=function(t,e,o,r){this.processClassRules(t.cellClassRules,e,o,r),this.processStaticCellClasses(t,e,o)},e.prototype.processClassRules=function(t,e,o,r){if(null!=t){for(var n=Object.keys(t),i={},s={},a=function(o){var r,a=n[o],u=t[a];"string"===typeof u?r=l.expressionService.evaluate(u,e):"function"===typeof u&&(r=u(e)),a.split(" ").forEach((function(t){null!=t&&""!=t.trim()&&(r?i[t]=!0:s[t]=!0)}))},l=this,u=0;u<n.length;u++)a(u);r&&Object.keys(s).forEach(r),Object.keys(i).forEach(o)}},e.prototype.getStaticCellClasses=function(t,e){var o,r=t.cellClass;if(!r)return[];if("function"===typeof r){var n=r;o=n(e)}else o=r;return"string"===typeof o&&(o=[o]),o||[]},e.prototype.processStaticCellClasses=function(t,e,o){var r=this.getStaticCellClasses(t,e);r.forEach((function(t){o(t)}))},Lh([nt("expressionService")],e.prototype,"expressionService",void 0),e=Lh([rt("stylingService")],e),e}(re),xh=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Hh=function(t){function e(e){return t.call(this,e,"ag-radio-button","radio")||this}return xh(e,t),e.prototype.isSelected=function(){return this.eInput.checked},e.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},e.prototype.addInputListeners=function(){t.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,le.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},e.prototype.onChange=function(t){t.selected&&t.name&&this.eInput.name&&this.eInput.name===t.name&&t.id&&this.eInput.id!==t.id&&this.setValue(!1,!0)},e}(Zc),Vh=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Wh=function(t){function e(e){return t.call(this,e,"ag-toggle-button")||this}return Vh(e,t),e.prototype.setValue=function(e,o){return t.prototype.setValue.call(this,e,o),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},e}(Zc),kh=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Bh=function(t){function e(e,o,r){return void 0===o&&(o="ag-text-field"),void 0===r&&(r="text"),t.call(this,e,o,r)||this}return kh(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},e.prototype.setValue=function(e,o){var r=t.prototype.setValue.call(this,e,o);return this.eInput.value!==e&&(this.eInput.value=n(e)?e:""),r},e.prototype.preventDisallowedCharacters=function(){var t=new RegExp("["+this.config.allowedCharPattern+"]"),e=function(e){e.key&&!t.test(e.key)&&e.preventDefault()};this.addManagedListener(this.eInput,"keypress",e),this.addManagedListener(this.eInput,"paste",(function(e){var o,r=null===(o=e.clipboardData)||void 0===o?void 0:o.getData("text");r&&r.split("").some((function(e){return!t.test(e)}))&&e.preventDefault()}))},e}(cs),jh=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Uh=function(t){function e(e){return t.call(this,e,"ag-text-area",null,"textarea")||this}return jh(e,t),e.prototype.setValue=function(e,o){var r=t.prototype.setValue.call(this,e,o);return this.eInput.value=e,r},e.prototype.setCols=function(t){return this.eInput.cols=t,this},e.prototype.setRows=function(t){return this.eInput.rows=t,this},e}(cs),zh=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Kh=function(t){function e(e){return t.call(this,e,"ag-number-field","number")||this}return zh(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var t=parseFloat(e.eInput.value),o=isNaN(t)?"":e.normalizeValue(t.toString());e.value!==o&&e.setValue(o)})),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},e.prototype.onWheel=function(t){document.activeElement===this.eInput&&t.preventDefault()},e.prototype.normalizeValue=function(t){if(""===t)return"";this.precision&&(t=this.adjustPrecision(t));var e=parseFloat(t);return null!=this.min&&e<this.min?t=this.min.toString():null!=this.max&&e>this.max&&(t=this.max.toString()),t},e.prototype.adjustPrecision=function(t){if(this.precision){var e=parseFloat(t).toFixed(this.precision);t=parseFloat(e).toString()}return t},e.prototype.setMin=function(t){return this.min===t||(this.min=t,Xr(this.eInput,"min",t)),this},e.prototype.setMax=function(t){return this.max===t||(this.max=t,Xr(this.eInput,"max",t)),this},e.prototype.setPrecision=function(t){return this.precision=t,this},e.prototype.setStep=function(t){return this.step===t||(this.step=t,Xr(this.eInput,"step",t)),this},e.prototype.setValue=function(e,o){e=this.adjustPrecision(e);var r=this.normalizeValue(e);return e!=r?this:t.prototype.setValue.call(this,e,o)},e}(Bh),Yh=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),qh=function(t){function e(e){return t.call(this,e,"ag-range-field","range")||this}return Yh(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this);var e=this.config,o=e.min,r=e.max,n=e.step;null!=o&&this.setMinValue(o),null!=r&&this.setMaxValue(r),this.setStep(n||1)},e.prototype.addInputListeners=function(){var t=this;this.addManagedListener(this.eInput,"input",(function(e){var o=e.target.value;t.setValue(o)}))},e.prototype.setMinValue=function(t){return this.min=t,this.eInput.setAttribute("min",t.toString()),this},e.prototype.setMaxValue=function(t){return this.max=t,this.eInput.setAttribute("max",t.toString()),this},e.prototype.setStep=function(t){return this.eInput.setAttribute("step",t.toString()),this},e.prototype.setValue=function(e,o){null!=this.min&&(e=Math.max(parseFloat(e),this.min).toString()),null!=this.max&&(e=Math.min(parseFloat(e),this.max).toString());var r=t.prototype.setValue.call(this,e,o);return this.eInput.value=e,r},e}(cs),Xh=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Qh=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Jh=function(t){function e(o){var r=t.call(this,o,e.TEMPLATE)||this;return r.labelAlignment="top",r}return Xh(e,t),e.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},e.prototype.onValueChange=function(t){var e=this,o=$i.EVENT_CHANGED;return this.addManagedListener(this.eText,o,(function(){var o=parseFloat(e.eText.getValue());e.eSlider.setValue(o.toString(),!0),t(o||0)})),this.addManagedListener(this.eSlider,o,(function(){var o=e.eSlider.getValue();e.eText.setValue(o,!0),t(parseFloat(o))})),this},e.prototype.setSliderWidth=function(t){return this.eSlider.setWidth(t),this},e.prototype.setTextFieldWidth=function(t){return this.eText.setWidth(t),this},e.prototype.setMinValue=function(t){return this.eSlider.setMinValue(t),this.eText.setMin(t),this},e.prototype.setMaxValue=function(t){return this.eSlider.setMaxValue(t),this.eText.setMax(t),this},e.prototype.getValue=function(){return this.eText.getValue()},e.prototype.setValue=function(t){return this.getValue()===t||(this.eText.setValue(t,!0),this.eSlider.setValue(t,!0),this.dispatchEvent({type:$i.EVENT_CHANGED})),this},e.prototype.setStep=function(t){return this.eSlider.setStep(t),this.eText.setStep(t),this},e.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")],e.prototype,"eLabel",void 0),Qh([Ai("eSlider")],e.prototype,"eSlider",void 0),Qh([Ai("eText")],e.prototype,"eText",void 0),Qh([et],e.prototype,"init",null),e}(Ji),Zh=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),$h=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},tf=function(t){function e(o){var r=t.call(this,o,e.TEMPLATE)||this;return r.radius=0,r.offsetX=0,r.offsetY=0,r}return Zh(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(t){e.parentCircleRect=e.eParentCircle.getBoundingClientRect()},onDragging:function(t){return e.calculateAngleDrag(t)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(t){null!=t&&""!==t||(t="0"),t=e.eAngleValue.normalizeValue(t);var o=parseFloat(t);o>180&&(o-=360),e.setValue(o)})),this.updateNumberInput(),n(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,$i.EVENT_CHANGED,(function(){var t=e.gridOptionsWrapper.getDocument();e.eAngleValue.getInputElement().contains(t.activeElement)||e.updateNumberInput()}))},e.prototype.updateNumberInput=function(){var t=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(t.toString())},e.prototype.positionChildCircle=function(t){var e=this.parentCircleRect||{width:24,height:24},o=this.eChildCircle,r=e.width/2,n=e.height/2;o.style.left=r+8*Math.cos(t)+"px",o.style.top=n+8*Math.sin(t)+"px"},e.prototype.calculatePolar=function(){var t=this.offsetX,e=this.offsetY,o=Math.atan2(e,t);this.degrees=this.toDegrees(o),this.radius=Math.sqrt(t*t+e*e),this.positionChildCircle(o)},e.prototype.calculateCartesian=function(){var t=this.toRadians(this.getValue()),e=this.getRadius();this.setOffsetX(Math.cos(t)*e).setOffsetY(Math.sin(t)*e)},e.prototype.setOffsetX=function(t){return this.offsetX!==t&&(this.offsetX=t,this.calculatePolar()),this},e.prototype.setOffsetY=function(t){return this.offsetY!==t&&(this.offsetY=t,this.calculatePolar()),this},e.prototype.calculateAngleDrag=function(t){var e=this.parentCircleRect,o=e.width/2,r=e.height/2,n=t.clientX-e.left,i=t.clientY-e.top,s=n-o,a=i-r,l=Math.atan2(a,s);this.setValue(l,!0)},e.prototype.toDegrees=function(t){return t/Math.PI*180},e.prototype.toRadians=function(t){return t/180*Math.PI},e.prototype.normalizeNegativeValue=function(t){return t<0?360+t:t},e.prototype.normalizeAngle180=function(t){return t%=2*Math.PI,t<-Math.PI?t+=2*Math.PI:t>=Math.PI&&(t-=2*Math.PI),t},e.prototype.getRadius=function(){return this.radius},e.prototype.setRadius=function(t){return this.radius===t||(this.radius=t,this.calculateCartesian()),this},e.prototype.onValueChange=function(t){var e=this;return this.addManagedListener(this,$i.EVENT_CHANGED,(function(){t(e.degrees)})),this},e.prototype.getValue=function(t){return t?this.toRadians(this.degrees):this.degrees},e.prototype.setValue=function(t,e){var o;return o=e?t:this.normalizeAngle180(this.toRadians(t)),t=this.toDegrees(o),this.degrees!==t&&(this.degrees=Math.floor(t),this.calculateCartesian(),this.positionChildCircle(o),this.dispatchEvent({type:$i.EVENT_CHANGED})),this},e.prototype.setWidth=function(t){return Vr(this.getGui(),t),this},e.prototype.setDisabled=function(e){return t.prototype.setDisabled.call(this,e),this.eAngleValue.setDisabled(e),this},e.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),t.prototype.destroy.call(this)},e.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")],e.prototype,"eLabel",void 0),$h([Ai("eParentCircle")],e.prototype,"eParentCircle",void 0),$h([Ai("eChildCircle")],e.prototype,"eChildCircle",void 0),$h([Ai("eAngleValue")],e.prototype,"eAngleValue",void 0),$h([nt("dragService")],e.prototype,"dragService",void 0),e}(Ji),ef=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),of=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},rf=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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(t){function e(o){var r=t.call(this,e.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 ef(e,t),e.prototype.postConstruct=function(){var t=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},e.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},e.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},e.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},e.prototype.onSpectrumDraggerDown=function(t){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(t)},e.prototype.onSpectrumDraggerMove=function(t){this.isSpectrumDragging&&this.moveDragger(t)},e.prototype.onSpectrumHueDown=function(t){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(t)},e.prototype.onSpectrumHueMove=function(t){this.isSpectrumHueDragging&&this.moveHueSlider(t)},e.prototype.onSpectrumAlphaDown=function(t){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(t)},e.prototype.onSpectrumAlphaMove=function(t){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(t)},e.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},e.prototype.moveDragger=function(t){var e=this.spectrumValRect;if(e){var o=t.clientX-e.left,r=t.clientY-e.top;o=Math.max(o,0),o=Math.min(o,e.width),r=Math.max(r,0),r=Math.min(r,e.height),this.setSpectrumValue(o/e.width,1-r/e.height)}},e.prototype.moveHueSlider=function(t){var e=this.spectrumHueRect;if(e){var o=this.spectrumHueSlider,r=o.getBoundingClientRect(),n=t.clientX-e.left;n=Math.max(n,0),n=Math.min(n,e.width),this.H=1-n/e.width,o.style.left=n+r.width/2+"px",this.update()}},e.prototype.moveAlphaSlider=function(t){var e=this.spectrumAlphaRect;if(e){var o=this.spectrumAlphaSlider,r=o.getBoundingClientRect(),n=t.clientX-e.left;n=Math.max(n,0),n=Math.min(n,e.width),this.A=n/e.width,o.style.left=n+r.width/2+"px",this.update()}},e.prototype.update=function(){var t=nr.fromHSB(360*this.H,this.S,this.B,this.A),e=nr.fromHSB(360*this.H,1,1),o=t.toRgbaString(),r=this.picker,n=nr.fromString(r.getValue());n.toRgbaString()!==o&&(this.colorChanged=!0),r.setValue(o),this.spectrumColor.style.backgroundColor=e.toRgbaString(),this.spectrumDragger.style.backgroundColor=o},e.prototype.setSpectrumValue=function(t,e){var o=this.spectrumValRect||this.refreshSpectrumRect();if(o){var r=this.spectrumDragger,n=r.getBoundingClientRect();t=Math.max(0,t),t=Math.min(1,t),e=Math.max(0,e),e=Math.min(1,e),this.S=t,this.B=e,r.style.left=t*o.width-n.width/2+"px",r.style.top=(1-e)*o.height-n.height/2+"px",this.update()}},e.prototype.initRecentColors=function(){var t=e.recentColors,o=t.map((function(t,e){return'<div class="ag-recent-color" id='+e+' style="background-color: '+t+'; width: 15px; height: 15px;" recent-color="'+t+'"></div>'}));this.recentColors.innerHTML=o.join("")},e.prototype.setValue=function(t){var e=nr.fromString(t),o=rf(e.toHSB(),3),r=o[0],n=o[1],i=o[2];this.H=(isNaN(r)?0:r)/360,this.A=e.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)},e.prototype.onRecentColorClick=function(t){var o=t.target;if(n(o.id)){var r=parseInt(o.id,10);this.setValue(e.recentColors[r]),this.destroy()}},e.prototype.addRecentColor=function(){var t=nr.fromHSB(360*this.H,this.S,this.B,this.A),o=t.toRgbaString(),r=e.recentColors;this.colorChanged&&r[0]!==o&&(r=r.filter((function(t){return t!=o})),r=[o].concat(r),r.length>e.maxRecentColors&&(r=r.slice(0,e.maxRecentColors)),e.recentColors=r)},e.prototype.destroy=function(){this.addRecentColor(),t.prototype.destroy.call(this)},e.maxRecentColors=8,e.recentColors=[],e.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")],e.prototype,"spectrumColor",void 0),of([Ai("spectrumVal")],e.prototype,"spectrumVal",void 0),of([Ai("spectrumDragger")],e.prototype,"spectrumDragger",void 0),of([Ai("spectrumHue")],e.prototype,"spectrumHue",void 0),of([Ai("spectrumHueSlider")],e.prototype,"spectrumHueSlider",void 0),of([Ai("spectrumAlpha")],e.prototype,"spectrumAlpha",void 0),of([Ai("spectrumAlphaSlider")],e.prototype,"spectrumAlphaSlider",void 0),of([Ai("recentColors")],e.prototype,"recentColors",void 0),of([et],e.prototype,"postConstruct",null),e}(Di),sf=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),af=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},lf=function(t){function e(o){var r=t.call(this,e.getTemplate(o))||this;return r.closable=!0,r.config=o,r}return sf(e,t),e.getTemplate=function(t){var e=t&&t.cssIdentifier||"default";return'<div class="ag-panel ag-'+e+'-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-panel-title-bar ag-'+e+'-panel-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-panel-title-bar-title ag-'+e+'-panel-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+e+'-panel-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+e+'-panel-content-wrapper"></div>\n </div>'},e.prototype.postConstruct=function(){var t=this,e=this.config,o=e.component,r=e.closable,n=e.hideTitleBar,i=e.title,s=e.minWidth,a=void 0===s?250:s,l=e.width,u=e.minHeight,p=void 0===u?250:u,c=e.height,d=e.centered,h=e.popup,f=e.x,g=e.y;this.positionableFeature=new eh(this.getGui(),{minWidth:a,width:l,minHeight:p,height:c,centered:d,x:f,y:g,popup:h,calculateTopBuffer:function(){return t.positionableFeature.getHeight()-t.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(e){var o=t.gridOptionsWrapper.getDocument();if(v.contains(e.relatedTarget)||v.contains(o.activeElement)||t.eTitleBarButtons.contains(e.target))e.preventDefault();else{var r=t.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")},e.prototype.renderComponent=function(){var t=this,e=this.getGui();e.focus(),this.close=function(){e.parentElement.removeChild(e),t.destroy()}},e.prototype.getHeight=function(){return this.positionableFeature.getHeight()},e.prototype.setHeight=function(t){this.positionableFeature.setHeight(t)},e.prototype.getWidth=function(){return this.positionableFeature.getWidth()},e.prototype.setWidth=function(t){this.positionableFeature.setWidth(t)},e.prototype.setClosable=function(t){if(t!==this.closable&&(this.closable=t),t){var o=this.closeButtonComp=new Di(e.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)}},e.prototype.setBodyComponent=function(t){t.setParentComponent(this),this.eContentWrapper.appendChild(t.getGui())},e.prototype.addTitleBarButton=function(t,e){var o=this.eTitleBarButtons,r=o.children,n=r.length;null==e&&(e=n),e=Math.max(0,Math.min(e,n)),t.addCssClass("ag-panel-title-bar-button");var i=t.getGui();0===e?o.insertAdjacentElement("afterbegin",i):e===n?o.insertAdjacentElement("beforeend",i):r[e-1].insertAdjacentElement("afterend",i),t.setParentComponent(this)},e.prototype.getBodyHeight=function(){return gr(this.eContentWrapper)},e.prototype.getBodyWidth=function(){return vr(this.eContentWrapper)},e.prototype.setTitle=function(t){this.eTitle.innerText=t},e.prototype.onBtClose=function(){this.close()},e.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var e=this.getGui();e&&e.offsetParent&&this.close(),t.prototype.destroy.call(this)},e.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',af([Ai("eContentWrapper")],e.prototype,"eContentWrapper",void 0),af([Ai("eTitleBar")],e.prototype,"eTitleBar",void 0),af([Ai("eTitleBarButtons")],e.prototype,"eTitleBarButtons",void 0),af([Ai("eTitle")],e.prototype,"eTitle",void 0),af([et],e.prototype,"postConstruct",null),e}(Di),uf=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),pf=function(){return pf=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},pf.apply(this,arguments)},cf=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},df=function(t){function e(e){var o=t.call(this,pf(pf({},e),{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(e,t),e.prototype.postConstruct=function(){var e=this,o=this.getGui(),r=this.config,n=r.movable,i=r.resizable,s=r.maximizable;this.addCssClass("ag-dialog"),t.prototype.postConstruct.call(this),this.addManagedListener(o,"focusin",(function(t){o.contains(t.relatedTarget)||e.popupService.bringPopupToFront(o)})),n&&this.setMovable(n),s&&this.setMaximizable(s),i&&this.setResizable(i)},e.prototype.renderComponent=function(){var t=this.getGui(),e=this.config,o=e.alwaysOnTop,r=e.modal,n=e.title,i=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:r,eChild:t,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:o,ariaLabel:n||i("ariaLabelDialog","Dialog")});s&&(this.close=s.hideFunc)},e.prototype.toggleMaximize=function(){var t=this.positionableFeature.getPosition();if(this.isMaximized){var e=this.lastPosition,o=e.x,r=e.y,n=e.width,i=e.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=t.x,this.lastPosition.y=t.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},e.prototype.refreshMaximizeIcon=function(){pr(this.maximizeIcon,!this.isMaximized),pr(this.minimizeIcon,this.isMaximized)},e.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(t){return t()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},e.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),t.prototype.destroy.call(this)},e.prototype.setResizable=function(t){this.positionableFeature.setResizable(t)},e.prototype.setMovable=function(t){this.positionableFeature.setMovable(t,this.eTitleBar)},e.prototype.setMaximizable=function(t){var e=this;if(!t)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var o=this.eTitleBar;if(o&&t!==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(){e.isMaximized=!1,e.refreshMaximizeIcon()}))}},cf([nt("popupService")],e.prototype,"popupService",void 0),e}(lf),hf=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ff=function(t){function e(e){var o=t.call(this,e,"ag-color-picker","colorPicker")||this;return e&&e.color&&(o.value=e.color),o}return hf(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},e.prototype.showPicker=function(){var t=this,e=this.getGui().getBoundingClientRect(),o=this.createBean(new df({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:e.right-190,y:e.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()&&t.destroyBean(o)})),o.setParentComponent(this),o.setBodyComponent(r),r.setValue(this.getValue()),o.addDestroyFunc((function(){t.isDestroyingPicker?t.isDestroyingPicker=!1:(t.isDestroyingPicker=!0,r.isAlive()&&t.destroyBean(r)),t.isAlive()&&(wn(t.eWrapper,!1),t.getFocusableElement().focus()),t.isPickerDisplayed=!1})),o},e.prototype.setValue=function(e){return this.value===e?this:(this.eDisplayField.style.backgroundColor=e,t.prototype.setValue.call(this,e))},e.prototype.getValue=function(){return this.value},e}(os),gf=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),vf=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},yf=function(t){function e(o){void 0===o&&(o={});var r=t.call(this,e.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(e,t),e.getTemplate=function(t){var e=t.cssIdentifier||"default",o=t.direction||"vertical";return'<div class="ag-group ag-'+e+'-group" role="presentation">\n <div class="ag-group-title-bar ag-'+e+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n <span class="ag-group-title-bar-icon ag-'+e+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n <span class="ag-group-title-bar-icon ag-'+e+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n <span ref="eTitle" class="ag-group-title ag-'+e+'-group-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-toolbar ag-'+e+'-group-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-container ag-group-container-'+o+" ag-"+e+'-group-container"></div>\n </div>'},e.prototype.postConstruct=function(){if(this.items.length){var t=this.items;this.items=[],this.addItems(t)}var e=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(e("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},e.prototype.setupExpandContract=function(){var t=this;this.eGroupClosedIcon.appendChild(Bn("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(Bn("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return t.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(e){switch(e.key){case zn.ENTER:case zn.SPACE:e.preventDefault(),t.toggleGroupExpand();break;case zn.RIGHT:case zn.LEFT:e.preventDefault(),t.toggleGroupExpand(e.key===zn.RIGHT);break}}))},e.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||wn(this.eTitleBar,this.expanded)},e.prototype.refreshChildDisplay=function(){var t=!this.suppressOpenCloseIcons;pr(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),pr(this.eGroupOpenedIcon,t&&this.expanded),pr(this.eGroupClosedIcon,t&&!this.expanded)},e.prototype.isExpanded=function(){return this.expanded},e.prototype.setAlignItems=function(t){this.alignItems!==t&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=t;var e="ag-group-item-alignment-"+this.alignItems;return this.addCssClass(e),this},e.prototype.toggleGroupExpand=function(t){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),pr(this.eContainer,!0),this):(t=null!=t?t:!this.expanded,this.expanded===t||(this.expanded=t,this.refreshAriaStatus(),this.refreshChildDisplay(),pr(this.eContainer,t),this.dispatchEvent({type:this.expanded?e.EVENT_EXPANDED:e.EVENT_COLLAPSED})),this)},e.prototype.addItems=function(t){var e=this;t.forEach((function(t){return e.addItem(t)}))},e.prototype.addItem=function(t){var e=this.eContainer,o=t instanceof Di?t.getGui():t;o.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),e.appendChild(o),this.items.push(o)},e.prototype.hideItem=function(t,e){var o=this.items[e];o.classList.toggle("ag-hidden",t)},e.prototype.setTitle=function(t){return this.eTitle.innerText=t,this},e.prototype.addCssClassToTitleBar=function(t){this.eTitleBar.classList.add(t)},e.prototype.setEnabled=function(t,e){return this.enabled=t,this.refreshDisabledStyles(),this.toggleGroupExpand(t),e||this.cbGroupEnabled.setValue(t),this},e.prototype.isEnabled=function(){return this.enabled},e.prototype.onEnableChange=function(t){var e=this;return this.cbGroupEnabled.onValueChange((function(o){e.setEnabled(o,!0),t(o)})),this},e.prototype.hideEnabledCheckbox=function(t){return this.suppressEnabledCheckbox=t,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},e.prototype.hideOpenCloseIcons=function(t){return this.suppressOpenCloseIcons=t,t&&this.toggleGroupExpand(!0),this},e.prototype.refreshDisabledStyles=function(){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)},e.EVENT_EXPANDED="expanded",e.EVENT_COLLAPSED="collapsed",vf([Ai("eTitleBar")],e.prototype,"eTitleBar",void 0),vf([Ai("eGroupOpenedIcon")],e.prototype,"eGroupOpenedIcon",void 0),vf([Ai("eGroupClosedIcon")],e.prototype,"eGroupClosedIcon",void 0),vf([Ai("eToolbar")],e.prototype,"eToolbar",void 0),vf([Ai("cbGroupEnabled")],e.prototype,"cbGroupEnabled",void 0),vf([Ai("eTitle")],e.prototype,"eTitle",void 0),vf([Ai("eContainer")],e.prototype,"eContainer",void 0),vf([et],e.prototype,"postConstruct",null),e}(Di),mf=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Cf=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},wf=function(t){function e(e){var o=t.call(this)||this;o.skipTabGuardFocus=!1;var r=e.comp,n=e.eTopGuard,i=e.eBottomGuard,s=e.focusInnerElement,a=e.onFocusIn,l=e.onFocusOut,u=e.shouldStopEventPropagation,p=e.onTabKeyDown,c=e.handleKeyDown,d=e.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(e,t),e.prototype.postConstruct=function(){var t=this;this.createManagedBean(new zi(this.eFocusableElement,{shouldStopEventPropagation:function(){return t.shouldStopEventPropagation()},onTabKeyDown:function(e){return t.onTabKeyDown(e)},handleKeyDown:function(e){return t.handleKeyDown(e)},onFocusIn:function(e){return t.onFocusIn(e)},onFocusOut:function(e){return t.onFocusOut(e)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((function(e){return t.addManagedListener(e,"focus",t.onFocus.bind(t))}))},e.prototype.handleKeyDown=function(t){this.providedHandleKeyDown&&this.providedHandleKeyDown(t)},e.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},e.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},e.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},e.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},e.prototype.onFocus=function(t){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var e=t.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(e):this.focusInnerElement(e)}},e.prototype.onFocusIn=function(t){this.providedFocusIn&&this.providedFocusIn(t)||this.deactivateTabGuards()},e.prototype.onFocusOut=function(t){this.providedFocusOut&&this.providedFocusOut(t)||this.eFocusableElement.contains(t.relatedTarget)||this.activateTabGuards()},e.prototype.onTabKeyDown=function(t){var e=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(t);else if(!t.defaultPrevented){var o=this.tabGuardsAreActive();o&&this.deactivateTabGuards();var r=this.getNextFocusableElement(t.shiftKey);o&&setTimeout((function(){return e.activateTabGuards()}),0),r&&(r.focus(),t.preventDefault())}},e.prototype.getGridTabIndex=function(){return this.gridOptionsWrapper.getGridTabIndex()},e.prototype.focusInnerElement=function(t){void 0===t&&(t=!1);var e=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(e.splice(0,1),e.splice(e.length-1,1)),e.length&&e[t?e.length-1:0].focus()},e.prototype.getNextFocusableElement=function(t){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,t)},e.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1);var e=t?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,e.focus()},Cf([nt("focusService")],e.prototype,"focusService",void 0),Cf([et],e.prototype,"postConstruct",null),e}(re),Ef=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Rf=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t=[],e=0;e<arguments.length;e++)t=t.concat(Rf(arguments[e]));return t},Sf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ef(e,t),e.prototype.initialiseTabGuard=function(t){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var e=[this.eTopGuard,this.eBottomGuard],o={setTabIndex:function(t){e.forEach((function(e){return null!=t?e.setAttribute("tabIndex",t):e.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:t.onFocusIn,onFocusOut:t.onFocusOut,focusInnerElement:t.focusInnerElement,handleKeyDown:t.handleKeyDown,onTabKeyDown:t.onTabKeyDown,shouldStopEventPropagation:t.shouldStopEventPropagation}))},e.prototype.createTabGuard=function(t){var e=document.createElement("div");return e.classList.add("ag-tab-guard","ag-tab-guard-"+t),ln(e,"presentation"),e},e.prototype.addTabGuards=function(t,e){this.eFocusableElement.insertAdjacentElement("afterbegin",t),this.eFocusableElement.insertAdjacentElement("beforeend",e)},e.prototype.removeAllChildrenExceptTabGuards=function(){var t=[this.eTopGuard,this.eBottomGuard];Rr(this.getFocusableElement()),this.addTabGuards.apply(this,Of(t))},e.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1),this.tabGuardCtrl.forceFocusOutOfContainer(t)},e.prototype.appendChild=function(e,o){zr(e)||(e=e.getGui());var r=this.eBottomGuard;r?r.insertAdjacentElement("beforebegin",e):t.prototype.appendChild.call(this,e,o)},e}(Di),_f=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),bf=function(){return bf=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},bf.apply(this,arguments)},Pf=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Tf=function(t){function e(e){void 0===e&&(e=1);var o=t.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return o.level=e,o.menuItems=[],o}return _f(e,t),e.prototype.postConstruct=function(){var t=this;this.initialiseTabGuard({onTabKeyDown:function(e){return t.onTabKeyDown(e)},handleKeyDown:function(e){return t.handleKeyDown(e)}})},e.prototype.onTabKeyDown=function(t){var e=this.getParentComponent(),o=e&&e.getGui(),r=o&&o.classList.contains("ag-focus-managed");r||t.preventDefault(),t.shiftKey&&this.closeIfIsChild(t)},e.prototype.handleKeyDown=function(t){switch(t.key){case zn.UP:case zn.RIGHT:case zn.DOWN:case zn.LEFT:t.preventDefault(),this.handleNavKey(t.key);break;case zn.ESCAPE:var e=this.findTopMenu();e&&this.focusService.focusInto(e.getGui());break}},e.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},e.prototype.addMenuItems=function(t){var e=this;null!=t&&t.forEach((function(t){"separator"===t?e.addSeparator():"string"===typeof t?console.warn("AG Grid: unrecognised menu item "+t):e.addItem(t)}))},e.prototype.addItem=function(t){var e=this,o=this.createManagedBean(new Ff(bf(bf({},t),{isAnotherSubMenuOpen:function(){return e.menuItems.some((function(t){return t.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(t){e.dispatchEvent(t)})),this.addManagedListener(o,Ff.EVENT_MENU_ITEM_ACTIVATED,(function(t){e.activeMenuItem&&e.activeMenuItem!==t.menuItem&&e.activeMenuItem.deactivate(),e.activeMenuItem=t.menuItem}))},e.prototype.activateFirstItem=function(){var t=this.menuItems.filter((function(t){return!t.isDisabled()}))[0];t&&t.activate()},e.prototype.addSeparator=function(){var t='\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(t))},e.prototype.findTopMenu=function(){var t=this.getParentComponent();if(!t&&this instanceof e)return this;while(1){var o=t&&t.getParentComponent&&t.getParentComponent();if(!o||!(o instanceof e||o instanceof Ff))break;t=o}return t instanceof e?t:void 0},e.prototype.handleNavKey=function(t){switch(t){case zn.UP:case zn.DOWN:var e=this.findNextItem(t===zn.UP);return void(e&&e!==this.activeMenuItem&&e.activate())}var o=this.gridOptionsWrapper.isEnableRtl()?zn.RIGHT:zn.LEFT;t===o?this.closeIfIsChild():this.openChild()},e.prototype.closeIfIsChild=function(t){var e=this.getParentComponent();e&&e instanceof Ff&&(t&&t.preventDefault(),e.closeSubMenu(),e.getGui().focus())},e.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},e.prototype.findNextItem=function(t){var e=this.menuItems.filter((function(t){return!t.isDisabled()}));if(e.length){if(!this.activeMenuItem)return t?Et(e):e[0];var o;t&&e.reverse();for(var r=!1,n=0;n<e.length;n++){var i=e[n];if(r){o=i;break}i===this.activeMenuItem&&(r=!0)}return o||this.activeMenuItem}},e.prototype.destroy=function(){this.clearActiveItem(),t.prototype.destroy.call(this)},Pf([nt("focusService")],e.prototype,"focusService",void 0),Pf([et],e.prototype,"postConstruct",null),e}(Sf),Df=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Af=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Nf=function(t){function e(e){var o=t.call(this)||this;return o.wrappedComponent=e,o.setTemplateFromElement(e.getGui()),o}return Df(e,t),e.prototype.postConstruct=function(){var t=this;this.initialiseTabGuard({onTabKeyDown:function(e){return t.onTabKeyDown(e)},handleKeyDown:function(e){return t.handleKeyDown(e)}})},e.prototype.handleKeyDown=function(t){t.key===zn.ESCAPE&&this.closePanel()},e.prototype.onTabKeyDown=function(t){t.defaultPrevented||(this.closePanel(),t.preventDefault())},e.prototype.closePanel=function(){var t=this.parentComponent;t.closeSubMenu(),setTimeout((function(){return t.getGui().focus()}),0)},Af([et],e.prototype,"postConstruct",null),e}(Sf),If=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Gf=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Ff=function(t){function e(e){var o=t.call(this)||this;return o.params=e,o.isActive=!1,o.subMenuIsOpen=!1,o.setTemplate('<div class="'+o.getClassName()+'" tabindex="-1" role="treeitem"></div>'),o}return If(e,t),e.prototype.init=function(){var t=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var e=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),mn(e,!0)):(this.addGuiEventListener("click",(function(e){return t.onItemSelected(e)})),this.addGuiEventListener("keydown",(function(e){e.key!==zn.ENTER&&e.key!==zn.SPACE||(e.preventDefault(),t.onItemSelected(e))})),this.addGuiEventListener("mousedown",(function(t){t.stopPropagation(),t.preventDefault()})),this.addGuiEventListener("mouseenter",(function(){return t.onMouseEnter()})),this.addGuiEventListener("mouseleave",(function(){return t.onMouseLeave()}))),this.params.cssClasses&&this.params.cssClasses.forEach((function(e){return t.addCssClass(e)}))},e.prototype.isDisabled=function(){return!!this.params.disabled},e.prototype.openSubMenu=function(t){var o=this;if(void 0===t&&(t=!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,e.EVENT_MENU_ITEM_SELECTED,(function(t){return o.dispatchEvent(t)})),a.addGuiEventListener("mouseenter",(function(){return o.cancelDeactivate()})),r=function(){return o.destroyBean(a)},t&&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()}}},e.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,wn(this.getGui(),!1))},e.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},e.prototype.activate=function(t){var e=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),t&&this.params.subMenu&&window.setTimeout((function(){e.isAlive()&&e.isActive&&e.openSubMenu()}),300),this.onItemActivated())},e.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},e.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var t=br('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?t.appendChild(jn("check",this.gridOptionsWrapper)):this.params.icon&&(zr(this.params.icon)?t.appendChild(this.params.icon):"string"===typeof this.params.icon?t.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(t)}},e.prototype.addName=function(){if(this.params.name||!this.params.isCompact){var t=br('<span ref="eName" class="'+this.getClassName("part")+" "+this.getClassName("text")+'">'+(this.params.name||"")+"</span>");this.getGui().appendChild(t)}},e.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)))},e.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},e.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var t=br('<span ref="eShortcut" class="'+this.getClassName("part")+" "+this.getClassName("shortcut")+'">'+(this.params.shortcut||"")+"</span>");this.getGui().appendChild(t)}},e.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var t=br('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),e=this.getGui();if(this.params.subMenu){var o=this.gridOptionsWrapper.isEnableRtl()?"smallLeft":"smallRight";wn(e,!1),t.appendChild(jn(o,this.gridOptionsWrapper))}e.appendChild(t)}},e.prototype.onItemSelected=function(t){if(this.params.action?this.params.action():this.openSubMenu(t&&"keydown"===t.type),!this.params.subMenu||this.params.action){var o={type:e.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:t};this.dispatchEvent(o)}},e.prototype.onItemActivated=function(){var t={type:e.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(t)},e.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},e.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},e.prototype.onMouseEnter=function(){var t=this;this.cancelDeactivate(),this.params.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout((function(){return t.activate(!0)}),e.ACTIVATION_DELAY):this.activate(!0)},e.prototype.onMouseLeave=function(){var t=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout((function(){return t.deactivate()}),e.ACTIVATION_DELAY):this.deactivate()},e.prototype.getClassName=function(t){var e=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return t?e+"-"+t:e},e.EVENT_MENU_ITEM_SELECTED="menuItemSelected",e.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",e.ACTIVATION_DELAY=80,Gf([nt("popupService")],e.prototype,"popupService",void 0),Gf([et],e.prototype,"init",null),e}(Di),Lf=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Mf=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},xf=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t=[],e=0;e<arguments.length;e++)t=t.concat(xf(arguments[e]));return t},Vf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var o;return Lf(e,t),o=e,e.addKeyboardModeEvents=function(t,e){var r=o.instancesMonitored.get(t);r&&r.length>0?-1===r.indexOf(e)&&r.push(e):(o.instancesMonitored.set(t,[e]),t.addEventListener("keydown",o.toggleKeyboardMode),t.addEventListener("mousedown",o.toggleKeyboardMode))},e.removeKeyboardModeEvents=function(t,e){var r=o.instancesMonitored.get(t),n=[];r&&r.length&&(n=Hf(r).filter((function(t){return t!==e})),o.instancesMonitored.set(t,n)),0===n.length&&(t.removeEventListener("keydown",o.toggleKeyboardMode),t.removeEventListener("mousedown",o.toggleKeyboardMode))},e.toggleKeyboardMode=function(t){var e=o.keyboardModeActive,r="keydown"===t.type;if((!r||!(t.ctrlKey||t.metaKey||t.altKey))&&!(e&&r||!e&&!r)){o.keyboardModeActive=r;var n=t.target.ownerDocument;if(n){var i=o.instancesMonitored.get(n);i&&i.forEach((function(t){t.dispatchEvent({type:r?le.EVENT_KEYBOARD_FOCUS:le.EVENT_MOUSE_FOCUS})}))}}},e.prototype.init=function(){var t=this,e=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,le.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,le.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_COLUMN_GROUP_OPENED,e),this.addManagedListener(this.eventService,le.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.ctrlsService.whenReady((function(e){t.gridCtrl=e.gridCtrl;var r=t.gridOptionsWrapper.getDocument();o.addKeyboardModeEvents(r,t.gridCtrl),t.addDestroyFunc((function(){return t.unregisterGridCompController(t.gridCtrl)}))}))},e.prototype.unregisterGridCompController=function(t){var e=this.gridOptionsWrapper.getDocument();o.removeKeyboardModeEvents(e,t)},e.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var t=this.focusedCellPosition.column,e=this.columnModel.getGridColumn(t.getId());t!==e&&this.clearFocusedCell()}},e.prototype.isKeyboardMode=function(){return o.keyboardModeActive},e.prototype.getFocusCellToUseAfterRefresh=function(){var t=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(t.activeElement,ip.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},e.prototype.getFocusHeaderToUseAfterRefresh=function(){var t=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(t.activeElement,Fc.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},e.prototype.isDomDataMissingInHierarchy=function(t,e){var o=t;while(o){var r=this.gridOptionsWrapper.getDomData(o,e);if(r)return!1;o=o.parentNode}return!0},e.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1,!1)},e.prototype.getFocusedCell=function(){return this.focusedCellPosition},e.prototype.setFocusedCell=function(t){var e=t.column,o=t.rowIndex,n=t.rowPinned,i=t.forceBrowserFocus,s=void 0!==i&&i,a=t.preventScrollOnBrowserFocus,l=void 0!==a&&a,u=this.columnModel.getGridColumn(e);u?(this.focusedCellPosition=u?{rowIndex:o,rowPinned:r(n),column:u}:null,this.onCellFocused(s,l)):this.focusedCellPosition=null},e.prototype.isCellFocused=function(t){return null!=this.focusedCellPosition&&(this.focusedCellPosition.column===t.column&&this.isRowFocused(t.rowIndex,t.rowPinned))},e.prototype.isRowNodeFocused=function(t){return this.isRowFocused(t.rowIndex,t.rowPinned)},e.prototype.isHeaderWrapperFocused=function(t){if(null==this.focusedHeaderPosition)return!1;var e=t.getColumnGroupChild(),o=t.getRowIndex(),r=t.getPinned(),n=this.focusedHeaderPosition,i=n.column,s=n.headerRowIndex;return e===i&&o===s&&r==i.getPinned()},e.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},e.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},e.prototype.setFocusedHeader=function(t,e){this.focusedHeaderPosition={headerRowIndex:t,column:e}},e.prototype.focusHeaderPosition=function(t){var e=t.direction,o=t.fromTab,r=t.allowUserOverride,n=t.event,i=t.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"===e,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,e);var d=this.ctrlsService.getHeaderRowContainerCtrl(i.column.getPinned()),h=d.focusHeader(i.headerRowIndex,i.column,n);return h},e.prototype.focusFirstHeader=function(){var t=this.columnModel.getAllDisplayedColumns()[0];return!!t&&(t.getParent()&&(t=this.columnModel.getColumnGroupAtLevel(t,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:t}}))},e.prototype.focusLastHeader=function(t){var e=this.headerNavigationService.getHeaderRowCount()-1,o=Et(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:e,column:o},event:t})},e.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},e.prototype.isRowFocused=function(t,e){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===t&&this.focusedCellPosition.rowPinned===r(e))},e.prototype.findFocusableElements=function(t,e,o){void 0===o&&(o=!1);var r=ft.FOCUSABLE_SELECTOR,n=ft.FOCUSABLE_EXCLUDE;e&&(n+=", "+e),o&&(n+=', [tabindex="-1"]');var i=Array.prototype.slice.apply(t.querySelectorAll(r)),s=Array.prototype.slice.apply(t.querySelectorAll(n));if(!s.length)return i;var a=function(t,e){return t.filter((function(t){return-1===e.indexOf(t)}))};return a(i,s)},e.prototype.focusInto=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1);var r=this.findFocusableElements(t,null,o),n=e?Et(r):r[0];return!!n&&(n.focus(),!0)},e.prototype.findNextFocusableElement=function(t,e,o){void 0===t&&(t=this.eGridDiv);var r,n=this.findFocusableElements(t,e?':not([tabindex="-1"])':null),i=this.gridOptionsWrapper.getDocument(),s=i.activeElement;r=e?n.findIndex((function(t){return t.contains(s)})):n.indexOf(s);var a=r+(o?-1:1);return a<0||a>=n.length?null:n[a]},e.prototype.isFocusUnderManagedComponent=function(t){var e=this.gridOptionsWrapper.getDocument(),o=t.querySelectorAll("."+zi.FOCUS_MANAGED_CLASS);if(!o.length)return!1;for(var r=0;r<o.length;r++)if(o[r].contains(e.activeElement))return!0;return!1},e.prototype.findTabbableParent=function(t,e){void 0===e&&(e=5);var o=0;while(t&&null===to(t)&&++o<=e)t=t.parentElement;return null===to(t)?null:t},e.prototype.onCellFocused=function(t,e){var o={type:le.EVENT_CELL_FOCUSED,forceBrowserFocus:t,preventScrollOnBrowserFocus:e,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)},e.prototype.focusGridView=function(t,e){if(this.gridOptionsWrapper.isSuppressCellFocus())return e?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var o=e?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!o)return!1;var n=o.rowIndex,i=o.rowPinned,s=this.getFocusedHeader();if(!t&&s&&(t=s.column),null==n||!t)return!1;if(this.navigationService.ensureCellVisible({rowIndex:n,column:t,rowPinned:i}),this.setFocusedCell({rowIndex:n,column:t,rowPinned:r(i),forceBrowserFocus:!0}),this.rangeService){var a={rowIndex:n,rowPinned:i,column:t};this.rangeService.setRangeToCell(a)}return!0},e.prototype.focusNextGridCoreContainer=function(t){return!!this.gridCtrl.focusNextInnerContainer(t)||(t||this.gridCtrl.isDetailGrid()||this.gridCtrl.forceFocusOutOfContainer(),!1)},e.AG_KEYBOARD_FOCUS="ag-keyboard-focus",e.keyboardModeActive=!1,e.instancesMonitored=new Map,Mf([nt("eGridDiv")],e.prototype,"eGridDiv",void 0),Mf([nt("columnModel")],e.prototype,"columnModel",void 0),Mf([nt("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Mf([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),Mf([nt("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Mf([it("rangeService")],e.prototype,"rangeService",void 0),Mf([nt("navigationService")],e.prototype,"navigationService",void 0),Mf([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),Mf([et],e.prototype,"init",null),e=o=Mf([rt("focusService")],e),e}(re),Wf=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),kf=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Bf=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t=[],e=0;e<arguments.length;e++)t=t.concat(Bf(arguments[e]));return 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 */(function(t){t[t["vertical"]=0]="vertical",t[t["horizontal"]=1]="horizontal"})(Oh||(Oh={}));var Uf,zf=0,Kf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.popupList=[],e}var o;return Wf(e,t),o=e,e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.gridCtrl=e.gridCtrl,t.addManagedListener(t.gridCtrl,le.EVENT_KEYBOARD_FOCUS,(function(){t.popupList.forEach((function(t){return t.element.classList.add(Vf.AG_KEYBOARD_FOCUS)}))})),t.addManagedListener(t.gridCtrl,le.EVENT_MOUSE_FOCUS,(function(){t.popupList.forEach((function(t){return t.element.classList.remove(Vf.AG_KEYBOARD_FOCUS)}))}))}))},e.prototype.getPopupParent=function(){var t=this.gridOptionsWrapper.getPopupParent();return t||this.gridCtrl.getGui()},e.prototype.positionPopupForMenu=function(t){var e=t.eventSource.getBoundingClientRect(),o=this.getParentRect(),r=this.keepXYWithinBounds(t.ePopup,e.top-o.top,Oh.vertical),n=t.ePopup.clientWidth>0?t.ePopup.clientWidth:200;t.ePopup.style.minWidth=n+"px";var i,s=o.right-o.left,a=s-n;function l(){return e.right-o.left-2}function u(){return e.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)),t.ePopup.style.left=i+"px",t.ePopup.style.top=r+"px"},e.prototype.positionPopupUnderMouseEvent=function(t){var e=t.ePopup,o=t.nudgeX,r=t.nudgeY,n=t.skipObserver,i=this.calculatePointerAlign(t.mouseEvent),s=i.x,a=i.y;this.positionPopup({ePopup:e,x:s,y:a,nudgeX:o,nudgeY:r,keepWithinBounds:!0,skipObserver:n}),this.callPostProcessPopup(t.type,t.ePopup,null,t.mouseEvent,t.column,t.rowNode)},e.prototype.calculatePointerAlign=function(t){var e=this.getParentRect();return{x:t.clientX-e.left,y:t.clientY-e.top}},e.prototype.positionPopupUnderComponent=function(t){var e=t.eventSource.getBoundingClientRect(),o=t.alignSide||"left",r=this.getParentRect(),n=e.left-r.left;"right"===o&&(n-=t.ePopup.offsetWidth-e.width),this.positionPopup({ePopup:t.ePopup,nudgeX:t.nudgeX,nudgeY:t.nudgeY,x:n,y:e.top-r.top+e.height,keepWithinBounds:t.keepWithinBounds}),this.callPostProcessPopup(t.type,t.ePopup,t.eventSource,null,t.column,t.rowNode)},e.prototype.positionPopupOverComponent=function(t){var e=t.eventSource.getBoundingClientRect(),o=this.getParentRect();this.positionPopup({ePopup:t.ePopup,nudgeX:t.nudgeX,nudgeY:t.nudgeY,x:e.left-o.left,y:e.top-o.top,keepWithinBounds:t.keepWithinBounds}),this.callPostProcessPopup(t.type,t.ePopup,t.eventSource,null,t.column,t.rowNode)},e.prototype.callPostProcessPopup=function(t,e,o,r,n,i){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();if(s){var a={column:n,rowNode:i,ePopup:e,type:t,eventSource:o,mouseEvent:r};s(a)}},e.prototype.positionPopup=function(t){var e=this,r=t.x,n=t.y,i=t.ePopup,s=t.keepWithinBounds,a=t.nudgeX,l=t.nudgeY,u=t.skipObserver,p=r,c=n;a&&(p+=a),l&&(c+=l);var d=function(){s&&(p=e.keepXYWithinBounds(i,p,Oh.horizontal),c=e.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)}},e.prototype.getActivePopups=function(){return this.popupList.map((function(t){return t.element}))},e.prototype.getPopupList=function(){return this.popupList},e.prototype.getParentRect=function(){var t=this.gridOptionsWrapper.getDocument(),e=this.getPopupParent();e===t.body?e=t.documentElement:"static"===getComputedStyle(e).position&&(e=e.offsetParent);var o=getComputedStyle(e),r=e.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}},e.prototype.keepXYWithinBounds=function(t,e,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=t[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(e,0),Math.abs(y))},e.prototype.keepPopupPositionedRelativeTo=function(t){var e=this,o=this.getPopupParent(),r=o.getBoundingClientRect(),n=t.element.getBoundingClientRect(),i=r.top-n.top,s=r.left-n.left,a=i,l=s,u=t.ePopup.style.top,p=parseInt(u.substring(0,u.length-1),10),c=t.ePopup.style.left,d=parseInt(c.substring(0,c.length-1),10);return new wi((function(r){e.getFrameworkOverrides().setInterval((function(){var r=o.getBoundingClientRect(),n=t.element.getBoundingClientRect(),u=0==n.top&&0==n.left&&0==n.height&&0==n.width;if(u)t.hidePopup();else{var c=r.top-n.top;if(c!=a){var h=e.keepXYWithinBounds(t.ePopup,p+i-c,Oh.vertical);t.ePopup.style.top=h+"px"}a=c;var f=r.left-n.left;if(f!=l){var g=e.keepXYWithinBounds(t.ePopup,d+s-f,Oh.horizontal);t.ePopup.style.left=g+"px"}l=f}}),200).then((function(t){var e=function(){null!=t&&window.clearInterval(t)};r(e)}))}))},e.prototype.addPopup=function(t){var e,o=this,r=t.modal,n=t.eChild,i=t.closeOnEsc,s=t.closedCallback,a=t.click,l=t.alwaysOnTop,u=t.afterGuiAttached,p=t.positionCallback,c=t.anchorToElement,d=t.ariaLabel,h=this.gridOptionsWrapper.getDocument(),f=new wi((function(t){return t((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(t){return t.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&&(e=m.classList).add.apply(e,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(t){if(m.contains(h.activeElement)){var e=t.key;e===zn.ESCAPE&&S({keyboardEvent:t})}},R=function(t){return S({mouseEvent:t})},O=function(t){return S({touchEvent:t})},S=function(t){void 0===t&&(t={});var e=t.mouseEvent,r=t.touchEvent,i=t.keyboardEvent;o.isEventFromCurrentPopup({mouseEvent:e,touchEvent:r},n)||o.isEventSameChainAsOriginalEvent({originalMouseEvent:a,mouseEvent:e,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(le.EVENT_DRAG_STARTED,R),s&&s(e||r||i),o.popupList=o.popupList.filter((function(t){return t.element!==n})),f&&f.then((function(t){return t&&t()})))};return u&&u({hidePopup:S}),window.setTimeout((function(){i&&h.addEventListener("keydown",E),r&&(h.addEventListener("mousedown",R),o.eventService.addEventListener(le.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}},e.prototype.hasAnchoredPopup=function(){return this.popupList.some((function(t){return t.isAnchored}))},e.prototype.isEventFromCurrentPopup=function(t,e){var o=t.mouseEvent,r=t.touchEvent,n=o||r;if(!n)return!1;var i=this.popupList.findIndex((function(t){return t.element===e}));if(-1===i)return!1;for(var s=i;s<this.popupList.length;s++){var a=this.popupList[s];if(Qt(a.element,n))return!0}return this.isElementWithinCustomPopup(n.target)},e.prototype.isElementWithinCustomPopup=function(t){var e=this.gridOptionsWrapper.getDocument();while(t&&t!==e.body){if(t.classList.contains("ag-custom-component-popup")||null===t.parentElement)return!0;t=t.parentElement}return!1},e.prototype.isEventSameChainAsOriginalEvent=function(t){var e=t.originalMouseEvent,o=t.mouseEvent,r=t.touchEvent,n=null;if(o?n=o:r&&(n=r.touches[0]),n&&e){var i=o?o.screenX:0,s=o?o.screenY:0,a=Math.abs(e.screenX-i)<5,l=Math.abs(e.screenY-s)<5;if(a&&l)return!0}return!1},e.prototype.getWrapper=function(t){while(!t.classList.contains("ag-popup")&&t.parentElement)t=t.parentElement;return t.classList.contains("ag-popup")?t:null},e.prototype.setAlwaysOnTop=function(t,e){var o=this.getWrapper(t);o&&(o.classList.toggle("ag-always-on-top",!!e),e&&this.bringPopupToFront(o))},e.prototype.bringPopupToFront=function(t){var e=this.getPopupParent(),o=Array.prototype.slice.call(e.querySelectorAll(".ag-popup")),r=o.length,n=Array.prototype.slice.call(e.querySelectorAll(".ag-popup.ag-always-on-top")),i=n.length,s=this.getWrapper(t);if(s&&!(r<=1)&&e.contains(t)){var a=o.indexOf(s),l=s.querySelectorAll("div"),u=[];if(l.forEach((function(t){0!==t.scrollTop&&u.push([t,t.scrollTop])})),i){var p=s.classList.contains("ag-always-on-top");p?a!==r-1&&Et(n).insertAdjacentElement("afterend",s):a!==r-i-1&&n[0].insertAdjacentElement("beforebegin",s)}else a!==r-1&&Et(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)}},e.WAIT_FOR_POPUP_CONTENT_RESIZE=200,kf([nt("environment")],e.prototype,"environment",void 0),kf([nt("focusService")],e.prototype,"focusService",void 0),kf([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),kf([nt("resizeObserverService")],e.prototype,"resizeObserverService",void 0),kf([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),kf([et],e.prototype,"postConstruct",null),e=o=kf([rt("popupService")],e),e}(re),Yf=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),qf=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Xf=(function(t){function e(o,r,n){void 0===o&&(o="default"),void 0===r&&(r="listbox");var i=t.call(this,e.getTemplate(o))||this;return i.cssIdentifier=o,i.ariaRole=r,i.listName=n,i.renderedRows=new Map,i.rowHeight=20,i}Yf(e,t),e.prototype.postConstruct=function(){var t=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(e){return t.onFocusIn(e)},onFocusOut:function(e){return t.onFocusOut(e)},focusInnerElement:function(e){return t.focusInnerElement(e)},onTabKeyDown:function(e){return t.onTabKeyDown(e)},handleKeyDown:function(e){return t.handleKeyDown(e)}}),this.setAriaProperties()},e.prototype.setAriaProperties=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),e=t("ariaDefaultListName",this.listName||"List"),o=this.eContainer;ln(o,this.ariaRole),hn(o,e)},e.prototype.addResizeObserver=function(){var t=this.drawVirtualRows.bind(this),e=this.resizeObserverService.observeResize(this.getGui(),t);this.addDestroyFunc(e)},e.prototype.focusInnerElement=function(t){this.focusRow(t?this.model.getRowCount()-1:0)},e.prototype.onFocusIn=function(t){var e=t.target;return e.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=cn(e)-1),!1},e.prototype.onFocusOut=function(t){return this.getFocusableElement().contains(t.relatedTarget)||(this.lastFocusedRowIndex=null),!1},e.prototype.handleKeyDown=function(t){switch(t.key){case zn.UP:case zn.DOWN:this.navigate(t.key===zn.UP)&&t.preventDefault();break}},e.prototype.onTabKeyDown=function(t){this.navigate(t.shiftKey)?t.preventDefault():this.focusService.focusInto(this.getGui(),!t.shiftKey)},e.prototype.navigate=function(t){if(null==this.lastFocusedRowIndex)return!1;var e=this.lastFocusedRowIndex+(t?-1:1);return!(e<0||e>=this.model.getRowCount())&&(this.focusRow(e),!0)},e.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},e.prototype.focusRow=function(t){var e=this;this.ensureIndexVisible(t),window.setTimeout((function(){if(e.isAlive()){var o=e.renderedRows.get(t);o&&o.eDiv.focus()}}),10)},e.prototype.getComponentAt=function(t){var e=this.renderedRows.get(t);return e&&e.rowComponent},e.prototype.forEachRenderedRow=function(t){this.renderedRows.forEach((function(e,o){return t(e.rowComponent,o)}))},e.getTemplate=function(t){return'\n <div class="ag-virtual-list-viewport ag-'+t+'-virtual-list-viewport" role="presentation">\n <div class="ag-virtual-list-container ag-'+t+'-virtual-list-container" ref="eContainer"></div>\n </div>'},e.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},e.prototype.ensureIndexVisible=function(t){var e=this.model.getRowCount();if("number"!==typeof t||t<0||t>=e)console.warn("AG Grid: invalid row index for ensureIndexVisible: "+t);else{var o=t*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}}},e.prototype.setComponentCreator=function(t){this.componentCreator=t},e.prototype.getRowHeight=function(){return this.rowHeight},e.prototype.getScrollTop=function(){return this.getGui().scrollTop},e.prototype.setRowHeight=function(t){this.rowHeight=t,this.refresh()},e.prototype.refresh=function(){var t=this;if(null!=this.model&&this.isAlive()){var e=this.model.getRowCount();this.eContainer.style.height=e*this.rowHeight+"px",Y((function(){return t.eContainer.clientHeight>=e*t.rowHeight}),(function(){t.isAlive()&&(t.clearVirtualRows(),t.drawVirtualRows())}))}},e.prototype.clearVirtualRows=function(){var t=this;this.renderedRows.forEach((function(e,o){return t.removeRow(o)}))},e.prototype.drawVirtualRows=function(){if(this.isAlive()){var t=this.getGui(),e=t.scrollTop,o=e+t.offsetHeight,r=Math.floor(e/this.rowHeight),n=Math.floor(o/this.rowHeight);this.ensureRowsRendered(r,n)}},e.prototype.ensureRowsRendered=function(t,e){var o=this;this.renderedRows.forEach((function(r,n){(n<t||n>e)&&n!==o.lastFocusedRowIndex&&o.removeRow(n)}));for(var r=t;r<=e;r++)this.renderedRows.has(r)||r<this.model.getRowCount()&&this.insertRow(r)},e.prototype.insertRow=function(t){var e=this,o=this.model.getRow(t),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,t+1),r.setAttribute("tabindex","-1"),"function"===typeof this.model.isRowSelected){var n=this.model.isRowSelected(t);In(r,!!n),Gn(r,n)}r.style.height=this.rowHeight+"px",r.style.top=this.rowHeight*t+"px";var i=this.componentCreator(o,r);i.addGuiEventListener("focusin",(function(){return e.lastFocusedRowIndex=t})),r.appendChild(i.getGui()),this.renderedRows.has(t-1)?this.renderedRows.get(t-1).eDiv.insertAdjacentElement("afterend",r):this.renderedRows.has(t+1)?this.renderedRows.get(t+1).eDiv.insertAdjacentElement("beforebegin",r):this.eContainer.appendChild(r),this.renderedRows.set(t,{rowComponent:i,eDiv:r})},e.prototype.removeRow=function(t){var e=this.renderedRows.get(t);this.eContainer.removeChild(e.eDiv),this.destroyBean(e.rowComponent),this.renderedRows.delete(t)},e.prototype.addScrollListener=function(){var t=this;this.addGuiEventListener("scroll",(function(){return t.drawVirtualRows()}))},e.prototype.setModel=function(t){this.model=t},e.prototype.destroy=function(){this.isAlive()&&(this.clearVirtualRows(),t.prototype.destroy.call(this))},qf([nt("resizeObserverService")],e.prototype,"resizeObserverService",void 0),qf([nt("focusService")],e.prototype,"focusService",void 0),qf([Ai("eContainer")],e.prototype,"eContainer",void 0),qf([et],e.prototype,"postConstruct",null)}(Sf),["mouseover","mouseout","mouseenter","mouseleave"]),Qf=["touchstart","touchend","touchmove","touchcancel"],Jf=function(){function t(){this.isOutsideAngular=function(t){return It(Xf,t)}}return t.prototype.setTimeout=function(t,e){window.setTimeout(t,e)},t.prototype.setInterval=function(t,e){return new wi((function(o){o(window.setInterval(t,e))}))},t.prototype.addEventListener=function(t,e,o,r){var n=It(Qf,e);t.addEventListener(e,o,{capture:!!r,passive:n})},t.prototype.dispatchEvent=function(t,e,o){e()},t.prototype.frameworkComponent=function(t){return null},t.prototype.isFrameworkComponent=function(t){return!1},t}(),Zf=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),$f=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},tg=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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},eg=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(tg(arguments[e]));return t},og=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zf(e,t),e.prototype.getNextCellToFocus=function(t,e,o){return void 0===o&&(o=!1),o?this.getNextCellToFocusWithCtrlPressed(t,e):this.getNextCellToFocusWithoutCtrlPressed(t,e)},e.prototype.getNextCellToFocusWithCtrlPressed=function(t,e){var o,r,n=t===zn.UP,i=t===zn.DOWN,s=t===zn.LEFT;if(n||i)r=n?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),o=e.column;else{var a=this.columnModel.getAllDisplayedColumns(),l=this.gridOptionsWrapper.isEnableRtl();r=e.rowIndex,o=s!==l?a[0]:Et(a)}return{rowIndex:r,rowPinned:null,column:o}},e.prototype.getNextCellToFocusWithoutCtrlPressed=function(t,e){var o=e,r=!1;while(!r){switch(t){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 "+t);break}r=!o||this.isCellGoodToFocusOn(o)}return o},e.prototype.isCellGoodToFocusOn=function(t){var e,o=t.column;switch(t.rowPinned){case ft.PINNED_TOP:e=this.pinnedRowModel.getPinnedTopRow(t.rowIndex);break;case ft.PINNED_BOTTOM:e=this.pinnedRowModel.getPinnedBottomRow(t.rowIndex);break;default:e=this.rowModel.getRow(t.rowIndex);break}if(!e)return!1;var r=o.isSuppressNavigable(e);return!r},e.prototype.getCellToLeft=function(t){if(!t)return null;var e=this.columnModel.getDisplayedColBefore(t.column);return e?{rowIndex:t.rowIndex,column:e,rowPinned:t.rowPinned}:null},e.prototype.getCellToRight=function(t){if(!t)return null;var e=this.columnModel.getDisplayedColAfter(t.column);return e?{rowIndex:t.rowIndex,column:e,rowPinned:t.rowPinned}:null},e.prototype.getRowBelow=function(t){var e=t.rowIndex,o=t.rowPinned;if(this.isLastRowInContainer(t))switch(o){case ft.PINNED_BOTTOM:return null;case ft.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(ft.PINNED_BOTTOM)?{rowIndex:0,rowPinned:ft.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(ft.PINNED_BOTTOM)?{rowIndex:0,rowPinned:ft.PINNED_BOTTOM}:null}var r=this.rowModel.getRow(t.rowIndex),n=this.getNextStickyPosition(r);return n||{rowIndex:e+1,rowPinned:o}},e.prototype.getNextStickyPosition=function(t,e){if(this.gridOptionsWrapper.isGroupRowsSticky()&&t&&t.sticky){var o=eg(this.rowRenderer.getStickyTopRowCtrls()).sort((function(t,e){return t.getRowNode().rowIndex-e.getRowNode().rowIndex})),r=e?-1:1,n=o.findIndex((function(e){return e.getRowNode().rowIndex===t.rowIndex})),i=o[n+r];return i?{rowIndex:i.getRowNode().rowIndex,rowPinned:null}:void 0}},e.prototype.getCellBelow=function(t){if(!t)return null;var e=this.getRowBelow(t);return e?{rowIndex:e.rowIndex,column:t.column,rowPinned:e.rowPinned}:null},e.prototype.isLastRowInContainer=function(t){var e=t.rowPinned,o=t.rowIndex;if(e===ft.PINNED_TOP){var r=this.pinnedRowModel.getPinnedTopRowData().length-1;return r<=o}if(e===ft.PINNED_BOTTOM){var n=this.pinnedRowModel.getPinnedBottomRowData().length-1;return n<=o}var i=this.paginationProxy.getPageLastRow();return i<=o},e.prototype.getRowAbove=function(t){var e=t.rowIndex,o=t.rowPinned,r=o?0===e:e===this.paginationProxy.getPageFirstRow();if(r)return o===ft.PINNED_TOP?null:o&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(ft.PINNED_TOP)?this.getLastFloatingTopRow():null;var n=this.rowModel.getRow(t.rowIndex),i=this.getNextStickyPosition(n,!0);return i||{rowIndex:e-1,rowPinned:o}},e.prototype.getCellAbove=function(t){if(!t)return null;var e=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});return e?{rowIndex:e.rowIndex,column:t.column,rowPinned:e.rowPinned}:null},e.prototype.getLastBodyCell=function(){var t=this.paginationProxy.getPageLastRow();return{rowIndex:t,rowPinned:null}},e.prototype.getLastFloatingTopRow=function(){var t=this.pinnedRowModel.getPinnedTopRowData().length-1;return{rowIndex:t,rowPinned:ft.PINNED_TOP}},e.prototype.getNextTabbedCell=function(t,e){return e?this.getNextTabbedCellBackwards(t):this.getNextTabbedCellForwards(t)},e.prototype.getNextTabbedCellForwards=function(t){var e=this.columnModel.getAllDisplayedColumns(),o=t.rowIndex,r=t.rowPinned,n=this.columnModel.getDisplayedColAfter(t.column);if(!n){n=e[0];var s=this.getRowBelow(t);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}},e.prototype.getNextTabbedCellBackwards=function(t){var e=this.columnModel.getAllDisplayedColumns(),o=t.rowIndex,r=t.rowPinned,n=this.columnModel.getDisplayedColBefore(t.column);if(!n){n=Et(e);var s=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.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([nt("columnModel")],e.prototype,"columnModel",void 0),$f([nt("rowModel")],e.prototype,"rowModel",void 0),$f([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),$f([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),$f([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),e=$f([rt("cellNavigationService")],e),e}(re),rg=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ng=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},ig=function(t,e){return function(o,r){e(o,r,t)}},sg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.consuming=!1,e}return rg(e,t),e.prototype.setBeans=function(t){this.logger=t.create("AlignedGridsService")},e.prototype.init=function(){this.addManagedListener(this.eventService,le.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,le.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,le.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,le.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,le.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,le.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},e.prototype.fireEvent=function(t){if(!this.consuming){var e=this.gridOptionsWrapper.getAlignedGrids();e&&e.forEach((function(e){if(e.api){var o=e.api.__getAlignedGridService();t(o)}}))}},e.prototype.onEvent=function(t){this.consuming=!0,t(),this.consuming=!1},e.prototype.fireColumnEvent=function(t){this.fireEvent((function(e){e.onColumnEvent(t)}))},e.prototype.fireScrollEvent=function(t){"horizontal"===t.direction&&this.fireEvent((function(e){e.onScrollEvent(t)}))},e.prototype.onScrollEvent=function(t){var e=this;this.onEvent((function(){var o=e.ctrlsService.getGridBodyCtrl();o.getScrollFeature().setHorizontalScrollPosition(t.left)}))},e.prototype.getMasterColumns=function(t){var e=[];return t.columns?t.columns.forEach((function(t){e.push(t)})):t.column&&e.push(t.column),e},e.prototype.getColumnIds=function(t){var e=[];return t.columns?t.columns.forEach((function(t){e.push(t.getColId())})):t.column&&e.push(t.column.getColId()),e},e.prototype.onColumnEvent=function(t){var e=this;this.onEvent((function(){switch(t.type){case le.EVENT_COLUMN_MOVED:case le.EVENT_COLUMN_VISIBLE:case le.EVENT_COLUMN_PINNED:case le.EVENT_COLUMN_RESIZED:var o=t;e.processColumnEvent(o);break;case le.EVENT_COLUMN_GROUP_OPENED:var r=t;e.processGroupOpenedEvent(r);break;case le.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}}))},e.prototype.processGroupOpenedEvent=function(t){var e=t.columnGroup,o=null;if(e){var r=e.getGroupId();o=this.columnModel.getProvidedColumnGroup(r)}e&&!o||(this.logger.log("onColumnEvent-> processing "+t+" expanded = "+e.isExpanded()),this.columnModel.setColumnGroupOpened(o,e.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(t){var e,o=this,r=t.column,n=null;if(r&&(n=this.columnModel.getPrimaryColumn(r.getColId())),!r||n){var i=this.getMasterColumns(t);switch(t.type){case le.EVENT_COLUMN_MOVED:var s=t,a=t.columnApi.getColumnState(),l=a.map((function(t){return{colId:t.colId}}));this.columnModel.applyColumnState({state:l,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" toIndex = "+s.toIndex);break;case le.EVENT_COLUMN_VISIBLE:var u=t;a=t.columnApi.getColumnState(),l=a.map((function(t){return{colId:t.colId,hide:t.hide}}));this.columnModel.applyColumnState({state:l},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" visible = "+u.visible);break;case le.EVENT_COLUMN_PINNED:var p=t;a=t.columnApi.getColumnState(),l=a.map((function(t){return{colId:t.colId,pinned:t.pinned}}));this.columnModel.applyColumnState({state:l},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" pinned = "+p.pinned);break;case le.EVENT_COLUMN_RESIZED:var c=t,d={};i.forEach((function(e){o.logger.log("onColumnEvent-> processing "+t.type+" actualWidth = "+e.getActualWidth()),d[e.getId()]={key:e.getColId(),newWidth:e.getActualWidth()}})),null===(e=c.flexColumns)||void 0===e||e.forEach((function(t){d[t.getId()]&&delete d[t.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(t){t.api&&t.api.setAlwaysShowVerticalScroll(f)}))}},ng([nt("columnModel")],e.prototype,"columnModel",void 0),ng([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),ng([ig(0,at("loggerFactory"))],e.prototype,"setBeans",null),ng([et],e.prototype,"init",null),e=ng([rt("alignedGridsService")],e),e}(re),ag=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),lg=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},ug=function(t,e){return function(o,r){e(o,r,t)}},pg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ag(e,t),e.prototype.setBeans=function(t){this.logger=t.create("selectionService"),this.reset()},e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,le.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},e.prototype.setLastSelectedNode=function(t){this.lastSelectedNode=t},e.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},e.prototype.getSelectedNodes=function(){var t=[];return y(this.selectedNodes,(function(e,o){o&&t.push(o)})),t},e.prototype.getSelectedRows=function(){var t=[];return y(this.selectedNodes,(function(e,o){o&&o.data&&t.push(o.data)})),t},e.prototype.removeGroupsFromSelection=function(){var t=this;y(this.selectedNodes,(function(e,o){o&&o.group&&(t.selectedNodes[o.id]=void 0)}))},e.prototype.updateGroupsFromChildrenSelections=function(t){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===ft.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel,o=e.getRootNode();t||(t=new Sh(!0,o),t.setInactive()),t.forEachChangedNodeDepthFirst((function(t){if(t!==o){var e=t.calculateSelectedFromChildren();t.selectThisNode(null!==e&&e)}}))}},e.prototype.getNodeForIdIfSelected=function(t){return this.selectedNodes[t]},e.prototype.clearOtherNodes=function(t){var e=this,o={},r=0;return y(this.selectedNodes,(function(n,i){if(i&&i.id!==t.id){var s=e.selectedNodes[i.id];r+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),e.groupSelectsChildren&&i.parent&&(o[i.parent.id]=i.parent)}})),y(o,(function(t,e){var o=e.calculateSelectedFromChildren();e.selectThisNode(null!==o&&o)})),r},e.prototype.onRowSelected=function(t){var e=t.node;this.groupSelectsChildren&&e.group||(e.isSelected()?this.selectedNodes[e.id]=e:this.selectedNodes[e.id]=void 0)},e.prototype.syncInRowNode=function(t,e){this.syncInOldRowNode(t,e),this.syncInNewRowNode(t)},e.prototype.syncInOldRowNode=function(t,e){var o=n(e)&&t.id!==e.id;if(o&&e){var r=e.id,i=this.selectedNodes[r]==t;i&&(this.selectedNodes[e.id]=e)}},e.prototype.syncInNewRowNode=function(t){n(this.selectedNodes[t.id])?(t.setSelectedInitialValue(!0),this.selectedNodes[t.id]=t):t.setSelectedInitialValue(!1)},e.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},e.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===ft.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel,e=t.getTopLevelNodes();if(null!==e){var o=[];return r(e),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(t){for(var e=0,n=t.length;e<n;e++){var i=t[e];if(i.isSelected())o.push(i);else{var s=i;s.group&&s.children&&r(s.children)}}}},e.prototype.setRowModel=function(t){this.rowModel=t},e.prototype.isEmpty=function(){var t=0;return y(this.selectedNodes,(function(e,o){o&&t++})),0===t},e.prototype.deselectAllRowNodes=function(t){void 0===t&&(t=!1);var e=function(t){return t.selectThisNode(!1)},o=this.rowModel.getType()===ft.ROW_MODEL_TYPE_CLIENT_SIDE;if(t){if(!o)return void console.error("AG Grid: selecting just filtered only works with In Memory Row Model");var r=this.rowModel;r.forEachNodeAfterFilter(e)}else y(this.selectedNodes,(function(t,o){o&&e(o)})),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var n={type:le.EVENT_SELECTION_CHANGED};this.eventService.dispatchEvent(n)},e.prototype.selectAllRowNodes=function(t){if(void 0===t&&(t=!1),this.rowModel.getType()!==ft.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var e=this.rowModel,o=function(t){return t.selectThisNode(!0)};t?e.forEachNodeAfterFilter(o):e.forEachNode(o),this.rowModel.getType()===ft.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var r={type:le.EVENT_SELECTION_CHANGED};this.eventService.dispatchEvent(r)},e.prototype.selectNode=function(t,e){t&&t.setSelectedParams({newValue:!0,clearSelection:!e})},e.prototype.deselectIndex=function(t){var e=this.rowModel.getRow(t);this.deselectNode(e)},e.prototype.deselectNode=function(t){t&&t.setSelectedParams({newValue:!1,clearSelection:!1})},e.prototype.selectIndex=function(t,e){var o=this.rowModel.getRow(t);this.selectNode(o,e)},lg([nt("rowModel")],e.prototype,"rowModel",void 0),lg([ug(0,at("loggerFactory"))],e.prototype,"setBeans",null),lg([et],e.prototype,"init",null),e=lg([rt("selectionService")],e),e}(re),cg=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},dg=function(){function t(){}return t.prototype.sizeColumnsToFit=function(t){"undefined"===typeof t&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(t,"api")},t.prototype.setColumnGroupOpened=function(t,e){this.columnModel.setColumnGroupOpened(t,e,"api")},t.prototype.getColumnGroup=function(t,e){return this.columnModel.getColumnGroup(t,e)},t.prototype.getProvidedColumnGroup=function(t){return this.columnModel.getProvidedColumnGroup(t)},t.prototype.getDisplayNameForColumn=function(t,e){return this.columnModel.getDisplayNameForColumn(t,e)||""},t.prototype.getDisplayNameForColumnGroup=function(t,e){return this.columnModel.getDisplayNameForColumnGroup(t,e)||""},t.prototype.getColumn=function(t){return this.columnModel.getPrimaryColumn(t)},t.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},t.prototype.applyColumnState=function(t){return this.columnModel.applyColumnState(t,"api")},t.prototype.getColumnState=function(){return this.columnModel.getColumnState()},t.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},t.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},t.prototype.setColumnGroupState=function(t){this.columnModel.setColumnGroupState(t,"api")},t.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},t.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},t.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},t.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},t.prototype.getDisplayedColAfter=function(t){return this.columnModel.getDisplayedColAfter(t)},t.prototype.getDisplayedColBefore=function(t){return this.columnModel.getDisplayedColBefore(t)},t.prototype.setColumnVisible=function(t,e){this.columnModel.setColumnVisible(t,e,"api")},t.prototype.setColumnsVisible=function(t,e){this.columnModel.setColumnsVisible(t,e,"api")},t.prototype.setColumnPinned=function(t,e){this.columnModel.setColumnPinned(t,e,"api")},t.prototype.setColumnsPinned=function(t,e){this.columnModel.setColumnsPinned(t,e,"api")},t.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},t.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},t.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},t.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},t.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},t.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},t.prototype.moveColumn=function(t,e){"number"===typeof t?(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(t,e,"api")):this.columnModel.moveColumn(t,e,"api")},t.prototype.moveColumnByIndex=function(t,e){this.columnModel.moveColumnByIndex(t,e,"api")},t.prototype.moveColumns=function(t,e){this.columnModel.moveColumns(t,e,"api")},t.prototype.moveRowGroupColumn=function(t,e){this.columnModel.moveRowGroupColumn(t,e)},t.prototype.setColumnAggFunc=function(t,e){this.columnModel.setColumnAggFunc(t,e)},t.prototype.setColumnWidth=function(t,e,o,r){void 0===o&&(o=!0),this.columnModel.setColumnWidths([{key:t,newWidth:e}],!1,o,r)},t.prototype.setColumnWidths=function(t,e,o){void 0===e&&(e=!0),this.columnModel.setColumnWidths(t,!1,e,o)},t.prototype.setPivotMode=function(t){this.columnModel.setPivotMode(t)},t.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},t.prototype.getSecondaryPivotColumn=function(t,e){return console.warn("AG Grid: since version 28.0.x getSecondaryPivotColumn has been renamed, please use getPivotResultColumn instead"),this.getPivotResultColumn(t,e)},t.prototype.getPivotResultColumn=function(t,e){return this.columnModel.getSecondaryPivotColumn(t,e)},t.prototype.setValueColumns=function(t){this.columnModel.setValueColumns(t,"api")},t.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},t.prototype.removeValueColumn=function(t){this.columnModel.removeValueColumn(t,"api")},t.prototype.removeValueColumns=function(t){this.columnModel.removeValueColumns(t,"api")},t.prototype.addValueColumn=function(t){this.columnModel.addValueColumn(t,"api")},t.prototype.addValueColumns=function(t){this.columnModel.addValueColumns(t,"api")},t.prototype.setRowGroupColumns=function(t){this.columnModel.setRowGroupColumns(t,"api")},t.prototype.removeRowGroupColumn=function(t){this.columnModel.removeRowGroupColumn(t,"api")},t.prototype.removeRowGroupColumns=function(t){this.columnModel.removeRowGroupColumns(t,"api")},t.prototype.addRowGroupColumn=function(t){this.columnModel.addRowGroupColumn(t,"api")},t.prototype.addRowGroupColumns=function(t){this.columnModel.addRowGroupColumns(t,"api")},t.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},t.prototype.setPivotColumns=function(t){this.columnModel.setPivotColumns(t,"api")},t.prototype.removePivotColumn=function(t){this.columnModel.removePivotColumn(t,"api")},t.prototype.removePivotColumns=function(t){this.columnModel.removePivotColumns(t,"api")},t.prototype.addPivotColumn=function(t){this.columnModel.addPivotColumn(t,"api")},t.prototype.addPivotColumns=function(t){this.columnModel.addPivotColumns(t,"api")},t.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},t.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},t.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},t.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},t.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},t.prototype.autoSizeColumn=function(t,e){return this.columnModel.autoSizeColumn(t,e,"api")},t.prototype.autoSizeColumns=function(t,e){this.columnModel.autoSizeColumns({columns:t,skipHeader:e})},t.prototype.autoSizeAllColumns=function(t){this.columnModel.autoSizeAllColumns(t,"api")},t.prototype.setSecondaryColumns=function(t){console.warn("AG Grid: since version 28.0.x setSecondaryColumns has been renamed, please use setPivotResultColumns instead"),this.setPivotResultColumns(t)},t.prototype.setPivotResultColumns=function(t){this.columnModel.setSecondaryColumns(t,"api")},t.prototype.getSecondaryColumns=function(){return console.warn("AG Grid: since version 28.0.x getSecondaryColumns has been renamed, please use getPivotResultColumns instead"),this.getPivotResultColumns()},t.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},t.prototype.getPrimaryColumns=function(){return console.warn("AG Grid: since version 28.0.x getPrimaryColumns has been renamed, please use getColumns instead"),this.getColumns()},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(yi.removeAllReferences.bind(window,this,"Column API"),100)},t.prototype.getAllColumns=function(){return console.warn("AG Grid: since version 28.0.x getAllColumns has been renamed, please use getColumns instead"),this.getColumns()},t.prototype.columnGroupOpened=function(t,e){console.error("AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(t,e)},t.prototype.hideColumns=function(t,e){console.error("AG Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnModel.setColumnsVisible(t,!e,"api")},t.prototype.hideColumn=function(t,e){console.error("AG Grid: hideColumn is deprecated, use setColumnVisible"),this.columnModel.setColumnVisible(t,!e,"api")},t.prototype.setState=function(t){return console.error("AG Grid: setState is deprecated, use setColumnState"),this.setColumnState(t)},t.prototype.getState=function(){return console.error("AG Grid: getState is deprecated, use getColumnState"),this.getColumnState()},t.prototype.resetState=function(){console.error("AG Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},t.prototype.getAggregationColumns=function(){return console.error("AG Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnModel.getValueColumns()},t.prototype.removeAggregationColumn=function(t){console.error("AG Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnModel.removeValueColumn(t,"api")},t.prototype.removeAggregationColumns=function(t){console.error("AG Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnModel.removeValueColumns(t,"api")},t.prototype.addAggregationColumn=function(t){console.error("AG Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnModel.addValueColumn(t,"api")},t.prototype.addAggregationColumns=function(t){console.error("AG Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnModel.addValueColumns(t,"api")},t.prototype.setColumnAggFunction=function(t,e){console.error("AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnModel.setColumnAggFunc(t,e,"api")},t.prototype.getDisplayNameForCol=function(t){return console.error("AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(t,null)},t.prototype.setColumnState=function(t){return console.error("AG Grid: setColumnState is deprecated, use applyColumnState"),this.columnModel.applyColumnState({state:t,applyOrder:!0},"api")},t.prototype.getOriginalColumnGroup=function(t){return console.error("AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(t)},cg([nt("columnModel")],t.prototype,"columnModel",void 0),cg([ot],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),t=cg([rt("columnApi")],t),t}(),hg=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),fg=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},gg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.initialised=!1,e}return hg(e,t),e.prototype.init=function(){var t=this;this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0,this.eventService.addEventListener(le.EVENT_CELL_VALUE_CHANGED,(function(e){return t.callColumnCellValueChangedHandler(e)}),this.gridOptionsWrapper.useAsyncEvents())},e.prototype.getValue=function(t,e,o,r){if(void 0===o&&(o=!1),void 0===r&&(r=!1),this.initialised||this.init(),e){var n,i=t.getColDef(),s=i.field,a=t.getId(),l=e.data,u=e.groupData&&void 0!==e.groupData[a],p=!r&&e.aggData&&void 0!==e.aggData[a];if(o&&i.filterValueGetter?n=this.executeFilterValueGetter(i.filterValueGetter,l,t,e):this.gridOptionsWrapper.isTreeData()&&p?n=e.aggData[a]:this.gridOptionsWrapper.isTreeData()&&i.valueGetter?n=this.executeValueGetter(i.valueGetter,l,t,e):this.gridOptionsWrapper.isTreeData()&&s&&l?n=I(l,s,t.isFieldContainsDots()):u?n=e.groupData[a]:p?n=e.aggData[a]:i.valueGetter?n=this.executeValueGetter(i.valueGetter,l,t,e):s&&l&&(n=I(l,s,t.isFieldContainsDots())),this.cellExpressions&&"string"===typeof n&&0===n.indexOf("=")){var c=n.substring(1);n=this.executeValueGetter(c,l,t,e)}if(null==n){var d=this.getOpenedGroup(e,t);if(null!=d)return d}return n}},e.prototype.getOpenedGroup=function(t,e){if(this.gridOptionsWrapper.isShowOpenedGroup()){var o=e.getColDef();if(o.showRowGroup){var r=e.getColDef().showRowGroup,n=t.parent;while(null!=n){if(n.rowGroupColumn&&(!0===r||r===n.rowGroupColumn.getId()))return n.key;n=n.parent}}}},e.prototype.setValue=function(t,e,o,r){var s=this.columnModel.getPrimaryColumn(e);if(!t||!s)return!1;i(t.data)&&(t.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:t,data:t.data,oldValue:this.getValue(s,t),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(t.data,l,o,s.isFieldContainsDots()),void 0===c&&(c=!0),!c)return!1;t.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),d.newValue=this.getValue(s,t);var h={type:le.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:d.column,api:d.api,columnApi:d.columnApi,colDef:d.colDef,context:d.context,data:t.data,node:t,oldValue:d.oldValue,newValue:d.newValue,value:d.newValue,source:r};return this.eventService.dispatchEvent(h),!0},e.prototype.callColumnCellValueChangedHandler=function(t){var e=t.colDef.onCellValueChanged;"function"===typeof e&&e({node:t.node,data:t.data,oldValue:t.oldValue,newValue:t.newValue,colDef:t.colDef,column:t.column,api:t.api,columnApi:t.columnApi,context:t.context})},e.prototype.setValueUsingField=function(t,e,o,r){if(!e)return!1;var n=!1;if(r){var i=e.split("."),s=t;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=t[e]==o,n||(t[e]=o);return!n},e.prototype.executeFilterValueGetter=function(t,e,o,r){var n={data:e,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(t,n)},e.prototype.executeValueGetter=function(t,e,o,r){var n=o.getId(),i=this.valueCache.getValue(r,n);if(void 0!==i)return i;var s={data:e,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(t,s);return this.valueCache.setValue(r,n,a),a},e.prototype.getValueCallback=function(t,e){var o=this.columnModel.getPrimaryColumn(e);return o?this.getValue(o,t):null},e.prototype.getKeyForNode=function(t,e){var o=this.getValue(t,e),r=t.getColDef().keyCreator,n=o;if(r){var i={value:o,colDef:t.getColDef(),column:t,node:e,data:e.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([nt("expressionService")],e.prototype,"expressionService",void 0),fg([nt("columnModel")],e.prototype,"columnModel",void 0),fg([nt("valueCache")],e.prototype,"valueCache",void 0),fg([et],e.prototype,"init",null),e=fg([rt("valueService")],e),e}(re),vg=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),yg=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},mg=function(t,e){return function(o,r){e(o,r,t)}},Cg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.expressionToFunctionCache={},e}return vg(e,t),e.prototype.setBeans=function(t){this.logger=t.create("ExpressionService")},e.prototype.evaluate=function(t,e){if("function"===typeof t){var o=t;return o(e)}if("string"===typeof t){var r=t;return this.evaluateExpression(r,e)}console.error("AG Grid: value should be either a string or a function",t)},e.prototype.evaluateExpression=function(t,e){try{var o=this.createExpressionFunction(t),r=o(e.value,e.context,e.oldValue,e.newValue,e.value,e.node,e.data,e.colDef,e.rowIndex,e.api,e.columnApi,e.getValue,e.column,e.columnGroup);return r}catch(n){return console.log("Processing of the expression failed"),console.log("Expression = "+t),console.log("Params =",e),console.log("Exception = "+n),null}},e.prototype.createExpressionFunction=function(t){if(this.expressionToFunctionCache[t])return this.expressionToFunctionCache[t];var e=this.createFunctionBody(t),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",e);return this.expressionToFunctionCache[t]=o,o},e.prototype.createFunctionBody=function(t){return t.indexOf("return")>=0?t:"return "+t+";"},yg([mg(0,at("loggerFactory"))],e.prototype,"setBeans",null),e=yg([rt("expressionService")],e),e}(re),wg=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Eg=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Rg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.templateCache={},e.waitingCallbacks={},e}return wg(e,t),e.prototype.getTemplate=function(t,e){var o=this.templateCache[t];if(o)return o;var r=this.waitingCallbacks[t],n=this;if(!r){r=[],this.waitingCallbacks[t]=r;var i=new XMLHttpRequest;i.onload=function(){n.handleHttpResult(this,t)},i.open("GET",t),i.send()}return e&&r.push(e),null},e.prototype.handleHttpResult=function(t,e){if(200===t.status&&null!==t.response){this.templateCache[e]=t.response||t.responseText;for(var o=this.waitingCallbacks[e],r=0;r<o.length;r++){var n=o[r];n()}}else console.warn("AG Grid: Unable to get template error "+t.status+" - "+e)},e=Eg([rt("templateService")],e),e}(re),Og=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Sg=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},_g=function(t,e){return function(o,r){e(o,r,t)}},bg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Og(e,t),e.prototype.setBeans=function(t){this.logging=t.isDebug()},e.prototype.create=function(t){return new Pg(t,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},Sg([_g(0,at("gridOptionsWrapper"))],e.prototype,"setBeans",null),e=Sg([rt("loggerFactory")],e),e}(re),Pg=function(){function t(t,e){this.name=t,this.isLoggingFunc=e}return t.prototype.isLogging=function(){return this.isLoggingFunc()},t.prototype.log=function(t){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+t)},t}(),Tg=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Dg=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Ag=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Tg(e,t),e.prototype.setComp=function(t,e,o){var r=this;this.view=t,this.eGridHostDiv=e,this.eGui=o,this.dragAndDropService.addDropTarget({getContainer:function(){return r.eGui},isInterestedIn:function(t){return t===_a.HeaderCell||t===_a.ToolPanel},getIconName:function(){return xa.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(e),this.createManagedBean(new Kl(this.view)),this.addRtlSupport(),this.addManagedListener(this,le.EVENT_KEYBOARD_FOCUS,(function(){r.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,le.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)},e.prototype.isDetailGrid=function(){var t,e,o=this.focusService.findTabbableParent(this.getGui());return(null===(e=null===(t=o)||void 0===t?void 0:t.getAttribute("row-id"))||void 0===e?void 0:e.startsWith("detail"))||!1},e.prototype.showDropZones=function(){return gt.isRegistered(ut.RowGroupingModule)},e.prototype.showSideBar=function(){return gt.isRegistered(ut.SideBarModule)},e.prototype.showStatusBar=function(){return gt.isRegistered(ut.StatusBarModule)},e.prototype.showWatermark=function(){return gt.isRegistered(ut.EnterpriseCoreModule)},e.prototype.onGridSizeChanged=function(){var t={type:le.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(t)},e.prototype.addRtlSupport=function(){var t=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";this.view.setRtlClass(t)},e.prototype.destroyGridUi=function(){this.view.destroyGridUi()},e.prototype.getGui=function(){return this.eGui},e.prototype.setResizeCursor=function(t){this.view.setCursor(t?"ew-resize":null)},e.prototype.disableUserSelect=function(t){this.view.setUserSelect(t?"none":null)},e.prototype.focusNextInnerContainer=function(t){var e=this.gridOptionsWrapper.getDocument(),o=this.view.getFocusableContainers(),r=o.findIndex((function(t){return t.contains(e.activeElement)})),n=r+(t?-1:1);return!(n<=0||n>=o.length)&&this.focusService.focusInto(o[n])},e.prototype.focusInnerElement=function(t){var e=this.view.getFocusableContainers();if(t){if(e.length>1)return this.focusService.focusInto(Et(e),!0);var o=Et(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(o,!0))return!0}return this.focusService.focusFirstHeader()},e.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1),this.view.forceFocusOutOfContainer(t)},Dg([nt("focusService")],e.prototype,"focusService",void 0),Dg([nt("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Dg([nt("columnModel")],e.prototype,"columnModel",void 0),Dg([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),Dg([nt("mouseEventService")],e.prototype,"mouseEventService",void 0),Dg([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),e}(re),Ng=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ig=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Gg=function(t){function e(e){var o=t.call(this,void 0)||this;return o.eGridDiv=e,o}return Ng(e,t),e.prototype.postConstruct=function(){var t=this;this.logger=this.loggerFactory.create("GridComp");var e={destroyGridUi:function(){return t.destroyBean(t)},setRtlClass:function(e){return t.addCssClass(e)},addOrRemoveKeyboardFocusClass:function(e){return t.addOrRemoveCssClass(Vf.AG_KEYBOARD_FOCUS,e)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(e){t.getGui().style.userSelect=null!=e?e:"",t.getGui().style.webkitUserSelect=null!=e?e:""},setCursor:function(e){t.getGui().style.cursor=null!=e?e:""}};this.ctrl=this.createManagedBean(new Ag);var o=this.createTemplate();this.setTemplate(o),this.ctrl.setComp(e,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(e){return t.ctrl.focusInnerElement(e)}})},e.prototype.insertGridIntoDom=function(){var t=this,e=this.getGui();this.eGridDiv.appendChild(e),this.addDestroyFunc((function(){t.eGridDiv.removeChild(e),t.logger.log("Grid removed from DOM")}))},e.prototype.updateLayoutClasses=function(t,e){var o=this.eRootWrapperBody.classList;o.toggle(Al.AUTO_HEIGHT,e.autoHeight),o.toggle(Al.NORMAL,e.normal),o.toggle(Al.PRINT,e.print),this.addOrRemoveCssClass(Al.AUTO_HEIGHT,e.autoHeight),this.addOrRemoveCssClass(Al.NORMAL,e.normal),this.addOrRemoveCssClass(Al.PRINT,e.print)},e.prototype.createTemplate=function(){var t=this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"",e=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 '+t+'\n <div class="ag-root-wrapper-body" ref="rootWrapperBody" role="presentation">\n <ag-grid-body ref="gridBody"></ag-grid-body>\n '+e+"\n </div>\n "+o+"\n <ag-pagination></ag-pagination>\n "+r+"\n </div>";return n},e.prototype.getFocusableElement=function(){return this.eRootWrapperBody},e.prototype.getFocusableContainers=function(){var t=[this.gridBodyComp.getGui()];return this.sideBarComp&&t.push(this.sideBarComp.getGui()),t.filter((function(t){return _r(t)}))},Ig([nt("loggerFactory")],e.prototype,"loggerFactory",void 0),Ig([Ai("gridBody")],e.prototype,"gridBodyComp",void 0),Ig([Ai("sideBar")],e.prototype,"sideBarComp",void 0),Ig([Ai("rootWrapperBody")],e.prototype,"eRootWrapperBody",void 0),Ig([et],e.prototype,"postConstruct",null),e}(Sf),Fg=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Lg=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Mg=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t=[],e=0;e<arguments.length;e++)t=t.concat(Mg(arguments[e]));return t},Hg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var o;return Fg(e,t),o=e,e.prototype.progressSort=function(t,e,o){var r=this.getNextSortDirection(t);this.setSortForColumn(t,r,e,o)},e.prototype.setSortForColumn=function(t,e,o,r){var n;e!==ft.SORT_ASC&&e!==ft.SORT_DESC&&(e=null);var i=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup(),s=[t];if(i&&t.getColDef().showRowGroup){var a=this.columnModel.getSourceColumnsForGroupColumn(t),l=null===(n=a)||void 0===n?void 0:n.filter((function(t){return t.getColDef().sortable}));l&&(s=xg([t],l))}s.forEach((function(t){return t.setSort(e,r)}));var u=(o||this.gridOptionsWrapper.isAlwaysMultiSort())&&!this.gridOptionsWrapper.isSuppressMultiSort();u||this.clearSortBarTheseColumns(s,r),this.updateSortIndex(t),this.dispatchSortChangedEvents(r)},e.prototype.updateSortIndex=function(t){var e=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup(),o=this.columnModel.getGroupDisplayColumnForGroup(t.getId()),r=e&&o||t,n=this.getIndexableColumnsOrdered();this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(t){return t.setSortIndex(null)}));var i=n.filter((function(t){return t!==r})),s=r.getSort()?xg(i,[r]):i;s.forEach((function(t,e){return t.setSortIndex(e)}))},e.prototype.onSortChanged=function(t){this.dispatchSortChangedEvents(t)},e.prototype.isSortActive=function(){var t=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),e=t.filter((function(t){return!!t.getSort()}));return e&&e.length>0},e.prototype.dispatchSortChangedEvents=function(t){var e={type:le.EVENT_SORT_CHANGED,source:t};this.eventService.dispatchEvent(e)},e.prototype.clearSortBarTheseColumns=function(t,e){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(o){t.includes(o)||o.setSort(void 0,e)}))},e.prototype.getNextSortDirection=function(t){var e;if(e=t.getColDef().sortingOrder?t.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():o.DEFAULT_SORTING_ORDER,!Array.isArray(e)||e.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+e),null;var r,n=e.indexOf(t.getSort()),i=n<0,s=n==e.length-1;return r=i||s?e[0]:e[n+1],o.DEFAULT_SORTING_ORDER.indexOf(r)<0?(console.warn("AG Grid: invalid sort type "+r),null):r},e.prototype.getColumnsOrderedForSort=function(){var t=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),e={};return t.forEach((function(t,o){return e[t.getId()]=o})),t.sort((function(t,o){var r=t.getSortIndex(),n=o.getSortIndex();if(null!=r&&null!=n)return r-n;if(null==r&&null==n){var i=e[t.getId()],s=e[o.getId()];return i>s?1:-1}return null==n?-1:1})),t},e.prototype.getIndexableColumnsOrdered=function(){var t=this;return this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()?this.getColumnsOrderedForSort().filter((function(e){var o;if(e.getColDef().showRowGroup){if(e.getColDef().field&&e.getSort())return!0;var r=t.columnModel.getSourceColumnsForGroupColumn(e);return null===(o=r)||void 0===o?void 0:o.some((function(t){return!!t.getSort()}))}return!!e.getSort()})):this.getColumnsWithSortingOrdered()},e.prototype.getColumnsWithSortingOrdered=function(){var t=this.getColumnsOrderedForSort();return t.filter((function(t){return!!t.getSort()}))},e.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().map((function(t){return{sort:t.getSort(),colId:t.getId()}}))},e.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map((function(t){return{sort:t.getSort(),column:t}}))},e.prototype.canColumnDisplayMixedSort=function(t){var e=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup(),o=!!t.getColDef().showRowGroup;return e&&o},e.prototype.getDisplaySortForColumn=function(t){var e,o=this.columnModel.getSourceColumnsForGroupColumn(t);if(!this.canColumnDisplayMixedSort(t)||!(null===(e=o)||void 0===e?void 0:e.length))return t.getSort();var r=!!t.getColDef().field,n=r?xg([t],o):o,i=n[0].getSort(),s=n.every((function(t){return t.getSort()==i}));return s?i:"mixed"},e.prototype.getDisplaySortIndexForColumn=function(t){var e=this,o=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();if(!o)return this.getColumnsWithSortingOrdered().indexOf(t);var r=this.columnModel.getGroupDisplayColumnForGroup(t.getId());if(r)return t.getSort()?this.getDisplaySortIndexForColumn(r):null;var n=this.getIndexableColumnsOrdered().filter((function(t){return!e.columnModel.getGroupDisplayColumnForGroup(t.getId())}));return n.indexOf(t)},e.DEFAULT_SORTING_ORDER=[ft.SORT_ASC,ft.SORT_DESC,null],Lg([nt("columnModel")],e.prototype,"columnModel",void 0),e=o=Lg([rt("sortController")],e),e}(re),Vg=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Wg=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},kg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vg(e,t),e.prototype.setMouseOver=function(t){this.selectedColumns=t;var e={type:le.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(e)},e.prototype.clearMouseOver=function(){this.selectedColumns=null;var t={type:le.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(t)},e.prototype.isHovered=function(t){return!!this.selectedColumns&&this.selectedColumns.indexOf(t)>=0},e=Wg([rt("columnHoverService")],e),e}(re),Bg=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),jg=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Ug=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.executeNextFuncs=[],e.executeLaterFuncs=[],e.active=!1,e.animationThreadCount=0,e}return Bg(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){return t.gridBodyCtrl=e.gridBodyCtrl}))},e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(t){this.active?this.executeNextFuncs.push(t):t()},e.prototype.executeLaterVMTurn=function(t){this.active?this.executeLaterFuncs.push(t):t()},e.prototype.ensureAnimationCssClassPresent=function(){var t=this;this.animationThreadCount++;var e=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){t.animationThreadCount===e&&t.gridBodyCtrl.setColumnMovingCss(!1)}))},e.prototype.flush=function(){var t=this.executeNextFuncs;this.executeNextFuncs=[];var e=this.executeLaterFuncs;this.executeLaterFuncs=[],0===t.length&&0===e.length||(window.setTimeout((function(){return t.forEach((function(t){return t()}))}),0),window.setTimeout((function(){return e.forEach((function(t){return t()}))}),300))},jg([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),jg([et],e.prototype,"postConstruct",null),e=jg([rt("columnAnimationService")],e),e}(re),zg=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Kg=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Yg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var o;return zg(e,t),o=e,e.prototype.createAutoGroupColumns=function(t,e){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?e.forEach((function(e,n){r.push(o.createOneAutoGroupColumn(t,e,n))})):r.push(this.createOneAutoGroupColumn(t)),r},e.prototype.createOneAutoGroupColumn=function(t,e,r){var n,s=this.generateDefaultColDef(e);n=e?ft.GROUP_AUTO_COLUMN_ID+"-"+e.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=t.find((function(t){return t.getId()==n}));if(u)return u.setColDef(s,null),this.columnFactory.applyColumnState(u,s),u;var p=new mt(s,null,n,!0);return this.context.createBean(p),p},e.prototype.generateDefaultColDef=function(t){var e=this.gridOptionsWrapper.getAutoGroupColumnDef(),o=this.gridOptionsWrapper.getLocaleTextFunc(),r={headerName:o("group","Group")},n=e&&(e.cellRenderer||e.cellRendererFramework||e.cellRendererSelector);if(n||(r.cellRenderer="agGroupCellRenderer"),t){var i=t.getColDef();Object.assign(r,{headerName:this.columnModel.getDisplayNameForColumn(t,"header"),headerValueGetter:i.headerValueGetter}),(i.cellRenderer||i.cellRendererFramework)&&Object.assign(r,{cellRendererParams:{innerRenderer:i.cellRenderer,innerRendererFramework:i.cellRendererFramework,innerRendererParams:i.cellRendererParams}}),r.showRowGroup=t.getColId()}else r.showRowGroup=!0;return r},e.GROUP_AUTO_COLUMN_BUNDLE_ID=ft.GROUP_AUTO_COLUMN_ID,Kg([nt("columnModel")],e.prototype,"columnModel",void 0),Kg([nt("columnFactory")],e.prototype,"columnFactory",void 0),e=o=Kg([rt("autoGroupColService")],e),e}(re),qg=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xg=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Qg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qg(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.centerRowContainerCon=e.centerRowContainerCtrl,t.addManagedListener(t.eventService,le.EVENT_BODY_HEIGHT_CHANGED,t.onBodyHeightChanged.bind(t)),t.addManagedListener(t.eventService,le.EVENT_SCROLL_VISIBILITY_CHANGED,t.onScrollVisibilityChanged.bind(t)),t.checkPageSize()}))},e.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},e.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},e.prototype.onBodyHeightChanged=function(){this.checkPageSize()},e.prototype.checkPageSize=function(){if(!this.notActive()){var t=this.gridOptionsWrapper.getRowHeightAsNumber(),e=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(e>0){var o=Math.floor(e/t);this.gridOptionsWrapper.setProperty("paginationPageSize",o)}}},Xg([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),Xg([et],e.prototype,"postConstruct",null),e=Xg([rt("paginationAutoPageSizeService")],e),e}(re),Jg=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zg=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},$g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cacheVersion=0,e}return Jg(e,t),e.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(t,e,o){this.active&&(t.__cacheVersion!==this.cacheVersion&&(t.__cacheVersion=this.cacheVersion,t.__cacheData={}),t.__cacheData[e]=o)},e.prototype.getValue=function(t,e){if(this.active&&t.__cacheVersion===this.cacheVersion)return t.__cacheData[e]},Zg([et],e.prototype,"init",null),e=Zg([rt("valueCache")],e),e}(re),tv=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ev=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},ov=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tv(e,t),e.prototype.init=function(){this.rowModel.getType()===ft.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,le.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},e.prototype.onCellValueChanged=function(t){t.source!==ft.SOURCE_PASTE&&this.doChangeDetection(t.node,t.column)},e.prototype.doChangeDetection=function(t,e){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!t.isRowPinned()){var o=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),r=new Sh(o,this.clientSideRowModel.getRootNode());r.addParentNode(t.parent,[e]),this.clientSideRowModel.doAggregate(r)}this.rowRenderer.refreshCells()}},ev([nt("rowModel")],e.prototype,"rowModel",void 0),ev([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),ev([et],e.prototype,"init",null),e=ev([rt("changeDetectionService")],e),e}(re),rv=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),nv=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},iv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return rv(e,t),e.prototype.adaptFunction=function(t,e){var o=this.componentMetadataProvider.retrieve(t);return o&&o.functionAdapter?o.functionAdapter(e):null},e.prototype.adaptCellRendererFunction=function(t){var e=function(){function e(){}return e.prototype.refresh=function(t){return!1},e.prototype.getGui=function(){return this.eGui},e.prototype.init=function(e){var o=t(e),r=typeof o;this.eGui="string"!==r&&"number"!==r&&"boolean"!==r?null!=o?o:br("<span></span>"):br("<span>"+o+"</span>")},e}();return e},e.prototype.doesImplementIComponent=function(t){return!!t&&(t.prototype&&"getGui"in t.prototype)},nv([nt("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),e=nv([rt("agComponentUtils")],e),e}(re),sv=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),av=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},lv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return sv(e,t),e.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:[]}}},e.prototype.retrieve=function(t){return this.componentMetaData[t]},av([nt("agComponentUtils")],e.prototype,"agComponentUtils",void 0),av([et],e.prototype,"postConstruct",null),e=av([rt("componentMetadataProvider")],e),e}(re),uv=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),pv=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,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(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uv(e,t),e.prototype.getSassVariable=function(t,e){var o="ag-theme-"+(t.match("material")?"material":t.match("balham")?"balham":t.match("alpine")?"alpine":"custom"),r=gv[o][e],n=0;yv[t]||(yv[t]={});var i=yv[t][e];if(null!=i)return i;if(vv[e]){var s=vv[e],a=document.createElement("div");a.classList.add(t),a.style.position="absolute";var l=s.reduce((function(t,e){var o=document.createElement("div");return o.style.position="static",o.classList.add(e),t.appendChild(o),o}),a);if(document.body){document.body.appendChild(a);var u=-1!==e.toLowerCase().indexOf("height")?"height":"width";n=parseInt(window.getComputedStyle(l)[u],10),document.body.removeChild(a)}}return yv[t][e]=n||r,yv[t][e]},e.prototype.isThemeDark=function(){var t=this.getTheme().theme;return!!t&&t.indexOf("dark")>=0},e.prototype.chartMenuPanelWidth=function(){var t=this.getTheme().themeFamily;return this.getSassVariable(t,"chartMenuPanelWidth")},e.prototype.getTheme=function(){var t=/\bag-(material|(?:theme-([\w\-]*)))\b/g,e=this.eGridDiv,o=null,r=[];while(e){if(o=t.exec(e.className),o){var n=e.className.match(t);n&&(r=n);break}e=e.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:e,themeFamily:i.replace(/-dark$/,""),allThemes:r}},pv([nt("eGridDiv")],e.prototype,"eGridDiv",void 0),e=pv([rt("environment")],e),e}(re),Cv=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),wv=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Ev=function(t,e){return function(o,r){e(o,r,t)}},Rv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scrollY=0,e.uiBodyHeight=0,e}return Cv(e,t),e.prototype.agWire=function(t){this.logger=t.create("RowContainerHeightService")},e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,le.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=eo(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},e.prototype.isStretching=function(){return this.stretching},e.prototype.getDivStretchOffset=function(){return this.divStretchOffset},e.prototype.updateOffset=function(){if(this.stretching){var t=this.ctrlsService.getGridBodyCtrl(),e=t.getScrollFeature().getVScrollPosition().top,o=this.getUiBodyHeight(),r=e!==this.scrollY||o!==this.uiBodyHeight;r&&(this.scrollY=e,this.uiBodyHeight=o,this.calculateOffset())}},e.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var t=this.scrollY/this.maxScrollY,e=t*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+e+" ("+this.pixelsToShave+" * "+t+")"),this.setDivStretchOffset(e)},e.prototype.setUiContainerHeight=function(t){t!==this.uiContainerHeight&&(this.uiContainerHeight=t,this.eventService.dispatchEvent({type:le.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},e.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},e.prototype.setDivStretchOffset=function(t){var e="number"===typeof t?Math.floor(t):null;this.divStretchOffset!==e&&(this.divStretchOffset=e,this.eventService.dispatchEvent({type:le.EVENT_HEIGHT_SCALE_CHANGED}))},e.prototype.setModelHeight=function(t){this.modelHeight=t,this.stretching=null!=t&&this.maxDivHeight>0&&t>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},e.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},e.prototype.getRealPixelPosition=function(t){return t-this.divStretchOffset},e.prototype.getUiBodyHeight=function(){var t=this.ctrlsService.getGridBodyCtrl(),e=t.getScrollFeature().getVScrollPosition();return e.bottom-e.top},e.prototype.getScrollPositionForPixel=function(t){if(this.pixelsToShave<=0)return t;var e=this.modelHeight-this.getUiBodyHeight(),o=t/e,r=this.maxScrollY*o;return r},wv([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),wv([Ev(0,at("loggerFactory"))],e.prototype,"agWire",null),wv([et],e.prototype,"postConstruct",null),e=wv([rt("rowContainerHeightService")],e),e}(re),Ov=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Sv=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},_v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ov(e,t),e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},e.prototype.updateSelectableAfterGrouping=function(t){if(this.isRowSelectableFunc){var e=function(t){return t.childrenAfterGroup};this.recurseDown(t.childrenAfterGroup,e)}},e.prototype.recurseDown=function(t,e){var o=this;t&&t.forEach((function(t){if(t.group){var r;if(t.hasChildren()&&o.recurseDown(e(t),e),o.groupSelectsChildren){var i=(e(t)||[]).find((function(t){return!0===t.selectable}));r=n(i)}else r=!!o.isRowSelectableFunc&&o.isRowSelectableFunc(t);t.setRowSelectable(r)}}))},Sv([et],e.prototype,"init",null),e=Sv([rt("selectableService")],e),e}(re),bv=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Pv=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Tv=function(t){function e(){var e=t.call(this)||this;return e.previousAndFirstButtonsDisabled=!1,e.nextButtonDisabled=!1,e.lastButtonDisabled=!1,e}return bv(e,t),e.prototype.postConstruct=function(){var t=this,e=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",jn(e?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",jn(e?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",jn(e?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",jn(e?"first":"last",this.gridOptionsWrapper));var o=this.gridOptionsWrapper.isPagination(),r=o&&!this.gridOptionsWrapper.isSuppressPaginationPanel();r?(this.addManagedListener(this.eventService,le.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(e){var o=e.el,r=e.fn;t.addManagedListener(o,"click",r),t.addManagedListener(o,"keydown",(function(t){t.key!==zn.ENTER&&t.key!==zn.SPACE||(t.preventDefault(),r())}))})),this.onPaginationChanged()):this.setDisplayed(!1)},e.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},e.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},e.prototype.setCurrentPageLabel=function(){var t=this.paginationProxy.getTotalPages()>0,e=this.paginationProxy.getCurrentPage(),o=t?e+1:0;this.lbCurrent.innerHTML=this.formatNumber(o)},e.prototype.formatNumber=function(t){var e=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();if(e){var o={value:t};return e(o)}var r=this.gridOptionsWrapper.getLocaleTextFunc(),n=r("thousandSeparator",","),i=r("decimalSeparator",".");return Ro(t,n,i)},e.prototype.getTemplate=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),e=t("page","Page"),o=t("to","to"),r=t("of","of"),n=t("firstPage","First Page"),i=t("previousPage","Previous Page"),s=t("nextPage","Next Page"),a=t("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">'+e+'</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>'},e.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},e.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},e.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},e.prototype.enableOrDisableButtons=function(){var t=this.paginationProxy.getCurrentPage(),e=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===t,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var r=this.isZeroPagesToDisplay(),n=e&&t===o-1;this.nextButtonDisabled=n||r,this.lastButtonDisabled=!e||r||t===o-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},e.prototype.toggleButtonDisabled=function(t,e){mn(t,e),t.classList.toggle("ag-disabled",e),e?t.removeAttribute("tabindex"):t.setAttribute("tabindex","0")},e.prototype.updateRowLabels=function(){var t,e,o=this.paginationProxy.getCurrentPage(),r=this.paginationProxy.getPageSize(),n=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?t=e=0:(t=r*o+1,e=t+r-1,n&&e>i&&(e=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(t),this.rowNodeBlockLoader.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(e)},e.prototype.isZeroPagesToDisplay=function(){var t=this.paginationProxy.isLastPageFound(),e=this.paginationProxy.getTotalPages();return t&&0===e},e.prototype.setTotalLabels=function(){var t=this.paginationProxy.isLastPageFound(),e=this.paginationProxy.getTotalPages(),o=t?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(t)this.lbTotal.innerHTML=this.formatNumber(e),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var i=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=i,this.lbRecordCount.innerHTML=i}},e.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([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),Pv([nt("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),Pv([Ai("btFirst")],e.prototype,"btFirst",void 0),Pv([Ai("btPrevious")],e.prototype,"btPrevious",void 0),Pv([Ai("btNext")],e.prototype,"btNext",void 0),Pv([Ai("btLast")],e.prototype,"btLast",void 0),Pv([Ai("lbRecordCount")],e.prototype,"lbRecordCount",void 0),Pv([Ai("lbFirstRowOnPage")],e.prototype,"lbFirstRowOnPage",void 0),Pv([Ai("lbLastRowOnPage")],e.prototype,"lbLastRowOnPage",void 0),Pv([Ai("lbCurrent")],e.prototype,"lbCurrent",void 0),Pv([Ai("lbTotal")],e.prototype,"lbTotal",void 0),Pv([et],e.prototype,"postConstruct",null),e}(Di),Dv=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Av=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s};(function(t){t[t["Loading"]=0]="Loading",t[t["NoRows"]=1]="NoRows"})(Uf||(Uf={}));var Nv=function(t){function e(){var o=t.call(this,e.TEMPLATE)||this;return o.inProgress=!1,o.destroyRequested=!1,o.manuallyDisplayed=!1,o}return Dv(e,t),e.prototype.updateLayoutClasses=function(t,e){var o=this.eOverlayWrapper.classList;o.toggle(Al.AUTO_HEIGHT,e.autoHeight),o.toggle(Al.NORMAL,e.normal),o.toggle(Al.PRINT,e.print)},e.prototype.postConstruct=function(){this.createManagedBean(new Kl(this)),this.setDisplayed(!1),this.addManagedListener(this.eventService,le.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,le.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},e.prototype.setWrapperTypeClass=function(t){var e=this.eOverlayWrapper.classList;e.toggle("ag-overlay-loading-wrapper",t===Uf.Loading),e.toggle("ag-overlay-no-rows-wrapper",t===Uf.NoRows)},e.prototype.showLoadingOverlay=function(){if(!this.gridOptionsWrapper.isSuppressLoadingOverlay()){var t={},e=this.userComponentFactory.getLoadingOverlayCompDetails(t),o=e.newAgStackInstance();this.showOverlay(o,Uf.Loading)}},e.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsWrapper.isSuppressNoRowsOverlay()){var t={},e=this.userComponentFactory.getNoRowsOverlayCompDetails(t),o=e.newAgStackInstance();this.showOverlay(o,Uf.NoRows)}},e.prototype.showOverlay=function(t,e){var o=this;this.inProgress||(this.setWrapperTypeClass(e),this.destroyActiveOverlay(),this.inProgress=!0,t&&t.then((function(t){o.inProgress=!1,o.eOverlayWrapper.appendChild(t.getGui()),o.activeOverlay=t,o.destroyRequested&&(o.destroyRequested=!1,o.destroyActiveOverlay())})),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0))},e.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),Rr(this.eOverlayWrapper))},e.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1)},e.prototype.destroy=function(){this.destroyActiveOverlay(),t.prototype.destroy.call(this)},e.prototype.showOrHideOverlay=function(){var t=this.paginationProxy.isEmpty(),e=this.gridOptionsWrapper.isSuppressNoRowsOverlay();t&&!e?this.showNoRowsOverlay():this.hideOverlay()},e.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},e.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},e.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([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Av([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),Av([nt("gridApi")],e.prototype,"gridApi",void 0),Av([nt("columnModel")],e.prototype,"columnModel",void 0),Av([Ai("eOverlayWrapper")],e.prototype,"eOverlayWrapper",void 0),Av([et],e.prototype,"postConstruct",null),e}(Di),Iv=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Gv=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Fv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Iv(e,t),e.prototype.getFirstRow=function(){var t,e=0;return this.pinnedRowModel.getPinnedTopRowCount()?t=ft.PINNED_TOP:this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(t=ft.PINNED_BOTTOM),void 0===t?null:{rowIndex:e,rowPinned:t}},e.prototype.getLastRow=function(){var t,e=null,o=this.pinnedRowModel.getPinnedBottomRowCount(),r=this.pinnedRowModel.getPinnedTopRowCount();return o?(e=ft.PINNED_BOTTOM,t=o-1):this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageLastRow()):r&&(e=ft.PINNED_TOP,t=r-1),void 0===t?null:{rowIndex:t,rowPinned:e}},e.prototype.getRowNode=function(t){switch(t.rowPinned){case ft.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case ft.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},e.prototype.sameRow=function(t,e){return!t&&!e||!(t&&!e||!t&&e)&&(t.rowIndex===e.rowIndex&&t.rowPinned==e.rowPinned)},e.prototype.before=function(t,e){switch(t.rowPinned){case ft.PINNED_TOP:if(e.rowPinned!==ft.PINNED_TOP)return!0;break;case ft.PINNED_BOTTOM:if(e.rowPinned!==ft.PINNED_BOTTOM)return!1;break;default:if(n(e.rowPinned))return e.rowPinned!==ft.PINNED_TOP;break}return t.rowIndex<e.rowIndex},e.prototype.rowMax=function(t){var e,o=this;return t.forEach((function(t){(void 0===e||o.before(e,t))&&(e=t)})),e},e.prototype.rowMin=function(t){var e,o=this;return t.forEach((function(t){(void 0===e||o.before(t,e))&&(e=t)})),e},Gv([nt("rowModel")],e.prototype,"rowModel",void 0),Gv([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Gv([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),e=Gv([rt("rowPositionUtils")],e),e}(re),Lv=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Mv=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},xv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lv(e,t),e.prototype.createId=function(t){var e=t.rowIndex,o=t.rowPinned,r=t.column;return this.createIdFromValues(e,r,o)},e.prototype.createIdFromValues=function(t,e,o){return t+"."+(null==o?"null":o)+"."+e.getId()},e.prototype.equals=function(t,e){var o=t.column===e.column,r=t.rowPinned===e.rowPinned,n=t.rowIndex===e.rowIndex;return o&&r&&n},e=Mv([rt("cellPositionUtils")],e),e}(re),Hv=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Vv=function(){function t(t){this.cellValueChanges=t}return t}(),Wv=function(t){function e(e,o,r,n){var i=t.call(this,e)||this;return i.initialRange=o,i.finalRange=r,i.ranges=n,i}return Hv(e,t),e}(Vv),kv=function(){function t(e){this.actionStack=[],this.maxStackSize=e||t.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return t.prototype.pop=function(){return this.actionStack.pop()},t.prototype.push=function(t){var e=t.cellValueChanges&&t.cellValueChanges.length>0;e&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(t))},t.prototype.clear=function(){this.actionStack=[]},t.prototype.getCurrentStackSize=function(){return this.actionStack.length},t.DEFAULT_STACK_SIZE=10,t}(),Bv=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),jv=function(){return jv=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},jv.apply(this,arguments)},Uv=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},zv=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t=[],e=0;e<arguments.length;e++)t=t.concat(zv(arguments[e]));return t},Yv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cellValueChanges=[],e.activeCellEdit=null,e.activeRowEdit=null,e.isPasting=!1,e.isRangeInAction=!1,e.onCellValueChanged=function(t){var o={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned},r=null!==e.activeCellEdit&&e.cellPositionUtils.equals(e.activeCellEdit,o),n=null!==e.activeRowEdit&&e.rowPositionUtils.sameRow(e.activeRowEdit,o),i=r||n||e.isPasting||e.isRangeInAction;if(i){var s=t.rowPinned,a=t.rowIndex,l=t.column,u=t.oldValue,p=t.value,c={rowPinned:s,rowIndex:a,columnId:l.getColId(),newValue:p,oldValue:u};e.cellValueChanges.push(c)}},e.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()},e}return Bv(e,t),e.prototype.init=function(){var t=this;if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new kv(e),this.redoStack=new kv(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,le.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,le.EVENT_MODEL_UPDATED,(function(e){e.keepUndoRedoStack||t.clearStacks()})),this.addManagedListener(this.eventService,le.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,le.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,le.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,le.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,le.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,le.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,le.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,le.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()})))}},e.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},e.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},e.prototype.undo=function(){if(this.undoStack){var t=this.undoStack.pop();t&&t.cellValueChanges&&(this.processAction(t,(function(t){return t.oldValue})),t instanceof Wv?this.processRange(t.ranges||[t.initialRange]):this.processCell(t.cellValueChanges),this.redoStack.push(t))}},e.prototype.redo=function(){if(this.redoStack){var t=this.redoStack.pop();t&&t.cellValueChanges&&(this.processAction(t,(function(t){return t.newValue})),t instanceof Wv?this.processRange(t.ranges||[t.finalRange]):this.processCell(t.cellValueChanges),this.undoStack.push(t))}},e.prototype.processAction=function(t,e){var o=this;t.cellValueChanges.forEach((function(t){var r,n=t.rowIndex,i=t.rowPinned,s=t.columnId,a={rowIndex:n,rowPinned:i},l=o.getRowNode(a);if(l.displayed){var u=e(t),p="function"===typeof(null===(r=u)||void 0===r?void 0:r.toString)?u.toString():u;l.setDataValue(s,p)}}))},e.prototype.processRange=function(t){var e,o=this;this.rangeService.removeAllCellRanges(!0),t.forEach((function(r,n){if(r){var i=r.startRow,s=r.endRow;n===t.length-1&&(e={rowPinned:i.rowPinned,rowIndex:i.rowIndex,columnId:r.startColumn.getColId()},o.setLastFocusedCell(e));var a={rowStartIndex:i.rowIndex,rowStartPinned:i.rowPinned,rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnStart:r.startColumn,columns:r.columns};o.rangeService.addCellRange(a)}}))},e.prototype.processCell=function(t){var e=t[0],o=e.rowIndex,r=e.rowPinned,n={rowIndex:o,rowPinned:r},i=this.getRowNode(n),s={rowPinned:e.rowPinned,rowIndex:i.rowIndex,columnId:e.columnId};this.setLastFocusedCell(s,!0)},e.prototype.setLastFocusedCell=function(t,e){var o=t.rowIndex,r=t.columnId,n=t.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})),e&&this.rangeService.setRangeToCell(a)}},e.prototype.addRowEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,le.EVENT_ROW_EDITING_STARTED,(function(e){t.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}})),this.addManagedListener(this.eventService,le.EVENT_ROW_EDITING_STOPPED,(function(){var e=new Vv(t.cellValueChanges);t.pushActionsToUndoStack(e),t.activeRowEdit=null}))},e.prototype.addCellEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,le.EVENT_CELL_EDITING_STARTED,(function(e){t.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}})),this.addManagedListener(this.eventService,le.EVENT_CELL_EDITING_STOPPED,(function(e){t.activeCellEdit=null;var o=e.valueChanged&&!t.activeRowEdit&&!t.isPasting&&!t.isRangeInAction;if(o){var r=new Vv(t.cellValueChanges);t.pushActionsToUndoStack(r)}}))},e.prototype.addPasteListeners=function(){var t=this;this.addManagedListener(this.eventService,le.EVENT_PASTE_START,(function(){t.isPasting=!0})),this.addManagedListener(this.eventService,le.EVENT_PASTE_END,(function(){var e=new Vv(t.cellValueChanges);t.pushActionsToUndoStack(e),t.isPasting=!1}))},e.prototype.addFillListeners=function(){var t=this;this.addManagedListener(this.eventService,le.EVENT_FILL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,le.EVENT_FILL_END,(function(e){var o=new Wv(t.cellValueChanges,e.initialRange,e.finalRange);t.pushActionsToUndoStack(o),t.isRangeInAction=!1}))},e.prototype.addCellKeyListeners=function(){var t=this;this.addManagedListener(this.eventService,le.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,le.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,(function(){var e;e=t.rangeService&&t.gridOptionsWrapper.isEnableRangeSelection()?new Wv(t.cellValueChanges,void 0,void 0,Kv(t.rangeService.getCellRanges())):new Vv(t.cellValueChanges),t.pushActionsToUndoStack(e),t.isRangeInAction=!1}))},e.prototype.pushActionsToUndoStack=function(t){this.undoStack.push(t),this.cellValueChanges=[],this.redoStack.clear()},e.prototype.getRowNode=function(t){switch(t.rowPinned){case ft.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case ft.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},Uv([nt("focusService")],e.prototype,"focusService",void 0),Uv([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),Uv([nt("rowModel")],e.prototype,"rowModel",void 0),Uv([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Uv([nt("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),Uv([nt("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Uv([nt("columnModel")],e.prototype,"columnModel",void 0),Uv([it("rangeService")],e.prototype,"rangeService",void 0),Uv([et],e.prototype,"init",null),e=Uv([rt("undoRedoService")],e),e}(re),qv=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xv=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Qv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qv(e,t),e.prototype.findHeader=function(t,e){var o,r,n;if(t.column instanceof Vt?(r="getDisplayedGroup"+e,o=this.columnModel[r](t.column)):(n="getDisplayedCol"+e,o=this.columnModel[n](t.column)),o)return{column:o,headerRowIndex:t.headerRowIndex}},e.prototype.findColAtEdgeForHeaderRow=function(t,e){var o=this.columnModel.getAllDisplayedColumns(),r=o["start"===e?0:o.length-1];if(r){var n=this.ctrlsService.getHeaderRowContainerCtrl(r.getPinned()),i=n.getRowType(t);if(i==lc.COLUMN_GROUP){var s=this.columnModel.getColumnGroupAtLevel(r,t);return{headerRowIndex:t,column:s}}return{headerRowIndex:null==i?-1:t,column:r}}},Xv([nt("columnModel")],e.prototype,"columnModel",void 0),Xv([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),e=Xv([rt("headerPositionUtils")],e),e}(re),Jv=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Zv=function(){function t(){}return t.prototype.buildColumnDefs=function(t,e,o){var r=this,n=[],i={};return t.forEach((function(t){var s=r.createDefFromColumn(t,e,o),a=!0,l=s,u=t.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},t.prototype.createDefFromGroup=function(t){var e=w(t.getColGroupDef(),["children"]);return e&&(e.groupId=t.getGroupId()),e},t.prototype.createDefFromColumn=function(t,e,o){var r=w(t.getColDef());return r.colId=t.getColId(),r.width=t.getActualWidth(),r.rowGroup=t.isRowGroupActive(),r.rowGroupIndex=t.isRowGroupActive()?e.indexOf(t):null,r.pivot=t.isPivotActive(),r.pivotIndex=t.isPivotActive()?o.indexOf(t):null,r.aggFunc=t.isValueActive()?t.getAggFunc():null,r.hide=!t.isVisible()||void 0,r.pinned=t.isPinned()?t.getPinned():null,r.sort=t.getSort()?t.getSort():null,r.sortIndex=null!=t.getSortIndex()?t.getSortIndex():null,r},t=Jv([rt("columnDefFactory")],t),t}(),$v=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},ty=function(){function t(){}return t.prototype.getInitialRowClasses=function(t){var e=[];return n(t.extraCssClass)&&e.push(t.extraCssClass),e.push("ag-row"),e.push(t.rowFocused?"ag-row-focus":"ag-row-no-focus"),t.fadeRowIn&&e.push("ag-opacity-zero"),e.push(t.rowIsEven?"ag-row-even":"ag-row-odd"),t.rowNode.isRowPinned()&&e.push("ag-row-pinned"),t.rowNode.isSelected()&&e.push("ag-row-selected"),t.rowNode.footer&&e.push("ag-row-footer"),e.push("ag-row-level-"+t.rowLevel),t.rowNode.stub&&e.push("ag-row-loading"),t.fullWidthRow&&e.push("ag-full-width-row"),t.expandable&&(e.push("ag-row-group"),e.push(t.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),t.rowNode.dragging&&e.push("ag-row-dragging"),Ft(e,this.processClassesFromGridOptions(t.rowNode)),Ft(e,this.preProcessRowClassRules(t.rowNode)),e.push(t.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),t.firstRowOnPage&&e.push("ag-row-first"),t.lastRowOnPage&&e.push("ag-row-last"),t.fullWidthRow&&(t.pinned===ft.PINNED_LEFT&&e.push("ag-cell-last-left-pinned"),t.pinned===ft.PINNED_RIGHT&&e.push("ag-cell-first-right-pinned")),e},t.prototype.processClassesFromGridOptions=function(t){var e=[],o=function(t){"string"===typeof t?e.push(t):Array.isArray(t)&&t.forEach((function(t){return e.push(t)}))},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:t.data,node:t,rowIndex:t.rowIndex},s=n(i);o(s)}return e},t.prototype.preProcessRowClassRules=function(t){var e=[];return this.processRowClassRules(t,(function(t){e.push(t)}),(function(t){})),e},t.prototype.processRowClassRules=function(t,e,o){var r={data:t.data,node:t,rowIndex:t.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),r,e,o)},t.prototype.calculateRowLevel=function(t){return t.group?t.level:t.parent?t.parent.level+1:0},$v([nt("stylingService")],t.prototype,"stylingService",void 0),$v([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t=$v([rt("rowCssClassCalculator")],t),t}(),ey=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},oy=function(){function t(){}return t.prototype.doFullSort=function(t,e){var o=function(t,e){return{currentPos:e,rowNode:t}},r=t.map(o);return r.sort(this.compareRowNodes.bind(this,e)),r.map((function(t){return t.rowNode}))},t.prototype.compareRowNodes=function(t,e,o){for(var r=e.rowNode,n=o.rowNode,i=0,s=t.length;i<s;i++){var a=t[i],l=a.sort===ft.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===ft.SORT_ASC?c:-1*c}return e.currentPos-o.currentPos},t.prototype.getComparator=function(t,e){var o=t.column,r=o.getColDef().comparator;if(null!=r)return r;if(o.getColDef().showRowGroup){var n=!e.group&&o.getColDef().field;if(n){var i=this.columnModel.getPrimaryColumn(n);if(i)return i.getColDef().comparator}}},t.prototype.getValue=function(t,e){var o,r,n=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();if(!n)return this.valueService.getValue(e,t,!1,!1);var i=t.rowGroupColumn===e;if(i){var s=this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotActive());if(s){var a=e.getColDef().keyCreator;if(a)return t.key;var l=null===(o=t.allLeafChildren)||void 0===o?void 0:o[0];return l?this.valueService.getValue(e,l,!1,!1):void 0}var u=this.columnModel.getGroupDisplayColumnForGroup(e.getId());if(!u)return;return null===(r=t.groupData)||void 0===r?void 0:r[u.getId()]}return t.group&&e.getColDef().showRowGroup?void 0:this.valueService.getValue(e,t,!1,!1)},ey([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ey([nt("valueService")],t.prototype,"valueService",void 0),ey([nt("columnModel")],t.prototype,"columnModel",void 0),t=ey([rt("rowNodeSorter")],t),t}(),ry=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ny=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},iy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ready=!1,e.readyCallbacks=[],e}var o;return ry(e,t),o=e,e.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 t=this.createReadyParams();this.readyCallbacks.forEach((function(e){return e(t)})),this.readyCallbacks.length=0}},e.prototype.whenReady=function(t){this.ready?t(this.createReadyParams()):this.readyCallbacks.push(t)},e.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}},e.prototype.registerFakeHScrollCtrl=function(t){this.fakeHScrollCtrl=t,this.checkReady()},e.prototype.registerGridHeaderCtrl=function(t){this.gridHeaderCtrl=t,this.checkReady()},e.prototype.registerCenterRowContainerCtrl=function(t){this.centerRowContainerCtrl=t,this.checkReady()},e.prototype.registerLeftRowContainerCtrl=function(t){this.leftRowContainerCtrl=t,this.checkReady()},e.prototype.registerRightRowContainerCtrl=function(t){this.rightRowContainerCtrl=t,this.checkReady()},e.prototype.registerTopCenterRowContainerCtrl=function(t){this.topCenterRowContainerCtrl=t,this.checkReady()},e.prototype.registerTopLeftRowContainerCon=function(t){this.topLeftRowContainerCtrl=t,this.checkReady()},e.prototype.registerTopRightRowContainerCtrl=function(t){this.topRightRowContainerCtrl=t,this.checkReady()},e.prototype.registerStickyTopCenterRowContainerCtrl=function(t){this.stickyTopCenterRowContainerCtrl=t,this.checkReady()},e.prototype.registerStickyTopLeftRowContainerCon=function(t){this.stickyTopLeftRowContainerCtrl=t,this.checkReady()},e.prototype.registerStickyTopRightRowContainerCtrl=function(t){this.stickyTopRightRowContainerCtrl=t,this.checkReady()},e.prototype.registerBottomCenterRowContainerCtrl=function(t){this.bottomCenterRowContainerCtrl=t,this.checkReady()},e.prototype.registerBottomLeftRowContainerCtrl=function(t){this.bottomLeftRowContainerCtrl=t,this.checkReady()},e.prototype.registerBottomRightRowContainerCtrl=function(t){this.bottomRightRowContainerCtrl=t,this.checkReady()},e.prototype.registerHeaderContainer=function(t,e){switch(e){case ft.PINNED_LEFT:this.leftHeaderRowContainerCtrl=t;break;case ft.PINNED_RIGHT:this.rightHeaderRowContainerCtrl=t;break;default:this.centerHeaderRowContainerCtrl=t;break}this.checkReady()},e.prototype.registerGridBodyCtrl=function(t){this.gridBodyCtrl=t,this.checkReady()},e.prototype.registerGridCtrl=function(t){this.gridCtrl=t,this.checkReady()},e.prototype.getFakeHScrollCtrl=function(){return this.fakeHScrollCtrl},e.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},e.prototype.getGridCtrl=function(){return this.gridCtrl},e.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},e.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},e.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},e.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},e.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},e.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},e.prototype.getHeaderRowContainerCtrl=function(t){switch(t){case ft.PINNED_LEFT:return this.leftHeaderRowContainerCtrl;case ft.PINNED_RIGHT:return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},e.NAME="ctrlsService",e=o=ny([rt(o.NAME)],e),e}(re),sy=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ay=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},ly=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registry={},e}return sy(e,t),e.prototype.register=function(t){this.registry[t.controllerName]=t.controllerClass},e.prototype.getInstance=function(t){var e=this.registry[t];if(null!=e)return new e},e=ay([rt("ctrlsFactory")],e),e}(re),uy=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),py=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},cy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uy(e,t),e.prototype.setComp=function(t,e,o,r){this.view=t,this.eViewport=o,this.eContainer=r,this.eGui=e,this.addManagedListener(this.eventService,le.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this));var n=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,n),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_DOM_LAYOUT,n),this.addManagedListener(this.eventService,le.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.onScrollVisibilityChanged(),this.ctrlsService.registerFakeHScrollCtrl(this),this.view.addOrRemoveCssClass("ag-apple-scrollbar",Je()||Ze())},e.prototype.addActiveListenerToggles=function(){var t=this,e=["mouseenter","mousedown","touchstart"],o=["mouseleave","touchend"];e.forEach((function(e){return t.addManagedListener(t.eGui,e,(function(){return t.view.addOrRemoveCssClass("ag-scrollbar-active",!0)}))})),o.forEach((function(e){return t.addManagedListener(t.eGui,e,(function(){return t.view.addOrRemoveCssClass("ag-scrollbar-active",!1)}))}))},e.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.invisibleScrollbar=no(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles(),this.refreshCompBottom()))},e.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},e.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var t=this.pinnedRowModel.getPinnedBottomTotalHeight();this.view.setBottom(t)}},e.prototype.onScrollVisibilityChanged=function(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),this.setScrollVisible(),this.setFakeHScrollSpacerWidths()},e.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var t=this;this.addManagedListener(this.eventService,le.EVENT_BODY_SCROLL,(function(e){"horizontal"===e.direction&&t.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!0)})),this.addManagedListener(this.eventService,le.EVENT_BODY_SCROLL_END,(function(){return t.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!1)}))},e.prototype.setFakeHScrollSpacerWidths=function(){var t=this.scrollVisibleService.isVerticalScrollShowing(),e=this.columnModel.getDisplayedColumnsRightWidth(),o=!this.enableRtl&&t,r=this.gridOptionsWrapper.getScrollbarWidth();o&&(e+=r),this.view.setRightSpacerFixedWidth(e),this.view.includeRightSpacerScrollerCss("ag-scroller-corner",e<=r);var n=this.columnModel.getDisplayedColumnsLeftWidth(),i=this.enableRtl&&t;i&&(n+=r),this.view.setLeftSpacerFixedWidth(n),this.view.includeLeftSpacerScrollerCss("ag-scroller-corner",n<=r)},e.prototype.setScrollVisible=function(){var t=this.scrollVisibleService.isHorizontalScrollShowing(),e=this.invisibleScrollbar,o=this.gridOptionsWrapper.isSuppressHorizontalScroll(),r=t&&this.gridOptionsWrapper.getScrollbarWidth()||0,n=0===r&&e?15:r,i=o?0:n;this.view.addOrRemoveCssClass("ag-scrollbar-invisible",e),this.view.setHeight(i),this.view.setViewportHeight(i),this.view.setContainerHeight(i),this.view.addOrRemoveCssClass("ag-hidden",!t)},e.prototype.getViewport=function(){return this.eViewport},e.prototype.getContainer=function(){return this.eContainer},py([nt("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),py([nt("columnModel")],e.prototype,"columnModel",void 0),py([nt("ctrlsService")],e.prototype,"ctrlsService",void 0),py([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),e}(re),dy=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),hy=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},fy=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return dy(e,t),e.prototype.postConstruct=function(){var t=this,e={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},setHeight:function(e){return kr(t.getGui(),e)},setBottom:function(e){return t.getGui().style.bottom=e+"px"},setContainerHeight:function(e){return kr(t.eContainer,e)},setViewportHeight:function(e){return kr(t.eViewport,e)},setRightSpacerFixedWidth:function(e){return Vr(t.eRightSpacer,e)},setLeftSpacerFixedWidth:function(e){return Vr(t.eLeftSpacer,e)},includeLeftSpacerScrollerCss:function(e,o){return t.eLeftSpacer.classList.toggle(e,o)},includeRightSpacerScrollerCss:function(e,o){return t.eRightSpacer.classList.toggle(e,o)}},o=this.createManagedBean(new cy);o.setComp(e,this.getGui(),this.eViewport,this.eContainer),this.createManagedBean(new Pp((function(e){return t.eContainer.style.width=e+"px"})))},e.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")],e.prototype,"eLeftSpacer",void 0),hy([Ai("eRightSpacer")],e.prototype,"eRightSpacer",void 0),hy([Ai("eViewport")],e.prototype,"eViewport",void 0),hy([Ai("eContainer")],e.prototype,"eContainer",void 0),hy([et],e.prototype,"postConstruct",null),e}(Di),gy=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),vy=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},yy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gy(e,t),e.prototype.postConstruct=function(){var t=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,le.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_DOM_LAYOUT,t)},e.prototype.checkContainerWidths=function(){var t=this.gridOptionsWrapper.getDomLayout()===ft.DOM_LAYOUT_PRINT,e=t?0:this.columnModel.getDisplayedColumnsLeftWidth(),o=t?0:this.columnModel.getDisplayedColumnsRightWidth();e!=this.leftWidth&&(this.leftWidth=e,this.eventService.dispatchEvent({type:le.EVENT_LEFT_PINNED_WIDTH_CHANGED})),o!=this.rightWidth&&(this.rightWidth=o,this.eventService.dispatchEvent({type:le.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},e.prototype.getPinnedRightWidth=function(){return this.rightWidth},e.prototype.getPinnedLeftWidth=function(){return this.leftWidth},vy([nt("columnModel")],e.prototype,"columnModel",void 0),vy([et],e.prototype,"postConstruct",null),e=vy([rt("pinnedWidthService")],e),e}(re),my=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Cy=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},wy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.events=[],e}return my(e,t),e.prototype.postConstruct=function(){this.rowModel.getType()==ft.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.dispatchExpanded=function(t){var e=this;if(null!=this.clientSideRowModel){this.events.push(t);var o=function(){e.clientSideRowModel&&e.clientSideRowModel.onRowGroupOpened(),e.events.forEach((function(t){return e.eventService.dispatchEvent(t)})),e.events=[]};null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(o)),this.dispatchExpandedDebounced()}else this.eventService.dispatchEvent(t)},Cy([nt("animationFrameService")],e.prototype,"animationFrameService",void 0),Cy([nt("rowModel")],e.prototype,"rowModel",void 0),Cy([et],e.prototype,"postConstruct",null),e=Cy([rt("rowNodeEventThrottle")],e),e}(re),Ey=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t=[],e=0;e<arguments.length;e++)t=t.concat(Ey(arguments[e]));return t},Oy=function(){function t(t,e,o){e?(this.gridOptions=e,(new Sy).create(t,e,(function(e){var o=new Gg(t);e.createBean(o)}),void 0,o)):console.error("AG Grid: no gridOptions provided to the grid")}return t.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},t}(),Sy=function(){function t(){}return t.prototype.create=function(t,e,o,r,n){var i=this,s=!!e.debug,a=this.getRegisteredModules(n),l=this.createBeansList(e.rowModelType,a),u=this.createProvidedBeans(t,e,n);if(l){var p={providedBeanInstances:u,beanClasses:l,debug:s},c=new Pg("AG Grid",(function(){return e.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 t=gt.isRegistered(ut.EnterpriseCoreModule);c.log("initialised successfully, enterprise = "+t)})),r&&r(h)}},t.prototype.registerControllers=function(t,e){e.forEach((function(e){e.controllers&&e.controllers.forEach((function(e){return t.ctrlsFactory.register(e)}))}))},t.prototype.registerStackComponents=function(t,e){var o=this.createAgStackComponentsList(e);t.agStackComponentsRegistry.setupComponents(o)},t.prototype.getRegisteredModules=function(t){var e=t?t.modules:null,o=gt.getRegisteredModules(),r=[],n={};function i(t,e){function o(e){n[e.moduleName]||(n[e.moduleName]=!0,r.push(e),gt.register(e,t))}o(e),e.dependantModules&&e.dependantModules.forEach(i.bind(null,t))}return e&&e.forEach(i.bind(null,!0)),o&&o.forEach(i.bind(null,!gt.isPackageBased())),r},t.prototype.registerModuleUserComponents=function(t,e){var o=this.extractModuleEntity(e,(function(t){return t.userComponents?t.userComponents:[]}));o.forEach((function(e){t.userComponentRegistry.registerDefaultComponent(e.componentName,e.componentClass)}))},t.prototype.createProvidedBeans=function(t,e,o){var r=o?o.frameworkOverrides:null;i(r)&&(r=new Jf);var n={gridOptions:e,eGridDiv:t,globalEventListener:o?o.globalEventListener:null,frameworkOverrides:r};return o&&o.providedBeanInstances&&Object.assign(n,o.providedBeanInstances),n},t.prototype.createAgStackComponentsList=function(t){var e=[{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:tf},{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(t,(function(t){return t.agStackComponents?t.agStackComponents:[]}));return e=e.concat(o),e},t.prototype.createBeansList=function(t,e){var o=this.getRowModelClass(t,e);if(o){var r=[o,Du,Fv,xv,Qv,Qg,Hc,ll,iv,lv,Yd,Dl,Rv,xd,Rh,Gl,$o,ht,Vo,Kf,pg,xl,Yo,Td,Gh,gh,Cg,ae,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,ty,Ah,oy,iy,yy,wy,ly],n=this.extractModuleEntity(e,(function(t){return t.beans?t.beans:[]}));r.push.apply(r,Ry(n));var i=[];return r.forEach((function(t){i.indexOf(t)<0&&i.push(t)})),i}},t.prototype.extractModuleEntity=function(t,e){return[].concat.apply([],Ry(t.map(e)))},t.prototype.setColumnsAndData=function(t){var e=t.gridOptionsWrapper.getColumnDefs();t.columnModel.setColumnDefs(e||[],"gridInitializing"),t.rowModel.start()},t.prototype.dispatchGridReadyEvent=function(t){var e={type:le.EVENT_GRID_READY};t.eventService.dispatchEvent(e)},t.prototype.getRowModelClass=function(t,e){t||(t=ft.ROW_MODEL_TYPE_CLIENT_SIDE);var o={};e.forEach((function(t){y(t.rowModels,(function(t,e){o[t]=e}))}));var r=o[t];if(n(r))return r;gt.isPackageBased()?[ft.ROW_MODEL_TYPE_VIEWPORT,ft.ROW_MODEL_TYPE_SERVER_SIDE].includes(t)?console.error('AG Grid: Row Model "'+t+"\" 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 "+t):t===ft.ROW_MODEL_TYPE_INFINITE?console.error('AG Grid: Row Model "Infinite" not found. Please ensure the '+ut.InfiniteRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):t===ft.ROW_MODEL_TYPE_VIEWPORT?console.error('AG Grid: Row Model "Viewport" not found. Please ensure the AG Grid Enterprise Module '+ut.ViewportRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):t===ft.ROW_MODEL_TYPE_SERVER_SIDE?console.error('AG Grid: Row Model "Server Side" not found. Please ensure the AG Grid Enterprise Module '+ut.ServerSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):t===ft.ROW_MODEL_TYPE_CLIENT_SIDE?console.error('AG Grid: Row Model "Client Side" not found. Please ensure the '+ut.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 "+t)},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 */ /** * @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 t(){}return t.prototype.wrap=function(t,e,o,r){var n=this;void 0===o&&(o=[]);var i=this.createWrapper(t,r);return e.forEach((function(t){n.createMethod(i,t,!0)})),o.forEach((function(t){n.createMethod(i,t,!1)})),i},t.prototype.unwrap=function(t){return t},t.prototype.createMethod=function(t,e,o){t.addMethod(e,this.createMethodProxy(t,e,o))},t.prototype.createMethodProxy=function(t,e,o){return function(){return t.hasMethod(e)?t.callMethod(e,arguments):(o&&console.warn("AG Grid: Framework component is missing the method "+e+"()"),null)}},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 */(function(t){t["InsideBase"]="insideBase",t["InsideEnd"]="insideEnd",t["Center"]="center",t["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 t?{}:t;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(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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 t=[],e=0;e<arguments.length;e++)t=t.concat(Dy(arguments[e]));return t},Ny=function(){function t(e,o,r,n,i,s){this.nextId=0,this.allNodesMap={},this.rootNode=e,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=t.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return t.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},t.prototype.getCopyOfNodesMap=function(){return yi.cloneObject(this.allNodesMap)},t.prototype.getRowNode=function(t){return this.allNodesMap[t]},t.prototype.setRowData=function(e){var o=this;if("string"!==typeof e){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={},e?r.allLeafChildren=e.map((function(e){return o.createNode(e,o.rootNode,t.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")},t.prototype.updateRowData=function(t,e){var o={remove:[],update:[],add:[]},r=[];return this.executeRemove(t,o,r),this.executeUpdate(t,o,r),this.executeAdd(t,o),this.updateSelection(r),e&&yi.sortRowNodesByOrder(this.rootNode.allLeafChildren,e),o},t.prototype.updateSelection=function(t){var e=t.length>0;if(e&&t.forEach((function(t){t.setSelected(!1,!1,!0)})),this.selectionService.updateGroupsFromChildrenSelections(),e){var o={type:le.EVENT_SELECTION_CHANGED};this.eventService.dispatchEvent(o)}},t.prototype.executeAdd=function(e,o){var r=this,n=e.add,i=e.addIndex;if(!yi.missingOrEmpty(n)){var s,a,l=n.map((function(e){return r.createNode(e,r.rootNode,t.TOP_LEVEL)})),u="number"===typeof i&&i>=0;if(u){var p=this.rootNode.allLeafChildren,c=0===i?0:p.reduce((function(t,e,o){var r,n=e.rowIndex,s=null===(r=p[t])||void 0===r?void 0:r.rowIndex,a=null!=n&&null!=s&&n<i&&n>s;return a?o:t}),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}},t.prototype.executeRemove=function(t,e,o){var r=this,n=t.remove;if(!yi.missingOrEmpty(n)){var i={};n.forEach((function(t){var n=r.lookupRowNode(t);n&&(n.isSelected()&&o.push(n),n.clearRowTopAndRowIndex(),i[n.id]=!0,delete r.allNodesMap[n.id],e.remove.push(n))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(t){return!i[t.id]})),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},t.prototype.executeUpdate=function(e,o,r){var n=this,i=e.update;yi.missingOrEmpty(i)||i.forEach((function(e){var i=n.lookupRowNode(e);i&&(i.updateData(e),!i.selectable&&i.isSelected()&&r.push(i),n.setMasterForRow(i,e,t.TOP_LEVEL,!1),o.update.push(i))}))},t.prototype.lookupRowNode=function(t){var e,o=this.gridOptionsWrapper.getRowIdFunc();if(o){var r=o({data:t,level:0});if(e=this.allNodesMap[r],!e)return console.error("AG Grid: could not find row id="+r+", data item was not found for this id"),null}else if(e=this.rootNode.allLeafChildren.find((function(e){return e.data===t})),!e)return console.error("AG Grid: could not find data item as object was not found",t),console.error("Consider using getRowId to help the Grid find matching row data"),null;return e||null},t.prototype.createNode=function(t,e,o){var r=new Ta(this.beans);return r.group=!1,this.setMasterForRow(r,t,o,!0),e&&!this.suppressParentsInRowNodes&&(r.parent=e),r.level=o,r.setDataAndId(t,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},t.prototype.setMasterForRow=function(t,e,o,r){if(this.doingTreeData)t.setMaster(!1),r&&(t.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?t.setMaster(this.isRowMasterFunc(e)):t.setMaster(!0):t.setMaster(!1),r){var n=this.columnModel.getRowGroupColumns(),i=n?n.length:0,s=o+i;t.expanded=!!t.master&&this.isExpanded(s)}},t.prototype.isExpanded=function(t){var e=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===e||t<e},t.TOP_LEVEL=0,t.ROOT_NODE_ID="ROOT_NODE_ID",t}(),Iy=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Gy=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s};(function(t){t[t["Normal"]=0]="Normal",t[t["AfterFilter"]=1]="AfterFilter",t[t["AfterFilterAndSort"]=2]="AfterFilterAndSort",t[t["PivotNodes"]=3]="PivotNodes"})(Ty||(Ty={}));var Fy,Ly=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onRowHeightChanged_debounced=yi.debounce(e.onRowHeightChanged.bind(e),100),e.rowsToDisplay=[],e}return Iy(e,t),e.prototype.init=function(){var t=this.refreshModel.bind(this,{step:Dc.EVERYTHING}),e=!this.gridOptionsWrapper.isSuppressAnimationFrame(),o=this.refreshModel.bind(this,{step:Dc.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:e});this.addManagedListener(this.eventService,le.EVENT_NEW_COLUMNS_LOADED,o),this.addManagedListener(this.eventService,le.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.addManagedListener(this.eventService,le.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:Dc.PIVOT})),this.addManagedListener(this.eventService,le.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_COLUMN_PIVOT_MODE_CHANGED,t);var r=this.refreshModel.bind(this,{step:Dc.MAP,keepRenderedRows:!0,animate:e});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)},e.prototype.start=function(){var t=this.gridOptionsWrapper.getRowData();t&&this.setRowData(t)},e.prototype.ensureRowHeightsValid=function(t,e,o,r){var n,i=!1;do{n=!1;for(var s=this.getRowIndexAtPixel(t),a=this.getRowIndexAtPixel(e),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},e.prototype.setRowTopAndRowIndex=function(){for(var t=this.gridOptionsWrapper.getDefaultRowHeight(),e=0,o=new Set,r=this.gridOptionsWrapper.getDomLayout()===ft.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,t);i.setRowHeight(s.height,s.estimated)}i.setRowTop(e),i.setRowIndex(n),e+=i.rowHeight}return o},e.prototype.clearRowTopAndRowIndex=function(t,e){var o=t.isActive(),r=function(t){t&&null!=t.id&&!e.has(t.id)&&t.clearRowTopAndRowIndex()},n=function(t){if(r(t),r(t.detailNode),r(t.sibling),t.hasChildren()&&t.childrenAfterGroup){var e=-1==t.level,i=o&&!e&&!t.expanded;i||t.childrenAfterGroup.forEach(n)}};n(this.rootNode)},e.prototype.ensureRowsAtPixel=function(t,e,o){var r=this;void 0===o&&(o=0);var n=this.getRowIndexAtPixel(e),i=this.getRow(n),s=!this.gridOptionsWrapper.isSuppressAnimationFrame();return i!==t[0]&&(t.forEach((function(t){yi.removeFromArray(r.rootNode.allLeafChildren,t)})),t.forEach((function(t,e){yi.insertIntoArray(r.rootNode.allLeafChildren,t,Math.max(n+o,0)+e)})),this.refreshModel({step:Dc.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:s}),!0)},e.prototype.highlightRowAtPixel=function(t,e){var o=null!=e?this.getRowIndexAtPixel(e):null,r=null!=o?this.getRow(o):null;if(r&&t&&r!==t&&null!=e){var n=this.getHighlightPosition(e,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)},e.prototype.getHighlightPosition=function(t,e){if(!e){var o=this.getRowIndexAtPixel(t);if(e=this.getRow(o||0),!e)return fs.Below}var r=e.rowTop,n=e.rowHeight;return t-r<n/2?fs.Above:fs.Below},e.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},e.prototype.isLastRowIndexKnown=function(){return!0},e.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},e.prototype.getTopLevelRowCount=function(){var t=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;if(t)return 1;var e=this.rootNode.childrenAfterAggFilter;return e?e.length:0},e.prototype.getTopLevelRowDisplayedIndex=function(t){var e=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;if(e)return t;var o=this.rootNode.childrenAfterSort[t];if(this.gridOptionsWrapper.isGroupHideOpenParents())while(o.expanded&&o.childrenAfterSort&&o.childrenAfterSort.length>0)o=o.childrenAfterSort[0];return o.rowIndex},e.prototype.getRowBounds=function(t){if(yi.missing(this.rowsToDisplay))return null;var e=this.rowsToDisplay[t];return e?{rowTop:e.rowTop,rowHeight:e.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var t=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:Dc.MAP,keepRenderedRows:!0,animate:t})},e.prototype.onFilterChanged=function(t){if(!t.afterDataChange){var e=this.gridOptionsWrapper.isAnimateRows(),o=0===t.columns.length||t.columns.some((function(t){return t.isPrimary()})),r=o?Dc.FILTER:Dc.FILTER_AGGREGATES;this.refreshModel({step:r,keepRenderedRows:!0,animate:e})}},e.prototype.onSortChanged=function(){var t=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:Dc.SORT,keepRenderedRows:!0,animate:t,keepEditingRows:!0})},e.prototype.getType=function(){return ft.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:Dc.PIVOT}):this.refreshModel({step:Dc.AGGREGATE})},e.prototype.createChangePath=function(t){var e=yi.missingOrEmpty(t),o=new Sh(!1,this.rootNode);return(e||this.gridOptionsWrapper.isTreeData())&&o.setInactive(),o},e.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(t){if(!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction())return!1;if(null==t.rowNodeTransactions)return!1;var e=t.rowNodeTransactions.filter((function(t){return null!=t.add&&t.add.length>0||null!=t.remove&&t.remove.length>0})),o=null==e||0==e.length;return o},e.prototype.refreshModel=function(t){if(!this.isSuppressModelUpdateAfterUpdateTransaction(t)){var e=this.createChangePath(t.rowNodeTransactions);switch(t.step){case Dc.EVERYTHING:this.doRowGrouping(t.groupState,t.rowNodeTransactions,t.rowNodeOrder,e,!!t.afterColumnsChanged);case Dc.FILTER:this.doFilter(e);case Dc.PIVOT:this.doPivot(e);case Dc.AGGREGATE:this.doAggregate(e);case Dc.FILTER_AGGREGATES:this.doFilterAggregates(e);case Dc.SORT:this.doSort(t.rowNodeTransactions,e);case Dc.MAP:this.doRowsToDisplay()}var o=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(e,o);var r={type:le.EVENT_MODEL_UPDATED,animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:!1,keepUndoRedoStack:t.keepUndoRedoStack};this.eventService.dispatchEvent(r)}},e.prototype.isEmpty=function(){var t=yi.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return yi.missing(this.rootNode)||t||!this.columnModel.isReady()},e.prototype.isRowsToRender=function(){return yi.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(t,e){var o,r=!e,n=!1,i=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=r&&!n;r||a!==e&&a!==t||(r=!0);var u=a.group&&s;if(!u){var p=r&&!n,c=a.isParentOfNode(o);(p||c)&&i.push(a)}l&&(a!==e&&a!==t||(n=!0,o=a===e?e:t))})),i},e.prototype.setDatasource=function(t){console.error("AG Grid: should never call setDatasource on clientSideRowController")},e.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},e.prototype.getRootNode=function(){return this.rootNode},e.prototype.getRow=function(t){return this.rowsToDisplay[t]},e.prototype.isRowPresent=function(t){return this.rowsToDisplay.indexOf(t)>=0},e.prototype.getRowIndexAtPixel=function(t){if(this.isEmpty()||0===this.rowsToDisplay.length)return-1;var e=0,o=this.rowsToDisplay.length-1;if(t<=0)return 0;var r=yi.last(this.rowsToDisplay);if(r.rowTop<=t)return this.rowsToDisplay.length-1;var n=-1,i=-1;while(1){var s=Math.floor((e+o)/2),a=this.rowsToDisplay[s];if(this.isRowInPixel(a,t))return s;a.rowTop<t?e=s+1:a.rowTop>t&&(o=s-1);var l=n===e&&i===o;if(l)return s;n=e,i=o}},e.prototype.isRowInPixel=function(t,e){var o=t.rowTop,r=t.rowTop+t.rowHeight,n=o<=e&&r>e;return n},e.prototype.forEachLeafNode=function(t){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(e,o){return t(e,o)}))},e.prototype.forEachNode=function(t){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,t,Ty.Normal,0)},e.prototype.forEachNodeAfterFilter=function(t){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterAggFilter,t,Ty.AfterFilter,0)},e.prototype.forEachNodeAfterFilterAndSort=function(t){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,t,Ty.AfterFilterAndSort,0)},e.prototype.forEachPivotNode=function(t){this.recursivelyWalkNodesAndCallback([this.rootNode],t,Ty.PivotNodes,0)},e.prototype.recursivelyWalkNodesAndCallback=function(t,e,o,r){if(!t)return r;for(var n=0;n<t.length;n++){var i=t[n];if(e(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,e,o,r))}}return r},e.prototype.doAggregate=function(t){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:t})},e.prototype.doFilterAggregates=function(t){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:t}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},e.prototype.expandOrCollapseAll=function(t){var e=this.gridOptionsWrapper.isTreeData(),o=this.columnModel.isPivotActive(),r=function(n){n&&n.forEach((function(n){var i=function(){n.expanded=t,r(n.childrenAfterGroup)};if(e){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=t?"expandAll":"collapseAll",i={type:le.EVENT_EXPAND_COLLAPSE_ALL,source:n};this.eventService.dispatchEvent(i)},e.prototype.doSort=function(t,e){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,changedPath:e})},e.prototype.doRowGrouping=function(t,e,o,r,n){this.groupStage?(e?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,rowNodeOrder:o,changedPath:r}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:r,afterColumnsChanged:n}),this.restoreGroupState(t)),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())},e.prototype.restoreGroupState=function(t){t&&yi.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(e,o){"boolean"===typeof t[o]&&(e.expanded=t[o])}))},e.prototype.doFilter=function(t){this.filterStage.execute({rowNode:this.rootNode,changedPath:t})},e.prototype.doPivot=function(t){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:t})},e.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var t={};return yi.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(e,o){return t[o]=e.expanded})),t},e.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},e.prototype.getRowNode=function(t){var e="string"==typeof t&&0==t.indexOf(Ta.ID_PREFIX_ROW_GROUP);if(e){var o=void 0;return this.forEachNode((function(e){e.id===t&&(o=e)})),o}return this.nodeManager.getRowNode(t)},e.prototype.setRowData=function(t){var e=this.getGroupState();this.nodeManager.setRowData(t),this.selectionService.reset(),this.filterManager.onNewRowsLoaded("rowDataUpdated");var o={type:le.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(o),this.refreshModel({step:Dc.EVERYTHING,groupState:e,newData:!0})},e.prototype.batchUpdateRowData=function(t,e){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:t,callback:e})},e.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},e.prototype.executeBatchUpdateRowData=function(){var t=this;this.valueCache.onDataChanged();var e=[],o=[],r=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(n){var i=t.nodeManager.updateRowData(n.rowDataTransaction,void 0);o.push(i),n.callback&&e.push(n.callback.bind(null,i)),"number"===typeof n.rowDataTransaction.addIndex&&(r=!0)})),this.commonUpdateRowData(o,void 0,r),e.length>0&&window.setTimeout((function(){e.forEach((function(t){return t()}))}),0),o.length>0){var n={type:le.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:o};this.eventService.dispatchEvent(n)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},e.prototype.updateRowData=function(t,e){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(t,e),r="number"===typeof t.addIndex;return this.commonUpdateRowData([o],e,r),o},e.prototype.createRowNodeOrder=function(){var t=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder();if(!t){var e={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var o=0;o<this.rootNode.allLeafChildren.length;o++){var r=this.rootNode.allLeafChildren[o];e[r.id]=o}return e}},e.prototype.commonUpdateRowData=function(t,e,o){var r=!this.gridOptionsWrapper.isSuppressAnimationFrame();o&&(e=this.createRowNodeOrder()),this.refreshModel({step:Dc.EVERYTHING,rowNodeTransactions:t,rowNodeOrder:e,keepRenderedRows:!0,keepEditingRows:!0,animate:r}),this.filterManager.onNewRowsLoaded("rowDataUpdated");var n={type:le.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(n)},e.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},e.prototype.onRowHeightChanged=function(){this.refreshModel({step:Dc.MAP,keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})},e.prototype.onRowHeightChangedDebounced=function(){this.onRowHeightChanged_debounced()},e.prototype.resetRowHeights=function(){var t=!1;this.forEachNode((function(e){e.setRowHeight(e.rowHeight,!0);var o=e.detailNode;o&&o.setRowHeight(o.rowHeight,!0),t=!0})),t&&this.onRowHeightChanged()},Gy([nt("columnModel")],e.prototype,"columnModel",void 0),Gy([nt("selectionService")],e.prototype,"selectionService",void 0),Gy([nt("filterManager")],e.prototype,"filterManager",void 0),Gy([nt("valueCache")],e.prototype,"valueCache",void 0),Gy([nt("beans")],e.prototype,"beans",void 0),Gy([nt("filterStage")],e.prototype,"filterStage",void 0),Gy([nt("sortStage")],e.prototype,"sortStage",void 0),Gy([nt("flattenStage")],e.prototype,"flattenStage",void 0),Gy([it("groupStage")],e.prototype,"groupStage",void 0),Gy([it("aggregationStage")],e.prototype,"aggregationStage",void 0),Gy([it("pivotStage")],e.prototype,"pivotStage",void 0),Gy([it("filterAggregatesStage")],e.prototype,"filterAggregatesStage",void 0),Gy([et],e.prototype,"init",null),e=Gy([rt("rowModel")],e),e}(re),My=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),xy=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Hy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return My(e,t),e.prototype.execute=function(t){var e=t.changedPath;this.filterService.filter(e)},xy([nt("filterService")],e.prototype,"filterService",void 0),e=xy([rt("filterStage")],e),e}(re),Vy=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Wy=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},ky=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vy(e,t),e.prototype.execute=function(t){var e=this,o=this.sortController.getSortOptions(),r=yi.exists(o)&&o.length>0,n=r&&yi.exists(t.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),i=o.some((function(t){return!!e.columnModel.getGroupDisplayColumnForGroup(t.column.getId())}));this.sortService.sort(o,r,n,t.rowNodeTransactions,t.changedPath,i)},Wy([nt("sortService")],e.prototype,"sortService",void 0),Wy([nt("sortController")],e.prototype,"sortController",void 0),Wy([nt("columnModel")],e.prototype,"columnModel",void 0),e=Wy([rt("sortStage")],e),e}(re),By=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),jy=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Uy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return By(e,t),e.prototype.execute=function(t){var e=t.rowNode,o=[],r={value:0},n=this.columnModel.isPivotMode(),i=n&&e.leafGroup,s=i?[e]:e.childrenAfterSort;this.recursivelyAddToRowsToDisplay(s,o,r,n,0);var a=o.length>0,l=!i&&a&&this.gridOptionsWrapper.isGroupIncludeTotalFooter();return l&&(this.ensureFooterNodeExists(e),this.addRowNodeToRowsToDisplay(e.sibling,o,r,0)),o},e.prototype.recursivelyAddToRowsToDisplay=function(t,e,o,r,n){if(!yi.missingOrEmpty(t))for(var i=this.gridOptionsWrapper.isGroupHideOpenParents(),s=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),a=!s&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),l=0;l<t.length;l++){var u=t[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,e,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,e,o,r,m),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,e,o,n))}}else if(u.master&&u.expanded){var C=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(C,e,o,n)}}},e.prototype.addRowNodeToRowsToDisplay=function(t,e,o,r){var n=this.gridOptionsWrapper.isGroupMultiAutoColumn();e.push(t),t.setUiLevel(n?0:r)},e.prototype.ensureFooterNodeExists=function(t){if(!yi.exists(t.sibling)){var e=new Ta(this.beans);Object.keys(t).forEach((function(o){e[o]=t[o]})),e.footer=!0,e.setRowTop(null),e.setRowIndex(null),e.oldRowTop=null,yi.exists(e.id)&&(e.id="rowGroupFooter_"+e.id),e.sibling=t,t.sibling=e}},e.prototype.createDetailNode=function(t){if(yi.exists(t.detailNode))return t.detailNode;var e=new Ta(this.beans);return e.detail=!0,e.selectable=!1,e.parent=t,yi.exists(t.id)&&(e.id="detail_"+t.id),e.data=t.data,e.level=t.level+1,t.detailNode=e,e},jy([nt("columnModel")],e.prototype,"columnModel",void 0),jy([nt("beans")],e.prototype,"beans",void 0),e=jy([rt("flattenStage")],e),e}(re),zy=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ky=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Yy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zy(e,t),e.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},e.prototype.sort=function(t,e,o,r,n,i){var s=this,a=this.gridOptionsWrapper.isGroupMaintainOrder(),l=this.columnModel.getAllGridColumns().some((function(t){return t.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(!e||d||c){var h=r.childrenAfterAggFilter.slice(0);if(a&&r.childrenAfterSort){var f=r.childrenAfterSort.reduce((function(t,e,o){return t[e.id]=o,t}),{});h.sort((function(t,e){return(f[t.id]||0)-(f[e.id]||0)}))}r.childrenAfterSort=h}else r.childrenAfterSort=o?s.doDeltaSort(r,u,n,t):s.rowNodeSorter.doFullSort(r.childrenAfterAggFilter,t);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)},e.prototype.calculateDirtyNodes=function(t){var e={},o=function(t){t&&t.forEach((function(t){return e[t.id]=!0}))};return t&&t.forEach((function(t){o(t.add),o(t.update),o(t.remove)})),e},e.prototype.doDeltaSort=function(t,e,o,r){var n=this,i=t.childrenAfterAggFilter,s=t.childrenAfterSort;if(!s)return this.rowNodeSorter.doFullSort(i,r);var a={},l=[];i.forEach((function(t){e[t.id]||!o.canSkip(t)?l.push(t):a[t.id]=!0}));var u=s.filter((function(t){return a[t.id]})),p=function(t,e){return{currentPos:e,rowNode:t}},c=l.map(p).sort((function(t,e){return n.rowNodeSorter.compareRowNodes(r,t,e)}));return this.mergeSortedArrays(r,c,u.map(p)).map((function(t){var e=t.rowNode;return e}))},e.prototype.mergeSortedArrays=function(t,e,o){var r=[],n=0,i=0;while(n<e.length&&i<o.length){var s=this.rowNodeSorter.compareRowNodes(t,e[n],o[i]);s<0?r.push(e[n++]):r.push(o[i++])}while(n<e.length)r.push(e[n++]);while(i<o.length)r.push(o[i++]);return r},e.prototype.updateChildIndexes=function(t){if(!yi.missing(t.childrenAfterSort))for(var e=t.childrenAfterSort,o=0;o<e.length;o++){var r=e[o],n=0===o,i=o===t.childrenAfterSort.length-1;r.setFirstChild(n),r.setLastChild(i),r.setChildIndex(o)}},e.prototype.updateGroupDataForHideOpenParents=function(t){var e=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(t){e.pullDownGroupDataForHideOpenParents(t.childrenAfterSort,!1),t.childrenAfterSort.forEach((function(t){t.hasChildren()&&r(t)}))};t&&t.executeFromRootNode((function(t){return r(t)}))}},e.prototype.pullDownGroupDataForHideOpenParents=function(t,e){var o=this;this.gridOptionsWrapper.isGroupHideOpenParents()&&!yi.missing(t)&&t.forEach((function(t){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===t.rowGroupColumn;if(!a)if(e)t.setGroupValue(r.getId(),void 0);else{var l=t.getFirstChildOfFirstChild(s);l&&t.setGroupValue(r.getId(),l.key)}}else console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},Ky([nt("columnModel")],e.prototype,"columnModel",void 0),Ky([nt("rowNodeSorter")],e.prototype,"rowNodeSorter",void 0),Ky([et],e.prototype,"init",null),e=Ky([rt("sortService")],e),e}(re),qy=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xy=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Qy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qy(e,t),e.prototype.filter=function(t){var e=this.filterManager.isColumnFilterPresent()||this.filterManager.isQuickFilterPresent()||this.filterManager.isExternalFilterPresent();this.filterNodes(e,t)},e.prototype.filterNodes=function(t,e){var o=this,r=function(e,r){e.hasChildren()?e.childrenAfterFilter=t&&!r?e.childrenAfterGroup.filter((function(t){var e=t.childrenAfterFilter&&t.childrenAfterFilter.length>0,r=t.data&&o.filterManager.doesRowPassFilter({rowNode:t});return e||r})):e.childrenAfterGroup:e.childrenAfterFilter=e.childrenAfterGroup,e.sibling&&(e.sibling.childrenAfterFilter=e.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var n=function(t,e){if(t.childrenAfterGroup)for(var i=0;i<t.childrenAfterGroup.length;i++){var s=t.childrenAfterGroup[i],a=e||o.filterManager.doesRowPassFilter({rowNode:s});s.childrenAfterGroup?n(t.childrenAfterGroup[i],a):r(s,a)}r(t,e)},i=function(t){return n(t,!1)};e.executeFromRootNode(i)}else{var s=function(t){return r(t,!1)};e.forEachChangedNodeDepthFirst(s,!0)}},e.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},Xy([nt("filterManager")],e.prototype,"filterManager",void 0),e=Xy([rt("filterService")],e),e}(re),Jy=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zy=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},$y=function(t,e){var o="function"===typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),s=[];try{while((void 0===e||e-- >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},tm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jy(e,t),e.prototype.postConstruct=function(){this.rowModel.getType()===ft.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.isActive=function(){return this.gridOptionsWrapper.isImmutableData()},e.prototype.setRowData=function(t){var e=this.createTransactionForRowData(t);if(e){var o=$y(e,2),r=o[0],n=o[1],i=this.clientSideRowModel.updateRowData(r,n);i&&this.rowRenderer.refreshFullWidthRows(i.update)}},e.prototype.createTransactionForRowData=function(t){if(yi.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var e=this.gridOptionsWrapper.getRowIdFunc();if(null!=e){var o={remove:[],update:[],add:[]},r=this.clientSideRowModel.getCopyOfNodesMap(),n=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder(),i=n?void 0:{};return yi.exists(t)&&t.forEach((function(t,n){var s=e({data:t,level:0}),a=r[s];if(i&&(i[s]=n),a){var l=a.data!==t;l&&o.update.push(t),r[s]=void 0}else o.add.push(t)})),yi.iterateObject(r,(function(t,e){e&&o.remove.push(e.data)})),[o,i]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},Zy([nt("rowModel")],e.prototype,"rowModel",void 0),Zy([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),Zy([nt("columnApi")],e.prototype,"columnApi",void 0),Zy([nt("gridApi")],e.prototype,"gridApi",void 0),Zy([nt("filterManager")],e.prototype,"filterManager",void 0),Zy([et],e.prototype,"postConstruct",null),e=Zy([rt("immutableService")],e),e}(re),em={moduleName:ut.ClientSideRowModelModule,beans:[Hy,ky,Uy,Yy,Qy,tm],rowModels:{clientSide:Ly}},om=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),rm=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},nm=function(t){function e(e,o,r){var n=t.call(this,e)||this;return n.parentCache=o,n.params=r,n.startRow=e*r.blockSize,n.endRow=n.startRow+r.blockSize,n}return om(e,t),e.prototype.postConstruct=function(){this.createRowNodes()},e.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},e.prototype.setDataAndId=function(t,e,o){!t.id&&t.alreadyRendered&&(t.alreadyRendered=!1),yi.exists(e)?t.setDataAndId(e,o.toString()):t.setDataAndId(void 0,void 0)},e.prototype.loadFromDatasource=function(){var t=this,e=this.createLoadParams();yi.missing(this.params.datasource.getRows)?console.warn("AG Grid: datasource is missing getRows method"):window.setTimeout((function(){t.params.datasource.getRows(e)}),0)},e.prototype.processServerFail=function(){},e.prototype.createLoadParams=function(){var t={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 t},e.prototype.forEachNode=function(t,e,o){var r=this;this.rowNodes.forEach((function(n,i){var s=r.startRow+i;s<o&&t(n,e.next())}))},e.prototype.getLastAccessed=function(){return this.lastAccessed},e.prototype.getRow=function(t,e){void 0===e&&(e=!1),e||(this.lastAccessed=this.params.lastAccessedSequence.next());var o=t-this.startRow;return this.rowNodes[o]},e.prototype.getStartRow=function(){return this.startRow},e.prototype.getEndRow=function(){return this.endRow},e.prototype.createRowNodes=function(){this.rowNodes=[];for(var t=0;t<this.params.blockSize;t++){var e=this.startRow+t,o=new Ta(this.beans);o.setRowHeight(this.params.rowHeight),o.uiLevel=0,o.setRowIndex(e),o.setRowTop(this.params.rowHeight*e),this.rowNodes.push(o)}},e.prototype.processServerResult=function(t){var e=this;this.rowNodes.forEach((function(o,r){var n=t.rowData?t.rowData[r]:void 0;e.setDataAndId(o,n,e.startRow+r)}));var o=null!=t.rowCount&&t.rowCount>=0?t.rowCount:void 0;this.parentCache.pageLoaded(this,o)},e.prototype.destroyRowNodes=function(){this.rowNodes.forEach((function(t){t.clearRowTopAndRowIndex()}))},rm([nt("beans")],e.prototype,"beans",void 0),rm([et],e.prototype,"postConstruct",null),rm([ot],e.prototype,"destroyRowNodes",null),e}(bh),im=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),sm=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},am=function(t,e){return function(o,r){e(o,r,t)}},lm=function(t){function e(e){var o=t.call(this)||this;return o.lastRowIndexKnown=!1,o.blocks={},o.blockCount=0,o.rowCount=e.initialRowCount,o.params=e,o}return im(e,t),e.prototype.setBeans=function(t){this.logger=t.create("InfiniteCache")},e.prototype.getRow=function(t,e){void 0===e&&(e=!1);var o=Math.floor(t/this.params.blockSize),r=this.blocks[o];if(!r){if(e)return;r=this.createBlock(o)}return r.getRow(t)},e.prototype.createBlock=function(t){var e=this.createBean(new nm(t,this,this.params));return this.blocks[e.getId()]=e,this.blockCount++,this.purgeBlocksIfNeeded(e),this.params.rowNodeBlockLoader.addBlock(e),e},e.prototype.refreshCache=function(){var t=0==this.blockCount;t?this.purgeCache():(this.getBlocksInOrder().forEach((function(t){return t.setStateWaitingToLoad()})),this.params.rowNodeBlockLoader.checkBlockToLoad())},e.prototype.destroyAllBlocks=function(){var t=this;this.getBlocksInOrder().forEach((function(e){return t.destroyBlock(e)}))},e.prototype.getRowCount=function(){return this.rowCount},e.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},e.prototype.pageLoaded=function(t,e){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+t.getId()+", lastRow = "+e),this.checkRowCount(t,e),this.onCacheUpdated())},e.prototype.purgeBlocksIfNeeded=function(t){var o=this,r=this.getBlocksInOrder().filter((function(e){return e!=t})),n=function(t,e){return e.getLastAccessed()-t.getLastAccessed()};r.sort(n);var i=this.params.maxBlocksInCache>0,s=i?this.params.maxBlocksInCache-1:null,a=e.MAX_EMPTY_BLOCKS_TO_KEEP-1;r.forEach((function(t,e){var r=t.getState()===nm.STATE_WAITING_TO_LOAD&&e>=a,n=!!i&&e>=s;if(r||n){if(o.isBlockCurrentlyDisplayed(t))return;if(o.isBlockFocused(t))return;o.removeBlockFromCache(t)}}))},e.prototype.isBlockFocused=function(t){var e=this.focusService.getFocusCellToUseAfterRefresh();if(!e)return!1;if(null!=e.rowPinned)return!1;var o=t.getStartRow(),r=t.getEndRow(),n=e.rowIndex>=o&&e.rowIndex<r;return n},e.prototype.isBlockCurrentlyDisplayed=function(t){var e=t.getStartRow(),o=t.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(e,o)},e.prototype.removeBlockFromCache=function(t){t&&this.destroyBlock(t)},e.prototype.checkRowCount=function(t,e){if("number"===typeof e&&e>=0)this.rowCount=e,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var o=(t.getId()+1)*this.params.blockSize,r=o+this.params.overflowSize;this.rowCount<r&&(this.rowCount=r)}},e.prototype.setRowCount=function(t,e){this.rowCount=t,yi.exists(e)&&(this.lastRowIndexKnown=e),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()},e.prototype.forEachNodeDeep=function(t){var e=this,o=new mi;this.getBlocksInOrder().forEach((function(r){return r.forEachNode(t,o,e.rowCount)}))},e.prototype.getBlocksInOrder=function(){var t=function(t,e){return t.getId()-e.getId()},e=yi.getAllValuesInObject(this.blocks).sort(t);return e},e.prototype.destroyBlock=function(t){delete this.blocks[t.getId()],this.destroyBean(t),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(t)},e.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var t={type:le.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(t)}},e.prototype.destroyAllBlocksPastVirtualRowCount=function(){var t=this,e=[];this.getBlocksInOrder().forEach((function(o){var r=o.getId()*t.params.blockSize;r>=t.rowCount&&e.push(o)})),e.length>0&&e.forEach((function(e){return t.destroyBlock(e)}))},e.prototype.purgeCache=function(){var t=this;this.getBlocksInOrder().forEach((function(e){return t.removeBlockFromCache(e)})),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},e.prototype.getRowNodesInRange=function(t,e){var o=this,r=[],n=-1,i=!1,s=new mi;yi.missing(t)&&(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===t||o===e;(i||n)&&r.push(o),n&&(i=!i)}),s,o.rowCount)))}));var l=a||i;return l?[]:r},e.MAX_EMPTY_BLOCKS_TO_KEEP=2,sm([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),sm([nt("focusService")],e.prototype,"focusService",void 0),sm([am(0,at("loggerFactory"))],e.prototype,"setBeans",null),sm([ot],e.prototype,"destroyAllBlocks",null),e}(re),um=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),pm=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},cm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return um(e,t),e.prototype.getRowBounds=function(t){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*t}},e.prototype.ensureRowHeightsValid=function(t,e,o,r){return!1},e.prototype.init=function(){var t=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return t.destroyCache()})),this.verifyProps())},e.prototype.verifyProps=function(){if(null!=this.gridOptionsWrapper.getInitialGroupOrderComparator()){var t="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(t)}),"IRM.InitialGroupOrderComparator")}},e.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},e.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},e.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,le.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,le.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,le.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},e.prototype.onFilterChanged=function(){this.reset()},e.prototype.onSortChanged=function(){this.reset()},e.prototype.onColumnEverything=function(){var t;t=!this.cacheParams||this.isSortModelDifferent(),t&&this.reset()},e.prototype.isSortModelDifferent=function(){return!yi.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},e.prototype.getType=function(){return ft.ROW_MODEL_TYPE_INFINITE},e.prototype.setDatasource=function(t){this.destroyDatasource(),this.datasource=t,t&&this.reset()},e.prototype.isEmpty=function(){return!this.infiniteCache},e.prototype.isRowsToRender=function(){return!!this.infiniteCache},e.prototype.getNodesInRangeForSelection=function(t,e){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(t,e):[]},e.prototype.reset=function(){if(this.datasource){var t=this.gridOptionsWrapper.getRowIdFunc(),e=null!=t;e||this.selectionService.reset(),this.resetCache();var o=this.createModelUpdatedEvent();this.eventService.dispatchEvent(o)}},e.prototype.createModelUpdatedEvent=function(){return{type:le.EVENT_MODEL_UPDATED,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},e.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))},e.prototype.defaultIfInvalid=function(t,e){return t>0?t:e},e.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},e.prototype.onCacheUpdated=function(){var t=this.createModelUpdatedEvent();this.eventService.dispatchEvent(t)},e.prototype.getRow=function(t){if(this.infiniteCache&&!(t>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(t)},e.prototype.getRowNode=function(t){var e;return this.forEachNode((function(o){o.id===t&&(e=o)})),e},e.prototype.forEachNode=function(t){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(t)},e.prototype.getTopLevelRowCount=function(){return this.getRowCount()},e.prototype.getTopLevelRowDisplayedIndex=function(t){return t},e.prototype.getRowIndexAtPixel=function(t){if(0!==this.rowHeight){var e=Math.floor(t/this.rowHeight),o=this.getRowCount()-1;return e>o?o:e}return 0},e.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},e.prototype.isRowPresent=function(t){var e=this.getRowNode(t.id);return!!e},e.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},e.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},e.prototype.isLastRowIndexKnown=function(){return!!this.infiniteCache&&this.infiniteCache.isLastRowIndexKnown()},e.prototype.setRowCount=function(t,e){this.infiniteCache&&this.infiniteCache.setRowCount(t,e)},pm([nt("filterManager")],e.prototype,"filterManager",void 0),pm([nt("sortController")],e.prototype,"sortController",void 0),pm([nt("selectionService")],e.prototype,"selectionService",void 0),pm([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),pm([nt("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),pm([et],e.prototype,"init",null),pm([ot],e.prototype,"destroyDatasource",null),e=pm([rt("rowModel")],e),e}(re),dm={moduleName:ut.InfiniteRowModelModule,rowModels:{infinite:cm}},hm=function(){function t(){}return t.prototype.setBeans=function(t){this.beans=t},t.prototype.getFileName=function(t){var e=this.getDefaultFileExtension();return null!=t&&t.length||(t=this.getDefaultFileName()),-1===t.indexOf(".")?t+"."+e:t},t.prototype.getData=function(t){var e=this.createSerializingSession(t),o=this.beans.gridSerializer.serialize(e,t);return o},t}(),fm=function(){function t(t){this.groupColumns=[];var e=t.columnModel,o=t.valueService,r=t.gridOptionsWrapper,n=t.processCellCallback,i=t.processHeaderCallback,s=t.processGroupHeaderCallback,a=t.processRowGroupCallback;this.columnModel=e,this.valueService=o,this.gridOptionsWrapper=r,this.processCellCallback=n,this.processHeaderCallback=i,this.processGroupHeaderCallback=s,this.processRowGroupCallback=a}return t.prototype.prepare=function(t){this.groupColumns=t.filter((function(t){return!!t.getColDef().showRowGroup}))},t.prototype.extractHeaderValue=function(t){var e=this.getHeaderName(this.processHeaderCallback,t);return null!=e?e:""},t.prototype.extractRowCellValue=function(t,e,o,r,n){var i=this.gridOptionsWrapper.isGroupHideOpenParents(),s=!i&&this.shouldRenderGroupSummaryCell(n,t,e)?this.createValueForGroupNode(n):this.valueService.getValue(t,n),a=this.processCell({accumulatedRowIndex:o,rowNode:n,column:t,value:s,processCellCallback:this.processCellCallback,type:r});return null!=a?a:""},t.prototype.shouldRenderGroupSummaryCell=function(t,e,o){var r,n=t&&t.group;if(!n)return!1;var i=this.groupColumns.indexOf(e);if(-1!==i&&(null===(r=t.groupData)||void 0===r?void 0:r[e.getId()]))return!0;var s=this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===o&&s},t.prototype.getHeaderName=function(t,e){return t?t({column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnModel.getDisplayNameForColumn(e,"csv",!0)},t.prototype.createValueForGroupNode=function(t){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var e=[t.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())while(t.parent)t=t.parent,e.push(t.key);return e.reverse().join(" -> ")},t.prototype.processCell=function(t){var e=t.accumulatedRowIndex,o=t.rowNode,r=t.column,n=t.value,i=t.processCellCallback,s=t.type;return i?i({accumulatedRowIndex:e,column:r,node:o,value:n,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:s}):null!=n?n:""},t}(),gm=function(){function t(){}return t.download=function(t,e){var o=document.defaultView||window;if(o){var r=document.createElement("a"),n=o.URL.createObjectURL(e);r.setAttribute("href",n),r.setAttribute("download",t),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`")},t}(),vm=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ym="\r\n",mm=function(t){function e(e){var o=t.call(this,e)||this;o.isFirstLine=!0,o.result="";var r=e.suppressQuotes,n=e.columnSeparator;return o.suppressQuotes=r,o.columnSeparator=n,o}return vm(e,t),e.prototype.addCustomContent=function(t){var e=this;t&&("string"===typeof t?(/^\s*\n/.test(t)||this.beginNewLine(),t=t.replace(/\r?\n/g,ym),this.result+=t):t.forEach((function(t){e.beginNewLine(),t.forEach((function(t,o){0!==o&&(e.result+=e.columnSeparator),e.result+=e.putInQuotes(t.data.value||""),t.mergeAcross&&e.appendEmptyCells(t.mergeAcross)}))})))},e.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},e.prototype.onNewHeaderGroupingRowColumn=function(t,e,o,r){0!=o&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(r)},e.prototype.appendEmptyCells=function(t){for(var e=1;e<=t;e++)this.result+=this.columnSeparator+this.putInQuotes("")},e.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},e.prototype.onNewHeaderRowColumn=function(t,e){0!=e&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(t))},e.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},e.prototype.onNewBodyRowColumn=function(t,e,o){0!=e&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(t,e,e,ft.EXPORT_TYPE_CSV,o))},e.prototype.putInQuotes=function(t){if(this.suppressQuotes)return t;if(null===t||void 0===t)return'""';var e;"string"===typeof t?e=t:"function"===typeof t.toString?e=t.toString():(console.warn("AG Grid: unknown value type during csv conversion"),e="");var o=e.replace(/"/g,'""');return'"'+o+'"'},e.prototype.parse=function(){return this.result},e.prototype.beginNewLine=function(){this.isFirstLine||(this.result+=ym),this.isFirstLine=!1},e}(fm),Cm=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),wm=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Em=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Cm(e,t),e.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},e.prototype.getMergedParams=function(t){var e=this.gridOptionsWrapper.getDefaultExportParams("csv");return Object.assign({},e,t)},e.prototype.export=function(t){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var e=this.getMergedParams(t),o=this.getData(e),r=new Blob(["\ufeff",o],{type:"text/plain"});return gm.download(this.getFileName(e.fileName),r),o},e.prototype.exportDataAsCsv=function(t){return this.export(t)},e.prototype.getDataAsCsv=function(t,e){void 0===e&&(e=!1);var o=e?Object.assign({},t):this.getMergedParams(t);return this.getData(o)},e.prototype.getDefaultFileName=function(){return"export.csv"},e.prototype.getDefaultFileExtension=function(){return"csv"},e.prototype.createSerializingSession=function(t){var e=this,o=e.columnModel,r=e.valueService,n=e.gridOptionsWrapper,i=t,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||","})},e.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},wm([nt("columnModel")],e.prototype,"columnModel",void 0),wm([nt("valueService")],e.prototype,"valueService",void 0),wm([nt("gridSerializer")],e.prototype,"gridSerializer",void 0),wm([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),wm([et],e.prototype,"postConstruct",null),e=wm([rt("csvCreator")],e),e}(hm),Rm=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Om=function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s};(function(t){t[t["HEADER_GROUPING"]=0]="HEADER_GROUPING",t[t["HEADER"]=1]="HEADER",t[t["BODY"]=2]="BODY"})(Fy||(Fy={}));var Sm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rm(e,t),e.prototype.serialize=function(t,e){void 0===e&&(e={});var o=this.getColumnsToExport(e.allColumns,e.columnKeys),r=yi.compose(this.prepareSession(o),this.prependContent(e),this.exportColumnGroups(e,o),this.exportHeaders(e,o),this.processPinnedTopRows(e,o),this.processRows(e,o),this.processPinnedBottomRows(e,o),this.appendContent(e));return r(t).parse()},e.prototype.processRow=function(t,e,o,r){var n=e.shouldRowBeSkipped||function(){return!1},i=this.gridOptionsWrapper,s=i.getContext(),a=i.getApi(),l=i.getColumnApi(),u=i.isGroupRemoveSingleChildren(),p=i.isGroupRemoveLowestSingleChildren(),c=null!=e.rowPositions,d=c||!!e.onlySelected,h=i.isGroupHideOpenParents()&&!d,f=this.columnModel.isPivotMode()?r.leafGroup:!r.group,g=e.skipGroups||e.skipRowGroups,v=p&&r.leafGroup,y=1===r.allChildrenCount&&(u||v);if(g&&e.skipGroups&&yi.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups"),!(!f&&(e.skipRowGroups||y||h)||e.onlySelected&&!r.isSelected()||e.skipPinnedTop&&"top"===r.rowPinned||e.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=t.onNewBodyRow();if(o.forEach((function(t,e){w.onColumn(t,e,r)})),e.getCustomContentBelowRow){var E=e.getCustomContentBelowRow({node:r,api:a,columnApi:l,context:s});E&&t.addCustomContent(E)}}}}},e.prototype.appendContent=function(t){return function(e){var o=t.customFooter||t.appendContent;return o&&(t.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"),e.addCustomContent(o)),e}},e.prototype.prependContent=function(t){return function(e){var o=t.customHeader||t.prependContent;return o&&(t.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"),e.addCustomContent(o)),e}},e.prototype.prepareSession=function(t){return function(e){return e.prepare(t),e}},e.prototype.exportColumnGroups=function(t,e){var o=this;return function(r){if(t.skipColumnGroupHeaders)t.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 ue,i=o.displayedGroupCreator.createDisplayedGroups(e,o.columnModel.getGridBalancedTree(),n,null);o.recursivelyAddHeaderGroups(i,r,t.processGroupHeaderCallback)}return r}},e.prototype.exportHeaders=function(t,e){return function(o){if(t.skipHeader||t.skipColumnHeaders)t.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();e.forEach((function(t,e){r.onColumn(t,e,void 0)}))}return o}},e.prototype.processPinnedTopRows=function(t,e){var o=this;return function(r){var n=o.processRow.bind(o,r,t,e);return t.rowPositions?t.rowPositions.filter((function(t){return"top"===t.rowPinned})).sort((function(t,e){return t.rowIndex-e.rowIndex})).map((function(t){return o.pinnedRowModel.getPinnedTopRow(t.rowIndex)})).forEach(n):o.pinnedRowModel.forEachPinnedTopRow(n),r}},e.prototype.processRows=function(t,e){var o=this;return function(r){var n=o.rowModel,i=n.getType(),s=i===ft.ROW_MODEL_TYPE_CLIENT_SIDE,a=i===ft.ROW_MODEL_TYPE_SERVER_SIDE,l=!s&&t.onlySelected,u=o.processRow.bind(o,r,t,e),p=t.exportedRows,c=void 0===p?"filteredAndSorted":p;if(t.rowPositions)t.rowPositions.filter((function(t){return null==t.rowPinned})).sort((function(t,e){return t.rowIndex-e.rowIndex})).map((function(t){return n.getRow(t.rowIndex)})).forEach(u);else if(o.columnModel.isPivotMode())s?n.forEachPivotNode(u):n.forEachNode(u);else if(t.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}},e.prototype.processPinnedBottomRows=function(t,e){var o=this;return function(r){var n=o.processRow.bind(o,r,t,e);return t.rowPositions?t.rowPositions.filter((function(t){return"bottom"===t.rowPinned})).sort((function(t,e){return t.rowIndex-e.rowIndex})).map((function(t){return o.pinnedRowModel.getPinnedBottomRow(t.rowIndex)})).forEach(n):o.pinnedRowModel.forEachPinnedBottomRow(n),r}},e.prototype.getColumnsToExport=function(t,e){void 0===t&&(t=!1);var o=this.columnModel.isPivotMode();if(e&&e.length)return this.columnModel.getGridColumns(e);if(t&&!o){var r=this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([ft.GROUP_AUTO_COLUMN_ID]):[];return r.concat(this.columnModel.getAllPrimaryColumns()||[])}return this.columnModel.getAllDisplayedColumns()},e.prototype.recursivelyAddHeaderGroups=function(t,e,o){var r=[];t.forEach((function(t){var e=t;e.getChildren&&e.getChildren().forEach((function(t){return r.push(t)}))})),t.length>0&&t[0]instanceof Vt&&this.doAddHeaderHeader(e,t,o),r&&r.length>0&&this.recursivelyAddHeaderGroups(r,e,o)},e.prototype.doAddHeaderHeader=function(t,e,o){var r=this,n=t.onNewHeaderGroupingRow(),i=0;e.forEach((function(t){var e,s=t;e=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(t,e,o,r){var n=yi.last(t),i="open"===e.getColumnGroupShow();return i?n&&null==n[1]||(n=[o],t.push(n)):n&&null==n[1]&&(n[1]=o-1),o===r.length-1&&n&&null==n[1]&&(n[1]=o),t}),[]);n.onColumn(s,e||"",i++,s.getLeafColumns().length-1,a)}))},Om([nt("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),Om([nt("columnModel")],e.prototype,"columnModel",void 0),Om([nt("rowModel")],e.prototype,"rowModel",void 0),Om([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Om([nt("selectionService")],e.prototype,"selectionService",void 0),Om([nt("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),e=Om([rt("gridSerializer")],e),e}(re),_m={moduleName:ut.CsvExportModule,beans:[Em,Sm]},bm="\r\n",Pm=(function(){function t(){}t.createHeader=function(t){void 0===t&&(t={});var e="<?",o="?>",r=["version"];t.version||(t.version="1.0"),t.encoding&&r.push("encoding"),t.standalone&&r.push("standalone");var n=r.map((function(e){return e+'="'+t[e]+'"'})).join(" ");return e+"xml "+n+" "+o},t.createXml=function(t,e){var o=this,r="";t.properties&&(t.properties.prefixedAttributes&&t.properties.prefixedAttributes.forEach((function(t){Object.keys(t.map).forEach((function(n){r+=o.returnAttributeIfPopulated(t.prefix+n,t.map[n],e)}))})),t.properties.rawMap&&Object.keys(t.properties.rawMap).forEach((function(n){r+=o.returnAttributeIfPopulated(n,t.properties.rawMap[n],e)})));var n="<"+t.name+r;return t.children||null!=t.textNode?null!=t.textNode?n+">"+t.textNode+"</"+t.name+">"+bm:(n+=">"+bm,t.children&&t.children.forEach((function(t){n+=o.createXml(t,e)})),n+"</"+t.name+">"+bm):n+"/>"+bm},t.returnAttributeIfPopulated=function(t,e,o){if(!e&&""!==e&&0!==e)return"";var r=e;return"boolean"===typeof e&&o&&(r=o(e))," "+t+'="'+r+'"'}}(),function(t){var e="function"===typeof Symbol&&Symbol.iterator,o=e&&t[e],r=0;if(o)return o.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"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 t(){}t.addFolders=function(t){t.forEach(this.addFolder.bind(this))},t.addFolder=function(t){this.folders.push({path:t,created:new Date,isBase64:!1})},t.addFile=function(t,e,o){void 0===o&&(o=!1),this.files.push({path:t,created:new Date,content:e,isBase64:o})},t.getContent=function(t){void 0===t&&(t="application/zip");var e=this.buildFileStream(),o=this.buildUint8Array(e);return this.clearStream(),new Blob([o],{type:t})},t.clearStream=function(){this.folders=[],this.files=[]},t.buildFileStream=function(t){var e,o;void 0===t&&(t="");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,t+=d+f,i+=h}}catch(v){e={error:v}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(e)throw e.error}}var g=this.buildFolderEnd(n,a,s);return t+i+g},t.getHeader=function(t,e){var o=t.content,r=t.path,n=t.created,i=t.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(e,4)+l+d;return{fileHeader:m,folderHeader:C,content:v||""}},t.getConvertedContent=function(t,e){return void 0===e&&(e=!1),e&&(t=t.split(";base64,")[1]),t=e?atob(t):t,{size:t.length,content:t}},t.buildFolderEnd=function(t,e,o){var r=yi.decToHex;return"PK\0\0\0\0"+r(t,2)+r(t,2)+r(e,4)+r(o,4)+"\0\0"},t.buildUint8Array=function(t){for(var e=new Uint8Array(t.length),o=0;o<e.length;o++)e[o]=t.charCodeAt(o);return e},t.getFromCrc32Table=function(t){if(!t.length)return 0;for(var e=t.length,o=new Uint8Array(e),r=0;r<e;r++)o[r]=t.charCodeAt(r);var n=-1,i=0,s=0,a=0;for(r=0;r<e;r++)i=o[r],s=255&(n^i),a=Tm[s],n=n>>>8^a;return-1^n},t.convertTime=function(t){var e=t.getHours();return e<<=6,e|=t.getMinutes(),e<<=5,e|=t.getSeconds()/2,e},t.convertDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e|=t.getMonth()+1,e<<=5,e|=t.getDate(),e},t.folders=[],t.files=[]}(),[em,dm,_m]);gt.registerModules(Dm)}).call(this,o("c8ba"))},3180:function(t,e,o){"use strict";o("9f4c")},"401b":function(t,e,o){"use strict";function r(t){for(var o in t)e.hasOwnProperty(o)||(e[o]=t[o])}Object.defineProperty(e,"__esModule",{value:!0}),r(o("1283"))},4992:function(t,e,o){"use strict";o("ecfa")},"4faa":function(t,e,o){"use strict";var r={users:[]},n=(o("20d6"),{SET_USERS:function(t,e){t.users=e},REMOVE_RECORD:function(t,e){var o=t.users.findIndex((function(t){return t.id===e}));t.users.splice(o,1)}}),i=o("bb36"),s={fetchUsers:function(t){var e=t.commit;return new Promise((function(t,o){i["b"].get("/api/user-management/users").then((function(o){e("SET_USERS",o.data),t(o)})).catch((function(t){o(t)}))}))},fetchUser:function(t,e){return new Promise((function(t,o){i["b"].get("user/profile/".concat(e)).then((function(e){t(e)})).catch((function(t){o(t)}))}))},removeRecord:function(t,e){var o=t.commit;return new Promise((function(t,r){i["b"].delete("/api/user-management/users/".concat(e)).then((function(r){o("REMOVE_RECORD",e),t(r)})).catch((function(t){r(t)}))}))}},a={};e["a"]={isRegistered:!1,namespaced:!0,state:r,mutations:n,actions:s,getters:a}},"9f4c":function(t,e,o){},ecfa:function(t,e,o){},fd50:function(t,e,o){"use strict";o.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"page-user-list"}},[e("vx-card",{ref:"filterCard",staticClass:"vx-card",attrs:{removeCardAction:!1,title:"لیست محصولات"}},[e("div",[e("h6",[t._v("تعداد "+t._s(t.selected_rows.length)+" محصول انتخاب شده است.")]),e("XTable",{ref:"tblProducts",attrs:{model:t.cols,hasSelection:!0},scopedSlots:t._u([{key:"show_type",fn:function(e){e.text;var o=e.record;return[t._v("\n "+t._s(o.show_type_str)+"\n ")]}},{key:"op",fn:function(o){o.text;var r=o.record;return t.is_branch?t._e():e("div",{},[e("div",{staticClass:"w-48 flex"},[t.$hasPermission("product.list.edit")?e("ATooltip",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("ویرایش")]),e("FeatherIcon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"EditIcon",svgClasses:"h-6 w-6 text-primary"},on:{click:function(e){return t.toEdit(r.id)}}})],1):t._e(),t.$hasPermission("product.list.view")?e("ATooltip",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("اطلاعات جامع")]),e("FeatherIcon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"AlertCircleIcon",svgClasses:"h-6 w-6 text-warning"},on:{click:function(e){return t.showProductModal(r)}}})],1):t._e(),t.$hasPermission("product.list.remove")?e("ATooltip",[e("a-popconfirm",{attrs:{placement:"top","ok-text":"بله","cancel-text":"خیر"},on:{confirm:function(e){return t.confirmDelete(r.id)}}},[e("template",{slot:"title"},[e("p",[t._v("آیا مطمئن به حذف محصول مورد نظر هستید ؟")])]),e("FeatherIcon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"TrashIcon",svgClasses:"h-6 w-6 text-danger"}})],2),e("span",{attrs:{slot:"title"},slot:"title"},[t._v("حذف")])],1):t._e(),e("ATooltip",{on:{click:function(e){return t.setOffer(r.id)}}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("محصولات پیشهادی")]),r.offer_day?e("FeatherIcon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"CheckIcon",svgClasses:"h-6 w-6 text-success"}}):e("FeatherIcon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"XIcon",svgClasses:"h-6 w-6 text-danger"}})],1),e("ATooltip",{staticClass:"cursor-pointer",on:{click:function(e){return t.editAttr(r.id,"has_warranty")}}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("تضمین قیمت")]),e("Icon",{staticClass:"h-6 w-9",attrs:{icon:"vuesax-linear:shield_dollar",color:r.has_warranty?"#1C2D56":"#898989"}})],1),e("ATooltip",{staticClass:"cursor-pointer",on:{click:function(e){return t.editAttr(r.id,"is_exist")}}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("موجود")]),e("Icon",{staticClass:"h-6 w-9",attrs:{icon:"vuesax-linear:box-tick",color:r.is_exist?"#2563EB":"#DC2626"}})],1)],1)])}},{key:"image",fn:function(o){o.text;var r=o.record;return e("div",{},[e("img",{staticClass:"object-scale-down",attrs:{width:"90px",height:"90px",src:r.thumb&&r.thumb.full?r.thumb.full:t.noImage}})])}}],null,!0),model:{value:t.selected_rows,callback:function(e){t.selected_rows=e},expression:"selected_rows"}}),t.$hasPermission("product.list.group.edit")?e("ASpin",{attrs:{type:"loading",spinning:t.change_loading}},[t.selected_rows.length>0?e("a-card",{staticClass:"mt-5",attrs:{title:"تغییر دسته ای"}},[e("a-popconfirm",{attrs:{slot:"extra",title:"آیا مطمئن به تغییر ".concat(t.selected_rows.length," محصول هستید ؟"),"ok-text":"بله","cancel-text":"خیر"},on:{confirm:t.handleChange},slot:"extra"},[e("a-button",{attrs:{type:"primary"}},[t._v("\n ثبت تغییرات\n ")])],1),e("a-form",{attrs:{form:t.form}},[e("div",{staticClass:"grid grid-cols-5 gap-4"},[e("div",[e("a-form-item",{attrs:{label:"اجرت درصدی"}},[e("AInputNumber",{directives:[{name:"decorator",rawName:"v-decorator",value:["percentage_pay",{rules:[{required:!1,message:"اجرت را وارد نمایید"}]}],expression:"['percentage_pay', { rules: [{ required: false, message: 'اجرت را وارد نمایید' }] }]"}],staticClass:"mt-3"})],1)],1)])]),e("div",[t.result?e("a-alert",{staticClass:"mt-5",attrs:{message:" اجرت ".concat(t.result," محصول تغییر یافت "),type:"success"}}):t._e(),0==t.result?e("a-alert",{staticClass:"mt-5",attrs:{message:"محصولی برای تغییر یافت نشد",type:"error"}}):t._e()],1)],1):t._e()],1):t._e()],1)]),e("AModal",{attrs:{visible:t.detailsPopup,zIndex:41e4,width:"80%",footer:null},on:{"update:visible":function(e){t.detailsPopup=e},cancel:function(){return t.detailsPopup=!1}}},[e("div",[e("ACard",{staticClass:"w-full",attrs:{title:"مشاهده اطلاعات"}},[t.tempProduct?e("table",{staticClass:"flex justify-between"},[e("tr",{staticClass:"flex flex-col"},[e("td",{staticClass:"text-primary"},[t._v("عنوان محصول")]),e("td",[t._v(t._s(t.tempProduct.title))])]),e("tr",{staticClass:"flex flex-col"},[e("td",{staticClass:"text-primary"},[t._v("کد محصول")]),e("td",[t._v(t._s(t.tempProduct.product_code))])]),e("tr",{staticClass:"flex flex-col"},[e("td",{staticClass:"text-primary"},[t._v("وضعیت:")]),t.tempProduct.is_active?e("td",[t._v("فعال")]):e("td",[t._v("غیرفعال")])])]):t._e(),t.tempProduct?e("div",{staticClass:"mt-4 flex flex-col w-full"},[e("span",{staticClass:"text-primary"},[t._v("توضیح:")]),e("span",[t._v(t._s(t.tempProduct.body_html))])]):t._e()])],1)])],1)},n=[],i=(o("96cf"),o("1da1")),s=(o("401b"),o("4a7a")),a=o.n(s),l=o("ac62"),u=o("ed08"),p=o("04c5"),c=o("e0d2"),d=new c["b"]("https://henzagold.com/oapi/admin/products","لیست محصولات");d.add(new c["a"]("id","کد").filterNumber()),d.add(new c["a"]("ProductImage","تصویر محصول").renderSlot("image").noSort()),d.add(new c["a"]("title","نام محصول").filterText()),d.add(new c["a"]("brand.title","برند").filterText()),d.add(new c["a"]("category.collection.title","دسته بندی").filterText()),d.add(new c["a"]("product_code","کد محصول").filterText()),d.add(new c["a"]("show_type","نوع نمایش").filterSelect({1:"سایت",2:"گوشی",3:"سایت و گوشی"}).renderSlot("show_type")),d.add(new c["a"]("action","عملیات").renderSlot("op").noSort());var h,f,g,v,y,m,C=d,w=o("ff6e"),E=(o("7f7f"),function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"page-user-view"}},[e("div",{attrs:{id:"user-data"}},[e("vx-card",{staticClass:"mb-base",attrs:{title:"اطلاعات مشتری"}},[e("div",{staticClass:"vx-row"},[e("div",{staticClass:"vx-col",attrs:{id:"avatar-col"}},[e("div",{staticClass:"img-container mb-4"},[e("img",{staticClass:"rounded w-full",attrs:{src:t.user_data.avatar}})])]),e("div",{staticClass:"vx-col flex-1",attrs:{id:"account-info-col-1"}},[e("table",{staticClass:"flex flex-row"},[e("tr",{staticClass:"flex flex-col px-8"},[e("td",{staticClass:"font-semibold"},[t._v("نام")]),e("td",[t._v(t._s(t.user_data.name))])]),e("tr",{staticClass:"flex flex-col px-8"},[e("td",{staticClass:"font-semibold"},[t._v("کد ملی")]),e("td",[t._v("اشکانی")])]),e("tr",{staticClass:"flex flex-col px-8"},[e("td",{staticClass:"font-semibold"},[t._v("تلفن همراه")]),e("td",[t._v(t._s(t.user_data.reciver_fixed_phone))])]),e("tr",{staticClass:"flex flex-col px-8"},[e("td",{staticClass:"font-semibold"},[t._v("وضعیت")]),e("td",[t._v("فعال")])])]),e("div",{staticClass:"w-full p-6"},[e("div",{staticClass:"font-semibold"},[t._v("آدرس")]),e("div",[t._v(t._s(t.user_data.address))])])]),e("div",{staticClass:"vx-col flex-1",attrs:{id:"account-info-col-2"}},[e("table")]),e("div",{staticClass:"vx-col w-full flex",attrs:{id:"account-manage-buttons"}},[e("vs-button",{staticClass:"mr-4",attrs:{"icon-pack":"feather",icon:"icon-edit"}},[t._v("ویرایش")]),e("APopconfirm",{attrs:{placement:"top","ok-text":"بله","cancel-text":"خیر"},on:{confrim:function(){}}},[e("template",{slot:"title"},[e("span",[t._v("مطمئنی؟")])]),e("vs-button",{attrs:{type:"border",color:"danger","icon-pack":"feather",icon:"icon-trash"}},[t._v("\n غیر فعال کردن مشتری\n ")])],2)],1)])])],1)])}),R=[],O=o("4faa"),S=o("bb36"),_={name:"CustomerView",data:function(){return{user_data:null,browserStatistics:[{title:"فروش هفته جاری",percent:"5",value:"1500000",ratio:50},{title:"فروش هفته گذشته",percent:"4",value:"12000000",ratio:75},{title:"فروش ماه گذشته",percent:"10",value:"125000000",ratio:42}],user_not_found:!1}},computed:{userAddress:function(){var t="";for(var e in this.user_data.location)t+="".concat(e," ");return t}},methods:{confirmDeleteRecord:function(){this.$vs.dialog({type:"confirm",color:"danger",title:"Confirm Delete",text:'You are about to delete "'.concat(this.user_data.username,'"'),accept:this.deleteRecord,acceptText:"Delete"})},deleteRecord:function(){this.$router.push({name:"app-user-list"}),this.showDeleteSuccess()},showDeleteSuccess:function(){this.$vs.notify({color:"success",title:"User Deleted",text:"The selected user was successfully deleted"})}},created:function(){var t=this;O["a"].isRegistered||(this.$store.registerModule("userManagement",O["a"]),O["a"].isRegistered=!0),this.$store.dispatch("userManagement/fetchUser",3).then((function(e){t.user_data=e.data,console.log("user_data",t.user_data)})).catch((function(e){404!==e.response.status?console.error(e):t.user_not_found=!0}))}},b=_,P=(o("3180"),o("2877")),T=Object(P["a"])(b,E,R,!1,null,null,null),D=T.exports,A=o("529b"),N=o.n(A),I={components:{CustomerView:D,vSelect:a.a,FeatherIcon:p["a"],Icon:l["a"],XTable:w["a"]},data:function(){return{noImage:N.a,form:this.$form.createForm(this,{name:"coordinated"}),selected_rows:[],change_loading:!1,tempVariant:[],tempProduct:void 0,detailsPopup:!1,variantLoading:!1,productLoading:!1,variantPopup:!1,changeActive:!1,cols:null,components:{}}},watch:{},computed:{is_branch:function(){return Object(u["a"])()}},methods:{toAddVariant:function(){window.open("/admin/apps/product/".concat(this.tempProduct.id,"/variant/add"),"_blank").focus()},editAttr:function(t,e){return(h=h||Object(i["a"])(regeneratorRuntime.mark((function t(e,o){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,"has_warranty"!==o){t.next=6;break}return t.next=4,S["b"].get("product/warranty/".concat(e));case 4:t.next=8;break;case 6:return t.next=8,S["b"].get("product/exist/".concat(e));case 8:this.$message.success("با موفقیت انجام شد"),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](0),this.$message.error("خطا در تغیر تضمین قیمت");case 14:return t.next=16,this.$refs.tblProducts.fetch();case 16:case"end":return t.stop()}}),t,this,[[0,11]])})))).apply(this,arguments)},setOffer:function(t){return(f=f||Object(i["a"])(regeneratorRuntime.mark((function t(e){var o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.change_loading=!0,t.next=3,S["b"].get("/product/offer/".concat(e));case 3:o=t.sent,o.data,this.$message.success("تغییرات با موفقیت انجام شد"),this.change_loading=!1,this.$refs.tblProducts.fetch();case 8:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)},handleChange:function(){return(g=g||Object(i["a"])(regeneratorRuntime.mark((function t(){var e,o=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.form.validateFields((function(t,r){return(e=e||Object(i["a"])(regeneratorRuntime.mark((function t(e,r){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e){t.next=18;break}return t.prev=1,o.change_loading=!0,r.products_id=o.selected_rows,t.next=6,S["b"].post("/change/all",r);case 6:n=t.sent,n.data,o.$success({title:"تغییرات با موفقیت اعمال شد",okText:"بستن"}),t.next=15;break;case 11:t.prev=11,t.t0=t["catch"](1),o.$success({title:"خطا در اعمال تغییرات"}),console.log(t.t0);case 15:return t.prev=15,o.change_loading=!1,t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[1,11,15,18]])})))).apply(this,arguments)}));case 1:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)},showVariantModal:function(t){return(v=v||Object(i["a"])(regeneratorRuntime.mark((function t(e){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.tempProduct=e,this.tempVariant=[],this.variantLoading=!0,this.variantPopup=!0,t.next=6,S["b"].post("get/variants",{id:e.id});case 6:o=t.sent,r=o.data,this.variantLoading=!1,this.tempVariant=r;case 10:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)},showProductModal:function(t){return(y=y||Object(i["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.tempProduct=e,this.productLoading=!1,this.detailsPopup=!0,console.log("this.tempProduct ==> ",this.tempProduct);case 4:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)},toEdit:function(t){window.open("/admin/apps/product/edit/".concat(t),"_blank").focus()},toEditVariant:function(t){this.$router.push({name:"variant-edit",params:{id:t}})},toDeletVariant:function(t){return(m=m||Object(i["a"])(regeneratorRuntime.mark((function t(e){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("variant/removevariant",{row:e});case 2:return this.tempVariant=[],this.variantLoading=!0,t.next=6,S["b"].get("product/".concat(e.product_id,"/variant"));case 6:o=t.sent,r=o.data,this.variantLoading=!1,this.tempVariant=r;case 10:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)},confirmDelete:function(t){var e=this;S["b"].post("delete/product/"+t).then((function(t){e.$message.info("محصول حذف شد"),e.$refs.tblProducts.fetch()})).catch((function(t){console.log(t)}))}},mounted:function(){},created:function(){this.cols=C}},G=I,F=(o("4992"),Object(P["a"])(G,r,n,!1,null,null,null));e["default"]=F.exports}}]);
Copyright ©2k19 -
Hexid
|
Tex7ure