{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/fast-extract/src/streams/transforms/DataProgress.mjs"],"sourcesContent":["import progressStream from 'progress-stream';\nimport statsSize from '../../sourceStats/size.mjs';\n\nexport default function DataProgressTransform(options) {\n  const stats = { basename: options.basename };\n  const progress = progressStream(\n    {\n      time: options.time,\n    },\n    (update) => {\n      options.progress({ progress: 'write', ...update, ...stats });\n    }\n  );\n\n  statsSize(options.source, options, (err, size) => {\n    err || progress.setLength(size || 0);\n  });\n  return progress;\n}\n"],"names":["DataProgressTransform","options","stats","basename","progress","progressStream","time","update","statsSize","source","err","size","setLength"],"mappings":";;;;+BAGA;;;eAAwBA;;;qEAHG;2DACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEP,SAASA,sBAAsBC,OAAO;IACnD,IAAMC,QAAQ;QAAEC,UAAUF,QAAQE,QAAQ;IAAC;IAC3C,IAAMC,WAAWC,IAAAA,uBAAc,EAC7B;QACEC,MAAML,QAAQK,IAAI;IACpB,GACA,SAACC;QACCN,QAAQG,QAAQ,CAAC;YAAEA,UAAU;WAAYG,QAAWL;IACtD;IAGFM,IAAAA,aAAS,EAACP,QAAQQ,MAAM,EAAER,SAAS,SAACS,KAAKC;QACvCD,OAAON,SAASQ,SAAS,CAACD,QAAQ;IACpC;IACA,OAAOP;AACT"}