1import{c as f}from"./qpdf-engine--OFF57Gq.js";import"./worker-entrypoint-Cpi_3YOf.js";function g(t,r){const n=t==null?void 0:t[r];return typeof n=="string"?n:""}async function h(t,r){const{inputIds:n,fs:s,options:c,emitProgress:e}=t;if(n.length===0)throw new Error("Unlock PDF requires at least one input file");const i=g(c,"password"),u=await r(),a=[];for(let o=0;o<n.length;o+=1){const p=await(await s.read(n[o])).getBlob(),d=await u.decrypt(p,{password:i||void 0}),l=await s.write(d);a.push(l.id);const w=Math.round((o+1)/n.length*100);e==null||e(w)}return{outputIds:a}}const B=async t=>h(t,f);export{B as run,h as runUnlockPdf};
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.