import r from"@babel/runtime/helpers/asyncToGenerator";import e from"@babel/runtime/regenerator";import{parse as t}from"papaparse";import n from"read-excel-file";var a=function(){var n=r(e.mark((function r(n){var a,u;return e.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,fetch(n);case 2:return a=r.sent,r.next=5,a.text();case 5:return u=r.sent,r.abrupt("return",t(u,{header:!0,dynamicTyping:!0,skipEmptyLines:!0}).data);case 7:case"end":return r.stop()}}),r)})));return function(r){return n.apply(this,arguments)}}(),u=function(){var t=r(e.mark((function r(t){var n,a;return e.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,fetch(t);case 2:return n=r.sent,r.next=5,n.text();case 5:return a=r.sent,r.abrupt("return",a);case 7:case"end":return r.stop()}}),r)})));return function(r){return t.apply(this,arguments)}}(),c=function(){var t=r(e.mark((function r(t){var a,u,c;return e.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,fetch(t);case 2:return a=r.sent,r.next=5,a.arrayBuffer();case 5:return u=r.sent,r.next=8,n(u);case 8:return c=r.sent,r.abrupt("return",null==c?void 0:c.map((function(r){return null==r?void 0:r.map((function(r){return String(r||"")}))})));case 10:case"end":return r.stop()}}),r)})));return function(r){return t.apply(this,arguments)}}();export{a as getCsvData,u as getTextData,c as getXlsxData};
//# sourceMappingURL=utils.js.map
