var e=async e=>{let t=await e.arrayBuffer(),n=new Uint8Array(t),r=Math.min(n.length,6e6),i=``;for(let e=0;e<r;e+=65536){let t=n.subarray(e,Math.min(r,e+65536));if(i+=new TextDecoder(`latin1`).decode(t),i.length>8e6)break}let a=i.match(/\/Type\s*\/Page\b/g),o=Array.isArray(a)?a.length:0;if(o>0)return o;let s=i.match(/\/Count\s+(\d+)/g);if(s&&s.length){let e=0;for(let t of s){let n=Number(String(t).replace(/[^\d]+/g,``));Number.isFinite(n)&&n>e&&(e=n)}if(e>0)return e}return 1};export{e as t};