import t from"./xxhash.wasm";async function e(){return function(t){const{exports:{mem:e,xxh32:n,xxh64:r,init32:i,update32:o,digest32:a,init64:s,update64:u,digest64:h}}=t;let c=new Uint8Array(e.buffer);function f(t,n){if(e.buffer.byteLength(c.set(a),o(i(0)))}}function b(t){return t>>>0}const y=2n**64n-1n;function d(t){return t&y}const w=new TextEncoder,x=0,p=0n;function l(t,e=x){return f(3*t.length,0),b(n(0,w.encodeInto(t,c).written,e))}function L(t,e=p){return f(3*t.length,0),d(r(0,w.encodeInto(t,c).written,e))}return{h32:l,h32ToString:(t,e=x)=>l(t,e).toString(16).padStart(8,"0"),h32Raw:(t,e=x)=>(f(t.byteLength,0),c.set(t),b(n(0,t.byteLength,e))),create32:(t=x)=>g(48,t,i,o,a,b),h64:L,h64ToString:(t,e=p)=>L(t,e).toString(16).padStart(16,"0"),h64Raw:(t,e=p)=>(f(t.byteLength,0),c.set(t),d(r(0,t.byteLength,e))),create64:(t=p)=>g(88,t,s,u,h,d)}}(await WebAssembly.instantiate(t))}export{e as default}; //# sourceMappingURL=xxhash-wasm.js.map