diff --git a/src/silk.js b/src/silk.js index 4e1601f..9a06482 100644 --- a/src/silk.js +++ b/src/silk.js @@ -6,7 +6,7 @@ var Module = (() => { async function(moduleArg = {}) { var moduleRtn; -var f=moduleArg,aa,r,ba=new Promise((a,b)=>{aa=a;r=b}),ca="object"==typeof window,t="function"==typeof importScripts,u="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node;if(u){const {createRequire:a}=await import("module");var require=a(import.meta.url)}var da=Object.assign({},f),x="",ea,A; +var f=moduleArg,aa,r,ba=new Promise((a,b)=>{aa=a;r=b}),ca="object"==typeof window,t="function"==typeof importScripts,u=!ca&&"object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node;if(u){const {createRequire:a}=await import("module");var require=a(import.meta.url)}var da=Object.assign({},f),x="",ea,A; if(u){var fs=require("fs"),fa=require("path");x=require("url").fileURLToPath(new URL("./",import.meta.url));A=a=>{a=B(a)?new URL(a):fa.normalize(a);return fs.readFileSync(a)};ea=a=>{a=B(a)?new URL(a):fa.normalize(a);return new Promise((b,c)=>{fs.readFile(a,void 0,(d,e)=>{d?c(d):b(e.buffer)})})};process.argv.slice(2)}else if(ca||t)t?x=self.location.href:"undefined"!=typeof document&&document.currentScript&&(x=document.currentScript.src),_scriptName&&(x=_scriptName),x.startsWith("blob:")? x="":x=x.substr(0,x.replace(/[?#].*/,"").lastIndexOf("/")+1),t&&(A=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)}),ea=a=>B(a)?new Promise((b,c)=>{var d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=()=>{(200==d.status||0==d.status&&d.response)&&c(d.response);b(d.status)};d.onerror=b;d.send(null)}):fetch(a,{credentials:"same-origin"}).then(b=>b.ok?b.arrayBuffer():Promise.reject(Error(b.status+ " : "+b.url)));f.print||console.log.bind(console);var C=f.printErr||console.error.bind(console);Object.assign(f,da);da=null;var D;f.wasmBinary&&(D=f.wasmBinary);var F,ha=!1,ia,G,H,I,K,L,ja,ka;function la(){var a=F.buffer;f.HEAP8=ia=new Int8Array(a);f.HEAP16=H=new Int16Array(a);f.HEAPU8=G=new Uint8Array(a);f.HEAPU16=I=new Uint16Array(a);f.HEAP32=K=new Int32Array(a);f.HEAPU32=L=new Uint32Array(a);f.HEAPF32=ja=new Float32Array(a);f.HEAPF64=ka=new Float64Array(a)}var ma=[],na=[],pa=[];