1import{a as l,b as X,c as s}from"./chunk-WFVFIJ7Y.js";import{ia as S}from"./chunk-O5LBM3VT.js";var c=class a{exportExcel(t,e,n){var r=s.book_new(),o=s.json_to_sheet([t??{}]);return o["!cols"]=[],Object.entries(e).forEach(([i,u])=>{let h={width:u.toString().length};o["!cols"].push(h)}),s.sheet_add_json(o,e,{skipHeader:!1,origin:"A4"}),s.book_append_sheet(r,o,n),X(r,{bookType:"xlsx",type:"buffer"})}exportExcelMultiSheet(t){var e=s.book_new();return t.forEach((n,r)=>{var o=s.json_to_sheet(n);s.book_append_sheet(e,o,r)}),X(e,{bookType:"xlsx",type:"buffer"})}readExcel(t){return new Promise((e,n)=>{let r=new FileReader;r.onload=o=>{let i=o.target.result;e(l(i,{type:"buffer"}))},r.onerror=o=>{n(o)},r.readAsArrayBuffer(t)})}getHeader(t,e){let n=t.SheetNames[e],r=t.Sheets[n];return s.sheet_to_json(r,{header:1})[0]}getSheet(t,e,n={raw:!1,dateNF:"yyyy-mm-dd"}){let r=t.SheetNames[e],o=t.Sheets[r];return s.sheet_to_json(o,n)}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275prov=S({token:a,factory:a.\u0275fac})}};export{c as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.