Socket
Socket
Sign inDemoInstall

@ag-grid-community/csv-export

Package Overview
Dependencies
1
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 31.1.0 to 31.1.1

2

dist/cjs/es5/version.d.ts

@@ -1,1 +0,1 @@

export declare const VERSION = "31.1.0";
export declare const VERSION = "31.1.1";

@@ -5,2 +5,2 @@ "use strict";

// DO NOT UPDATE MANUALLY: Generated from script during build time
exports.VERSION = '31.1.0';
exports.VERSION = '31.1.1';

@@ -1,1 +0,1 @@

export declare const VERSION = "31.1.0";
export declare const VERSION = "31.1.1";

@@ -5,2 +5,2 @@ "use strict";

// DO NOT UPDATE MANUALLY: Generated from script during build time
exports.VERSION = '31.1.0';
exports.VERSION = '31.1.1';
/**
* @ag-grid-community/csv-export - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v31.1.0
* @ag-grid-community/csv-export - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v31.1.1
* @link https://www.ag-grid.com/

@@ -7,6 +7,6 @@ * @license MIT

/**
* @ag-grid-community/csv-export - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v31.1.0
* @ag-grid-community/csv-export - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v31.1.1
* @link https://www.ag-grid.com/
* @license MIT
*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t,r=require("@ag-grid-community/core"),o=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.getFileName=function(e){var t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(".")?"".concat(e,".").concat(t):e},e.prototype.getData=function(e){var t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)},e.prototype.getDefaultFileName=function(){return"export.".concat(this.getDefaultFileExtension())},e}(),n=function(){function e(e){this.groupColumns=[];var t=e.columnModel,r=e.valueService,o=e.gridOptionsService,n=e.valueFormatterService,i=e.valueParserService,a=e.processCellCallback,u=e.processHeaderCallback,l=e.processGroupHeaderCallback,s=e.processRowGroupCallback;this.columnModel=t,this.valueService=r,this.gridOptionsService=o,this.valueFormatterService=n,this.valueParserService=i,this.processCellCallback=a,this.processHeaderCallback=u,this.processGroupHeaderCallback=l,this.processRowGroupCallback=s}return e.prototype.prepare=function(e){this.groupColumns=e.filter((function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,r,o,n){var i=this.gridOptionsService.get("groupHideOpenParents")&&!n.footer||!this.shouldRenderGroupSummaryCell(n,e,t)?this.valueService.getValue(e,n):this.createValueForGroupNode(e,n);return this.processCell({accumulatedRowIndex:r,rowNode:n,column:e,value:i,processCellCallback:this.processCellCallback,type:o})},e.prototype.shouldRenderGroupSummaryCell=function(e,t,r){var o;if(!(e&&e.group))return!1;if(-1!==this.groupColumns.indexOf(t)){if(null!=(null===(o=e.groupData)||void 0===o?void 0:o[t.getId()]))return!0;if(this.gridOptionsService.isRowModelType("serverSide")&&e.group)return!0;if(e.footer&&-1===e.level){var n=t.getColDef();return null==n||!0===n.showRowGroup||n.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var i=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===r&&i},e.prototype.getHeaderName=function(e,t){return e?e(this.gridOptionsService.addGridCommonParams({column:t})):this.columnModel.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e,t){var r=this;if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gridOptionsService.addGridCommonParams({column:e,node:t}));var o=this.gridOptionsService.get("treeData"),n=this.gridOptionsService.get("suppressGroupMaintainValueType"),i=function(t){var i,a;if(o||n)return t.key;var u=null===(i=t.groupData)||void 0===i?void 0:i[e.getId()];return u&&t.rowGroupColumn&&!1!==t.rowGroupColumn.getColDef().useValueFormatterForExport&&null!==(a=r.valueFormatterService.formatValue(t.rowGroupColumn,t,u))&&void 0!==a?a:u},a=t.footer,u=[i(t)];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;t.parent;)t=t.parent,u.push(i(t));var l=u.reverse().join(" -> ");return a?"Total ".concat(l):l},e.prototype.processCell=function(e){var t,r=this,o=e.accumulatedRowIndex,n=e.rowNode,i=e.column,a=e.value,u=e.processCellCallback,l=e.type;return u?{value:null!==(t=u(this.gridOptionsService.addGridCommonParams({accumulatedRowIndex:o,column:i,node:n,value:a,type:l,parseValue:function(e){return r.valueParserService.parseValue(i,n,e,r.valueService.getValue(i,n))},formatValue:function(e){var t;return null!==(t=r.valueFormatterService.formatValue(i,n,e))&&void 0!==t?t:e}})))&&void 0!==t?t:""}:!1!==i.getColDef().useValueFormatterForExport?{value:null!=a?a:"",valueFormatted:this.valueFormatterService.formatValue(i,n,a)}:{value:null!=a?a:""}},e}(),i=function(){function e(){}return e.download=function(e,t){var r=document.defaultView||window;if(r){var o=document.createElement("a"),n=r.URL.createObjectURL(t);o.setAttribute("href",n),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:r})),document.body.removeChild(o),r.setTimeout((function(){r.URL.revokeObjectURL(n)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),a=(e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}),u=function(e){function t(t){var r=e.call(this,t)||this;r.isFirstLine=!0,r.result="";var o=t.suppressQuotes,n=t.columnSeparator;return r.suppressQuotes=o,r.columnSeparator=n,r}return a(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,r){0!==r&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,r,o){0!=r&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(o)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,r){var o;0!=t&&(this.result+=this.columnSeparator);var n=this.extractRowCellValue(e,t,t,"csv",r);this.result+=this.putInQuotes(null!==(o=n.valueFormatted)&&void 0!==o?o:n.value)},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(n),l=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),s=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var u=e.length-1;u>=0;u--)(n=e[u])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},t,e)},t.prototype.export=function(e){if(this.isExportSuppressed())console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration.");else{var t=this.getMergedParams(e),r=this.getData(t),o=new Blob(["\ufeff",r],{type:"text/plain"}),n="function"==typeof t.fileName?t.fileName(this.gridOptionsService.getGridCommonParams()):t.fileName;i.download(this.getFileName(n),o)}},t.prototype.exportDataAsCsv=function(e){this.export(e)},t.prototype.getDataAsCsv=function(e,t){void 0===t&&(t=!1);var r=t?Object.assign({},e):this.getMergedParams(e);return this.getData(r)},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,r=t.columnModel,o=t.valueService,n=t.gridOptionsService,i=t.valueFormatterService,a=t.valueParserService,l=e,s=l.processCellCallback,c=l.processHeaderCallback,p=l.processGroupHeaderCallback,d=l.processRowGroupCallback,f=l.suppressQuotes,h=l.columnSeparator;return new u({columnModel:r,valueService:o,gridOptionsService:n,valueFormatterService:i,valueParserService:a,processCellCallback:s||void 0,processHeaderCallback:c||void 0,processGroupHeaderCallback:p||void 0,processRowGroupCallback:d||void 0,suppressQuotes:f||!1,columnSeparator:h||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsService.get("suppressCsvExport")},s([r.Autowired("columnModel")],t.prototype,"columnModel",void 0),s([r.Autowired("valueService")],t.prototype,"valueService",void 0),s([r.Autowired("gridSerializer")],t.prototype,"gridSerializer",void 0),s([r.Autowired("gridOptionsService")],t.prototype,"gridOptionsService",void 0),s([r.Autowired("valueFormatterService")],t.prototype,"valueFormatterService",void 0),s([r.Autowired("valueParserService")],t.prototype,"valueParserService",void 0),s([r.PostConstruct],t.prototype,"postConstruct",null),t=s([r.Bean("csvCreator")],t)}(o),p=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),d=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var u=e.length-1;u>=0;u--)(n=e[u])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};exports.RowType=void 0,(t=exports.RowType||(exports.RowType={}))[t.HEADER_GROUPING=0]="HEADER_GROUPING",t[t.HEADER=1]="HEADER",t[t.BODY=2]="BODY";var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var o=t.allColumns,n=t.columnKeys,i=t.skipRowGroups,a=this.getColumnsToExport(o,i,n);return r._.compose(this.prepareSession(a),this.prependContent(t),this.exportColumnGroups(t,a),this.exportHeaders(t,a),this.processPinnedTopRows(t,a),this.processRows(t,a),this.processPinnedBottomRows(t,a),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,r,o){var n=t.shouldRowBeSkipped||function(){return!1},i=this.gridOptionsService.get("groupRemoveSingleChildren"),a=this.gridOptionsService.get("groupRemoveLowestSingleChildren"),u=null!=t.rowPositions||!!t.onlySelected,l=this.gridOptionsService.get("groupHideOpenParents")&&!u,s=this.columnModel.isPivotMode()?o.leafGroup:!o.group,c=!!o.footer;t.skipRowGroups;var p=a&&o.leafGroup,d=1===o.allChildrenCount&&(i||p);if(!(!s&&!c&&(t.skipRowGroups||d||l)||t.onlySelected&&!o.isSelected()||t.skipPinnedTop&&"top"===o.rowPinned||t.skipPinnedBottom&&"bottom"===o.rowPinned)&&((!(-1===o.level)||s||c)&&!n(this.gridOptionsService.addGridCommonParams({node:o})))){var f=e.onNewBodyRow(o);if(r.forEach((function(e,t){f.onColumn(e,t,o)})),t.getCustomContentBelowRow){var h=t.getCustomContentBelowRow(this.gridOptionsService.addGridCommonParams({node:o}));h&&e.addCustomContent(h)}}},t.prototype.appendContent=function(e){return function(t){var r=e.appendContent;return r&&t.addCustomContent(r),t}},t.prototype.prependContent=function(e){return function(t){var r=e.prependContent;return r&&t.addCustomContent(r),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var o=this;return function(n){if(!e.skipColumnGroupHeaders){var i=new r.GroupInstanceIdCreator,a=o.displayedGroupCreator.createDisplayedGroups(t,i,null);o.recursivelyAddHeaderGroups(a,n,e.processGroupHeaderCallback)}return n}},t.prototype.exportHeaders=function(e,t){return function(r){if(!e.skipColumnHeaders){var o=r.onNewHeaderRow();t.forEach((function(e,t){o.onColumn(e,t,void 0)}))}return r}},t.prototype.processPinnedTopRows=function(e,t){var r=this;return function(o){var n=r.processRow.bind(r,o,e,t);return e.rowPositions?e.rowPositions.filter((function(e){return"top"===e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return r.pinnedRowModel.getPinnedTopRow(e.rowIndex)})).forEach(n):r.pinnedRowModel.forEachPinnedTopRow(n),o}},t.prototype.processRows=function(e,t){var r=this;return function(o){var n=r.rowModel,i=n.getType(),a="clientSide"===i,u="serverSide"===i,l=!a&&e.onlySelected,s=r.processRow.bind(r,o,e,t),c=e.exportedRows,p=void 0===c?"filteredAndSorted":c;if(e.rowPositions)e.rowPositions.filter((function(e){return null==e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return n.getRow(e.rowIndex)})).forEach(s);else if(r.columnModel.isPivotMode())a?n.forEachPivotNode(s,!0):u?n.forEachNodeAfterFilterAndSort(s,!0):n.forEachNode(s);else if(e.onlySelectedAllPages||l){var d=r.selectionService.getSelectedNodes();r.replicateSortedOrder(d),d.forEach(s)}else"all"===p?n.forEachNode(s):a||u?n.forEachNodeAfterFilterAndSort(s,!0):n.forEachNode(s);return o}},t.prototype.replicateSortedOrder=function(e){var t=this,r=this.sortController.getSortOptions(),o=function(e,n){var i,a,u,l;return null!=e.rowIndex&&null!=n.rowIndex?e.rowIndex-n.rowIndex:e.level===n.level?(null===(i=e.parent)||void 0===i?void 0:i.id)===(null===(a=n.parent)||void 0===a?void 0:a.id)?t.rowNodeSorter.compareRowNodes(r,{rowNode:e,currentPos:null!==(u=e.rowIndex)&&void 0!==u?u:-1},{rowNode:n,currentPos:null!==(l=n.rowIndex)&&void 0!==l?l:-1}):o(e.parent,n.parent):e.level>n.level?o(e.parent,n):o(e,n.parent)};e.sort(o)},t.prototype.processPinnedBottomRows=function(e,t){var r=this;return function(o){var n=r.processRow.bind(r,o,e,t);return e.rowPositions?e.rowPositions.filter((function(e){return"bottom"===e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return r.pinnedRowModel.getPinnedBottomRow(e.rowIndex)})).forEach(n):r.pinnedRowModel.forEachPinnedBottomRow(n),o}},t.prototype.getColumnsToExport=function(e,t,o){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=this.columnModel.isPivotMode();if(o&&o.length)return this.columnModel.getGridColumns(o);var i=this.gridOptionsService.get("treeData"),a=[];return a=e&&!n?this.columnModel.getAllGridColumns():this.columnModel.getAllDisplayedColumns(),t&&!i&&(a=a.filter((function(e){return e.getColId()!==r.GROUP_AUTO_COLUMN_ID}))),a},t.prototype.recursivelyAddHeaderGroups=function(e,t,o){var n=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return n.push(e)}))})),e.length>0&&e[0]instanceof r.ColumnGroup&&this.doAddHeaderHeader(t,e,o),n&&n.length>0&&this.recursivelyAddHeaderGroups(n,t,o)},t.prototype.doAddHeaderHeader=function(e,t,o){var n=this,i=e.onNewHeaderGroupingRow(),a=0;t.forEach((function(e){var t,u=e;t=o?o(n.gridOptionsService.addGridCommonParams({columnGroup:u})):n.columnModel.getDisplayNameForColumnGroup(u,"header");var l=u.getLeafColumns().reduce((function(e,t,o,n){var i=r._.last(e);return"open"===t.getColumnGroupShow()?i&&null==i[1]||(i=[o],e.push(i)):i&&null==i[1]&&(i[1]=o-1),o===n.length-1&&i&&null==i[1]&&(i[1]=o),e}),[]);i.onColumn(u,t||"",a++,u.getLeafColumns().length-1,l)}))},d([r.Autowired("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),d([r.Autowired("columnModel")],t.prototype,"columnModel",void 0),d([r.Autowired("rowModel")],t.prototype,"rowModel",void 0),d([r.Autowired("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),d([r.Autowired("selectionService")],t.prototype,"selectionService",void 0),d([r.Autowired("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),d([r.Autowired("sortController")],t.prototype,"sortController",void 0),t=d([r.Bean("gridSerializer")],t)}(r.BeanStub),h={version:"31.1.0",moduleName:r.ModuleNames.CsvExportModule,beans:[c,f]},v=function(){function e(){}return e.createHeader=function(e){void 0===e&&(e={});var t=["version"];e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone");var r=t.map((function(t){return"".concat(t,'="').concat(e[t],'"')})).join(" ");return"".concat("<?","xml ").concat(r," ").concat("?>")},e.createXml=function(e,t){var r=this,o="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(n){o+=r.returnAttributeIfPopulated(e.prefix+n,e.map[n],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(n){o+=r.returnAttributeIfPopulated(n,e.properties.rawMap[n],t)})));var n="<"+e.name+o;return e.children||null!=e.textNode?null!=e.textNode?n+">"+e.textNode+"</"+e.name+">\r\n":(n+=">\r\n",e.children&&e.children.forEach((function(e){n+=r.createXml(e,t)})),n+"</"+e.name+">\r\n"):n+"/>\r\n"},e.returnAttributeIfPopulated=function(e,t,r){if(!t&&""!==t&&0!==t)return"";var o=t;return"boolean"==typeof t&&r&&(o=r(t))," ".concat(e,'="').concat(o,'"')},e}();function y(e,t){for(var r="",o=0;o<t;o++)r+=String.fromCharCode(255&e),e>>>=8;return r}var w=function(e){if(!e.length)return 0;for(var t=-1,r=0,o=0;o<e.length;o++)r=e[o],t=t>>>8^m[255&(t^r)];return-1^t},g=function(e){return e.length?w("string"==typeof e?(new TextEncoder).encode(e):e):0},m=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]),b=function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function u(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}l((o=o.apply(e,t||[])).next())}))},C=function(e,t){var r,o,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},S=function(e){return b(void 0,void 0,void 0,(function(){var t,r,o,n,i,a;return C(this,(function(u){switch(u.label){case 0:return t=new Blob([e]),[4,(l=t,b(void 0,void 0,void 0,(function(){var e,t,r,o,n;return C(this,(function(i){switch(i.label){case 0:return e=0,t=[],r=new WritableStream({write:function(r){t.push(r),e+=r.length}}),o=new ReadableStream({start:function(e){var t=new FileReader;t.onload=function(t){var r;(null===(r=t.target)||void 0===r?void 0:r.result)&&e.enqueue(t.target.result),e.close()},t.readAsArrayBuffer(l)}}),n=new window.CompressionStream("deflate-raw"),[4,o.pipeThrough(n).pipeTo(r)];case 1:return i.sent(),[2,{size:e,content:new Blob(t)}]}}))})))];case 1:return r=u.sent(),o=r.size,n=r.content,a=Uint8Array.bind,[4,n.arrayBuffer()];case 2:return i=new(a.apply(Uint8Array,[void 0,u.sent()])),[2,{size:o,content:i}]}var l}))}))},x=function(){return(x=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},R=function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function u(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}l((o=o.apply(e,t||[])).next())}))},P=function(e,t){var r,o,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},G=r._.utf8_encode,O=function(e,t){return R(void 0,void 0,void 0,(function(){var r,o,n,i,a,u,l,s,c;return P(this,(function(p){switch(p.label){case 0:return r=e.content,o=r?N(r):{size:0,content:Uint8Array.from([])},n=o.size,i=o.content,a=void 0,u=void 0,l=!1,"file"===e.type&&i&&n>0?[4,S(i)]:[3,2];case 1:s=p.sent(),a=s.content,u=s.size,l=!0,p.label=2;case 2:return c=E(e,l,t,n,i,u),[2,x(x({},c),{content:a||i,isCompressed:l})]}}))}))},A=function(e,t){var r=e.content,o=(r?N(r):{content:Uint8Array.from([])}).content,n=E(e,!1,t,o.length,o,void 0);return x(x({},n),{content:o,isCompressed:!1})},E=function(e,t,r,o,n,i){var a=e.content,u=e.path,l=e.created,s=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2}(l),c=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()}(l),p=g(n),d=void 0!==i?i:o,f=G(u),h=f!==u,v="";if(h){var w=y(1,1)+y(g(f),4)+f;v="up"+y(w.length,2)+w}var m="\x14\0"+(h?"\0\b":"\0\0")+y(t?8:0,2)+y(s,2)+y(c,2)+y(d?p:0,4)+y(null!=i?i:o,4)+y(o,4)+y(f.length,2)+y(v.length,2),b="PK\x03\x04"+m+f+v,C="PK\x01\x02\x14\0"+m+"\0\0\0\0\0\0"+(a?"\0\0\0\0":"\x10\0\0\0")+y(r,4)+f+v;return{localFileHeader:Uint8Array.from(b,(function(e){return e.charCodeAt(0)})),centralDirectoryHeader:Uint8Array.from(C,(function(e){return e.charCodeAt(0)}))}},N=function(e){var t;"string"==typeof e?t=function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(atob(e.split(";base64,")[1])):t=e;return{size:t.length,content:t}},k=function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function u(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}l((o=o.apply(e,t||[])).next())}))},F=function(e,t){var r,o,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},M=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},H=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},D=function(e,t,r){if(r||2===arguments.length)for(var o,n=0,i=t.length;n<i;n++)!o&&n in t||(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},I=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1,type:"folder"})},e.addFile=function(e,t,r){void 0===r&&(r=!1),this.files.push({path:e,created:new Date,content:r?t:(new TextEncoder).encode(t),isBase64:r,type:"file"})},e.getZipFile=function(e){return void 0===e&&(e="application/zip"),k(this,void 0,void 0,(function(){var t;return F(this,(function(r){switch(r.label){case 0:return[4,this.buildCompressedFileStream()];case 1:return t=r.sent(),this.clearStream(),[2,new Blob([t],{type:e})]}}))}))},e.getUncompressedZipFile=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream();return this.clearStream(),new Blob([t],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.packageFiles=function(e){var t,r,o=new Uint8Array(0),n=new Uint8Array(0),i=0,a=0;try{for(var u=M(e),l=u.next();!l.done;l=u.next()){var s=l.value,c=s.localFileHeader,p=s.centralDirectoryHeader,d=s.content,f=new Uint8Array(o.length+c.length);f.set(o),f.set(c,o.length),o=f;var h=new Uint8Array(o.length+d.length);h.set(o),h.set(d,o.length),o=h;var v=new Uint8Array(n.length+p.length);v.set(n),v.set(p,n.length),n=v,i+=c.length+d.length,a+=p.length}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}var w,g,m,b,C=(w=e.length,g=a,m=i,b="PK\x05\x06\0\0\0\0"+y(w,2)+y(w,2)+y(g,4)+y(m,4)+"\0\0",Uint8Array.from(b,(function(e){return e.charCodeAt(0)}))),S=new Uint8Array(o.length+n.length+C.length);return S.set(o),S.set(n,o.length),S.set(C,o.length+n.length),S},e.buildCompressedFileStream=function(){return k(this,void 0,void 0,(function(){var e,t,r,o,n,i,a,u,l,s,c,p;return F(this,(function(d){switch(d.label){case 0:e=D(D([],H(this.folders),!1),H(this.files),!1),t=[],r=0,d.label=1;case 1:d.trys.push([1,6,7,8]),o=M(e),n=o.next(),d.label=2;case 2:return n.done?[3,5]:(i=n.value,[4,O(i,r)]);case 3:a=d.sent(),u=a.localFileHeader,l=a.content,t.push(a),r+=u.length+l.length,d.label=4;case 4:return n=o.next(),[3,2];case 5:return[3,8];case 6:return s=d.sent(),c={error:s},[3,8];case 7:try{n&&!n.done&&(p=o.return)&&p.call(o)}finally{if(c)throw c.error}return[7];case 8:return[2,this.packageFiles(t)]}}))}))},e.buildFileStream=function(){var e,t,r=D(D([],H(this.folders),!1),H(this.files),!1),o=[],n=0;try{for(var i=M(r),a=i.next();!a.done;a=i.next()){var u=a.value,l=A(u,n),s=l.localFileHeader,c=l.content;o.push(l),n+=s.length+c.length}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return this.packageFiles(o)},e.folders=[],e.files=[],e}();exports.BaseCreator=o,exports.BaseGridSerializingSession=n,exports.CsvCreator=c,exports.CsvExportModule=h,exports.Downloader=i,exports.GridSerializer=f,exports.XmlFactory=v,exports.ZipContainer=I;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t,r=require("@ag-grid-community/core"),o=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.getFileName=function(e){var t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(".")?"".concat(e,".").concat(t):e},e.prototype.getData=function(e){var t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)},e.prototype.getDefaultFileName=function(){return"export.".concat(this.getDefaultFileExtension())},e}(),n=function(){function e(e){this.groupColumns=[];var t=e.columnModel,r=e.valueService,o=e.gridOptionsService,n=e.valueFormatterService,i=e.valueParserService,a=e.processCellCallback,u=e.processHeaderCallback,l=e.processGroupHeaderCallback,s=e.processRowGroupCallback;this.columnModel=t,this.valueService=r,this.gridOptionsService=o,this.valueFormatterService=n,this.valueParserService=i,this.processCellCallback=a,this.processHeaderCallback=u,this.processGroupHeaderCallback=l,this.processRowGroupCallback=s}return e.prototype.prepare=function(e){this.groupColumns=e.filter((function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,r,o,n){var i=this.gridOptionsService.get("groupHideOpenParents")&&!n.footer||!this.shouldRenderGroupSummaryCell(n,e,t)?this.valueService.getValue(e,n):this.createValueForGroupNode(e,n);return this.processCell({accumulatedRowIndex:r,rowNode:n,column:e,value:i,processCellCallback:this.processCellCallback,type:o})},e.prototype.shouldRenderGroupSummaryCell=function(e,t,r){var o;if(!(e&&e.group))return!1;if(-1!==this.groupColumns.indexOf(t)){if(null!=(null===(o=e.groupData)||void 0===o?void 0:o[t.getId()]))return!0;if(this.gridOptionsService.isRowModelType("serverSide")&&e.group)return!0;if(e.footer&&-1===e.level){var n=t.getColDef();return null==n||!0===n.showRowGroup||n.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var i=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===r&&i},e.prototype.getHeaderName=function(e,t){return e?e(this.gridOptionsService.addGridCommonParams({column:t})):this.columnModel.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e,t){var r=this;if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gridOptionsService.addGridCommonParams({column:e,node:t}));var o=this.gridOptionsService.get("treeData"),n=this.gridOptionsService.get("suppressGroupMaintainValueType"),i=function(t){var i,a;if(o||n)return t.key;var u=null===(i=t.groupData)||void 0===i?void 0:i[e.getId()];return u&&t.rowGroupColumn&&!1!==t.rowGroupColumn.getColDef().useValueFormatterForExport&&null!==(a=r.valueFormatterService.formatValue(t.rowGroupColumn,t,u))&&void 0!==a?a:u},a=t.footer,u=[i(t)];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;t.parent;)t=t.parent,u.push(i(t));var l=u.reverse().join(" -> ");return a?"Total ".concat(l):l},e.prototype.processCell=function(e){var t,r=this,o=e.accumulatedRowIndex,n=e.rowNode,i=e.column,a=e.value,u=e.processCellCallback,l=e.type;return u?{value:null!==(t=u(this.gridOptionsService.addGridCommonParams({accumulatedRowIndex:o,column:i,node:n,value:a,type:l,parseValue:function(e){return r.valueParserService.parseValue(i,n,e,r.valueService.getValue(i,n))},formatValue:function(e){var t;return null!==(t=r.valueFormatterService.formatValue(i,n,e))&&void 0!==t?t:e}})))&&void 0!==t?t:""}:!1!==i.getColDef().useValueFormatterForExport?{value:null!=a?a:"",valueFormatted:this.valueFormatterService.formatValue(i,n,a)}:{value:null!=a?a:""}},e}(),i=function(){function e(){}return e.download=function(e,t){var r=document.defaultView||window;if(r){var o=document.createElement("a"),n=r.URL.createObjectURL(t);o.setAttribute("href",n),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:r})),document.body.removeChild(o),r.setTimeout((function(){r.URL.revokeObjectURL(n)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),a=(e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}),u=function(e){function t(t){var r=e.call(this,t)||this;r.isFirstLine=!0,r.result="";var o=t.suppressQuotes,n=t.columnSeparator;return r.suppressQuotes=o,r.columnSeparator=n,r}return a(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,r){0!==r&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,r,o){0!=r&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(o)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,r){var o;0!=t&&(this.result+=this.columnSeparator);var n=this.extractRowCellValue(e,t,t,"csv",r);this.result+=this.putInQuotes(null!==(o=n.valueFormatted)&&void 0!==o?o:n.value)},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(n),l=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),s=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var u=e.length-1;u>=0;u--)(n=e[u])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},t,e)},t.prototype.export=function(e){if(this.isExportSuppressed())console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration.");else{var t=this.getMergedParams(e),r=this.getData(t),o=new Blob(["\ufeff",r],{type:"text/plain"}),n="function"==typeof t.fileName?t.fileName(this.gridOptionsService.getGridCommonParams()):t.fileName;i.download(this.getFileName(n),o)}},t.prototype.exportDataAsCsv=function(e){this.export(e)},t.prototype.getDataAsCsv=function(e,t){void 0===t&&(t=!1);var r=t?Object.assign({},e):this.getMergedParams(e);return this.getData(r)},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,r=t.columnModel,o=t.valueService,n=t.gridOptionsService,i=t.valueFormatterService,a=t.valueParserService,l=e,s=l.processCellCallback,c=l.processHeaderCallback,p=l.processGroupHeaderCallback,d=l.processRowGroupCallback,f=l.suppressQuotes,h=l.columnSeparator;return new u({columnModel:r,valueService:o,gridOptionsService:n,valueFormatterService:i,valueParserService:a,processCellCallback:s||void 0,processHeaderCallback:c||void 0,processGroupHeaderCallback:p||void 0,processRowGroupCallback:d||void 0,suppressQuotes:f||!1,columnSeparator:h||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsService.get("suppressCsvExport")},s([r.Autowired("columnModel")],t.prototype,"columnModel",void 0),s([r.Autowired("valueService")],t.prototype,"valueService",void 0),s([r.Autowired("gridSerializer")],t.prototype,"gridSerializer",void 0),s([r.Autowired("gridOptionsService")],t.prototype,"gridOptionsService",void 0),s([r.Autowired("valueFormatterService")],t.prototype,"valueFormatterService",void 0),s([r.Autowired("valueParserService")],t.prototype,"valueParserService",void 0),s([r.PostConstruct],t.prototype,"postConstruct",null),t=s([r.Bean("csvCreator")],t)}(o),p=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),d=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var u=e.length-1;u>=0;u--)(n=e[u])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};exports.RowType=void 0,(t=exports.RowType||(exports.RowType={}))[t.HEADER_GROUPING=0]="HEADER_GROUPING",t[t.HEADER=1]="HEADER",t[t.BODY=2]="BODY";var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var o=t.allColumns,n=t.columnKeys,i=t.skipRowGroups,a=this.getColumnsToExport(o,i,n);return r._.compose(this.prepareSession(a),this.prependContent(t),this.exportColumnGroups(t,a),this.exportHeaders(t,a),this.processPinnedTopRows(t,a),this.processRows(t,a),this.processPinnedBottomRows(t,a),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,r,o){var n=t.shouldRowBeSkipped||function(){return!1},i=this.gridOptionsService.get("groupRemoveSingleChildren"),a=this.gridOptionsService.get("groupRemoveLowestSingleChildren"),u=null!=t.rowPositions||!!t.onlySelected,l=this.gridOptionsService.get("groupHideOpenParents")&&!u,s=this.columnModel.isPivotMode()?o.leafGroup:!o.group,c=!!o.footer;t.skipRowGroups;var p=a&&o.leafGroup,d=1===o.allChildrenCount&&(i||p);if(!(!s&&!c&&(t.skipRowGroups||d||l)||t.onlySelected&&!o.isSelected()||t.skipPinnedTop&&"top"===o.rowPinned||t.skipPinnedBottom&&"bottom"===o.rowPinned)&&((!(-1===o.level)||s||c)&&!n(this.gridOptionsService.addGridCommonParams({node:o})))){var f=e.onNewBodyRow(o);if(r.forEach((function(e,t){f.onColumn(e,t,o)})),t.getCustomContentBelowRow){var h=t.getCustomContentBelowRow(this.gridOptionsService.addGridCommonParams({node:o}));h&&e.addCustomContent(h)}}},t.prototype.appendContent=function(e){return function(t){var r=e.appendContent;return r&&t.addCustomContent(r),t}},t.prototype.prependContent=function(e){return function(t){var r=e.prependContent;return r&&t.addCustomContent(r),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var o=this;return function(n){if(!e.skipColumnGroupHeaders){var i=new r.GroupInstanceIdCreator,a=o.displayedGroupCreator.createDisplayedGroups(t,i,null);o.recursivelyAddHeaderGroups(a,n,e.processGroupHeaderCallback)}return n}},t.prototype.exportHeaders=function(e,t){return function(r){if(!e.skipColumnHeaders){var o=r.onNewHeaderRow();t.forEach((function(e,t){o.onColumn(e,t,void 0)}))}return r}},t.prototype.processPinnedTopRows=function(e,t){var r=this;return function(o){var n=r.processRow.bind(r,o,e,t);return e.rowPositions?e.rowPositions.filter((function(e){return"top"===e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return r.pinnedRowModel.getPinnedTopRow(e.rowIndex)})).forEach(n):r.pinnedRowModel.forEachPinnedTopRow(n),o}},t.prototype.processRows=function(e,t){var r=this;return function(o){var n=r.rowModel,i=n.getType(),a="clientSide"===i,u="serverSide"===i,l=!a&&e.onlySelected,s=r.processRow.bind(r,o,e,t),c=e.exportedRows,p=void 0===c?"filteredAndSorted":c;if(e.rowPositions)e.rowPositions.filter((function(e){return null==e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return n.getRow(e.rowIndex)})).forEach(s);else if(r.columnModel.isPivotMode())a?n.forEachPivotNode(s,!0):u?n.forEachNodeAfterFilterAndSort(s,!0):n.forEachNode(s);else if(e.onlySelectedAllPages||l){var d=r.selectionService.getSelectedNodes();r.replicateSortedOrder(d),d.forEach(s)}else"all"===p?n.forEachNode(s):a||u?n.forEachNodeAfterFilterAndSort(s,!0):n.forEachNode(s);return o}},t.prototype.replicateSortedOrder=function(e){var t=this,r=this.sortController.getSortOptions(),o=function(e,n){var i,a,u,l;return null!=e.rowIndex&&null!=n.rowIndex?e.rowIndex-n.rowIndex:e.level===n.level?(null===(i=e.parent)||void 0===i?void 0:i.id)===(null===(a=n.parent)||void 0===a?void 0:a.id)?t.rowNodeSorter.compareRowNodes(r,{rowNode:e,currentPos:null!==(u=e.rowIndex)&&void 0!==u?u:-1},{rowNode:n,currentPos:null!==(l=n.rowIndex)&&void 0!==l?l:-1}):o(e.parent,n.parent):e.level>n.level?o(e.parent,n):o(e,n.parent)};e.sort(o)},t.prototype.processPinnedBottomRows=function(e,t){var r=this;return function(o){var n=r.processRow.bind(r,o,e,t);return e.rowPositions?e.rowPositions.filter((function(e){return"bottom"===e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return r.pinnedRowModel.getPinnedBottomRow(e.rowIndex)})).forEach(n):r.pinnedRowModel.forEachPinnedBottomRow(n),o}},t.prototype.getColumnsToExport=function(e,t,o){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=this.columnModel.isPivotMode();if(o&&o.length)return this.columnModel.getGridColumns(o);var i=this.gridOptionsService.get("treeData"),a=[];return a=e&&!n?this.columnModel.getAllGridColumns():this.columnModel.getAllDisplayedColumns(),t&&!i&&(a=a.filter((function(e){return e.getColId()!==r.GROUP_AUTO_COLUMN_ID}))),a},t.prototype.recursivelyAddHeaderGroups=function(e,t,o){var n=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return n.push(e)}))})),e.length>0&&e[0]instanceof r.ColumnGroup&&this.doAddHeaderHeader(t,e,o),n&&n.length>0&&this.recursivelyAddHeaderGroups(n,t,o)},t.prototype.doAddHeaderHeader=function(e,t,o){var n=this,i=e.onNewHeaderGroupingRow(),a=0;t.forEach((function(e){var t,u=e;t=o?o(n.gridOptionsService.addGridCommonParams({columnGroup:u})):n.columnModel.getDisplayNameForColumnGroup(u,"header");var l=u.getLeafColumns().reduce((function(e,t,o,n){var i=r._.last(e);return"open"===t.getColumnGroupShow()?i&&null==i[1]||(i=[o],e.push(i)):i&&null==i[1]&&(i[1]=o-1),o===n.length-1&&i&&null==i[1]&&(i[1]=o),e}),[]);i.onColumn(u,t||"",a++,u.getLeafColumns().length-1,l)}))},d([r.Autowired("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),d([r.Autowired("columnModel")],t.prototype,"columnModel",void 0),d([r.Autowired("rowModel")],t.prototype,"rowModel",void 0),d([r.Autowired("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),d([r.Autowired("selectionService")],t.prototype,"selectionService",void 0),d([r.Autowired("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),d([r.Autowired("sortController")],t.prototype,"sortController",void 0),t=d([r.Bean("gridSerializer")],t)}(r.BeanStub),h={version:"31.1.1",moduleName:r.ModuleNames.CsvExportModule,beans:[c,f]},v=function(){function e(){}return e.createHeader=function(e){void 0===e&&(e={});var t=["version"];e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone");var r=t.map((function(t){return"".concat(t,'="').concat(e[t],'"')})).join(" ");return"".concat("<?","xml ").concat(r," ").concat("?>")},e.createXml=function(e,t){var r=this,o="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(n){o+=r.returnAttributeIfPopulated(e.prefix+n,e.map[n],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(n){o+=r.returnAttributeIfPopulated(n,e.properties.rawMap[n],t)})));var n="<"+e.name+o;return e.children||null!=e.textNode?null!=e.textNode?n+">"+e.textNode+"</"+e.name+">\r\n":(n+=">\r\n",e.children&&e.children.forEach((function(e){n+=r.createXml(e,t)})),n+"</"+e.name+">\r\n"):n+"/>\r\n"},e.returnAttributeIfPopulated=function(e,t,r){if(!t&&""!==t&&0!==t)return"";var o=t;return"boolean"==typeof t&&r&&(o=r(t))," ".concat(e,'="').concat(o,'"')},e}();function y(e,t){for(var r="",o=0;o<t;o++)r+=String.fromCharCode(255&e),e>>>=8;return r}var w=function(e){if(!e.length)return 0;for(var t=-1,r=0,o=0;o<e.length;o++)r=e[o],t=t>>>8^m[255&(t^r)];return-1^t},g=function(e){return e.length?w("string"==typeof e?(new TextEncoder).encode(e):e):0},m=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]),b=function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function u(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}l((o=o.apply(e,t||[])).next())}))},C=function(e,t){var r,o,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},S=function(e){return b(void 0,void 0,void 0,(function(){var t,r,o,n,i,a;return C(this,(function(u){switch(u.label){case 0:return t=new Blob([e]),[4,(l=t,b(void 0,void 0,void 0,(function(){var e,t,r,o,n;return C(this,(function(i){switch(i.label){case 0:return e=0,t=[],r=new WritableStream({write:function(r){t.push(r),e+=r.length}}),o=new ReadableStream({start:function(e){var t=new FileReader;t.onload=function(t){var r;(null===(r=t.target)||void 0===r?void 0:r.result)&&e.enqueue(t.target.result),e.close()},t.readAsArrayBuffer(l)}}),n=new window.CompressionStream("deflate-raw"),[4,o.pipeThrough(n).pipeTo(r)];case 1:return i.sent(),[2,{size:e,content:new Blob(t)}]}}))})))];case 1:return r=u.sent(),o=r.size,n=r.content,a=Uint8Array.bind,[4,n.arrayBuffer()];case 2:return i=new(a.apply(Uint8Array,[void 0,u.sent()])),[2,{size:o,content:i}]}var l}))}))},x=function(){return(x=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},R=function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function u(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}l((o=o.apply(e,t||[])).next())}))},P=function(e,t){var r,o,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},G=r._.utf8_encode,O=function(e,t){return R(void 0,void 0,void 0,(function(){var r,o,n,i,a,u,l,s,c;return P(this,(function(p){switch(p.label){case 0:return r=e.content,o=r?N(r):{size:0,content:Uint8Array.from([])},n=o.size,i=o.content,a=void 0,u=void 0,l=!1,"file"===e.type&&i&&n>0?[4,S(i)]:[3,2];case 1:s=p.sent(),a=s.content,u=s.size,l=!0,p.label=2;case 2:return c=E(e,l,t,n,i,u),[2,x(x({},c),{content:a||i,isCompressed:l})]}}))}))},A=function(e,t){var r=e.content,o=(r?N(r):{content:Uint8Array.from([])}).content,n=E(e,!1,t,o.length,o,void 0);return x(x({},n),{content:o,isCompressed:!1})},E=function(e,t,r,o,n,i){var a=e.content,u=e.path,l=e.created,s=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2}(l),c=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()}(l),p=g(n),d=void 0!==i?i:o,f=G(u),h=f!==u,v="";if(h){var w=y(1,1)+y(g(f),4)+f;v="up"+y(w.length,2)+w}var m="\x14\0"+(h?"\0\b":"\0\0")+y(t?8:0,2)+y(s,2)+y(c,2)+y(d?p:0,4)+y(null!=i?i:o,4)+y(o,4)+y(f.length,2)+y(v.length,2),b="PK\x03\x04"+m+f+v,C="PK\x01\x02\x14\0"+m+"\0\0\0\0\0\0"+(a?"\0\0\0\0":"\x10\0\0\0")+y(r,4)+f+v;return{localFileHeader:Uint8Array.from(b,(function(e){return e.charCodeAt(0)})),centralDirectoryHeader:Uint8Array.from(C,(function(e){return e.charCodeAt(0)}))}},N=function(e){var t;"string"==typeof e?t=function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(atob(e.split(";base64,")[1])):t=e;return{size:t.length,content:t}},k=function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function u(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}l((o=o.apply(e,t||[])).next())}))},F=function(e,t){var r,o,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},M=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},H=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},D=function(e,t,r){if(r||2===arguments.length)for(var o,n=0,i=t.length;n<i;n++)!o&&n in t||(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},I=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1,type:"folder"})},e.addFile=function(e,t,r){void 0===r&&(r=!1),this.files.push({path:e,created:new Date,content:r?t:(new TextEncoder).encode(t),isBase64:r,type:"file"})},e.getZipFile=function(e){return void 0===e&&(e="application/zip"),k(this,void 0,void 0,(function(){var t;return F(this,(function(r){switch(r.label){case 0:return[4,this.buildCompressedFileStream()];case 1:return t=r.sent(),this.clearStream(),[2,new Blob([t],{type:e})]}}))}))},e.getUncompressedZipFile=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream();return this.clearStream(),new Blob([t],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.packageFiles=function(e){var t,r,o=new Uint8Array(0),n=new Uint8Array(0),i=0,a=0;try{for(var u=M(e),l=u.next();!l.done;l=u.next()){var s=l.value,c=s.localFileHeader,p=s.centralDirectoryHeader,d=s.content,f=new Uint8Array(o.length+c.length);f.set(o),f.set(c,o.length),o=f;var h=new Uint8Array(o.length+d.length);h.set(o),h.set(d,o.length),o=h;var v=new Uint8Array(n.length+p.length);v.set(n),v.set(p,n.length),n=v,i+=c.length+d.length,a+=p.length}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}var w,g,m,b,C=(w=e.length,g=a,m=i,b="PK\x05\x06\0\0\0\0"+y(w,2)+y(w,2)+y(g,4)+y(m,4)+"\0\0",Uint8Array.from(b,(function(e){return e.charCodeAt(0)}))),S=new Uint8Array(o.length+n.length+C.length);return S.set(o),S.set(n,o.length),S.set(C,o.length+n.length),S},e.buildCompressedFileStream=function(){return k(this,void 0,void 0,(function(){var e,t,r,o,n,i,a,u,l,s,c,p;return F(this,(function(d){switch(d.label){case 0:e=D(D([],H(this.folders),!1),H(this.files),!1),t=[],r=0,d.label=1;case 1:d.trys.push([1,6,7,8]),o=M(e),n=o.next(),d.label=2;case 2:return n.done?[3,5]:(i=n.value,[4,O(i,r)]);case 3:a=d.sent(),u=a.localFileHeader,l=a.content,t.push(a),r+=u.length+l.length,d.label=4;case 4:return n=o.next(),[3,2];case 5:return[3,8];case 6:return s=d.sent(),c={error:s},[3,8];case 7:try{n&&!n.done&&(p=o.return)&&p.call(o)}finally{if(c)throw c.error}return[7];case 8:return[2,this.packageFiles(t)]}}))}))},e.buildFileStream=function(){var e,t,r=D(D([],H(this.folders),!1),H(this.files),!1),o=[],n=0;try{for(var i=M(r),a=i.next();!a.done;a=i.next()){var u=a.value,l=A(u,n),s=l.localFileHeader,c=l.content;o.push(l),n+=s.length+c.length}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return this.packageFiles(o)},e.folders=[],e.files=[],e}();exports.BaseCreator=o,exports.BaseGridSerializingSession=n,exports.CsvCreator=c,exports.CsvExportModule=h,exports.Downloader=i,exports.GridSerializer=f,exports.XmlFactory=v,exports.ZipContainer=I;

@@ -1,1 +0,1 @@

export declare const VERSION = "31.1.0";
export declare const VERSION = "31.1.1";
// DO NOT UPDATE MANUALLY: Generated from script during build time
export var VERSION = '31.1.0';
export var VERSION = '31.1.1';

@@ -1,1 +0,1 @@

export declare const VERSION = "31.1.0";
export declare const VERSION = "31.1.1";
{
"name": "@ag-grid-community/csv-export",
"version": "31.1.0",
"version": "31.1.1",
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",

@@ -50,3 +50,3 @@ "main": "./dist/esm/es6/main.mjs",

"dependencies": {
"@ag-grid-community/core": "~31.1.0"
"@ag-grid-community/core": "31.1.1"
},

@@ -53,0 +53,0 @@ "devDependencies": {

@@ -1,1 +0,1 @@

export declare const VERSION = "31.1.0";
export declare const VERSION = "31.1.1";

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc