moorhen 0.6.5 → 0.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var createRSRModule=(()=>{var e="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(e=e||__filename),function(t={}){function r(){return x.buffer!=U.buffer&&X(),U}function n(){return x.buffer!=U.buffer&&X(),B}function i(){return x.buffer!=U.buffer&&X(),z}function o(){return x.buffer!=U.buffer&&X(),H}function a(){return x.buffer!=U.buffer&&X(),G}function s(){return x.buffer!=U.buffer&&X(),Y}function c(){return x.buffer!=U.buffer&&X(),K}var d,l,f=t;f.ready=new Promise(((e,t)=>{d=e,l=t})),["_main","__emscripten_thread_init","__emscripten_thread_exit","__emscripten_thread_crashed","__emscripten_thread_mailbox_await","__emscripten_tls_init","_pthread_self","checkMailbox","establishStackSpace","invokeEntryPoint","PThread","getExceptionMessage","___get_exception_message","_free","___indirect_function_table","_fflush","__ZN5boost13serialization16singleton_module8get_lockEv","__ZNK5boost7archive6detail11oserializerINS0_13text_oarchiveEN5RDKit9MolBundleEE16save_object_dataERNS1_14basic_oarchiveEPKv","__ZNK5boost7archive6detail11oserializerINS0_13text_oarchiveENSt3__26vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS9_ISB_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv","__ZNK5boost7archive6detail11iserializerINS0_13text_iarchiveEN5RDKit9MolBundleEE16load_object_dataERNS1_14basic_iarchiveEPvj","__ZNK5boost7archive6detail11iserializerINS0_13text_iarchiveENSt3__26vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS9_ISB_EEEEE16load_object_dataERNS1_14basic_iarchiveEPvj","__embind_initialize_bindings","__emscripten_check_mailbox","___set_stack_limits","onRuntimeInitialized"].forEach((e=>{Object.getOwnPropertyDescriptor(f.ready,e)||Object.defineProperty(f.ready,e,{get:()=>_e("You are getting "+e+" on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"),set:()=>_e("You are setting "+e+" on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")})})),f.expectedDataFileDownloads||(f.expectedDataFileDownloads=0),f.expectedDataFileDownloads++,f.ENVIRONMENT_IS_PTHREAD||f.$ww||function(e){"object"==typeof window?window.encodeURIComponent(window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/"):"undefined"==typeof process&&"undefined"!=typeof location&&encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/");var t="moorhen.data";"function"!=typeof f.locateFilePackage||f.locateFile||(f.locateFile=f.locateFilePackage,$("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)"));var r=f.locateFile?f.locateFile(t,""):t,n=e.remote_package_size,i=null,o=f.getPreloadedPackage?f.getPreloadedPackage(r,n):null;function a(){function t(e,t){if(!e)throw t+(new Error).stack}function r(e,t,r){this.start=e,this.end=t,this.audio=r}f.FS_createPath("/","data",!0,!0),f.FS_createPath("/data","RDKit",!0,!0),f.FS_createPath("/data/RDKit","Data",!0,!0),f.FS_createPath("/data","ccp4_lib",!0,!0),f.FS_createPath("/data/ccp4_lib","data",!0,!0),f.FS_createPath("/data/ccp4_lib/data","monomers",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","a",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","c",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","d",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","e",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","g",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","h",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","i",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","l",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","list",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","m",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","n",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","p",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","s",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","t",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","u",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","v",!0,!0),f.FS_createPath("/data","coot",!0,!0),f.FS_createPath("/data/coot","data",!0,!0),f.FS_createPath("/data/coot/data","metal",!0,!0),f.FS_createPath("/data/coot","rama-data",!0,!0),r.prototype={requests:{},open:function(e,t){this.name=t,this.requests[t]=this,f.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){var e=this.byteArray.subarray(this.start,this.end);this.finish(e)},finish:function(e){f.FS_createDataFile(this.name,null,e,!0,!0,!0),f.removeRunDependency(`fp ${this.name}`),this.requests[this.name]=null}};for(var n=e.files,a=0;a<n.length;++a)new r(n[a].start,n[a].end,n[a].audio||0).open("GET",n[a].filename);function s(n){t(n,"Loading data file failed."),t(n.constructor.name===ArrayBuffer.name,"bad input to processPackageData");var i=new Uint8Array(n);r.prototype.byteArray=i;for(var o=e.files,a=0;a<o.length;++a)r.prototype.requests[o[a].filename].onload();f.removeRunDependency("datafile_moorhen.data")}f.addRunDependency("datafile_moorhen.data"),f.preloadResults||(f.preloadResults={}),f.preloadResults["moorhen.data"]={fromCache:!1},o?(s(o),o=null):i=s}o||function(e,t,r,n){if("object"!=typeof process||"object"!=typeof process.versions||"string"!=typeof process.versions.node){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onprogress=function(r){var n=e,o=t;if(r.total&&(o=r.total),r.loaded){i.addedTotal?f.dataFileDownloads[n].loaded=r.loaded:(i.addedTotal=!0,f.dataFileDownloads||(f.dataFileDownloads={}),f.dataFileDownloads[n]={loaded:r.loaded,total:o});var a=0,s=0,c=0;for(var d in f.dataFileDownloads){var l=f.dataFileDownloads[d];a+=l.total,s+=l.loaded,c++}a=Math.ceil(a*f.expectedDataFileDownloads/c),f.setStatus&&f.setStatus(`Downloading data... (${s}/${a})`)}else f.dataFileDownloads||f.setStatus&&f.setStatus("Downloading data...")},i.onerror=function(t){throw new Error("NetworkError for: "+e)},i.onload=function(e){if(!(200==i.status||304==i.status||206==i.status||0==i.status&&i.response))throw new Error(i.statusText+" : "+i.responseURL);var t=i.response;r(t)},i.send(null)}else require("fs").readFile(e,(function(e,t){var n;e?(n=e,console.error("package error:",n)):r(t.buffer)}))}(r,n,(function(e){i?(i(e),i=null):o=e})),f.calledRun?a():(f.preRun||(f.preRun=[]),f.preRun.push(a))}({files:[{filename:"/data/RDKit/Data/BaseFeatures.fdef",start:0,end:6803},{filename:"/data/ccp4_lib/data/monomers/a/A.cif",start:6803,end:23075},{filename:"/data/ccp4_lib/data/monomers/a/ADP.cif",start:23075,end:40846},{filename:"/data/ccp4_lib/data/monomers/a/ALA.cif",start:40846,end:45216},{filename:"/data/ccp4_lib/data/monomers/a/ARG.cif",start:45216,end:52281},{filename:"/data/ccp4_lib/data/monomers/a/ASN.cif",start:52281,end:57522},{filename:"/data/ccp4_lib/data/monomers/a/ASP.cif",start:57522,end:62348},{filename:"/data/ccp4_lib/data/monomers/a/ATP.cif",start:62348,end:81580},{filename:"/data/ccp4_lib/data/monomers/c/C.cif",start:81580,end:96641},{filename:"/data/ccp4_lib/data/monomers/c/CIT.cif",start:96641,end:105224},{filename:"/data/ccp4_lib/data/monomers/c/CYS.cif",start:105224,end:109772},{filename:"/data/ccp4_lib/data/monomers/d/DA.cif",start:109772,end:125835},{filename:"/data/ccp4_lib/data/monomers/d/DC.cif",start:125835,end:140726},{filename:"/data/ccp4_lib/data/monomers/d/DG.cif",start:140726,end:157145},{filename:"/data/ccp4_lib/data/monomers/d/DT.cif",start:157145,end:172562},{filename:"/data/ccp4_lib/data/monomers/e/EDO.cif",start:172562,end:177627},{filename:"/data/ccp4_lib/data/monomers/ener_lib.cif",start:177627,end:287358},{filename:"/data/ccp4_lib/data/monomers/g/G.cif",start:287358,end:303957},{filename:"/data/ccp4_lib/data/monomers/g/GLN.cif",start:303957,end:309735},{filename:"/data/ccp4_lib/data/monomers/g/GLU.cif",start:309735,end:315075},{filename:"/data/ccp4_lib/data/monomers/g/GLY.cif",start:315075,end:318723},{filename:"/data/ccp4_lib/data/monomers/g/GOL.cif",start:318723,end:325306},{filename:"/data/ccp4_lib/data/monomers/h/HIS.cif",start:325306,end:335861},{filename:"/data/ccp4_lib/data/monomers/h/HOH.cif",start:335861,end:337124},{filename:"/data/ccp4_lib/data/monomers/i/ILE.cif",start:337124,end:343165},{filename:"/data/ccp4_lib/data/monomers/l/LEU.cif",start:343165,end:349149},{filename:"/data/ccp4_lib/data/monomers/l/LYS.cif",start:349149,end:355542},{filename:"/data/ccp4_lib/data/monomers/list/mon_lib_list.cif",start:355542,end:4364173},{filename:"/data/ccp4_lib/data/monomers/m/MET.cif",start:4364173,end:4369713},{filename:"/data/ccp4_lib/data/monomers/m/MSE.cif",start:4369713,end:4375313},{filename:"/data/ccp4_lib/data/monomers/n/NA.cif",start:4375313,end:4375950},{filename:"/data/ccp4_lib/data/monomers/p/PEG.cif",start:4375950,end:4383278},{filename:"/data/ccp4_lib/data/monomers/p/PHE.cif",start:4383278,end:4389770},{filename:"/data/ccp4_lib/data/monomers/p/PO4.cif",start:4389770,end:4393303},{filename:"/data/ccp4_lib/data/monomers/p/PRO.cif",start:4393303,end:4398446},{filename:"/data/ccp4_lib/data/monomers/s/SER.cif",start:4398446,end:4402999},{filename:"/data/ccp4_lib/data/monomers/s/SO4.cif",start:4402999,end:4406530},{filename:"/data/ccp4_lib/data/monomers/t/THR.cif",start:4406530,end:4411680},{filename:"/data/ccp4_lib/data/monomers/t/TRP.cif",start:4411680,end:4419268},{filename:"/data/ccp4_lib/data/monomers/t/TYR.cif",start:4419268,end:4425926},{filename:"/data/ccp4_lib/data/monomers/u/U.cif",start:4425926,end:4440579},{filename:"/data/ccp4_lib/data/monomers/v/VAL.cif",start:4440579,end:4446038},{filename:"/data/ccp4_lib/data/syminfo.lib",start:4446038,end:4769084},{filename:"/data/coot/data/metal/metal-N-distance.table",start:4769084,end:4769710},{filename:"/data/coot/data/metal/metal-O-distance.table",start:4769710,end:4770398},{filename:"/data/coot/data/metal/metal-S-distance.table",start:4770398,end:4770998},{filename:"/data/coot/rama-data/rama500-general.data",start:4770998,end:5493558},{filename:"/data/coot/rama-data/rama500-gly-sym.data",start:5493558,end:6309487},{filename:"/data/coot/rama-data/rama500-prepro.data",start:6309487,end:6669493},{filename:"/data/coot/rama-data/rama500-pro.data",start:6669493,end:6922050},{filename:"/data/coot/rama-data/rota500-asn.data",start:6922050,end:7042551},{filename:"/data/coot/rama-data/rota500-asp.data",start:7042551,end:7105393},{filename:"/data/coot/rama-data/rota500-cys.data",start:7105393,end:7113034},{filename:"/data/coot/rama-data/rota500-gln.data",start:7113034,end:8435620},{filename:"/data/coot/rama-data/rota500-glu.data",start:8435620,end:9707593},{filename:"/data/coot/rama-data/rota500-his.data",start:9707593,end:9822769},{filename:"/data/coot/rama-data/rota500-ile.data",start:9822769,end:9924374},{filename:"/data/coot/rama-data/rota500-leu.data",start:9924374,end:10029733},{filename:"/data/coot/rama-data/rota500-met.data",start:10029733,end:11019814},{filename:"/data/coot/rama-data/rota500-phetyr.data",start:11019814,end:11075713},{filename:"/data/coot/rama-data/rota500-pro.data",start:11075713,end:11078557},{filename:"/data/coot/rama-data/rota500-ser.data",start:11078557,end:11088015},{filename:"/data/coot/rama-data/rota500-thr.data",start:11088015,end:11097149},{filename:"/data/coot/rama-data/rota500-trp.data",start:11097149,end:11179917},{filename:"/data/coot/rama-data/rota500-val.data",start:11179917,end:11189371},{filename:"/data/coot/standard-residues.pdb",start:11189371,end:11219666}],remote_package_size:11219666}),(f.ENVIRONMENT_IS_PTHREAD||f.$ww)&&(f.preRun=[]);var u=f.preRun.slice();if(f.preRun||(f.preRun=[]),f.preRun.push((function(){pn.COOT_DATA_DIR="data/coot"})),f.preRun.push((function(){pn.CCP4_LIB="data/ccp4_lib"})),f.preRun.push((function(){pn.COOT_BACKUP_DIR="COOT_BACKUP"})),f.preRun.push((function(){pn.SYMINFO="data/ccp4_lib/data/syminfo.lib"})),!f.preRun)throw"Module.preRun should exist because file support used it; did a pre-js delete it?";u.forEach((function(e){if(f.preRun.indexOf(e)<0)throw"All preRun tasks that exist before user pre-js code should remain after; did you replace Module or modify Module.preRun?"}));var h=Object.assign({},f),m=[],p="./this.program",v=(e,t)=>{throw t},_="object"==typeof window,y="function"==typeof importScripts,g="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,w=!_&&!g&&!y;if(f.ENVIRONMENT)throw new Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -sENVIRONMENT=web or -sENVIRONMENT=node)");var E,b,k,S=f.ENVIRONMENT_IS_PTHREAD||!1,T="";function P(e){return f.locateFile?f.locateFile(e,T):T+e}if(g){if("undefined"==typeof process||!process.release||"node"!==process.release.name)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?)");var F=process.versions.node,C=F.split(".").slice(0,3);if((C=1e4*C[0]+100*C[1]+1*C[2].split("-")[0])<16e4)throw new Error("This emscripten-generated code requires node v16.0.0 (detected v"+F+")");var A=require("fs"),N=require("path");let e;T=y?N.dirname(T)+"/":__dirname+"/",E=(e,t)=>(e=be(e)?new URL(e):N.normalize(e),A.readFileSync(e,t?void 0:"utf8")),k=e=>{var t=E(e,!0);return t.buffer||(t=new Uint8Array(t)),Z(t.buffer),t},b=(e,t,r,n=!0)=>{e=be(e)?new URL(e):N.normalize(e),A.readFile(e,n?void 0:"utf8",((e,i)=>{e?r(e):t(n?i.buffer:i)}))},!f.thisProgram&&process.argv.length>1&&(p=process.argv[1].replace(/\\/g,"/")),m=process.argv.slice(2),v=(e,t)=>{throw process.exitCode=e,t},f.inspect=()=>"[Emscripten Module object]";try{e=require("worker_threads")}catch(e){throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'),e}global.Worker=e.Worker}else if(w){if("object"==typeof process&&"function"==typeof require||"object"==typeof window||"function"==typeof importScripts)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?)");"undefined"!=typeof read&&(E=read),k=e=>{if("function"==typeof readbuffer)return new Uint8Array(readbuffer(e));let t=read(e,"binary");return Z("object"==typeof t),t},b=(e,t,r)=>{setTimeout((()=>t(k(e))))},"undefined"==typeof clearTimeout&&(globalThis.clearTimeout=e=>{}),"undefined"==typeof setTimeout&&(globalThis.setTimeout=e=>"function"==typeof e?e():_e()),"undefined"!=typeof scriptArgs?m=scriptArgs:void 0!==arguments&&(m=arguments),"function"==typeof quit&&(v=(e,t)=>{throw setTimeout((()=>{if(!(t instanceof je)){let e=t;t&&"object"==typeof t&&t.stack&&(e=[t,t.stack]),$(`exiting due to exception: ${e}`)}quit(e)})),t}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)}else{if(!_&&!y)throw new Error("environment detection error");if(y?T=self.location.href:"undefined"!=typeof document&&document.currentScript&&(T=document.currentScript.src),e&&(T=e),T=0!==T.indexOf("blob:")?T.substr(0,T.replace(/[?#].*/,"").lastIndexOf("/")+1):"","object"!=typeof window&&"function"!=typeof importScripts)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?)");g||(E=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},y&&(k=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),b=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)})}g&&"undefined"==typeof performance&&(global.performance=require("perf_hooks").performance);var D=console.log.bind(console),O=console.error.bind(console);g&&(D=(...e)=>A.writeSync(1,e.join(" ")+"\n"),O=(...e)=>A.writeSync(2,e.join(" ")+"\n"));var M,I,R=f.print||D,$=f.printErr||O;Object.assign(f,h),h=null,M="fetchSettings",Object.getOwnPropertyDescriptor(f,M)&&_e(`\`Module.${M}\` was supplied but \`${M}\` not included in INCOMING_MODULE_JS_API`),f.arguments&&(m=f.arguments),Ae("arguments","arguments_"),f.thisProgram&&(p=f.thisProgram),Ae("thisProgram","thisProgram"),f.quit&&(v=f.quit),Ae("quit","quit_"),Z(void 0===f.memoryInitializerPrefixURL,"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),Z(void 0===f.pthreadMainPrefixURL,"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),Z(void 0===f.cdInitializerPrefixURL,"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),Z(void 0===f.filePackagePrefixURL,"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),Z(void 0===f.read,"Module.read option was removed (modify read_ in JS)"),Z(void 0===f.readAsync,"Module.readAsync option was removed (modify readAsync in JS)"),Z(void 0===f.readBinary,"Module.readBinary option was removed (modify readBinary in JS)"),Z(void 0===f.setWindowTitle,"Module.setWindowTitle option was removed (modify emscripten_set_window_title in JS)"),Z(void 0===f.TOTAL_MEMORY,"Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY"),Ae("asm","wasmExports"),Ae("read","read_"),Ae("readAsync","readAsync"),Ae("readBinary","readBinary"),Ae("setWindowTitle","setWindowTitle"),Z(_||y||g,"Pthreads do not work in this environment yet (need Web Workers, or an alternative to them)"),Z(!w,"shell environment detected but not enabled at build time. Add 'shell' to `-sENVIRONMENT` to enable."),f.wasmBinary&&(I=f.wasmBinary),Ae("wasmBinary","wasmBinary");var x,L,j=f.noExitRuntime||!0;Ae("noExitRuntime","noExitRuntime"),"object"!=typeof WebAssembly&&_e("no native wasm support detected");var W,U,B,z,H,G,Y,V,K,q=!1;function Z(e,t){e||_e("Assertion failed"+(t?": "+t:""))}function X(){var e=x.buffer;f.HEAP8=U=new Int8Array(e),f.HEAP16=z=new Int16Array(e),f.HEAPU8=B=new Uint8Array(e),f.HEAPU16=H=new Uint16Array(e),f.HEAP32=G=new Int32Array(e),f.HEAPU32=Y=new Uint32Array(e),f.HEAPF32=V=new Float32Array(e),f.HEAPF64=K=new Float64Array(e)}Z(!f.STACK_SIZE,"STACK_SIZE can no longer be set at runtime. Use -sSTACK_SIZE at link time"),Z("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&null!=Int32Array.prototype.subarray&&null!=Int32Array.prototype.set,"JS engine does not provide full typed array support");var J=f.INITIAL_MEMORY||16777216;if(Ae("INITIAL_MEMORY","INITIAL_MEMORY"),Z(J>=5242880,"INITIAL_MEMORY should be larger than STACK_SIZE, was "+J+"! (STACK_SIZE=5242880)"),S)x=f.wasmMemory;else if(f.wasmMemory)x=f.wasmMemory;else if(!((x=new WebAssembly.Memory({initial:J/65536,maximum:32768,shared:!0})).buffer instanceof SharedArrayBuffer))throw $("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),g&&$("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),Error("bad memory");function Q(){var e=Gn();Z(0==(3&e)),0==e&&(e+=4),s()[e>>2]=34821223,$e(34821223),s()[e+4>>2]=2310721022,$e(2310721022),s()[0]=1668509029,$e(1668509029)}function ee(){if(!q){var e=Gn();0==e&&(e+=4);var t=s()[e>>2],r=s()[e+4>>2];34821223==t&&2310721022==r||_e(`Stack overflow! Stack cookie has been overwritten at ${_t(e)}, expected hex dwords 0x89BACDFE and 0x2135467, but received ${_t(r)} ${_t(t)}`),1668509029!=s()[0]&&_e("Runtime error: The application has corrupted its heap memory area (address zero)!")}}X(),Z((J=x.buffer.byteLength)%65536==0),function(){var e=new Int16Array(1),t=new Int8Array(e.buffer);if(e[0]=25459,115!==t[0]||99!==t[1])throw"Runtime error: expected the system to be little-endian! (Run with -sSUPPORT_BIG_ENDIAN to bypass)"}();var te=[],re=[],ne=[],ie=[],oe=!1,ae=0;function se(){return j||ae>0}function ce(){Z(!oe),oe=!0,S||(ee(),Pt(),f.noFSInit||ut.init.initialized||ut.init(),ut.ignorePermissions=!1,Je.init(),wt(re))}function de(e){te.unshift(e)}Z(Math.imul,"This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),Z(Math.fround,"This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),Z(Math.clz32,"This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),Z(Math.trunc,"This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");var le=0,fe=null,ue=null,he={};function me(e){for(var t=e;;){if(!he[e])return e;e=t+Math.random()}}function pe(e){le++,f.monitorRunDependencies&&f.monitorRunDependencies(le),e?(Z(!he[e]),he[e]=1,null===fe&&"undefined"!=typeof setInterval&&(fe=setInterval((()=>{if(q)return clearInterval(fe),void(fe=null);var e=!1;for(var t in he)e||(e=!0,$("still waiting on run dependencies:")),$(`dependency: ${t}`);e&&$("(end of list)")}),1e4))):$("warning: run dependency added without ID")}function ve(e){if(le--,f.monitorRunDependencies&&f.monitorRunDependencies(le),e?(Z(he[e]),delete he[e]):$("warning: run dependency removed without ID"),0==le&&(null!==fe&&(clearInterval(fe),fe=null),ue)){var t=ue;ue=null,t()}}function _e(e){f.onAbort&&f.onAbort(e),$(e="Aborted("+e+")"),q=!0,W=1;var t=new WebAssembly.RuntimeError(e);throw l(t),t}var ye,ge,we;function Ee(e){return e.startsWith("data:application/octet-stream;base64,")}function be(e){return e.startsWith("file://")}function ke(e){return function(){Z(oe,`native function \`${e}\` called before runtime initialization`);var t=Mn[e];return Z(t,`exported native function \`${e}\` not found`),t.apply(null,arguments)}}class Se extends Error{}class Te extends Se{}class Pe extends Se{constructor(e){super(e),this.excPtr=e;const t=bt(e);this.name=t[0],this.message=t[1]}}function Fe(e){if(e==ye&&I)return new Uint8Array(I);if(k)return k(e);throw"both async and sync fetching of the wasm failed"}function Ce(e,t,r){return function(e){if(!I&&(_||y)){if("function"==typeof fetch&&!be(e))return fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((()=>Fe(e)));if(b)return new Promise(((t,r)=>{b(e,(e=>t(new Uint8Array(e))),r)}))}return Promise.resolve().then((()=>Fe(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(r,(e=>{$(`failed to asynchronously prepare wasm: ${e}`),be(ye)&&$(`warning: Loading from a file URI (${ye}) 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`),_e(e)}))}function Ae(e,t,r=!0){Object.getOwnPropertyDescriptor(f,e)||Object.defineProperty(f,e,{configurable:!0,get(){_e(`\`Module.${e}\` has been replaced by \`${t}\``+(r?" (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)":""))}})}function Ne(e){return"FS_createPath"===e||"FS_createDataFile"===e||"FS_createPreloadedFile"===e||"FS_unlink"===e||"addRunDependency"===e||"FS_createLazyFile"===e||"FS_createDevice"===e||"removeRunDependency"===e}function De(e,t){"undefined"!=typeof globalThis&&Object.defineProperty(globalThis,e,{configurable:!0,get(){Ft("`"+e+"` is not longer defined by emscripten. "+t)}})}function Oe(e){Object.getOwnPropertyDescriptor(f,e)||Object.defineProperty(f,e,{configurable:!0,get(){var t="'"+e+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the Emscripten FAQ)";Ne(e)&&(t+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you"),_e(t)}})}function Me(e,t,r,n){Z(Number.isInteger(Number(e)),"attempt to write non-integer ("+e+") into integer heap"),Z(e<=n,"value ("+e+") too large to write as "+t+"-bit value"),Z(e>=r,"value ("+e+") too small to write as "+t+"-bit value")}Ee(ye="moorhen.wasm")||(ye=P(ye)),De("buffer","Please use HEAP8.buffer or wasmMemory.buffer"),De("asm","Please use wasmExports instead");var Ie=e=>Me(e,8,-127,255),Re=e=>Me(e,16,-32767,65535),$e=e=>Me(e,32,-2147483647,4294967295),xe=e=>Me(e,64,-0x8000000000000000,0x10000000000000000);function Le(e){g?A.writeSync(2,Array.from(arguments).join(" ")+"\n"):console.warn.apply(console,arguments)}function je(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var We=e=>{e.terminate(),e.onmessage=t=>{var r=t.data.cmd;$(`received "${r}" command from terminated worker: ${e.workerID}`)}},Ue=e=>{Z(!S,"Internal Error! cleanupThread() can only ever be called from main application thread!"),Z(e,"Internal Error! Null pthread_ptr in cleanupThread!");var t=gt.pthreads[e];Z(t),gt.returnWorkerToPool(t)},Be=e=>{Z(!S,"Internal Error! spawnThread() can only ever be called from main application thread!"),Z(e.pthread_ptr,"Internal error, no pthread ptr!");var t=gt.getNewWorker();if(!t)return 6;Z(!t.pthread_ptr,"Internal error!"),gt.runningWorkers.push(t),gt.pthreads[e.pthread_ptr]=t,t.pthread_ptr=e.pthread_ptr;var r={cmd:"run",start_routine:e.startRoutine,arg:e.arg,pthread_ptr:e.pthread_ptr};return g&&t.unref(),t.postMessage(r,e.transferList),0},ze={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,t)=>{for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=ze.isAbs(e),r="/"===e.substr(-1);return(e=ze.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=ze.splitPath(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},basename:e=>{if("/"===e)return"/";var t=(e=(e=ze.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:function(){var e=Array.prototype.slice.call(arguments);return ze.normalize(e.join("/"))},join2:(e,t)=>ze.normalize(e+"/"+t)},He=e=>(He=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>(e.set(crypto.getRandomValues(new Uint8Array(e.byteLength))),e);if(g)try{var e=require("crypto");if(e.randomFillSync)return t=>e.randomFillSync(t);var t=e.randomBytes;return e=>(e.set(t(e.byteLength)),e)}catch(e){}_e("no cryptographic support found for randomDevice. consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: (array) => { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };")})())(e),Ge={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:ut.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,t=ze.isAbs(n)}return(t?"/":"")+(e=ze.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||"."},relative:(e,t)=>{function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=Ge.resolve(e).substr(1),t=Ge.resolve(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),o=Math.min(n.length,i.length),a=o,s=0;s<o;s++)if(n[s]!==i[s]){a=s;break}var c=[];for(s=a;s<n.length;s++)c.push("..");return(c=c.concat(i.slice(a))).join("/")}},Ye="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,Ve=(e,t,r)=>{for(var n=t+r,i=t;e[i]&&!(i>=n);)++i;if(i-t>16&&e.buffer&&Ye)return Ye.decode(e.buffer instanceof SharedArrayBuffer?e.slice(t,i):e.subarray(t,i));for(var o="";t<i;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var c=63&e[t++];if(224==(240&a)?a=(15&a)<<12|s<<6|c:(240!=(248&a)&&Ft("Invalid UTF-8 leading byte "+_t(a)+" encountered when deserializing a UTF-8 string in wasm memory to a JS string!"),a=(7&a)<<18|s<<12|c<<6|63&e[t++]),a<65536)o+=String.fromCharCode(a);else{var d=a-65536;o+=String.fromCharCode(55296|d>>10,56320|1023&d)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o},Ke=[],qe=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},Ze=(e,t,r,n)=>{if(Z("string"==typeof e),!(n>0))return 0;for(var i=r,o=r+n-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(r>=o)break;t[r++]=s}else if(s<=2047){if(r+1>=o)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=o)break;s>1114111&&Ft("Invalid Unicode code point "+_t(s)+" encountered when serializing a JS string to a UTF-8 string in wasm memory! (Valid unicode code points should be in range 0-0x10FFFF)."),t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-i};function Xe(e,t,r){var n=r>0?r:qe(e)+1,i=new Array(n),o=Ze(e,i,0,i.length);return t&&(i.length=o),i}var Je={ttys:[],init(){},shutdown(){},register(e,t){Je.ttys[e]={input:[],output:[],ops:t},ut.registerDevice(e,Je.stream_ops)},stream_ops:{open(e){var t=Je.ttys[e.node.rdev];if(!t)throw new ut.ErrnoError(43);e.tty=t,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,t,r,n,i){if(!e.tty||!e.tty.ops.get_char)throw new ut.ErrnoError(60);for(var o=0,a=0;a<n;a++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new ut.ErrnoError(29)}if(void 0===s&&0===o)throw new ut.ErrnoError(6);if(null==s)break;o++,t[r+a]=s}return o&&(e.node.timestamp=Date.now()),o},write(e,t,r,n,i){if(!e.tty||!e.tty.ops.put_char)throw new ut.ErrnoError(60);try{for(var o=0;o<n;o++)e.tty.ops.put_char(e.tty,t[r+o])}catch(e){throw new ut.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),o}},default_tty_ops:{get_char:e=>(()=>{if(!Ke.length){var e=null;if(g){var t=Buffer.alloc(256),r=0,n=process.stdin.fd;try{r=A.readSync(n,t)}catch(e){if(!e.toString().includes("EOF"))throw e;r=0}e=r>0?t.slice(0,r).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n");if(!e)return null;Ke=Xe(e,!0)}return Ke.shift()})(),put_char(e,t){null===t||10===t?(R(Ve(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(R(Ve(e.output,0)),e.output=[])},ioctl_tcgets:e=>({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,t,r)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,t){null===t||10===t?($(Ve(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&($(Ve(e.output,0)),e.output=[])}}},Qe=e=>{e=((e,t)=>(Z(t,"alignment argument is required"),Math.ceil(e/t)*t))(e,65536);var t=Un(65536,e);return t?((e,t)=>(n().fill(0,e,e+t),e))(t,e):0},et={ops_table:null,mount:e=>et.createNode(null,"/",16895,0),createNode(e,t,r,n){if(ut.isBlkdev(r)||ut.isFIFO(r))throw new ut.ErrnoError(63);et.ops_table||(et.ops_table={dir:{node:{getattr:et.node_ops.getattr,setattr:et.node_ops.setattr,lookup:et.node_ops.lookup,mknod:et.node_ops.mknod,rename:et.node_ops.rename,unlink:et.node_ops.unlink,rmdir:et.node_ops.rmdir,readdir:et.node_ops.readdir,symlink:et.node_ops.symlink},stream:{llseek:et.stream_ops.llseek}},file:{node:{getattr:et.node_ops.getattr,setattr:et.node_ops.setattr},stream:{llseek:et.stream_ops.llseek,read:et.stream_ops.read,write:et.stream_ops.write,allocate:et.stream_ops.allocate,mmap:et.stream_ops.mmap,msync:et.stream_ops.msync}},link:{node:{getattr:et.node_ops.getattr,setattr:et.node_ops.setattr,readlink:et.node_ops.readlink},stream:{}},chrdev:{node:{getattr:et.node_ops.getattr,setattr:et.node_ops.setattr},stream:ut.chrdev_stream_ops}});var i=ut.createNode(e,t,r,n);return ut.isDir(i.mode)?(i.node_ops=et.ops_table.dir.node,i.stream_ops=et.ops_table.dir.stream,i.contents={}):ut.isFile(i.mode)?(i.node_ops=et.ops_table.file.node,i.stream_ops=et.ops_table.file.stream,i.usedBytes=0,i.contents=null):ut.isLink(i.mode)?(i.node_ops=et.ops_table.link.node,i.stream_ops=et.ops_table.link.stream):ut.isChrdev(i.mode)&&(i.node_ops=et.ops_table.chrdev.node,i.stream_ops=et.ops_table.chrdev.stream),i.timestamp=Date.now(),e&&(e.contents[t]=i,e.timestamp=i.timestamp),i},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var n=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr(e){var t={};return t.dev=ut.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,ut.isDir(e.mode)?t.size=4096:ut.isFile(e.mode)?t.size=e.usedBytes:ut.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&et.resizeFileStorage(e,t.size)},lookup(e,t){throw ut.genericErrors[44]},mknod:(e,t,r,n)=>et.createNode(e,t,r,n),rename(e,t,r){if(ut.isDir(e.mode)){var n;try{n=ut.lookupNode(t,r)}catch(e){}if(n)for(var i in n.contents)throw new ut.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir(e,t){var r=ut.lookupNode(e,t);for(var n in r.contents)throw new ut.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir(e){var t=[".",".."];for(var r in e.contents)e.contents.hasOwnProperty(r)&&t.push(r);return t},symlink(e,t,r){var n=et.createNode(e,t,41471,0);return n.link=r,n},readlink(e){if(!ut.isLink(e.mode))throw new ut.ErrnoError(28);return e.link}},stream_ops:{read(e,t,r,n,i){var o=e.node.contents;if(i>=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-i,n);if(Z(a>=0),a>8&&o.subarray)t.set(o.subarray(i,i+a),r);else for(var s=0;s<a;s++)t[r+s]=o[i+s];return a},write(e,t,n,i,o,a){if(Z(!(t instanceof ArrayBuffer)),t.buffer===r().buffer&&(a=!1),!i)return 0;var s=e.node;if(s.timestamp=Date.now(),t.subarray&&(!s.contents||s.contents.subarray)){if(a)return Z(0===o,"canOwn must imply no weird position inside the file"),s.contents=t.subarray(n,n+i),s.usedBytes=i,i;if(0===s.usedBytes&&0===o)return s.contents=t.slice(n,n+i),s.usedBytes=i,i;if(o+i<=s.usedBytes)return s.contents.set(t.subarray(n,n+i),o),i}if(et.expandFileStorage(s,o+i),s.contents.subarray&&t.subarray)s.contents.set(t.subarray(n,n+i),o);else for(var c=0;c<i;c++)s.contents[o+c]=t[n+c];return s.usedBytes=Math.max(s.usedBytes,o+i),i},llseek(e,t,r){var n=t;if(1===r?n+=e.position:2===r&&ut.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new ut.ErrnoError(28);return n},allocate(e,t,r){et.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap(e,t,n,i,o){if(!ut.isFile(e.node.mode))throw new ut.ErrnoError(43);var a,s,c=e.node.contents;if(2&o||c.buffer!==r().buffer){if((n>0||n+t<c.length)&&(c=c.subarray?c.subarray(n,n+t):Array.prototype.slice.call(c,n,n+t)),s=!0,!(a=Qe(t)))throw new ut.ErrnoError(48);r().set(c,a)}else s=!1,a=c.byteOffset;return{ptr:a,allocated:s}},msync:(e,t,r,n,i)=>(et.stream_ops.write(e,t,0,n,r,!1),0)}},tt=f.preloadPlugins||[],rt=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},nt={dbs:{},indexedDB:()=>{if("undefined"!=typeof indexedDB)return indexedDB;var e=null;return"object"==typeof window&&(e=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Z(e,"IDBFS used, but indexedDB not supported"),e},DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:function(e){return et.mount.apply(null,arguments)},syncfs:(e,t,r)=>{nt.getLocalSet(e,((n,i)=>{if(n)return r(n);nt.getRemoteSet(e,((e,n)=>{if(e)return r(e);var o=t?n:i,a=t?i:n;nt.reconcile(o,a,r)}))}))},quit:()=>{Object.values(nt.dbs).forEach((e=>e.close())),nt.dbs={}},getDB:(e,t)=>{var r,n=nt.dbs[e];if(n)return t(null,n);try{r=nt.indexedDB().open(e,nt.DB_VERSION)}catch(e){return t(e)}if(!r)return t("Unable to connect to IndexedDB");r.onupgradeneeded=e=>{var t,r=e.target.result,n=e.target.transaction;(t=r.objectStoreNames.contains(nt.DB_STORE_NAME)?n.objectStore(nt.DB_STORE_NAME):r.createObjectStore(nt.DB_STORE_NAME)).indexNames.contains("timestamp")||t.createIndex("timestamp","timestamp",{unique:!1})},r.onsuccess=()=>{n=r.result,nt.dbs[e]=n,t(null,n)},r.onerror=e=>{t(e.target.error),e.preventDefault()}},getLocalSet:(e,t)=>{var r={};function n(e){return"."!==e&&".."!==e}function i(e){return t=>ze.join2(e,t)}for(var o=ut.readdir(e.mountpoint).filter(n).map(i(e.mountpoint));o.length;){var a,s=o.pop();try{a=ut.stat(s)}catch(e){return t(e)}ut.isDir(a.mode)&&o.push.apply(o,ut.readdir(s).filter(n).map(i(s))),r[s]={timestamp:a.mtime}}return t(null,{type:"local",entries:r})},getRemoteSet:(e,t)=>{var r={};nt.getDB(e.mountpoint,((e,n)=>{if(e)return t(e);try{var i=n.transaction([nt.DB_STORE_NAME],"readonly");i.onerror=e=>{t(e.target.error),e.preventDefault()},i.objectStore(nt.DB_STORE_NAME).index("timestamp").openKeyCursor().onsuccess=e=>{var i=e.target.result;if(!i)return t(null,{type:"remote",db:n,entries:r});r[i.primaryKey]={timestamp:i.key},i.continue()}}catch(e){return t(e)}}))},loadLocalEntry:(e,t)=>{var r,n;try{n=ut.lookupPath(e).node,r=ut.stat(e)}catch(e){return t(e)}return ut.isDir(r.mode)?t(null,{timestamp:r.mtime,mode:r.mode}):ut.isFile(r.mode)?(n.contents=et.getFileDataAsTypedArray(n),t(null,{timestamp:r.mtime,mode:r.mode,contents:n.contents})):t(new Error("node type not supported"))},storeLocalEntry:(e,t,r)=>{try{if(ut.isDir(t.mode))ut.mkdirTree(e,t.mode);else{if(!ut.isFile(t.mode))return r(new Error("node type not supported"));ut.writeFile(e,t.contents,{canOwn:!0})}ut.chmod(e,t.mode),ut.utime(e,t.timestamp,t.timestamp)}catch(e){return r(e)}r(null)},removeLocalEntry:(e,t)=>{try{var r=ut.stat(e);ut.isDir(r.mode)?ut.rmdir(e):ut.isFile(r.mode)&&ut.unlink(e)}catch(e){return t(e)}t(null)},loadRemoteEntry:(e,t,r)=>{var n=e.get(t);n.onsuccess=e=>{r(null,e.target.result)},n.onerror=e=>{r(e.target.error),e.preventDefault()}},storeRemoteEntry:(e,t,r,n)=>{try{var i=e.put(r,t)}catch(e){return void n(e)}i.onsuccess=()=>{n(null)},i.onerror=e=>{n(e.target.error),e.preventDefault()}},removeRemoteEntry:(e,t,r)=>{var n=e.delete(t);n.onsuccess=()=>{r(null)},n.onerror=e=>{r(e.target.error),e.preventDefault()}},reconcile:(e,t,r)=>{var n=0,i=[];Object.keys(e.entries).forEach((function(r){var o=e.entries[r],a=t.entries[r];a&&o.timestamp.getTime()==a.timestamp.getTime()||(i.push(r),n++)}));var o=[];if(Object.keys(t.entries).forEach((function(t){e.entries[t]||(o.push(t),n++)})),!n)return r(null);var a=!1,s=("remote"===e.type?e.db:t.db).transaction([nt.DB_STORE_NAME],"readwrite"),c=s.objectStore(nt.DB_STORE_NAME);function d(e){if(e&&!a)return a=!0,r(e)}s.onerror=e=>{d(this.error),e.preventDefault()},s.oncomplete=e=>{a||r(null)},i.sort().forEach((e=>{"local"===t.type?nt.loadRemoteEntry(c,e,((t,r)=>{if(t)return d(t);nt.storeLocalEntry(e,r,d)})):nt.loadLocalEntry(e,((t,r)=>{if(t)return d(t);nt.storeRemoteEntry(c,e,r,d)}))})),o.sort().reverse().forEach((e=>{"local"===t.type?nt.removeLocalEntry(e,d):nt.removeRemoteEntry(c,e,d)}))}},it={},ot={isWindows:!1,staticInit(){ot.isWindows=!!process.platform.match(/^win/);var e=process.binding("constants");e.fs&&(e=e.fs),ot.flagsForNodeMap={1024:e.O_APPEND,64:e.O_CREAT,128:e.O_EXCL,256:e.O_NOCTTY,0:e.O_RDONLY,2:e.O_RDWR,4096:e.O_SYNC,512:e.O_TRUNC,1:e.O_WRONLY,131072:e.O_NOFOLLOW},Z(0===ot.flagsForNodeMap[0])},convertNodeCode(e){var t=e.code;return Z(t in it,`unexpected node error code: ${t} (${e})`),it[t]},mount:e=>(Z(g),ot.createNode(null,"/",ot.getMode(e.opts.root),0)),createNode(e,t,r,n){if(!ut.isDir(r)&&!ut.isFile(r)&&!ut.isLink(r))throw new ut.ErrnoError(28);var i=ut.createNode(e,t,r);return i.node_ops=ot.node_ops,i.stream_ops=ot.stream_ops,i},getMode(e){var t;try{t=A.lstatSync(e),ot.isWindows&&(t.mode=t.mode|(292&t.mode)>>2)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}return t.mode},realPath(e){for(var t=[];e.parent!==e;)t.push(e.name),e=e.parent;return t.push(e.mount.opts.root),t.reverse(),ze.join.apply(null,t)},flagsForNode(e){e&=-2097153,e&=-2049,e&=-32769,e&=-524289,e&=-65537;var t=0;for(var r in ot.flagsForNodeMap)e&r&&(t|=ot.flagsForNodeMap[r],e^=r);if(e)throw new ut.ErrnoError(28);return t},node_ops:{getattr(e){var t,r=ot.realPath(e);try{t=A.lstatSync(r)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}return ot.isWindows&&!t.blksize&&(t.blksize=4096),ot.isWindows&&!t.blocks&&(t.blocks=(t.size+t.blksize-1)/t.blksize|0),{dev:t.dev,ino:t.ino,mode:t.mode,nlink:t.nlink,uid:t.uid,gid:t.gid,rdev:t.rdev,size:t.size,atime:t.atime,mtime:t.mtime,ctime:t.ctime,blksize:t.blksize,blocks:t.blocks}},setattr(e,t){var r=ot.realPath(e);try{if(void 0!==t.mode&&(A.chmodSync(r,t.mode),e.mode=t.mode),void 0!==t.timestamp){var n=new Date(t.timestamp);A.utimesSync(r,n,n)}void 0!==t.size&&A.truncateSync(r,t.size)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}},lookup(e,t){var r=ze.join2(ot.realPath(e),t),n=ot.getMode(r);return ot.createNode(e,t,n)},mknod(e,t,r,n){var i=ot.createNode(e,t,r,n),o=ot.realPath(i);try{ut.isDir(i.mode)?A.mkdirSync(o,i.mode):A.writeFileSync(o,"",{mode:i.mode})}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}return i},rename(e,t,r){var n=ot.realPath(e),i=ze.join2(ot.realPath(t),r);try{A.renameSync(n,i)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}e.name=r},unlink(e,t){var r=ze.join2(ot.realPath(e),t);try{A.unlinkSync(r)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}},rmdir(e,t){var r=ze.join2(ot.realPath(e),t);try{A.rmdirSync(r)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}},readdir(e){var t=ot.realPath(e);try{return A.readdirSync(t)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}},symlink(e,t,r){var n=ze.join2(ot.realPath(e),t);try{A.symlinkSync(r,n)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}},readlink(e){var t=ot.realPath(e);try{return t=A.readlinkSync(t),t=N.relative(N.resolve(e.mount.opts.root),t)}catch(e){if(!e.code)throw e;if("UNKNOWN"===e.code)throw new ut.ErrnoError(28);throw new ut.ErrnoError(ot.convertNodeCode(e))}}},stream_ops:{open(e){var t=ot.realPath(e.node);try{ut.isFile(e.node.mode)&&(e.nfd=A.openSync(t,ot.flagsForNode(e.flags)))}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}},close(e){try{ut.isFile(e.node.mode)&&e.nfd&&A.closeSync(e.nfd)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}},read(e,t,r,n,i){if(0===n)return 0;try{return A.readSync(e.nfd,new Int8Array(t.buffer,r,n),{position:i})}catch(e){throw new ut.ErrnoError(ot.convertNodeCode(e))}},write(e,t,r,n,i){try{return A.writeSync(e.nfd,new Int8Array(t.buffer,r,n),{position:i})}catch(e){throw new ut.ErrnoError(ot.convertNodeCode(e))}},llseek(e,t,r){var n=t;if(1===r)n+=e.position;else if(2===r&&ut.isFile(e.node.mode))try{n+=A.fstatSync(e.nfd).size}catch(e){throw new ut.ErrnoError(ot.convertNodeCode(e))}if(n<0)throw new ut.ErrnoError(28);return n},mmap(e,t,n,i,o){if(!ut.isFile(e.node.mode))throw new ut.ErrnoError(43);var a=Qe(t);return ot.stream_ops.read(e,r(),a,t,n),{ptr:a,allocated:!0}},msync:(e,t,r,n,i)=>(ot.stream_ops.write(e,t,0,n,r,!1),0)}},at={0:"Success",1:"Arg list too long",2:"Permission denied",3:"Address already in use",4:"Address not available",5:"Address family not supported by protocol family",6:"No more processes",7:"Socket already connected",8:"Bad file number",9:"Trying to read unreadable message",10:"Mount device busy",11:"Operation canceled",12:"No children",13:"Connection aborted",14:"Connection refused",15:"Connection reset by peer",16:"File locking deadlock error",17:"Destination address required",18:"Math arg out of domain of func",19:"Quota exceeded",20:"File exists",21:"Bad address",22:"File too large",23:"Host is unreachable",24:"Identifier removed",25:"Illegal byte sequence",26:"Connection already in progress",27:"Interrupted system call",28:"Invalid argument",29:"I/O error",30:"Socket is already connected",31:"Is a directory",32:"Too many symbolic links",33:"Too many open files",34:"Too many links",35:"Message too long",36:"Multihop attempted",37:"File or path name too long",38:"Network interface is not configured",39:"Connection reset by network",40:"Network is unreachable",41:"Too many open files in system",42:"No buffer space available",43:"No such device",44:"No such file or directory",45:"Exec format error",46:"No record locks available",47:"The link has been severed",48:"Not enough core",49:"No message of desired type",50:"Protocol not available",51:"No space left on device",52:"Function not implemented",53:"Socket is not connected",54:"Not a directory",55:"Directory not empty",56:"State not recoverable",57:"Socket operation on non-socket",59:"Not a typewriter",60:"No such device or address",61:"Value too large for defined data type",62:"Previous owner died",63:"Not super-user",64:"Broken pipe",65:"Protocol error",66:"Unknown protocol",67:"Protocol wrong type for socket",68:"Math result not representable",69:"Read only file system",70:"Illegal seek",71:"No such process",72:"Stale file handle",73:"Connection timed out",74:"Text file busy",75:"Cross-device link",100:"Device not a stream",101:"Bad font file fmt",102:"Invalid slot",103:"Invalid request code",104:"No anode",105:"Block device required",106:"Channel number out of range",107:"Level 3 halted",108:"Level 3 reset",109:"Link number out of range",110:"Protocol driver not attached",111:"No CSI structure available",112:"Level 2 halted",113:"Invalid exchange",114:"Invalid request descriptor",115:"Exchange full",116:"No data (for no delay io)",117:"Timer expired",118:"Out of streams resources",119:"Machine is not on the network",120:"Package not installed",121:"The object is remote",122:"Advertise error",123:"Srmount error",124:"Communication error on send",125:"Cross mount point (not really error)",126:"Given log. name not unique",127:"f.d. invalid for this operation",128:"Remote address changed",129:"Can access a needed shared lib",130:"Accessing a corrupted shared lib",131:".lib section in a.out corrupted",132:"Attempting to link in too many libs",133:"Attempting to exec a shared library",135:"Streams pipe error",136:"Too many users",137:"Socket type not supported",138:"Not supported",139:"Protocol family not supported",140:"Can't send after socket shutdown",141:"Too many references",142:"Host is down",148:"No medium (in tape drive)",156:"Level 2 not synchronized"},st=e=>{var t=Qn(),r=e();return ei(t),r},ct=(e,t,r)=>(Z("number"==typeof r,"stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),Ze(e,n(),t,r)),dt=e=>{var t=qe(e)+1,r=ti(t);return ct(e,r,t),r},lt=(e,t)=>(Z("number"==typeof e),e?Ve(n(),e,t):""),ft=e=>(ft.recursionGuard=1+(0|ft.recursionGuard),ft.recursionGuard>1?e:st((()=>{try{var t=e;t.startsWith("__Z")&&(t=t.substr(1));var r=dt(t),n=ti(4),i=oi(r,0,0,n);if(0===a()[n>>2]&&i)return lt(i)}catch(e){}finally{$n(i),ft.recursionGuard<2&&--ft.recursionGuard}return e}))),ut={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e,t={}){if(!(e=Ge.resolve(e)))return{path:"",node:null};if((t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count>8)throw new ut.ErrnoError(32);for(var r=e.split("/").filter((e=>!!e)),n=ut.root,i="/",o=0;o<r.length;o++){var a=o===r.length-1;if(a&&t.parent)break;if(n=ut.lookupNode(n,r[o]),i=ze.join2(i,r[o]),ut.isMountpoint(n)&&(!a||a&&t.follow_mount)&&(n=n.mounted.root),!a||t.follow)for(var s=0;ut.isLink(n.mode);){var c=ut.readlink(i);if(i=Ge.resolve(ze.dirname(i),c),n=ut.lookupPath(i,{recurse_count:t.recurse_count+1}).node,s++>40)throw new ut.ErrnoError(32)}}return{path:i,node:n}},getPath(e){for(var t;;){if(ut.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?`${r}/${t}`:r+t:r}t=t?`${e.name}/${t}`:e.name,e=e.parent}},hashName(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%ut.nameTable.length},hashAddNode(e){var t=ut.hashName(e.parent.id,e.name);e.name_next=ut.nameTable[t],ut.nameTable[t]=e},hashRemoveNode(e){var t=ut.hashName(e.parent.id,e.name);if(ut.nameTable[t]===e)ut.nameTable[t]=e.name_next;else for(var r=ut.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode(e,t){var r=ut.mayLookup(e);if(r)throw new ut.ErrnoError(r,e);for(var n=ut.hashName(e.id,t),i=ut.nameTable[n];i;i=i.name_next){var o=i.name;if(i.parent.id===e.id&&o===t)return i}return ut.lookup(e,t)},createNode(e,t,r,n){Z("object"==typeof e);var i=new ut.FSNode(e,t,r,n);return ut.hashAddNode(i),i},destroyNode(e){ut.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagsToPermissionString(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>ut.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2,mayLookup:e=>ut.nodePermissions(e,"x")||(e.node_ops.lookup?0:2),mayCreate(e,t){try{return ut.lookupNode(e,t),20}catch(e){}return ut.nodePermissions(e,"wx")},mayDelete(e,t,r){var n;try{n=ut.lookupNode(e,t)}catch(e){return e.errno}var i=ut.nodePermissions(e,"wx");if(i)return i;if(r){if(!ut.isDir(n.mode))return 54;if(ut.isRoot(n)||ut.getPath(n)===ut.cwd())return 10}else if(ut.isDir(n.mode))return 31;return 0},mayOpen:(e,t)=>e?ut.isLink(e.mode)?32:ut.isDir(e.mode)&&("r"!==ut.flagsToPermissionString(t)||512&t)?31:ut.nodePermissions(e,ut.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=ut.MAX_OPEN_FDS;e++)if(!ut.streams[e])return e;throw new ut.ErrnoError(33)},getStreamChecked(e){var t=ut.getStream(e);if(!t)throw new ut.ErrnoError(8);return t},getStream:e=>ut.streams[e],createStream:(e,t=-1)=>(ut.FSStream||(ut.FSStream=function(){this.shared={}},ut.FSStream.prototype={},Object.defineProperties(ut.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return 0!=(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(e){this.shared.flags=e}},position:{get(){return this.shared.position},set(e){this.shared.position=e}}})),e=Object.assign(new ut.FSStream,e),-1==t&&(t=ut.nextfd()),e.fd=t,ut.streams[t]=e,e),closeStream(e){ut.streams[e]=null},chrdev_stream_ops:{open(e){var t=ut.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new ut.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice(e,t){ut.devices[e]={stream_ops:t}},getDevice:e=>ut.devices[e],getMounts(e){for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push.apply(r,n.mounts)}return t},syncfs(e,t){"function"==typeof e&&(t=e,e=!1),ut.syncFSRequests++,ut.syncFSRequests>1&&$(`warning: ${ut.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var r=ut.getMounts(ut.root.mount),n=0;function i(e){return Z(ut.syncFSRequests>0),ut.syncFSRequests--,t(e)}function o(e){if(e)return o.errored?void 0:(o.errored=!0,i(e));++n>=r.length&&i(null)}r.forEach((t=>{if(!t.type.syncfs)return o(null);t.type.syncfs(t,e,o)}))},mount(e,t,r){if("string"==typeof e)throw e;var n,i="/"===r,o=!r;if(i&&ut.root)throw new ut.ErrnoError(10);if(!i&&!o){var a=ut.lookupPath(r,{follow_mount:!1});if(r=a.path,n=a.node,ut.isMountpoint(n))throw new ut.ErrnoError(10);if(!ut.isDir(n.mode))throw new ut.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},c=e.mount(s);return c.mount=s,s.root=c,i?ut.root=c:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),c},unmount(e){var t=ut.lookupPath(e,{follow_mount:!1});if(!ut.isMountpoint(t.node))throw new ut.ErrnoError(28);var r=t.node,n=r.mounted,i=ut.getMounts(n);Object.keys(ut.nameTable).forEach((e=>{for(var t=ut.nameTable[e];t;){var r=t.name_next;i.includes(t.mount)&&ut.destroyNode(t),t=r}})),r.mounted=null;var o=r.mount.mounts.indexOf(n);Z(-1!==o),r.mount.mounts.splice(o,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod(e,t,r){var n=ut.lookupPath(e,{parent:!0}).node,i=ze.basename(e);if(!i||"."===i||".."===i)throw new ut.ErrnoError(28);var o=ut.mayCreate(n,i);if(o)throw new ut.ErrnoError(o);if(!n.node_ops.mknod)throw new ut.ErrnoError(63);return n.node_ops.mknod(n,i,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,ut.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,ut.mknod(e,t,0)),mkdirTree(e,t){for(var r=e.split("/"),n="",i=0;i<r.length;++i)if(r[i]){n+="/"+r[i];try{ut.mkdir(n,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,t,r)=>(void 0===r&&(r=t,t=438),t|=8192,ut.mknod(e,t,r)),symlink(e,t){if(!Ge.resolve(e))throw new ut.ErrnoError(44);var r=ut.lookupPath(t,{parent:!0}).node;if(!r)throw new ut.ErrnoError(44);var n=ze.basename(t),i=ut.mayCreate(r,n);if(i)throw new ut.ErrnoError(i);if(!r.node_ops.symlink)throw new ut.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename(e,t){var r,n,i=ze.dirname(e),o=ze.dirname(t),a=ze.basename(e),s=ze.basename(t);if(r=ut.lookupPath(e,{parent:!0}).node,n=ut.lookupPath(t,{parent:!0}).node,!r||!n)throw new ut.ErrnoError(44);if(r.mount!==n.mount)throw new ut.ErrnoError(75);var c,d=ut.lookupNode(r,a),l=Ge.relative(e,o);if("."!==l.charAt(0))throw new ut.ErrnoError(28);if("."!==(l=Ge.relative(t,i)).charAt(0))throw new ut.ErrnoError(55);try{c=ut.lookupNode(n,s)}catch(e){}if(d!==c){var f=ut.isDir(d.mode),u=ut.mayDelete(r,a,f);if(u)throw new ut.ErrnoError(u);if(u=c?ut.mayDelete(n,s,f):ut.mayCreate(n,s))throw new ut.ErrnoError(u);if(!r.node_ops.rename)throw new ut.ErrnoError(63);if(ut.isMountpoint(d)||c&&ut.isMountpoint(c))throw new ut.ErrnoError(10);if(n!==r&&(u=ut.nodePermissions(r,"w")))throw new ut.ErrnoError(u);ut.hashRemoveNode(d);try{r.node_ops.rename(d,n,s)}catch(e){throw e}finally{ut.hashAddNode(d)}}},rmdir(e){var t=ut.lookupPath(e,{parent:!0}).node,r=ze.basename(e),n=ut.lookupNode(t,r),i=ut.mayDelete(t,r,!0);if(i)throw new ut.ErrnoError(i);if(!t.node_ops.rmdir)throw new ut.ErrnoError(63);if(ut.isMountpoint(n))throw new ut.ErrnoError(10);t.node_ops.rmdir(t,r),ut.destroyNode(n)},readdir(e){var t=ut.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new ut.ErrnoError(54);return t.node_ops.readdir(t)},unlink(e){var t=ut.lookupPath(e,{parent:!0}).node;if(!t)throw new ut.ErrnoError(44);var r=ze.basename(e),n=ut.lookupNode(t,r),i=ut.mayDelete(t,r,!1);if(i)throw new ut.ErrnoError(i);if(!t.node_ops.unlink)throw new ut.ErrnoError(63);if(ut.isMountpoint(n))throw new ut.ErrnoError(10);t.node_ops.unlink(t,r),ut.destroyNode(n)},readlink(e){var t=ut.lookupPath(e).node;if(!t)throw new ut.ErrnoError(44);if(!t.node_ops.readlink)throw new ut.ErrnoError(28);return Ge.resolve(ut.getPath(t.parent),t.node_ops.readlink(t))},stat(e,t){var r=ut.lookupPath(e,{follow:!t}).node;if(!r)throw new ut.ErrnoError(44);if(!r.node_ops.getattr)throw new ut.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>ut.stat(e,!0),chmod(e,t,r){var n;if(!(n="string"==typeof e?ut.lookupPath(e,{follow:!r}).node:e).node_ops.setattr)throw new ut.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod(e,t){ut.chmod(e,t,!0)},fchmod(e,t){var r=ut.getStreamChecked(e);ut.chmod(r.node,t)},chown(e,t,r,n){var i;if(!(i="string"==typeof e?ut.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new ut.ErrnoError(63);i.node_ops.setattr(i,{timestamp:Date.now()})},lchown(e,t,r){ut.chown(e,t,r,!0)},fchown(e,t,r){var n=ut.getStreamChecked(e);ut.chown(n.node,t,r)},truncate(e,t){if(t<0)throw new ut.ErrnoError(28);var r;if(!(r="string"==typeof e?ut.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new ut.ErrnoError(63);if(ut.isDir(r.mode))throw new ut.ErrnoError(31);if(!ut.isFile(r.mode))throw new ut.ErrnoError(28);var n=ut.nodePermissions(r,"w");if(n)throw new ut.ErrnoError(n);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate(e,t){var r=ut.getStreamChecked(e);if(0==(2097155&r.flags))throw new ut.ErrnoError(28);ut.truncate(r.node,t)},utime(e,t,r){var n=ut.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(t,r)})},open(e,t,r){if(""===e)throw new ut.ErrnoError(44);var n;if(r=void 0===r?438:r,r=64&(t="string"==typeof t?(e=>{var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===t)throw new Error(`Unknown file open mode: ${e}`);return t})(t):t)?4095&r|32768:0,"object"==typeof e)n=e;else{e=ze.normalize(e);try{n=ut.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var i=!1;if(64&t)if(n){if(128&t)throw new ut.ErrnoError(20)}else n=ut.mknod(e,r,0),i=!0;if(!n)throw new ut.ErrnoError(44);if(ut.isChrdev(n.mode)&&(t&=-513),65536&t&&!ut.isDir(n.mode))throw new ut.ErrnoError(54);if(!i){var o=ut.mayOpen(n,t);if(o)throw new ut.ErrnoError(o)}512&t&&!i&&ut.truncate(n,0),t&=-131713;var a=ut.createStream({node:n,path:ut.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return a.stream_ops.open&&a.stream_ops.open(a),!f.logReadFiles||1&t||(ut.readFiles||(ut.readFiles={}),e in ut.readFiles||(ut.readFiles[e]=1)),a},close(e){if(ut.isClosed(e))throw new ut.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{ut.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,t,r){if(ut.isClosed(e))throw new ut.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new ut.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new ut.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read(e,t,r,n,i){if(Z(r>=0),n<0||i<0)throw new ut.ErrnoError(28);if(ut.isClosed(e))throw new ut.ErrnoError(8);if(1==(2097155&e.flags))throw new ut.ErrnoError(8);if(ut.isDir(e.node.mode))throw new ut.ErrnoError(31);if(!e.stream_ops.read)throw new ut.ErrnoError(28);var o=void 0!==i;if(o){if(!e.seekable)throw new ut.ErrnoError(70)}else i=e.position;var a=e.stream_ops.read(e,t,r,n,i);return o||(e.position+=a),a},write(e,t,r,n,i,o){if(Z(r>=0),n<0||i<0)throw new ut.ErrnoError(28);if(ut.isClosed(e))throw new ut.ErrnoError(8);if(0==(2097155&e.flags))throw new ut.ErrnoError(8);if(ut.isDir(e.node.mode))throw new ut.ErrnoError(31);if(!e.stream_ops.write)throw new ut.ErrnoError(28);e.seekable&&1024&e.flags&&ut.llseek(e,0,2);var a=void 0!==i;if(a){if(!e.seekable)throw new ut.ErrnoError(70)}else i=e.position;var s=e.stream_ops.write(e,t,r,n,i,o);return a||(e.position+=s),s},allocate(e,t,r){if(ut.isClosed(e))throw new ut.ErrnoError(8);if(t<0||r<=0)throw new ut.ErrnoError(28);if(0==(2097155&e.flags))throw new ut.ErrnoError(8);if(!ut.isFile(e.node.mode)&&!ut.isDir(e.node.mode))throw new ut.ErrnoError(43);if(!e.stream_ops.allocate)throw new ut.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap(e,t,r,n,i){if(0!=(2&n)&&0==(2&i)&&2!=(2097155&e.flags))throw new ut.ErrnoError(2);if(1==(2097155&e.flags))throw new ut.ErrnoError(2);if(!e.stream_ops.mmap)throw new ut.ErrnoError(43);return e.stream_ops.mmap(e,t,r,n,i)},msync:(e,t,r,n,i)=>(Z(r>=0),e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,i):0),munmap:e=>0,ioctl(e,t,r){if(!e.stream_ops.ioctl)throw new ut.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile(e,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error(`Invalid encoding type "${t.encoding}"`);var r,n=ut.open(e,t.flags),i=ut.stat(e).size,o=new Uint8Array(i);return ut.read(n,o,0,i,0),"utf8"===t.encoding?r=Ve(o,0):"binary"===t.encoding&&(r=o),ut.close(n),r},writeFile(e,t,r={}){r.flags=r.flags||577;var n=ut.open(e,r.flags,r.mode);if("string"==typeof t){var i=new Uint8Array(qe(t)+1),o=Ze(t,i,0,i.length);ut.write(n,i,0,o,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");ut.write(n,t,0,t.byteLength,void 0,r.canOwn)}ut.close(n)},cwd:()=>ut.currentPath,chdir(e){var t=ut.lookupPath(e,{follow:!0});if(null===t.node)throw new ut.ErrnoError(44);if(!ut.isDir(t.node.mode))throw new ut.ErrnoError(54);var r=ut.nodePermissions(t.node,"x");if(r)throw new ut.ErrnoError(r);ut.currentPath=t.path},createDefaultDirectories(){ut.mkdir("/tmp"),ut.mkdir("/home"),ut.mkdir("/home/web_user")},createDefaultDevices(){ut.mkdir("/dev"),ut.registerDevice(ut.makedev(1,3),{read:()=>0,write:(e,t,r,n,i)=>n}),ut.mkdev("/dev/null",ut.makedev(1,3)),Je.register(ut.makedev(5,0),Je.default_tty_ops),Je.register(ut.makedev(6,0),Je.default_tty1_ops),ut.mkdev("/dev/tty",ut.makedev(5,0)),ut.mkdev("/dev/tty1",ut.makedev(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=He(e).byteLength),e[--t]);ut.createDevice("/dev","random",r),ut.createDevice("/dev","urandom",r),ut.mkdir("/dev/shm"),ut.mkdir("/dev/shm/tmp")},createSpecialDirectories(){ut.mkdir("/proc");var e=ut.mkdir("/proc/self");ut.mkdir("/proc/self/fd"),ut.mount({mount(){var t=ut.createNode(e,"fd",16895,73);return t.node_ops={lookup(e,t){var r=+t,n=ut.getStreamChecked(r),i={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return i.parent=i,i}},t}},{},"/proc/self/fd")},createStandardStreams(){f.stdin?ut.createDevice("/dev","stdin",f.stdin):ut.symlink("/dev/tty","/dev/stdin"),f.stdout?ut.createDevice("/dev","stdout",null,f.stdout):ut.symlink("/dev/tty","/dev/stdout"),f.stderr?ut.createDevice("/dev","stderr",null,f.stderr):ut.symlink("/dev/tty1","/dev/stderr");var e=ut.open("/dev/stdin",0),t=ut.open("/dev/stdout",1),r=ut.open("/dev/stderr",1);Z(0===e.fd,`invalid handle for stdin (${e.fd})`),Z(1===t.fd,`invalid handle for stdout (${t.fd})`),Z(2===r.fd,`invalid handle for stderr (${r.fd})`)},ensureErrnoError(){ut.ErrnoError||(ut.ErrnoError=function(e,t){this.name="ErrnoError",this.node=t,this.setErrno=function(e){for(var t in this.errno=e,it)if(it[t]===e){this.code=t;break}},this.setErrno(e),this.message=at[e],this.stack&&(Object.defineProperty(this,"stack",{value:(new Error).stack,writable:!0}),this.stack=this.stack.replace(/\b_Z[\w\d_]+/g,(function(e){var t=ft(e);return e===t?e:t+" ["+e+"]"})))},ut.ErrnoError.prototype=new Error,ut.ErrnoError.prototype.constructor=ut.ErrnoError,[44].forEach((e=>{ut.genericErrors[e]=new ut.ErrnoError(e),ut.genericErrors[e].stack="<generic error, no stack>"})))},staticInit(){ut.ensureErrnoError(),ut.nameTable=new Array(4096),ut.mount(et,{},"/"),ut.createDefaultDirectories(),ut.createDefaultDevices(),ut.createSpecialDirectories(),ut.filesystems={MEMFS:et,IDBFS:nt,NODEFS:ot}},init(e,t,r){Z(!ut.init.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)"),ut.init.initialized=!0,ut.ensureErrnoError(),f.stdin=e||f.stdin,f.stdout=t||f.stdout,f.stderr=r||f.stderr,ut.createStandardStreams()},quit(){ut.init.initialized=!1,xn(0);for(var e=0;e<ut.streams.length;e++){var t=ut.streams[e];t&&ut.close(t)}},findObject(e,t){var r=ut.analyzePath(e,t);return r.exists?r.object:null},analyzePath(e,t){try{e=(n=ut.lookupPath(e,{follow:!t})).path}catch(e){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=ut.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=ze.basename(e),n=ut.lookupPath(e,{follow:!t}),r.exists=!0,r.path=n.path,r.object=n.node,r.name=n.node.name,r.isRoot="/"===n.path}catch(e){r.error=e.errno}return r},createPath(e,t,r,n){e="string"==typeof e?e:ut.getPath(e);for(var i=t.split("/").reverse();i.length;){var o=i.pop();if(o){var a=ze.join2(e,o);try{ut.mkdir(a)}catch(e){}e=a}}return a},createFile(e,t,r,n,i){var o=ze.join2("string"==typeof e?e:ut.getPath(e),t),a=rt(n,i);return ut.create(o,a)},createDataFile(e,t,r,n,i,o){var a=t;e&&(e="string"==typeof e?e:ut.getPath(e),a=t?ze.join2(e,t):e);var s=rt(n,i),c=ut.create(a,s);if(r){if("string"==typeof r){for(var d=new Array(r.length),l=0,f=r.length;l<f;++l)d[l]=r.charCodeAt(l);r=d}ut.chmod(c,146|s);var u=ut.open(c,577);ut.write(u,r,0,r.length,0,o),ut.close(u),ut.chmod(c,s)}return c},createDevice(e,t,r,n){var i=ze.join2("string"==typeof e?e:ut.getPath(e),t),o=rt(!!r,!!n);ut.createDevice.major||(ut.createDevice.major=64);var a=ut.makedev(ut.createDevice.major++,0);return ut.registerDevice(a,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,t,n,i,o){for(var a=0,s=0;s<i;s++){var c;try{c=r()}catch(e){throw new ut.ErrnoError(29)}if(void 0===c&&0===a)throw new ut.ErrnoError(6);if(null==c)break;a++,t[n+s]=c}return a&&(e.node.timestamp=Date.now()),a},write(e,t,r,i,o){for(var a=0;a<i;a++)try{n(t[r+a])}catch(e){throw new ut.ErrnoError(29)}return i&&(e.node.timestamp=Date.now()),a}}),ut.mkdev(i,o,a)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("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.");if(!E)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=Xe(E(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new ut.ErrnoError(29)}},createLazyFile(e,t,n,i,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",n,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+n+". Status: "+e.status);var t,r=Number(e.getResponseHeader("Content-length")),i=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,o=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,a=1048576;i||(a=r);var s=this;s.setDataGetter((e=>{var t=e*a,i=(e+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[e]&&(s.chunks[e]=((e,t)=>{if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+e+"-"+t),i.responseType="arraybuffer",i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):Xe(i.responseText||"",!0)})(t,i)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!o&&r||(a=r=1,r=this.getter(0).length,a=r,R("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!y)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var s=new a;Object.defineProperties(s,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var c={isDevice:!1,contents:s}}else c={isDevice:!1,url:n};var d=ut.createFile(e,t,c,i,o);c.contents?d.contents=c.contents:c.url&&(d.contents=null,d.url=c.url),Object.defineProperties(d,{usedBytes:{get:function(){return this.contents.length}}});var l={};function f(e,t,r,n,i){var o=e.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,n);if(Z(a>=0),o.slice)for(var s=0;s<a;s++)t[r+s]=o[i+s];else for(s=0;s<a;s++)t[r+s]=o.get(i+s);return a}return Object.keys(d.stream_ops).forEach((e=>{var t=d.stream_ops[e];l[e]=function(){return ut.forceLoadFile(d),t.apply(null,arguments)}})),l.read=(e,t,r,n,i)=>(ut.forceLoadFile(d),f(e,t,r,n,i)),l.mmap=(e,t,n,i,o)=>{ut.forceLoadFile(d);var a=Qe(t);if(!a)throw new ut.ErrnoError(48);return f(e,r(),a,t,n),{ptr:a,allocated:!0}},d.stream_ops=l,d},absolutePath(){_e("FS.absolutePath has been removed; use PATH_FS.resolve instead")},createFolder(){_e("FS.createFolder has been removed; use FS.mkdir instead")},createLink(){_e("FS.createLink has been removed; use FS.symlink instead")},joinPath(){_e("FS.joinPath has been removed; use PATH.join instead")},mmapAlloc(){_e("FS.mmapAlloc has been replaced by the top level function mmapAlloc")},standardizePath(){_e("FS.standardizePath has been removed; use PATH.normalize instead")}},ht={DEFAULT_POLLMASK:5,calculateAt(e,t,r){if(ze.isAbs(t))return t;var n;if(n=-100===e?ut.cwd():ht.getStreamFromFD(e).path,0==t.length){if(!r)throw new ut.ErrnoError(44);return n}return ze.join2(n,t)},doStat(e,t,r){try{var n=e(t)}catch(e){if(e&&e.node&&ze.normalize(t)!==ze.normalize(ut.getPath(e.node)))return-54;throw e}a()[r>>2]=n.dev,$e(n.dev),a()[r+4>>2]=n.mode,$e(n.mode),s()[r+8>>2]=n.nlink,$e(n.nlink),a()[r+12>>2]=n.uid,$e(n.uid),a()[r+16>>2]=n.gid,$e(n.gid),a()[r+20>>2]=n.rdev,$e(n.rdev),we=[n.size>>>0,(ge=n.size,+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[r+24>>2]=we[0],a()[r+28>>2]=we[1],xe(n.size),a()[r+32>>2]=4096,$e(4096),a()[r+36>>2]=n.blocks,$e(n.blocks);var i=n.atime.getTime(),o=n.mtime.getTime(),c=n.ctime.getTime();return we=[Math.floor(i/1e3)>>>0,(ge=Math.floor(i/1e3),+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[r+40>>2]=we[0],a()[r+44>>2]=we[1],xe(Math.floor(i/1e3)),s()[r+48>>2]=i%1e3*1e3,$e(i%1e3*1e3),we=[Math.floor(o/1e3)>>>0,(ge=Math.floor(o/1e3),+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[r+56>>2]=we[0],a()[r+60>>2]=we[1],xe(Math.floor(o/1e3)),s()[r+64>>2]=o%1e3*1e3,$e(o%1e3*1e3),we=[Math.floor(c/1e3)>>>0,(ge=Math.floor(c/1e3),+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[r+72>>2]=we[0],a()[r+76>>2]=we[1],xe(Math.floor(c/1e3)),s()[r+80>>2]=c%1e3*1e3,$e(c%1e3*1e3),we=[n.ino>>>0,(ge=n.ino,+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[r+88>>2]=we[0],a()[r+92>>2]=we[1],xe(n.ino),0},doMsync(e,t,r,i,o){if(!ut.isFile(t.node.mode))throw new ut.ErrnoError(43);if(2&i)return 0;var a=n().slice(e,e+r);ut.msync(t,a,o,r,i)},varargs:void 0,get(){Z(null!=ht.varargs);var e=a()[+ht.varargs>>2];return ht.varargs+=4,e},getp:()=>ht.get(),getStr:e=>lt(e),getStreamFromFD:e=>ut.getStreamChecked(e)};function mt(e){if(S)return nn(0,1,e);W=e,se()||(gt.terminateAllThreads(),f.onExit&&f.onExit(e),q=!0),v(e,new je(e))}var pt=(e,t)=>{if(W=e,function(){var e=R,t=$,r=!1;R=$=e=>{r=!0};try{xn(0),["stdout","stderr"].forEach((function(e){var t=ut.analyzePath("/dev/"+e);if(t){var n=t.object.rdev,i=Je.ttys[n];i&&i.output&&i.output.length&&(r=!0)}}))}catch(e){}R=e,$=t,r&&Ft("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.")}(),S)throw Z(!t),Et(e),"unwind";if(se()&&!t){var r=`program exited (with status: ${e}), but keepRuntimeAlive() is set (counter=${ae}) 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)`;l(r),$(r)}mt(e)},vt=pt,_t=e=>(Z("number"==typeof e),"0x"+(e>>>=0).toString(16).padStart(8,"0")),yt=e=>{if(e instanceof je||"unwind"==e)return W;ee(),e instanceof WebAssembly.RuntimeError&&ri()<=0&&$("Stack overflow detected. You can try increasing -sSTACK_SIZE (currently set to 5242880)"),v(1,e)},gt={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},nextWorkerID:1,debugInit(){var e=Le;Le=t=>{return e((r=0,oe&&void 0!==Wn&&(r=Wn()),"w:"+(f.workerID||0)+",t:"+_t(r)+": "+t));var r}},init(){gt.debugInit(),S?gt.initWorker():gt.initMainThread()},initMainThread(){for(var e=32;e--;)gt.allocateUnusedWorker();de((()=>{pe("loading-workers"),gt.loadWasmModuleToAllWorkers((()=>ve("loading-workers")))}))},initWorker(){j=!1},setExitStatus:e=>{W=e},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var e of(Z(!S,"Internal Error! terminateAllThreads() can only ever be called from main application thread!"),gt.runningWorkers))We(e);for(var e of gt.unusedWorkers)We(e);gt.unusedWorkers=[],gt.runningWorkers=[],gt.pthreads=[]},returnWorkerToPool:e=>{var t=e.pthread_ptr;delete gt.pthreads[t],gt.unusedWorkers.push(e),gt.runningWorkers.splice(gt.runningWorkers.indexOf(e),1),e.pthread_ptr=0,Vn(t)},receiveObjectTransfer(e){},threadInitTLS(){gt.tlsInitFunctions.forEach((e=>e()))},loadWasmModuleToWorker:t=>new Promise((r=>{t.onmessage=e=>{var n=e.data,i=n.cmd;if(n.targetThread&&n.targetThread!=Wn()){var o=gt.pthreads[n.targetThread];o?o.postMessage(n,n.transferList):$(`Internal error! Worker sent a message "${i}" to target pthread ${n.targetThread}, but that thread no longer exists!`)}else{var a;"checkMailbox"===i?rn():"spawnThread"===i?Be(n):"cleanupThread"===i?Ue(n.thread):"killThread"===i?(e=>{Z(!S,"Internal Error! killThread() can only ever be called from main application thread!"),Z(e,"Internal Error! Null pthread_ptr in killThread!");var t=gt.pthreads[e];delete gt.pthreads[e],We(t),Vn(e),gt.runningWorkers.splice(gt.runningWorkers.indexOf(t),1),t.pthread_ptr=0})(n.thread):"cancelThread"===i?(a=n.thread,Z(!S,"Internal Error! cancelThread() can only ever be called from main application thread!"),Z(a,"Internal Error! Null pthread_ptr in cancelThread!"),gt.pthreads[a].postMessage({cmd:"cancel"})):"loaded"===i?(t.loaded=!0,g&&!t.pthread_ptr&&t.unref(),r(t)):"alert"===i?alert(`Thread ${n.threadId}: ${n.text}`):"setimmediate"===n.target?t.postMessage(n):"callHandler"===i?f[n.handler](...n.args):i&&$(`worker sent an unknown command ${i}`)}},t.onerror=e=>{var r="worker sent an error!";throw t.pthread_ptr&&(r=`Pthread ${_t(t.pthread_ptr)} sent an error!`),$(`${r} ${e.filename}:${e.lineno}: ${e.message}`),e},g&&(t.on("message",(e=>t.onmessage({data:e}))),t.on("error",(e=>t.onerror(e)))),Z(x instanceof WebAssembly.Memory,"WebAssembly memory should have been loaded by now!"),Z(L instanceof WebAssembly.Module,"WebAssembly Module should have been loaded by now!");var n=[];for(var i of["onExit","onAbort","print","printErr"])f.hasOwnProperty(i)&&n.push(i);t.workerID=gt.nextWorkerID++,t.postMessage({cmd:"load",handlers:n,urlOrBlob:f.mainScriptUrlOrBlob||e,wasmMemory:x,wasmModule:L,workerID:t.workerID})})),loadWasmModuleToAllWorkers(e){if(S)return e();Promise.all(gt.unusedWorkers.map(gt.loadWasmModuleToWorker)).then(e)},allocateUnusedWorker(){var e,t=P("moorhen.worker.js");e=new Worker(t),gt.unusedWorkers.push(e)},getNewWorker:()=>(0==gt.unusedWorkers.length&&(g||$("Tried to spawn a new thread, but the thread pool is exhausted.\nThis might result in a deadlock unless some threads eventually exit or the code explicitly breaks out to the event loop.\nIf you want to increase the pool size, use setting `-sPTHREAD_POOL_SIZE=...`."),gt.allocateUnusedWorker(),gt.loadWasmModuleToWorker(gt.unusedWorkers[0])),gt.unusedWorkers.pop())};f.PThread=gt;var wt=e=>{for(;e.length>0;)e.shift()(f)};function Et(e){if(S)return nn(1,0,e);vt(e)}f.establishStackSpace=()=>{var e=Wn(),t=s()[e+52>>2],r=t-s()[e+56>>2];Z(0!=t),Z(0!=r),Z(t>r,"stackHigh must be higher then stackLow"),Jn(t,r),Pt(),ei(t),Q()};var bt=e=>(e=>st((()=>{var t=ti(4),r=ti(4);ai(e,t,r);var n,i=s()[t>>2],o=s()[r>>2],a=lt(i);return $n(i),o&&(n=lt(o),$n(o)),[a,n]})))(e);f.getExceptionMessage=bt;var kt,St=[],Tt=e=>{var t=St[e];return t||(e>=St.length&&(St.length=e+1),St[e]=t=kt.get(e)),Z(kt.get(e)==t,"JavaScript-side Wasm function table mirror is out of date!"),t};f.invokeEntryPoint=(e,t)=>{var r=Tt(e)(t);ee(),function(e){se()?gt.setExitStatus(e):Kn(e)}(r)};var Pt=()=>{var e=Hn(),t=Gn();di(e,t)},Ft=e=>{Ft.shown||(Ft.shown={}),Ft.shown[e]||(Ft.shown[e]=1,g&&(e="warning: "+e),$(e))},Ct=[],At=0,Nt=0;function Dt(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){s()[this.ptr+4>>2]=e},this.get_type=function(){return s()[this.ptr+4>>2]},this.set_destructor=function(e){s()[this.ptr+8>>2]=e},this.get_destructor=function(){return s()[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,r()[this.ptr+12>>0]=e,Ie(e)},this.get_caught=function(){return 0!=r()[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,r()[this.ptr+13>>0]=e,Ie(e)},this.get_rethrown=function(){return 0!=r()[this.ptr+13>>0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){s()[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return s()[this.ptr+16>>2]},this.get_exception_ptr=function(){if(ci(this.get_type()))return s()[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var Ot=e=>{var t=Nt&&Nt.excPtr;if(!t)return jn(0),0;var r=new Dt(t);r.set_adjusted_ptr(t);var n=r.get_type();if(!n)return jn(0),t;for(var i in e){var o=e[i];if(0===o||o===n)break;var a=r.ptr+16;if(si(o,n,a))return jn(o),t}return jn(n),t};function Mt(e,t,r,n){return S?nn(2,1,e,t,r,n):It(e,t,r,n)}var It=(e,t,r,n)=>{if("undefined"==typeof SharedArrayBuffer)return $("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var i=[];if(S&&0===i.length)return Mt(e,t,r,n);var o={startRoutine:r,pthread_ptr:e,arg:n,transferList:i};return S?(o.cmd="spawnThread",postMessage(o,i),0):Be(o)};function Rt(e,t,r){if(S)return nn(3,1,e,t,r);ht.varargs=r;try{var n=ht.getStreamFromFD(e);switch(t){case 0:if((o=ht.get())<0)return-28;for(;ut.streams[o];)o++;return ut.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=ht.get();return n.flags|=o,0;case 5:return o=ht.getp(),i()[o+0>>1]=2,Re(2),0;case 16:case 8:default:return-28;case 9:return 28,a()[Rn()>>2]=28,$e(28),-1}}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function $t(e,t){if(S)return nn(4,1,e,t);try{var r=ht.getStreamFromFD(e);return ht.doStat(ut.stat,r.path,t)}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function xt(e,t,n){if(S)return nn(5,1,e,t,n);ht.varargs=n;try{var o=ht.getStreamFromFD(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return o.tty?0:-59;case 21505:if(!o.tty)return-59;if(o.tty.ops.ioctl_tcgets){var s=o.tty.ops.ioctl_tcgets(o),c=ht.getp();a()[c>>2]=s.c_iflag||0,$e(s.c_iflag||0),a()[c+4>>2]=s.c_oflag||0,$e(s.c_oflag||0),a()[c+8>>2]=s.c_cflag||0,$e(s.c_cflag||0),a()[c+12>>2]=s.c_lflag||0,$e(s.c_lflag||0);for(var d=0;d<32;d++)r()[c+d+17>>0]=s.c_cc[d]||0,Ie(s.c_cc[d]||0);return 0}return 0;case 21506:case 21507:case 21508:if(!o.tty)return-59;if(o.tty.ops.ioctl_tcsets){c=ht.getp();var l=a()[c>>2],f=a()[c+4>>2],u=a()[c+8>>2],h=a()[c+12>>2],m=[];for(d=0;d<32;d++)m.push(r()[c+d+17>>0]);return o.tty.ops.ioctl_tcsets(o.tty,t,{c_iflag:l,c_oflag:f,c_cflag:u,c_lflag:h,c_cc:m})}return 0;case 21519:return o.tty?(c=ht.getp(),a()[c>>2]=0,$e(0),0):-59;case 21520:return o.tty?-28:-59;case 21531:return c=ht.getp(),ut.ioctl(o,t,c);case 21523:if(!o.tty)return-59;if(o.tty.ops.ioctl_tiocgwinsz){var p=o.tty.ops.ioctl_tiocgwinsz(o.tty);c=ht.getp(),i()[c>>1]=p[0],Re(p[0]),i()[c+2>>1]=p[1],Re(p[1])}return 0;default:return-28}}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function Lt(e,t){if(S)return nn(6,1,e,t);try{return e=ht.getStr(e),ht.doStat(ut.lstat,e,t)}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function jt(e,t,r){if(S)return nn(7,1,e,t,r);try{return t=ht.getStr(t),t=ht.calculateAt(e,t),"/"===(t=ze.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),ut.mkdir(t,r,0),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function Wt(e,t,r,n){if(S)return nn(8,1,e,t,r,n);try{t=ht.getStr(t);var i=256&n,o=4096&n;return Z(!(n&=-6401),`unknown flags in __syscall_newfstatat: ${n}`),t=ht.calculateAt(e,t,o),ht.doStat(i?ut.lstat:ut.stat,t,r)}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function Ut(e,t,r,n){if(S)return nn(9,1,e,t,r,n);ht.varargs=n;try{t=ht.getStr(t),t=ht.calculateAt(e,t);var i=n?ht.get():0;return ut.open(t,r,i).fd}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function Bt(e){if(S)return nn(10,1,e);try{return e=ht.getStr(e),ut.rmdir(e),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function zt(e,t){if(S)return nn(11,1,e,t);try{return e=ht.getStr(e),ht.doStat(ut.stat,e,t)}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function Ht(e,t,r){if(S)return nn(12,1,e,t,r);try{return t=ht.getStr(t),t=ht.calculateAt(e,t),0===r?ut.unlink(t):512===r?ut.rmdir(t):_e("Invalid flags passed to unlinkat"),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}var Gt={},Yt=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function Vt(e){return this.fromWireType(a()[e>>2])}var Kt,qt,Zt,Xt={},Jt={},Qt={},er=e=>{throw new Kt(e)},tr=(e,t,r)=>{function n(t){var n=r(t);n.length!==e.length&&er("Mismatched type converter count");for(var i=0;i<e.length;++i)or(e[i],n[i])}e.forEach((function(e){Qt[e]=t}));var i=new Array(t.length),o=[],a=0;t.forEach(((e,t)=>{Jt.hasOwnProperty(e)?i[t]=Jt[e]:(o.push(e),Xt.hasOwnProperty(e)||(Xt[e]=[]),Xt[e].push((()=>{i[t]=Jt[e],++a===o.length&&n(i)})))})),0===o.length&&n(i)},rr={},nr=e=>{for(var t="",r=e;n()[r];)t+=qt[n()[r++]];return t},ir=e=>{throw new Zt(e)};function or(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,t,r={}){var n=t.name;if(e||ir(`type "${n}" must have a positive integer typeid pointer`),Jt.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;ir(`Cannot register type '${n}' twice`)}if(Jt[e]=t,delete Qt[e],Xt.hasOwnProperty(e)){var i=Xt[e];delete Xt[e],i.forEach((e=>e()))}}(e,t,r)}var ar,sr=e=>{ir(e.$$.ptrType.registeredClass.name+" instance already deleted")},cr=!1,dr=e=>{},lr=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},fr=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var n=fr(e,t,r.baseClass);return null===n?null:r.downcast(n)},ur={},hr=[],mr=()=>{for(;hr.length;){var e=hr.pop();e.$$.deleteScheduled=!1,e.delete()}},pr={},vr=(e,t)=>(t.ptrType&&t.ptr||er("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&er("Both smartPtrType and smartPtr must be specified"),t.count={value:1},yr(Object.create(e,{$$:{value:t}})));function _r(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=((e,t)=>(t=((e,t)=>{for(void 0===t&&ir("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t})(e,t),pr[t]))(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function i(){return this.isSmartPointer?vr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):vr(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var o,a=this.registeredClass.getActualType(t),s=ur[a];if(!s)return i.call(this);o=this.isConst?s.constPointerType:s.pointerType;var c=fr(t,this.registeredClass,o.registeredClass);return null===c?i.call(this):this.isSmartPointer?vr(o.registeredClass.instancePrototype,{ptrType:o,ptr:c,smartPtrType:this,smartPtr:e}):vr(o.registeredClass.instancePrototype,{ptrType:o,ptr:c})}var yr=e=>"undefined"==typeof FinalizationRegistry?(yr=e=>e,e):(cr=new FinalizationRegistry((e=>{console.warn(e.leakWarning.stack.replace(/^Error: /,"")),lr(e.$$)})),yr=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t},n=t.ptrType.registeredClass;r.leakWarning=new Error(`Embind found a leaked C++ instance ${n.name} <${_t(t.ptr)}>.\nWe'll free it automatically in this case, but this functionality is not reliable across various environments.\nMake sure to invoke .delete() manually once you're done with the instance instead.\nOriginally allocated`),"captureStackTrace"in Error&&Error.captureStackTrace(r.leakWarning,_r),cr.register(e,r,e)}return e},dr=e=>cr.unregister(e),yr(e));function gr(){}var wr=e=>{if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?`_${e}`:e};function Er(e,t){return{[e=wr(e)]:function(){return t.apply(this,arguments)}}[e]}var br=(e,t,r)=>{if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||ir(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}},kr=(e,t,r)=>{f.hasOwnProperty(e)?((void 0===r||void 0!==f[e].overloadTable&&void 0!==f[e].overloadTable[r])&&ir(`Cannot register public name '${e}' twice`),br(f,e,e),f.hasOwnProperty(r)&&ir(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),f[e].overloadTable[r]=t):(f[e]=t,void 0!==r&&(f[e].numArguments=r))};function Sr(e,t,r,n,i,o,a,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=i,this.getActualType=o,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}var Tr=(e,t,r)=>{for(;t!==r;)t.upcast||ir(`Expected null or instance of ${r.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function Pr(e,t){if(null===t)return this.isReference&&ir(`null is not a valid ${this.name}`),0;t.$$||ir(`Cannot pass "${Gr(t)}" as a ${this.name}`),t.$$.ptr||ir(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=t.$$.ptrType.registeredClass;return Tr(t.$$.ptr,r,this.registeredClass)}function Fr(e,t){var r;if(null===t)return this.isReference&&ir(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||ir(`Cannot pass "${Gr(t)}" as a ${this.name}`),t.$$.ptr||ir(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&ir(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var n=t.$$.ptrType.registeredClass;if(r=Tr(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&ir("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:ir(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var i=t.clone();r=this.rawShare(r,Br.toHandle((()=>i.delete()))),null!==e&&e.push(this.rawDestructor,r)}break;default:ir("Unsupporting sharing policy")}return r}function Cr(e,t){if(null===t)return this.isReference&&ir(`null is not a valid ${this.name}`),0;t.$$||ir(`Cannot pass "${Gr(t)}" as a ${this.name}`),t.$$.ptr||ir(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&ir(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;return Tr(t.$$.ptr,r,this.registeredClass)}function Ar(e){return this.fromWireType(s()[e>>2])}function Nr(e,t,r,n,i,o,a,s,c,d,l){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=c,this.rawShare=d,this.rawDestructor=l,i||void 0!==t.baseClass?this.toWireType=Fr:n?(this.toWireType=Pr,this.destructorFunction=null):(this.toWireType=Cr,this.destructorFunction=null)}var Dr,Or=(e,t,r)=>{f.hasOwnProperty(e)||er("Replacing nonexistant public symbol"),void 0!==f[e].overloadTable&&void 0!==r?f[e].overloadTable[r]=t:(f[e]=t,f[e].argCount=r)},Mr=(e,t)=>{var r=(e=nr(e)).includes("j")?((e,t)=>{Z(e.includes("j")||e.includes("p"),"getDynCaller should only be called with i64 sigs");var r=[];return function(){return r.length=0,Object.assign(r,arguments),((e,t,r)=>e.includes("j")?((e,t,r)=>{Z("dynCall_"+e in f,`bad function pointer type - dynCall function not found for sig '${e}'`),r&&r.length?Z(r.length===e.substring(1).replace(/j/g,"--").length):Z(1==e.length);var n=f["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)})(e,t,r):(Z(Tt(t),`missing table entry in dynCall: ${t}`),Tt(t).apply(null,r)))(e,t,r)}})(e,t):Tt(t);return"function"!=typeof r&&ir(`unknown function pointer with signature ${e}: ${t}`),r},Ir=e=>{var t=Bn(e),r=nr(t);return $n(t),r},Rr=(e,t)=>{var r=[],n={};throw t.forEach((function e(t){n[t]||Jt[t]||(Qt[t]?Qt[t].forEach(e):(r.push(t),n[t]=!0))})),new Dr(`${e}: `+r.map(Ir).join([", "]))},$r=(e,t)=>{for(var r=[],n=0;n<e;n++)r.push(s()[t+4*n>>2]);return r};function xr(e,t,r,n,i,o){var a=t.length;a<2&&ir("argTypes array size mismatch! Must at least get return value and 'this' types!"),Z(!o,"Async bindings are only supported with JSPI.");for(var s=null!==t[1]&&null!==r,c=!1,d=1;d<t.length;++d)if(null!==t[d]&&void 0===t[d].destructorFunction){c=!0;break}var l="void"!==t[0].name,f="",u="";for(d=0;d<a-2;++d)f+=(0!==d?", ":"")+"arg"+d,u+=(0!==d?", ":"")+"arg"+d+"Wired";var h=`\n return function ${wr(e)}(${f}) {\n if (arguments.length !== ${a-2}) {\n throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${a-2}');\n }`;c&&(h+="var destructors = [];\n");var m=c?"destructors":"null",p=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[ir,n,i,Yt,t[0],t[1]];for(s&&(h+="var thisWired = classParam.toWireType("+m+", this);\n"),d=0;d<a-2;++d)h+="var arg"+d+"Wired = argType"+d+".toWireType("+m+", arg"+d+"); // "+t[d+2].name+"\n",p.push("argType"+d),v.push(t[d+2]);if(s&&(u="thisWired"+(u.length>0?", ":"")+u),h+=(l||o?"var rv = ":"")+"invoker(fn"+(u.length>0?", ":"")+u+");\n",c)h+="runDestructors(destructors);\n";else for(d=s?1:2;d<t.length;++d){var _=1===d?"thisWired":"arg"+(d-2)+"Wired";null!==t[d].destructorFunction&&(h+=_+"_dtor("+_+"); // "+t[d].name+"\n",p.push(_+"_dtor"),v.push(t[d].destructorFunction))}return l&&(h+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),h+="}\n",p.push(h),function(e,t){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var r=Er(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,i=e.apply(n,t);return i instanceof Object?i:n}(Function,p).apply(null,v)}var Lr=(e,t,r)=>(e instanceof Object||ir(`${r} with invalid "this": ${e}`),e instanceof t.registeredClass.constructor||ir(`${r} incompatible with "this" of type ${e.constructor.name}`),e.$$.ptr||ir(`cannot call emscripten binding method ${r} on deleted object`),Tr(e.$$.ptr,e.$$.ptrType.registeredClass,t.registeredClass));function jr(){this.allocated=[void 0],this.freelist=[]}var Wr=new jr,Ur=e=>{e>=Wr.reserved&&0==--Wr.get(e).refcount&&Wr.free(e)},Br={toValue:e=>(e||ir("Cannot use deleted val. handle = "+e),Wr.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return Wr.allocate({refcount:1,value:e})}}},zr=(e,t,c)=>{switch(t){case 1:return c?function(e){return this.fromWireType(r()[e>>0])}:function(e){return this.fromWireType(n()[e>>0])};case 2:return c?function(e){return this.fromWireType(i()[e>>1])}:function(e){return this.fromWireType(o()[e>>1])};case 4:return c?function(e){return this.fromWireType(a()[e>>2])}:function(e){return this.fromWireType(s()[e>>2])};default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Hr=(e,t)=>{var r=Jt[e];return void 0===r&&ir(t+" has unknown type "+Ir(e)),r},Gr=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},Yr=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType((x.buffer!=U.buffer&&X(),V)[e>>2])};case 8:return function(e){return this.fromWireType(c()[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},Vr=(e,t,c)=>{switch(t){case 1:return c?e=>r()[e>>0]:e=>n()[e>>0];case 2:return c?e=>i()[e>>1]:e=>o()[e>>1];case 4:return c?e=>a()[e>>2]:e=>s()[e>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Kr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,qr=(e,t)=>{Z(e%2==0,"Pointer passed to UTF16ToString must be aligned to two bytes!");for(var r=e,a=r>>1,s=a+t/2;!(a>=s)&&o()[a];)++a;if((r=a<<1)-e>32&&Kr)return Kr.decode(n().slice(e,r));for(var c="",d=0;!(d>=t/2);++d){var l=i()[e+2*d>>1];if(0==l)break;c+=String.fromCharCode(l)}return c},Zr=(e,t,r)=>{if(Z(t%2==0,"Pointer passed to stringToUTF16 must be aligned to two bytes!"),Z("number"==typeof r,"stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,o=(r-=2)<2*e.length?r/2:e.length,a=0;a<o;++a){var s=e.charCodeAt(a);i()[t>>1]=s,Re(s),t+=2}return i()[t>>1]=0,Re(0),t-n},Xr=e=>2*e.length,Jr=(e,t)=>{Z(e%4==0,"Pointer passed to UTF32ToString must be aligned to four bytes!");for(var r=0,n="";!(r>=t/4);){var i=a()[e+4*r>>2];if(0==i)break;if(++r,i>=65536){var o=i-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(i)}return n},Qr=(e,t,r)=>{if(Z(t%4==0,"Pointer passed to stringToUTF32 must be aligned to four bytes!"),Z("number"==typeof r,"stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,i=n+r-4,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o)),a()[t>>2]=s,$e(s),(t+=4)+4>i)break}return a()[t>>2]=0,$e(0),t-n},en=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t},tn=e=>{if("function"==typeof Atomics.waitAsync){var t=Atomics.waitAsync(a(),e>>2,e);Z(t.async),t.value.then(rn);var r=e+128;Atomics.store(a(),r>>2,1)}};f.__emscripten_thread_mailbox_await=tn;var rn=()=>{var e=Wn();e&&(tn(e),(e=>{if(q)$("user callback triggered after runtime exited or application aborted. Ignoring.");else try{e(),(()=>{if(!se())try{S?Kn(W):vt(W)}catch(e){yt(e)}})()}catch(e){yt(e)}})((()=>qn())))};f.checkMailbox=rn;var nn=function(e,t){var r=arguments.length-2,n=arguments;return st((()=>{for(var i=r,o=ti(8*i),a=o>>3,s=0;s<r;s++){var d=n[2+s];c()[a+s]=d}return Yn(e,i,o,t)}))},on=[],an=e=>e%4==0&&(e%100!=0||e%400==0),sn=[0,31,60,91,121,152,182,213,244,274,305,335],cn=[0,31,59,90,120,151,181,212,243,273,304,334],dn=(e,t)=>(Z(e==e>>>0||e==(0|e)),Z(t===(0|t)),t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN);function ln(e,t,r,n,i,o,c,d){if(S)return nn(13,1,e,t,r,n,i,o,c,d);var l=dn(i,o);try{if(isNaN(l))return 61;var f=ht.getStreamFromFD(n),u=ut.mmap(f,e,l,t,r),h=u.ptr;return a()[c>>2]=u.allocated,$e(u.allocated),s()[d>>2]=h,0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function fn(e,t,r,n,i,o,a){if(S)return nn(14,1,e,t,r,n,i,o,a);var s=dn(o,a);try{if(isNaN(s))return 61;var c=ht.getStreamFromFD(i);2&r&&ht.doMsync(e,c,t,n,s),ut.munmap(c)}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}var un,hn=e=>{var t=qe(e)+1,r=In(t);return r&&ct(e,r,t),r};un=()=>performance.timeOrigin+performance.now();var mn=e=>{var t=x.buffer,r=(e-t.byteLength+65535)/65536;try{return x.grow(r),X(),1}catch(r){$(`growMemory: Attempted to grow heap from ${t.byteLength} bytes to ${e} bytes, but got error: ${r}`)}},pn={},vn=()=>{if(!vn.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:p||"./this.program"};for(var t in pn)void 0===pn[t]?delete e[t]:e[t]=pn[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);vn.strings=r}return vn.strings},_n=function(e,t){if(S)return nn(15,1,e,t);var n=0;return vn().forEach(((i,o)=>{var a=t+n;s()[e+4*o>>2]=a,$e(a),((e,t)=>{for(var n=0;n<e.length;++n)Z(e.charCodeAt(n)===(255&e.charCodeAt(n))),r()[t++>>0]=e.charCodeAt(n),Ie(e.charCodeAt(n));r()[t>>0]=0,Ie(0)})(i,a),n+=i.length+1})),0},yn=function(e,t){if(S)return nn(16,1,e,t);var r=vn();s()[e>>2]=r.length,$e(r.length);var n=0;return r.forEach((e=>n+=e.length+1)),s()[t>>2]=n,$e(n),0};function gn(e){if(S)return nn(17,1,e);try{var t=ht.getStreamFromFD(e);return ut.close(t),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return e.errno}}function wn(e,t){if(S)return nn(18,1,e,t);try{var n=ht.getStreamFromFD(e),o=n.tty?2:ut.isDir(n.mode)?3:ut.isLink(n.mode)?7:4;return r()[t>>0]=o,Ie(o),i()[t+2>>1]=0,Re(0),we=[0,(ge=0,+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[t+8>>2]=we[0],a()[t+12>>2]=we[1],xe(0),we=[0,(ge=0,+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[t+16>>2]=we[0],a()[t+20>>2]=we[1],xe(0),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return e.errno}}function En(e,t,n,i){if(S)return nn(19,1,e,t,n,i);try{var o=((e,t,n,i)=>{for(var o=0,a=0;a<n;a++){var c=s()[t>>2],d=s()[t+4>>2];t+=8;var l=ut.read(e,r(),c,d,i);if(l<0)return-1;if(o+=l,l<d)break;void 0!==i&&(i+=l)}return o})(ht.getStreamFromFD(e),t,n);return s()[i>>2]=o,$e(o),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return e.errno}}function bn(e,t,r,n,i){if(S)return nn(20,1,e,t,r,n,i);var o=dn(t,r);try{if(isNaN(o))return 61;var s=ht.getStreamFromFD(e);return ut.llseek(s,o,n),we=[s.position>>>0,(ge=s.position,+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[i>>2]=we[0],a()[i+4>>2]=we[1],xe(s.position),s.getdents&&0===o&&0===n&&(s.getdents=null),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return e.errno}}function kn(e,t,n,i){if(S)return nn(21,1,e,t,n,i);try{var o=((e,t,n,i)=>{for(var o=0,a=0;a<n;a++){var c=s()[t>>2],d=s()[t+4>>2];t+=8;var l=ut.write(e,r(),c,d,i);if(l<0)return-1;o+=l,void 0!==i&&(i+=l)}return o})(ht.getStreamFromFD(e),t,n);return s()[i>>2]=o,$e(o),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return e.errno}}var Sn=[31,29,31,30,31,30,31,31,30,31,30,31],Tn=[31,28,31,30,31,30,31,31,30,31,30,31],Pn=(e,t,n,i)=>{var o=s()[i+40>>2],c={tm_sec:a()[i>>2],tm_min:a()[i+4>>2],tm_hour:a()[i+8>>2],tm_mday:a()[i+12>>2],tm_mon:a()[i+16>>2],tm_year:a()[i+20>>2],tm_wday:a()[i+24>>2],tm_yday:a()[i+28>>2],tm_isdst:a()[i+32>>2],tm_gmtoff:a()[i+36>>2],tm_zone:o?lt(o):""},d=lt(n),l={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var f in l)d=d.replace(new RegExp(f,"g"),l[f]);var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],h=["January","February","March","April","May","June","July","August","September","October","November","December"];function m(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length<t;)n=r[0]+n;return n}function p(e,t){return m(e,t,"0")}function v(e,t){function r(e){return e<0?-1:e>0?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function _(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function y(e){var t=((e,t)=>{for(var r=new Date(e.getTime());t>0;){var n=an(r.getFullYear()),i=r.getMonth(),o=(n?Sn:Tn)[i];if(!(t>o-r.getDate()))return r.setDate(r.getDate()+t),r;t-=o-r.getDate()+1,r.setDate(1),i<11?r.setMonth(i+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r})(new Date(e.tm_year+1900,0,1),e.tm_yday),r=new Date(t.getFullYear(),0,4),n=new Date(t.getFullYear()+1,0,4),i=_(r),o=_(n);return v(i,t)<=0?v(o,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var g={"%a":e=>u[e.tm_wday].substring(0,3),"%A":e=>u[e.tm_wday],"%b":e=>h[e.tm_mon].substring(0,3),"%B":e=>h[e.tm_mon],"%C":e=>p((e.tm_year+1900)/100|0,2),"%d":e=>p(e.tm_mday,2),"%e":e=>m(e.tm_mday,2," "),"%g":e=>y(e).toString().substring(2),"%G":e=>y(e),"%H":e=>p(e.tm_hour,2),"%I":e=>{var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),p(t,2)},"%j":e=>p(e.tm_mday+((e,t)=>{for(var r=0,n=0;n<=t;r+=e[n++]);return r})(an(e.tm_year+1900)?Sn:Tn,e.tm_mon-1),3),"%m":e=>p(e.tm_mon+1,2),"%M":e=>p(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>p(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var t=e.tm_yday+7-e.tm_wday;return p(Math.floor(t/7),2)},"%V":e=>{var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,t){if(53==t){var r=(e.tm_wday+371-e.tm_yday)%7;4==r||3==r&&an(e.tm_year)||(t=1)}}else{t=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&an(e.tm_year%400-1))&&t++}return p(t,2)},"%w":e=>e.tm_wday,"%W":e=>{var t=e.tm_yday+7-(e.tm_wday+6)%7;return p(Math.floor(t/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var t=e.tm_gmtoff,r=t>=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(r?"+":"-")+String("0000"+t).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var f in d=d.replace(/%%/g,"\0\0"),g)d.includes(f)&&(d=d.replace(new RegExp(f,"g"),g[f](c)));var w,E,b=Xe(d=d.replace(/\0\0/g,"%"),!1);return b.length>t?0:(E=e,Z((w=b).length>=0,"writeArrayToMemory array must have a length (should be an array or typed array)"),r().set(w,E),b.length-1)};gt.init();var Fn,Cn,An=function(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=ut.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n};Object.defineProperties(An.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return ut.isDir(this.mode)}},isDevice:{get:function(){return ut.isChrdev(this.mode)}}}),ut.FSNode=An,ut.createPreloadedFile=(e,t,r,n,i,o,a,s,c,d)=>{var l=t?Ge.resolve(ze.join2(e,t)):e,f=me(`cp ${l}`);function u(r){function u(r){d&&d(),s||((e,t,r,n,i,o)=>{ut.createDataFile(e,t,r,n,i,o)})(e,t,r,n,i,c),o&&o(),ve(f)}((e,t,r,n)=>{"undefined"!=typeof Browser&&Browser.init();var i=!1;return tt.forEach((o=>{i||o.canHandle(t)&&(o.handle(e,t,r,n),i=!0)})),i})(r,l,u,(()=>{a&&a(),ve(f)}))||u(r)}pe(f),"string"==typeof r?((e,t,r,n)=>{var i=me(`al ${e}`);b(e,(t=>{Z(t,`Loading data file "${e}" failed (no arrayBuffer).`),u(new Uint8Array(t)),i&&ve(i)}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),i&&pe(i)})(r,0,a):u(r)},ut.staticInit(),f.FS_createPath=ut.createPath,f.FS_createDataFile=ut.createDataFile,f.FS_createPreloadedFile=ut.createPreloadedFile,f.FS_unlink=ut.unlink,f.FS_createLazyFile=ut.createLazyFile,f.FS_createDevice=ut.createDevice,g&&ot.staticInit(),it={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},Kt=f.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},(()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);qt=e})(),Zt=f.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(gr.prototype,{isAliasOf(e){if(!(this instanceof gr))return!1;if(!(e instanceof gr))return!1;var t=this.$$.ptrType.registeredClass,r=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,i=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return t===n&&r===i},clone(){if(this.$$.ptr||sr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,t=yr(Object.create(Object.getPrototypeOf(this),{$$:{value:(e=this.$$,{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType})}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||sr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ir("Object already scheduled for deletion"),dr(this),lr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||sr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ir("Object already scheduled for deletion"),hr.push(this),1===hr.length&&ar&&ar(mr),this.$$.deleteScheduled=!0,this}}),f.getInheritedInstanceCount=()=>Object.keys(pr).length,f.getLiveInheritedInstances=()=>{var e=[];for(var t in pr)pr.hasOwnProperty(t)&&e.push(pr[t]);return e},f.flushPendingDeletes=mr,f.setDelayFunction=e=>{ar=e,hr.length&&ar&&ar(mr)},Object.assign(Nr.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:8,readValueFromPointer:Ar,deleteObject(e){null!==e&&e.delete()},fromWireType:_r}),Dr=f.UnboundTypeError=(Fn=Error,(Cn=Er("UnboundTypeError",(function(e){this.name="UnboundTypeError",this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(Fn.prototype),Cn.prototype.constructor=Cn,Cn.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},Cn),Object.assign(jr.prototype,{get(e){return Z(void 0!==this.allocated[e],`invalid handle: ${e}`),this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t},free(e){Z(void 0!==this.allocated[e]),this.allocated[e]=void 0,this.freelist.push(e)}}),Wr.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),Wr.reserved=Wr.allocated.length,f.count_emval_handles=()=>{for(var e=0,t=Wr.reserved;t<Wr.allocated.length;++t)void 0!==Wr.allocated[t]&&++e;return e};var Nn,Dn=[mt,Et,Mt,Rt,$t,xt,Lt,jt,Wt,Ut,Bt,zt,Ht,ln,fn,_n,yn,gn,wn,En,bn,kn],On={__assert_fail:(e,t,r,n)=>{_e(`Assertion failed: ${lt(e)}, at: `+[t?lt(t):"unknown filename",r,n?lt(n):"unknown function"])},__cxa_begin_catch:e=>{var t=new Dt(e);return t.get_caught()||(t.set_caught(!0),At--),t.set_rethrown(!1),Ct.push(t),ii(t.excPtr),t.get_exception_ptr()},__cxa_current_primary_exception:()=>{if(!Ct.length)return 0;var e=Ct[Ct.length-1];return ii(e.excPtr),e.excPtr},__cxa_end_catch:()=>{Zn(0,0),Z(Ct.length>0);var e=Ct.pop();ni(e.excPtr),Nt=0},__cxa_find_matching_catch_2:()=>Ot([]),__cxa_find_matching_catch_3:e=>Ot([e]),__cxa_find_matching_catch_4:(e,t)=>Ot([e,t]),__cxa_find_matching_catch_5:(e,t,r)=>Ot([e,t,r]),__cxa_find_matching_catch_6:(e,t,r,n)=>Ot([e,t,r,n]),__cxa_find_matching_catch_7:(e,t,r,n,i)=>Ot([e,t,r,n,i]),__cxa_get_exception_ptr:e=>new Dt(e).get_exception_ptr(),__cxa_rethrow:()=>{var e=Ct.pop();e||_e("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(Ct.push(e),e.set_rethrown(!0),e.set_caught(!1),At++),Nt=new Pe(t)},__cxa_throw:(e,t,r)=>{throw new Dt(e).init(t,r),Nt=new Pe(e),At++,Nt},__cxa_uncaught_exceptions:()=>At,__emscripten_init_main_thread_js:e=>{zn(e,!y,1,!_,2097152,!1),gt.threadInitTLS()},__emscripten_thread_cleanup:e=>{S?postMessage({cmd:"cleanupThread",thread:e}):Ue(e)},__handle_stack_overflow:e=>{var t=Hn(),r=Gn();_e(`stack overflow (Attempt to set SP to ${_t(e)}, with stack limits [${_t(r)} - ${_t(t)}]). If you require more stack space build with -sSTACK_SIZE=<bytes>`)},__pthread_create_js:It,__resumeException:e=>{throw Nt||(Nt=new Pe(e)),Nt},__syscall_fcntl64:Rt,__syscall_fstat64:$t,__syscall_ioctl:xt,__syscall_lstat64:Lt,__syscall_mkdirat:jt,__syscall_newfstatat:Wt,__syscall_openat:Ut,__syscall_rmdir:Bt,__syscall_stat64:zt,__syscall_unlinkat:Ht,_embind_finalize_value_array:e=>{var t=Gt[e];delete Gt[e];var r=t.elements,n=r.length,i=r.map((e=>e.getterReturnType)).concat(r.map((e=>e.setterArgumentType))),o=t.rawConstructor,a=t.rawDestructor;tr([e],i,(function(e){return r.forEach(((t,r)=>{var i=e[r],o=t.getter,a=t.getterContext,s=e[r+n],c=t.setter,d=t.setterContext;t.read=e=>i.fromWireType(o(a,e)),t.write=(e,t)=>{var r=[];c(d,e,s.toWireType(r,t)),Yt(r)}})),[{name:t.name,fromWireType:e=>{for(var t=new Array(n),i=0;i<n;++i)t[i]=r[i].read(e);return a(e),t},toWireType:(e,i)=>{if(n!==i.length)throw new TypeError(`Incorrect number of tuple elements for ${t.name}: expected=${n}, actual=${i.length}`);for(var s=o(),c=0;c<n;++c)r[c].write(s,i[c]);return null!==e&&e.push(a,s),s},argPackAdvance:8,readValueFromPointer:Vt,destructorFunction:a}]}))},_embind_finalize_value_object:e=>{var t=rr[e];delete rr[e];var r=t.rawConstructor,n=t.rawDestructor,i=t.fields,o=i.map((e=>e.getterReturnType)).concat(i.map((e=>e.setterArgumentType)));tr([e],o,(e=>{var o={};return i.forEach(((t,r)=>{var n=t.fieldName,a=e[r],s=t.getter,c=t.getterContext,d=e[r+i.length],l=t.setter,f=t.setterContext;o[n]={read:e=>a.fromWireType(s(c,e)),write:(e,t)=>{var r=[];l(f,e,d.toWireType(r,t)),Yt(r)}}})),[{name:t.name,fromWireType:e=>{var t={};for(var r in o)t[r]=o[r].read(e);return n(e),t},toWireType:(e,t)=>{for(var i in o)if(!(i in t))throw new TypeError(`Missing field: "${i}"`);var a=r();for(i in o)o[i].write(a,t[i]);return null!==e&&e.push(n,a),a},argPackAdvance:8,readValueFromPointer:Vt,destructorFunction:n}]}))},_embind_register_bigint:(e,t,r,n,i)=>{},_embind_register_bool:(e,t,r,i)=>{or(e,{name:t=nr(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:i},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(n()[e])},destructorFunction:null})},_embind_register_class:(e,t,r,n,i,o,a,s,c,d,l,f,u)=>{l=nr(l),o=Mr(i,o),s&&(s=Mr(a,s)),d&&(d=Mr(c,d)),u=Mr(f,u);var h=wr(l);kr(h,(function(){Rr(`Cannot construct ${l} due to unbound types`,[n])})),tr([e,t,r],n?[n]:[],(function(t){var r,i;t=t[0],i=n?(r=t.registeredClass).instancePrototype:gr.prototype;var a=Er(h,(function(){if(Object.getPrototypeOf(this)!==c)throw new Zt("Use 'new' to construct "+l);if(void 0===f.constructor_body)throw new Zt(l+" has no accessible constructor");var e=f.constructor_body[arguments.length];if(void 0===e)throw new Zt(`Tried to invoke ctor of ${l} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(f.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)})),c=Object.create(i,{constructor:{value:a}});a.prototype=c;var f=new Sr(l,a,c,u,r,o,s,d);f.baseClass&&(void 0===f.baseClass.__derivedClasses&&(f.baseClass.__derivedClasses=[]),f.baseClass.__derivedClasses.push(f));var m=new Nr(l,f,!0,!1,!1),p=new Nr(l+"*",f,!1,!1,!1),v=new Nr(l+" const*",f,!1,!0,!1);return ur[e]={pointerType:p,constPointerType:v},Or(h,a),[m,p,v]}))},_embind_register_class_constructor:(e,t,r,n,i,o)=>{Z(t>0);var a=$r(t,r);i=Mr(n,i),tr([],[e],(function(e){var r=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new Zt(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[t-1]=()=>{Rr(`Cannot construct ${e.name} due to unbound types`,a)},tr([],a,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=xr(r,n,null,i,o),[]))),[]}))},_embind_register_class_function:(e,t,r,n,i,o,a,s,c)=>{var d=$r(r,n);t=nr(t),o=Mr(i,o),tr([],[e],(function(e){var n=`${(e=e[0]).name}.${t}`;function i(){Rr(`Cannot call ${n} due to unbound types`,d)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var l=e.registeredClass.instancePrototype,f=l[t];return void 0===f||void 0===f.overloadTable&&f.className!==e.name&&f.argCount===r-2?(i.argCount=r-2,i.className=e.name,l[t]=i):(br(l,t,n),l[t].overloadTable[r-2]=i),tr([],d,(function(i){var s=xr(n,i,e,o,a,c);return void 0===l[t].overloadTable?(s.argCount=r-2,l[t]=s):l[t].overloadTable[r-2]=s,[]})),[]}))},_embind_register_class_property:(e,t,r,n,i,o,a,s,c,d)=>{t=nr(t),i=Mr(n,i),tr([],[e],(function(e){var n=`${(e=e[0]).name}.${t}`,l={get(){Rr(`Cannot access ${n} due to unbound types`,[r,a])},enumerable:!0,configurable:!0};return l.set=c?()=>Rr(`Cannot access ${n} due to unbound types`,[r,a]):e=>ir(n+" is a read-only property"),Object.defineProperty(e.registeredClass.instancePrototype,t,l),tr([],c?[r,a]:[r],(function(r){var a=r[0],l={get(){var t=Lr(this,e,n+" getter");return a.fromWireType(i(o,t))},enumerable:!0};if(c){c=Mr(s,c);var f=r[1];l.set=function(t){var r=Lr(this,e,n+" setter"),i=[];c(d,r,f.toWireType(i,t)),Yt(i)}}return Object.defineProperty(e.registeredClass.instancePrototype,t,l),[]})),[]}))},_embind_register_emval:(e,t)=>{or(e,{name:t=nr(t),fromWireType:e=>{var t=Br.toValue(e);return Ur(e),t},toWireType:(e,t)=>Br.toHandle(t),argPackAdvance:8,readValueFromPointer:Vt,destructorFunction:null})},_embind_register_enum:(e,t,r,n)=>{function i(){}t=nr(t),i.values={},or(e,{name:t,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,t)=>t.value,argPackAdvance:8,readValueFromPointer:zr(t,r,n),destructorFunction:null}),kr(t,i)},_embind_register_enum_value:(e,t,r)=>{var n=Hr(e,"enum");t=nr(t);var i=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:r},constructor:{value:Er(`${n.name}_${t}`,(function(){}))}});i.values[r]=o,i[t]=o},_embind_register_float:(e,t,r)=>{or(e,{name:t=nr(t),fromWireType:e=>e,toWireType:(e,t)=>{if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError(`Cannot convert ${Gr(t)} to ${this.name}`);return t},argPackAdvance:8,readValueFromPointer:Yr(t,r),destructorFunction:null})},_embind_register_function:(e,t,r,n,i,o,a)=>{var s=$r(t,r);e=nr(e),i=Mr(n,i),kr(e,(function(){Rr(`Cannot call ${e} due to unbound types`,s)}),t-1),tr([],s,(function(r){var n=[r[0],null].concat(r.slice(1));return Or(e,xr(e,n,null,i,o,a),t-1),[]}))},_embind_register_integer:(e,t,r,n,i)=>{t=nr(t),-1===i&&(i=4294967295);var o=e=>e;if(0===n){var a=32-8*r;o=e=>e<<a>>>a}var s=t.includes("unsigned"),c=(e,r)=>{if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError(`Cannot convert "${Gr(e)}" to ${r}`);if(e<n||e>i)throw new TypeError(`Passing a number "${Gr(e)}" from JS side to C/C++ side to an argument of type "${t}", which is outside the valid range [${n}, ${i}]!`)};or(e,{name:t,fromWireType:o,toWireType:s?function(e,t){return c(t,this.name),t>>>0}:function(e,t){return c(t,this.name),t},argPackAdvance:8,readValueFromPointer:Vr(t,r,0!==n),destructorFunction:null})},_embind_register_memory_view:(e,t,n)=>{var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function o(e){var t=s()[e>>2],n=s()[e+4>>2];return new i(r().buffer,n,t)}or(e,{name:n=nr(n),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},_embind_register_std_string:(e,t)=>{var r="std::string"===(t=nr(t));or(e,{name:t,fromWireType(e){var t,i=s()[e>>2],o=e+4;if(r)for(var a=o,c=0;c<=i;++c){var d=o+c;if(c==i||0==n()[d]){var l=lt(a,d-a);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),a=d+1}}else{var f=new Array(i);for(c=0;c<i;++c)f[c]=String.fromCharCode(n()[o+c]);t=f.join("")}return $n(e),t},toWireType(e,t){var i;t instanceof ArrayBuffer&&(t=new Uint8Array(t));var o="string"==typeof t;o||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||ir("Cannot pass non-string to std::string"),i=r&&o?qe(t):t.length;var a=In(4+i+1),c=a+4;if(s()[a>>2]=i,$e(i),r&&o)ct(t,c,i+1);else if(o)for(var d=0;d<i;++d){var l=t.charCodeAt(d);l>255&&($n(c),ir("String has UTF-16 code units that do not fit in 8 bits")),n()[c+d]=l}else for(d=0;d<i;++d)n()[c+d]=t[d];return null!==e&&e.push($n,a),a},argPackAdvance:8,readValueFromPointer:Ar,destructorFunction(e){$n(e)}})},_embind_register_std_wstring:(e,t,r)=>{var n,i,a,c,d;r=nr(r),2===t?(n=qr,i=Zr,c=Xr,a=()=>o(),d=1):4===t&&(n=Jr,i=Qr,c=en,a=()=>s(),d=2),or(e,{name:r,fromWireType:e=>{for(var r,i=s()[e>>2],o=a(),c=e+4,l=0;l<=i;++l){var f=e+4+l*t;if(l==i||0==o[f>>d]){var u=n(c,f-c);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),c=f+t}}return $n(e),r},toWireType:(e,n)=>{"string"!=typeof n&&ir(`Cannot pass non-string to C++ string type ${r}`);var o=c(n),a=In(4+o+t);return s()[a>>2]=o>>d,i(n,a+4,o+t),null!==e&&e.push($n,a),a},argPackAdvance:8,readValueFromPointer:Vt,destructorFunction(e){$n(e)}})},_embind_register_value_array:(e,t,r,n,i,o)=>{Gt[e]={name:nr(t),rawConstructor:Mr(r,n),rawDestructor:Mr(i,o),elements:[]}},_embind_register_value_array_element:(e,t,r,n,i,o,a,s,c)=>{Gt[e].elements.push({getterReturnType:t,getter:Mr(r,n),getterContext:i,setterArgumentType:o,setter:Mr(a,s),setterContext:c})},_embind_register_value_object:(e,t,r,n,i,o)=>{rr[e]={name:nr(t),rawConstructor:Mr(r,n),rawDestructor:Mr(i,o),fields:[]}},_embind_register_value_object_field:(e,t,r,n,i,o,a,s,c,d)=>{rr[e].fields.push({fieldName:nr(t),getterReturnType:r,getter:Mr(n,i),getterContext:o,setterArgumentType:a,setter:Mr(s,c),setterContext:d})},_embind_register_void:(e,t)=>{or(e,{isVoid:!0,name:t=nr(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},_emscripten_get_now_is_monotonic:()=>!0,_emscripten_notify_mailbox_postmessage:(e,t,r)=>{if(e==t)setTimeout((()=>rn()));else if(S)postMessage({targetThread:e,cmd:"checkMailbox"});else{var n=gt.pthreads[e];if(!n)return void $(`Cannot send message to thread with ID ${e}, unknown thread ID!`);n.postMessage({cmd:"checkMailbox"})}},_emscripten_receive_on_main_thread_js:(e,t,r,n)=>{on.length=r;for(var i=n>>3,o=0;o<r;o++)on[o]=c()[i+o];var a=Dn[e];Z(a.length==r,"Call args mismatch in _emscripten_receive_on_main_thread_js"),gt.currentProxiedOperationCallerThread=t;var s=a.apply(null,on);return gt.currentProxiedOperationCallerThread=0,s},_emscripten_thread_mailbox_await:tn,_emscripten_thread_set_strongref:e=>{g&&gt.pthreads[e].ref()},_emscripten_throw_longjmp:()=>{throw new Te},_emval_decref:Ur,_emval_incref:e=>{e>4&&(Wr.get(e).refcount+=1)},_emval_take_value:(e,t)=>{var r=(e=Hr(e,"_emval_take_value")).readValueFromPointer(t);return Br.toHandle(r)},_localtime_js:function(e,t,r){var n=dn(e,t),i=new Date(1e3*n);a()[r>>2]=i.getSeconds(),$e(i.getSeconds()),a()[r+4>>2]=i.getMinutes(),$e(i.getMinutes()),a()[r+8>>2]=i.getHours(),$e(i.getHours()),a()[r+12>>2]=i.getDate(),$e(i.getDate()),a()[r+16>>2]=i.getMonth(),$e(i.getMonth()),a()[r+20>>2]=i.getFullYear()-1900,$e(i.getFullYear()-1900),a()[r+24>>2]=i.getDay(),$e(i.getDay());var o=0|(e=>(an(e.getFullYear())?sn:cn)[e.getMonth()]+e.getDate()-1)(i);a()[r+28>>2]=o,$e(o),a()[r+36>>2]=-60*i.getTimezoneOffset(),$e(-60*i.getTimezoneOffset());var s=new Date(i.getFullYear(),0,1),c=new Date(i.getFullYear(),6,1).getTimezoneOffset(),d=s.getTimezoneOffset(),l=0|(c!=d&&i.getTimezoneOffset()==Math.min(d,c));a()[r+32>>2]=l,$e(l)},_mmap_js:ln,_munmap_js:fn,_tzset_js:(e,t,r)=>{var n=(new Date).getFullYear(),i=new Date(n,0,1),o=new Date(n,6,1),c=i.getTimezoneOffset(),d=o.getTimezoneOffset(),l=Math.max(c,d);function f(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}s()[e>>2]=60*l,$e(60*l),a()[t>>2]=Number(c!=d),$e(Number(c!=d));var u=f(i),h=f(o),m=hn(u),p=hn(h);d<c?(s()[r>>2]=m,$e(m),s()[r+4>>2]=p,$e(p)):(s()[r>>2]=p,$e(p),s()[r+4>>2]=m,$e(m))},abort:()=>{_e("native code called abort()")},emscripten_check_blocking_allowed:()=>{g||y||Ft("Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread")},emscripten_date_now:()=>Date.now(),emscripten_exit_with_live_runtime:()=>{throw ae+=1,"unwind"},emscripten_get_heap_max:()=>2147483648,emscripten_get_now:un,emscripten_num_logical_cores:()=>g?require("os").cpus().length:navigator.hardwareConcurrency,emscripten_resize_heap:e=>{var t=n().length;if((e>>>=0)<=t)return!1;var r=2147483648;if(e>r)return $(`Cannot enlarge memory, requested ${e} bytes, but the limit is 2147483648 bytes!`),!1;for(var i,o=1;o<=4;o*=2){var a=t*(1+.2/o);a=Math.min(a,e+100663296);var s=Math.min(r,(i=Math.max(e,a))+(65536-i%65536)%65536),c=un(),d=mn(s);if(Le(`Heap resize call from ${t} to ${s} took ${un()-c} msecs. Success: ${!!d}`),d)return!0}return $(`Failed to grow the heap from ${t} bytes to ${s} bytes, not enough memory!`),!1},environ_get:_n,environ_sizes_get:yn,exit:vt,fd_close:gn,fd_fdstat_get:wn,fd_read:En,fd_seek:bn,fd_write:kn,invoke_dd:function(e,t){var r=Qn();try{return Tt(e)(t)}catch(e){if(ei(r),!(e instanceof Se))throw e;Zn(1,0)}},invoke_ddi:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_di:function(e,t){var r=Qn();try{return Tt(e)(t)}catch(e){if(ei(r),!(e instanceof Se))throw e;Zn(1,0)}},invoke_did:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_didi:function(e,t,r,n){var i=Qn();try{return Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_dii:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diidiiii:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diii:function(e,t,r,n){var i=Qn();try{return Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiid:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiidi:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiif:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiii:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiiii:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiiiid:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiiiii:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiiiiii:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fi:function(e,t){var r=Qn();try{return Tt(e)(t)}catch(e){if(ei(r),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fii:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fiiffii:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fiii:function(e,t,r,n){var i=Qn();try{return Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fiiifif:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fiiii:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fiiiif:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fiiiifif:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_i:function(e){var t=Qn();try{return Tt(e)()}catch(e){if(ei(t),!(e instanceof Se))throw e;Zn(1,0)}},invoke_idi:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_ii:function(e,t){var r=Qn();try{return Tt(e)(t)}catch(e){if(ei(r),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iid:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iidd:function(e,t,r,n){var i=Qn();try{return Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiddd:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iidddd:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iidddii:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iidddiii:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiddiiiiii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iidii:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iif:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiffff:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiffffffff:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iifffi:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iifiif:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iii:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiid:function(e,t,r,n){var i=Qn();try{return Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiidd:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiidi:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiidii:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiif:function(e,t,r,n){var i=Qn();try{return Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiffffffffffff:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m){var p=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m)}catch(e){if(ei(p),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiifffii:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiifffiii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiii:function(e,t,r,n){var i=Qn();try{return Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiid:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiidd:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiidii:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiif:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiifff:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiffff:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiifffiff:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiii:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiid:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiidd:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiddd:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiidddi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiidi:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiif:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiifff:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiifffffffffffffff:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g){var w=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g)}catch(e){if(ei(w),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiifi:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiifiii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiii:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiid:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiidd:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiidi:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiidiiidiiiiidiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g,w,E){var b=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g,w,E)}catch(e){if(ei(b),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiif:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiff:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiifff:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiffi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiii:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiid:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiidd:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiddi:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiidi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiif:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiff:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiffi:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiifi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiifif:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiifiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m){var p=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m)}catch(e){if(ei(p),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiii:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiid:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiddii:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiff:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiffffffffffff:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g){var w=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g)}catch(e){if(ei(w),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiifffi:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u){var h=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u)}catch(e){if(ei(h),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p){var v=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p)}catch(e){if(ei(v),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v){var _=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v)}catch(e){if(ei(_),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiij:function(e,t,r,n,i,o,a){var s=Qn();try{return mi(e,t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iij:function(e,t,r,n){var i=Qn();try{return ui(e,t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_j:function(e){var t=Qn();try{return hi(e)}catch(e){if(ei(t),!(e instanceof Se))throw e;Zn(1,0)}},invoke_ji:function(e,t){var r=Qn();try{return li(e,t)}catch(e){if(ei(r),!(e instanceof Se))throw e;Zn(1,0)}},invoke_jiiii:function(e,t,r,n,i){var o=Qn();try{return pi(e,t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_v:function(e){var t=Qn();try{Tt(e)()}catch(e){if(ei(t),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vi:function(e,t){var r=Qn();try{Tt(e)(t)}catch(e){if(ei(r),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vid:function(e,t,r){var n=Qn();try{Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viddddd:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vidddddd:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viddddddi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vidi:function(e,t,r,n){var i=Qn();try{Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vidii:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vif:function(e,t,r){var n=Qn();try{Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viff:function(e,t,r,n){var i=Qn();try{Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viffiiiiii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vifi:function(e,t,r,n){var i=Qn();try{Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vifif:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vifii:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vii:function(e,t,r){var n=Qn();try{Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viid:function(e,t,r,n){var i=Qn();try{Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viidd:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viidi:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viidiiiddi:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viidiiii:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viif:function(e,t,r,n){var i=Qn();try{Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiff:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifff:function(e,t,r,n,i,o){var a=Qn();try{Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiffff:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifffffff:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifffi:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifffii:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifffiii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifi:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viififfffii:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifiii:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifiiifff:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viii:function(e,t,r,n){var i=Qn();try{Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiid:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiddddd:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiddddi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiidi:function(e,t,r,n,i,o){var a=Qn();try{Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiidiiiii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiif:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiff:function(e,t,r,n,i,o){var a=Qn();try{Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiifff:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiffff:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiifffffffffffff:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v){var _=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v)}catch(e){if(ei(_),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiifffiff:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiifffii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiffi:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiffii:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiffiiiii:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiffiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiifi:function(e,t,r,n,i,o){var a=Qn();try{Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiifii:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiii:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiid:function(e,t,r,n,i,o){var a=Qn();try{Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiidd:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiidi:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiif:function(e,t,r,n,i,o){var a=Qn();try{Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiifff:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiifffi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiifffiiii:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiffii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiffiii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiifi:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiifiii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiii:function(e,t,r,n,i,o){var a=Qn();try{Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiid:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiidd:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiidddi:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiddi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiddii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiddiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p){var v=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p)}catch(e){if(ei(v),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiidi:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiif:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiffi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiffii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiffiii:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiii:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiid:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiidd:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiddddii:function(e,t,r,n,i,o,a,s,c,d,l,f,u){var h=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u)}catch(e){if(ei(h),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiidddi:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiddii:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiidi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiffi:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiffiii:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiii:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiid:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiddddd:function(e,t,r,n,i,o,a,s,c,d,l,f,u){var h=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u)}catch(e){if(ei(h),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiif:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiffiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h){var m=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h)}catch(e){if(ei(m),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiifi:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiidd:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiidddii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h){var m=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h)}catch(e){if(ei(m),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiddi:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiidi:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiifiifififiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g){var w=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g)}catch(e){if(ei(w),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiifiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u){var h=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u)}catch(e){if(ei(h),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiid:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiddii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m){var p=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m)}catch(e){if(ei(p),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u){var h=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u)}catch(e){if(ei(h),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiiiffi:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p){var v=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p)}catch(e){if(ei(v),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h){var m=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h)}catch(e){if(ei(m),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiiiid:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m){var p=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m)}catch(e){if(ei(p),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m){var p=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m)}catch(e){if(ei(p),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p){var v=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p)}catch(e){if(ei(v),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v){var _=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v)}catch(e){if(ei(_),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g,w){var E=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g,w)}catch(e){if(ei(E),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viijii:function(e,t,r,n,i,o,a){var s=Qn();try{fi(e,t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},llvm_eh_typeid_for:e=>e,memory:x||f.wasmMemory,strftime:Pn,strftime_l:(e,t,r,n,i)=>Pn(e,t,r,n)},Mn=function(){var e={env:On,wasi_snapshot_preview1:On};function t(e,t){var r,n;return Mn=e.exports,n=Mn._emscripten_tls_init,gt.tlsInitFunctions.push(n),Z(kt=Mn.__indirect_function_table,"table not found in wasm exports"),r=Mn.__wasm_call_ctors,re.unshift(r),L=t,ve("wasm-instantiate"),Mn}pe("wasm-instantiate");var r,n,i,o,a=f;if(f.instantiateWasm)try{return f.instantiateWasm(e,t)}catch(e){$(`Module.instantiateWasm callback failed with error: ${e}`),l(e)}return(r=I,n=ye,i=e,o=function(e){Z(f===a,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),a=null,t(e.instance,e.module)},r||"function"!=typeof WebAssembly.instantiateStreaming||Ee(n)||be(n)||g||"function"!=typeof fetch?Ce(n,i,o):fetch(n,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,i).then(o,(function(e){return $(`wasm streaming compile failed: ${e}`),$("falling back to ArrayBuffer instantiation"),Ce(n,i,o)}))))).catch(l),{}}(),In=(ke("__wasm_call_ctors"),ke("__cxa_free_exception"),ke("malloc")),Rn=ke("__errno_location"),$n=f._free=ke("free"),xn=f._fflush=ke("fflush"),Ln=f._main=ke("__main_argc_argv"),jn=ke("setTempRet0"),Wn=(f.__ZN5boost13serialization16singleton_module8get_lockEv=ke("_ZN5boost13serialization16singleton_module8get_lockEv"),f.__ZNK5boost7archive6detail11oserializerINS0_13text_oarchiveEN5RDKit9MolBundleEE16save_object_dataERNS1_14basic_oarchiveEPKv=ke("_ZNK5boost7archive6detail11oserializerINS0_13text_oarchiveEN5RDKit9MolBundleEE16save_object_dataERNS1_14basic_oarchiveEPKv"),f.__ZNK5boost7archive6detail11oserializerINS0_13text_oarchiveENSt3__26vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS9_ISB_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ke("_ZNK5boost7archive6detail11oserializerINS0_13text_oarchiveENSt3__26vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS9_ISB_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv"),f.__ZNK5boost7archive6detail11iserializerINS0_13text_iarchiveEN5RDKit9MolBundleEE16load_object_dataERNS1_14basic_iarchiveEPvj=ke("_ZNK5boost7archive6detail11iserializerINS0_13text_iarchiveEN5RDKit9MolBundleEE16load_object_dataERNS1_14basic_iarchiveEPvj"),f.__ZNK5boost7archive6detail11iserializerINS0_13text_iarchiveENSt3__26vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS9_ISB_EEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ke("_ZNK5boost7archive6detail11iserializerINS0_13text_iarchiveENSt3__26vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS9_ISB_EEEEE16load_object_dataERNS1_14basic_iarchiveEPvj"),f.__emscripten_tls_init=ke("_emscripten_tls_init"),f._pthread_self=()=>(Wn=f._pthread_self=Mn.pthread_self)()),Un=ke("emscripten_builtin_memalign"),Bn=ke("__getTypeName"),zn=(f.__embind_initialize_bindings=ke("_embind_initialize_bindings"),f.__emscripten_thread_init=ke("_emscripten_thread_init")),Hn=(f.__emscripten_thread_crashed=ke("_emscripten_thread_crashed"),ke("emscripten_main_thread_process_queued_calls"),ke("emscripten_main_runtime_thread_id"),()=>(Hn=Mn.emscripten_stack_get_base)()),Gn=()=>(Gn=Mn.emscripten_stack_get_end)(),Yn=ke("_emscripten_run_on_main_thread_js"),Vn=ke("_emscripten_thread_free_data"),Kn=f.__emscripten_thread_exit=ke("_emscripten_thread_exit"),qn=f.__emscripten_check_mailbox=ke("_emscripten_check_mailbox"),Zn=ke("setThrew"),Xn=()=>(Xn=Mn.emscripten_stack_init)(),Jn=(e,t)=>(Jn=Mn.emscripten_stack_set_limits)(e,t),Qn=ke("stackSave"),ei=ke("stackRestore"),ti=ke("stackAlloc"),ri=()=>(ri=Mn.emscripten_stack_get_current)(),ni=ke("__cxa_decrement_exception_refcount"),ii=ke("__cxa_increment_exception_refcount"),oi=ke("__cxa_demangle"),ai=f.___get_exception_message=ke("__get_exception_message"),si=ke("__cxa_can_catch"),ci=ke("__cxa_is_pointer_type"),di=f.___set_stack_limits=ke("__set_stack_limits"),li=f.dynCall_ji=ke("dynCall_ji"),fi=(f.dynCall_jii=ke("dynCall_jii"),f.dynCall_viij=ke("dynCall_viij"),f.dynCall_viijii=ke("dynCall_viijii")),ui=f.dynCall_iij=ke("dynCall_iij"),hi=(f.dynCall_jiji=ke("dynCall_jiji"),f.dynCall_j=ke("dynCall_j")),mi=f.dynCall_iiiiij=ke("dynCall_iiiiij"),pi=f.dynCall_jiiii=ke("dynCall_jiiii");function vi(e=m){if(!(le>0)){if(S||(Z(!S),Xn(),Q()),S)return d(f),ce(),void startWorker(f);!function(){if(Z(!S),f.preRun)for("function"==typeof f.preRun&&(f.preRun=[f.preRun]);f.preRun.length;)de(f.preRun.shift());wt(te)}(),le>0||(f.setStatus?(f.setStatus("Running..."),setTimeout((function(){setTimeout((function(){f.setStatus("")}),1),t()}),1)):t(),ee())}function t(){Nn||(Nn=!0,f.calledRun=!0,q||(ce(),ee(),S||wt(ne),d(f),f.onRuntimeInitialized&&f.onRuntimeInitialized(),_i&&function(e=[]){Z(0==le,'cannot call main when async dependencies remain! (listen on Module["onRuntimeInitialized"])'),Z(0==te.length,"cannot call main when preRun functions remain to be called");var t=Ln;e.unshift(p);var r=e.length,n=ti(4*(r+1)),i=n;e.forEach((e=>{s()[i>>2]=dt(e),i+=4})),s()[i>>2]=0;try{var o=t(r,n);return pt(o,!0),o}catch(e){return yt(e)}}(e),function(){if(ee(),!S){if(f.postRun)for("function"==typeof f.postRun&&(f.postRun=[f.postRun]);f.postRun.length;)e=f.postRun.shift(),ie.unshift(e);var e;wt(ie)}}()))}}if(f.dynCall_iiiiijj=ke("dynCall_iiiiijj"),f.dynCall_iiiiiijj=ke("dynCall_iiiiiijj"),f.addRunDependency=pe,f.removeRunDependency=ve,f.FS_createPath=ut.createPath,f.FS_createLazyFile=ut.createLazyFile,f.FS_createDevice=ut.createDevice,f.keepRuntimeAlive=se,f.wasmMemory=x,f.ExitStatus=je,f.FS_createPreloadedFile=ut.createPreloadedFile,f.FS=ut,f.FS_createDataFile=ut.createDataFile,f.FS_unlink=ut.unlink,f.PThread=gt,["writeI53ToI64","writeI53ToI64Clamped","writeI53ToI64Signaling","writeI53ToU64Clamped","writeI53ToU64Signaling","readI53FromI64","readI53FromU64","convertI32PairToI53","convertU32PairToI53","inetPton4","inetNtop4","inetPton6","inetNtop6","readSockaddr","writeSockaddr","getHostByName","getCallstack","emscriptenLog","convertPCtoSourceLocation","readEmAsmArgs","jstoi_q","jstoi_s","listenOnce","autoResumeAudioContext","runtimeKeepalivePop","safeSetTimeout","asmjsMangle","getNativeTypeSize","STACK_SIZE","STACK_ALIGN","POINTER_SIZE","ASSERTIONS","getCFunc","ccall","cwrap","uleb128Encode","sigToWasmTypes","generateFuncType","convertJsFunctionToWasm","getEmptyTableSlot","updateTableMap","getFunctionAddress","addFunction","removeFunction","reallyNegative","unSign","strLen","reSign","formatString","intArrayToString","AsciiToString","registerKeyEventCallback","maybeCStringToJsString","findEventTarget","findCanvasEventTarget","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","battery","registerBatteryEventCallback","setCanvasElementSizeCallingThread","setCanvasElementSizeMainThread","setCanvasElementSize","getCanvasSizeCallingThread","getCanvasSizeMainThread","getCanvasElementSize","checkWasiClock","wasiRightsToMuslOFlags","wasiOFlagsToMuslOFlags","createDyncallWrapper","setImmediateWrapped","clearImmediateWrapped","polyfillSetImmediate","getPromise","makePromise","idsToPromises","makePromiseCallback","setMainLoop","getSocketFromFD","getSocketAddress","FS_mkdirTree","_setNetworkCallback","heapObjectForWebGLType","heapAccessShiftForWebGLHeap","webgl_enable_ANGLE_instanced_arrays","webgl_enable_OES_vertex_array_object","webgl_enable_WEBGL_draw_buffers","webgl_enable_WEBGL_multi_draw","emscriptenWebGLGet","computeUnpackAlignedImageSize","colorChannelsInGlTextureFormat","emscriptenWebGLGetTexPixelData","__glGenObject","emscriptenWebGLGetUniform","webglGetUniformLocation","webglPrepareUniformLocationsBeforeFirstUse","webglGetLeftBracePos","emscriptenWebGLGetVertexAttrib","__glGetActiveAttribOrUniform","writeGLArray","emscripten_webgl_destroy_context_before_on_calling_thread","registerWebGlEventCallback","runAndAbortIfError","SDL_unicode","SDL_ttfContext","SDL_audio","ALLOC_NORMAL","ALLOC_STACK","allocate","writeStringToMemory","writeAsciiToMemory","registerInheritedInstance","unregisterInheritedInstance","getStringOrSymbol","craftEmvalAllocator","emval_get_global","emval_lookupTypes","emval_allocateDestructors","emval_addMethodCaller"].forEach((function(e){"undefined"==typeof globalThis||Object.getOwnPropertyDescriptor(globalThis,e)||Object.defineProperty(globalThis,e,{configurable:!0,get(){var t="`"+e+"` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line",r=e;r.startsWith("_")||(r="$"+e),t+=" (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE='"+r+"')",Ne(e)&&(t+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you"),Ft(t)}}),Oe(e)})),["run","addOnPreRun","addOnInit","addOnPreMain","addOnExit","addOnPostRun","FS_createFolder","FS_createLink","FS_readFile","out","err","callMain","abort","wasmExports","stackAlloc","stackSave","stackRestore","getTempRet0","setTempRet0","GROWABLE_HEAP_I8","GROWABLE_HEAP_U8","GROWABLE_HEAP_I16","GROWABLE_HEAP_U16","GROWABLE_HEAP_I32","GROWABLE_HEAP_U32","GROWABLE_HEAP_F32","GROWABLE_HEAP_F64","writeStackCookie","checkStackCookie","convertI32PairToI53Checked","ptrToString","zeroMemory","exitJS","getHeapMax","growMemory","ENV","setStackLimits","MONTH_DAYS_REGULAR","MONTH_DAYS_LEAP","MONTH_DAYS_REGULAR_CUMULATIVE","MONTH_DAYS_LEAP_CUMULATIVE","isLeapYear","ydayFromDate","arraySum","addDays","ERRNO_CODES","ERRNO_MESSAGES","setErrNo","DNS","Protocols","Sockets","initRandomFill","randomFill","timers","warnOnce","UNWIND_CACHE","readEmAsmArgsArray","getExecutableName","dynCallLegacy","getDynCaller","dynCall","handleException","runtimeKeepalivePush","callUserCallback","maybeExit","asyncLoad","alignMemory","mmapAlloc","handleAllocatorInit","HandleAllocator","wasmTable","freeTableIndexes","functionsInTableMap","setValue","getValue","PATH","PATH_FS","UTF8Decoder","UTF8ArrayToString","UTF8ToString","stringToUTF8Array","stringToUTF8","lengthBytesUTF8","intArrayFromString","stringToAscii","UTF16Decoder","UTF16ToString","stringToUTF16","lengthBytesUTF16","UTF32ToString","stringToUTF32","lengthBytesUTF32","stringToNewUTF8","stringToUTF8OnStack","writeArrayToMemory","JSEvents","specialHTMLTargets","currentFullscreenStrategy","restoreOldWindowedStyle","demangle","demangleAll","jsStackTrace","stackTrace","getEnvStrings","doReadv","doWritev","promiseMap","uncaughtExceptionCount","exceptionLast","exceptionCaught","ExceptionInfo","findMatchingCatch","getExceptionMessageCommon","incrementExceptionRefcount","decrementExceptionRefcount","getExceptionMessage","Browser","wget","SYSCALLS","preloadPlugins","FS_modeStringToFlags","FS_getMode","FS_stdin_getChar_buffer","FS_stdin_getChar","MEMFS","TTY","PIPEFS","SOCKFS","tempFixedLengthArray","miniTempWebGLFloatBuffers","miniTempWebGLIntBuffers","GL","emscripten_webgl_power_preferences","AL","GLUT","EGL","GLEW","IDBStore","SDL","SDL_gfx","allocateUTF8","allocateUTF8OnStack","terminateWorker","killThread","cleanupThread","registerTLSInit","cancelThread","spawnThread","exitOnMainThread","proxyToMainThread","proxiedJSCallArgs","invokeEntryPoint","checkMailbox","InternalError","BindingError","throwInternalError","throwBindingError","registeredTypes","awaitingDependencies","typeDependencies","tupleRegistrations","structRegistrations","sharedRegisterType","whenDependentTypesAreResolved","embind_charCodes","embind_init_charCodes","readLatin1String","getTypeName","heap32VectorToArray","requireRegisteredType","UnboundTypeError","PureVirtualError","GenericWireTypeSize","init_embind","throwUnboundTypeError","ensureOverloadTable","exposePublicSymbol","replacePublicSymbol","extendError","createNamedFunction","embindRepr","registeredInstances","getBasestPointer","getInheritedInstance","getInheritedInstanceCount","getLiveInheritedInstances","registeredPointers","registerType","integerReadValueFromPointer","enumReadValueFromPointer","floatReadValueFromPointer","simpleReadValueFromPointer","readPointer","runDestructors","newFunc","craftInvokerFunction","embind__requireFunction","genericPointerToWireType","constNoSmartPtrRawPointerToWireType","nonConstNoSmartPtrRawPointerToWireType","init_RegisteredPointer","RegisteredPointer","RegisteredPointer_fromWireType","runDestructor","releaseClassHandle","finalizationRegistry","detachFinalizer_deps","detachFinalizer","attachFinalizer","makeClassHandle","init_ClassHandle","ClassHandle","throwInstanceAlreadyDeleted","deletionQueue","flushPendingDeletes","delayFunction","setDelayFunction","RegisteredClass","shallowCopyInternalPointer","downcastPointer","upcastPointer","validateThis","char_0","char_9","makeLegalFunctionName","emval_handles","emval_symbols","init_emval","count_emval_handles","Emval","emval_newers","emval_methodCallers","emval_registeredMethods","IDBFS","NODEFS"].forEach(Oe),ue=function e(){Nn||vi(),Nn||(ue=e)},f.preInit)for("function"==typeof f.preInit&&(f.preInit=[f.preInit]);f.preInit.length>0;)f.preInit.pop()();var _i=!0;return f.noInitialRun&&(_i=!1),vi(),t.ready}})();"object"==typeof exports&&"object"==typeof module?module.exports=createRSRModule:"function"==typeof define&&define.amd&&define([],(()=>createRSRModule));
1
+ var createRSRModule=(()=>{var e="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(e=e||__filename),function(t={}){function r(){return x.buffer!=U.buffer&&X(),U}function n(){return x.buffer!=U.buffer&&X(),B}function i(){return x.buffer!=U.buffer&&X(),z}function o(){return x.buffer!=U.buffer&&X(),H}function a(){return x.buffer!=U.buffer&&X(),G}function s(){return x.buffer!=U.buffer&&X(),Y}function c(){return x.buffer!=U.buffer&&X(),K}var d,l,f=t;f.ready=new Promise(((e,t)=>{d=e,l=t})),["_main","__emscripten_thread_init","__emscripten_thread_exit","__emscripten_thread_crashed","__emscripten_thread_mailbox_await","__emscripten_tls_init","_pthread_self","checkMailbox","establishStackSpace","invokeEntryPoint","PThread","getExceptionMessage","___get_exception_message","_free","___indirect_function_table","_fflush","__ZN5boost13serialization16singleton_module8get_lockEv","__ZNK5boost7archive6detail11oserializerINS0_13text_oarchiveEN5RDKit9MolBundleEE16save_object_dataERNS1_14basic_oarchiveEPKv","__ZNK5boost7archive6detail11oserializerINS0_13text_oarchiveENSt3__26vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS9_ISB_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv","__ZNK5boost7archive6detail11iserializerINS0_13text_iarchiveEN5RDKit9MolBundleEE16load_object_dataERNS1_14basic_iarchiveEPvj","__ZNK5boost7archive6detail11iserializerINS0_13text_iarchiveENSt3__26vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS9_ISB_EEEEE16load_object_dataERNS1_14basic_iarchiveEPvj","__embind_initialize_bindings","__emscripten_check_mailbox","___set_stack_limits","onRuntimeInitialized"].forEach((e=>{Object.getOwnPropertyDescriptor(f.ready,e)||Object.defineProperty(f.ready,e,{get:()=>_e("You are getting "+e+" on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"),set:()=>_e("You are setting "+e+" on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")})})),f.expectedDataFileDownloads||(f.expectedDataFileDownloads=0),f.expectedDataFileDownloads++,f.ENVIRONMENT_IS_PTHREAD||f.$ww||function(e){"object"==typeof window?window.encodeURIComponent(window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/"):"undefined"==typeof process&&"undefined"!=typeof location&&encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/");var t="moorhen.data";"function"!=typeof f.locateFilePackage||f.locateFile||(f.locateFile=f.locateFilePackage,$("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)"));var r=f.locateFile?f.locateFile(t,""):t,n=e.remote_package_size,i=null,o=f.getPreloadedPackage?f.getPreloadedPackage(r,n):null;function a(){function t(e,t){if(!e)throw t+(new Error).stack}function r(e,t,r){this.start=e,this.end=t,this.audio=r}f.FS_createPath("/","data",!0,!0),f.FS_createPath("/data","RDKit",!0,!0),f.FS_createPath("/data/RDKit","Data",!0,!0),f.FS_createPath("/data","ccp4_lib",!0,!0),f.FS_createPath("/data/ccp4_lib","data",!0,!0),f.FS_createPath("/data/ccp4_lib/data","monomers",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","a",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","c",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","d",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","e",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","g",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","h",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","i",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","l",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","list",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","m",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","n",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","p",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","s",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","t",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","u",!0,!0),f.FS_createPath("/data/ccp4_lib/data/monomers","v",!0,!0),f.FS_createPath("/data","coot",!0,!0),f.FS_createPath("/data/coot","data",!0,!0),f.FS_createPath("/data/coot/data","metal",!0,!0),f.FS_createPath("/data/coot","rama-data",!0,!0),r.prototype={requests:{},open:function(e,t){this.name=t,this.requests[t]=this,f.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){var e=this.byteArray.subarray(this.start,this.end);this.finish(e)},finish:function(e){f.FS_createDataFile(this.name,null,e,!0,!0,!0),f.removeRunDependency(`fp ${this.name}`),this.requests[this.name]=null}};for(var n=e.files,a=0;a<n.length;++a)new r(n[a].start,n[a].end,n[a].audio||0).open("GET",n[a].filename);function s(n){t(n,"Loading data file failed."),t(n.constructor.name===ArrayBuffer.name,"bad input to processPackageData");var i=new Uint8Array(n);r.prototype.byteArray=i;for(var o=e.files,a=0;a<o.length;++a)r.prototype.requests[o[a].filename].onload();f.removeRunDependency("datafile_moorhen.data")}f.addRunDependency("datafile_moorhen.data"),f.preloadResults||(f.preloadResults={}),f.preloadResults["moorhen.data"]={fromCache:!1},o?(s(o),o=null):i=s}o||function(e,t,r,n){if("object"!=typeof process||"object"!=typeof process.versions||"string"!=typeof process.versions.node){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onprogress=function(r){var n=e,o=t;if(r.total&&(o=r.total),r.loaded){i.addedTotal?f.dataFileDownloads[n].loaded=r.loaded:(i.addedTotal=!0,f.dataFileDownloads||(f.dataFileDownloads={}),f.dataFileDownloads[n]={loaded:r.loaded,total:o});var a=0,s=0,c=0;for(var d in f.dataFileDownloads){var l=f.dataFileDownloads[d];a+=l.total,s+=l.loaded,c++}a=Math.ceil(a*f.expectedDataFileDownloads/c),f.setStatus&&f.setStatus(`Downloading data... (${s}/${a})`)}else f.dataFileDownloads||f.setStatus&&f.setStatus("Downloading data...")},i.onerror=function(t){throw new Error("NetworkError for: "+e)},i.onload=function(e){if(!(200==i.status||304==i.status||206==i.status||0==i.status&&i.response))throw new Error(i.statusText+" : "+i.responseURL);var t=i.response;r(t)},i.send(null)}else require("fs").readFile(e,(function(e,t){var n;e?(n=e,console.error("package error:",n)):r(t.buffer)}))}(r,n,(function(e){i?(i(e),i=null):o=e})),f.calledRun?a():(f.preRun||(f.preRun=[]),f.preRun.push(a))}({files:[{filename:"/data/RDKit/Data/BaseFeatures.fdef",start:0,end:6803},{filename:"/data/ccp4_lib/data/monomers/a/A.cif",start:6803,end:23075},{filename:"/data/ccp4_lib/data/monomers/a/ADP.cif",start:23075,end:40846},{filename:"/data/ccp4_lib/data/monomers/a/ALA.cif",start:40846,end:45216},{filename:"/data/ccp4_lib/data/monomers/a/ARG.cif",start:45216,end:52281},{filename:"/data/ccp4_lib/data/monomers/a/ASN.cif",start:52281,end:57522},{filename:"/data/ccp4_lib/data/monomers/a/ASP.cif",start:57522,end:62348},{filename:"/data/ccp4_lib/data/monomers/a/ATP.cif",start:62348,end:81580},{filename:"/data/ccp4_lib/data/monomers/c/C.cif",start:81580,end:96641},{filename:"/data/ccp4_lib/data/monomers/c/CIT.cif",start:96641,end:105224},{filename:"/data/ccp4_lib/data/monomers/c/CYS.cif",start:105224,end:109772},{filename:"/data/ccp4_lib/data/monomers/d/DA.cif",start:109772,end:125835},{filename:"/data/ccp4_lib/data/monomers/d/DC.cif",start:125835,end:140726},{filename:"/data/ccp4_lib/data/monomers/d/DG.cif",start:140726,end:157145},{filename:"/data/ccp4_lib/data/monomers/d/DT.cif",start:157145,end:172562},{filename:"/data/ccp4_lib/data/monomers/e/EDO.cif",start:172562,end:177627},{filename:"/data/ccp4_lib/data/monomers/ener_lib.cif",start:177627,end:287358},{filename:"/data/ccp4_lib/data/monomers/g/G.cif",start:287358,end:303957},{filename:"/data/ccp4_lib/data/monomers/g/GLN.cif",start:303957,end:309735},{filename:"/data/ccp4_lib/data/monomers/g/GLU.cif",start:309735,end:315075},{filename:"/data/ccp4_lib/data/monomers/g/GLY.cif",start:315075,end:318723},{filename:"/data/ccp4_lib/data/monomers/g/GOL.cif",start:318723,end:325306},{filename:"/data/ccp4_lib/data/monomers/h/HIS.cif",start:325306,end:335861},{filename:"/data/ccp4_lib/data/monomers/h/HOH.cif",start:335861,end:337124},{filename:"/data/ccp4_lib/data/monomers/i/ILE.cif",start:337124,end:343165},{filename:"/data/ccp4_lib/data/monomers/l/LEU.cif",start:343165,end:349149},{filename:"/data/ccp4_lib/data/monomers/l/LYS.cif",start:349149,end:355542},{filename:"/data/ccp4_lib/data/monomers/list/mon_lib_list.cif",start:355542,end:4364173},{filename:"/data/ccp4_lib/data/monomers/m/MET.cif",start:4364173,end:4369713},{filename:"/data/ccp4_lib/data/monomers/m/MSE.cif",start:4369713,end:4375313},{filename:"/data/ccp4_lib/data/monomers/n/NA.cif",start:4375313,end:4375950},{filename:"/data/ccp4_lib/data/monomers/p/PEG.cif",start:4375950,end:4383278},{filename:"/data/ccp4_lib/data/monomers/p/PHE.cif",start:4383278,end:4389770},{filename:"/data/ccp4_lib/data/monomers/p/PO4.cif",start:4389770,end:4393303},{filename:"/data/ccp4_lib/data/monomers/p/PRO.cif",start:4393303,end:4398446},{filename:"/data/ccp4_lib/data/monomers/s/SER.cif",start:4398446,end:4402999},{filename:"/data/ccp4_lib/data/monomers/s/SO4.cif",start:4402999,end:4406530},{filename:"/data/ccp4_lib/data/monomers/t/THR.cif",start:4406530,end:4411680},{filename:"/data/ccp4_lib/data/monomers/t/TRP.cif",start:4411680,end:4419268},{filename:"/data/ccp4_lib/data/monomers/t/TYR.cif",start:4419268,end:4425926},{filename:"/data/ccp4_lib/data/monomers/u/U.cif",start:4425926,end:4440579},{filename:"/data/ccp4_lib/data/monomers/v/VAL.cif",start:4440579,end:4446038},{filename:"/data/ccp4_lib/data/syminfo.lib",start:4446038,end:4769084},{filename:"/data/coot/data/metal/metal-N-distance.table",start:4769084,end:4769710},{filename:"/data/coot/data/metal/metal-O-distance.table",start:4769710,end:4770398},{filename:"/data/coot/data/metal/metal-S-distance.table",start:4770398,end:4770998},{filename:"/data/coot/rama-data/rama500-general.data",start:4770998,end:5493558},{filename:"/data/coot/rama-data/rama500-gly-sym.data",start:5493558,end:6309487},{filename:"/data/coot/rama-data/rama500-prepro.data",start:6309487,end:6669493},{filename:"/data/coot/rama-data/rama500-pro.data",start:6669493,end:6922050},{filename:"/data/coot/rama-data/rota500-asn.data",start:6922050,end:7042551},{filename:"/data/coot/rama-data/rota500-asp.data",start:7042551,end:7105393},{filename:"/data/coot/rama-data/rota500-cys.data",start:7105393,end:7113034},{filename:"/data/coot/rama-data/rota500-gln.data",start:7113034,end:8435620},{filename:"/data/coot/rama-data/rota500-glu.data",start:8435620,end:9707593},{filename:"/data/coot/rama-data/rota500-his.data",start:9707593,end:9822769},{filename:"/data/coot/rama-data/rota500-ile.data",start:9822769,end:9924374},{filename:"/data/coot/rama-data/rota500-leu.data",start:9924374,end:10029733},{filename:"/data/coot/rama-data/rota500-met.data",start:10029733,end:11019814},{filename:"/data/coot/rama-data/rota500-phetyr.data",start:11019814,end:11075713},{filename:"/data/coot/rama-data/rota500-pro.data",start:11075713,end:11078557},{filename:"/data/coot/rama-data/rota500-ser.data",start:11078557,end:11088015},{filename:"/data/coot/rama-data/rota500-thr.data",start:11088015,end:11097149},{filename:"/data/coot/rama-data/rota500-trp.data",start:11097149,end:11179917},{filename:"/data/coot/rama-data/rota500-val.data",start:11179917,end:11189371},{filename:"/data/coot/standard-residues.pdb",start:11189371,end:11219666}],remote_package_size:11219666}),(f.ENVIRONMENT_IS_PTHREAD||f.$ww)&&(f.preRun=[]);var u=f.preRun.slice();if(f.preRun||(f.preRun=[]),f.preRun.push((function(){pn.COOT_DATA_DIR="data/coot"})),f.preRun.push((function(){pn.CCP4_LIB="data/ccp4_lib"})),f.preRun.push((function(){pn.COOT_BACKUP_DIR="COOT_BACKUP"})),f.preRun.push((function(){pn.SYMINFO="data/ccp4_lib/data/syminfo.lib"})),!f.preRun)throw"Module.preRun should exist because file support used it; did a pre-js delete it?";u.forEach((function(e){if(f.preRun.indexOf(e)<0)throw"All preRun tasks that exist before user pre-js code should remain after; did you replace Module or modify Module.preRun?"}));var h=Object.assign({},f),m=[],p="./this.program",v=(e,t)=>{throw t},_="object"==typeof window,y="function"==typeof importScripts,g="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,w=!_&&!g&&!y;if(f.ENVIRONMENT)throw new Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -sENVIRONMENT=web or -sENVIRONMENT=node)");var E,b,k,S=f.ENVIRONMENT_IS_PTHREAD||!1,T="";function P(e){return f.locateFile?f.locateFile(e,T):T+e}if(g){if("undefined"==typeof process||!process.release||"node"!==process.release.name)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?)");var F=process.versions.node,C=F.split(".").slice(0,3);if((C=1e4*C[0]+100*C[1]+1*C[2].split("-")[0])<16e4)throw new Error("This emscripten-generated code requires node v16.0.0 (detected v"+F+")");var A=require("fs"),N=require("path");let e;T=y?N.dirname(T)+"/":__dirname+"/",E=(e,t)=>(e=be(e)?new URL(e):N.normalize(e),A.readFileSync(e,t?void 0:"utf8")),k=e=>{var t=E(e,!0);return t.buffer||(t=new Uint8Array(t)),Z(t.buffer),t},b=(e,t,r,n=!0)=>{e=be(e)?new URL(e):N.normalize(e),A.readFile(e,n?void 0:"utf8",((e,i)=>{e?r(e):t(n?i.buffer:i)}))},!f.thisProgram&&process.argv.length>1&&(p=process.argv[1].replace(/\\/g,"/")),m=process.argv.slice(2),v=(e,t)=>{throw process.exitCode=e,t},f.inspect=()=>"[Emscripten Module object]";try{e=require("worker_threads")}catch(e){throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'),e}global.Worker=e.Worker}else if(w){if("object"==typeof process&&"function"==typeof require||"object"==typeof window||"function"==typeof importScripts)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?)");"undefined"!=typeof read&&(E=read),k=e=>{if("function"==typeof readbuffer)return new Uint8Array(readbuffer(e));let t=read(e,"binary");return Z("object"==typeof t),t},b=(e,t,r)=>{setTimeout((()=>t(k(e))))},"undefined"==typeof clearTimeout&&(globalThis.clearTimeout=e=>{}),"undefined"==typeof setTimeout&&(globalThis.setTimeout=e=>"function"==typeof e?e():_e()),"undefined"!=typeof scriptArgs?m=scriptArgs:void 0!==arguments&&(m=arguments),"function"==typeof quit&&(v=(e,t)=>{throw setTimeout((()=>{if(!(t instanceof je)){let e=t;t&&"object"==typeof t&&t.stack&&(e=[t,t.stack]),$(`exiting due to exception: ${e}`)}quit(e)})),t}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)}else{if(!_&&!y)throw new Error("environment detection error");if(y?T=self.location.href:"undefined"!=typeof document&&document.currentScript&&(T=document.currentScript.src),e&&(T=e),T=0!==T.indexOf("blob:")?T.substr(0,T.replace(/[?#].*/,"").lastIndexOf("/")+1):"","object"!=typeof window&&"function"!=typeof importScripts)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?)");g||(E=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},y&&(k=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),b=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)})}g&&"undefined"==typeof performance&&(global.performance=require("perf_hooks").performance);var D=console.log.bind(console),O=console.error.bind(console);g&&(D=(...e)=>A.writeSync(1,e.join(" ")+"\n"),O=(...e)=>A.writeSync(2,e.join(" ")+"\n"));var M,I,R=f.print||D,$=f.printErr||O;Object.assign(f,h),h=null,M="fetchSettings",Object.getOwnPropertyDescriptor(f,M)&&_e(`\`Module.${M}\` was supplied but \`${M}\` not included in INCOMING_MODULE_JS_API`),f.arguments&&(m=f.arguments),Ae("arguments","arguments_"),f.thisProgram&&(p=f.thisProgram),Ae("thisProgram","thisProgram"),f.quit&&(v=f.quit),Ae("quit","quit_"),Z(void 0===f.memoryInitializerPrefixURL,"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),Z(void 0===f.pthreadMainPrefixURL,"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),Z(void 0===f.cdInitializerPrefixURL,"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),Z(void 0===f.filePackagePrefixURL,"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),Z(void 0===f.read,"Module.read option was removed (modify read_ in JS)"),Z(void 0===f.readAsync,"Module.readAsync option was removed (modify readAsync in JS)"),Z(void 0===f.readBinary,"Module.readBinary option was removed (modify readBinary in JS)"),Z(void 0===f.setWindowTitle,"Module.setWindowTitle option was removed (modify emscripten_set_window_title in JS)"),Z(void 0===f.TOTAL_MEMORY,"Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY"),Ae("asm","wasmExports"),Ae("read","read_"),Ae("readAsync","readAsync"),Ae("readBinary","readBinary"),Ae("setWindowTitle","setWindowTitle"),Z(_||y||g,"Pthreads do not work in this environment yet (need Web Workers, or an alternative to them)"),Z(!w,"shell environment detected but not enabled at build time. Add 'shell' to `-sENVIRONMENT` to enable."),f.wasmBinary&&(I=f.wasmBinary),Ae("wasmBinary","wasmBinary");var x,L,j=f.noExitRuntime||!0;Ae("noExitRuntime","noExitRuntime"),"object"!=typeof WebAssembly&&_e("no native wasm support detected");var W,U,B,z,H,G,Y,V,K,q=!1;function Z(e,t){e||_e("Assertion failed"+(t?": "+t:""))}function X(){var e=x.buffer;f.HEAP8=U=new Int8Array(e),f.HEAP16=z=new Int16Array(e),f.HEAPU8=B=new Uint8Array(e),f.HEAPU16=H=new Uint16Array(e),f.HEAP32=G=new Int32Array(e),f.HEAPU32=Y=new Uint32Array(e),f.HEAPF32=V=new Float32Array(e),f.HEAPF64=K=new Float64Array(e)}Z(!f.STACK_SIZE,"STACK_SIZE can no longer be set at runtime. Use -sSTACK_SIZE at link time"),Z("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&null!=Int32Array.prototype.subarray&&null!=Int32Array.prototype.set,"JS engine does not provide full typed array support");var J=f.INITIAL_MEMORY||16777216;if(Ae("INITIAL_MEMORY","INITIAL_MEMORY"),Z(J>=5242880,"INITIAL_MEMORY should be larger than STACK_SIZE, was "+J+"! (STACK_SIZE=5242880)"),S)x=f.wasmMemory;else if(f.wasmMemory)x=f.wasmMemory;else if(!((x=new WebAssembly.Memory({initial:J/65536,maximum:32768,shared:!0})).buffer instanceof SharedArrayBuffer))throw $("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),g&&$("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),Error("bad memory");function Q(){var e=Gn();Z(0==(3&e)),0==e&&(e+=4),s()[e>>2]=34821223,$e(34821223),s()[e+4>>2]=2310721022,$e(2310721022),s()[0]=1668509029,$e(1668509029)}function ee(){if(!q){var e=Gn();0==e&&(e+=4);var t=s()[e>>2],r=s()[e+4>>2];34821223==t&&2310721022==r||_e(`Stack overflow! Stack cookie has been overwritten at ${_t(e)}, expected hex dwords 0x89BACDFE and 0x2135467, but received ${_t(r)} ${_t(t)}`),1668509029!=s()[0]&&_e("Runtime error: The application has corrupted its heap memory area (address zero)!")}}X(),Z((J=x.buffer.byteLength)%65536==0),function(){var e=new Int16Array(1),t=new Int8Array(e.buffer);if(e[0]=25459,115!==t[0]||99!==t[1])throw"Runtime error: expected the system to be little-endian! (Run with -sSUPPORT_BIG_ENDIAN to bypass)"}();var te=[],re=[],ne=[],ie=[],oe=!1,ae=0;function se(){return j||ae>0}function ce(){Z(!oe),oe=!0,S||(ee(),Pt(),f.noFSInit||ut.init.initialized||ut.init(),ut.ignorePermissions=!1,Je.init(),wt(re))}function de(e){te.unshift(e)}Z(Math.imul,"This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),Z(Math.fround,"This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),Z(Math.clz32,"This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),Z(Math.trunc,"This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");var le=0,fe=null,ue=null,he={};function me(e){for(var t=e;;){if(!he[e])return e;e=t+Math.random()}}function pe(e){le++,f.monitorRunDependencies&&f.monitorRunDependencies(le),e?(Z(!he[e]),he[e]=1,null===fe&&"undefined"!=typeof setInterval&&(fe=setInterval((()=>{if(q)return clearInterval(fe),void(fe=null);var e=!1;for(var t in he)e||(e=!0,$("still waiting on run dependencies:")),$(`dependency: ${t}`);e&&$("(end of list)")}),1e4))):$("warning: run dependency added without ID")}function ve(e){if(le--,f.monitorRunDependencies&&f.monitorRunDependencies(le),e?(Z(he[e]),delete he[e]):$("warning: run dependency removed without ID"),0==le&&(null!==fe&&(clearInterval(fe),fe=null),ue)){var t=ue;ue=null,t()}}function _e(e){f.onAbort&&f.onAbort(e),$(e="Aborted("+e+")"),q=!0,W=1;var t=new WebAssembly.RuntimeError(e);throw l(t),t}var ye,ge,we;function Ee(e){return e.startsWith("data:application/octet-stream;base64,")}function be(e){return e.startsWith("file://")}function ke(e){return function(){Z(oe,`native function \`${e}\` called before runtime initialization`);var t=Mn[e];return Z(t,`exported native function \`${e}\` not found`),t.apply(null,arguments)}}class Se extends Error{}class Te extends Se{}class Pe extends Se{constructor(e){super(e),this.excPtr=e;const t=bt(e);this.name=t[0],this.message=t[1]}}function Fe(e){if(e==ye&&I)return new Uint8Array(I);if(k)return k(e);throw"both async and sync fetching of the wasm failed"}function Ce(e,t,r){return function(e){if(!I&&(_||y)){if("function"==typeof fetch&&!be(e))return fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((()=>Fe(e)));if(b)return new Promise(((t,r)=>{b(e,(e=>t(new Uint8Array(e))),r)}))}return Promise.resolve().then((()=>Fe(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(r,(e=>{$(`failed to asynchronously prepare wasm: ${e}`),be(ye)&&$(`warning: Loading from a file URI (${ye}) 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`),_e(e)}))}function Ae(e,t,r=!0){Object.getOwnPropertyDescriptor(f,e)||Object.defineProperty(f,e,{configurable:!0,get(){_e(`\`Module.${e}\` has been replaced by \`${t}\``+(r?" (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)":""))}})}function Ne(e){return"FS_createPath"===e||"FS_createDataFile"===e||"FS_createPreloadedFile"===e||"FS_unlink"===e||"addRunDependency"===e||"FS_createLazyFile"===e||"FS_createDevice"===e||"removeRunDependency"===e}function De(e,t){"undefined"!=typeof globalThis&&Object.defineProperty(globalThis,e,{configurable:!0,get(){Ft("`"+e+"` is not longer defined by emscripten. "+t)}})}function Oe(e){Object.getOwnPropertyDescriptor(f,e)||Object.defineProperty(f,e,{configurable:!0,get(){var t="'"+e+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the Emscripten FAQ)";Ne(e)&&(t+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you"),_e(t)}})}function Me(e,t,r,n){Z(Number.isInteger(Number(e)),"attempt to write non-integer ("+e+") into integer heap"),Z(e<=n,"value ("+e+") too large to write as "+t+"-bit value"),Z(e>=r,"value ("+e+") too small to write as "+t+"-bit value")}Ee(ye="moorhen.wasm")||(ye=P(ye)),De("buffer","Please use HEAP8.buffer or wasmMemory.buffer"),De("asm","Please use wasmExports instead");var Ie=e=>Me(e,8,-127,255),Re=e=>Me(e,16,-32767,65535),$e=e=>Me(e,32,-2147483647,4294967295),xe=e=>Me(e,64,-0x8000000000000000,0x10000000000000000);function Le(e){g?A.writeSync(2,Array.from(arguments).join(" ")+"\n"):console.warn.apply(console,arguments)}function je(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var We=e=>{e.terminate(),e.onmessage=t=>{var r=t.data.cmd;$(`received "${r}" command from terminated worker: ${e.workerID}`)}},Ue=e=>{Z(!S,"Internal Error! cleanupThread() can only ever be called from main application thread!"),Z(e,"Internal Error! Null pthread_ptr in cleanupThread!");var t=gt.pthreads[e];Z(t),gt.returnWorkerToPool(t)},Be=e=>{Z(!S,"Internal Error! spawnThread() can only ever be called from main application thread!"),Z(e.pthread_ptr,"Internal error, no pthread ptr!");var t=gt.getNewWorker();if(!t)return 6;Z(!t.pthread_ptr,"Internal error!"),gt.runningWorkers.push(t),gt.pthreads[e.pthread_ptr]=t,t.pthread_ptr=e.pthread_ptr;var r={cmd:"run",start_routine:e.startRoutine,arg:e.arg,pthread_ptr:e.pthread_ptr};return g&&t.unref(),t.postMessage(r,e.transferList),0},ze={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,t)=>{for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=ze.isAbs(e),r="/"===e.substr(-1);return(e=ze.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=ze.splitPath(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},basename:e=>{if("/"===e)return"/";var t=(e=(e=ze.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:function(){var e=Array.prototype.slice.call(arguments);return ze.normalize(e.join("/"))},join2:(e,t)=>ze.normalize(e+"/"+t)},He=e=>(He=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>(e.set(crypto.getRandomValues(new Uint8Array(e.byteLength))),e);if(g)try{var e=require("crypto");if(e.randomFillSync)return t=>e.randomFillSync(t);var t=e.randomBytes;return e=>(e.set(t(e.byteLength)),e)}catch(e){}_e("no cryptographic support found for randomDevice. consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: (array) => { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };")})())(e),Ge={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:ut.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,t=ze.isAbs(n)}return(t?"/":"")+(e=ze.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||"."},relative:(e,t)=>{function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=Ge.resolve(e).substr(1),t=Ge.resolve(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),o=Math.min(n.length,i.length),a=o,s=0;s<o;s++)if(n[s]!==i[s]){a=s;break}var c=[];for(s=a;s<n.length;s++)c.push("..");return(c=c.concat(i.slice(a))).join("/")}},Ye="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,Ve=(e,t,r)=>{for(var n=t+r,i=t;e[i]&&!(i>=n);)++i;if(i-t>16&&e.buffer&&Ye)return Ye.decode(e.buffer instanceof SharedArrayBuffer?e.slice(t,i):e.subarray(t,i));for(var o="";t<i;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var c=63&e[t++];if(224==(240&a)?a=(15&a)<<12|s<<6|c:(240!=(248&a)&&Ft("Invalid UTF-8 leading byte "+_t(a)+" encountered when deserializing a UTF-8 string in wasm memory to a JS string!"),a=(7&a)<<18|s<<12|c<<6|63&e[t++]),a<65536)o+=String.fromCharCode(a);else{var d=a-65536;o+=String.fromCharCode(55296|d>>10,56320|1023&d)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o},Ke=[],qe=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},Ze=(e,t,r,n)=>{if(Z("string"==typeof e),!(n>0))return 0;for(var i=r,o=r+n-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(r>=o)break;t[r++]=s}else if(s<=2047){if(r+1>=o)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=o)break;s>1114111&&Ft("Invalid Unicode code point "+_t(s)+" encountered when serializing a JS string to a UTF-8 string in wasm memory! (Valid unicode code points should be in range 0-0x10FFFF)."),t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-i};function Xe(e,t,r){var n=r>0?r:qe(e)+1,i=new Array(n),o=Ze(e,i,0,i.length);return t&&(i.length=o),i}var Je={ttys:[],init(){},shutdown(){},register(e,t){Je.ttys[e]={input:[],output:[],ops:t},ut.registerDevice(e,Je.stream_ops)},stream_ops:{open(e){var t=Je.ttys[e.node.rdev];if(!t)throw new ut.ErrnoError(43);e.tty=t,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,t,r,n,i){if(!e.tty||!e.tty.ops.get_char)throw new ut.ErrnoError(60);for(var o=0,a=0;a<n;a++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new ut.ErrnoError(29)}if(void 0===s&&0===o)throw new ut.ErrnoError(6);if(null==s)break;o++,t[r+a]=s}return o&&(e.node.timestamp=Date.now()),o},write(e,t,r,n,i){if(!e.tty||!e.tty.ops.put_char)throw new ut.ErrnoError(60);try{for(var o=0;o<n;o++)e.tty.ops.put_char(e.tty,t[r+o])}catch(e){throw new ut.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),o}},default_tty_ops:{get_char:e=>(()=>{if(!Ke.length){var e=null;if(g){var t=Buffer.alloc(256),r=0,n=process.stdin.fd;try{r=A.readSync(n,t)}catch(e){if(!e.toString().includes("EOF"))throw e;r=0}e=r>0?t.slice(0,r).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n");if(!e)return null;Ke=Xe(e,!0)}return Ke.shift()})(),put_char(e,t){null===t||10===t?(R(Ve(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(R(Ve(e.output,0)),e.output=[])},ioctl_tcgets:e=>({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,t,r)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,t){null===t||10===t?($(Ve(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&($(Ve(e.output,0)),e.output=[])}}},Qe=e=>{e=((e,t)=>(Z(t,"alignment argument is required"),Math.ceil(e/t)*t))(e,65536);var t=Un(65536,e);return t?((e,t)=>(n().fill(0,e,e+t),e))(t,e):0},et={ops_table:null,mount:e=>et.createNode(null,"/",16895,0),createNode(e,t,r,n){if(ut.isBlkdev(r)||ut.isFIFO(r))throw new ut.ErrnoError(63);et.ops_table||(et.ops_table={dir:{node:{getattr:et.node_ops.getattr,setattr:et.node_ops.setattr,lookup:et.node_ops.lookup,mknod:et.node_ops.mknod,rename:et.node_ops.rename,unlink:et.node_ops.unlink,rmdir:et.node_ops.rmdir,readdir:et.node_ops.readdir,symlink:et.node_ops.symlink},stream:{llseek:et.stream_ops.llseek}},file:{node:{getattr:et.node_ops.getattr,setattr:et.node_ops.setattr},stream:{llseek:et.stream_ops.llseek,read:et.stream_ops.read,write:et.stream_ops.write,allocate:et.stream_ops.allocate,mmap:et.stream_ops.mmap,msync:et.stream_ops.msync}},link:{node:{getattr:et.node_ops.getattr,setattr:et.node_ops.setattr,readlink:et.node_ops.readlink},stream:{}},chrdev:{node:{getattr:et.node_ops.getattr,setattr:et.node_ops.setattr},stream:ut.chrdev_stream_ops}});var i=ut.createNode(e,t,r,n);return ut.isDir(i.mode)?(i.node_ops=et.ops_table.dir.node,i.stream_ops=et.ops_table.dir.stream,i.contents={}):ut.isFile(i.mode)?(i.node_ops=et.ops_table.file.node,i.stream_ops=et.ops_table.file.stream,i.usedBytes=0,i.contents=null):ut.isLink(i.mode)?(i.node_ops=et.ops_table.link.node,i.stream_ops=et.ops_table.link.stream):ut.isChrdev(i.mode)&&(i.node_ops=et.ops_table.chrdev.node,i.stream_ops=et.ops_table.chrdev.stream),i.timestamp=Date.now(),e&&(e.contents[t]=i,e.timestamp=i.timestamp),i},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var n=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr(e){var t={};return t.dev=ut.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,ut.isDir(e.mode)?t.size=4096:ut.isFile(e.mode)?t.size=e.usedBytes:ut.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&et.resizeFileStorage(e,t.size)},lookup(e,t){throw ut.genericErrors[44]},mknod:(e,t,r,n)=>et.createNode(e,t,r,n),rename(e,t,r){if(ut.isDir(e.mode)){var n;try{n=ut.lookupNode(t,r)}catch(e){}if(n)for(var i in n.contents)throw new ut.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir(e,t){var r=ut.lookupNode(e,t);for(var n in r.contents)throw new ut.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir(e){var t=[".",".."];for(var r in e.contents)e.contents.hasOwnProperty(r)&&t.push(r);return t},symlink(e,t,r){var n=et.createNode(e,t,41471,0);return n.link=r,n},readlink(e){if(!ut.isLink(e.mode))throw new ut.ErrnoError(28);return e.link}},stream_ops:{read(e,t,r,n,i){var o=e.node.contents;if(i>=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-i,n);if(Z(a>=0),a>8&&o.subarray)t.set(o.subarray(i,i+a),r);else for(var s=0;s<a;s++)t[r+s]=o[i+s];return a},write(e,t,n,i,o,a){if(Z(!(t instanceof ArrayBuffer)),t.buffer===r().buffer&&(a=!1),!i)return 0;var s=e.node;if(s.timestamp=Date.now(),t.subarray&&(!s.contents||s.contents.subarray)){if(a)return Z(0===o,"canOwn must imply no weird position inside the file"),s.contents=t.subarray(n,n+i),s.usedBytes=i,i;if(0===s.usedBytes&&0===o)return s.contents=t.slice(n,n+i),s.usedBytes=i,i;if(o+i<=s.usedBytes)return s.contents.set(t.subarray(n,n+i),o),i}if(et.expandFileStorage(s,o+i),s.contents.subarray&&t.subarray)s.contents.set(t.subarray(n,n+i),o);else for(var c=0;c<i;c++)s.contents[o+c]=t[n+c];return s.usedBytes=Math.max(s.usedBytes,o+i),i},llseek(e,t,r){var n=t;if(1===r?n+=e.position:2===r&&ut.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new ut.ErrnoError(28);return n},allocate(e,t,r){et.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap(e,t,n,i,o){if(!ut.isFile(e.node.mode))throw new ut.ErrnoError(43);var a,s,c=e.node.contents;if(2&o||c.buffer!==r().buffer){if((n>0||n+t<c.length)&&(c=c.subarray?c.subarray(n,n+t):Array.prototype.slice.call(c,n,n+t)),s=!0,!(a=Qe(t)))throw new ut.ErrnoError(48);r().set(c,a)}else s=!1,a=c.byteOffset;return{ptr:a,allocated:s}},msync:(e,t,r,n,i)=>(et.stream_ops.write(e,t,0,n,r,!1),0)}},tt=f.preloadPlugins||[],rt=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},nt={dbs:{},indexedDB:()=>{if("undefined"!=typeof indexedDB)return indexedDB;var e=null;return"object"==typeof window&&(e=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Z(e,"IDBFS used, but indexedDB not supported"),e},DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:function(e){return et.mount.apply(null,arguments)},syncfs:(e,t,r)=>{nt.getLocalSet(e,((n,i)=>{if(n)return r(n);nt.getRemoteSet(e,((e,n)=>{if(e)return r(e);var o=t?n:i,a=t?i:n;nt.reconcile(o,a,r)}))}))},quit:()=>{Object.values(nt.dbs).forEach((e=>e.close())),nt.dbs={}},getDB:(e,t)=>{var r,n=nt.dbs[e];if(n)return t(null,n);try{r=nt.indexedDB().open(e,nt.DB_VERSION)}catch(e){return t(e)}if(!r)return t("Unable to connect to IndexedDB");r.onupgradeneeded=e=>{var t,r=e.target.result,n=e.target.transaction;(t=r.objectStoreNames.contains(nt.DB_STORE_NAME)?n.objectStore(nt.DB_STORE_NAME):r.createObjectStore(nt.DB_STORE_NAME)).indexNames.contains("timestamp")||t.createIndex("timestamp","timestamp",{unique:!1})},r.onsuccess=()=>{n=r.result,nt.dbs[e]=n,t(null,n)},r.onerror=e=>{t(e.target.error),e.preventDefault()}},getLocalSet:(e,t)=>{var r={};function n(e){return"."!==e&&".."!==e}function i(e){return t=>ze.join2(e,t)}for(var o=ut.readdir(e.mountpoint).filter(n).map(i(e.mountpoint));o.length;){var a,s=o.pop();try{a=ut.stat(s)}catch(e){return t(e)}ut.isDir(a.mode)&&o.push.apply(o,ut.readdir(s).filter(n).map(i(s))),r[s]={timestamp:a.mtime}}return t(null,{type:"local",entries:r})},getRemoteSet:(e,t)=>{var r={};nt.getDB(e.mountpoint,((e,n)=>{if(e)return t(e);try{var i=n.transaction([nt.DB_STORE_NAME],"readonly");i.onerror=e=>{t(e.target.error),e.preventDefault()},i.objectStore(nt.DB_STORE_NAME).index("timestamp").openKeyCursor().onsuccess=e=>{var i=e.target.result;if(!i)return t(null,{type:"remote",db:n,entries:r});r[i.primaryKey]={timestamp:i.key},i.continue()}}catch(e){return t(e)}}))},loadLocalEntry:(e,t)=>{var r,n;try{n=ut.lookupPath(e).node,r=ut.stat(e)}catch(e){return t(e)}return ut.isDir(r.mode)?t(null,{timestamp:r.mtime,mode:r.mode}):ut.isFile(r.mode)?(n.contents=et.getFileDataAsTypedArray(n),t(null,{timestamp:r.mtime,mode:r.mode,contents:n.contents})):t(new Error("node type not supported"))},storeLocalEntry:(e,t,r)=>{try{if(ut.isDir(t.mode))ut.mkdirTree(e,t.mode);else{if(!ut.isFile(t.mode))return r(new Error("node type not supported"));ut.writeFile(e,t.contents,{canOwn:!0})}ut.chmod(e,t.mode),ut.utime(e,t.timestamp,t.timestamp)}catch(e){return r(e)}r(null)},removeLocalEntry:(e,t)=>{try{var r=ut.stat(e);ut.isDir(r.mode)?ut.rmdir(e):ut.isFile(r.mode)&&ut.unlink(e)}catch(e){return t(e)}t(null)},loadRemoteEntry:(e,t,r)=>{var n=e.get(t);n.onsuccess=e=>{r(null,e.target.result)},n.onerror=e=>{r(e.target.error),e.preventDefault()}},storeRemoteEntry:(e,t,r,n)=>{try{var i=e.put(r,t)}catch(e){return void n(e)}i.onsuccess=()=>{n(null)},i.onerror=e=>{n(e.target.error),e.preventDefault()}},removeRemoteEntry:(e,t,r)=>{var n=e.delete(t);n.onsuccess=()=>{r(null)},n.onerror=e=>{r(e.target.error),e.preventDefault()}},reconcile:(e,t,r)=>{var n=0,i=[];Object.keys(e.entries).forEach((function(r){var o=e.entries[r],a=t.entries[r];a&&o.timestamp.getTime()==a.timestamp.getTime()||(i.push(r),n++)}));var o=[];if(Object.keys(t.entries).forEach((function(t){e.entries[t]||(o.push(t),n++)})),!n)return r(null);var a=!1,s=("remote"===e.type?e.db:t.db).transaction([nt.DB_STORE_NAME],"readwrite"),c=s.objectStore(nt.DB_STORE_NAME);function d(e){if(e&&!a)return a=!0,r(e)}s.onerror=e=>{d(this.error),e.preventDefault()},s.oncomplete=e=>{a||r(null)},i.sort().forEach((e=>{"local"===t.type?nt.loadRemoteEntry(c,e,((t,r)=>{if(t)return d(t);nt.storeLocalEntry(e,r,d)})):nt.loadLocalEntry(e,((t,r)=>{if(t)return d(t);nt.storeRemoteEntry(c,e,r,d)}))})),o.sort().reverse().forEach((e=>{"local"===t.type?nt.removeLocalEntry(e,d):nt.removeRemoteEntry(c,e,d)}))}},it={},ot={isWindows:!1,staticInit(){ot.isWindows=!!process.platform.match(/^win/);var e=process.binding("constants");e.fs&&(e=e.fs),ot.flagsForNodeMap={1024:e.O_APPEND,64:e.O_CREAT,128:e.O_EXCL,256:e.O_NOCTTY,0:e.O_RDONLY,2:e.O_RDWR,4096:e.O_SYNC,512:e.O_TRUNC,1:e.O_WRONLY,131072:e.O_NOFOLLOW},Z(0===ot.flagsForNodeMap[0])},convertNodeCode(e){var t=e.code;return Z(t in it,`unexpected node error code: ${t} (${e})`),it[t]},mount:e=>(Z(g),ot.createNode(null,"/",ot.getMode(e.opts.root),0)),createNode(e,t,r,n){if(!ut.isDir(r)&&!ut.isFile(r)&&!ut.isLink(r))throw new ut.ErrnoError(28);var i=ut.createNode(e,t,r);return i.node_ops=ot.node_ops,i.stream_ops=ot.stream_ops,i},getMode(e){var t;try{t=A.lstatSync(e),ot.isWindows&&(t.mode=t.mode|(292&t.mode)>>2)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}return t.mode},realPath(e){for(var t=[];e.parent!==e;)t.push(e.name),e=e.parent;return t.push(e.mount.opts.root),t.reverse(),ze.join.apply(null,t)},flagsForNode(e){e&=-2097153,e&=-2049,e&=-32769,e&=-524289,e&=-65537;var t=0;for(var r in ot.flagsForNodeMap)e&r&&(t|=ot.flagsForNodeMap[r],e^=r);if(e)throw new ut.ErrnoError(28);return t},node_ops:{getattr(e){var t,r=ot.realPath(e);try{t=A.lstatSync(r)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}return ot.isWindows&&!t.blksize&&(t.blksize=4096),ot.isWindows&&!t.blocks&&(t.blocks=(t.size+t.blksize-1)/t.blksize|0),{dev:t.dev,ino:t.ino,mode:t.mode,nlink:t.nlink,uid:t.uid,gid:t.gid,rdev:t.rdev,size:t.size,atime:t.atime,mtime:t.mtime,ctime:t.ctime,blksize:t.blksize,blocks:t.blocks}},setattr(e,t){var r=ot.realPath(e);try{if(void 0!==t.mode&&(A.chmodSync(r,t.mode),e.mode=t.mode),void 0!==t.timestamp){var n=new Date(t.timestamp);A.utimesSync(r,n,n)}void 0!==t.size&&A.truncateSync(r,t.size)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}},lookup(e,t){var r=ze.join2(ot.realPath(e),t),n=ot.getMode(r);return ot.createNode(e,t,n)},mknod(e,t,r,n){var i=ot.createNode(e,t,r,n),o=ot.realPath(i);try{ut.isDir(i.mode)?A.mkdirSync(o,i.mode):A.writeFileSync(o,"",{mode:i.mode})}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}return i},rename(e,t,r){var n=ot.realPath(e),i=ze.join2(ot.realPath(t),r);try{A.renameSync(n,i)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}e.name=r},unlink(e,t){var r=ze.join2(ot.realPath(e),t);try{A.unlinkSync(r)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}},rmdir(e,t){var r=ze.join2(ot.realPath(e),t);try{A.rmdirSync(r)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}},readdir(e){var t=ot.realPath(e);try{return A.readdirSync(t)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}},symlink(e,t,r){var n=ze.join2(ot.realPath(e),t);try{A.symlinkSync(r,n)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}},readlink(e){var t=ot.realPath(e);try{return t=A.readlinkSync(t),t=N.relative(N.resolve(e.mount.opts.root),t)}catch(e){if(!e.code)throw e;if("UNKNOWN"===e.code)throw new ut.ErrnoError(28);throw new ut.ErrnoError(ot.convertNodeCode(e))}}},stream_ops:{open(e){var t=ot.realPath(e.node);try{ut.isFile(e.node.mode)&&(e.nfd=A.openSync(t,ot.flagsForNode(e.flags)))}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}},close(e){try{ut.isFile(e.node.mode)&&e.nfd&&A.closeSync(e.nfd)}catch(e){if(!e.code)throw e;throw new ut.ErrnoError(ot.convertNodeCode(e))}},read(e,t,r,n,i){if(0===n)return 0;try{return A.readSync(e.nfd,new Int8Array(t.buffer,r,n),{position:i})}catch(e){throw new ut.ErrnoError(ot.convertNodeCode(e))}},write(e,t,r,n,i){try{return A.writeSync(e.nfd,new Int8Array(t.buffer,r,n),{position:i})}catch(e){throw new ut.ErrnoError(ot.convertNodeCode(e))}},llseek(e,t,r){var n=t;if(1===r)n+=e.position;else if(2===r&&ut.isFile(e.node.mode))try{n+=A.fstatSync(e.nfd).size}catch(e){throw new ut.ErrnoError(ot.convertNodeCode(e))}if(n<0)throw new ut.ErrnoError(28);return n},mmap(e,t,n,i,o){if(!ut.isFile(e.node.mode))throw new ut.ErrnoError(43);var a=Qe(t);return ot.stream_ops.read(e,r(),a,t,n),{ptr:a,allocated:!0}},msync:(e,t,r,n,i)=>(ot.stream_ops.write(e,t,0,n,r,!1),0)}},at={0:"Success",1:"Arg list too long",2:"Permission denied",3:"Address already in use",4:"Address not available",5:"Address family not supported by protocol family",6:"No more processes",7:"Socket already connected",8:"Bad file number",9:"Trying to read unreadable message",10:"Mount device busy",11:"Operation canceled",12:"No children",13:"Connection aborted",14:"Connection refused",15:"Connection reset by peer",16:"File locking deadlock error",17:"Destination address required",18:"Math arg out of domain of func",19:"Quota exceeded",20:"File exists",21:"Bad address",22:"File too large",23:"Host is unreachable",24:"Identifier removed",25:"Illegal byte sequence",26:"Connection already in progress",27:"Interrupted system call",28:"Invalid argument",29:"I/O error",30:"Socket is already connected",31:"Is a directory",32:"Too many symbolic links",33:"Too many open files",34:"Too many links",35:"Message too long",36:"Multihop attempted",37:"File or path name too long",38:"Network interface is not configured",39:"Connection reset by network",40:"Network is unreachable",41:"Too many open files in system",42:"No buffer space available",43:"No such device",44:"No such file or directory",45:"Exec format error",46:"No record locks available",47:"The link has been severed",48:"Not enough core",49:"No message of desired type",50:"Protocol not available",51:"No space left on device",52:"Function not implemented",53:"Socket is not connected",54:"Not a directory",55:"Directory not empty",56:"State not recoverable",57:"Socket operation on non-socket",59:"Not a typewriter",60:"No such device or address",61:"Value too large for defined data type",62:"Previous owner died",63:"Not super-user",64:"Broken pipe",65:"Protocol error",66:"Unknown protocol",67:"Protocol wrong type for socket",68:"Math result not representable",69:"Read only file system",70:"Illegal seek",71:"No such process",72:"Stale file handle",73:"Connection timed out",74:"Text file busy",75:"Cross-device link",100:"Device not a stream",101:"Bad font file fmt",102:"Invalid slot",103:"Invalid request code",104:"No anode",105:"Block device required",106:"Channel number out of range",107:"Level 3 halted",108:"Level 3 reset",109:"Link number out of range",110:"Protocol driver not attached",111:"No CSI structure available",112:"Level 2 halted",113:"Invalid exchange",114:"Invalid request descriptor",115:"Exchange full",116:"No data (for no delay io)",117:"Timer expired",118:"Out of streams resources",119:"Machine is not on the network",120:"Package not installed",121:"The object is remote",122:"Advertise error",123:"Srmount error",124:"Communication error on send",125:"Cross mount point (not really error)",126:"Given log. name not unique",127:"f.d. invalid for this operation",128:"Remote address changed",129:"Can access a needed shared lib",130:"Accessing a corrupted shared lib",131:".lib section in a.out corrupted",132:"Attempting to link in too many libs",133:"Attempting to exec a shared library",135:"Streams pipe error",136:"Too many users",137:"Socket type not supported",138:"Not supported",139:"Protocol family not supported",140:"Can't send after socket shutdown",141:"Too many references",142:"Host is down",148:"No medium (in tape drive)",156:"Level 2 not synchronized"},st=e=>{var t=Qn(),r=e();return ei(t),r},ct=(e,t,r)=>(Z("number"==typeof r,"stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),Ze(e,n(),t,r)),dt=e=>{var t=qe(e)+1,r=ti(t);return ct(e,r,t),r},lt=(e,t)=>(Z("number"==typeof e),e?Ve(n(),e,t):""),ft=e=>(ft.recursionGuard=1+(0|ft.recursionGuard),ft.recursionGuard>1?e:st((()=>{try{var t=e;t.startsWith("__Z")&&(t=t.substr(1));var r=dt(t),n=ti(4),i=oi(r,0,0,n);if(0===a()[n>>2]&&i)return lt(i)}catch(e){}finally{$n(i),ft.recursionGuard<2&&--ft.recursionGuard}return e}))),ut={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e,t={}){if(!(e=Ge.resolve(e)))return{path:"",node:null};if((t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count>8)throw new ut.ErrnoError(32);for(var r=e.split("/").filter((e=>!!e)),n=ut.root,i="/",o=0;o<r.length;o++){var a=o===r.length-1;if(a&&t.parent)break;if(n=ut.lookupNode(n,r[o]),i=ze.join2(i,r[o]),ut.isMountpoint(n)&&(!a||a&&t.follow_mount)&&(n=n.mounted.root),!a||t.follow)for(var s=0;ut.isLink(n.mode);){var c=ut.readlink(i);if(i=Ge.resolve(ze.dirname(i),c),n=ut.lookupPath(i,{recurse_count:t.recurse_count+1}).node,s++>40)throw new ut.ErrnoError(32)}}return{path:i,node:n}},getPath(e){for(var t;;){if(ut.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?`${r}/${t}`:r+t:r}t=t?`${e.name}/${t}`:e.name,e=e.parent}},hashName(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%ut.nameTable.length},hashAddNode(e){var t=ut.hashName(e.parent.id,e.name);e.name_next=ut.nameTable[t],ut.nameTable[t]=e},hashRemoveNode(e){var t=ut.hashName(e.parent.id,e.name);if(ut.nameTable[t]===e)ut.nameTable[t]=e.name_next;else for(var r=ut.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode(e,t){var r=ut.mayLookup(e);if(r)throw new ut.ErrnoError(r,e);for(var n=ut.hashName(e.id,t),i=ut.nameTable[n];i;i=i.name_next){var o=i.name;if(i.parent.id===e.id&&o===t)return i}return ut.lookup(e,t)},createNode(e,t,r,n){Z("object"==typeof e);var i=new ut.FSNode(e,t,r,n);return ut.hashAddNode(i),i},destroyNode(e){ut.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagsToPermissionString(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>ut.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2,mayLookup:e=>ut.nodePermissions(e,"x")||(e.node_ops.lookup?0:2),mayCreate(e,t){try{return ut.lookupNode(e,t),20}catch(e){}return ut.nodePermissions(e,"wx")},mayDelete(e,t,r){var n;try{n=ut.lookupNode(e,t)}catch(e){return e.errno}var i=ut.nodePermissions(e,"wx");if(i)return i;if(r){if(!ut.isDir(n.mode))return 54;if(ut.isRoot(n)||ut.getPath(n)===ut.cwd())return 10}else if(ut.isDir(n.mode))return 31;return 0},mayOpen:(e,t)=>e?ut.isLink(e.mode)?32:ut.isDir(e.mode)&&("r"!==ut.flagsToPermissionString(t)||512&t)?31:ut.nodePermissions(e,ut.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=ut.MAX_OPEN_FDS;e++)if(!ut.streams[e])return e;throw new ut.ErrnoError(33)},getStreamChecked(e){var t=ut.getStream(e);if(!t)throw new ut.ErrnoError(8);return t},getStream:e=>ut.streams[e],createStream:(e,t=-1)=>(ut.FSStream||(ut.FSStream=function(){this.shared={}},ut.FSStream.prototype={},Object.defineProperties(ut.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return 0!=(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(e){this.shared.flags=e}},position:{get(){return this.shared.position},set(e){this.shared.position=e}}})),e=Object.assign(new ut.FSStream,e),-1==t&&(t=ut.nextfd()),e.fd=t,ut.streams[t]=e,e),closeStream(e){ut.streams[e]=null},chrdev_stream_ops:{open(e){var t=ut.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new ut.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice(e,t){ut.devices[e]={stream_ops:t}},getDevice:e=>ut.devices[e],getMounts(e){for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push.apply(r,n.mounts)}return t},syncfs(e,t){"function"==typeof e&&(t=e,e=!1),ut.syncFSRequests++,ut.syncFSRequests>1&&$(`warning: ${ut.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var r=ut.getMounts(ut.root.mount),n=0;function i(e){return Z(ut.syncFSRequests>0),ut.syncFSRequests--,t(e)}function o(e){if(e)return o.errored?void 0:(o.errored=!0,i(e));++n>=r.length&&i(null)}r.forEach((t=>{if(!t.type.syncfs)return o(null);t.type.syncfs(t,e,o)}))},mount(e,t,r){if("string"==typeof e)throw e;var n,i="/"===r,o=!r;if(i&&ut.root)throw new ut.ErrnoError(10);if(!i&&!o){var a=ut.lookupPath(r,{follow_mount:!1});if(r=a.path,n=a.node,ut.isMountpoint(n))throw new ut.ErrnoError(10);if(!ut.isDir(n.mode))throw new ut.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},c=e.mount(s);return c.mount=s,s.root=c,i?ut.root=c:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),c},unmount(e){var t=ut.lookupPath(e,{follow_mount:!1});if(!ut.isMountpoint(t.node))throw new ut.ErrnoError(28);var r=t.node,n=r.mounted,i=ut.getMounts(n);Object.keys(ut.nameTable).forEach((e=>{for(var t=ut.nameTable[e];t;){var r=t.name_next;i.includes(t.mount)&&ut.destroyNode(t),t=r}})),r.mounted=null;var o=r.mount.mounts.indexOf(n);Z(-1!==o),r.mount.mounts.splice(o,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod(e,t,r){var n=ut.lookupPath(e,{parent:!0}).node,i=ze.basename(e);if(!i||"."===i||".."===i)throw new ut.ErrnoError(28);var o=ut.mayCreate(n,i);if(o)throw new ut.ErrnoError(o);if(!n.node_ops.mknod)throw new ut.ErrnoError(63);return n.node_ops.mknod(n,i,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,ut.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,ut.mknod(e,t,0)),mkdirTree(e,t){for(var r=e.split("/"),n="",i=0;i<r.length;++i)if(r[i]){n+="/"+r[i];try{ut.mkdir(n,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,t,r)=>(void 0===r&&(r=t,t=438),t|=8192,ut.mknod(e,t,r)),symlink(e,t){if(!Ge.resolve(e))throw new ut.ErrnoError(44);var r=ut.lookupPath(t,{parent:!0}).node;if(!r)throw new ut.ErrnoError(44);var n=ze.basename(t),i=ut.mayCreate(r,n);if(i)throw new ut.ErrnoError(i);if(!r.node_ops.symlink)throw new ut.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename(e,t){var r,n,i=ze.dirname(e),o=ze.dirname(t),a=ze.basename(e),s=ze.basename(t);if(r=ut.lookupPath(e,{parent:!0}).node,n=ut.lookupPath(t,{parent:!0}).node,!r||!n)throw new ut.ErrnoError(44);if(r.mount!==n.mount)throw new ut.ErrnoError(75);var c,d=ut.lookupNode(r,a),l=Ge.relative(e,o);if("."!==l.charAt(0))throw new ut.ErrnoError(28);if("."!==(l=Ge.relative(t,i)).charAt(0))throw new ut.ErrnoError(55);try{c=ut.lookupNode(n,s)}catch(e){}if(d!==c){var f=ut.isDir(d.mode),u=ut.mayDelete(r,a,f);if(u)throw new ut.ErrnoError(u);if(u=c?ut.mayDelete(n,s,f):ut.mayCreate(n,s))throw new ut.ErrnoError(u);if(!r.node_ops.rename)throw new ut.ErrnoError(63);if(ut.isMountpoint(d)||c&&ut.isMountpoint(c))throw new ut.ErrnoError(10);if(n!==r&&(u=ut.nodePermissions(r,"w")))throw new ut.ErrnoError(u);ut.hashRemoveNode(d);try{r.node_ops.rename(d,n,s)}catch(e){throw e}finally{ut.hashAddNode(d)}}},rmdir(e){var t=ut.lookupPath(e,{parent:!0}).node,r=ze.basename(e),n=ut.lookupNode(t,r),i=ut.mayDelete(t,r,!0);if(i)throw new ut.ErrnoError(i);if(!t.node_ops.rmdir)throw new ut.ErrnoError(63);if(ut.isMountpoint(n))throw new ut.ErrnoError(10);t.node_ops.rmdir(t,r),ut.destroyNode(n)},readdir(e){var t=ut.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new ut.ErrnoError(54);return t.node_ops.readdir(t)},unlink(e){var t=ut.lookupPath(e,{parent:!0}).node;if(!t)throw new ut.ErrnoError(44);var r=ze.basename(e),n=ut.lookupNode(t,r),i=ut.mayDelete(t,r,!1);if(i)throw new ut.ErrnoError(i);if(!t.node_ops.unlink)throw new ut.ErrnoError(63);if(ut.isMountpoint(n))throw new ut.ErrnoError(10);t.node_ops.unlink(t,r),ut.destroyNode(n)},readlink(e){var t=ut.lookupPath(e).node;if(!t)throw new ut.ErrnoError(44);if(!t.node_ops.readlink)throw new ut.ErrnoError(28);return Ge.resolve(ut.getPath(t.parent),t.node_ops.readlink(t))},stat(e,t){var r=ut.lookupPath(e,{follow:!t}).node;if(!r)throw new ut.ErrnoError(44);if(!r.node_ops.getattr)throw new ut.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>ut.stat(e,!0),chmod(e,t,r){var n;if(!(n="string"==typeof e?ut.lookupPath(e,{follow:!r}).node:e).node_ops.setattr)throw new ut.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod(e,t){ut.chmod(e,t,!0)},fchmod(e,t){var r=ut.getStreamChecked(e);ut.chmod(r.node,t)},chown(e,t,r,n){var i;if(!(i="string"==typeof e?ut.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new ut.ErrnoError(63);i.node_ops.setattr(i,{timestamp:Date.now()})},lchown(e,t,r){ut.chown(e,t,r,!0)},fchown(e,t,r){var n=ut.getStreamChecked(e);ut.chown(n.node,t,r)},truncate(e,t){if(t<0)throw new ut.ErrnoError(28);var r;if(!(r="string"==typeof e?ut.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new ut.ErrnoError(63);if(ut.isDir(r.mode))throw new ut.ErrnoError(31);if(!ut.isFile(r.mode))throw new ut.ErrnoError(28);var n=ut.nodePermissions(r,"w");if(n)throw new ut.ErrnoError(n);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate(e,t){var r=ut.getStreamChecked(e);if(0==(2097155&r.flags))throw new ut.ErrnoError(28);ut.truncate(r.node,t)},utime(e,t,r){var n=ut.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(t,r)})},open(e,t,r){if(""===e)throw new ut.ErrnoError(44);var n;if(r=void 0===r?438:r,r=64&(t="string"==typeof t?(e=>{var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===t)throw new Error(`Unknown file open mode: ${e}`);return t})(t):t)?4095&r|32768:0,"object"==typeof e)n=e;else{e=ze.normalize(e);try{n=ut.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var i=!1;if(64&t)if(n){if(128&t)throw new ut.ErrnoError(20)}else n=ut.mknod(e,r,0),i=!0;if(!n)throw new ut.ErrnoError(44);if(ut.isChrdev(n.mode)&&(t&=-513),65536&t&&!ut.isDir(n.mode))throw new ut.ErrnoError(54);if(!i){var o=ut.mayOpen(n,t);if(o)throw new ut.ErrnoError(o)}512&t&&!i&&ut.truncate(n,0),t&=-131713;var a=ut.createStream({node:n,path:ut.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return a.stream_ops.open&&a.stream_ops.open(a),!f.logReadFiles||1&t||(ut.readFiles||(ut.readFiles={}),e in ut.readFiles||(ut.readFiles[e]=1)),a},close(e){if(ut.isClosed(e))throw new ut.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{ut.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,t,r){if(ut.isClosed(e))throw new ut.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new ut.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new ut.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read(e,t,r,n,i){if(Z(r>=0),n<0||i<0)throw new ut.ErrnoError(28);if(ut.isClosed(e))throw new ut.ErrnoError(8);if(1==(2097155&e.flags))throw new ut.ErrnoError(8);if(ut.isDir(e.node.mode))throw new ut.ErrnoError(31);if(!e.stream_ops.read)throw new ut.ErrnoError(28);var o=void 0!==i;if(o){if(!e.seekable)throw new ut.ErrnoError(70)}else i=e.position;var a=e.stream_ops.read(e,t,r,n,i);return o||(e.position+=a),a},write(e,t,r,n,i,o){if(Z(r>=0),n<0||i<0)throw new ut.ErrnoError(28);if(ut.isClosed(e))throw new ut.ErrnoError(8);if(0==(2097155&e.flags))throw new ut.ErrnoError(8);if(ut.isDir(e.node.mode))throw new ut.ErrnoError(31);if(!e.stream_ops.write)throw new ut.ErrnoError(28);e.seekable&&1024&e.flags&&ut.llseek(e,0,2);var a=void 0!==i;if(a){if(!e.seekable)throw new ut.ErrnoError(70)}else i=e.position;var s=e.stream_ops.write(e,t,r,n,i,o);return a||(e.position+=s),s},allocate(e,t,r){if(ut.isClosed(e))throw new ut.ErrnoError(8);if(t<0||r<=0)throw new ut.ErrnoError(28);if(0==(2097155&e.flags))throw new ut.ErrnoError(8);if(!ut.isFile(e.node.mode)&&!ut.isDir(e.node.mode))throw new ut.ErrnoError(43);if(!e.stream_ops.allocate)throw new ut.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap(e,t,r,n,i){if(0!=(2&n)&&0==(2&i)&&2!=(2097155&e.flags))throw new ut.ErrnoError(2);if(1==(2097155&e.flags))throw new ut.ErrnoError(2);if(!e.stream_ops.mmap)throw new ut.ErrnoError(43);return e.stream_ops.mmap(e,t,r,n,i)},msync:(e,t,r,n,i)=>(Z(r>=0),e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,i):0),munmap:e=>0,ioctl(e,t,r){if(!e.stream_ops.ioctl)throw new ut.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile(e,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error(`Invalid encoding type "${t.encoding}"`);var r,n=ut.open(e,t.flags),i=ut.stat(e).size,o=new Uint8Array(i);return ut.read(n,o,0,i,0),"utf8"===t.encoding?r=Ve(o,0):"binary"===t.encoding&&(r=o),ut.close(n),r},writeFile(e,t,r={}){r.flags=r.flags||577;var n=ut.open(e,r.flags,r.mode);if("string"==typeof t){var i=new Uint8Array(qe(t)+1),o=Ze(t,i,0,i.length);ut.write(n,i,0,o,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");ut.write(n,t,0,t.byteLength,void 0,r.canOwn)}ut.close(n)},cwd:()=>ut.currentPath,chdir(e){var t=ut.lookupPath(e,{follow:!0});if(null===t.node)throw new ut.ErrnoError(44);if(!ut.isDir(t.node.mode))throw new ut.ErrnoError(54);var r=ut.nodePermissions(t.node,"x");if(r)throw new ut.ErrnoError(r);ut.currentPath=t.path},createDefaultDirectories(){ut.mkdir("/tmp"),ut.mkdir("/home"),ut.mkdir("/home/web_user")},createDefaultDevices(){ut.mkdir("/dev"),ut.registerDevice(ut.makedev(1,3),{read:()=>0,write:(e,t,r,n,i)=>n}),ut.mkdev("/dev/null",ut.makedev(1,3)),Je.register(ut.makedev(5,0),Je.default_tty_ops),Je.register(ut.makedev(6,0),Je.default_tty1_ops),ut.mkdev("/dev/tty",ut.makedev(5,0)),ut.mkdev("/dev/tty1",ut.makedev(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=He(e).byteLength),e[--t]);ut.createDevice("/dev","random",r),ut.createDevice("/dev","urandom",r),ut.mkdir("/dev/shm"),ut.mkdir("/dev/shm/tmp")},createSpecialDirectories(){ut.mkdir("/proc");var e=ut.mkdir("/proc/self");ut.mkdir("/proc/self/fd"),ut.mount({mount(){var t=ut.createNode(e,"fd",16895,73);return t.node_ops={lookup(e,t){var r=+t,n=ut.getStreamChecked(r),i={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return i.parent=i,i}},t}},{},"/proc/self/fd")},createStandardStreams(){f.stdin?ut.createDevice("/dev","stdin",f.stdin):ut.symlink("/dev/tty","/dev/stdin"),f.stdout?ut.createDevice("/dev","stdout",null,f.stdout):ut.symlink("/dev/tty","/dev/stdout"),f.stderr?ut.createDevice("/dev","stderr",null,f.stderr):ut.symlink("/dev/tty1","/dev/stderr");var e=ut.open("/dev/stdin",0),t=ut.open("/dev/stdout",1),r=ut.open("/dev/stderr",1);Z(0===e.fd,`invalid handle for stdin (${e.fd})`),Z(1===t.fd,`invalid handle for stdout (${t.fd})`),Z(2===r.fd,`invalid handle for stderr (${r.fd})`)},ensureErrnoError(){ut.ErrnoError||(ut.ErrnoError=function(e,t){this.name="ErrnoError",this.node=t,this.setErrno=function(e){for(var t in this.errno=e,it)if(it[t]===e){this.code=t;break}},this.setErrno(e),this.message=at[e],this.stack&&(Object.defineProperty(this,"stack",{value:(new Error).stack,writable:!0}),this.stack=this.stack.replace(/\b_Z[\w\d_]+/g,(function(e){var t=ft(e);return e===t?e:t+" ["+e+"]"})))},ut.ErrnoError.prototype=new Error,ut.ErrnoError.prototype.constructor=ut.ErrnoError,[44].forEach((e=>{ut.genericErrors[e]=new ut.ErrnoError(e),ut.genericErrors[e].stack="<generic error, no stack>"})))},staticInit(){ut.ensureErrnoError(),ut.nameTable=new Array(4096),ut.mount(et,{},"/"),ut.createDefaultDirectories(),ut.createDefaultDevices(),ut.createSpecialDirectories(),ut.filesystems={MEMFS:et,IDBFS:nt,NODEFS:ot}},init(e,t,r){Z(!ut.init.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)"),ut.init.initialized=!0,ut.ensureErrnoError(),f.stdin=e||f.stdin,f.stdout=t||f.stdout,f.stderr=r||f.stderr,ut.createStandardStreams()},quit(){ut.init.initialized=!1,xn(0);for(var e=0;e<ut.streams.length;e++){var t=ut.streams[e];t&&ut.close(t)}},findObject(e,t){var r=ut.analyzePath(e,t);return r.exists?r.object:null},analyzePath(e,t){try{e=(n=ut.lookupPath(e,{follow:!t})).path}catch(e){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=ut.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=ze.basename(e),n=ut.lookupPath(e,{follow:!t}),r.exists=!0,r.path=n.path,r.object=n.node,r.name=n.node.name,r.isRoot="/"===n.path}catch(e){r.error=e.errno}return r},createPath(e,t,r,n){e="string"==typeof e?e:ut.getPath(e);for(var i=t.split("/").reverse();i.length;){var o=i.pop();if(o){var a=ze.join2(e,o);try{ut.mkdir(a)}catch(e){}e=a}}return a},createFile(e,t,r,n,i){var o=ze.join2("string"==typeof e?e:ut.getPath(e),t),a=rt(n,i);return ut.create(o,a)},createDataFile(e,t,r,n,i,o){var a=t;e&&(e="string"==typeof e?e:ut.getPath(e),a=t?ze.join2(e,t):e);var s=rt(n,i),c=ut.create(a,s);if(r){if("string"==typeof r){for(var d=new Array(r.length),l=0,f=r.length;l<f;++l)d[l]=r.charCodeAt(l);r=d}ut.chmod(c,146|s);var u=ut.open(c,577);ut.write(u,r,0,r.length,0,o),ut.close(u),ut.chmod(c,s)}return c},createDevice(e,t,r,n){var i=ze.join2("string"==typeof e?e:ut.getPath(e),t),o=rt(!!r,!!n);ut.createDevice.major||(ut.createDevice.major=64);var a=ut.makedev(ut.createDevice.major++,0);return ut.registerDevice(a,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,t,n,i,o){for(var a=0,s=0;s<i;s++){var c;try{c=r()}catch(e){throw new ut.ErrnoError(29)}if(void 0===c&&0===a)throw new ut.ErrnoError(6);if(null==c)break;a++,t[n+s]=c}return a&&(e.node.timestamp=Date.now()),a},write(e,t,r,i,o){for(var a=0;a<i;a++)try{n(t[r+a])}catch(e){throw new ut.ErrnoError(29)}return i&&(e.node.timestamp=Date.now()),a}}),ut.mkdev(i,o,a)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("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.");if(!E)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=Xe(E(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new ut.ErrnoError(29)}},createLazyFile(e,t,n,i,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",n,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+n+". Status: "+e.status);var t,r=Number(e.getResponseHeader("Content-length")),i=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,o=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,a=1048576;i||(a=r);var s=this;s.setDataGetter((e=>{var t=e*a,i=(e+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[e]&&(s.chunks[e]=((e,t)=>{if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+e+"-"+t),i.responseType="arraybuffer",i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):Xe(i.responseText||"",!0)})(t,i)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!o&&r||(a=r=1,r=this.getter(0).length,a=r,R("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!y)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var s=new a;Object.defineProperties(s,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var c={isDevice:!1,contents:s}}else c={isDevice:!1,url:n};var d=ut.createFile(e,t,c,i,o);c.contents?d.contents=c.contents:c.url&&(d.contents=null,d.url=c.url),Object.defineProperties(d,{usedBytes:{get:function(){return this.contents.length}}});var l={};function f(e,t,r,n,i){var o=e.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,n);if(Z(a>=0),o.slice)for(var s=0;s<a;s++)t[r+s]=o[i+s];else for(s=0;s<a;s++)t[r+s]=o.get(i+s);return a}return Object.keys(d.stream_ops).forEach((e=>{var t=d.stream_ops[e];l[e]=function(){return ut.forceLoadFile(d),t.apply(null,arguments)}})),l.read=(e,t,r,n,i)=>(ut.forceLoadFile(d),f(e,t,r,n,i)),l.mmap=(e,t,n,i,o)=>{ut.forceLoadFile(d);var a=Qe(t);if(!a)throw new ut.ErrnoError(48);return f(e,r(),a,t,n),{ptr:a,allocated:!0}},d.stream_ops=l,d},absolutePath(){_e("FS.absolutePath has been removed; use PATH_FS.resolve instead")},createFolder(){_e("FS.createFolder has been removed; use FS.mkdir instead")},createLink(){_e("FS.createLink has been removed; use FS.symlink instead")},joinPath(){_e("FS.joinPath has been removed; use PATH.join instead")},mmapAlloc(){_e("FS.mmapAlloc has been replaced by the top level function mmapAlloc")},standardizePath(){_e("FS.standardizePath has been removed; use PATH.normalize instead")}},ht={DEFAULT_POLLMASK:5,calculateAt(e,t,r){if(ze.isAbs(t))return t;var n;if(n=-100===e?ut.cwd():ht.getStreamFromFD(e).path,0==t.length){if(!r)throw new ut.ErrnoError(44);return n}return ze.join2(n,t)},doStat(e,t,r){try{var n=e(t)}catch(e){if(e&&e.node&&ze.normalize(t)!==ze.normalize(ut.getPath(e.node)))return-54;throw e}a()[r>>2]=n.dev,$e(n.dev),a()[r+4>>2]=n.mode,$e(n.mode),s()[r+8>>2]=n.nlink,$e(n.nlink),a()[r+12>>2]=n.uid,$e(n.uid),a()[r+16>>2]=n.gid,$e(n.gid),a()[r+20>>2]=n.rdev,$e(n.rdev),we=[n.size>>>0,(ge=n.size,+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[r+24>>2]=we[0],a()[r+28>>2]=we[1],xe(n.size),a()[r+32>>2]=4096,$e(4096),a()[r+36>>2]=n.blocks,$e(n.blocks);var i=n.atime.getTime(),o=n.mtime.getTime(),c=n.ctime.getTime();return we=[Math.floor(i/1e3)>>>0,(ge=Math.floor(i/1e3),+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[r+40>>2]=we[0],a()[r+44>>2]=we[1],xe(Math.floor(i/1e3)),s()[r+48>>2]=i%1e3*1e3,$e(i%1e3*1e3),we=[Math.floor(o/1e3)>>>0,(ge=Math.floor(o/1e3),+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[r+56>>2]=we[0],a()[r+60>>2]=we[1],xe(Math.floor(o/1e3)),s()[r+64>>2]=o%1e3*1e3,$e(o%1e3*1e3),we=[Math.floor(c/1e3)>>>0,(ge=Math.floor(c/1e3),+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[r+72>>2]=we[0],a()[r+76>>2]=we[1],xe(Math.floor(c/1e3)),s()[r+80>>2]=c%1e3*1e3,$e(c%1e3*1e3),we=[n.ino>>>0,(ge=n.ino,+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[r+88>>2]=we[0],a()[r+92>>2]=we[1],xe(n.ino),0},doMsync(e,t,r,i,o){if(!ut.isFile(t.node.mode))throw new ut.ErrnoError(43);if(2&i)return 0;var a=n().slice(e,e+r);ut.msync(t,a,o,r,i)},varargs:void 0,get(){Z(null!=ht.varargs);var e=a()[+ht.varargs>>2];return ht.varargs+=4,e},getp:()=>ht.get(),getStr:e=>lt(e),getStreamFromFD:e=>ut.getStreamChecked(e)};function mt(e){if(S)return nn(0,1,e);W=e,se()||(gt.terminateAllThreads(),f.onExit&&f.onExit(e),q=!0),v(e,new je(e))}var pt=(e,t)=>{if(W=e,function(){var e=R,t=$,r=!1;R=$=e=>{r=!0};try{xn(0),["stdout","stderr"].forEach((function(e){var t=ut.analyzePath("/dev/"+e);if(t){var n=t.object.rdev,i=Je.ttys[n];i&&i.output&&i.output.length&&(r=!0)}}))}catch(e){}R=e,$=t,r&&Ft("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.")}(),S)throw Z(!t),Et(e),"unwind";if(se()&&!t){var r=`program exited (with status: ${e}), but keepRuntimeAlive() is set (counter=${ae}) 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)`;l(r),$(r)}mt(e)},vt=pt,_t=e=>(Z("number"==typeof e),"0x"+(e>>>=0).toString(16).padStart(8,"0")),yt=e=>{if(e instanceof je||"unwind"==e)return W;ee(),e instanceof WebAssembly.RuntimeError&&ri()<=0&&$("Stack overflow detected. You can try increasing -sSTACK_SIZE (currently set to 5242880)"),v(1,e)},gt={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},nextWorkerID:1,debugInit(){var e=Le;Le=t=>{return e((r=0,oe&&void 0!==Wn&&(r=Wn()),"w:"+(f.workerID||0)+",t:"+_t(r)+": "+t));var r}},init(){gt.debugInit(),S?gt.initWorker():gt.initMainThread()},initMainThread(){for(var e=32;e--;)gt.allocateUnusedWorker();de((()=>{pe("loading-workers"),gt.loadWasmModuleToAllWorkers((()=>ve("loading-workers")))}))},initWorker(){j=!1},setExitStatus:e=>{W=e},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var e of(Z(!S,"Internal Error! terminateAllThreads() can only ever be called from main application thread!"),gt.runningWorkers))We(e);for(var e of gt.unusedWorkers)We(e);gt.unusedWorkers=[],gt.runningWorkers=[],gt.pthreads=[]},returnWorkerToPool:e=>{var t=e.pthread_ptr;delete gt.pthreads[t],gt.unusedWorkers.push(e),gt.runningWorkers.splice(gt.runningWorkers.indexOf(e),1),e.pthread_ptr=0,Vn(t)},receiveObjectTransfer(e){},threadInitTLS(){gt.tlsInitFunctions.forEach((e=>e()))},loadWasmModuleToWorker:t=>new Promise((r=>{t.onmessage=e=>{var n=e.data,i=n.cmd;if(n.targetThread&&n.targetThread!=Wn()){var o=gt.pthreads[n.targetThread];o?o.postMessage(n,n.transferList):$(`Internal error! Worker sent a message "${i}" to target pthread ${n.targetThread}, but that thread no longer exists!`)}else{var a;"checkMailbox"===i?rn():"spawnThread"===i?Be(n):"cleanupThread"===i?Ue(n.thread):"killThread"===i?(e=>{Z(!S,"Internal Error! killThread() can only ever be called from main application thread!"),Z(e,"Internal Error! Null pthread_ptr in killThread!");var t=gt.pthreads[e];delete gt.pthreads[e],We(t),Vn(e),gt.runningWorkers.splice(gt.runningWorkers.indexOf(t),1),t.pthread_ptr=0})(n.thread):"cancelThread"===i?(a=n.thread,Z(!S,"Internal Error! cancelThread() can only ever be called from main application thread!"),Z(a,"Internal Error! Null pthread_ptr in cancelThread!"),gt.pthreads[a].postMessage({cmd:"cancel"})):"loaded"===i?(t.loaded=!0,g&&!t.pthread_ptr&&t.unref(),r(t)):"alert"===i?alert(`Thread ${n.threadId}: ${n.text}`):"setimmediate"===n.target?t.postMessage(n):"callHandler"===i?f[n.handler](...n.args):i&&$(`worker sent an unknown command ${i}`)}},t.onerror=e=>{var r="worker sent an error!";throw t.pthread_ptr&&(r=`Pthread ${_t(t.pthread_ptr)} sent an error!`),$(`${r} ${e.filename}:${e.lineno}: ${e.message}`),e},g&&(t.on("message",(e=>t.onmessage({data:e}))),t.on("error",(e=>t.onerror(e)))),Z(x instanceof WebAssembly.Memory,"WebAssembly memory should have been loaded by now!"),Z(L instanceof WebAssembly.Module,"WebAssembly Module should have been loaded by now!");var n=[];for(var i of["onExit","onAbort","print","printErr"])f.hasOwnProperty(i)&&n.push(i);t.workerID=gt.nextWorkerID++,t.postMessage({cmd:"load",handlers:n,urlOrBlob:f.mainScriptUrlOrBlob||e,wasmMemory:x,wasmModule:L,workerID:t.workerID})})),loadWasmModuleToAllWorkers(e){if(S)return e();Promise.all(gt.unusedWorkers.map(gt.loadWasmModuleToWorker)).then(e)},allocateUnusedWorker(){var e,t=P("moorhen.worker.js");e=new Worker(t),gt.unusedWorkers.push(e)},getNewWorker:()=>(0==gt.unusedWorkers.length&&(g||$("Tried to spawn a new thread, but the thread pool is exhausted.\nThis might result in a deadlock unless some threads eventually exit or the code explicitly breaks out to the event loop.\nIf you want to increase the pool size, use setting `-sPTHREAD_POOL_SIZE=...`."),gt.allocateUnusedWorker(),gt.loadWasmModuleToWorker(gt.unusedWorkers[0])),gt.unusedWorkers.pop())};f.PThread=gt;var wt=e=>{for(;e.length>0;)e.shift()(f)};function Et(e){if(S)return nn(1,0,e);vt(e)}f.establishStackSpace=()=>{var e=Wn(),t=s()[e+52>>2],r=t-s()[e+56>>2];Z(0!=t),Z(0!=r),Z(t>r,"stackHigh must be higher then stackLow"),Jn(t,r),Pt(),ei(t),Q()};var bt=e=>(e=>st((()=>{var t=ti(4),r=ti(4);ai(e,t,r);var n,i=s()[t>>2],o=s()[r>>2],a=lt(i);return $n(i),o&&(n=lt(o),$n(o)),[a,n]})))(e);f.getExceptionMessage=bt;var kt,St=[],Tt=e=>{var t=St[e];return t||(e>=St.length&&(St.length=e+1),St[e]=t=kt.get(e)),Z(kt.get(e)==t,"JavaScript-side Wasm function table mirror is out of date!"),t};f.invokeEntryPoint=(e,t)=>{var r=Tt(e)(t);ee(),function(e){se()?gt.setExitStatus(e):Kn(e)}(r)};var Pt=()=>{var e=Hn(),t=Gn();di(e,t)},Ft=e=>{Ft.shown||(Ft.shown={}),Ft.shown[e]||(Ft.shown[e]=1,g&&(e="warning: "+e),$(e))},Ct=[],At=0,Nt=0;function Dt(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){s()[this.ptr+4>>2]=e},this.get_type=function(){return s()[this.ptr+4>>2]},this.set_destructor=function(e){s()[this.ptr+8>>2]=e},this.get_destructor=function(){return s()[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,r()[this.ptr+12>>0]=e,Ie(e)},this.get_caught=function(){return 0!=r()[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,r()[this.ptr+13>>0]=e,Ie(e)},this.get_rethrown=function(){return 0!=r()[this.ptr+13>>0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){s()[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return s()[this.ptr+16>>2]},this.get_exception_ptr=function(){if(ci(this.get_type()))return s()[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var Ot=e=>{var t=Nt&&Nt.excPtr;if(!t)return jn(0),0;var r=new Dt(t);r.set_adjusted_ptr(t);var n=r.get_type();if(!n)return jn(0),t;for(var i in e){var o=e[i];if(0===o||o===n)break;var a=r.ptr+16;if(si(o,n,a))return jn(o),t}return jn(n),t};function Mt(e,t,r,n){return S?nn(2,1,e,t,r,n):It(e,t,r,n)}var It=(e,t,r,n)=>{if("undefined"==typeof SharedArrayBuffer)return $("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var i=[];if(S&&0===i.length)return Mt(e,t,r,n);var o={startRoutine:r,pthread_ptr:e,arg:n,transferList:i};return S?(o.cmd="spawnThread",postMessage(o,i),0):Be(o)};function Rt(e,t,r){if(S)return nn(3,1,e,t,r);ht.varargs=r;try{var n=ht.getStreamFromFD(e);switch(t){case 0:if((o=ht.get())<0)return-28;for(;ut.streams[o];)o++;return ut.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=ht.get();return n.flags|=o,0;case 5:return o=ht.getp(),i()[o+0>>1]=2,Re(2),0;case 16:case 8:default:return-28;case 9:return 28,a()[Rn()>>2]=28,$e(28),-1}}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function $t(e,t){if(S)return nn(4,1,e,t);try{var r=ht.getStreamFromFD(e);return ht.doStat(ut.stat,r.path,t)}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function xt(e,t,n){if(S)return nn(5,1,e,t,n);ht.varargs=n;try{var o=ht.getStreamFromFD(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return o.tty?0:-59;case 21505:if(!o.tty)return-59;if(o.tty.ops.ioctl_tcgets){var s=o.tty.ops.ioctl_tcgets(o),c=ht.getp();a()[c>>2]=s.c_iflag||0,$e(s.c_iflag||0),a()[c+4>>2]=s.c_oflag||0,$e(s.c_oflag||0),a()[c+8>>2]=s.c_cflag||0,$e(s.c_cflag||0),a()[c+12>>2]=s.c_lflag||0,$e(s.c_lflag||0);for(var d=0;d<32;d++)r()[c+d+17>>0]=s.c_cc[d]||0,Ie(s.c_cc[d]||0);return 0}return 0;case 21506:case 21507:case 21508:if(!o.tty)return-59;if(o.tty.ops.ioctl_tcsets){c=ht.getp();var l=a()[c>>2],f=a()[c+4>>2],u=a()[c+8>>2],h=a()[c+12>>2],m=[];for(d=0;d<32;d++)m.push(r()[c+d+17>>0]);return o.tty.ops.ioctl_tcsets(o.tty,t,{c_iflag:l,c_oflag:f,c_cflag:u,c_lflag:h,c_cc:m})}return 0;case 21519:return o.tty?(c=ht.getp(),a()[c>>2]=0,$e(0),0):-59;case 21520:return o.tty?-28:-59;case 21531:return c=ht.getp(),ut.ioctl(o,t,c);case 21523:if(!o.tty)return-59;if(o.tty.ops.ioctl_tiocgwinsz){var p=o.tty.ops.ioctl_tiocgwinsz(o.tty);c=ht.getp(),i()[c>>1]=p[0],Re(p[0]),i()[c+2>>1]=p[1],Re(p[1])}return 0;default:return-28}}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function Lt(e,t){if(S)return nn(6,1,e,t);try{return e=ht.getStr(e),ht.doStat(ut.lstat,e,t)}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function jt(e,t,r){if(S)return nn(7,1,e,t,r);try{return t=ht.getStr(t),t=ht.calculateAt(e,t),"/"===(t=ze.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),ut.mkdir(t,r,0),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function Wt(e,t,r,n){if(S)return nn(8,1,e,t,r,n);try{t=ht.getStr(t);var i=256&n,o=4096&n;return Z(!(n&=-6401),`unknown flags in __syscall_newfstatat: ${n}`),t=ht.calculateAt(e,t,o),ht.doStat(i?ut.lstat:ut.stat,t,r)}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function Ut(e,t,r,n){if(S)return nn(9,1,e,t,r,n);ht.varargs=n;try{t=ht.getStr(t),t=ht.calculateAt(e,t);var i=n?ht.get():0;return ut.open(t,r,i).fd}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function Bt(e){if(S)return nn(10,1,e);try{return e=ht.getStr(e),ut.rmdir(e),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function zt(e,t){if(S)return nn(11,1,e,t);try{return e=ht.getStr(e),ht.doStat(ut.stat,e,t)}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function Ht(e,t,r){if(S)return nn(12,1,e,t,r);try{return t=ht.getStr(t),t=ht.calculateAt(e,t),0===r?ut.unlink(t):512===r?ut.rmdir(t):_e("Invalid flags passed to unlinkat"),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}var Gt={},Yt=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function Vt(e){return this.fromWireType(a()[e>>2])}var Kt,qt,Zt,Xt={},Jt={},Qt={},er=e=>{throw new Kt(e)},tr=(e,t,r)=>{function n(t){var n=r(t);n.length!==e.length&&er("Mismatched type converter count");for(var i=0;i<e.length;++i)or(e[i],n[i])}e.forEach((function(e){Qt[e]=t}));var i=new Array(t.length),o=[],a=0;t.forEach(((e,t)=>{Jt.hasOwnProperty(e)?i[t]=Jt[e]:(o.push(e),Xt.hasOwnProperty(e)||(Xt[e]=[]),Xt[e].push((()=>{i[t]=Jt[e],++a===o.length&&n(i)})))})),0===o.length&&n(i)},rr={},nr=e=>{for(var t="",r=e;n()[r];)t+=qt[n()[r++]];return t},ir=e=>{throw new Zt(e)};function or(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,t,r={}){var n=t.name;if(e||ir(`type "${n}" must have a positive integer typeid pointer`),Jt.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;ir(`Cannot register type '${n}' twice`)}if(Jt[e]=t,delete Qt[e],Xt.hasOwnProperty(e)){var i=Xt[e];delete Xt[e],i.forEach((e=>e()))}}(e,t,r)}var ar,sr=e=>{ir(e.$$.ptrType.registeredClass.name+" instance already deleted")},cr=!1,dr=e=>{},lr=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},fr=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var n=fr(e,t,r.baseClass);return null===n?null:r.downcast(n)},ur={},hr=[],mr=()=>{for(;hr.length;){var e=hr.pop();e.$$.deleteScheduled=!1,e.delete()}},pr={},vr=(e,t)=>(t.ptrType&&t.ptr||er("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&er("Both smartPtrType and smartPtr must be specified"),t.count={value:1},yr(Object.create(e,{$$:{value:t}})));function _r(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=((e,t)=>(t=((e,t)=>{for(void 0===t&&ir("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t})(e,t),pr[t]))(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function i(){return this.isSmartPointer?vr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):vr(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var o,a=this.registeredClass.getActualType(t),s=ur[a];if(!s)return i.call(this);o=this.isConst?s.constPointerType:s.pointerType;var c=fr(t,this.registeredClass,o.registeredClass);return null===c?i.call(this):this.isSmartPointer?vr(o.registeredClass.instancePrototype,{ptrType:o,ptr:c,smartPtrType:this,smartPtr:e}):vr(o.registeredClass.instancePrototype,{ptrType:o,ptr:c})}var yr=e=>"undefined"==typeof FinalizationRegistry?(yr=e=>e,e):(cr=new FinalizationRegistry((e=>{console.warn(e.leakWarning.stack.replace(/^Error: /,"")),lr(e.$$)})),yr=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t},n=t.ptrType.registeredClass;r.leakWarning=new Error(`Embind found a leaked C++ instance ${n.name} <${_t(t.ptr)}>.\nWe'll free it automatically in this case, but this functionality is not reliable across various environments.\nMake sure to invoke .delete() manually once you're done with the instance instead.\nOriginally allocated`),"captureStackTrace"in Error&&Error.captureStackTrace(r.leakWarning,_r),cr.register(e,r,e)}return e},dr=e=>cr.unregister(e),yr(e));function gr(){}var wr=e=>{if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?`_${e}`:e};function Er(e,t){return{[e=wr(e)]:function(){return t.apply(this,arguments)}}[e]}var br=(e,t,r)=>{if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||ir(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}},kr=(e,t,r)=>{f.hasOwnProperty(e)?((void 0===r||void 0!==f[e].overloadTable&&void 0!==f[e].overloadTable[r])&&ir(`Cannot register public name '${e}' twice`),br(f,e,e),f.hasOwnProperty(r)&&ir(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),f[e].overloadTable[r]=t):(f[e]=t,void 0!==r&&(f[e].numArguments=r))};function Sr(e,t,r,n,i,o,a,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=i,this.getActualType=o,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}var Tr=(e,t,r)=>{for(;t!==r;)t.upcast||ir(`Expected null or instance of ${r.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function Pr(e,t){if(null===t)return this.isReference&&ir(`null is not a valid ${this.name}`),0;t.$$||ir(`Cannot pass "${Gr(t)}" as a ${this.name}`),t.$$.ptr||ir(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=t.$$.ptrType.registeredClass;return Tr(t.$$.ptr,r,this.registeredClass)}function Fr(e,t){var r;if(null===t)return this.isReference&&ir(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||ir(`Cannot pass "${Gr(t)}" as a ${this.name}`),t.$$.ptr||ir(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&ir(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var n=t.$$.ptrType.registeredClass;if(r=Tr(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&ir("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:ir(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var i=t.clone();r=this.rawShare(r,Br.toHandle((()=>i.delete()))),null!==e&&e.push(this.rawDestructor,r)}break;default:ir("Unsupporting sharing policy")}return r}function Cr(e,t){if(null===t)return this.isReference&&ir(`null is not a valid ${this.name}`),0;t.$$||ir(`Cannot pass "${Gr(t)}" as a ${this.name}`),t.$$.ptr||ir(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&ir(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;return Tr(t.$$.ptr,r,this.registeredClass)}function Ar(e){return this.fromWireType(s()[e>>2])}function Nr(e,t,r,n,i,o,a,s,c,d,l){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=c,this.rawShare=d,this.rawDestructor=l,i||void 0!==t.baseClass?this.toWireType=Fr:n?(this.toWireType=Pr,this.destructorFunction=null):(this.toWireType=Cr,this.destructorFunction=null)}var Dr,Or=(e,t,r)=>{f.hasOwnProperty(e)||er("Replacing nonexistant public symbol"),void 0!==f[e].overloadTable&&void 0!==r?f[e].overloadTable[r]=t:(f[e]=t,f[e].argCount=r)},Mr=(e,t)=>{var r=(e=nr(e)).includes("j")?((e,t)=>{Z(e.includes("j")||e.includes("p"),"getDynCaller should only be called with i64 sigs");var r=[];return function(){return r.length=0,Object.assign(r,arguments),((e,t,r)=>e.includes("j")?((e,t,r)=>{Z("dynCall_"+e in f,`bad function pointer type - dynCall function not found for sig '${e}'`),r&&r.length?Z(r.length===e.substring(1).replace(/j/g,"--").length):Z(1==e.length);var n=f["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)})(e,t,r):(Z(Tt(t),`missing table entry in dynCall: ${t}`),Tt(t).apply(null,r)))(e,t,r)}})(e,t):Tt(t);return"function"!=typeof r&&ir(`unknown function pointer with signature ${e}: ${t}`),r},Ir=e=>{var t=Bn(e),r=nr(t);return $n(t),r},Rr=(e,t)=>{var r=[],n={};throw t.forEach((function e(t){n[t]||Jt[t]||(Qt[t]?Qt[t].forEach(e):(r.push(t),n[t]=!0))})),new Dr(`${e}: `+r.map(Ir).join([", "]))},$r=(e,t)=>{for(var r=[],n=0;n<e;n++)r.push(s()[t+4*n>>2]);return r};function xr(e,t,r,n,i,o){var a=t.length;a<2&&ir("argTypes array size mismatch! Must at least get return value and 'this' types!"),Z(!o,"Async bindings are only supported with JSPI.");for(var s=null!==t[1]&&null!==r,c=!1,d=1;d<t.length;++d)if(null!==t[d]&&void 0===t[d].destructorFunction){c=!0;break}var l="void"!==t[0].name,f="",u="";for(d=0;d<a-2;++d)f+=(0!==d?", ":"")+"arg"+d,u+=(0!==d?", ":"")+"arg"+d+"Wired";var h=`\n return function ${wr(e)}(${f}) {\n if (arguments.length !== ${a-2}) {\n throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${a-2}');\n }`;c&&(h+="var destructors = [];\n");var m=c?"destructors":"null",p=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[ir,n,i,Yt,t[0],t[1]];for(s&&(h+="var thisWired = classParam.toWireType("+m+", this);\n"),d=0;d<a-2;++d)h+="var arg"+d+"Wired = argType"+d+".toWireType("+m+", arg"+d+"); // "+t[d+2].name+"\n",p.push("argType"+d),v.push(t[d+2]);if(s&&(u="thisWired"+(u.length>0?", ":"")+u),h+=(l||o?"var rv = ":"")+"invoker(fn"+(u.length>0?", ":"")+u+");\n",c)h+="runDestructors(destructors);\n";else for(d=s?1:2;d<t.length;++d){var _=1===d?"thisWired":"arg"+(d-2)+"Wired";null!==t[d].destructorFunction&&(h+=_+"_dtor("+_+"); // "+t[d].name+"\n",p.push(_+"_dtor"),v.push(t[d].destructorFunction))}return l&&(h+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),h+="}\n",p.push(h),function(e,t){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var r=Er(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,i=e.apply(n,t);return i instanceof Object?i:n}(Function,p).apply(null,v)}var Lr=(e,t,r)=>(e instanceof Object||ir(`${r} with invalid "this": ${e}`),e instanceof t.registeredClass.constructor||ir(`${r} incompatible with "this" of type ${e.constructor.name}`),e.$$.ptr||ir(`cannot call emscripten binding method ${r} on deleted object`),Tr(e.$$.ptr,e.$$.ptrType.registeredClass,t.registeredClass));function jr(){this.allocated=[void 0],this.freelist=[]}var Wr=new jr,Ur=e=>{e>=Wr.reserved&&0==--Wr.get(e).refcount&&Wr.free(e)},Br={toValue:e=>(e||ir("Cannot use deleted val. handle = "+e),Wr.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return Wr.allocate({refcount:1,value:e})}}},zr=(e,t,c)=>{switch(t){case 1:return c?function(e){return this.fromWireType(r()[e>>0])}:function(e){return this.fromWireType(n()[e>>0])};case 2:return c?function(e){return this.fromWireType(i()[e>>1])}:function(e){return this.fromWireType(o()[e>>1])};case 4:return c?function(e){return this.fromWireType(a()[e>>2])}:function(e){return this.fromWireType(s()[e>>2])};default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Hr=(e,t)=>{var r=Jt[e];return void 0===r&&ir(t+" has unknown type "+Ir(e)),r},Gr=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},Yr=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType((x.buffer!=U.buffer&&X(),V)[e>>2])};case 8:return function(e){return this.fromWireType(c()[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},Vr=(e,t,c)=>{switch(t){case 1:return c?e=>r()[e>>0]:e=>n()[e>>0];case 2:return c?e=>i()[e>>1]:e=>o()[e>>1];case 4:return c?e=>a()[e>>2]:e=>s()[e>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Kr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,qr=(e,t)=>{Z(e%2==0,"Pointer passed to UTF16ToString must be aligned to two bytes!");for(var r=e,a=r>>1,s=a+t/2;!(a>=s)&&o()[a];)++a;if((r=a<<1)-e>32&&Kr)return Kr.decode(n().slice(e,r));for(var c="",d=0;!(d>=t/2);++d){var l=i()[e+2*d>>1];if(0==l)break;c+=String.fromCharCode(l)}return c},Zr=(e,t,r)=>{if(Z(t%2==0,"Pointer passed to stringToUTF16 must be aligned to two bytes!"),Z("number"==typeof r,"stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,o=(r-=2)<2*e.length?r/2:e.length,a=0;a<o;++a){var s=e.charCodeAt(a);i()[t>>1]=s,Re(s),t+=2}return i()[t>>1]=0,Re(0),t-n},Xr=e=>2*e.length,Jr=(e,t)=>{Z(e%4==0,"Pointer passed to UTF32ToString must be aligned to four bytes!");for(var r=0,n="";!(r>=t/4);){var i=a()[e+4*r>>2];if(0==i)break;if(++r,i>=65536){var o=i-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(i)}return n},Qr=(e,t,r)=>{if(Z(t%4==0,"Pointer passed to stringToUTF32 must be aligned to four bytes!"),Z("number"==typeof r,"stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,i=n+r-4,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o)),a()[t>>2]=s,$e(s),(t+=4)+4>i)break}return a()[t>>2]=0,$e(0),t-n},en=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t},tn=e=>{if("function"==typeof Atomics.waitAsync){var t=Atomics.waitAsync(a(),e>>2,e);Z(t.async),t.value.then(rn);var r=e+128;Atomics.store(a(),r>>2,1)}};f.__emscripten_thread_mailbox_await=tn;var rn=()=>{var e=Wn();e&&(tn(e),(e=>{if(q)$("user callback triggered after runtime exited or application aborted. Ignoring.");else try{e(),(()=>{if(!se())try{S?Kn(W):vt(W)}catch(e){yt(e)}})()}catch(e){yt(e)}})((()=>qn())))};f.checkMailbox=rn;var nn=function(e,t){var r=arguments.length-2,n=arguments;return st((()=>{for(var i=r,o=ti(8*i),a=o>>3,s=0;s<r;s++){var d=n[2+s];c()[a+s]=d}return Yn(e,i,o,t)}))},on=[],an=e=>e%4==0&&(e%100!=0||e%400==0),sn=[0,31,60,91,121,152,182,213,244,274,305,335],cn=[0,31,59,90,120,151,181,212,243,273,304,334],dn=(e,t)=>(Z(e==e>>>0||e==(0|e)),Z(t===(0|t)),t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN);function ln(e,t,r,n,i,o,c,d){if(S)return nn(13,1,e,t,r,n,i,o,c,d);var l=dn(i,o);try{if(isNaN(l))return 61;var f=ht.getStreamFromFD(n),u=ut.mmap(f,e,l,t,r),h=u.ptr;return a()[c>>2]=u.allocated,$e(u.allocated),s()[d>>2]=h,0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}function fn(e,t,r,n,i,o,a){if(S)return nn(14,1,e,t,r,n,i,o,a);var s=dn(o,a);try{if(isNaN(s))return 61;var c=ht.getStreamFromFD(i);2&r&&ht.doMsync(e,c,t,n,s),ut.munmap(c)}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return-e.errno}}var un,hn=e=>{var t=qe(e)+1,r=In(t);return r&&ct(e,r,t),r};un=()=>performance.timeOrigin+performance.now();var mn=e=>{var t=x.buffer,r=(e-t.byteLength+65535)/65536;try{return x.grow(r),X(),1}catch(r){$(`growMemory: Attempted to grow heap from ${t.byteLength} bytes to ${e} bytes, but got error: ${r}`)}},pn={},vn=()=>{if(!vn.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:p||"./this.program"};for(var t in pn)void 0===pn[t]?delete e[t]:e[t]=pn[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);vn.strings=r}return vn.strings},_n=function(e,t){if(S)return nn(15,1,e,t);var n=0;return vn().forEach(((i,o)=>{var a=t+n;s()[e+4*o>>2]=a,$e(a),((e,t)=>{for(var n=0;n<e.length;++n)Z(e.charCodeAt(n)===(255&e.charCodeAt(n))),r()[t++>>0]=e.charCodeAt(n),Ie(e.charCodeAt(n));r()[t>>0]=0,Ie(0)})(i,a),n+=i.length+1})),0},yn=function(e,t){if(S)return nn(16,1,e,t);var r=vn();s()[e>>2]=r.length,$e(r.length);var n=0;return r.forEach((e=>n+=e.length+1)),s()[t>>2]=n,$e(n),0};function gn(e){if(S)return nn(17,1,e);try{var t=ht.getStreamFromFD(e);return ut.close(t),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return e.errno}}function wn(e,t){if(S)return nn(18,1,e,t);try{var n=ht.getStreamFromFD(e),o=n.tty?2:ut.isDir(n.mode)?3:ut.isLink(n.mode)?7:4;return r()[t>>0]=o,Ie(o),i()[t+2>>1]=0,Re(0),we=[0,(ge=0,+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[t+8>>2]=we[0],a()[t+12>>2]=we[1],xe(0),we=[0,(ge=0,+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[t+16>>2]=we[0],a()[t+20>>2]=we[1],xe(0),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return e.errno}}function En(e,t,n,i){if(S)return nn(19,1,e,t,n,i);try{var o=((e,t,n,i)=>{for(var o=0,a=0;a<n;a++){var c=s()[t>>2],d=s()[t+4>>2];t+=8;var l=ut.read(e,r(),c,d,i);if(l<0)return-1;if(o+=l,l<d)break;void 0!==i&&(i+=l)}return o})(ht.getStreamFromFD(e),t,n);return s()[i>>2]=o,$e(o),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return e.errno}}function bn(e,t,r,n,i){if(S)return nn(20,1,e,t,r,n,i);var o=dn(t,r);try{if(isNaN(o))return 61;var s=ht.getStreamFromFD(e);return ut.llseek(s,o,n),we=[s.position>>>0,(ge=s.position,+Math.abs(ge)>=1?ge>0?+Math.floor(ge/4294967296)>>>0:~~+Math.ceil((ge-+(~~ge>>>0))/4294967296)>>>0:0)],a()[i>>2]=we[0],a()[i+4>>2]=we[1],xe(s.position),s.getdents&&0===o&&0===n&&(s.getdents=null),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return e.errno}}function kn(e,t,n,i){if(S)return nn(21,1,e,t,n,i);try{var o=((e,t,n,i)=>{for(var o=0,a=0;a<n;a++){var c=s()[t>>2],d=s()[t+4>>2];t+=8;var l=ut.write(e,r(),c,d,i);if(l<0)return-1;o+=l,void 0!==i&&(i+=l)}return o})(ht.getStreamFromFD(e),t,n);return s()[i>>2]=o,$e(o),0}catch(e){if(void 0===ut||"ErrnoError"!==e.name)throw e;return e.errno}}var Sn=[31,29,31,30,31,30,31,31,30,31,30,31],Tn=[31,28,31,30,31,30,31,31,30,31,30,31],Pn=(e,t,n,i)=>{var o=s()[i+40>>2],c={tm_sec:a()[i>>2],tm_min:a()[i+4>>2],tm_hour:a()[i+8>>2],tm_mday:a()[i+12>>2],tm_mon:a()[i+16>>2],tm_year:a()[i+20>>2],tm_wday:a()[i+24>>2],tm_yday:a()[i+28>>2],tm_isdst:a()[i+32>>2],tm_gmtoff:a()[i+36>>2],tm_zone:o?lt(o):""},d=lt(n),l={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var f in l)d=d.replace(new RegExp(f,"g"),l[f]);var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],h=["January","February","March","April","May","June","July","August","September","October","November","December"];function m(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length<t;)n=r[0]+n;return n}function p(e,t){return m(e,t,"0")}function v(e,t){function r(e){return e<0?-1:e>0?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function _(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function y(e){var t=((e,t)=>{for(var r=new Date(e.getTime());t>0;){var n=an(r.getFullYear()),i=r.getMonth(),o=(n?Sn:Tn)[i];if(!(t>o-r.getDate()))return r.setDate(r.getDate()+t),r;t-=o-r.getDate()+1,r.setDate(1),i<11?r.setMonth(i+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r})(new Date(e.tm_year+1900,0,1),e.tm_yday),r=new Date(t.getFullYear(),0,4),n=new Date(t.getFullYear()+1,0,4),i=_(r),o=_(n);return v(i,t)<=0?v(o,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var g={"%a":e=>u[e.tm_wday].substring(0,3),"%A":e=>u[e.tm_wday],"%b":e=>h[e.tm_mon].substring(0,3),"%B":e=>h[e.tm_mon],"%C":e=>p((e.tm_year+1900)/100|0,2),"%d":e=>p(e.tm_mday,2),"%e":e=>m(e.tm_mday,2," "),"%g":e=>y(e).toString().substring(2),"%G":e=>y(e),"%H":e=>p(e.tm_hour,2),"%I":e=>{var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),p(t,2)},"%j":e=>p(e.tm_mday+((e,t)=>{for(var r=0,n=0;n<=t;r+=e[n++]);return r})(an(e.tm_year+1900)?Sn:Tn,e.tm_mon-1),3),"%m":e=>p(e.tm_mon+1,2),"%M":e=>p(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>p(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var t=e.tm_yday+7-e.tm_wday;return p(Math.floor(t/7),2)},"%V":e=>{var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,t){if(53==t){var r=(e.tm_wday+371-e.tm_yday)%7;4==r||3==r&&an(e.tm_year)||(t=1)}}else{t=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&an(e.tm_year%400-1))&&t++}return p(t,2)},"%w":e=>e.tm_wday,"%W":e=>{var t=e.tm_yday+7-(e.tm_wday+6)%7;return p(Math.floor(t/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var t=e.tm_gmtoff,r=t>=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(r?"+":"-")+String("0000"+t).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var f in d=d.replace(/%%/g,"\0\0"),g)d.includes(f)&&(d=d.replace(new RegExp(f,"g"),g[f](c)));var w,E,b=Xe(d=d.replace(/\0\0/g,"%"),!1);return b.length>t?0:(E=e,Z((w=b).length>=0,"writeArrayToMemory array must have a length (should be an array or typed array)"),r().set(w,E),b.length-1)};gt.init();var Fn,Cn,An=function(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=ut.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n};Object.defineProperties(An.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return ut.isDir(this.mode)}},isDevice:{get:function(){return ut.isChrdev(this.mode)}}}),ut.FSNode=An,ut.createPreloadedFile=(e,t,r,n,i,o,a,s,c,d)=>{var l=t?Ge.resolve(ze.join2(e,t)):e,f=me(`cp ${l}`);function u(r){function u(r){d&&d(),s||((e,t,r,n,i,o)=>{ut.createDataFile(e,t,r,n,i,o)})(e,t,r,n,i,c),o&&o(),ve(f)}((e,t,r,n)=>{"undefined"!=typeof Browser&&Browser.init();var i=!1;return tt.forEach((o=>{i||o.canHandle(t)&&(o.handle(e,t,r,n),i=!0)})),i})(r,l,u,(()=>{a&&a(),ve(f)}))||u(r)}pe(f),"string"==typeof r?((e,t,r,n)=>{var i=me(`al ${e}`);b(e,(t=>{Z(t,`Loading data file "${e}" failed (no arrayBuffer).`),u(new Uint8Array(t)),i&&ve(i)}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),i&&pe(i)})(r,0,a):u(r)},ut.staticInit(),f.FS_createPath=ut.createPath,f.FS_createDataFile=ut.createDataFile,f.FS_createPreloadedFile=ut.createPreloadedFile,f.FS_unlink=ut.unlink,f.FS_createLazyFile=ut.createLazyFile,f.FS_createDevice=ut.createDevice,g&&ot.staticInit(),it={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},Kt=f.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},(()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);qt=e})(),Zt=f.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(gr.prototype,{isAliasOf(e){if(!(this instanceof gr))return!1;if(!(e instanceof gr))return!1;var t=this.$$.ptrType.registeredClass,r=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,i=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return t===n&&r===i},clone(){if(this.$$.ptr||sr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,t=yr(Object.create(Object.getPrototypeOf(this),{$$:{value:(e=this.$$,{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType})}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||sr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ir("Object already scheduled for deletion"),dr(this),lr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||sr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ir("Object already scheduled for deletion"),hr.push(this),1===hr.length&&ar&&ar(mr),this.$$.deleteScheduled=!0,this}}),f.getInheritedInstanceCount=()=>Object.keys(pr).length,f.getLiveInheritedInstances=()=>{var e=[];for(var t in pr)pr.hasOwnProperty(t)&&e.push(pr[t]);return e},f.flushPendingDeletes=mr,f.setDelayFunction=e=>{ar=e,hr.length&&ar&&ar(mr)},Object.assign(Nr.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:8,readValueFromPointer:Ar,deleteObject(e){null!==e&&e.delete()},fromWireType:_r}),Dr=f.UnboundTypeError=(Fn=Error,(Cn=Er("UnboundTypeError",(function(e){this.name="UnboundTypeError",this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(Fn.prototype),Cn.prototype.constructor=Cn,Cn.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},Cn),Object.assign(jr.prototype,{get(e){return Z(void 0!==this.allocated[e],`invalid handle: ${e}`),this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t},free(e){Z(void 0!==this.allocated[e]),this.allocated[e]=void 0,this.freelist.push(e)}}),Wr.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),Wr.reserved=Wr.allocated.length,f.count_emval_handles=()=>{for(var e=0,t=Wr.reserved;t<Wr.allocated.length;++t)void 0!==Wr.allocated[t]&&++e;return e};var Nn,Dn=[mt,Et,Mt,Rt,$t,xt,Lt,jt,Wt,Ut,Bt,zt,Ht,ln,fn,_n,yn,gn,wn,En,bn,kn],On={__assert_fail:(e,t,r,n)=>{_e(`Assertion failed: ${lt(e)}, at: `+[t?lt(t):"unknown filename",r,n?lt(n):"unknown function"])},__cxa_begin_catch:e=>{var t=new Dt(e);return t.get_caught()||(t.set_caught(!0),At--),t.set_rethrown(!1),Ct.push(t),ii(t.excPtr),t.get_exception_ptr()},__cxa_current_primary_exception:()=>{if(!Ct.length)return 0;var e=Ct[Ct.length-1];return ii(e.excPtr),e.excPtr},__cxa_end_catch:()=>{Zn(0,0),Z(Ct.length>0);var e=Ct.pop();ni(e.excPtr),Nt=0},__cxa_find_matching_catch_2:()=>Ot([]),__cxa_find_matching_catch_3:e=>Ot([e]),__cxa_find_matching_catch_4:(e,t)=>Ot([e,t]),__cxa_find_matching_catch_5:(e,t,r)=>Ot([e,t,r]),__cxa_find_matching_catch_6:(e,t,r,n)=>Ot([e,t,r,n]),__cxa_find_matching_catch_7:(e,t,r,n,i)=>Ot([e,t,r,n,i]),__cxa_get_exception_ptr:e=>new Dt(e).get_exception_ptr(),__cxa_rethrow:()=>{var e=Ct.pop();e||_e("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(Ct.push(e),e.set_rethrown(!0),e.set_caught(!1),At++),Nt=new Pe(t)},__cxa_throw:(e,t,r)=>{throw new Dt(e).init(t,r),Nt=new Pe(e),At++,Nt},__cxa_uncaught_exceptions:()=>At,__emscripten_init_main_thread_js:e=>{zn(e,!y,1,!_,2097152,!1),gt.threadInitTLS()},__emscripten_thread_cleanup:e=>{S?postMessage({cmd:"cleanupThread",thread:e}):Ue(e)},__handle_stack_overflow:e=>{var t=Hn(),r=Gn();_e(`stack overflow (Attempt to set SP to ${_t(e)}, with stack limits [${_t(r)} - ${_t(t)}]). If you require more stack space build with -sSTACK_SIZE=<bytes>`)},__pthread_create_js:It,__resumeException:e=>{throw Nt||(Nt=new Pe(e)),Nt},__syscall_fcntl64:Rt,__syscall_fstat64:$t,__syscall_ioctl:xt,__syscall_lstat64:Lt,__syscall_mkdirat:jt,__syscall_newfstatat:Wt,__syscall_openat:Ut,__syscall_rmdir:Bt,__syscall_stat64:zt,__syscall_unlinkat:Ht,_embind_finalize_value_array:e=>{var t=Gt[e];delete Gt[e];var r=t.elements,n=r.length,i=r.map((e=>e.getterReturnType)).concat(r.map((e=>e.setterArgumentType))),o=t.rawConstructor,a=t.rawDestructor;tr([e],i,(function(e){return r.forEach(((t,r)=>{var i=e[r],o=t.getter,a=t.getterContext,s=e[r+n],c=t.setter,d=t.setterContext;t.read=e=>i.fromWireType(o(a,e)),t.write=(e,t)=>{var r=[];c(d,e,s.toWireType(r,t)),Yt(r)}})),[{name:t.name,fromWireType:e=>{for(var t=new Array(n),i=0;i<n;++i)t[i]=r[i].read(e);return a(e),t},toWireType:(e,i)=>{if(n!==i.length)throw new TypeError(`Incorrect number of tuple elements for ${t.name}: expected=${n}, actual=${i.length}`);for(var s=o(),c=0;c<n;++c)r[c].write(s,i[c]);return null!==e&&e.push(a,s),s},argPackAdvance:8,readValueFromPointer:Vt,destructorFunction:a}]}))},_embind_finalize_value_object:e=>{var t=rr[e];delete rr[e];var r=t.rawConstructor,n=t.rawDestructor,i=t.fields,o=i.map((e=>e.getterReturnType)).concat(i.map((e=>e.setterArgumentType)));tr([e],o,(e=>{var o={};return i.forEach(((t,r)=>{var n=t.fieldName,a=e[r],s=t.getter,c=t.getterContext,d=e[r+i.length],l=t.setter,f=t.setterContext;o[n]={read:e=>a.fromWireType(s(c,e)),write:(e,t)=>{var r=[];l(f,e,d.toWireType(r,t)),Yt(r)}}})),[{name:t.name,fromWireType:e=>{var t={};for(var r in o)t[r]=o[r].read(e);return n(e),t},toWireType:(e,t)=>{for(var i in o)if(!(i in t))throw new TypeError(`Missing field: "${i}"`);var a=r();for(i in o)o[i].write(a,t[i]);return null!==e&&e.push(n,a),a},argPackAdvance:8,readValueFromPointer:Vt,destructorFunction:n}]}))},_embind_register_bigint:(e,t,r,n,i)=>{},_embind_register_bool:(e,t,r,i)=>{or(e,{name:t=nr(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:i},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(n()[e])},destructorFunction:null})},_embind_register_class:(e,t,r,n,i,o,a,s,c,d,l,f,u)=>{l=nr(l),o=Mr(i,o),s&&(s=Mr(a,s)),d&&(d=Mr(c,d)),u=Mr(f,u);var h=wr(l);kr(h,(function(){Rr(`Cannot construct ${l} due to unbound types`,[n])})),tr([e,t,r],n?[n]:[],(function(t){var r,i;t=t[0],i=n?(r=t.registeredClass).instancePrototype:gr.prototype;var a=Er(h,(function(){if(Object.getPrototypeOf(this)!==c)throw new Zt("Use 'new' to construct "+l);if(void 0===f.constructor_body)throw new Zt(l+" has no accessible constructor");var e=f.constructor_body[arguments.length];if(void 0===e)throw new Zt(`Tried to invoke ctor of ${l} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(f.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)})),c=Object.create(i,{constructor:{value:a}});a.prototype=c;var f=new Sr(l,a,c,u,r,o,s,d);f.baseClass&&(void 0===f.baseClass.__derivedClasses&&(f.baseClass.__derivedClasses=[]),f.baseClass.__derivedClasses.push(f));var m=new Nr(l,f,!0,!1,!1),p=new Nr(l+"*",f,!1,!1,!1),v=new Nr(l+" const*",f,!1,!0,!1);return ur[e]={pointerType:p,constPointerType:v},Or(h,a),[m,p,v]}))},_embind_register_class_constructor:(e,t,r,n,i,o)=>{Z(t>0);var a=$r(t,r);i=Mr(n,i),tr([],[e],(function(e){var r=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new Zt(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[t-1]=()=>{Rr(`Cannot construct ${e.name} due to unbound types`,a)},tr([],a,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=xr(r,n,null,i,o),[]))),[]}))},_embind_register_class_function:(e,t,r,n,i,o,a,s,c)=>{var d=$r(r,n);t=nr(t),o=Mr(i,o),tr([],[e],(function(e){var n=`${(e=e[0]).name}.${t}`;function i(){Rr(`Cannot call ${n} due to unbound types`,d)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var l=e.registeredClass.instancePrototype,f=l[t];return void 0===f||void 0===f.overloadTable&&f.className!==e.name&&f.argCount===r-2?(i.argCount=r-2,i.className=e.name,l[t]=i):(br(l,t,n),l[t].overloadTable[r-2]=i),tr([],d,(function(i){var s=xr(n,i,e,o,a,c);return void 0===l[t].overloadTable?(s.argCount=r-2,l[t]=s):l[t].overloadTable[r-2]=s,[]})),[]}))},_embind_register_class_property:(e,t,r,n,i,o,a,s,c,d)=>{t=nr(t),i=Mr(n,i),tr([],[e],(function(e){var n=`${(e=e[0]).name}.${t}`,l={get(){Rr(`Cannot access ${n} due to unbound types`,[r,a])},enumerable:!0,configurable:!0};return l.set=c?()=>Rr(`Cannot access ${n} due to unbound types`,[r,a]):e=>ir(n+" is a read-only property"),Object.defineProperty(e.registeredClass.instancePrototype,t,l),tr([],c?[r,a]:[r],(function(r){var a=r[0],l={get(){var t=Lr(this,e,n+" getter");return a.fromWireType(i(o,t))},enumerable:!0};if(c){c=Mr(s,c);var f=r[1];l.set=function(t){var r=Lr(this,e,n+" setter"),i=[];c(d,r,f.toWireType(i,t)),Yt(i)}}return Object.defineProperty(e.registeredClass.instancePrototype,t,l),[]})),[]}))},_embind_register_emval:(e,t)=>{or(e,{name:t=nr(t),fromWireType:e=>{var t=Br.toValue(e);return Ur(e),t},toWireType:(e,t)=>Br.toHandle(t),argPackAdvance:8,readValueFromPointer:Vt,destructorFunction:null})},_embind_register_enum:(e,t,r,n)=>{function i(){}t=nr(t),i.values={},or(e,{name:t,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,t)=>t.value,argPackAdvance:8,readValueFromPointer:zr(t,r,n),destructorFunction:null}),kr(t,i)},_embind_register_enum_value:(e,t,r)=>{var n=Hr(e,"enum");t=nr(t);var i=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:r},constructor:{value:Er(`${n.name}_${t}`,(function(){}))}});i.values[r]=o,i[t]=o},_embind_register_float:(e,t,r)=>{or(e,{name:t=nr(t),fromWireType:e=>e,toWireType:(e,t)=>{if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError(`Cannot convert ${Gr(t)} to ${this.name}`);return t},argPackAdvance:8,readValueFromPointer:Yr(t,r),destructorFunction:null})},_embind_register_function:(e,t,r,n,i,o,a)=>{var s=$r(t,r);e=nr(e),i=Mr(n,i),kr(e,(function(){Rr(`Cannot call ${e} due to unbound types`,s)}),t-1),tr([],s,(function(r){var n=[r[0],null].concat(r.slice(1));return Or(e,xr(e,n,null,i,o,a),t-1),[]}))},_embind_register_integer:(e,t,r,n,i)=>{t=nr(t),-1===i&&(i=4294967295);var o=e=>e;if(0===n){var a=32-8*r;o=e=>e<<a>>>a}var s=t.includes("unsigned"),c=(e,r)=>{if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError(`Cannot convert "${Gr(e)}" to ${r}`);if(e<n||e>i)throw new TypeError(`Passing a number "${Gr(e)}" from JS side to C/C++ side to an argument of type "${t}", which is outside the valid range [${n}, ${i}]!`)};or(e,{name:t,fromWireType:o,toWireType:s?function(e,t){return c(t,this.name),t>>>0}:function(e,t){return c(t,this.name),t},argPackAdvance:8,readValueFromPointer:Vr(t,r,0!==n),destructorFunction:null})},_embind_register_memory_view:(e,t,n)=>{var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function o(e){var t=s()[e>>2],n=s()[e+4>>2];return new i(r().buffer,n,t)}or(e,{name:n=nr(n),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},_embind_register_std_string:(e,t)=>{var r="std::string"===(t=nr(t));or(e,{name:t,fromWireType(e){var t,i=s()[e>>2],o=e+4;if(r)for(var a=o,c=0;c<=i;++c){var d=o+c;if(c==i||0==n()[d]){var l=lt(a,d-a);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),a=d+1}}else{var f=new Array(i);for(c=0;c<i;++c)f[c]=String.fromCharCode(n()[o+c]);t=f.join("")}return $n(e),t},toWireType(e,t){var i;t instanceof ArrayBuffer&&(t=new Uint8Array(t));var o="string"==typeof t;o||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||ir("Cannot pass non-string to std::string"),i=r&&o?qe(t):t.length;var a=In(4+i+1),c=a+4;if(s()[a>>2]=i,$e(i),r&&o)ct(t,c,i+1);else if(o)for(var d=0;d<i;++d){var l=t.charCodeAt(d);l>255&&($n(c),ir("String has UTF-16 code units that do not fit in 8 bits")),n()[c+d]=l}else for(d=0;d<i;++d)n()[c+d]=t[d];return null!==e&&e.push($n,a),a},argPackAdvance:8,readValueFromPointer:Ar,destructorFunction(e){$n(e)}})},_embind_register_std_wstring:(e,t,r)=>{var n,i,a,c,d;r=nr(r),2===t?(n=qr,i=Zr,c=Xr,a=()=>o(),d=1):4===t&&(n=Jr,i=Qr,c=en,a=()=>s(),d=2),or(e,{name:r,fromWireType:e=>{for(var r,i=s()[e>>2],o=a(),c=e+4,l=0;l<=i;++l){var f=e+4+l*t;if(l==i||0==o[f>>d]){var u=n(c,f-c);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),c=f+t}}return $n(e),r},toWireType:(e,n)=>{"string"!=typeof n&&ir(`Cannot pass non-string to C++ string type ${r}`);var o=c(n),a=In(4+o+t);return s()[a>>2]=o>>d,i(n,a+4,o+t),null!==e&&e.push($n,a),a},argPackAdvance:8,readValueFromPointer:Vt,destructorFunction(e){$n(e)}})},_embind_register_value_array:(e,t,r,n,i,o)=>{Gt[e]={name:nr(t),rawConstructor:Mr(r,n),rawDestructor:Mr(i,o),elements:[]}},_embind_register_value_array_element:(e,t,r,n,i,o,a,s,c)=>{Gt[e].elements.push({getterReturnType:t,getter:Mr(r,n),getterContext:i,setterArgumentType:o,setter:Mr(a,s),setterContext:c})},_embind_register_value_object:(e,t,r,n,i,o)=>{rr[e]={name:nr(t),rawConstructor:Mr(r,n),rawDestructor:Mr(i,o),fields:[]}},_embind_register_value_object_field:(e,t,r,n,i,o,a,s,c,d)=>{rr[e].fields.push({fieldName:nr(t),getterReturnType:r,getter:Mr(n,i),getterContext:o,setterArgumentType:a,setter:Mr(s,c),setterContext:d})},_embind_register_void:(e,t)=>{or(e,{isVoid:!0,name:t=nr(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},_emscripten_get_now_is_monotonic:()=>!0,_emscripten_notify_mailbox_postmessage:(e,t,r)=>{if(e==t)setTimeout((()=>rn()));else if(S)postMessage({targetThread:e,cmd:"checkMailbox"});else{var n=gt.pthreads[e];if(!n)return void $(`Cannot send message to thread with ID ${e}, unknown thread ID!`);n.postMessage({cmd:"checkMailbox"})}},_emscripten_receive_on_main_thread_js:(e,t,r,n)=>{on.length=r;for(var i=n>>3,o=0;o<r;o++)on[o]=c()[i+o];var a=Dn[e];Z(a.length==r,"Call args mismatch in _emscripten_receive_on_main_thread_js"),gt.currentProxiedOperationCallerThread=t;var s=a.apply(null,on);return gt.currentProxiedOperationCallerThread=0,s},_emscripten_thread_mailbox_await:tn,_emscripten_thread_set_strongref:e=>{g&&gt.pthreads[e].ref()},_emscripten_throw_longjmp:()=>{throw new Te},_emval_decref:Ur,_emval_incref:e=>{e>4&&(Wr.get(e).refcount+=1)},_emval_take_value:(e,t)=>{var r=(e=Hr(e,"_emval_take_value")).readValueFromPointer(t);return Br.toHandle(r)},_localtime_js:function(e,t,r){var n=dn(e,t),i=new Date(1e3*n);a()[r>>2]=i.getSeconds(),$e(i.getSeconds()),a()[r+4>>2]=i.getMinutes(),$e(i.getMinutes()),a()[r+8>>2]=i.getHours(),$e(i.getHours()),a()[r+12>>2]=i.getDate(),$e(i.getDate()),a()[r+16>>2]=i.getMonth(),$e(i.getMonth()),a()[r+20>>2]=i.getFullYear()-1900,$e(i.getFullYear()-1900),a()[r+24>>2]=i.getDay(),$e(i.getDay());var o=0|(e=>(an(e.getFullYear())?sn:cn)[e.getMonth()]+e.getDate()-1)(i);a()[r+28>>2]=o,$e(o),a()[r+36>>2]=-60*i.getTimezoneOffset(),$e(-60*i.getTimezoneOffset());var s=new Date(i.getFullYear(),0,1),c=new Date(i.getFullYear(),6,1).getTimezoneOffset(),d=s.getTimezoneOffset(),l=0|(c!=d&&i.getTimezoneOffset()==Math.min(d,c));a()[r+32>>2]=l,$e(l)},_mmap_js:ln,_munmap_js:fn,_tzset_js:(e,t,r)=>{var n=(new Date).getFullYear(),i=new Date(n,0,1),o=new Date(n,6,1),c=i.getTimezoneOffset(),d=o.getTimezoneOffset(),l=Math.max(c,d);function f(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}s()[e>>2]=60*l,$e(60*l),a()[t>>2]=Number(c!=d),$e(Number(c!=d));var u=f(i),h=f(o),m=hn(u),p=hn(h);d<c?(s()[r>>2]=m,$e(m),s()[r+4>>2]=p,$e(p)):(s()[r>>2]=p,$e(p),s()[r+4>>2]=m,$e(m))},abort:()=>{_e("native code called abort()")},emscripten_check_blocking_allowed:()=>{g||y||Ft("Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread")},emscripten_date_now:()=>Date.now(),emscripten_exit_with_live_runtime:()=>{throw ae+=1,"unwind"},emscripten_get_heap_max:()=>2147483648,emscripten_get_now:un,emscripten_num_logical_cores:()=>g?require("os").cpus().length:navigator.hardwareConcurrency,emscripten_resize_heap:e=>{var t=n().length;if((e>>>=0)<=t)return!1;var r=2147483648;if(e>r)return $(`Cannot enlarge memory, requested ${e} bytes, but the limit is 2147483648 bytes!`),!1;for(var i,o=1;o<=4;o*=2){var a=t*(1+.2/o);a=Math.min(a,e+100663296);var s=Math.min(r,(i=Math.max(e,a))+(65536-i%65536)%65536),c=un(),d=mn(s);if(Le(`Heap resize call from ${t} to ${s} took ${un()-c} msecs. Success: ${!!d}`),d)return!0}return $(`Failed to grow the heap from ${t} bytes to ${s} bytes, not enough memory!`),!1},environ_get:_n,environ_sizes_get:yn,exit:vt,fd_close:gn,fd_fdstat_get:wn,fd_read:En,fd_seek:bn,fd_write:kn,getentropy:(e,t)=>(He(n().subarray(e,e+t)),0),invoke_dd:function(e,t){var r=Qn();try{return Tt(e)(t)}catch(e){if(ei(r),!(e instanceof Se))throw e;Zn(1,0)}},invoke_ddi:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_di:function(e,t){var r=Qn();try{return Tt(e)(t)}catch(e){if(ei(r),!(e instanceof Se))throw e;Zn(1,0)}},invoke_did:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_didi:function(e,t,r,n){var i=Qn();try{return Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_dii:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diidiiii:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diii:function(e,t,r,n){var i=Qn();try{return Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiid:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiidi:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiif:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiii:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiiii:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiiiid:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiiiii:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_diiiiiii:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fi:function(e,t){var r=Qn();try{return Tt(e)(t)}catch(e){if(ei(r),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fii:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fiiffii:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fiii:function(e,t,r,n){var i=Qn();try{return Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fiiifif:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fiiii:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fiiiif:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fiiiifi:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_fiiiifif:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_i:function(e){var t=Qn();try{return Tt(e)()}catch(e){if(ei(t),!(e instanceof Se))throw e;Zn(1,0)}},invoke_idi:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_ii:function(e,t){var r=Qn();try{return Tt(e)(t)}catch(e){if(ei(r),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iid:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iidd:function(e,t,r,n){var i=Qn();try{return Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiddd:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iidddd:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iidddii:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iidddiii:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiddiiiiii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iidii:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iif:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiffff:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiffffffff:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iifffi:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iifiif:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iii:function(e,t,r){var n=Qn();try{return Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiid:function(e,t,r,n){var i=Qn();try{return Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiidd:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiidi:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiidii:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiif:function(e,t,r,n){var i=Qn();try{return Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiffffffffffff:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m){var p=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m)}catch(e){if(ei(p),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiifffii:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiifffiii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiii:function(e,t,r,n){var i=Qn();try{return Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiid:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiidd:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiidii:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiif:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiifff:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiffff:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiifffiff:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiii:function(e,t,r,n,i){var o=Qn();try{return Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiid:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiidd:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiddd:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiidddi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiidi:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiif:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiifff:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiifffffffffffffff:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g){var w=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g)}catch(e){if(ei(w),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiifi:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiifiii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiii:function(e,t,r,n,i,o){var a=Qn();try{return Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiid:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiidd:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiidi:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiidiiidiiiiidiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g,w,E){var b=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g,w,E)}catch(e){if(ei(b),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiif:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiff:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiifff:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiffi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiii:function(e,t,r,n,i,o,a){var s=Qn();try{return Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiid:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiidd:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiddi:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiidi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiif:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiff:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiffi:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiifi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiifif:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiifiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m){var p=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m)}catch(e){if(ei(p),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiii:function(e,t,r,n,i,o,a,s){var c=Qn();try{return Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiid:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiddii:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiff:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiffffffffffff:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g){var w=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g)}catch(e){if(ei(w),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiifffi:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u){var h=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u)}catch(e){if(ei(h),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p){var v=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p)}catch(e){if(ei(v),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiiiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v){var _=Qn();try{return Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v)}catch(e){if(ei(_),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iiiiij:function(e,t,r,n,i,o,a){var s=Qn();try{return mi(e,t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_iij:function(e,t,r,n){var i=Qn();try{return ui(e,t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_j:function(e){var t=Qn();try{return hi(e)}catch(e){if(ei(t),!(e instanceof Se))throw e;Zn(1,0)}},invoke_ji:function(e,t){var r=Qn();try{return li(e,t)}catch(e){if(ei(r),!(e instanceof Se))throw e;Zn(1,0)}},invoke_jiiii:function(e,t,r,n,i){var o=Qn();try{return pi(e,t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_v:function(e){var t=Qn();try{Tt(e)()}catch(e){if(ei(t),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vi:function(e,t){var r=Qn();try{Tt(e)(t)}catch(e){if(ei(r),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vid:function(e,t,r){var n=Qn();try{Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viddddd:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vidddddd:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viddddddi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vidi:function(e,t,r,n){var i=Qn();try{Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vidii:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vif:function(e,t,r){var n=Qn();try{Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viff:function(e,t,r,n){var i=Qn();try{Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viffiiiiii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vifi:function(e,t,r,n){var i=Qn();try{Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vifif:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vifii:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_vii:function(e,t,r){var n=Qn();try{Tt(e)(t,r)}catch(e){if(ei(n),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viid:function(e,t,r,n){var i=Qn();try{Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viidd:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viidi:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viidiiiddi:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viidiiii:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viif:function(e,t,r,n){var i=Qn();try{Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiff:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifff:function(e,t,r,n,i,o){var a=Qn();try{Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiffff:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifffffff:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifffi:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifffii:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifffiii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifi:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viififfffii:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viififi:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifiii:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viifiiifff:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viii:function(e,t,r,n){var i=Qn();try{Tt(e)(t,r,n)}catch(e){if(ei(i),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiid:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiddddd:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiddddi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiidi:function(e,t,r,n,i,o){var a=Qn();try{Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiidiiiii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiif:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiff:function(e,t,r,n,i,o){var a=Qn();try{Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiifff:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiffff:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiifffffffffffff:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v){var _=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v)}catch(e){if(ei(_),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiifffiff:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiifffii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiffi:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiffii:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiffiiiii:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiffiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiifi:function(e,t,r,n,i,o){var a=Qn();try{Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiifii:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiii:function(e,t,r,n,i){var o=Qn();try{Tt(e)(t,r,n,i)}catch(e){if(ei(o),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiid:function(e,t,r,n,i,o){var a=Qn();try{Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiidd:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiidi:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiif:function(e,t,r,n,i,o){var a=Qn();try{Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiifff:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiifffi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiifffiiii:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiffii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiffiii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiifi:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiifiii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiii:function(e,t,r,n,i,o){var a=Qn();try{Tt(e)(t,r,n,i,o)}catch(e){if(ei(a),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiid:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiidd:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiidddi:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiddi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiddii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiddiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p){var v=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p)}catch(e){if(ei(v),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiidi:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiif:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiffi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiffii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiffiii:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiii:function(e,t,r,n,i,o,a){var s=Qn();try{Tt(e)(t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiid:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiidd:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiddddii:function(e,t,r,n,i,o,a,s,c,d,l,f,u){var h=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u)}catch(e){if(ei(h),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiidddi:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiddii:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiidi:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiffi:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiffiii:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiii:function(e,t,r,n,i,o,a,s){var c=Qn();try{Tt(e)(t,r,n,i,o,a,s)}catch(e){if(ei(c),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiid:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiddddd:function(e,t,r,n,i,o,a,s,c,d,l,f,u){var h=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u)}catch(e){if(ei(h),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiif:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiffiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h){var m=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h)}catch(e){if(ei(m),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiifi:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiii:function(e,t,r,n,i,o,a,s,c){var d=Qn();try{Tt(e)(t,r,n,i,o,a,s,c)}catch(e){if(ei(d),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiidd:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiidddii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h){var m=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h)}catch(e){if(ei(m),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiddi:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiidi:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiifiifififiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g){var w=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g)}catch(e){if(ei(w),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiifiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u){var h=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u)}catch(e){if(ei(h),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiii:function(e,t,r,n,i,o,a,s,c,d){var l=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d)}catch(e){if(ei(l),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l){var f=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l)}catch(e){if(ei(f),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiid:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiddii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m){var p=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m)}catch(e){if(ei(p),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f){var u=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f)}catch(e){if(ei(u),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u){var h=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u)}catch(e){if(ei(h),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiiiffi:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p){var v=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p)}catch(e){if(ei(v),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h){var m=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h)}catch(e){if(ei(m),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiiiid:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m){var p=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m)}catch(e){if(ei(p),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m){var p=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m)}catch(e){if(ei(p),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p){var v=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p)}catch(e){if(ei(v),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v){var _=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v)}catch(e){if(ei(_),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viiiiiiiiiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g,w){var E=Qn();try{Tt(e)(t,r,n,i,o,a,s,c,d,l,f,u,h,m,p,v,_,y,g,w)}catch(e){if(ei(E),!(e instanceof Se))throw e;Zn(1,0)}},invoke_viijii:function(e,t,r,n,i,o,a){var s=Qn();try{fi(e,t,r,n,i,o,a)}catch(e){if(ei(s),!(e instanceof Se))throw e;Zn(1,0)}},llvm_eh_typeid_for:e=>e,memory:x||f.wasmMemory,strftime:Pn,strftime_l:(e,t,r,n,i)=>Pn(e,t,r,n)},Mn=function(){var e={env:On,wasi_snapshot_preview1:On};function t(e,t){var r,n;return Mn=e.exports,n=Mn._emscripten_tls_init,gt.tlsInitFunctions.push(n),Z(kt=Mn.__indirect_function_table,"table not found in wasm exports"),r=Mn.__wasm_call_ctors,re.unshift(r),L=t,ve("wasm-instantiate"),Mn}pe("wasm-instantiate");var r,n,i,o,a=f;if(f.instantiateWasm)try{return f.instantiateWasm(e,t)}catch(e){$(`Module.instantiateWasm callback failed with error: ${e}`),l(e)}return(r=I,n=ye,i=e,o=function(e){Z(f===a,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),a=null,t(e.instance,e.module)},r||"function"!=typeof WebAssembly.instantiateStreaming||Ee(n)||be(n)||g||"function"!=typeof fetch?Ce(n,i,o):fetch(n,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,i).then(o,(function(e){return $(`wasm streaming compile failed: ${e}`),$("falling back to ArrayBuffer instantiation"),Ce(n,i,o)}))))).catch(l),{}}(),In=(ke("__wasm_call_ctors"),ke("__cxa_free_exception"),ke("malloc")),Rn=ke("__errno_location"),$n=f._free=ke("free"),xn=f._fflush=ke("fflush"),Ln=f._main=ke("__main_argc_argv"),jn=ke("setTempRet0"),Wn=(f.__ZN5boost13serialization16singleton_module8get_lockEv=ke("_ZN5boost13serialization16singleton_module8get_lockEv"),f.__ZNK5boost7archive6detail11oserializerINS0_13text_oarchiveEN5RDKit9MolBundleEE16save_object_dataERNS1_14basic_oarchiveEPKv=ke("_ZNK5boost7archive6detail11oserializerINS0_13text_oarchiveEN5RDKit9MolBundleEE16save_object_dataERNS1_14basic_oarchiveEPKv"),f.__ZNK5boost7archive6detail11oserializerINS0_13text_oarchiveENSt3__26vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS9_ISB_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=ke("_ZNK5boost7archive6detail11oserializerINS0_13text_oarchiveENSt3__26vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS9_ISB_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv"),f.__ZNK5boost7archive6detail11iserializerINS0_13text_iarchiveEN5RDKit9MolBundleEE16load_object_dataERNS1_14basic_iarchiveEPvj=ke("_ZNK5boost7archive6detail11iserializerINS0_13text_iarchiveEN5RDKit9MolBundleEE16load_object_dataERNS1_14basic_iarchiveEPvj"),f.__ZNK5boost7archive6detail11iserializerINS0_13text_iarchiveENSt3__26vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS9_ISB_EEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=ke("_ZNK5boost7archive6detail11iserializerINS0_13text_iarchiveENSt3__26vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS9_ISB_EEEEE16load_object_dataERNS1_14basic_iarchiveEPvj"),f.__emscripten_tls_init=ke("_emscripten_tls_init"),f._pthread_self=()=>(Wn=f._pthread_self=Mn.pthread_self)()),Un=ke("emscripten_builtin_memalign"),Bn=ke("__getTypeName"),zn=(f.__embind_initialize_bindings=ke("_embind_initialize_bindings"),f.__emscripten_thread_init=ke("_emscripten_thread_init")),Hn=(f.__emscripten_thread_crashed=ke("_emscripten_thread_crashed"),ke("emscripten_main_thread_process_queued_calls"),ke("emscripten_main_runtime_thread_id"),()=>(Hn=Mn.emscripten_stack_get_base)()),Gn=()=>(Gn=Mn.emscripten_stack_get_end)(),Yn=ke("_emscripten_run_on_main_thread_js"),Vn=ke("_emscripten_thread_free_data"),Kn=f.__emscripten_thread_exit=ke("_emscripten_thread_exit"),qn=f.__emscripten_check_mailbox=ke("_emscripten_check_mailbox"),Zn=ke("setThrew"),Xn=()=>(Xn=Mn.emscripten_stack_init)(),Jn=(e,t)=>(Jn=Mn.emscripten_stack_set_limits)(e,t),Qn=ke("stackSave"),ei=ke("stackRestore"),ti=ke("stackAlloc"),ri=()=>(ri=Mn.emscripten_stack_get_current)(),ni=ke("__cxa_decrement_exception_refcount"),ii=ke("__cxa_increment_exception_refcount"),oi=ke("__cxa_demangle"),ai=f.___get_exception_message=ke("__get_exception_message"),si=ke("__cxa_can_catch"),ci=ke("__cxa_is_pointer_type"),di=f.___set_stack_limits=ke("__set_stack_limits"),li=(f.dynCall_jii=ke("dynCall_jii"),f.dynCall_viij=ke("dynCall_viij"),f.dynCall_ji=ke("dynCall_ji")),fi=f.dynCall_viijii=ke("dynCall_viijii"),ui=f.dynCall_iij=ke("dynCall_iij"),hi=(f.dynCall_jiji=ke("dynCall_jiji"),f.dynCall_j=ke("dynCall_j")),mi=f.dynCall_iiiiij=ke("dynCall_iiiiij"),pi=f.dynCall_jiiii=ke("dynCall_jiiii");function vi(e=m){if(!(le>0)){if(S||(Z(!S),Xn(),Q()),S)return d(f),ce(),void startWorker(f);!function(){if(Z(!S),f.preRun)for("function"==typeof f.preRun&&(f.preRun=[f.preRun]);f.preRun.length;)de(f.preRun.shift());wt(te)}(),le>0||(f.setStatus?(f.setStatus("Running..."),setTimeout((function(){setTimeout((function(){f.setStatus("")}),1),t()}),1)):t(),ee())}function t(){Nn||(Nn=!0,f.calledRun=!0,q||(ce(),ee(),S||wt(ne),d(f),f.onRuntimeInitialized&&f.onRuntimeInitialized(),_i&&function(e=[]){Z(0==le,'cannot call main when async dependencies remain! (listen on Module["onRuntimeInitialized"])'),Z(0==te.length,"cannot call main when preRun functions remain to be called");var t=Ln;e.unshift(p);var r=e.length,n=ti(4*(r+1)),i=n;e.forEach((e=>{s()[i>>2]=dt(e),i+=4})),s()[i>>2]=0;try{var o=t(r,n);return pt(o,!0),o}catch(e){return yt(e)}}(e),function(){if(ee(),!S){if(f.postRun)for("function"==typeof f.postRun&&(f.postRun=[f.postRun]);f.postRun.length;)e=f.postRun.shift(),ie.unshift(e);var e;wt(ie)}}()))}}if(f.dynCall_iiiiijj=ke("dynCall_iiiiijj"),f.dynCall_iiiiiijj=ke("dynCall_iiiiiijj"),f.addRunDependency=pe,f.removeRunDependency=ve,f.FS_createPath=ut.createPath,f.FS_createLazyFile=ut.createLazyFile,f.FS_createDevice=ut.createDevice,f.keepRuntimeAlive=se,f.wasmMemory=x,f.ExitStatus=je,f.FS_createPreloadedFile=ut.createPreloadedFile,f.FS=ut,f.FS_createDataFile=ut.createDataFile,f.FS_unlink=ut.unlink,f.PThread=gt,["writeI53ToI64","writeI53ToI64Clamped","writeI53ToI64Signaling","writeI53ToU64Clamped","writeI53ToU64Signaling","readI53FromI64","readI53FromU64","convertI32PairToI53","convertU32PairToI53","inetPton4","inetNtop4","inetPton6","inetNtop6","readSockaddr","writeSockaddr","getHostByName","getCallstack","emscriptenLog","convertPCtoSourceLocation","readEmAsmArgs","jstoi_q","jstoi_s","listenOnce","autoResumeAudioContext","runtimeKeepalivePop","safeSetTimeout","asmjsMangle","getNativeTypeSize","STACK_SIZE","STACK_ALIGN","POINTER_SIZE","ASSERTIONS","getCFunc","ccall","cwrap","uleb128Encode","sigToWasmTypes","generateFuncType","convertJsFunctionToWasm","getEmptyTableSlot","updateTableMap","getFunctionAddress","addFunction","removeFunction","reallyNegative","unSign","strLen","reSign","formatString","intArrayToString","AsciiToString","registerKeyEventCallback","maybeCStringToJsString","findEventTarget","findCanvasEventTarget","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","battery","registerBatteryEventCallback","setCanvasElementSizeCallingThread","setCanvasElementSizeMainThread","setCanvasElementSize","getCanvasSizeCallingThread","getCanvasSizeMainThread","getCanvasElementSize","checkWasiClock","wasiRightsToMuslOFlags","wasiOFlagsToMuslOFlags","createDyncallWrapper","setImmediateWrapped","clearImmediateWrapped","polyfillSetImmediate","getPromise","makePromise","idsToPromises","makePromiseCallback","setMainLoop","getSocketFromFD","getSocketAddress","FS_mkdirTree","_setNetworkCallback","heapObjectForWebGLType","heapAccessShiftForWebGLHeap","webgl_enable_ANGLE_instanced_arrays","webgl_enable_OES_vertex_array_object","webgl_enable_WEBGL_draw_buffers","webgl_enable_WEBGL_multi_draw","emscriptenWebGLGet","computeUnpackAlignedImageSize","colorChannelsInGlTextureFormat","emscriptenWebGLGetTexPixelData","__glGenObject","emscriptenWebGLGetUniform","webglGetUniformLocation","webglPrepareUniformLocationsBeforeFirstUse","webglGetLeftBracePos","emscriptenWebGLGetVertexAttrib","__glGetActiveAttribOrUniform","writeGLArray","emscripten_webgl_destroy_context_before_on_calling_thread","registerWebGlEventCallback","runAndAbortIfError","SDL_unicode","SDL_ttfContext","SDL_audio","ALLOC_NORMAL","ALLOC_STACK","allocate","writeStringToMemory","writeAsciiToMemory","registerInheritedInstance","unregisterInheritedInstance","getStringOrSymbol","craftEmvalAllocator","emval_get_global","emval_lookupTypes","emval_allocateDestructors","emval_addMethodCaller"].forEach((function(e){"undefined"==typeof globalThis||Object.getOwnPropertyDescriptor(globalThis,e)||Object.defineProperty(globalThis,e,{configurable:!0,get(){var t="`"+e+"` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line",r=e;r.startsWith("_")||(r="$"+e),t+=" (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE='"+r+"')",Ne(e)&&(t+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you"),Ft(t)}}),Oe(e)})),["run","addOnPreRun","addOnInit","addOnPreMain","addOnExit","addOnPostRun","FS_createFolder","FS_createLink","FS_readFile","out","err","callMain","abort","wasmExports","stackAlloc","stackSave","stackRestore","getTempRet0","setTempRet0","GROWABLE_HEAP_I8","GROWABLE_HEAP_U8","GROWABLE_HEAP_I16","GROWABLE_HEAP_U16","GROWABLE_HEAP_I32","GROWABLE_HEAP_U32","GROWABLE_HEAP_F32","GROWABLE_HEAP_F64","writeStackCookie","checkStackCookie","convertI32PairToI53Checked","ptrToString","zeroMemory","exitJS","getHeapMax","growMemory","ENV","setStackLimits","MONTH_DAYS_REGULAR","MONTH_DAYS_LEAP","MONTH_DAYS_REGULAR_CUMULATIVE","MONTH_DAYS_LEAP_CUMULATIVE","isLeapYear","ydayFromDate","arraySum","addDays","ERRNO_CODES","ERRNO_MESSAGES","setErrNo","DNS","Protocols","Sockets","initRandomFill","randomFill","timers","warnOnce","UNWIND_CACHE","readEmAsmArgsArray","getExecutableName","dynCallLegacy","getDynCaller","dynCall","handleException","runtimeKeepalivePush","callUserCallback","maybeExit","asyncLoad","alignMemory","mmapAlloc","handleAllocatorInit","HandleAllocator","wasmTable","freeTableIndexes","functionsInTableMap","setValue","getValue","PATH","PATH_FS","UTF8Decoder","UTF8ArrayToString","UTF8ToString","stringToUTF8Array","stringToUTF8","lengthBytesUTF8","intArrayFromString","stringToAscii","UTF16Decoder","UTF16ToString","stringToUTF16","lengthBytesUTF16","UTF32ToString","stringToUTF32","lengthBytesUTF32","stringToNewUTF8","stringToUTF8OnStack","writeArrayToMemory","JSEvents","specialHTMLTargets","currentFullscreenStrategy","restoreOldWindowedStyle","demangle","demangleAll","jsStackTrace","stackTrace","getEnvStrings","doReadv","doWritev","promiseMap","uncaughtExceptionCount","exceptionLast","exceptionCaught","ExceptionInfo","findMatchingCatch","getExceptionMessageCommon","incrementExceptionRefcount","decrementExceptionRefcount","getExceptionMessage","Browser","wget","SYSCALLS","preloadPlugins","FS_modeStringToFlags","FS_getMode","FS_stdin_getChar_buffer","FS_stdin_getChar","MEMFS","TTY","PIPEFS","SOCKFS","tempFixedLengthArray","miniTempWebGLFloatBuffers","miniTempWebGLIntBuffers","GL","emscripten_webgl_power_preferences","AL","GLUT","EGL","GLEW","IDBStore","SDL","SDL_gfx","allocateUTF8","allocateUTF8OnStack","terminateWorker","killThread","cleanupThread","registerTLSInit","cancelThread","spawnThread","exitOnMainThread","proxyToMainThread","proxiedJSCallArgs","invokeEntryPoint","checkMailbox","InternalError","BindingError","throwInternalError","throwBindingError","registeredTypes","awaitingDependencies","typeDependencies","tupleRegistrations","structRegistrations","sharedRegisterType","whenDependentTypesAreResolved","embind_charCodes","embind_init_charCodes","readLatin1String","getTypeName","heap32VectorToArray","requireRegisteredType","UnboundTypeError","PureVirtualError","GenericWireTypeSize","init_embind","throwUnboundTypeError","ensureOverloadTable","exposePublicSymbol","replacePublicSymbol","extendError","createNamedFunction","embindRepr","registeredInstances","getBasestPointer","getInheritedInstance","getInheritedInstanceCount","getLiveInheritedInstances","registeredPointers","registerType","integerReadValueFromPointer","enumReadValueFromPointer","floatReadValueFromPointer","simpleReadValueFromPointer","readPointer","runDestructors","newFunc","craftInvokerFunction","embind__requireFunction","genericPointerToWireType","constNoSmartPtrRawPointerToWireType","nonConstNoSmartPtrRawPointerToWireType","init_RegisteredPointer","RegisteredPointer","RegisteredPointer_fromWireType","runDestructor","releaseClassHandle","finalizationRegistry","detachFinalizer_deps","detachFinalizer","attachFinalizer","makeClassHandle","init_ClassHandle","ClassHandle","throwInstanceAlreadyDeleted","deletionQueue","flushPendingDeletes","delayFunction","setDelayFunction","RegisteredClass","shallowCopyInternalPointer","downcastPointer","upcastPointer","validateThis","char_0","char_9","makeLegalFunctionName","emval_handles","emval_symbols","init_emval","count_emval_handles","Emval","emval_newers","emval_methodCallers","emval_registeredMethods","IDBFS","NODEFS"].forEach(Oe),ue=function e(){Nn||vi(),Nn||(ue=e)},f.preInit)for("function"==typeof f.preInit&&(f.preInit=[f.preInit]);f.preInit.length>0;)f.preInit.pop()();var _i=!0;return f.noInitialRun&&(_i=!1),vi(),t.ready}})();"object"==typeof exports&&"object"==typeof module?module.exports=createRSRModule:"function"==typeof define&&define.amd&&define([],(()=>createRSRModule));