UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components

68 lines (67 loc) 981 kB
/** * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.2.0 * @link http://www.ag-grid.com/ ' * @license MIT */ /** * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.2.0 * @link http://www.ag-grid.com/ ' * @license MIT */ /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.2.0 * @link http://www.ag-grid.com/ * @license MIT */ function t(t){return null==t||""===t?null:t}function e(t,e){return void 0===e&&(e=!1),null!=t&&(""!==t||e)}function o(t){return!e(t)}function n(t){return null==t||0===t.length}function r(t){return null!=t&&"function"==typeof t.toString?t.toString():null}function i(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 s(t){if(void 0!==t)return null!==t&&""!==t&&("boolean"==typeof t?t:/true/i.test(t))}function a(t,e,o){void 0===o&&(o=!1);var n=null==t,r=null==e;if(t&&t.toNumber&&(t=t.toNumber()),e&&e.toNumber&&(e=e.toNumber()),n&&r)return 0;if(n)return-1;if(r)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(o){return i(t,e)}}function l(t,e,o){if(null==t)return null;if(!Array.isArray(t))return l(p(t),e,o);for(var n=t,r=null,i=0;i<n.length;i++){var s=n[i];if("string"==typeof e){if(s[e]===o){r=s;break}}else if(e(s)){r=s;break}}return r}function p(t){if(t instanceof Set||t instanceof Map){var e=[];return t.forEach((function(t){return e.push(t)})),e}return Object.keys(t).map((function(e){return t[e]}))}var u=Object.freeze({__proto__:null,makeNull:t,exists:e,missing:o,missingOrEmpty:n,toStringOrNull:r,attrToNumber:i,attrToBoolean:s,attrToString:function(t){if(null!=t&&""!==t)return t},referenceCompare:function(t,e){return null==t&&null==e||(null!=t||null==e)&&((null==t||null!=e)&&t===e)},jsonEquals:function(t,e){return(t?JSON.stringify(t):null)===(e?JSON.stringify(e):null)},defaultComparator:a,find:l,values:p}),c=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=r(t);for(var o=0;;){var n=void 0;if(t?(n=t,0!==o&&(n+="_"+o)):e?(n=e,0!==o&&(n+="_"+o)):n=""+o,!this.existingKeys[n])return this.existingKeys[n]=!0,n;o++}},t}(); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.2.0 * @link http://www.ag-grid.com/ * @license MIT */ /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.2.0 * @link http://www.ag-grid.com/ * @license MIT */ function d(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];for(var n=0;n<t.length;n++){var r=t[n];if(e(r))return r}return null}function h(t){if(t&&t.length)return t[t.length-1]}function f(t,e,o){return null==t&&null==e||null!=t&&null!=e&&t.length===e.length&&O(t,(function(t,n){return o?o(t,e[n]):e[n]===t}))}function g(t){return t.sort((function(t,e){return t-e}))}function y(t,e){var o=t.indexOf(e);o>=0&&t.splice(o,1)}function v(t,e){P(e,(function(e){return y(t,e)}))}function C(t,e,o){t.splice(o,0,e)}function m(t,e,o){v(t,e),P(e.slice().reverse(),(function(e){return C(t,e,o)}))}function w(t,e){return t.indexOf(e)>-1}function E(t,e){null!=e&&null!=t&&P(e,(function(e){return t.push(e)}))}function R(t,e){for(var o=0;o<t.length;o++)if(e(t[o],o,t))return o;return-1}function O(t,e){if(null==t)return!0;for(var o=0;o<t.length;o++)if(!e(t[o],o))return!1;return!0}function S(t,e){if(null==t)return!1;for(var o=0;o<t.length;o++)if(e(t[o],o))return!0;return!1}function P(t,e){if(null!=t)for(var o=0;o<t.length;o++)e(t[o],o)}function _(t,e){if(null==t)return null;for(var o=[],n=0;n<t.length;n++)o.push(e(t[n],n));return o}function b(t,e){if(null==t)return null;for(var o=[],n=0;n<t.length;n++)e(t[n],n)&&o.push(t[n]);return o}var T=Object.freeze({__proto__:null,firstExistingValue:d,anyExists:function(t){return t&&null!=d(t)},existsAndNotEmpty:function(t){return null!=t&&t.length>0},last:h,areEqual:f,compareArrays:function(t,e){return f(t,e)},shallowCompare:function(t,e){return f(t,e)},sortNumerically:g,removeRepeatsFromArray:function(t,e){if(t)for(var o=t.length-2;o>=0;o--){var n=t[o]===e,r=t[o+1]===e;n&&r&&t.splice(o+1,1)}},removeFromArray:y,removeAllFromArray:v,insertIntoArray:C,insertArrayIntoArray:function(t,e,o){if(null!=t&&null!=e)for(var n=e.length-1;n>=0;n--){C(t,e[n],o)}},moveInArray:m,includes:w,flatten:function(t){return[].concat.apply([],t)},pushAll:E,toStrings:function(t){return _(t,r)},findIndex:R,fill:function(t,e,o,n){void 0===e&&(e=null),void 0===o&&(o=0),void 0===n&&(n=t.length);for(var r=o;r<n;r++)t[r]=e;return t},every:O,some:S,forEach:P,forEachReverse:function(t,e){if(null!=t)for(var o=t.length-1;o>=0;o--)e(t[o],o)},map:_,filter:b,reduce:function(t,e,o){if(null==t||null==o)return null;for(var n=o,r=0;r<t.length;r++)n=e(n,t[r],r);return n},forEachSnapshotFirst:function(t,e){t&&t.slice(0).forEach(e)}}); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.2.0 * @link http://www.ag-grid.com/ * @license MIT */function A(t,e){null!=t&&(Array.isArray(t)?P(t,(function(t,o){return e(""+o,t)})):P(Object.keys(t),(function(o){return e(o,t[o])})))}function D(t){for(var e={},o=Object.keys(t),n=0;n<o.length;n++){var r=o[n],i=t[r];e[r]=i}return e}function N(t,e){if(t){var o=t,n={};return Object.keys(o).forEach((function(t){if(!(e&&e.indexOf(t)>=0)){var r=o[t],i=B(r)&&r.constructor===Object;n[t]=i?N(r):r}})),n}}function F(t,e){return t[e]}function I(t,e,o){t[e]=o}function L(t,e,o,n){var r=F(t,o);void 0!==r&&I(e,o,n?n(r):r)}function G(t){var e={};return t.filter((function(t){return null!=t})).forEach((function(t){P(Object.keys(t),(function(t){return e[t]=null}))})),Object.keys(e)}function M(t){if(!t)return[];var e=Object;if("function"==typeof e.values)return e.values(t);var o=[];for(var n in t)t.hasOwnProperty(n)&&t.propertyIsEnumerable(n)&&o.push(t[n]);return o}function x(t,o,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1),e(o)&&A(o,(function(e,o){var i=t[e];if(i!==o){if(r)if(null==i&&null!=o)"object"==typeof o&&o.constructor===Object&&(i={},t[e]=i);B(o)&&B(i)&&!Array.isArray(i)?x(i,o,n,r):(n||void 0!==o)&&(t[e]=o)}}))}function H(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];return P(e,(function(e){return A(e,(function(e,o){return t[e]=o}))})),t}function V(t,e,o){if(null==t)return o;for(var n=e.split("."),r=t;n.length>1;)if(null==(r=r[n.shift()]))return o;var i=r[n[0]];return null!=i?i:o}function W(t,e,o){if(e&&t){if(!o)return t[e];for(var n=e.split("."),r=t,i=0;i<n.length;i++){if(null==r)return;r=r[n[i]]}return r}}function k(t,e){Object.keys(t).forEach((function(e){"object"==typeof t[e]&&(t[e]=void 0)}));var o=Object.getPrototypeOf(t),n={};Object.keys(o).forEach((function(t){if("function"==typeof o[t]){n[t]={value: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.")},writable:!0}}})),Object.defineProperties(t,n)}function B(t){return"object"==typeof t&&null!==t}var U=Object.freeze({__proto__:null,iterateObject:A,cloneObject:D,deepCloneObject:function(t){return JSON.parse(JSON.stringify(t))},deepCloneDefinition:N,getProperty:F,setProperty:I,copyPropertiesIfPresent:function(t,e){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];P(o,(function(o){return L(t,e,o)}))},copyPropertyIfPresent:L,getAllKeysInObjects:G,getAllValuesInObject:M,mergeDeep:x,assign:H,missingOrEmptyObject:function(t){return o(t)||0===Object.keys(t).length},get:V,set:function(t,e,o){if(null!=t){for(var n=e.split("."),r=t;n.length>1;)if(null==(r=r[n.shift()]))return;r[n[0]]=o}},deepFreeze:function t(e){return Object.freeze(e),P(p(e),(function(e){(B(e)||"function"==typeof e)&&t(e)})),e},getValueUsingField:W,removeAllReferences:k,isNonNullObject:B}),j=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,z=/([^\s,]+)/g,K={}; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.2.0 * @link http://www.ag-grid.com/ * @license MIT */function Y(t,e){K[e]||(t(),K[e]=!0)}function q(t){if(t.name)return t.name;var e=/function\s+([^\(]+)/.exec(t.toString());return e&&2===e.length?e[1].trim():null}function X(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Q(t){tt(t,400)}var $=[],Z=!1;function J(t){$.push(t),Z||(Z=!0,window.setTimeout((function(){var t=$.slice();$.length=0,Z=!1,t.forEach((function(t){return t()}))}),0))}function tt(t,e){void 0===e&&(e=0),t.length>0&&window.setTimeout((function(){return t.forEach((function(t){return t()}))}),e)}function et(t,e,o){var n;return void 0===o&&(o=!1),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=this,a=o&&!n;window.clearTimeout(n),n=window.setTimeout((function(){n=null,o||t.apply(s,r)}),e),a&&t.apply(s,r)}}function ot(t){t&&t()}var nt=Object.freeze({__proto__:null,doOnce:Y,getFunctionName:q,getFunctionParameters:function(t){var e=t.toString().replace(j,"");return e.slice(e.indexOf("(")+1,e.indexOf(")")).match(z)||[]},isFunction:X,executeInAWhile:Q,executeNextVMTurn:J,executeAfter:tt,debounce:et,compose:function(){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)}},callIfPresent:ot}),rt=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 p(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,o){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),e(o)&&t.forEach(o),this.callLifeCycleMethods(t,"postConstructMethods")},t.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),A(this.beanWrappers,(function(e,o){var n;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(n=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var r,i,s=t.getBeansForParameters(n,o.bean.name),a=(r=o.bean,i=[null].concat(s),new(r.bind.apply(r,i)));o.beanInstance=a}));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?q(t.prototype.constructor):""+t,void console.error("Context item "+o+" is not a bean")}var n={bean:t,beanInstance:null,beanName:e.beanName};this.beanWrappers[e.beanName]=n},t.prototype.autoWireBeans=function(t){var e=this;t.forEach((function(t){e.forEachMetaDataInHierarchy(t,(function(o,n){var r=o.agClassAttributes;r&&r.forEach((function(o){var r=e.lookupBeanInstance(n,o.beanName,o.optional);t[o.attributeName]=r}))}))}))},t.prototype.methodWireBeans=function(t){var e=this;t.forEach((function(t){e.forEachMetaDataInHierarchy(t,(function(o,n){A(o.autowireMethods,(function(o,r){if("agConstructor"!==o){var i=e.getBeansForParameters(r,n);t[o].apply(t,i)}}))}))}))},t.prototype.forEachMetaDataInHierarchy=function(t,e){for(var o=Object.getPrototypeOf(t);null!=o;){var n=o.constructor;if(n.hasOwnProperty("__agBeanMetaData"))e(n.__agBeanMetaData,this.getBeanName(n));o=Object.getPrototypeOf(o)}},t.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var e=t.toString();return e.substring(9,e.indexOf("("))},t.prototype.getBeansForParameters=function(t,e){var o=this,n=[];return t&&A(t,(function(t,r){var i=o.lookupBeanInstance(e,r);n[Number(t)]=i})),n},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 n=this.beanWrappers[e];return n?n.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 n={};this.forEachMetaDataInHierarchy(t,(function(t){var r=t[e];r&&r.forEach((function(t){t!=o&&(n[t]=!0)}))})),Object.keys(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}(); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.2.0 * @link http://www.ag-grid.com/ * @license MIT */function it(t,e,o){var n=ht(t.constructor);n.preConstructMethods||(n.preConstructMethods=[]),n.preConstructMethods.push(e)}function st(t,e,o){var n=ht(t.constructor);n.postConstructMethods||(n.postConstructMethods=[]),n.postConstructMethods.push(e)}function at(t,e,o){var n=ht(t.constructor);n.preDestroyMethods||(n.preDestroyMethods=[]),n.preDestroyMethods.push(e)}function lt(t){return function(e){ht(e).beanName=t}}function pt(t){return function(e,o,n){ct(e,t,!1,e,o,null)}}function ut(t){return function(e,o,n){ct(e,t,!0,e,o,null)}}function ct(t,e,o,n,r,i){if(null!==e)if("number"!=typeof i){var s=ht(t.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:r,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 dt(t){return function(e,o,n){var r,i="function"==typeof e?e:e.constructor;if("number"==typeof n){var s=void 0;o?(r=ht(i),s=o):(r=ht(i),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][n]=t}}}function ht(t){return t.hasOwnProperty("__agBeanMetaData")||(t.__agBeanMetaData={}),t.__agBeanMetaData} /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.2.0 * @link http://www.ag-grid.com/ * @license MIT */var ft,gt=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},yt=function(t,e){return function(o,n){e(o,n,t)}},vt=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,n){if(void 0===n&&(n=null),this.logger=t.create("EventService"),this.frameworkOverrides=o,n){var r=e.useAsyncEvents();this.addGlobalListener(n,r)}},t.prototype.getListeners=function(t,e,o){var n=e?this.allAsyncListeners:this.allSyncListeners,r=n.get(t);return!r&&o&&(r=new Set,n.set(t,r)),r},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 n=this.getListeners(t,o,!1);n&&(n.delete(e),0===n.size&&(o?this.allAsyncListeners:this.allSyncListeners).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){this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0},t.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},t.prototype.dispatchToListeners=function(t,e){var o=this,n=t.type,r=this.getListeners(n,e,!1);r&&function(n){n.forEach((function(n){e?o.dispatchAsync((function(){return n(t)})):n(t)}))}(r),(e?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(r){e?o.dispatchAsync((function(){return o.frameworkOverrides.dispatchEvent(n,(function(){return r(n,t)}))})):o.frameworkOverrides.dispatchEvent(n,(function(){return r(n,t)}))}))},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()}))},gt([yt(0,dt("loggerFactory")),yt(1,dt("gridOptionsWrapper")),yt(2,dt("frameworkOverrides")),yt(3,dt("globalEventListener"))],t.prototype,"setBeans",null),t=gt([lt("eventService")],t)}(),Ct=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.DateTimeCellEditorModule="@ag-grid-enterprise/date-time-cell-editor",t.AngularModule="@ag-grid-community/angular",t.ReactModule="@ag-grid-community/react",t.VueModule="@ag-grid-community/vue",t.PolymerModule="@ag-grid-community/polymer"}(ft||(ft={})); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.2.0 * @link http://www.ag-grid.com/ * @license MIT */ var mt=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&&Y((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-table/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(t,e){if(this.isRegistered(t))return!0;var o="AG Grid: unable to use "+e+" as module "+t+" is not present. Please see: https://www.ag-grid.com/javascript-table/modules/";return Y((function(){console.warn(o)}),e+t),!1},t.isRegistered=function(e){return!!t.modulesMap[e]},t.getRegisteredModules=function(){return p(t.modulesMap)},t.isPackageBased=function(){return!t.moduleBased},t.modulesMap={},t}(),wt=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Et=function(){function t(t,e,o,n){this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new vt,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=e,this.colId=o,this.primary=n,this.setState(t)}return t.prototype.setState=function(t){void 0!==t.sort?t.sort!==Ct.SORT_ASC&&t.sort!==Ct.SORT_DESC||(this.sort=t.sort):t.initialSort!==Ct.SORT_ASC&&t.initialSort!==Ct.SORT_DESC||(this.sort=t.initialSort);var e=i(t.sortIndex),o=i(t.initialSortIndex);void 0!==e?null!==e&&(this.sortIndex=e):null!==o&&(this.sortIndex=o);var n=s(t.hide),r=s(t.initialHide);this.visible=void 0!==n?!n:!r,void 0!==t.pinned?this.setPinned(t.pinned):this.setPinned(t.initialPinned);var a=i(t.flex),l=i(t.initialFlex);void 0!==a?this.flex=a:void 0!==l&&(this.flex=l)},t.prototype.setColDef=function(t,e){this.colDef=t,this.userProvidedColDef=e},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(){var t=this.gridOptionsWrapper.getMinColWidth(),o=this.gridOptionsWrapper.getMaxColWidth();null!=this.colDef.minWidth?this.minWidth=Math.max(this.colDef.minWidth,1):this.minWidth=t,null!=this.colDef.maxWidth?this.maxWidth=this.colDef.maxWidth:this.maxWidth=o,this.resetActualWidth("gridInitializing");var n=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=e(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!n,this.tooltipFieldContainsDots=e(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!n,this.validate()},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(o(this.colDef)||o(this.colDef.showRowGroup))return!1;var e=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===t;return e||n},t.prototype.getUniqueId=function(){return this.getId()},t.prototype.isPrimary=function(){return this.primary},t.prototype.isFilterAllowed=function(){var t=!!this.colDef.filter||!!this.colDef.filterFramework;return this.primary&&t},t.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},t.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},t.prototype.validate=function(){var t=this.colDef;function o(t,e,o){Y((function(){o?console.warn(t,o):Y((function(){return console.warn(t)}),e)}),e)}if(this.gridOptionsWrapper.isRowModelDefault()&&!mt.isRegistered(ft.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(n){e(t[n])&&(mt.isPackageBased()?o("AG Grid: "+n+" is only valid in ag-grid-enterprise, your column definition should not have "+n,"ColumnRowGroupingMissing"+n):o("AG Grid: "+n+" is only valid with AG Grid Enterprise Module "+ft.RowGroupingModule+" - your column definition should not have "+n,"ColumnRowGroupingMissing"+n))}))}if(mt.isRegistered(ft.RichSelectModule)||"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||(mt.isPackageBased()?o("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):o("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+ft.RichSelectModule,"ColumnRichSelectMissing")),mt.isRegistered(ft.DateTimeCellEditorModule)||"agRichSelect"!==this.colDef.cellEditor&&"agDateTimeCellEditor"!==this.colDef.cellEditor||(mt.isPackageBased()?o("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnDateTimeMissing"):o("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+ft.DateTimeCellEditorModule,"ColumnDateTimeMissing")),this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(n){e(t[n])&&o("AG Grid: "+n+" is not possible when doing tree data, your column definition should not have "+n,"TreeDataCannotRowGroup")}))}e(this.colDef.width)&&"number"!=typeof this.colDef.width&&o("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef")},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);return(0,this.colDef.suppressNavigable)(e)}return!1},t.prototype.isCellEditable=function(t){return!(t.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(t,this.colDef.editable)},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!0===this.colDef.resizable},t.prototype.isColumnFunc=function(t,e){return"boolean"==typeof e?e:"function"==typeof e&&e(this.createColumnFunctionCallbackParams(t))},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{api:this.gridApi,columnApi:this.columnApi,type:t,column:this,columns:[this],source:e}},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===Ct.SORT_ASC},t.prototype.isSortDescending=function(){return this.sort===Ct.SORT_DESC},t.prototype.isSortNone=function(){return o(this.sort)},t.prototype.isSorting=function(){return e(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,n){void 0===o&&(o="api"),this.filterActive!==e&&(this.filterActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_FILTER_ACTIVE_CHANGED,o)));var r=this.createColumnEvent(t.EVENT_FILTER_CHANGED,o);n&&x(r,n),this.eventService.dispatchEvent(r)},t.prototype.setPinned=function(t){!0===t||t===Ct.PINNED_LEFT?this.pinned=Ct.PINNED_LEFT:t===Ct.PINNED_RIGHT?this.pinned=Ct.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===Ct.PINNED_LEFT||this.pinned===Ct.PINNED_RIGHT},t.prototype.isPinnedLeft=function(){return this.pinned===Ct.PINNED_LEFT},t.prototype.isPinnedRight=function(){return this.pinned===Ct.PINNED_RIGHT},t.prototype.getPinned=function(){return this.pinned},t.prototype.setVisible=function(e,o){void 0===o&&(o="api");var n=!0===e;this.visible!==n&&(this.visible=n,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.getDefinition=function(){return this.colDef},t.prototype.getActualWidth=function(){return this.actualWidth},t.prototype.createBaseColDefParams=function(t){return{node:t,data:t.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},t.prototype.getColSpan=function(t){if(o(this.colDef.colSpan))return 1;var e=this.createBaseColDefParams(t),n=this.colDef.colSpan(e);return Math.max(n,1)},t.prototype.getRowSpan=function(t){if(o(this.colDef.rowSpan))return 1;var e=this.createBaseColDefParams(t),n=this.colDef.rowSpan(e);return Math.max(n,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"),e(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_MENU_VISIBLE_CHANGED="menuVisibleChanged",t.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_PIVOT_CHANGED="columnPivotChanged",t.EVENT_VALUE_CHANGED="columnValueChanged",wt([pt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),wt([pt("columnUtils")],t.prototype,"columnUtils",void 0),wt([pt("columnApi")],t.prototype,"columnApi",void 0),wt([pt("gridApi")],t.prototype,"gridApi",void 0),wt([pt("context")],t.prototype,"context",void 0),wt([st],t.prototype,"initialise",null),t}(),Rt=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},Ot=function(){function t(t,e,o,n){this.displayedChildren=[],this.localEventService=new vt,this.groupId=e,this.instanceId=o,this.originalColumnGroup=t,this.pinned=n}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.getOriginalColumnGroup().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=h(this.displayedChildren).getLeft();this.setLeft(e)}else{var o=this.displayedChildren[0].getLeft();this.setLeft(o)}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(n){e===n&&(o=!0),n instanceof t&&n.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.originalColumnGroup.getColGroupDef()},t.prototype.getColGroupDef=function(){return this.originalColumnGroup.getColGroupDef()},t.prototype.isPadding=function(){return this.originalColumnGroup.isPadding()},t.prototype.isExpandable=function(){return this.originalColumnGroup.isExpandable()},t.prototype.isExpanded=function(){return this.originalColumnGroup.isExpanded()},t.prototype.setExpanded=function(t){this.originalColumnGroup.setExpanded(t)},t.prototype.addDisplayedLeafColumns=function(e){this.displayedChildren.forEach((function(o){o instanceof Et?e.push(o):o instanceof t&&o.addDisplayedLeafColumns(e)}))},t.prototype.addLeafColumns=function(e){this.children.forEach((function(o){o instanceof Et?e.push(o):o instanceof t&&o.addLeafColumns(e)}))},t.prototype.getChildren=function(){return this.children},t.prototype.getColumnGroupShow=function(){return this.originalColumnGroup.getColumnGroupShow()},t.prototype.getOriginalColumnGroup=function(){return this.originalColumnGroup},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=[];for(var o=this;null!=o&&o.isPadding();)o=o.getParent();if(!(!!o&&o.originalColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(n){if(!(n instanceof t&&(!n.displayedChildren||!n.displayedChildren.length)))switch(n.getColumnGroupShow()){case t.HEADER_GROUP_SHOW_OPEN:o.originalColumnGroup.isExpanded()&&e.displayedChildren.push(n);break;case t.HEADER_GROUP_SHOW_CLOSED:o.originalColumnGroup.isExpanded()||e.displayedChildren.push(n);break;default:e.displayedChildren.push(n)}})),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",Rt([pt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(),St=function(){function t(t,e,o,n){this.localEventService=new vt,this.expandable=!1,this.colGroupDef=t,this.groupId=e,this.expanded=!!t&&!!t.openByDefault,this.padding=o,this.level=n}return 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 Et?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(Et.EVENT_VISIBLE_CHANGED,t.onColumnVisibilityChanged.bind(t))}))},t.prototype.setExpandable=function(){if(!this.isPadding()){for(var e=!1,o=!1,n=!1,r=this.findChildrenRemovingPadding(),i=0,s=r.length;i<s;i++){var a=r[i];if(a.isVisible()){var l=a.getColumnGroupShow();l===Ot.HEADER_GROUP_SHOW_OPEN?(e=!0,n=!0):l===Ot.HEADER_GROUP_SHOW_CLOSED?(o=!0,n=!0):(e=!0,o=!0)}}var p=e&&o&&n;if(this.expandable!==p){this.expandable=p;var u={type:t.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(u)}}},t.prototype.findChildrenRemovingPadding=function(){var e=[],o=function(n){n.forEach((function(n){n instanceof t&&n.isPadding()?o(n.children):e.push(n)}))};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}(),Pt={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},_t=["touchstart","touchend","touchmove","touchcancel"],bt={}; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.2.0 * @link http://www.ag-grid.com/ * @license MIT */function Tt(t){t.__ag_Grid_Stop_Propagation=!0}function At(t){return!0===t.__ag_Grid_Stop_Propagation}var Dt,Nt=(Dt={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){if("boolean"==typeof bt[t])return bt[t];var e=document.createElement(Dt[t]||"div"),o=(t="on"+t)in e;return o||(e.setAttribute(t,"return;"),o="function"==typeof e[t]),bt[t]=o});function Ft(t,e,o){for(var n=It(e);n;){var r=t.getDomData(n,o);if(r)return r;n=n.parentElement}return null}function It(t){var e=t;return e.target||e.srcElement}function Lt(t,e){return!(!e||!t)&&Mt(e).indexOf(t)>=0}function Gt(t){for(var e=[],o=It(t);o;)e.push(o),o=o.parentElement;return e}function Mt(t){var e=t;return e.deepPath?e.deepPath():e.path?e.path:e.composedPath?e.composedPath():e.__agGridEventPath?e.__agGridEventPath:Gt(t)}function xt(t,e,o,n){var r=w(_t,o)?{passive:!0}:void 0;t&&t.addEventListener&&t.addEventListener(e,o,n,r)}var Ht,Vt=Object.freeze({__proto__:null,stopPropagationForAgGrid:Tt,isStopPropagationForAgGrid:At,isEventSupported:Nt,getComponentForEvent:Ft,addChangeListener:function(t,e){t.addEventListener("changed",e),t.addEventListener("paste",e),t.addEventListener("input",e),t.addEventListener("keydown",e),t.addEventListener("keyup",e)},getTarget:It,isElementInEventPath:Lt,createEventPath:Gt,addAgGridEventPath:function(t){t.__agGridEventPath=Mt(t)},getEventPath:Mt,addSafePassiveEventListener:xt}),Wt=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},kt=function(){function t(){var t=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.getContext=function(){return t.context},this.isAlive=function(){return!t.destroyed}}return t.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},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 vt),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 n=this;if(!this.destroyed){t instanceof HTMLElement?xt(this.getFrameworkOverrides(),t,e,o):t.addEventListener(e,o);var r=function(){return t.removeEventListener(e,o),n.destroyFunctions=n.destroyFunctions.filter((function(t){return t!==r})),null};return this.destroyFunctions.push(r),r}},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&&P(t,(function(t){return o.destroyBean(t,e)})),[]},t.EVENT_DESTROYED="destroyed",Wt([pt("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),Wt([pt("context")],t.prototype,"context",void 0),Wt([pt("eventService")],t.prototype,"eventService",void 0),Wt([pt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Wt([at],t.prototype,"destroy",null),t}(),Bt=(Ht=function(t,e){return(Ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}Ht(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Ut=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},jt=function(t,e){return function(o,n){e(o,n,t)}},zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Bt(e,t),e.prototype.setBeans=function(t){this.logger=t.create("ColumnFactory")},e.prototype.createColumnTree=function(t,e,o){var n=new c,r=this.extractExistingTreeData(o),i=r.existingCols,s=r.existingGroups,a=r.existingColKeys;n.addExistingKeys(a);var l=this.recursivelyCreateColumns(t,0,e,i,n,s),p=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+p);var u=this.balanceColumnTree(l,0,p,n);return this.columnUtils.depthFirstOriginalTreeSearch(null,u,(function(t,e){t instanceof St&&t.setupExpandable(),t.setOriginalParent(e)})),{columnTree:u,treeDept:p}},e.prototype.extractExistingTreeData=function(t){var e=[],o=[],n=[];return t&&this.columnUtils.depthFirstOriginalT