1var wt=Object.defineProperty;var yt=(C,O,d)=>O in C?wt(C,O,{enumerable:!0,configurable:!0,writable:!0,value:d}):C[O]=d;var P=(C,O,d)=>yt(C,typeof O!="symbol"?O+"":O,d);async function kt(C={}){var O;(function(){var c;function e(f){f=f.split("-")[0];for(var _=f.split(".").slice(0,3);_.length<3;)_.push("00");return _=_.map((h,v,m)=>h.padStart(2,"0")),_.join("")}var r=f=>[f/1e4|0,(f/100|0)%100,f%100].join("."),t=2147483647,o=typeof process<"u"&&((c=process.versions)!=null&&c.node)?e(process.versions.node):t;if(o<t)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");if(o<2147483647)throw new Error(`This emscripten-generated code requires node v${r(2147483647)} (detected v${r(o)})`);var i=typeof navigator<"u"&&navigator.userAgent;if(i){var a=i.includes("Safari/")&&!i.includes("Chrome/")&&i.match(/Version\/(\d+\.?\d*\.?\d*)/)?e(i.match(/Version\/(\d+\.?\d*\.?\d*)/)[1]):t;if(a<15e4)throw new Error(`This emscripten-generated code requires Safari v${r(15e4)} (detected v${a})`);var s=i.match(/Firefox\/(\d+(?:\.\d+)?)/)?parseFloat(i.match(/Firefox\/(\d+(?:\.\d+)?)/)[1]):t;if(s<79)throw new Error(`This emscripten-generated code requires Firefox v79 (detected v${s})`);var l=i.match(/Chrome\/(\d+(?:\.\d+)?)/)?parseFloat(i.match(/Chrome\/(\d+(?:\.\d+)?)/)[1]):t;if(l<85)throw new Error(`This emscripten-generated code requires Chrome v85 (detected v${l})`)}})();var d=C,Ne=(e,r)=>{throw r},tr=import.meta.url,pe="";function nr(e){return d.locateFile?d.locateFile(e,pe):pe+e}var _e,ae;{try{pe=new URL(".",tr).href}catch{}if(!(globalThis.window||globalThis.WorkerGlobalScope))throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");ae=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)},_e=async e=>{u(!Oe(e),"readAsync does not work with file:// URLs");var r=await fetch(e,{credentials:"same-origin"});if(r.ok)return r.arrayBuffer();throw new Error(r.status+" : "+r.url)}}var z=console.log.bind(console),S=console.error.bind(console);u(!0,"web environment detected but not enabled at build time. Add `web` to `-sENVIRONMENT` to enable."),u(!0,"node environment detected but not enabled at build time. Add `node` to `-sENVIRONMENT` to enable."),u(!0,"shell environment detected but not enabled at build time. Add `shell` to `-sENVIRONMENT` to enable.");var Q;globalThis.WebAssembly||S("no native wasm support detected");var G=!1,se;function u(e,r){e||w("Assertion failed"+(r?": "+r:""))}var Oe=e=>e.startsWith("file://");function or(){var e=be();u((e&3)==0),e==0&&(e+=4),E[e>>2]=34821223,E[e+4>>2]=2310721022,E[0]=1668509029}function ee(){if(!G){var e=be();e==0&&(e+=4);var r=E[e>>2],t=E[e+4>>2];(r!=34821223||t!=2310721022)&&w(`Stack overflow! Stack cookie has been overwritten at ${te(e)}, expected hex dwords 0x89BACDFE and 0x2135467, but received ${te(t)} ${te(r)}`),E[0]!=1668509029&&w("Runtime error: The application has corrupted its heap memory area (address zero)!")}}(()=>{var e=new Int16Array(1),r=new Int8Array(e.buffer);e[0]=25459,(r[0]!==115||r[1]!==99)&&w("Runtime error: expected the system to be little-endian! (Run with -sSUPPORT_BIG_ENDIAN to bypass)")})();function le(e){Object.getOwnPropertyDescriptor(d,e)||Object.defineProperty(d,e,{configurable:!0,set(){w(`Attempt to set \`Module.${e}\` after it has already been processed. This can happen, for example, when code is injected via '--post-js' rather than '--pre-js'`)}})}function I(e){return()=>u(!1,`call to '${e}' via reference taken before Wasm module initialization`)}function ir(e){Object.getOwnPropertyDescriptor(d,e)&&w(`\`Module.${e}\` was supplied but \`${e}\` not included in INCOMING_MODULE_JS_API`)}function ar(e){return e==="FS_createPath"||e==="FS_createDataFile"||e==="FS_createPreloadedFile"||e==="FS_preloadFile"||e==="FS_unlink"||e==="addRunDependency"||e==="FS_createLazyFile"||e==="FS_createDevice"||e==="removeRunDependency"}function sr(e){Re(e)}function Re(e){Object.getOwnPropertyDescriptor(d,e)||Object.defineProperty(d,e,{configurable:!0,get(){var r=`'${e}' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the Emscripten FAQ)`;ar(e)&&(r+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you"),w(r)}})}var de,W,x,j,ce,y,E,Pe,N,re=!1;function lr(){var e=Qe.buffer;x=new Int8Array(e),ce=new Int16Array(e),d.HEAPU8=j=new Uint8Array(e),y=new Int32Array(e),E=new Uint32Array(e),Pe=new Float64Array(e),N=new BigInt64Array(e),new BigUint64Array(e)}u(globalThis.Int32Array&&globalThis.Float64Array&&Int32Array.prototype.subarray&&Int32Array.prototype.set,"JS engine does not provide full typed array supp
1ort");function dr(){if(d.preRun)for(typeof d.preRun=="function"&&(d.preRun=[d.preRun]);d.preRun.length;)yr(d.preRun.shift());le("preRun"),Me(ue)}function cr(){u(!re),re=!0,ee(),!d.noFSInit&&!n.initialized&&n.init(),J.__wasm_call_ctors(),n.ignorePermissions=!1}function ur(){ee()}function fr(){if(ee(),d.postRun)for(typeof d.postRun=="function"&&(d.postRun=[d.postRun]);d.postRun.length;)wr(d.postRun.shift());le("postRun"),Me(Ce)}function w(e){var t;(t=d.onAbort)==null||t.call(d,e),e="Aborted("+e+")",S(e),G=!0;var r=new WebAssembly.RuntimeError(e);throw W==null||W(r),r}function $(e,r){return(...t)=>{u(re,`native function \`${e}\` called before runtime initialization`);var o=J[e];return u(o,`exported native function \`${e}\` not found`),u(t.length<=r,`native function \`${e}\` called with ${t.length} args but expects ${r}`),o(...t)}}var he;function mr(){return d.locateFile?nr("minivmac-II.wasm"):new URL("/assets/minivmac-II-DtMSF1C0.wasm",import.meta.url).href}function vr(e){if(e==he&&Q)return new Uint8Array(Q);if(ae)return ae(e);throw"both async and sync fetching of the wasm failed"}async function pr(e){if(!Q)try{var r=await _e(e);return new Uint8Array(r)}catch{}return vr(e)}async function _r(e,r){try{var t=await pr(e),o=await WebAssembly.instantiate(t,r);return o}catch(i){S(`failed to asynchronously prepare wasm: ${i}`),Oe(e)&&S(`warning: Loading from a file URI (${e}) is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing`),w(i)}}async function hr(e,r,t){if(!e)try{var o=fetch(r,{credentials:"same-origin"}),i=await WebAssembly.instantiateStreaming(o,t);return i}catch(a){S(`wasm streaming compile failed: ${a}`),S("falling back to ArrayBuffer instantiation")}return _r(r,t)}function Er(){var e={env:er,wasi_snapshot_preview1:er};return e}async function gr(){function e(s,l){return J=s.exports,_t(J),lr(),J}var r=d;function t(s){return u(d===r,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),r=null,e(s.instance)}var o=Er();if(d.instantiateWasm)return new Promise((s,l)=>{try{d.instantiateWasm(o,(c,f)=>{s(e(c,f))})}catch(c){S(`Module.instantiateWasm callback failed with error: ${c}`),l(c)}});he??(he=mr());var i=await hr(Q,he,o),a=t(i);return a}class Ie{constructor(r){P(this,"name","ExitStatus");this.message=`Program terminated with exit(${r})`,this.status=r}}var Me=e=>{for(;e.length>0;)e.shift()(d)},Ce=[],wr=e=>Ce.push(e),ue=[],yr=e=>ue.push(e),Ee=!0,te=e=>(u(typeof e=="number",`ptrToString expects a number, got ${typeof e}`),e>>>=0,"0x"+e.toString(16).padStart(8,"0")),L=e=>{L.shown||(L.shown={}),L.shown[e]||(L.shown[e]=1,S(e))},fe=()=>{u(F.varargs!=null);var e=y[+F.varargs>>2];return F.varargs+=4,e},V=fe,g={isAbs:e=>e.charAt(0)==="/",splitPath:e=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return r.exec(e).slice(1)},normalizeArray:(e,r)=>{for(var t=0,o=e.length-1;o>=0;o--){var i=e[o];i==="."?e.splice(o,1):i===".."?(e.splice(o,1),t++):t&&(e.splice(o,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=g.isAbs(e),t=e.slice(-1)==="/";return e=g.normalizeArray(e.split("/").filter(o=>!!o),!r).join("/"),!e&&!r&&(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=g.splitPath(e),t=r[0],o=r[1];return!t&&!o?".":(o&&(o=o.slice(0,-1)),t+o)},basename:e=>e&&e.match(/([^\/]+|\/)\/*$/)[1],join:(...e)=>g.normalize(e.join("/")),join2:(e,r)=>g.normalize(e+"/"+r)},Sr=()=>e=>crypto.getRandomValues(e),xe=e=>{(xe=Sr())(e)},Y={resolve:(...e)=>{for(var r="",t=!1,o=e.length-1;o>=-1&&!t;o--){var i=o>=0?e[o]:n.cwd();if(typeof i!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!i)return"";r=i+"/"+r,t=g.isAbs(i)}return r=g.normalizeArray(r.split("/").filter(a=>!!a),!t).join("/"),(t?"/":"")+r||"."},relative:(e,r)=>{e=Y.resolve(e).slice(1),r=Y.resolve(r).slice(1);function t(f){for(var _=0;_<f.length&&f[_]==="";_++);for(var h=f.length-1;h>=0&&f[h]==="";h--);return _>h?[]:f.slice(_,h-_+1)}for(var o=t(e.split("/")),i=t(r.split("/")),a=Math.min(o.length,i.length),s=a,l=0;l<a;l++)if(o[l]!==i[l]){s=l;break}for(var c=[],l=s;l<o.length;l++)c.push("..");return c=c.concat(i.slice(s)),c.join("/")}},Le=globalThis.TextDecoder&&new TextDecoder,kr=(e,r,t,o)=>{for(var i=r+t;e[r]&&!(r>=i);)++r;return r},q=(e,r=0,t,o)=>{var i=kr(e,r,t);if(i-r>16&&e.buffer&&Le)return Le.decode(e.subarray(r,i));for(var a="";r<i;){var s=e[r++];if(!(s&128)){a+=String.fromCharCode(s);continue}var l=e[r++]&63;if((s&224)==192){a+=String.fromCharCode((s&31)<<6|l);continue}var c=e[r++]&63;if((s&240)==224?s=(s&15)<<12|l<<6|c:((s&248)!=240&&L("Invalid UTF-8 leading byte "+te(s)+" encountered when deserializing a UTF-8 string in wasm memory to a JS string!"),s=(s&7)<<18|l<<12|c<<6|e[r++]&63),s<65536)a+=String.fromCharCode(s);else{var f=s-65536;a+=String.fromCharCode(55296|f>>10,56320|f&1023)}}return a},ge=[],me=e=>{for(var r=0,t=0;t<e.length;++t){var o=e.charCodeAt(t);o<=127?r++:o<=2047?r+=2:o>=55296&&o<=57343?(r+=4,++t):r+=3}return r},Ue=(e,r,t,o)=>{if(u(typeof e=="string",`stringToUTF8Array expects a string (got ${typeof e})`),!(o>0))return 0;for(var i=t,a=t+o-1,s=0;s<e.length;++s){var l=e.codePointAt(s);if(l<=127){if(t>=a)break;r[t++]=l}
vendor: 5,378 bytes, line 1
1else if(l<=2047){if(t+1>=a)break;r[t++]=192|l>>6,r[t++]=128|l&63}else if(l<=65535){if(t+2>=a)break;r[t++]=224|l>>12,r[t++]=128|l>>6&63,r[t++]=128|l&63}else{if(t+3>=a)break;l>1114111&&L("Invalid Unicode code point "+te(l)+" encountered when serializing a JS string to a UTF-8 string in wasm memory! (Valid unicode code points should be in range 0-0x10FFFF)."),r[t++]=240|l>>18,r[t++]=128|l>>12&63,r[t++]=128|l>>6&63,r[t++]=128|l&63,s++}}return r[t]=0,t-i},we=(e,r,t)=>{var o=me(e)+1,i=new Array(o),a=Ue(e,i,0,i.length);return i.length=a,i},Fr=()=>{if(!ge.length){var e=null;if(!e)return null;ge=we(e)}return ge.shift()},U={ttys:[],init(){},shutdown(){},register(e,r){U.ttys[e]={input:[],output:[],ops:r},n.registerDevice(e,U.stream_ops)},stream_ops:{open(e){var r=U.ttys[e.node.rdev];if(!r)throw new n.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,t,o,i){if(!e.tty||!e.tty.ops.get_char)throw new n.ErrnoError(60);for(var a=0,s=0;s<o;s++){var l;try{l=e.tty.ops.get_char(e.tty)}catch{throw new n.ErrnoError(29)}if(l===void 0&&a===0)throw new n.ErrnoError(6);if(l==null)break;a++,r[t+s]=l}return a&&(e.node.atime=Date.now()),a},write(e,r,t,o,i){if(!e.tty||!e.tty.ops.put_char)throw new n.ErrnoError(60);try{for(var a=0;a<o;a++)e.tty.ops.put_char(e.tty,r[t+a])}catch{throw new n.ErrnoError(29)}return o&&(e.node.mtime=e.node.ctime=Date.now()),a}},default_tty_ops:{get_char(e){return Fr()},put_char(e,r){r===null||r===10?(z(q(e.output)),e.output=[]):r!=0&&e.output.push(r)},fsync(e){var r;((r=e.output)==null?void 0:r.length)>0&&(z(q(e.output)),e.output=[])},ioctl_tcgets(e){return{c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},ioctl_tcsets(e,r,t){return 0},ioctl_tiocgwinsz(e){return[24,80]}},default_tty1_ops:{put_char(e,r){r===null||r===10?(S(q(e.output)),e.output=[]):r!=0&&e.output.push(r)},fsync(e){var r;((r=e.output)==null?void 0:r.length)>0&&(S(q(e.output)),e.output=[])}}},Be=e=>{w("internal error: mmapAlloc called but `emscripten_builtin_memalign` native symbol not exported")},p={ops_table:null,mount(e){return p.createNode(null,"/",16895,0)},createNode(e,r,t,o){if(n.isBlkdev(t)||n.isFIFO(t))throw new n.ErrnoError(63);p.ops_table||(p.ops_table={dir:{node:{getattr:p.node_ops.getattr,setattr:p.node_ops.setattr,lookup:p.node_ops.lookup,mknod:p.node_ops.mknod,rename:p.node_ops.rename,unlink:p.node_ops.unlink,rmdir:p.node_ops.rmdir,readdir:p.node_ops.readdir,symlink:p.node_ops.symlink},stream:{llseek:p.stream_ops.llseek}},file:{node:{getattr:p.node_ops.getattr,setattr:p.node_ops.setattr},stream:{llseek:p.stream_ops.llseek,read:p.stream_ops.read,write:p.stream_ops.write,mmap:p.stream_ops.mmap,msync:p.stream_ops.msync}},link:{node:{getattr:p.node_ops.getattr,setattr:p.node_ops.setattr,readlink:p.node_ops.readlink},stream:{}},chrdev:{node:{getattr:p.node_ops.getattr,setattr:p.node_ops.setattr},stream:n.chrdev_stream_ops}});var i=n.createNode(e,r,t,o);return n.isDir(i.mode)?(i.node_ops=p.ops_table.dir.node,i.stream_ops=p.ops_table.dir.stream,i.contents={}):n.isFile(i.mode)?(i.node_ops=p.ops_table.file.node,i.stream_ops=p.ops_table.file.stream,i.usedBytes=0,i.contents=null):n.isLink(i.mode)?(i.node_ops=p.ops_table.link.node,i.stream_ops=p.ops_table.link.stream):n.isChrdev(i.mode)&&(i.node_ops=p.ops_table.chrdev.node,i.stream_ops=p.ops_table.chrdev.stream),i.atime=i.mtime=i.ctime=Date.now(),e&&(e.contents[r]=i,e.atime=e.mtime=e.ctime=i.atime),i},getFileDataAsTypedArray(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage(e,r){var t=e.contents?e.contents.length:0;if(!(t>=r)){var o=1024*1024;r=Math.max(r,t*(t<o?2:1.125)>>>0),t!=0&&(r=Math.max(r,256));var i=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(i.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,r){if(e.usedBytes!=r)if(r==0)e.contents=null,e.usedBytes=0;else{var t=e.contents;e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=n.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,n.isDir(e.mode)?r.size=4096:n.isFile(e.mode)?r.size=e.usedBytes:n.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.atime),r.mtime=new Date(e.mtime),r.ctime=new Date(e.ctime),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){for(const t of["mode","atime","mtime","ctime"])r[t]!=null&&(e[t]=r[t]);r.size!==void 0&&p.resizeFileStorage(e,r.size)},lookup(e,r){throw new n.ErrnoError(44)},mknod(e,r,t,o){return p.createNode(e,r,t,o)},rename(e,r,t){var o;try{o=n.lookupNode(r,t)}catch{}if(o){if(n.isDir(e.mode))for(var i in o.contents)throw new n.ErrnoError(55);n.hashRemoveNode(o)}delete e.parent.contents[e.name],r.contents[t]=e,e.name=t,r.ctime=r.mtime=e.parent.ctime=e.parent.mtime=Date.now()},unlink(e,r){delete e.contents[r],e.ctime=e.mtime=Date.now()},rmdir(e,r){var t=n.lookupNode(e,r);for(var o in t.contents)throw new n.ErrnoError(55);delete e.contents[r],e.ctime=e.mtime=Date.now()},readdir(e){return[".","..",...Object.keys(e.contents)]},symlink(e,r,t){var o=p.createNode(e,r,41471,0);return o.link=t,o},readlink(e){if(!n.isLink(e.mode))throw new n.ErrnoError(28);return e.link}}
1,stream_ops:{read(e,r,t,o,i){var a=e.node.contents;if(i>=e.node.usedBytes)return 0;var s=Math.min(e.node.usedBytes-i,o);if(u(s>=0),s>8&&a.subarray)r.set(a.subarray(i,i+s),t);else for(var l=0;l<s;l++)r[t+l]=a[i+l];return s},write(e,r,t,o,i,a){if(u(!(r instanceof ArrayBuffer)),!o)return 0;var s=e.node;if(s.mtime=s.ctime=Date.now(),r.subarray&&(!s.contents||s.contents.subarray)){if(a)return u(i===0,"canOwn must imply no weird position inside the file"),s.contents=r.subarray(t,t+o),s.usedBytes=o,o;if(s.usedBytes===0&&i===0)return s.contents=r.slice(t,t+o),s.usedBytes=o,o;if(i+o<=s.usedBytes)return s.contents.set(r.subarray(t,t+o),i),o}if(p.expandFileStorage(s,i+o),s.contents.subarray&&r.subarray)s.contents.set(r.subarray(t,t+o),i);else for(var l=0;l<o;l++)s.contents[i+l]=r[t+l];return s.usedBytes=Math.max(s.usedBytes,i+o),o},llseek(e,r,t){var o=r;if(t===1?o+=e.position:t===2&&n.isFile(e.node.mode)&&(o+=e.node.usedBytes),o<0)throw new n.ErrnoError(28);return o},mmap(e,r,t,o,i){if(!n.isFile(e.node.mode))throw new n.ErrnoError(43);var a,s,l=e.node.contents;if(!(i&2)&&l&&l.buffer===x.buffer)s=!1,a=l.byteOffset;else{if(s=!0,a=Be(),!a)throw new n.ErrnoError(48);l&&((t>0||t+r<l.length)&&(l.subarray?l=l.subarray(t,t+r):l=Array.prototype.slice.call(l,t,t+r)),x.set(l,a))}return{ptr:a,allocated:s}},msync(e,r,t,o,i){return p.stream_ops.write(e,r,0,o,t,!1),0}}},Ar=e=>{var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},t=r[e];if(typeof t>"u")throw new Error(`Unknown file open mode: ${e}`);return t},ye=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},Se=(e,r,t)=>(u(typeof e=="number",`UTF8ToString expects a number (got ${typeof e})`),e?q(j,e,r):""),Tr=e=>Se(Ke(e)),ze={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135},br=async e=>{var r=await _e(e);return u(r,`Loading data file "${e}" failed (no arrayBuffer).`),new Uint8Array(r)},Dr=(...e)=>n.createDataFile(...e),Nr=e=>{for(var r=e;;){if(!X[e])return e;e=r+Math.random()}},B=0,ne=null,X={},H=null,Or=e=>{var t;if(B--,(t=d.monitorRunDependencies)==null||t.call(d,B),u(e,"removeRunDependency requires an ID"),u(X[e]),delete X[e],B==0&&(H!==null&&(clearInterval(H),H=null),ne)){var r=ne;ne=null,r()}},Rr=e=>{var r;B++,(r=d.monitorRunDependencies)==null||r.call(d,B),u(e,"addRunDependency requires an ID"),u(!X[e]),X[e]=1,H===null&&globalThis.setInterval&&(H=setInterval(()=>{if(G){clearInterval(H),H=null;return}var t=!1;for(var o in X)t||(t=!0,S("still waiting on run dependencies:")),S(`dependency: ${o}`);t&&S("(end of list)")},1e4))},We=[],Pr=async(e,r)=>{typeof Browser<"u"&&Browser.init();for(var t of We)if(t.canHandle(r))return u(t.handle.constructor.name==="AsyncFunction","Filesystem plugin handlers must be async functions (See #24914)"),t.handle(e,r);return e},He=async(e,r,t,o,i,a,s,l)=>{var c=r?Y.resolve(g.join2(e,r)):e,f=Nr(`cp ${c}`);Rr(f);try{var _=t;typeof t=="string"&&(_=await br(t)),_=await Pr(_,c),l==null||l(),a||Dr(e,r,_,o,i,s)}finally{Or(f)}},Ir=(e,r,t,o,i,a,s,l,c,f)=>{He(e,r,t,o,i,l,c,f).then(a).catch(s)},n={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,filesystems:null,syncFSRequests:0,readFiles:{}
1,ErrnoError:class extends Error{constructor(r){super(re?Tr(r):"");P(this,"name","ErrnoError");this.errno=r;for(var t in ze)if(ze[t]===r){this.code=t;break}}},FSStream:class{constructor(){P(this,"shared",{})}get object(){return this.node}set object(e){this.node=e}get isRead(){return(this.flags&2097155)!==1}get isWrite(){return(this.flags&2097155)!==0}get isAppend(){return this.flags&1024}get flags(){return this.shared.flags}set flags(e){this.shared.flags=e}get position(){return this.shared.position}set position(e){this.shared.position=e}},FSNode:class{constructor(e,r,t,o){P(this,"node_ops",{});P(this,"stream_ops",{});P(this,"readMode",365);P(this,"writeMode",146);P(this,"mounted",null);e||(e=this),this.parent=e,this.mount=e.mount,this.id=n.nextInode++,this.name=r,this.mode=t,this.rdev=o,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&this.readMode)===this.readMode}set read(e){e?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(e){e?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return n.isDir(this.mode)}get isDevice(){return n.isChrdev(this.mode)}},lookupPath(e,r={}){if(!e)throw new n.ErrnoError(44);r.follow_mount??(r.follow_mount=!0),g.isAbs(e)||(e=n.cwd()+"/"+e);e:for(var t=0;t<40;t++){for(var o=e.split("/").filter(f=>!!f),i=n.root,a="/",s=0;s<o.length;s++){var l=s===o.length-1;if(l&&r.parent)break;if(o[s]!=="."){if(o[s]===".."){if(a=g.dirname(a),n.isRoot(i)){e=a+"/"+o.slice(s+1).join("/"),t--;continue e}else i=i.parent;continue}a=g.join2(a,o[s]);try{i=n.lookupNode(i,o[s])}catch(f){if((f==null?void 0:f.errno)===44&&l&&r.noent_okay)return{path:a};throw f}if(n.isMountpoint(i)&&(!l||r.follow_mount)&&(i=i.mounted.root),n.isLink(i.mode)&&(!l||r.follow)){if(!i.node_ops.readlink)throw new n.ErrnoError(52);var c=i.node_ops.readlink(i);g.isAbs(c)||(c=g.dirname(a)+"/"+c),e=c+"/"+o.slice(s+1).join("/");continue e}}}return{path:a,node:i}}throw new n.ErrnoError(32)},getPath(e){for(var r;;){if(n.isRoot(e)){var t=e.mount.mountpoint;return r?t[t.length-1]!=="/"?`${t}/${r}`:t+r:t}r=r?`${e.name}/${r}`:e.name,e=e.parent}},hashName(e,r){for(var t=0,o=0;o<r.length;o++)t=(t<<5)-t+r.charCodeAt(o)|0;return(e+t>>>0)%n.nameTable.length},hashAddNode(e){var r=n.hashName(e.parent.id,e.name);e.name_next=n.nameTable[r],n.nameTable[r]=e},hashRemoveNode(e){var r=n.hashName(e.parent.id,e.name);if(n.nameTable[r]===e)n.nameTable[r]=e.name_next;else for(var t=n.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode(e,r){var t=n.mayLookup(e);if(t)throw new n.ErrnoError(t);for(var o=n.hashName(e.id,r),i=n.nameTable[o];i;i=i.name_next){var a=i.name;if(i.parent.id===e.id&&a===r)return i}return n.lookup(e,r)},createNode(e,r,t,o){u(typeof e=="object");var i=new n.FSNode(e,r,t,o);return n.hashAddNode(i),i},destroyNode(e){n.hashRemoveNode(e)},isRoot(e){return e===e.parent},isMountpoint(e){return!!e.mounted},isFile(e){return(e&61440)===32768},isDir(e){return(e&61440)===16384},isLink(e){return(e&61440)===40960},isChrdev(e){return(e&61440)===8192},isBlkdev(e){return(e&61440)===24576},isFIFO(e){return(e&61440)===4096},isSocket(e){return(e&49152)===49152},flagsToPermissionString(e){var r=["r","w","rw"][e&3];return e&512&&(r+="w"),r},nodePermissions(e,r){return n.ignorePermissions?0:r.includes("r")&&!(e.mode&292)||r.includes("w")&&!(e.mode&146)||r.includes("x")&&!(e.mode&73)?2:0},mayLookup(e){if(!n.isDir(e.mode))return 54;var r=n.nodePermissions(e,"x");return r||(e.node_ops.lookup?0:2)},mayCreate(e,r){if(!n.isDir(e.mode))return 54;try{var t=n.lookupNode(e,r);return 20}catch{}return n.nodePermissions(e,"wx")},mayDelete(e,r,t){var o;try{o=n.lookupNode(e,r)}catch(a){return a.errno}var i=n.nodePermissions(e,"wx");if(i)return i;if(t){if(!n.isDir(o.mode))return 54;if(n.isRoot(o)||n.getPath(o)===n.cwd())return 10}else if(n.isDir(o.mode))return 31;return 0},mayOpen(e,r){return e?n.isLink(e.mode)?32:n.isDir(e.mode)&&(n.flagsToPermissionString(r)!=="r"||r&576)?31:n.nodePermissions(e,n.flagsToPermissionString(r)):44},checkOpExists(e,r){if(!e)throw new n.ErrnoError(r);return e},MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=n.MAX_OPEN_FDS;e++)if(!n.streams[e])return e;throw new n.ErrnoError(33)},getStreamChecked(e){var r=n.getStream(e);if(!r)throw new n.ErrnoError(8);return r}
1,getStream:e=>n.streams[e],createStream(e,r=-1){return u(r>=-1),e=Object.assign(new n.FSStream,e),r==-1&&(r=n.nextfd()),e.fd=r,n.streams[r]=e,e},closeStream(e){n.streams[e]=null},dupStream(e,r=-1){var o,i;var t=n.createStream(e,r);return(i=(o=t.stream_ops)==null?void 0:o.dup)==null||i.call(o,t),t},doSetAttr(e,r,t){var o=e==null?void 0:e.stream_ops.setattr,i=o?e:r;o??(o=r.node_ops.setattr),n.checkOpExists(o,63),o(i,t)},chrdev_stream_ops:{open(e){var t,o;var r=n.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,(o=(t=e.stream_ops).open)==null||o.call(t,e)},llseek(){throw new n.ErrnoError(70)}},major:e=>e>>8,minor:e=>e&255,makedev:(e,r)=>e<<8|r,registerDevice(e,r){n.devices[e]={stream_ops:r}},getDevice:e=>n.devices[e],getMounts(e){for(var r=[],t=[e];t.length;){var o=t.pop();r.push(o),t.push(...o.mounts)}return r},syncfs(e,r){typeof e=="function"&&(r=e,e=!1),n.syncFSRequests++,n.syncFSRequests>1&&S(`warning: ${n.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=n.getMounts(n.root.mount),o=0;function i(l){return u(n.syncFSRequests>0),n.syncFSRequests--,r(l)}function a(l){if(l)return a.errored?void 0:(a.errored=!0,i(l));++o>=t.length&&i(null)}for(var s of t)s.type.syncfs?s.type.syncfs(s,e,a):a(null)},mount(e,r,t){if(typeof e=="string")throw e;var o=t==="/",i=!t,a;if(o&&n.root)throw new n.ErrnoError(10);if(!o&&!i){var s=n.lookupPath(t,{follow_mount:!1});if(t=s.path,a=s.node,n.isMountpoint(a))throw new n.ErrnoError(10);if(!n.isDir(a.mode))throw new n.ErrnoError(54)}var l={type:e,opts:r,mountpoint:t,mounts:[]},c=e.mount(l);return c.mount=l,l.root=c,o?n.root=c:a&&(a.mounted=l,a.mount&&a.mount.mounts.push(l)),c},unmount(e){var r=n.lookupPath(e,{follow_mount:!1});if(!n.isMountpoint(r.node))throw new n.ErrnoError(28);var t=r.node,o=t.mounted,i=n.getMounts(o);for(var[a,s]of Object.entries(n.nameTable))for(;s;){var l=s.name_next;i.includes(s.mount)&&n.destroyNode(s),s=l}t.mounted=null;var c=t.mount.mounts.indexOf(o);u(c!==-1),t.mount.mounts.splice(c,1)},lookup(e,r){return e.node_ops.lookup(e,r)},mknod(e,r,t){var o=n.lookupPath(e,{parent:!0}),i=o.node,a=g.basename(e);if(!a)throw new n.ErrnoError(28);if(a==="."||a==="..")throw new n.ErrnoError(20);var s=n.mayCreate(i,a);if(s)throw new n.ErrnoError(s);if(!i.node_ops.mknod)throw new n.ErrnoError(63);return i.node_ops.mknod(i,a,r,t)},statfs(e){return n.statfsNode(n.lookupPath(e,{follow:!0}).node)},statfsStream(e){return n.statfsNode(e.node)},statfsNode(e){var r={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:n.nextInode,ffree:n.nextInode-1,fsid:42,flags:2,namelen:255};return e.node_ops.statfs&&Object.assign(r,e.node_ops.statfs(e.mount.opts.root)),r},create(e,r=438){return r&=4095,r|=32768,n.mknod(e,r,0)},mkdir(e,r=511){return r&=1023,r|=16384,n.mknod(e,r,0)},mkdirTree(e,r){var t=e.split("/"),o="";for(var i of t)if(i){(o||g.isAbs(e))&&(o+="/"),o+=i;try{n.mkdir(o,r)}catch(a){if(a.errno!=20)throw a}}},mkdev(e,r,t){return typeof t>"u"&&(t=r,r=438),r|=8192,n.mknod(e,r,t)},symlink(e,r){if(!Y.resolve(e))throw new n.ErrnoError(44);var t=n.lookupPath(r,{parent:!0}),o=t.node;if(!o)throw new n.ErrnoError(44);var i=g.basename(r),a=n.mayCreate(o,i);if(a)throw new n.ErrnoError(a);if(!o.node_ops.symlink)throw new n.ErrnoError(63);return o.node_ops.symlink(o,i,e)},rename(e,r){var t=g.dirname(e),o=g.dirname(r),i=g.basename(e),a=g.basename(r),s,l,c;if(s=n.lookupPath(e,{parent:!0}),l=s.node,s=n.lookupPath(r,{parent:!0}),c=s.node,!l||!c)throw new n.ErrnoError(44);if(l.mount!==c.mount)throw new n.ErrnoError(75);var f=n.lookupNode(l,i),_=Y.relative(e,o);if(_.charAt(0)!==".")throw new n.ErrnoError(28);if(_=Y.relative(r,t),_.charAt(0)!==".")throw new n.ErrnoError(55);var h;try{h=n.lookupNode(c,a)}catch{}if(f!==h){var v=n.isDir(f.mode),m=n.mayDelete(l,i,v);if(m)throw new n.ErrnoError(m);if(m=h?n.mayDelete(c,a,v):n.mayCreate(c,a),m)throw new n.ErrnoError(m);if(!l.node_ops.rename)throw new n.ErrnoError(63);if(n.isMountpoint(f)||h&&n.isMountpoint(h))throw new n.ErrnoError(10);if(c!==l&&(m=n.nodePermissions(l,"w"),m))throw new n.ErrnoError(m);n.hashRemoveNode(f);
vendor: 4,580 bytes, line 1
1try{l.node_ops.rename(f,c,a),f.parent=c}catch(k){throw k}finally{n.hashAddNode(f)}}},rmdir(e){var r=n.lookupPath(e,{parent:!0}),t=r.node,o=g.basename(e),i=n.lookupNode(t,o),a=n.mayDelete(t,o,!0);if(a)throw new n.ErrnoError(a);if(!t.node_ops.rmdir)throw new n.ErrnoError(63);if(n.isMountpoint(i))throw new n.ErrnoError(10);t.node_ops.rmdir(t,o),n.destroyNode(i)},readdir(e){var r=n.lookupPath(e,{follow:!0}),t=r.node,o=n.checkOpExists(t.node_ops.readdir,54);return o(t)},unlink(e){var r=n.lookupPath(e,{parent:!0}),t=r.node;if(!t)throw new n.ErrnoError(44);var o=g.basename(e),i=n.lookupNode(t,o),a=n.mayDelete(t,o,!1);if(a)throw new n.ErrnoError(a);if(!t.node_ops.unlink)throw new n.ErrnoError(63);if(n.isMountpoint(i))throw new n.ErrnoError(10);t.node_ops.unlink(t,o),n.destroyNode(i)},readlink(e){var r=n.lookupPath(e),t=r.node;if(!t)throw new n.ErrnoError(44);if(!t.node_ops.readlink)throw new n.ErrnoError(28);return t.node_ops.readlink(t)},stat(e,r){var t=n.lookupPath(e,{follow:!r}),o=t.node,i=n.checkOpExists(o.node_ops.getattr,63);return i(o)},fstat(e){var r=n.getStreamChecked(e),t=r.node,o=r.stream_ops.getattr,i=o?r:t;return o??(o=t.node_ops.getattr),n.checkOpExists(o,63),o(i)},lstat(e){return n.stat(e,!0)},doChmod(e,r,t,o){n.doSetAttr(e,r,{mode:t&4095|r.mode&-4096,ctime:Date.now(),dontFollow:o})},chmod(e,r,t){var o;if(typeof e=="string"){var i=n.lookupPath(e,{follow:!t});o=i.node}else o=e;n.doChmod(null,o,r,t)},lchmod(e,r){n.chmod(e,r,!0)},fchmod(e,r){var t=n.getStreamChecked(e);n.doChmod(t,t.node,r,!1)},doChown(e,r,t){n.doSetAttr(e,r,{timestamp:Date.now(),dontFollow:t})},chown(e,r,t,o){var i;if(typeof e=="string"){var a=n.lookupPath(e,{follow:!o});i=a.node}else i=e;n.doChown(null,i,o)},lchown(e,r,t){n.chown(e,r,t,!0)},fchown(e,r,t){var o=n.getStreamChecked(e);n.doChown(o,o.node,!1)},doTruncate(e,r,t){if(n.isDir(r.mode))throw new n.ErrnoError(31);if(!n.isFile(r.mode))throw new n.ErrnoError(28);var o=n.nodePermissions(r,"w");if(o)throw new n.ErrnoError(o);n.doSetAttr(e,r,{size:t,timestamp:Date.now()})},truncate(e,r){if(r<0)throw new n.ErrnoError(28);var t;if(typeof e=="string"){var o=n.lookupPath(e,{follow:!0});t=o.node}else t=e;n.doTruncate(null,t,r)},ftruncate(e,r){var t=n.getStreamChecked(e);if(r<0||(t.flags&2097155)===0)throw new n.ErrnoError(28);n.doTruncate(t,t.node,r)},utime(e,r,t){var o=n.lookupPath(e,{follow:!0}),i=o.node,a=n.checkOpExists(i.node_ops.setattr,63);a(i,{atime:r,mtime:t})},open(e,r,t=438){if(e==="")throw new n.ErrnoError(44);r=typeof r=="string"?Ar(r):r,r&64?t=t&4095|32768:t=0;var o,i;if(typeof e=="object")o=e;else{i=e.endsWith("/");var a=n.lookupPath(e,{follow:!(r&131072),noent_okay:!0});o=a.node,e=a.path}var s=!1;if(r&64)if(o){if(r&128)throw new n.ErrnoError(20)}else{if(i)throw new n.ErrnoError(31);o=n.mknod(e,t|511,0),s=!0}if(!o)throw new n.ErrnoError(44);if(n.isChrdev(o.mode)&&(r&=-513),r&65536&&!n.isDir(o.mode))throw new n.ErrnoError(54);if(!s){var l=n.mayOpen(o,r);if(l)throw new n.ErrnoError(l)}r&512&&!s&&n.truncate(o,0),r&=-131713;var c=n.createStream({node:o,path:n.getPath(o),flags:r,seekable:!0,position:0,stream_ops:o.stream_ops,ungotten:[],error:!1});return c.stream_ops.open&&c.stream_ops.open(c),s&&n.chmod(o,t&511),d.logReadFiles&&!(r&1)&&(e in n.readFiles||(n.readFiles[e]=1)),c},close(e){if(n.isClosed(e))throw new n.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(r){throw r}finally{n.closeStream(e.fd)}e.fd=null},isClosed(e){return e.fd===null},llseek(e,r,t){if(n.isClosed(e))throw new n.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new n.ErrnoError(70);if(t!=0&&t!=1&&t!=2)throw new n.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read(e,r,t,o,i){if(u(t>=0),o<0||i<0)throw new n.ErrnoError(28);if(n.isClosed(e))throw new n.ErrnoError(8);if((e.flags&2097155)===1)throw new n.ErrnoError(8);if(n.isDir(e.node.mode))throw new n.ErrnoError(31);if(!e.stream_ops.read)throw new n.ErrnoError(28);var a=typeof i<"u";if(!a)i=e.position;else if(!e.seekable)throw new n.ErrnoError(70);var s=e.stream_ops.read(e,r,t,o,i);return a||(e.position+=s),s},write(e,r,t,o,i,a){if(u(t>=0),o<0||i<0)throw new n.ErrnoError(28);if(n.isClosed(e))throw new n.ErrnoError(8);if((e.flags&2097155)===0)throw new n.ErrnoError(8);if(n.isDir(e.node.mode))throw new n.ErrnoError(31);if(!e.stream_ops.write)throw new n.ErrnoError(28);e.seekable&&e.flags&1024&&n.llseek(e,0,2);var s=typeof i<"u";if(!s)i=e.position;else if(!e.seekable)throw new n.ErrnoError(70);var l=e.stream_ops.write(e,r,t,o,i,a);return s||(e.position+=l),l}
1,mmap(e,r,t,o,i){if((o&2)!==0&&(i&2)===0&&(e.flags&2097155)!==2)throw new n.ErrnoError(2);if((e.flags&2097155)===1)throw new n.ErrnoError(2);if(!e.stream_ops.mmap)throw new n.ErrnoError(43);if(!r)throw new n.ErrnoError(28);return e.stream_ops.mmap(e,r,t,o,i)},msync(e,r,t,o,i){return u(t>=0),e.stream_ops.msync?e.stream_ops.msync(e,r,t,o,i):0},ioctl(e,r,t){if(!e.stream_ops.ioctl)throw new n.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile(e,r={}){r.flags=r.flags||0,r.encoding=r.encoding||"binary",r.encoding!=="utf8"&&r.encoding!=="binary"&&w(`Invalid encoding type "${r.encoding}"`);var t=n.open(e,r.flags),o=n.stat(e),i=o.size,a=new Uint8Array(i);return n.read(t,a,0,i,0),r.encoding==="utf8"&&(a=q(a)),n.close(t),a},writeFile(e,r,t={}){t.flags=t.flags||577;var o=n.open(e,t.flags,t.mode);typeof r=="string"&&(r=new Uint8Array(we(r))),ArrayBuffer.isView(r)?n.write(o,r,0,r.byteLength,void 0,t.canOwn):w("Unsupported data type"),n.close(o)},cwd:()=>n.currentPath,chdir(e){var r=n.lookupPath(e,{follow:!0});if(r.node===null)throw new n.ErrnoError(44);if(!n.isDir(r.node.mode))throw new n.ErrnoError(54);
1var t=n.nodePermissions(r.node,"x");if(t)throw new n.ErrnoError(t);n.currentPath=r.path},createDefaultDirectories(){n.mkdir("/tmp"),n.mkdir("/home"),n.mkdir("/home/web_user")},createDefaultDevices(){n.mkdir("/dev"),n.registerDevice(n.makedev(1,3),{read:()=>0,write:(o,i,a,s,l)=>s,llseek:()=>0}),n.mkdev("/dev/null",n.makedev(1,3)),U.register(n.makedev(5,0),U.default_tty_ops),U.register(n.makedev(6,0),U.default_tty1_ops),n.mkdev("/dev/tty",n.makedev(5,0)),n.mkdev("/dev/tty1",n.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(r===0&&(xe(e),r=e.byteLength),e[--r]);n.createDevice("/dev","random",t),n.createDevice("/dev","urandom",t),n.mkdir("/dev/shm"),n.mkdir("/dev/shm/tmp")},createSpecialDirectories(){n.mkdir("/proc");var e=n.mkdir("/proc/self");n.mkdir("/proc/self/fd"),n.mount({mount(){var r=n.createNode(e,"fd",16895,73);return r.stream_ops={llseek:p.stream_ops.llseek},r.node_ops={lookup(t,o){var i=+o,a=n.getStreamChecked(i),s={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>a.path},id:i+1};return s.parent=s,s},readdir(){return Array.from(n.streams.entries()).filter(([t,o])=>o).map(([t,o])=>t.toString())}},r}},{},"/proc/self/fd")},createStandardStreams(e,r,t){e?n.createDevice("/dev","stdin",e):n.symlink("/dev/tty","/dev/stdin"),r?n.createDevice("/dev","stdout",null,r):n.symlink("/dev/tty","/dev/stdout"),t?n.createDevice("/dev","stderr",null,t):n.symlink("/dev/tty1","/dev/stderr");var o=n.open("/dev/stdin",0),i=n.open("/dev/stdout",1),a=n.open("/dev/stderr",1);u(o.fd===0,`invalid handle for stdin (${o.fd})`),u(i.fd===1,`invalid handle for stdout (${i.fd})`),u(a.fd===2,`invalid handle for stderr (${a.fd})`)},staticInit(){n.nameTable=new Array(4096),n.mount(p,{},"/"),n.createDefaultDirectories(),n.createDefaultDevices(),n.createSpecialDirectories(),n.filesystems={MEMFS:p}},init(e,r,t){u(!n.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),n.initialized=!0,e??(e=d.stdin),r??(r=d.stdout),t??(t=d.stderr),n.createStandardStreams(e,r,t)},quit(){n.initialized=!1,Te(0);for(var e of n.streams)e&&n.close(e)},findObject(e,r){var t=n.analyzePath(e,r);return t.exists?t.object:null},analyzePath(e,r){try{var t=n.lookupPath(e,{follow:!r});e=t.path}catch{}var o={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var t=n.lookupPath(e,{parent:!0});o.parentExists=!0,o.parentPath=t.path,o.parentObject=t.node,o.name=g.basename(e),t=n.lookupPath(e,{follow:!r}),o.exists=!0,o.path=t.path,o.object=t.node,o.name=t.node.name,o.isRoot=t.path==="/"}catch(i){o.error=i.errno}return o},createPath(e,r,t,o){e=typeof e=="string"?e:n.getPath(e);for(var i=r.split("/").reverse();i.length;){var a=i.pop();if(a){var s=g.join2(e,a);try{n.mkdir(s)}catch(l){if(l.errno!=20)throw l}e=s}}return s},createFile(e,r,t,o,i){var a=g.join2(typeof e=="string"?e:n.getPath(e),r),s=ye(o,i);return n.create(a,s)},createDataFile(e,r,t,o,i,a){var s=r;e&&(e=typeof e=="string"?e:n.getPath(e),s=r?g.join2(e,r):e);var l=ye(o,i),c=n.create(s,l);if(t){if(typeof t=="string"){for(var f=new Array(t.length),_=0,h=t.length;_<h;++_)f[_]=t.charCodeAt(_);t=f}n.chmod(c,l|146);var v=n.open(c,577);n.write(v,t,0,t.length,0,a),n.close(v),n.chmod(c,l)}},createDevice(e,r,t,o){var l;var i=g.join2(typeof e=="string"?e:n.getPath(e),r),a=ye(!!t,!!o);(l=n.createDevice).major??(l.major=64);var s=n.makedev(n.createDevice.major++,0);return n.registerDevice(s,{open(c){c.seekable=!1},close(c){var f;(f=o==null?void 0:o.buffer)!=null&&f.length&&o(10)},read(c,f,_,h,v){for(var m=0,k=0;k<h;k++){var A;try{A=t()}catch{throw new n.ErrnoError(29)}if(A===void 0&&m===0)throw new n.ErrnoError(6);if(A==null)break;m++,f[_+k]=A}return m&&(c.node.atime=Date.now()),m},write(c,f,_,h,v){for(var m=0;m<h;m++)try{o(f[_+m])}catch{throw new n.ErrnoError(29)}return h&&(c.node.mtime=c.node.ctime=Date.now()),m}}),n.mkdev(i,a,s)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if(globalThis.XMLHttpRequest)w("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");else try{e.contents=ae(e.url)}catch{throw new n.ErrnoError(29)}},createLazyFile(e,r,t,o,i){class a{constructor(){P(this,"lengthKnown",!1);P(this,"chunks",[])}get(v){if(!(v>this.length-1||v<0)){var m=v%this.chunkSize,k=v/this.chunkSize|0;return this.getter(k)[m]}}setDataGetter(v){this.getter=v}cacheLength(){var v=new XMLHttpRequest;v.open("HEAD",t,!1),v.send(null),v.status>=200&&v.status<300||v.status===304||w("Couldn't load "+t+". Status: "+v.status);var m=Number(v.getResponseHeader("Content-length")),k,A=(k=v.getResponseHeader("Accept-Ranges"))&&k==="bytes",b=(k=v.getResponseHeader("Content-Encoding"))&&k==="gzip",D=1024*1024;A||(D=m);var R=(M,Z)=>{M>Z&&w("invalid range ("+M+", "+Z+") or no bytes requested!"),Z>m-1&&w("only "+m+" bytes available! programmer error!");var T=new XMLHttpRequest;return T.open("GET",t,!1),m!==D&&T.setRequestHeader("Range","bytes="+M+"-"+Z),T.responseType="arraybuffer",T.overrideMimeType&&T.overrideMimeType("text/plain;
1 charset=x-user-defined"),T.send(null),T.status>=200&&T.status<300||T.status===304||w("Couldn't load "+t+". Status: "+T.status),T.response!==void 0?new Uint8Array(T.response||[]):we(T.responseText||"")},ie=this;ie.setDataGetter(M=>{var Z=M*D,T=(M+1)*D-1;return T=Math.min(T,m-1),typeof ie.chunks[M]>"u"&&(ie.chunks[M]=R(Z,T)),typeof ie.chunks[M]>"u"&&w("doXHR failed!"),ie.chunks[M]}),(b||!m)&&(D=m=1,m=this.getter(0).length,D=m,z("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=m,this._chunkSize=D,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if(globalThis.XMLHttpRequest)var s=new a,l={isDevice:!1,contents:s};else var l={isDevice:!1,url:t};var c=n.createFile(e,r,l,o,i);l.contents?c.contents=l.contents:l.url&&(c.contents=null,c.url=l.url),Object.defineProperties(c,{usedBytes:{get:function(){return this.contents.length}}});var f={};for(const[h,v]of Object.entries(c.stream_ops))f[h]=(...m)=>(n.forceLoadFile(c),v(...m));function _(h,v,m,k,A){var b=h.node.contents;if(A>=b.length)return 0;var D=Math.min(b.length-A,k);if(u(D>=0),b.slice)for(var R=0;R<D;R++)v[m+R]=b[A+R];else for(var R=0;R<D;R++)v[m+R]=b.get(A+R);return D}return f.read=(h,v,m,k,A)=>(n.forceLoadFile(c),_(h,v,m,k,A)),f.mmap=(h,v,m,k,A)=>{n.forceLoadFile(c);var b=Be();if(!b)throw new n.ErrnoError(48);return _(h,x,b,v,m),{ptr:b,allocated:!0}},c.stream_ops=f,c},absolutePath(){w("FS.absolutePath has been removed; use PATH_FS.resolve instead")},createFolder(){w("FS.createFolder has been removed; use FS.mkdir instead")},createLink(){w("FS.createLink has been removed; use FS.symlink instead")},joinPath(){w("FS.joinPath has been removed; use PATH.join instead")},mmapAlloc(){w("FS.mmapAlloc has been replaced by the top level function mmapAlloc")},standardizePath(){w("FS.standardizePath has been removed; use PATH.normalize instead")}},F={DEFAULT_POLLMASK:5,calculateAt(e,r,t){if(g.isAbs(r))return r;var o;if(e===-100)o=n.cwd();else{var i=F.getStreamFromFD(e);o=i.path}if(r.length==0){if(!t)throw new n.ErrnoError(44);return o}return o+"/"+r},writeStat(e,r){E[e>>2]=r.dev,E[e+4>>2]=r.mode,E[e+8>>2]=r.nlink,E[e+12>>2]=r.uid,E[e+16>>2]=r.gid,E[e+20>>2]=r.rdev,N[e+24>>3]=BigInt(r.size),y[e+32>>2]=4096,y[e+36>>2]=r.blocks;var t=r.atime.getTime(),o=r.mtime.getTime(),i=r.ctime.getTime();return N[e+40>>3]=BigInt(Math.floor(t/1e3)),E[e+48>>2]=t%1e3*1e3*1e3,N[e+56>>3]=BigInt(Math.floor(o/1e3)),E[e+64>>2]=o%1e3*1e3*1e3,N[e+72>>3]=BigInt(Math.floor(i/1e3)),E[e+80>>2]=i%1e3*1e3*1e3,N[e+88>>3]=BigInt(r.ino),0},writeStatFs(e,r){E[e+4>>2]=r.bsize,E[e+60>>2]=r.bsize,N[e+8>>3]=BigInt(r.blocks),N[e+16>>3]=BigInt(r.bfree),N[e+24>>3]=BigInt(r.bavail),N[e+32>>3]=BigInt(r.files),N[e+40>>3]=BigInt(r.ffree),E[e+48>>2]=r.fsid,E[e+64>>2]=r.flags,E[e+56>>2]=r.namelen},doMsync(e,r,t,o,i){if(!n.isFile(r.node.mode))throw new n.ErrnoError(43);if(o&2)return 0;var a=j.slice(e,e+t);n.msync(r,a,i,t,o)},getStreamFromFD(e){var r=n.getStreamChecked(e);return r},varargs:void 0,getStr(e){var r=Se(e);return r}};function Mr(e,r,t){F.varargs=t;try{var o=F.getStreamFromFD(e);switch(r){case 0:{var i=fe();if(i<0)return-28;for(;n.streams[i];)i++;var a;return a=n.dupStream(o,i),a.fd}case 1:case 2:return 0;case 3:return o.flags;case 4:{var i=fe();return o.flags|=i,0}case 12:{var i=V(),s=0;return ce[i+s>>1]=2,0}case 13:case 14:return 0}return-28}catch(l){if(typeof n>"u"||l.name!=="ErrnoError")throw l;return-l.errno}}function Cr(e,r,t){F.varargs=t;try{var o=F.getStreamFromFD(e);switch(r){case 21509:return o.tty?0:-59;case 21505:{if(!o.tty)return-59;if(o.tty.ops.ioctl_tcgets){var i=o.tty.ops.ioctl_tcgets(o),a=V();y[a>>2]=i.c_iflag||0,y[a+4>>2]=i.c_oflag||0,y[a+8>>2]=i.c_cflag||0,y[a+12>>2]=i.c_lflag||0;for(var s=0;s<32;s++)x[a+s+17]=i.c_cc[s]||0;return 0}return 0}case 21510:case 21511:case 21512:return o.tty?0:-59;case 21506:case 21507:case 21508:{if(!o.tty)return-59;if(o.tty.ops.ioctl_tcsets){for(var a=V(),l=y[a>>2],c=y[a+4>>2],f=y[a+8>>2],_=y[a+12>>2],h=[],s=0;s<32;s++)h.push(x[a+s+17]);return o.tty.ops.ioctl_tcsets(o.tty,r,{c_iflag:l,c_oflag:c,c_cflag:f,c_lflag:_,c_cc:h})}return 0}case 21519:{if(!o.tty)return-59;var a=V();return y[a>>2]=0,0}case 21520:return o.tty?-28:-59;case 21537:case 21531:{var a=V();return n.ioctl(o,r,a)}case 21523:{if(!o.tty)return-59;if(o.tty.ops.ioctl_tiocgwinsz){var v=o.tty.ops.ioctl_tiocgwinsz(o.tty),a=V();ce[a>>1]=v[0],ce[a+2>>1]=v[1]}return 0}case 21524:return o.tty?0:-59;case 21515:return o.tty?0:-59;default:return-28}}catch(m){if(typeof n>"u"||m.name!=="ErrnoError")throw m;return-m.errno}}function xr(e,r,t,o){F.varargs=o;try{r=F.getStr(r),r=F.calculateAt(e,r);var i=o?fe():0;return n.open(r,t,i).fd}catch(a){if(typeof n>"u"||a.name!=="ErrnoError")throw a;return-a.errno}}function Lr(e){try{return e=F.getStr(e),n.rmdir(e),0}catch(r){if(typeof n>"u"||r.name!=="ErrnoError")throw r;return-r.errno}}function Ur(e,r,t){try{if(r=F.getStr(r),r=F.calculateAt(e,r),!t)n.unlink(r);else if(t===512)n.rmdir(r);else return-28;return 0}catch(o){if(typeof n>"u"||o.name!=="ErrnoError")throw o;return-o.errno}}var Br=()=>w("native code called abort()"),ke=0,zr=()=>{Ee=!1,ke=0},Wr=e=>e%4===0&&(e%100!==0||e%400===0),Hr=[0,31,60,91,121,152,182,213,244,274,305,335],Gr=[0,31,59,90,120,151,181,212,243,273,304,334],jr=e=>{var r=Wr(e.getFullYear()),t=r?Hr:Gr,o=t[e.getMonth()]+e.getDate()-1;return o},$r=9007199254740992,Vr=-9007199254740992,Ge=e=>e<Vr||e>$r?NaN:Number(e);function Yr(e,r){e=Ge(e);var t=new Date(e*1e3);y[r>>2]=t.getSeconds(),y[r+4>>2]=t.getMinutes(),y[r+8>>2]=t.getHours(),y[r+12>>2]=t.getDate(),y[r+16>>2]=t.getMonth(),y[r+20>>2]=t.getFullYear()-1900,y[r+24>>2]=t.getDay();var o=jr(t)|0;y[r+28>>2]=o,y[r+36>>2]=-(t.getTimezoneOffset()*60);var i=new Date(t.getFullYear(),0,1),a=new Date(t.getFullYear(),6,1).getTimezoneOffset(),s=i.getTimezoneOffset(),l=(a!=s&&t.getTimezoneOffset()==Math.min(s,a))|0;y[r+32>>2]=l}var K={},Fe=e=>{if(e instanceof Ie||e=="unwind")return se;ee(),e instanceof WebAssembly.RuntimeError&&Ze()<=0&&S("Stack overflow detected. You can try increasing -sSTACK_SIZE (currently set to 65536)"),Ne(1,e)},Ae=()=>Ee||ke>0,je=e=>{var r;se=e,Ae()||((r=d.onExit)==null||r.call(d,e),G=!0),Ne(e,new Ie(e))},$e=(e,r)=>{if(se=e,gt(),Ae()&&!r){var t=`program exited (with status: ${e}
1), but keepRuntimeAlive() is set (counter=${ke}) due to an async operation, so halting execution but not exiting the runtime or preventing further async execution (you can use emscripten_force_exit, if you want to force a true shutdown)`;W==null||W(t),S(t)}je(e)},qr=$e,Xr=()=>{if(!Ae())try{qr(se)}catch(e){Fe(e)}},Kr=e=>{if(G){S("user callback triggered after runtime exited or application aborted. Ignoring.");return}try{e(),Xr()}catch(r){Fe(r)}},Jr=()=>performance.now(),Zr=(e,r)=>{if(K[e]&&(clearTimeout(K[e].id),delete K[e]),!r)return 0;var t=setTimeout(()=>{u(e in K),delete K[e],Kr(()=>Xe(e,Jr()))},r);return K[e]={id:t,timeout_ms:r},0},oe=(e,r,t)=>(u(typeof t=="number","stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),Ue(e,j,r,t)),Qr=(e,r,t,o)=>{var i=new Date().getFullYear(),a=new Date(i,0,1),s=new Date(i,6,1),l=a.getTimezoneOffset(),c=s.getTimezoneOffset(),f=Math.max(l,c);E[e>>2]=f*60,y[r>>2]=+(l!=c);var _=m=>{var k=m>=0?"-":"+",A=Math.abs(m),b=String(Math.floor(A/60)).padStart(2,"0"),D=String(A%60).padStart(2,"0");return`UTC${k}${b}${D}`},h=_(l),v=_(c);u(h),u(v),u(me(h)<=16,`timezone name truncated to fit in TZNAME_MAX (${h})`),u(me(v)<=16,`timezone name truncated to fit in TZNAME_MAX (${v})`),c<l?(oe(h,t,17),oe(v,o,17)):(oe(h,o,17),oe(v,t,17))},ve=[],et=(e,r)=>{u(Array.isArray(ve)),u(r%16==0),ve.length=0;for(var t;t=j[e++];){var o=String.fromCharCode(t),i=["d","f","i","p"];i.push("j"),u(i.includes(o),`Invalid character ${t}("${o}") in readEmAsmArgs! Use only [${i}], and do not specify "v" for void return argument.`);var a=t!=105;a&=t!=112,r+=a&&r%8?4:0,ve.push(t==112?E[r>>2]:t==106?N[r>>3]:t==105?y[r>>2]:Pe[r>>3]),r+=a?8:4}return ve},rt=(e,r,t)=>{var o=et(r,t);return u(Ve.hasOwnProperty(e),`No EM_ASM constant found at address ${e}. The loaded WebAssembly file is likely out of sync with the generated JavaScript.`),Ve[e](...o)},tt=(e,r,t)=>rt(e,r,t),nt=()=>Date.now(),ot=e=>{w(`Cannot enlarge memory arrays to size ${e} bytes (OOM). Either (1) compile with -sINITIAL_MEMORY=X with X higher than the current value ${x.length}, (2) compile with -sALLOW_MEMORY_GROWTH which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with -sABORTING_MALLOC=0`)},it=e=>{j.length,e>>>=0,ot(e)};function at(e){try{var r=F.getStreamFromFD(e);return n.close(r),0}catch(t){if(typeof n>"u"||t.name!=="ErrnoError")throw t;return t.errno}}var st=(e,r,t,o)=>{for(var i=0,a=0;a<t;a++){var s=E[r>>2],l=E[r+4>>2];r+=8;var c=n.read(e,x,s,l,o);if(c<0)return-1;if(i+=c,c<l)break}return i};function lt(e,r,t,o){try{var i=F.getStreamFromFD(e),a=st(i,r,t);return E[o>>2]=a,0}catch(s){if(typeof n>"u"||s.name!=="ErrnoError")throw s;return s.errno}}function dt(e,r,t,o){r=Ge(r);try{if(isNaN(r))return 61;var i=F.getStreamFromFD(e);return n.llseek(i,r,t),N[o>>3]=BigInt(i.position),i.getdents&&r===0&&t===0&&(i.getdents=null),0}catch(a){if(typeof n>"u"||a.name!=="ErrnoError")throw a;return a.errno}}var ct=(e,r,t,o)=>{for(var i=0,a=0;a<t;a++){var s=E[r>>2],l=E[r+4>>2];r+=8;var c=n.write(e,x,s,l,o);if(c<0)return-1;if(i+=c,c<l)break}return i};function ut(e,r,t,o){try{var i=F.getStreamFromFD(e),a=ct(i,r,t);return E[o>>2]=a,0}catch(s){if(typeof n>"u"||s.name!=="ErrnoError")throw s;return s.errno}}n.createPreloadedFile=Ir,n.preloadFile=He,n.staticInit();{if(d.noExitRuntime&&(Ee=d.noExitRuntime),d.preloadPlugins&&(We=d.preloadPlugins),d.print&&(z=d.print),d.printErr&&(S=d.printErr),d.wasmBinary&&(Q=d.wasmBinary),vt(),d.arguments&&d.arguments,d.thisProgram&&d.thisProgram,u(typeof d.memoryInitializerPrefixURL>"u","Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),u(typeof d.pthreadMainPrefixURL>"u","Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),u(typeof d.cdInitializerPrefixURL>"u","Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),u(typeof d.filePackagePrefixURL>"u","Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),u(typeof d.read>"u","Module.read option was removed"),u(typeof d.readAsync>"u","Module.readAsync option was removed (modify readAsync in JS)"),u(typeof d.readBinary>"u","Module.readBinary option was removed (modify readBinary in JS)"),u(typeof d.setWindowTitle>"u","Module.setWindowTitle option was removed (modify emscripten_set_window_title in JS)"),u(typeof d.TOTAL_MEMORY>"u","Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY"),u(typeof d.ENVIRONMENT>
1"u","Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -sENVIRONMENT=web or -sENVIRONMENT=node)"),u(typeof d.STACK_SIZE>"u","STACK_SIZE can no longer be set at runtime. Use -sSTACK_SIZE at link time"),u(typeof d.wasmMemory>"u","Use of `wasmMemory` detected. Use -sIMPORTED_MEMORY to define wasmMemory externally"),u(typeof d.INITIAL_MEMORY>"u","Detected runtime INITIAL_MEMORY setting. Use -sIMPORTED_MEMORY to define wasmMemory dynamically"),d.preInit)for(typeof d.preInit=="function"&&(d.preInit=[d.preInit]);d.preInit.length>0;)d.preInit.shift()();le("preInit")}d.FS=n;var ft=["writeI53ToI64","writeI53ToI64Clamped","writeI53ToI64Signaling","writeI53ToU64Clamped","writeI53ToU64Signaling","readI53FromI64","readI53FromU64","convertI32PairToI53","convertI32PairToI53Checked","convertU32PairToI53","stackAlloc","getTempRet0","setTempRet0","createNamedFunction","zeroMemory","getHeapMax","growMemory","withStackSave","inetPton4","inetNtop4","inetPton6","inetNtop6","readSockaddr","writeSockaddr","runMainThreadEmAsm","jstoi_q","getExecutableName","autoResumeAudioContext","getDynCaller","dynCall","runtimeKeepalivePush","runtimeKeepalivePop","asmjsMangle","alignMemory","HandleAllocator","addOnInit","addOnPostCtor","addOnPreMain","addOnExit","STACK_SIZE","STACK_ALIGN","POINTER_SIZE","ASSERTIONS","ccall","cwrap","convertJsFunctionToWasm","getEmptyTableSlot","updateTableMap","getFunctionAddress","addFunction","removeFunction","intArrayToString","AsciiToString","stringToAscii","UTF16ToString","stringToUTF16","lengthBytesUTF16","UTF32ToString","stringToUTF32","lengthBytesUTF32","stringToNewUTF8","stringToUTF8OnStack","writeArrayToMemory","registerKeyEventCallback","maybeCStringToJsString","findEventTarget","getBoundingClientRect","fillMouseEventData","registerMouseEventCallback","registerWheelEventCallback","registerUiEventCallback","registerFocusEventCallback","fillDeviceOrientationEventData","registerDeviceOrientationEventCallback","fillDeviceMotionEventData","registerDeviceMotionEventCallback","screenOrientation","fillOrientationChangeEventData","registerOrientationChangeEventCallback","fillFullscreenChangeEventData","registerFullscreenChangeEventCallback","JSEvents_requestFullscreen","JSEvents_resizeCanvasForFullscreen","registerRestoreOldStyle","hideEverythingExceptGivenElement","restoreHiddenElements","setLetterbox","softFullscreenResizeWebGLRenderTarget","doRequestFullscreen","fillPointerlockChangeEventData","registerPointerlockChangeEventCallback","registerPointerlockErrorEventCallback","requestPointerLock","fillVisibilityChangeEventData","registerVisibilityChangeEventCallback","registerTouchEventCallback","fillGamepadEventData","registerGamepadEventCallback","registerBeforeUnloadEventCallback","fillBatteryEventData","registerBatteryEventCallback","setCanvasElementSize","getCanvasElementSize","jsStackTrace","getCallstack","convertPCtoSourceLocation","getEnvStrings","checkWasiClock","wasiRightsToMuslOFlags","wasiOFlagsToMuslOFlags","safeSetTimeout","setImmediateWrapped","safeRequestAnimationFrame","clearImmediateWrapped","registerPostMainLoop","registerPreMainLoop","getPromise","makePromise","idsToPromises","makePromiseCallback","ExceptionInfo","findMatchingCatch","Browser_asyncPrepareDataCounter","arraySum","addDays","getSocketFromFD","getSocketAddress","FS_mkdirTree","_setNetworkCallback","heapObjectForWebGLType","toTypedArrayIndex","webgl_enable_ANGLE_instanced_arrays","webgl_enable_OES_vertex_array_object","webgl_enable_WEBGL_draw_buffers","webgl_enable_WEBGL_multi_draw","webgl_enable_EXT_polygon_offset_clamp","webgl_enable_EXT_clip_control","webgl_enable_WEBGL_polygon_mode","emscriptenWebGLGet","computeUnpackAlignedImageSize","colorChannelsInGlTextureFormat","emscriptenWebGLGetTexPixelData","emscriptenWebGLGetUniform","webglGetUniformLocation","webglPrepareUniformLocationsBeforeFirstUse","webglGetLeftBracePos","emscriptenWebGLGetVertexAttrib","__glGetActiveAttribOrUniform","writeGLArray","registerWebGlEventCallback","runAndAbortIfError","ALLOC_NORMAL","ALLOC_STACK","allocate","
1writeStringToMemory","writeAsciiToMemory","allocateUTF8","allocateUTF8OnStack","demangle","stackTrace","getNativeTypeSize"];ft.forEach(sr);var mt=["run","out","err","callMain","abort","wasmExports","HEAPF32","HEAPF64","HEAP8","HEAP16","HEAPU16","HEAP32","HEAPU32","HEAP64","HEAPU64","writeStackCookie","checkStackCookie","INT53_MAX","INT53_MIN","bigintToI53Checked","stackSave","stackRestore","ptrToString","exitJS","abortOnCannotGrowMemory","ENV","ERRNO_CODES","strError","DNS","Protocols","Sockets","timers","warnOnce","readEmAsmArgsArray","readEmAsmArgs","runEmAsmFunction","handleException","keepRuntimeAlive","callUserCallback","maybeExit","asyncLoad","mmapAlloc","wasmTable","wasmMemory","getUniqueRunDependency","noExitRuntime","addRunDependency","removeRunDependency","addOnPreRun","addOnPostRun","freeTableIndexes","functionsInTableMap","setValue","getValue","PATH","PATH_FS","UTF8Decoder","UTF8ArrayToString","UTF8ToString","stringToUTF8Array","stringToUTF8","lengthBytesUTF8","intArrayFromString","UTF16Decoder","JSEvents","specialHTMLTargets","findCanvasEventTarget","currentFullscreenStrategy","restoreOldWindowedStyle","UNWIND_CACHE","ExitStatus","doReadv","doWritev","initRandomFill","randomFill","emSetImmediate","emClearImmediate_deps","emClearImmediate","promiseMap","uncaughtExceptionCount","exceptionLast","exceptionCaught","Browser","requestFullscreen","requestFullScreen","setCanvasSize","getUserMedia","createContext","getPreloadedImageData__data","wget","MONTH_DAYS_REGULAR","MONTH_DAYS_LEAP","MONTH_DAYS_REGULAR_CUMULATIVE","MONTH_DAYS_LEAP_CUMULATIVE","isLeapYear","ydayFromDate","SYSCALLS","preloadPlugins","FS_createPreloadedFile","FS_preloadFile","FS_modeStringToFlags","FS_getMode","FS_stdin_getChar_buffer","FS_stdin_getChar","FS_unlink","FS_createPath","FS_createDevice","FS_readFile","FS_root","FS_mounts","FS_devices","FS_streams","FS_nextInode","FS_nameTable","FS_currentPath","FS_initialized","FS_ignorePermissions","FS_filesystems","FS_syncFSRequests","FS_readFiles","FS_lookupPath","FS_getPath","FS_hashName","FS_hashAddNode","FS_hashRemoveNode","FS_lookupNode","FS_createNode","FS_destroyNode","FS_isRoot","FS_isMountpoint","FS_isFile","FS_isDir","FS_isLink","FS_isChrdev","FS_isBlkdev","FS_isFIFO","FS_isSocket","FS_flagsToPermissionString","FS_nodePermissions","FS_mayLookup","FS_mayCreate","FS_mayDelete","FS_mayOpen","FS_checkOpExists","FS_nextfd","FS_getStreamChecked","FS_getStream","FS_createStream","FS_closeStream","FS_dupStream","FS_doSetAttr","FS_chrdev_stream_ops","FS_major","FS_minor","FS_makedev","FS_registerDevice","FS_getDevice","FS_getMounts","FS_syncfs","FS_mount","FS_unmount","FS_lookup","FS_mknod","FS_statfs","FS_statfsStream","FS_statfsNode","FS_create","FS_mkdir","FS_mkdev","FS_symlink","FS_rename","FS_rmdir","FS_readdir","FS_readlink","FS_stat","FS_fstat","FS_lstat","FS_doChmod","FS_chmod","FS_lchmod","FS_fchmod","FS_doChown","FS_chown","FS_lchown","FS_fchown","FS_doTruncate","FS_truncate","FS_ftruncate","FS_utime","FS_open","FS_close","FS_isClosed","FS_llseek","FS_read","FS_write","FS_mmap","FS_msync","FS_ioctl","FS_writeFile","FS_cwd","FS_chdir","FS_createDefaultDirectories","FS_createDefaultDevices","FS_createSpecialDirectories","FS_createStandardStreams","FS_staticInit","FS_init","FS_quit","FS_findObject","FS_analyzePath","FS_createFile","FS_createDataFile","FS_forceLoadFile","FS_createLazyFile","FS_absolutePath","FS_createFolder","FS_createLink","FS_joinPath","FS_mmapAlloc","FS_standardizePath","MEMFS","TTY","PIPEFS","SOCKFS","tempFixedLengthArray","miniTempWebGLFloatBuffers","miniTempWebGLIntBuffers","GL","AL","GLUT","EGL","GLEW","IDBStore","SDL","SDL_gfx","print","printErr","jstoi_s"];mt.forEach(Re);function vt(){ir("fetchSettings")}var Ve={80692:(e,r,t,o)=>workerApi.disks.write(e,r,t,o),80742:(e,r,t,o)=>workerApi.disks.read(e,r,t,o),80791:e=>workerApi.disks.size(e),80828:e=>{workerApi.sleep(e)},80853:e=>{workerApi.disks.close(e)},80884:()=>{workerApi.blit(0,0)},80910:(e,r,t,o,i,a)=>{workerApi.blit(e,r,{top:t,left:o,bottom:i,right:a})},80982:(e,r)=>workerApi.enqueueAudio(e,r),81025:e=>workerApi.disks.open(Se(e)),81076:e=>{workerApi.disks.close(e)},81107:()=>workerApi.acquireInputLock(),81148:()=>workerApi.getInputValue(workerApi.InputBufferAddresses.mouseButtonStateAddr),81237:()=>workerApi.getInputValue(workerApi.InputBufferAddresses.mousePositionFlagAddr),81327:()=>workerApi.getInputValue(workerApi.InputBufferAddresses.mousePositionXAddr),81414:()=>workerApi.getInputValue(workerApi.InputBufferAddresses.mousePositionYAddr),81501:()=>workerApi.getInputValue(workerApi.InputBufferAddresses.keyEventFlagAddr),81586:()=>workerApi.getInputValue(workerApi.InputBufferAddresses.keyCodeAddr),81666:()=>workerApi.getInputValue(workerApi.InputBufferAddresses.keyStateAddr),81747:()=>workerApi.getInputValue(workerApi.InputBufferAddresses.speedFlagAddr),81829:()=>workerApi.getInputValue(workerApi.InputBufferAddresses.speedAddr),81907:()=>{workerApi.releaseInputLock()},81941:(e,r,t)=>{workerApi.didOpenAudio(e,r,t)},81981:(e,r)=>{workerApi.didOpenVideo(e,r)}};function pt(){const e=workerApi.disks.consumeDiskName();if(!e||!e.length)return 0;const r=me(e)+1,t=Ye(r);return oe(e,t,r),t}d._free=I("_free");var Ye=d._malloc=I("_malloc"),qe=d._main=I("_main"),Te=I("_fflush"),Xe=I("__emscripten_timeout"),Ke=I("_strerror"),be=I("_emscripten_stack_get_end"),Je=I("_emscripten_stack_init"),Ze=I("_emscripten_stack_get_current"),Qe=I("wasmMemory");function _t(e){u(typeof e.free<"u","missing Wasm export: free"),u(typeof e.malloc<"u","missing Wasm export: malloc"),u(typeof e.main<"u","missing Wasm export: main"),u(typeof e.fflush<"u","missing Wasm export: fflush"),u(typeof e._emscripten_timeout<"u","missing Wasm export: _emscripten_timeout"),u(typeof e.strerror<"u","missing Wasm export: strerror"),u(typeof e.emscripten_stack_get_end<"u","missing Wasm export: emscripten_stack_get_end"),u(typeof e.emscripten_stack_get_base<"u","missing Wasm export: emscripten_stack_get_base"),u(typeof e.emscripten_stack_init<"u","missing Wasm export: emscripten_stack_init"),u(typeof e.emscripten_stack_get_free<"u","missing Wasm export: emscripten_stack_get_free"),u(typeof e._emscripten_stack_restore<"u","missing Wasm export: _emscripten_stack_restore"),u(typeof e._emscripten_stack_alloc<"u","missing Wasm export: _emscripten_stack_alloc"),u(typeof e.emscripten_stack_get_current<"u","missing Wasm export: emscripten_stack_get_current"),u(typeof e.__cxa_increment_exception_refcount<"u","missing Wasm export: __cxa_increment_exception_refcount"),u(typeof e.memory<"u","missing Wasm export: memory"),u(typeof e.__indirect_function_table<"u","missing Wasm export: __indirect_function_table"),d._free=$("free",1),Ye=d._malloc=$("malloc",1),qe=d._main=$("main",2),Te=$("fflush",1),Xe=$("_emscripten_timeout",2),Ke=$("strerror",1),be=e.emscripten_stack_get_end,e.emscripten_stack_get_base,Je=e.emscripten_stack_init,e.emscripten_stack_get_free,e._emscripten_stack_restore,e._emscripten_stack_alloc,Ze=e.emscripten_stack_get_current,Qe=e.memory,e.__indirect_function_table}
1var er={__syscall_fcntl64:Mr,__syscall_ioctl:Cr,__syscall_openat:xr,__syscall_rmdir:Lr,__syscall_unlinkat:Ur,_abort_js:Br,_emscripten_runtime_keepalive_clear:zr,_localtime_js:Yr,_setitimer_js:Zr,_tzset_js:Qr,consumeDiskName:pt,emscripten_asm_const_int:tt,emscripten_date_now:nt,emscripten_resize_heap:it,fd_close:at,fd_read:lt,fd_seek:dt,fd_write:ut,proc_exit:je},rr;function ht(){u(B==0,'cannot call main when async dependencies remain! (listen on Module["onRuntimeInitialized"])'),u(typeof ue>"u"||ue.length==0,"cannot call main when preRun functions remain to be called");var e=qe,r=0,t=0;try{var o=e(r,t);return $e(o,!0),o}catch(i){return Fe(i)}}function Et(){Je(),or()}function De(){if(B>0){ne=De;return}if(Et(),dr(),B>0){ne=De;return}function e(){var t;if(u(!rr),rr=!0,d.calledRun=!0,!G){cr(),ur(),de==null||de(d),(t=d.onRuntimeInitialized)==null||t.call(d),le("onRuntimeInitialized");var r=d.noInitialRun||!1;r||ht(),fr()}}d.setStatus?(d.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>d.setStatus(""),1),e()},1)):e(),ee()}function gt(){var c;var e=z,r=S,t=!1;z=S=f=>{t=!0};try{Te(0);for(var o of["stdout","stderr"]){var i=n.analyzePath("/dev/"+o);if(!i)return;var a=i.object,s=a.rdev,l=U.ttys[s];(c=l==null?void 0:l.output)!=null&&c.length&&(t=!0)}}catch{}z=e,S=r,t&&L("stdio streams had content in them that was not flushed. you should set EXIT_RUNTIME to 1 (see the Emscripten FAQ), or make sure to emit a newline when you printf etc.")}var J;J=await gr(),De(),re?O=d:O=new Promise((e,r)=>{de=e,W=r});for(const e of Object.keys(d))e in C||Object.defineProperty(C,e,{configurable:!0,get(){w(`Access to module property ('${e}') is no longer possible via the module constructor argument; Instead, use the result of the module constructor.`)}});return O}export{kt as default};
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.