dynamsoft-barcode-reader-bundle 11.4.3000 → 11.6.2000

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.
Files changed (35) hide show
  1. package/LEGAL.txt +128 -8
  2. package/LICENSE +1 -1
  3. package/README.html +26 -26
  4. package/README.md +26 -26
  5. package/dist/dbr.bundle.d.ts +1867 -1665
  6. package/dist/dbr.bundle.esm.js +2 -2
  7. package/dist/dbr.bundle.js +2 -2
  8. package/dist/dbr.bundle.mjs +2 -2
  9. package/dist/dbr.bundle.worker.js +2 -2
  10. package/dist/dynamsoft-barcode-reader-bundle-ml-simd-pthread-with-pdf.js +1 -0
  11. package/dist/dynamsoft-barcode-reader-bundle-ml-simd-pthread-with-pdf.wasm +0 -0
  12. package/dist/dynamsoft-barcode-reader-bundle-ml-simd-pthread-with-pdf.worker.js +6 -0
  13. package/dist/dynamsoft-barcode-reader-bundle-ml-simd-pthread.js +1 -1
  14. package/dist/dynamsoft-barcode-reader-bundle-ml-simd-pthread.wasm +0 -0
  15. package/dist/dynamsoft-barcode-reader-bundle-ml-simd-with-pdf.js +1 -0
  16. package/dist/dynamsoft-barcode-reader-bundle-ml-simd-with-pdf.wasm +0 -0
  17. package/dist/dynamsoft-barcode-reader-bundle-ml-simd.js +1 -1
  18. package/dist/dynamsoft-barcode-reader-bundle-ml-simd.wasm +0 -0
  19. package/dist/dynamsoft-barcode-reader-bundle.js +1 -1
  20. package/dist/dynamsoft-barcode-reader-bundle.wasm +0 -0
  21. package/dist/models/Code128Decoder.data +0 -0
  22. package/dist/models/Code39ITFDecoder.data +0 -0
  23. package/dist/models/DataMatrixQRCodeDeblur.data +0 -0
  24. package/dist/models/DataMatrixQRCodeLocalization.data +0 -0
  25. package/dist/models/EAN13Decoder.data +0 -0
  26. package/dist/models/OneDDeblur.data +0 -0
  27. package/dist/models/OneDLocalization.data +0 -0
  28. package/dist/models/PDF417Deblur.data +0 -0
  29. package/dist/models/PDF417Localization.data +0 -0
  30. package/dist/templates/DBR-PresetTemplates.json +12 -1
  31. package/dist/ui/barcode-scanner.ui.xml +3 -3
  32. package/dist/ui/dce.mobile-native.ui.xml +222 -0
  33. package/package.json +79 -78
  34. package/samples.url +1 -1
  35. package/dist/parser-resources/MRTD.data +0 -1
@@ -1 +1 @@
1
- function GROWABLE_HEAP_I8(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAP8}function GROWABLE_HEAP_U8(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPU8}function GROWABLE_HEAP_I16(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAP16}function GROWABLE_HEAP_I32(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAP32}function GROWABLE_HEAP_U32(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPU32}function GROWABLE_HEAP_F64(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPF64}var Module=void 0!==Module?Module:{},moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},ENVIRONMENT_IS_WEB=!1,ENVIRONMENT_IS_WORKER=!0,ENVIRONMENT_IS_NODE=!1,ENVIRONMENT_IS_PTHREAD=Module.ENVIRONMENT_IS_PTHREAD||!1,_scriptDir="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;ENVIRONMENT_IS_WORKER&&(_scriptDir=self.location.href);var read_,readAsync,readBinary,scriptDirectory="";function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:"undefined"!=typeof document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1):"",read_=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;t.open("GET",e,!1),t.responseType="arraybuffer";let r=Date.now();return t.onloadstart=()=>{postMessage({type:"event",id:-3,body:{loaded:0,total:pe.lengthComputable?pe.total:0,tag:"starting",resourcesPath:e}})},t.onprogress=t=>{const n=Date.now();r+500<n&&(postMessage({type:"event",id:-3,body:{total:t.lengthComputable?t.total:0,loaded:t.loaded,tag:"in progress",resourcesPath:e}}),r=n)},t.onloadend=()=>{postMessage({type:"event",id:-3,body:{loaded:pe.lengthComputable?pe.total:0,total:pe.lengthComputable?pe.total:0,tag:"completed",resourcesPath:e}})},t.send(null),new Uint8Array(t.response)}),readAsync=(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)});var wasmBinary,out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit),Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var wasmMemory,wasmModule,noExitRuntime=Module.noExitRuntime||!0;"object"!=typeof WebAssembly&&abort("no native wasm support detected");var EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,ABORT=!1;function assert(e,t){e||abort(t)}function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;if(assert(INITIAL_MEMORY>=20971520,"INITIAL_MEMORY should be larger than STACK_SIZE, was "+INITIAL_MEMORY+"! (STACK_SIZE=20971520)"),ENVIRONMENT_IS_PTHREAD)wasmMemory=Module.wasmMemory;else if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else if(!((wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768,shared:!0})).buffer instanceof SharedArrayBuffer))throw err("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"),ENVIRONMENT_IS_NODE&&err("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),Error("bad memory");updateMemoryViews(),INITIAL_MEMORY=wasmMemory.buffer.byteLength;var __ATPRERUN__=[],__ATINIT__=[],__ATPOSTRUN__=[],runtimeInitialized=!1,runtimeKeepaliveCounter=0;function keepRuntimeAlive(){return noExitRuntime||runtimeKeepaliveCounter>0}function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,ENVIRONMENT_IS_PTHREAD||(Module.noFSInit||FS.init.initialized||FS.init(),FS.ignorePermissions=!1,TTY.init(),callRuntimeCallbacks(__ATINIT__))}function postRun(){if(!ENVIRONMENT_IS_PTHREAD){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort&&Module.onAbort(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var wasmBinaryFile,tempDouble,tempI64,dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(e){return e.startsWith(dataURIPrefix)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary||!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER||"function"!=typeof fetch?Promise.resolve().then(()=>getBinarySync(e)):fetch(e,{credentials:"same-origin"}).then(async t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";postMessage({type:"event",id:-3,body:{total:0,loaded:0,tag:"starting",resourcesPath:e}});const r=+t.headers.get("Content-Length"),n=t.body.getReader();let a=0,o=Date.now();const i=[];for(;;){const{done:t,value:s}=await n.read();if(t)break;if(i.push(s),a+=s.length,r){const t=Date.now();o+500<t&&(postMessage({type:"event",id:-3,body:{total:r,loaded:a,tag:"in progress",resourcesPath:e}}),o=t)}}const s=new Uint8Array(a);let l=0;for(const e of i)s.set(e,l),l+=e.length;return postMessage({type:"event",id:-3,body:{total:r,loaded:r,tag:"completed",resourcesPath:e}}),s}).catch(()=>getBinarySync(e))}function instantiateArrayBuffer(e,t,r){return getBinaryPromise(e).then(e=>WebAssembly.instantiate(e,t)).then(e=>e).then(r,e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)})}function instantiateAsync(e,t,r,n){return instantiateArrayBuffer(t,r,n)}function createWasm(){var e={env:wasmImports,wasi_snapshot_preview1:wasmImports};function t(e,t){return wasmExports=e.exports,registerTLSInit(wasmExports._emscripten_tls_init),wasmTable=wasmExports.__indirect_function_table,addOnInit(wasmExports.__wasm_call_ctors),exportWasmSymbols(wasmExports),wasmModule=t,removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return instantiateAsync(wasmBinary,wasmBinaryFile,e,function(e){t(e.instance,e.module)}),{}}isDataURI(wasmBinaryFile="dynamsoft-barcode-reader-bundle-ml-simd-pthread.wasm")||(wasmBinaryFile=locateFile(wasmBinaryFile));var ASM_CONSTS={794704:(e,t,r,n)=>{if(void 0===Module||!Module.MountedFiles)return 1;let a=UTF8ToString(e>>>0);a.startsWith("./")&&(a=a.substring(2));const o=Module.MountedFiles.get(a);if(!o)return 2;const i=t>>>0,s=r>>>0,l=n>>>0;if(i+s>o.byteLength)return 3;try{return GROWABLE_HEAP_U8().set(o.subarray(i,i+s),l),0}catch{return 4}}};function ExitStatus(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var terminateWorker=e=>{e.terminate(),e.onmessage=e=>{}},killThread=e=>{var t=PThread.pthreads[e];delete PThread.pthreads[e],terminateWorker(t),__emscripten_thread_free_data(e),PThread.runningWorkers.splice(PThread.runningWorkers.indexOf(t),1),t.pthread_ptr=0},cancelThread=e=>{PThread.pthreads[e].postMessage({cmd:"cancel"})},cleanupThread=e=>{var t=PThread.pthreads[e];assert(t),PThread.returnWorkerToPool(t)},zeroMemory=(e,t)=>(GROWABLE_HEAP_U8().fill(0,e,e+t),e),spawnThread=e=>{var t=PThread.getNewWorker();if(!t)return 6;PThread.runningWorkers.push(t),PThread.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 t.postMessage(r,e.transferList),0},PATH={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 a=e[n];"."===a?e.splice(n,1):".."===a?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=PATH.isAbs(e),r="/"===e.substr(-1);return(e=PATH.normalizeArray(e.split("/").filter(e=>!!e),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=PATH.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=PATH.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:function(){var e=Array.prototype.slice.call(arguments);return PATH.normalize(e.join("/"))},join2:(e,t)=>PATH.normalize(e+"/"+t)},initRandomFill=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>(e.set(crypto.getRandomValues(new Uint8Array(e.byteLength))),e);abort("initRandomDevice")},randomFill=e=>(randomFill=initRandomFill())(e),PATH_FS={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:FS.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,t=PATH.isAbs(n)}return(t?"/":"")+(e=PATH.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=PATH_FS.resolve(e).substr(1),t=PATH_FS.resolve(t).substr(1);for(var n=r(e.split("/")),a=r(t.split("/")),o=Math.min(n.length,a.length),i=o,s=0;s<o;s++)if(n[s]!==a[s]){i=s;break}var l=[];for(s=i;s<n.length;s++)l.push("..");return(l=l.concat(a.slice(i))).join("/")}},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,UTF8ArrayToString=(e,t,r)=>{for(var n=t+r,a=t;e[a]&&!(a>=n);)++a;if(a-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.slice(t,a));for(var o="";t<a;){var i=e[t++];if(128&i){var s=63&e[t++];if(192!=(224&i)){var l=63&e[t++];if((i=224==(240&i)?(15&i)<<12|s<<6|l:(7&i)<<18|s<<12|l<<6|63&e[t++])<65536)o+=String.fromCharCode(i);else{var _=i-65536;o+=String.fromCharCode(55296|_>>10,56320|1023&_)}}else o+=String.fromCharCode((31&i)<<6|s)}else o+=String.fromCharCode(i)}return o},FS_stdin_getChar_buffer=[],lengthBytesUTF8=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},stringToUTF8Array=(e,t,r,n)=>{if(!(n>0))return 0;for(var a=r,o=r+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i);if(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;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-a};function intArrayFromString(e,t,r){var n=r>0?r:lengthBytesUTF8(e)+1,a=new Array(n),o=stringToUTF8Array(e,a,0,a.length);return t&&(a.length=o),a}var FS_stdin_getChar=()=>{if(!FS_stdin_getChar_buffer.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e)return null;FS_stdin_getChar_buffer=intArrayFromString(e,!0)}return FS_stdin_getChar_buffer.shift()},TTY={ttys:[],init(){},shutdown(){},register(e,t){TTY.ttys[e]={input:[],output:[],ops:t},FS.registerDevice(e,TTY.stream_ops)},stream_ops:{open(e){var t=TTY.ttys[e.node.rdev];if(!t)throw new FS.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,a){if(!e.tty||!e.tty.ops.get_char)throw new FS.ErrnoError(60);for(var o=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new FS.ErrnoError(29)}if(void 0===s&&0===o)throw new FS.ErrnoError(6);if(null==s)break;o++,t[r+i]=s}return o&&(e.node.timestamp=Date.now()),o},write(e,t,r,n,a){if(!e.tty||!e.tty.ops.put_char)throw new FS.ErrnoError(60);try{for(var o=0;o<n;o++)e.tty.ops.put_char(e.tty,t[r+o])}catch(e){throw new FS.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),o}},default_tty_ops:{get_char:e=>FS_stdin_getChar(),put_char(e,t){null===t||10===t?(out(UTF8ArrayToString(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(out(UTF8ArrayToString(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?(err(UTF8ArrayToString(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(err(UTF8ArrayToString(e.output,0)),e.output=[])}}},alignMemory=(e,t)=>Math.ceil(e/t)*t,mmapAlloc=e=>{e=alignMemory(e,65536);var t=_emscripten_builtin_memalign(65536,e);return t?zeroMemory(t,e):0},MEMFS={ops_table:null,mount:e=>MEMFS.createNode(null,"/",16895,0),createNode(e,t,r,n){if(FS.isBlkdev(r)||FS.isFIFO(r))throw new FS.ErrnoError(63);MEMFS.ops_table||(MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}});var a=FS.createNode(e,t,r,n);return FS.isDir(a.mode)?(a.node_ops=MEMFS.ops_table.dir.node,a.stream_ops=MEMFS.ops_table.dir.stream,a.contents={}):FS.isFile(a.mode)?(a.node_ops=MEMFS.ops_table.file.node,a.stream_ops=MEMFS.ops_table.file.stream,a.usedBytes=0,a.contents=null):FS.isLink(a.mode)?(a.node_ops=MEMFS.ops_table.link.node,a.stream_ops=MEMFS.ops_table.link.stream):FS.isChrdev(a.mode)&&(a.node_ops=MEMFS.ops_table.chrdev.node,a.stream_ops=MEMFS.ops_table.chrdev.stream),a.timestamp=Date.now(),e&&(e.contents[t]=a,e.timestamp=a.timestamp),a},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=FS.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,FS.isDir(e.mode)?t.size=4096:FS.isFile(e.mode)?t.size=e.usedBytes:FS.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&&MEMFS.resizeFileStorage(e,t.size)},lookup(e,t){throw FS.genericErrors[44]},mknod:(e,t,r,n)=>MEMFS.createNode(e,t,r,n),rename(e,t,r){if(FS.isDir(e.mode)){var n;try{n=FS.lookupNode(t,r)}catch(e){}if(n)for(var a in n.contents)throw new FS.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=FS.lookupNode(e,t);for(var n in r.contents)throw new FS.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=MEMFS.createNode(e,t,41471,0);return n.link=r,n},readlink(e){if(!FS.isLink(e.mode))throw new FS.ErrnoError(28);return e.link}},stream_ops:{read(e,t,r,n,a){var o=e.node.contents;if(a>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-a,n);if(i>8&&o.subarray)t.set(o.subarray(a,a+i),r);else for(var s=0;s<i;s++)t[r+s]=o[a+s];return i},write(e,t,r,n,a,o){if(t.buffer===GROWABLE_HEAP_I8().buffer&&(o=!1),!n)return 0;var i=e.node;if(i.timestamp=Date.now(),t.subarray&&(!i.contents||i.contents.subarray)){if(o)return i.contents=t.subarray(r,r+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===a)return i.contents=t.slice(r,r+n),i.usedBytes=n,n;if(a+n<=i.usedBytes)return i.contents.set(t.subarray(r,r+n),a),n}if(MEMFS.expandFileStorage(i,a+n),i.contents.subarray&&t.subarray)i.contents.set(t.subarray(r,r+n),a);else for(var s=0;s<n;s++)i.contents[a+s]=t[r+s];return i.usedBytes=Math.max(i.usedBytes,a+n),n},llseek(e,t,r){var n=t;if(1===r?n+=e.position:2===r&&FS.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new FS.ErrnoError(28);return n},allocate(e,t,r){MEMFS.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap(e,t,r,n,a){if(!FS.isFile(e.node.mode))throw new FS.ErrnoError(43);var o,i,s=e.node.contents;if(2&a||s.buffer!==GROWABLE_HEAP_I8().buffer){if((r>0||r+t<s.length)&&(s=s.subarray?s.subarray(r,r+t):Array.prototype.slice.call(s,r,r+t)),i=!0,!(o=mmapAlloc(t)))throw new FS.ErrnoError(48);GROWABLE_HEAP_I8().set(s,o)}else i=!1,o=s.byteOffset;return{ptr:o,allocated:i}},msync:(e,t,r,n,a)=>(MEMFS.stream_ops.write(e,t,0,n,r,!1),0)}},asyncLoad=(e,t,r,n)=>{var a=n?"":getUniqueRunDependency(`al ${e}`);readAsync(e,r=>{assert(r,`Loading data file "${e}" failed (no arrayBuffer).`),t(new Uint8Array(r)),a&&removeRunDependency(a)},t=>{if(!r)throw`Loading data file "${e}" failed.`;r()}),a&&addRunDependency(a)},FS_createDataFile=(e,t,r,n,a,o)=>FS.createDataFile(e,t,r,n,a,o),preloadPlugins=Module.preloadPlugins||[],FS_handledByPreloadPlugin=(e,t,r,n)=>{"undefined"!=typeof Browser&&Browser.init();var a=!1;return preloadPlugins.forEach(o=>{a||o.canHandle(t)&&(o.handle(e,t,r,n),a=!0)}),a},FS_createPreloadedFile=(e,t,r,n,a,o,i,s,l,_)=>{var m=t?PATH_FS.resolve(PATH.join2(e,t)):e,u=getUniqueRunDependency(`cp ${m}`);function c(r){function c(r){_&&_(),s||FS_createDataFile(e,t,r,n,a,l),o&&o(),removeRunDependency(u)}FS_handledByPreloadPlugin(r,m,c,()=>{i&&i(),removeRunDependency(u)})||c(r)}addRunDependency(u),"string"==typeof r?asyncLoad(r,e=>c(e),i):c(r)},FS_modeStringToFlags=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},FS_getMode=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},FS={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=PATH_FS.resolve(e)))return{path:"",node:null};if((t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count>8)throw new FS.ErrnoError(32);for(var r=e.split("/").filter(e=>!!e),n=FS.root,a="/",o=0;o<r.length;o++){var i=o===r.length-1;if(i&&t.parent)break;if(n=FS.lookupNode(n,r[o]),a=PATH.join2(a,r[o]),FS.isMountpoint(n)&&(!i||i&&t.follow_mount)&&(n=n.mounted.root),!i||t.follow)for(var s=0;FS.isLink(n.mode);){var l=FS.readlink(a);if(a=PATH_FS.resolve(PATH.dirname(a),l),n=FS.lookupPath(a,{recurse_count:t.recurse_count+1}).node,s++>40)throw new FS.ErrnoError(32)}}return{path:a,node:n}},getPath(e){for(var t;;){if(FS.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)%FS.nameTable.length},hashAddNode(e){var t=FS.hashName(e.parent.id,e.name);e.name_next=FS.nameTable[t],FS.nameTable[t]=e},hashRemoveNode(e){var t=FS.hashName(e.parent.id,e.name);if(FS.nameTable[t]===e)FS.nameTable[t]=e.name_next;else for(var r=FS.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode(e,t){var r=FS.mayLookup(e);if(r)throw new FS.ErrnoError(r,e);for(var n=FS.hashName(e.id,t),a=FS.nameTable[n];a;a=a.name_next){var o=a.name;if(a.parent.id===e.id&&o===t)return a}return FS.lookup(e,t)},createNode(e,t,r,n){var a=new FS.FSNode(e,t,r,n);return FS.hashAddNode(a),a},destroyNode(e){FS.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&~e),flagsToPermissionString(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>FS.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2,mayLookup(e){var t=FS.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate(e,t){try{FS.lookupNode(e,t);return 20}catch(e){}return FS.nodePermissions(e,"wx")},mayDelete(e,t,r){var n;try{n=FS.lookupNode(e,t)}catch(e){return e.errno}var a=FS.nodePermissions(e,"wx");if(a)return a;if(r){if(!FS.isDir(n.mode))return 54;if(FS.isRoot(n)||FS.getPath(n)===FS.cwd())return 10}else if(FS.isDir(n.mode))return 31;return 0},mayOpen:(e,t)=>e?FS.isLink(e.mode)?32:FS.isDir(e.mode)&&("r"!==FS.flagsToPermissionString(t)||512&t)?31:FS.nodePermissions(e,FS.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=FS.MAX_OPEN_FDS;e++)if(!FS.streams[e])return e;throw new FS.ErrnoError(33)},getStreamChecked(e){var t=FS.getStream(e);if(!t)throw new FS.ErrnoError(8);return t},getStream:e=>FS.streams[e],createStream:(e,t=-1)=>(FS.FSStream||(FS.FSStream=function(){this.shared={}},FS.FSStream.prototype={},Object.defineProperties(FS.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return!!(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 FS.FSStream,e),-1==t&&(t=FS.nextfd()),e.fd=t,FS.streams[t]=e,e),closeStream(e){FS.streams[e]=null},chrdev_stream_ops:{open(e){var t=FS.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new FS.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice(e,t){FS.devices[e]={stream_ops:t}},getDevice:e=>FS.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),FS.syncFSRequests++,FS.syncFSRequests>1&&err(`warning: ${FS.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var r=FS.getMounts(FS.root.mount),n=0;function a(e){return FS.syncFSRequests--,t(e)}function o(e){if(e)return o.errored?void 0:(o.errored=!0,a(e));++n>=r.length&&a(null)}r.forEach(t=>{if(!t.type.syncfs)return o(null);t.type.syncfs(t,e,o)})},mount(e,t,r){var n,a="/"===r,o=!r;if(a&&FS.root)throw new FS.ErrnoError(10);if(!a&&!o){var i=FS.lookupPath(r,{follow_mount:!1});if(r=i.path,n=i.node,FS.isMountpoint(n))throw new FS.ErrnoError(10);if(!FS.isDir(n.mode))throw new FS.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},l=e.mount(s);return l.mount=s,s.root=l,a?FS.root=l:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),l},unmount(e){var t=FS.lookupPath(e,{follow_mount:!1});if(!FS.isMountpoint(t.node))throw new FS.ErrnoError(28);var r=t.node,n=r.mounted,a=FS.getMounts(n);Object.keys(FS.nameTable).forEach(e=>{for(var t=FS.nameTable[e];t;){var r=t.name_next;a.includes(t.mount)&&FS.destroyNode(t),t=r}}),r.mounted=null;var o=r.mount.mounts.indexOf(n);r.mount.mounts.splice(o,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod(e,t,r){var n=FS.lookupPath(e,{parent:!0}).node,a=PATH.basename(e);if(!a||"."===a||".."===a)throw new FS.ErrnoError(28);var o=FS.mayCreate(n,a);if(o)throw new FS.ErrnoError(o);if(!n.node_ops.mknod)throw new FS.ErrnoError(63);return n.node_ops.mknod(n,a,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,FS.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,FS.mknod(e,t,0)),mkdirTree(e,t){for(var r=e.split("/"),n="",a=0;a<r.length;++a)if(r[a]){n+="/"+r[a];try{FS.mkdir(n,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,t,r)=>(void 0===r&&(r=t,t=438),t|=8192,FS.mknod(e,t,r)),symlink(e,t){if(!PATH_FS.resolve(e))throw new FS.ErrnoError(44);var r=FS.lookupPath(t,{parent:!0}).node;if(!r)throw new FS.ErrnoError(44);var n=PATH.basename(t),a=FS.mayCreate(r,n);if(a)throw new FS.ErrnoError(a);if(!r.node_ops.symlink)throw new FS.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename(e,t){var r,n,a=PATH.dirname(e),o=PATH.dirname(t),i=PATH.basename(e),s=PATH.basename(t);if(r=FS.lookupPath(e,{parent:!0}).node,n=FS.lookupPath(t,{parent:!0}).node,!r||!n)throw new FS.ErrnoError(44);if(r.mount!==n.mount)throw new FS.ErrnoError(75);var l,_=FS.lookupNode(r,i),m=PATH_FS.relative(e,o);if("."!==m.charAt(0))throw new FS.ErrnoError(28);if("."!==(m=PATH_FS.relative(t,a)).charAt(0))throw new FS.ErrnoError(55);try{l=FS.lookupNode(n,s)}catch(e){}if(_!==l){var u=FS.isDir(_.mode),c=FS.mayDelete(r,i,u);if(c)throw new FS.ErrnoError(c);if(c=l?FS.mayDelete(n,s,u):FS.mayCreate(n,s))throw new FS.ErrnoError(c);if(!r.node_ops.rename)throw new FS.ErrnoError(63);if(FS.isMountpoint(_)||l&&FS.isMountpoint(l))throw new FS.ErrnoError(10);if(n!==r&&(c=FS.nodePermissions(r,"w")))throw new FS.ErrnoError(c);FS.hashRemoveNode(_);try{r.node_ops.rename(_,n,s)}catch(e){throw e}finally{FS.hashAddNode(_)}}},rmdir(e){var t=FS.lookupPath(e,{parent:!0}).node,r=PATH.basename(e),n=FS.lookupNode(t,r),a=FS.mayDelete(t,r,!0);if(a)throw new FS.ErrnoError(a);if(!t.node_ops.rmdir)throw new FS.ErrnoError(63);if(FS.isMountpoint(n))throw new FS.ErrnoError(10);t.node_ops.rmdir(t,r),FS.destroyNode(n)},readdir(e){var t=FS.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new FS.ErrnoError(54);return t.node_ops.readdir(t)},unlink(e){var t=FS.lookupPath(e,{parent:!0}).node;if(!t)throw new FS.ErrnoError(44);var r=PATH.basename(e),n=FS.lookupNode(t,r),a=FS.mayDelete(t,r,!1);if(a)throw new FS.ErrnoError(a);if(!t.node_ops.unlink)throw new FS.ErrnoError(63);if(FS.isMountpoint(n))throw new FS.ErrnoError(10);t.node_ops.unlink(t,r),FS.destroyNode(n)},readlink(e){var t=FS.lookupPath(e).node;if(!t)throw new FS.ErrnoError(44);if(!t.node_ops.readlink)throw new FS.ErrnoError(28);return PATH_FS.resolve(FS.getPath(t.parent),t.node_ops.readlink(t))},stat(e,t){var r=FS.lookupPath(e,{follow:!t}).node;if(!r)throw new FS.ErrnoError(44);if(!r.node_ops.getattr)throw new FS.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>FS.stat(e,!0),chmod(e,t,r){var n;"string"==typeof e?n=FS.lookupPath(e,{follow:!r}).node:n=e;if(!n.node_ops.setattr)throw new FS.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod(e,t){FS.chmod(e,t,!0)},fchmod(e,t){var r=FS.getStreamChecked(e);FS.chmod(r.node,t)},chown(e,t,r,n){var a;"string"==typeof e?a=FS.lookupPath(e,{follow:!n}).node:a=e;if(!a.node_ops.setattr)throw new FS.ErrnoError(63);a.node_ops.setattr(a,{timestamp:Date.now()})},lchown(e,t,r){FS.chown(e,t,r,!0)},fchown(e,t,r){var n=FS.getStreamChecked(e);FS.chown(n.node,t,r)},truncate(e,t){if(t<0)throw new FS.ErrnoError(28);var r;"string"==typeof e?r=FS.lookupPath(e,{follow:!0}).node:r=e;if(!r.node_ops.setattr)throw new FS.ErrnoError(63);if(FS.isDir(r.mode))throw new FS.ErrnoError(31);if(!FS.isFile(r.mode))throw new FS.ErrnoError(28);var n=FS.nodePermissions(r,"w");if(n)throw new FS.ErrnoError(n);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate(e,t){var r=FS.getStreamChecked(e);if(!(2097155&r.flags))throw new FS.ErrnoError(28);FS.truncate(r.node,t)},utime(e,t,r){var n=FS.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(t,r)})},open(e,t,r){if(""===e)throw new FS.ErrnoError(44);var n;if(r=void 0===r?438:r,r=64&(t="string"==typeof t?FS_modeStringToFlags(t):t)?4095&r|32768:0,"object"==typeof e)n=e;else{e=PATH.normalize(e);try{n=FS.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var a=!1;if(64&t)if(n){if(128&t)throw new FS.ErrnoError(20)}else n=FS.mknod(e,r,0),a=!0;if(!n)throw new FS.ErrnoError(44);if(FS.isChrdev(n.mode)&&(t&=-513),65536&t&&!FS.isDir(n.mode))throw new FS.ErrnoError(54);if(!a){var o=FS.mayOpen(n,t);if(o)throw new FS.ErrnoError(o)}512&t&&!a&&FS.truncate(n,0),t&=-131713;var i=FS.createStream({node:n,path:FS.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return i.stream_ops.open&&i.stream_ops.open(i),!Module.logReadFiles||1&t||(FS.readFiles||(FS.readFiles={}),e in FS.readFiles||(FS.readFiles[e]=1)),i},close(e){if(FS.isClosed(e))throw new FS.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{FS.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,t,r){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new FS.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new FS.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read(e,t,r,n,a){if(n<0||a<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(1==(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.read)throw new FS.ErrnoError(28);var o=void 0!==a;if(o){if(!e.seekable)throw new FS.ErrnoError(70)}else a=e.position;var i=e.stream_ops.read(e,t,r,n,a);return o||(e.position+=i),i},write(e,t,r,n,a,o){if(n<0||a<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.write)throw new FS.ErrnoError(28);e.seekable&&1024&e.flags&&FS.llseek(e,0,2);var i=void 0!==a;if(i){if(!e.seekable)throw new FS.ErrnoError(70)}else a=e.position;var s=e.stream_ops.write(e,t,r,n,a,o);return i||(e.position+=s),s},allocate(e,t,r){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(t<0||r<=0)throw new FS.ErrnoError(28);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(!FS.isFile(e.node.mode)&&!FS.isDir(e.node.mode))throw new FS.ErrnoError(43);if(!e.stream_ops.allocate)throw new FS.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap(e,t,r,n,a){if(2&n&&!(2&a)&&2!=(2097155&e.flags))throw new FS.ErrnoError(2);if(1==(2097155&e.flags))throw new FS.ErrnoError(2);if(!e.stream_ops.mmap)throw new FS.ErrnoError(43);return e.stream_ops.mmap(e,t,r,n,a)},msync:(e,t,r,n,a)=>e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,a):0,munmap:e=>0,ioctl(e,t,r){if(!e.stream_ops.ioctl)throw new FS.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=FS.open(e,t.flags),a=FS.stat(e).size,o=new Uint8Array(a);return FS.read(n,o,0,a,0),"utf8"===t.encoding?r=UTF8ArrayToString(o,0):"binary"===t.encoding&&(r=o),FS.close(n),r},writeFile(e,t,r={}){r.flags=r.flags||577;var n=FS.open(e,r.flags,r.mode);if("string"==typeof t){var a=new Uint8Array(lengthBytesUTF8(t)+1),o=stringToUTF8Array(t,a,0,a.length);FS.write(n,a,0,o,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");FS.write(n,t,0,t.byteLength,void 0,r.canOwn)}FS.close(n)},cwd:()=>FS.currentPath,chdir(e){var t=FS.lookupPath(e,{follow:!0});if(null===t.node)throw new FS.ErrnoError(44);if(!FS.isDir(t.node.mode))throw new FS.ErrnoError(54);var r=FS.nodePermissions(t.node,"x");if(r)throw new FS.ErrnoError(r);FS.currentPath=t.path},createDefaultDirectories(){FS.mkdir("/tmp"),FS.mkdir("/home"),FS.mkdir("/home/web_user")},createDefaultDevices(){FS.mkdir("/dev"),FS.registerDevice(FS.makedev(1,3),{read:()=>0,write:(e,t,r,n,a)=>n}),FS.mkdev("/dev/null",FS.makedev(1,3)),TTY.register(FS.makedev(5,0),TTY.default_tty_ops),TTY.register(FS.makedev(6,0),TTY.default_tty1_ops),FS.mkdev("/dev/tty",FS.makedev(5,0)),FS.mkdev("/dev/tty1",FS.makedev(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=randomFill(e).byteLength),e[--t]);FS.createDevice("/dev","random",r),FS.createDevice("/dev","urandom",r),FS.mkdir("/dev/shm"),FS.mkdir("/dev/shm/tmp")},createSpecialDirectories(){FS.mkdir("/proc");var e=FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd"),FS.mount({mount(){var t=FS.createNode(e,"fd",16895,73);return t.node_ops={lookup(e,t){var r=+t,n=FS.getStreamChecked(r),a={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return a.parent=a,a}},t}},{},"/proc/self/fd")},createStandardStreams(){Module.stdin?FS.createDevice("/dev","stdin",Module.stdin):FS.symlink("/dev/tty","/dev/stdin"),Module.stdout?FS.createDevice("/dev","stdout",null,Module.stdout):FS.symlink("/dev/tty","/dev/stdout"),Module.stderr?FS.createDevice("/dev","stderr",null,Module.stderr):FS.symlink("/dev/tty1","/dev/stderr");FS.open("/dev/stdin",0),FS.open("/dev/stdout",1),FS.open("/dev/stderr",1)},ensureErrnoError(){FS.ErrnoError||(FS.ErrnoError=function(e,t){this.name="ErrnoError",this.node=t,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},FS.ErrnoError.prototype=new Error,FS.ErrnoError.prototype.constructor=FS.ErrnoError,[44].forEach(e=>{FS.genericErrors[e]=new FS.ErrnoError(e),FS.genericErrors[e].stack="<generic error, no stack>"}))},staticInit(){FS.ensureErrnoError(),FS.nameTable=new Array(4096),FS.mount(MEMFS,{},"/"),FS.createDefaultDirectories(),FS.createDefaultDevices(),FS.createSpecialDirectories(),FS.filesystems={MEMFS:MEMFS}},init(e,t,r){FS.init.initialized=!0,FS.ensureErrnoError(),Module.stdin=e||Module.stdin,Module.stdout=t||Module.stdout,Module.stderr=r||Module.stderr,FS.createStandardStreams()},quit(){FS.init.initialized=!1;for(var e=0;e<FS.streams.length;e++){var t=FS.streams[e];t&&FS.close(t)}},findObject(e,t){var r=FS.analyzePath(e,t);return r.exists?r.object:null},analyzePath(e,t){try{e=(n=FS.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=FS.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=PATH.basename(e),n=FS.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:FS.getPath(e);for(var a=t.split("/").reverse();a.length;){var o=a.pop();if(o){var i=PATH.join2(e,o);try{FS.mkdir(i)}catch(e){}e=i}}return i},createFile(e,t,r,n,a){var o=PATH.join2("string"==typeof e?e:FS.getPath(e),t),i=FS_getMode(n,a);return FS.create(o,i)},createDataFile(e,t,r,n,a,o){var i=t;e&&(e="string"==typeof e?e:FS.getPath(e),i=t?PATH.join2(e,t):e);var s=FS_getMode(n,a),l=FS.create(i,s);if(r){if("string"==typeof r){for(var _=new Array(r.length),m=0,u=r.length;m<u;++m)_[m]=r.charCodeAt(m);r=_}FS.chmod(l,146|s);var c=FS.open(l,577);FS.write(c,r,0,r.length,0,o),FS.close(c),FS.chmod(l,s)}return l},createDevice(e,t,r,n){var a=PATH.join2("string"==typeof e?e:FS.getPath(e),t),o=FS_getMode(!!r,!!n);FS.createDevice.major||(FS.createDevice.major=64);var i=FS.makedev(FS.createDevice.major++,0);return FS.registerDevice(i,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,t,n,a,o){for(var i=0,s=0;s<a;s++){var l;try{l=r()}catch(e){throw new FS.ErrnoError(29)}if(void 0===l&&0===i)throw new FS.ErrnoError(6);if(null==l)break;i++,t[n+s]=l}return i&&(e.node.timestamp=Date.now()),i},write(e,t,r,a,o){for(var i=0;i<a;i++)try{n(t[r+i])}catch(e){throw new FS.ErrnoError(29)}return a&&(e.node.timestamp=Date.now()),i}}),FS.mkdev(a,o,i)},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(!read_)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=intArrayFromString(read_(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new FS.ErrnoError(29)}},createLazyFile(e,t,r,n,a){function o(){this.lengthKnown=!1,this.chunks=[]}if(o.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]}},o.prototype.setDataGetter=function(e){this.getter=e},o.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),a=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,o=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,i=1048576;a||(i=n);var s=this;s.setDataGetter(e=>{var t=e*i,a=(e+1)*i-1;if(a=Math.min(a,n-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>n-1)throw new Error("only "+n+" bytes available! programmer error!");var a=new XMLHttpRequest;if(a.open("GET",r,!1),n!==i&&a.setRequestHeader("Range","bytes="+e+"-"+t),a.responseType="arraybuffer",a.overrideMimeType&&a.overrideMimeType("text/plain; charset=x-user-defined"),a.send(null),!(a.status>=200&&a.status<300||304===a.status))throw new Error("Couldn't load "+r+". Status: "+a.status);return void 0!==a.response?new Uint8Array(a.response||[]):intArrayFromString(a.responseText||"",!0)})(t,a)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]}),!o&&n||(i=n=1,n=this.getter(0).length,i=n,out("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new o;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:i}}else s={isDevice:!1,url:r};var l=FS.createFile(e,t,s,n,a);s.contents?l.contents=s.contents:s.url&&(l.contents=null,l.url=s.url),Object.defineProperties(l,{usedBytes:{get:function(){return this.contents.length}}});var _={};function m(e,t,r,n,a){var o=e.node.contents;if(a>=o.length)return 0;var i=Math.min(o.length-a,n);if(o.slice)for(var s=0;s<i;s++)t[r+s]=o[a+s];else for(s=0;s<i;s++)t[r+s]=o.get(a+s);return i}return Object.keys(l.stream_ops).forEach(e=>{var t=l.stream_ops[e];_[e]=function(){return FS.forceLoadFile(l),t.apply(null,arguments)}}),_.read=(e,t,r,n,a)=>(FS.forceLoadFile(l),m(e,t,r,n,a)),_.mmap=(e,t,r,n,a)=>{FS.forceLoadFile(l);var o=mmapAlloc(t);if(!o)throw new FS.ErrnoError(48);return m(e,GROWABLE_HEAP_I8(),o,t,r),{ptr:o,allocated:!0}},l.stream_ops=_,l}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(GROWABLE_HEAP_U8(),e,t):"",SYSCALLS={DEFAULT_POLLMASK:5,calculateAt(e,t,r){if(PATH.isAbs(t))return t;var n;-100===e?n=FS.cwd():n=SYSCALLS.getStreamFromFD(e).path;if(0==t.length){if(!r)throw new FS.ErrnoError(44);return n}return PATH.join2(n,t)},doStat(e,t,r){try{var n=e(t)}catch(e){if(e&&e.node&&PATH.normalize(t)!==PATH.normalize(FS.getPath(e.node)))return-54;throw e}GROWABLE_HEAP_I32()[r>>2]=n.dev,GROWABLE_HEAP_I32()[r+4>>2]=n.mode,GROWABLE_HEAP_U32()[r+8>>2]=n.nlink,GROWABLE_HEAP_I32()[r+12>>2]=n.uid,GROWABLE_HEAP_I32()[r+16>>2]=n.gid,GROWABLE_HEAP_I32()[r+20>>2]=n.rdev,tempI64=[n.size>>>0,(tempDouble=n.size,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+24>>2]=tempI64[0],GROWABLE_HEAP_I32()[r+28>>2]=tempI64[1],GROWABLE_HEAP_I32()[r+32>>2]=4096,GROWABLE_HEAP_I32()[r+36>>2]=n.blocks;var a=n.atime.getTime(),o=n.mtime.getTime(),i=n.ctime.getTime();return tempI64=[Math.floor(a/1e3)>>>0,(tempDouble=Math.floor(a/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+40>>2]=tempI64[0],GROWABLE_HEAP_I32()[r+44>>2]=tempI64[1],GROWABLE_HEAP_U32()[r+48>>2]=a%1e3*1e3,tempI64=[Math.floor(o/1e3)>>>0,(tempDouble=Math.floor(o/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+56>>2]=tempI64[0],GROWABLE_HEAP_I32()[r+60>>2]=tempI64[1],GROWABLE_HEAP_U32()[r+64>>2]=o%1e3*1e3,tempI64=[Math.floor(i/1e3)>>>0,(tempDouble=Math.floor(i/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+72>>2]=tempI64[0],GROWABLE_HEAP_I32()[r+76>>2]=tempI64[1],GROWABLE_HEAP_U32()[r+80>>2]=i%1e3*1e3,tempI64=[n.ino>>>0,(tempDouble=n.ino,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+88>>2]=tempI64[0],GROWABLE_HEAP_I32()[r+92>>2]=tempI64[1],0},doMsync(e,t,r,n,a){if(!FS.isFile(t.node.mode))throw new FS.ErrnoError(43);if(2&n)return 0;var o=GROWABLE_HEAP_U8().slice(e,e+r);FS.msync(t,o,a,r,n)},varargs:void 0,get(){var e=GROWABLE_HEAP_I32()[+SYSCALLS.varargs>>2];return SYSCALLS.varargs+=4,e},getp:()=>SYSCALLS.get(),getStr:e=>UTF8ToString(e),getStreamFromFD:e=>FS.getStreamChecked(e)};function _proc_exit(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(0,1,e);EXITSTATUS=e,keepRuntimeAlive()||(PThread.terminateAllThreads(),Module.onExit&&Module.onExit(e),ABORT=!0),quit_(e,new ExitStatus(e))}var exitJS=(e,t)=>{if(EXITSTATUS=e,ENVIRONMENT_IS_PTHREAD)throw exitOnMainThread(e),"unwind";_proc_exit(e)},_exit=exitJS,handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},PThread={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init(){ENVIRONMENT_IS_PTHREAD?PThread.initWorker():PThread.initMainThread()},initMainThread(){for(var e=Module.pthreadPoolSize||5;e--;)PThread.allocateUnusedWorker();addOnPreRun(()=>{addRunDependency("loading-workers"),PThread.loadWasmModuleToAllWorkers(()=>removeRunDependency("loading-workers"))})},initWorker(){PThread.receiveObjectTransfer=PThread.receiveObjectTransfer,PThread.threadInitTLS=PThread.threadInitTLS,PThread.setExitStatus=PThread.setExitStatus,noExitRuntime=!1},setExitStatus:e=>{EXITSTATUS=e},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var e of PThread.runningWorkers)terminateWorker(e);for(var e of PThread.unusedWorkers)terminateWorker(e);PThread.unusedWorkers=[],PThread.runningWorkers=[],PThread.pthreads=[]},returnWorkerToPool:e=>{var t=e.pthread_ptr;delete PThread.pthreads[t],PThread.unusedWorkers.push(e),PThread.runningWorkers.splice(PThread.runningWorkers.indexOf(e),1),e.pthread_ptr=0,__emscripten_thread_free_data(t)},receiveObjectTransfer(e){},threadInitTLS(){PThread.tlsInitFunctions.forEach(e=>e())},loadWasmModuleToWorker:e=>new Promise(t=>{e.onmessage=r=>{var n=r.data,a=n.cmd;if(n.targetThread&&n.targetThread!=_pthread_self()){var o=PThread.pthreads[n.targetThread];o?o.postMessage(n,n.transferList):err(`Internal error! Worker sent a message "${a}" to target pthread ${n.targetThread}, but that thread no longer exists!`)}else"checkMailbox"===a?checkMailbox():"spawnThread"===a?spawnThread(n):"cleanupThread"===a?cleanupThread(n.thread):"killThread"===a?killThread(n.thread):"cancelThread"===a?cancelThread(n.thread):"loaded"===a?(e.loaded=!0,t(e)):"alert"===a?alert(`Thread ${n.threadId}: ${n.text}`):"setimmediate"===n.target?e.postMessage(n):"callHandler"===a?Module[n.handler](...n.args):a&&err(`worker sent an unknown command ${a}`)},e.onerror=e=>{throw err(`worker sent an error! ${e.filename}:${e.lineno}: ${e.message}`),e};var r=[];for(var n of["onExit","onAbort","print","printErr"])Module.hasOwnProperty(n)&&r.push(n);e.postMessage({cmd:"load",handlers:r,urlOrBlob:Module.pthreadJsCache.get("pthreadjs")||Module.mainScriptUrlOrBlob||_scriptDir,wasmMemory:wasmMemory,wasmModule:wasmModule})}),loadWasmModuleToAllWorkers(e){if(ENVIRONMENT_IS_PTHREAD)return e();Promise.all(PThread.unusedWorkers.map(PThread.loadWasmModuleToWorker)).then(e)},allocateUnusedWorker(){var e,t=Module.pthreadJsCache.get("pthreadWorkerjs");let r=URL.createObjectURL(t);e=new Worker(r),PThread.unusedWorkers.push(e)},getNewWorker:()=>(0==PThread.unusedWorkers.length&&(PThread.allocateUnusedWorker(),PThread.loadWasmModuleToWorker(PThread.unusedWorkers[0])),PThread.unusedWorkers.pop())};Module.PThread=PThread;var callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},establishStackSpace=()=>{var e=_pthread_self(),t=GROWABLE_HEAP_U32()[e+52>>2],r=GROWABLE_HEAP_U32()[e+56>>2];_emscripten_stack_set_limits(t,t-r),stackRestore(t)};function exitOnMainThread(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(1,0,e);_exit(e)}Module.establishStackSpace=establishStackSpace;var wasmTable,asmjsMangle=e=>("__main_argc_argv"==e&&(e="main"),0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore","getTempRet0","setTempRet0"].includes(e)?e:"_"+e),exportWasmSymbols=e=>{for(var t in e){var r=asmjsMangle(t);this[r]=Module[r]=e[t]}},getWasmTableEntry=e=>wasmTable.get(e),invokeEntryPoint=(e,t)=>{!function(e){keepRuntimeAlive()?PThread.setExitStatus(e):__emscripten_thread_exit(e)}(getWasmTableEntry(e)(t))};Module.invokeEntryPoint=invokeEntryPoint;var registerTLSInit=e=>{PThread.tlsInitFunctions.push(e)};function _CreateDirectoryFetcher(){abort("missing function: CreateDirectoryFetcher")}function _DDN_ConvertElement(){abort("missing function: DDN_ConvertElement")}function _DDN_CreateDDNResult(){abort("missing function: DDN_CreateDDNResult")}function _DDN_CreateDDNResultItem(){abort("missing function: DDN_CreateDDNResultItem")}function _DDN_CreateIntermediateResultUnits(){abort("missing function: DDN_CreateIntermediateResultUnits")}function _DDN_CreateParameters(){abort("missing function: DDN_CreateParameters")}function _DDN_CreateTargetRoiDefConditionFilter(){abort("missing function: DDN_CreateTargetRoiDefConditionFilter")}function _DDN_CreateTaskAlgEntity(){abort("missing function: DDN_CreateTaskAlgEntity")}function _DDN_HasSection(){abort("missing function: DDN_HasSection")}function _DDN_ReadTaskSetting(){abort("missing function: DDN_ReadTaskSetting")}function _DLR_ConvertElement(){abort("missing function: DLR_ConvertElement")}function _DLR_CreateBufferedCharacterItemSet(){abort("missing function: DLR_CreateBufferedCharacterItemSet")}function _DLR_CreateIntermediateResultUnits(){abort("missing function: DLR_CreateIntermediateResultUnits")}function _DLR_CreateParameters(){abort("missing function: DLR_CreateParameters")}function _DLR_CreateRecognizedTextLinesResult(){abort("missing function: DLR_CreateRecognizedTextLinesResult")}function _DLR_CreateTargetRoiDefConditionFilter(){abort("missing function: DLR_CreateTargetRoiDefConditionFilter")}function _DLR_CreateTaskAlgEntity(){abort("missing function: DLR_CreateTaskAlgEntity")}function _DLR_CreateTextLineResultItem(){abort("missing function: DLR_CreateTextLineResultItem")}function _DLR_ReadTaskSetting(){abort("missing function: DLR_ReadTaskSetting")}function _DMImage_GetDIB(){abort("missing function: DMImage_GetDIB")}function _DMImage_GetOrientation(){abort("missing function: DMImage_GetOrientation")}function _DeleteDirectoryFetcher(){abort("missing function: DeleteDirectoryFetcher")}function __ZN19LabelRecognizerWasm10getVersionEv(){abort("missing function: _ZN19LabelRecognizerWasm10getVersionEv")}function __ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv")}function __ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv")}function __ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi")}function __ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb")}function __ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb")}function __ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb")}function __ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii")}function __ZN19LabelRecognizerWasm12DlrWasmClassC1Ev(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClassC1Ev")}function __ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE(){abort("missing function: _ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE")}function __ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE(){abort("missing function: _ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE")}function __ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE(){abort("missing function: _ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE")}function __ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE(){abort("missing function: _ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE")}function __ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE(){abort("missing function: _ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE")}function __ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE(){abort("missing function: _ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE")}function __ZN22DocumentNormalizerWasm10getVersionEv(){abort("missing function: _ZN22DocumentNormalizerWasm10getVersionEv")}function __ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv")}function __ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi")}function __ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii")}function __ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib")}function __ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib")}function __ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb")}function __ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb")}function __ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE")}function __ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii")}function __ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev")}function __ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE(){abort("missing function: _ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE")}function __ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE(){abort("missing function: _ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE")}function __ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE(){abort("missing function: _ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE")}function __ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE(){abort("missing function: _ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE")}function __ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE(){abort("missing function: _ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE")}function __ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv(){abort("missing function: _ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv")}function __ZN9dynamsoft7utility14CUtilityModule10GetVersionEv(){abort("missing function: _ZN9dynamsoft7utility14CUtilityModule10GetVersionEv")}_CreateDirectoryFetcher.stub=!0,_DDN_ConvertElement.stub=!0,_DDN_CreateDDNResult.stub=!0,_DDN_CreateDDNResultItem.stub=!0,_DDN_CreateIntermediateResultUnits.stub=!0,_DDN_CreateParameters.stub=!0,_DDN_CreateTargetRoiDefConditionFilter.stub=!0,_DDN_CreateTaskAlgEntity.stub=!0,_DDN_HasSection.stub=!0,_DDN_ReadTaskSetting.stub=!0,_DLR_ConvertElement.stub=!0,_DLR_CreateBufferedCharacterItemSet.stub=!0,_DLR_CreateIntermediateResultUnits.stub=!0,_DLR_CreateParameters.stub=!0,_DLR_CreateRecognizedTextLinesResult.stub=!0,_DLR_CreateTargetRoiDefConditionFilter.stub=!0,_DLR_CreateTaskAlgEntity.stub=!0,_DLR_CreateTextLineResultItem.stub=!0,_DLR_ReadTaskSetting.stub=!0,_DMImage_GetDIB.stub=!0,_DMImage_GetOrientation.stub=!0,_DeleteDirectoryFetcher.stub=!0,__ZN19LabelRecognizerWasm10getVersionEv.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClassC1Ev.stub=!0,__ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE.stub=!0,__ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE.stub=!0,__ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE.stub=!0,__ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE.stub=!0,__ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE.stub=!0,__ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE.stub=!0,__ZN22DocumentNormalizerWasm10getVersionEv.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev.stub=!0,__ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE.stub=!0,__ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE.stub=!0,__ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE.stub=!0,__ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE.stub=!0,__ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE.stub=!0,__ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv.stub=!0,__ZN9dynamsoft7utility14CUtilityModule10GetVersionEv.stub=!0;var ___assert_fail=(e,t,r,n)=>{abort(`Assertion failed: ${UTF8ToString(e)}, at: `+[t?UTF8ToString(t):"unknown filename",r,n?UTF8ToString(n):"unknown function"])},exceptionCaught=[],uncaughtExceptionCount=0,___cxa_begin_catch=e=>{var t=new ExceptionInfo(e);return t.get_caught()||(t.set_caught(!0),uncaughtExceptionCount--),t.set_rethrown(!1),exceptionCaught.push(t),___cxa_increment_exception_refcount(t.excPtr),t.get_exception_ptr()},exceptionLast=0,___cxa_end_catch=()=>{_setThrew(0,0);var e=exceptionCaught.pop();___cxa_decrement_exception_refcount(e.excPtr),exceptionLast=0};function ExceptionInfo(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){GROWABLE_HEAP_U32()[this.ptr+4>>2]=e},this.get_type=function(){return GROWABLE_HEAP_U32()[this.ptr+4>>2]},this.set_destructor=function(e){GROWABLE_HEAP_U32()[this.ptr+8>>2]=e},this.get_destructor=function(){return GROWABLE_HEAP_U32()[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,GROWABLE_HEAP_I8()[this.ptr+12|0]=e},this.get_caught=function(){return 0!=GROWABLE_HEAP_I8()[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,GROWABLE_HEAP_I8()[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=GROWABLE_HEAP_I8()[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){GROWABLE_HEAP_U32()[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return GROWABLE_HEAP_U32()[this.ptr+16>>2]},this.get_exception_ptr=function(){if(___cxa_is_pointer_type(this.get_type()))return GROWABLE_HEAP_U32()[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var ___resumeException=e=>{throw exceptionLast||(exceptionLast=e),exceptionLast},findMatchingCatch=e=>{var t=exceptionLast;if(!t)return setTempRet0(0),0;var r=new ExceptionInfo(t);r.set_adjusted_ptr(t);var n=r.get_type();if(!n)return setTempRet0(0),t;for(var a in e){var o=e[a];if(0===o||o===n)break;var i=r.ptr+16;if(___cxa_can_catch(o,n,i))return setTempRet0(o),t}return setTempRet0(n),t},___cxa_find_matching_catch_2=()=>findMatchingCatch([]),___cxa_find_matching_catch_3=e=>findMatchingCatch([e]),___cxa_rethrow=()=>{var e=exceptionCaught.pop();e||abort("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(exceptionCaught.push(e),e.set_rethrown(!0),e.set_caught(!1),uncaughtExceptionCount++),exceptionLast=t},___cxa_rethrow_primary_exception=e=>{if(e){var t=new ExceptionInfo(e);exceptionCaught.push(t),t.set_rethrown(!0),___cxa_rethrow()}},___cxa_throw=(e,t,r)=>{throw new ExceptionInfo(e).init(t,r),uncaughtExceptionCount++,exceptionLast=e},___cxa_uncaught_exceptions=()=>uncaughtExceptionCount,___emscripten_init_main_thread_js=e=>{__emscripten_thread_init(e,!ENVIRONMENT_IS_WORKER,1,!ENVIRONMENT_IS_WEB,20971520,!1),PThread.threadInitTLS()},___emscripten_thread_cleanup=e=>{ENVIRONMENT_IS_PTHREAD?postMessage({cmd:"cleanupThread",thread:e}):cleanupThread(e)};function pthreadCreateProxied(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(2,1,e,t,r,n):___pthread_create_js(e,t,r,n)}var ___pthread_create_js=(e,t,r,n)=>{if("undefined"==typeof SharedArrayBuffer)return err("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var a=[];if(ENVIRONMENT_IS_PTHREAD&&0===a.length)return pthreadCreateProxied(e,t,r,n);var o={startRoutine:r,pthread_ptr:e,arg:n,transferList:a};return ENVIRONMENT_IS_PTHREAD?(o.cmd="spawnThread",postMessage(o,a),0):spawnThread(o)};function ___syscall_faccessat(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(3,1,e,t,r,n);try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),-8&r)return-28;var a=FS.lookupPath(t,{follow:!0}).node;if(!a)return-44;var o="";return 4&r&&(o+="r"),2&r&&(o+="w"),1&r&&(o+="x"),o&&FS.nodePermissions(a,o)?-2:0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}var setErrNo=e=>(GROWABLE_HEAP_I32()[___errno_location()>>2]=e,e);function ___syscall_fcntl64(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(4,1,e,t,r);SYSCALLS.varargs=r;try{var n=SYSCALLS.getStreamFromFD(e);switch(t){case 0:if((a=SYSCALLS.get())<0)return-28;for(;FS.streams[a];)a++;return FS.createStream(n,a).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var a=SYSCALLS.get();return n.flags|=a,0;case 5:a=SYSCALLS.getp();return GROWABLE_HEAP_I16()[a+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return setErrNo(28),-1}}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fstat64(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(5,1,e,t);try{var r=SYSCALLS.getStreamFromFD(e);return SYSCALLS.doStat(FS.stat,r.path,t)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}var stringToUTF8=(e,t,r)=>stringToUTF8Array(e,GROWABLE_HEAP_U8(),t,r);function ___syscall_getcwd(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(6,1,e,t);try{if(0===t)return-28;var r=FS.cwd(),n=lengthBytesUTF8(r)+1;return t<n?-68:(stringToUTF8(r,e,t),n)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getdents64(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(7,1,e,t,r);try{var n=SYSCALLS.getStreamFromFD(e);n.getdents||(n.getdents=FS.readdir(n.path));for(var a=280,o=0,i=FS.llseek(n,0,1),s=Math.floor(i/a);s<n.getdents.length&&o+a<=r;){var l,_,m=n.getdents[s];if("."===m)l=n.node.id,_=4;else if(".."===m){l=FS.lookupPath(n.path,{parent:!0}).node.id,_=4}else{var u=FS.lookupNode(n.node,m);l=u.id,_=FS.isChrdev(u.mode)?2:FS.isDir(u.mode)?4:FS.isLink(u.mode)?10:8}tempI64=[l>>>0,(tempDouble=l,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[t+o>>2]=tempI64[0],GROWABLE_HEAP_I32()[t+o+4>>2]=tempI64[1],tempI64=[(s+1)*a>>>0,(tempDouble=(s+1)*a,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[t+o+8>>2]=tempI64[0],GROWABLE_HEAP_I32()[t+o+12>>2]=tempI64[1],GROWABLE_HEAP_I16()[t+o+16>>1]=280,GROWABLE_HEAP_I8()[t+o+18|0]=_,stringToUTF8(m,t+o+19,256),o+=a,s+=1}return FS.llseek(n,s*a,0),o}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_ioctl(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(8,1,e,t,r);SYSCALLS.varargs=r;try{var n=SYSCALLS.getStreamFromFD(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var a=n.tty.ops.ioctl_tcgets(n),o=SYSCALLS.getp();GROWABLE_HEAP_I32()[o>>2]=a.c_iflag||0,GROWABLE_HEAP_I32()[o+4>>2]=a.c_oflag||0,GROWABLE_HEAP_I32()[o+8>>2]=a.c_cflag||0,GROWABLE_HEAP_I32()[o+12>>2]=a.c_lflag||0;for(var i=0;i<32;i++)GROWABLE_HEAP_I8()[o+i+17|0]=a.c_cc[i]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){o=SYSCALLS.getp();var s=GROWABLE_HEAP_I32()[o>>2],l=GROWABLE_HEAP_I32()[o+4>>2],_=GROWABLE_HEAP_I32()[o+8>>2],m=GROWABLE_HEAP_I32()[o+12>>2],u=[];for(i=0;i<32;i++)u.push(GROWABLE_HEAP_I8()[o+i+17|0]);return n.tty.ops.ioctl_tcsets(n.tty,t,{c_iflag:s,c_oflag:l,c_cflag:_,c_lflag:m,c_cc:u})}return 0;case 21519:if(!n.tty)return-59;o=SYSCALLS.getp();return GROWABLE_HEAP_I32()[o>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:o=SYSCALLS.getp();return FS.ioctl(n,t,o);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var c=n.tty.ops.ioctl_tiocgwinsz(n.tty);o=SYSCALLS.getp();GROWABLE_HEAP_I16()[o>>1]=c[0],GROWABLE_HEAP_I16()[o+2>>1]=c[1]}return 0;default:return-28}}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_lstat64(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(9,1,e,t);try{return e=SYSCALLS.getStr(e),SYSCALLS.doStat(FS.lstat,e,t)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_mkdirat(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(10,1,e,t,r);try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),"/"===(t=PATH.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),FS.mkdir(t,r,0),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_newfstatat(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(11,1,e,t,r,n);try{t=SYSCALLS.getStr(t);var a=256&n,o=4096&n;return n&=-6401,t=SYSCALLS.calculateAt(e,t,o),SYSCALLS.doStat(a?FS.lstat:FS.stat,t,r)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_openat(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(12,1,e,t,r,n);SYSCALLS.varargs=n;try{t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t);var a=n?SYSCALLS.get():0;return FS.open(t,r,a).fd}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_readlinkat(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(13,1,e,t,r,n);try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),n<=0)return-28;var a=FS.readlink(t),o=Math.min(n,lengthBytesUTF8(a)),i=GROWABLE_HEAP_I8()[r+o];return stringToUTF8(a,r,n+1),GROWABLE_HEAP_I8()[r+o]=i,o}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_rmdir(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(14,1,e);try{return e=SYSCALLS.getStr(e),FS.rmdir(e),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_stat64(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(15,1,e,t);try{return e=SYSCALLS.getStr(e),SYSCALLS.doStat(FS.stat,e,t)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_unlinkat(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(16,1,e,t,r);try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),0===r?FS.unlink(t):512===r?FS.rmdir(t):abort("Invalid flags passed to unlinkat"),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}var nowIsMonotonic=!0,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic,maybeExit=()=>{if(!keepRuntimeAlive())try{ENVIRONMENT_IS_PTHREAD?__emscripten_thread_exit(EXITSTATUS):_exit(EXITSTATUS)}catch(e){handleException(e)}},callUserCallback=e=>{if(!ABORT)try{e(),maybeExit()}catch(e){handleException(e)}},__emscripten_thread_mailbox_await=e=>{if("function"==typeof Atomics.waitAsync){Atomics.waitAsync(GROWABLE_HEAP_I32(),e>>2,e).value.then(checkMailbox);var t=e+128;Atomics.store(GROWABLE_HEAP_I32(),t>>2,1)}};Module.__emscripten_thread_mailbox_await=__emscripten_thread_mailbox_await;var checkMailbox=()=>{var e=_pthread_self();e&&(__emscripten_thread_mailbox_await(e),callUserCallback(()=>__emscripten_check_mailbox()))};Module.checkMailbox=checkMailbox;var __emscripten_notify_mailbox_postmessage=(e,t,r)=>{if(e==t)setTimeout(()=>checkMailbox());else if(ENVIRONMENT_IS_PTHREAD)postMessage({targetThread:e,cmd:"checkMailbox"});else{var n=PThread.pthreads[e];if(!n)return;n.postMessage({cmd:"checkMailbox"})}},withStackSave=e=>{var t=stackSave(),r=e();return stackRestore(t),r},proxyToMainThread=function(e,t){var r=arguments.length-2,n=arguments;return withStackSave(()=>{for(var a=r,o=stackAlloc(8*a),i=o>>3,s=0;s<r;s++){var l=n[2+s];GROWABLE_HEAP_F64()[i+s]=l}return __emscripten_run_on_main_thread_js(e,a,o,t)})},proxiedJSCallArgs=[],__emscripten_receive_on_main_thread_js=(e,t,r,n)=>{proxiedJSCallArgs.length=r;for(var a=n>>3,o=0;o<r;o++)proxiedJSCallArgs[o]=GROWABLE_HEAP_F64()[a+o];var i=e<0?ASM_CONSTS[-e-1]:proxiedFunctionTable[e];PThread.currentProxiedOperationCallerThread=t;var s=i.apply(null,proxiedJSCallArgs);return PThread.currentProxiedOperationCallerThread=0,s},__emscripten_thread_set_strongref=e=>{},convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function __gmtime_js(e,t,r){var n=convertI32PairToI53Checked(e,t),a=new Date(1e3*n);GROWABLE_HEAP_I32()[r>>2]=a.getUTCSeconds(),GROWABLE_HEAP_I32()[r+4>>2]=a.getUTCMinutes(),GROWABLE_HEAP_I32()[r+8>>2]=a.getUTCHours(),GROWABLE_HEAP_I32()[r+12>>2]=a.getUTCDate(),GROWABLE_HEAP_I32()[r+16>>2]=a.getUTCMonth(),GROWABLE_HEAP_I32()[r+20>>2]=a.getUTCFullYear()-1900,GROWABLE_HEAP_I32()[r+24>>2]=a.getUTCDay();var o=Date.UTC(a.getUTCFullYear(),0,1,0,0,0,0),i=(a.getTime()-o)/864e5|0;GROWABLE_HEAP_I32()[r+28>>2]=i}var isLeapYear=e=>e%4==0&&(e%100!=0||e%400==0),MONTH_DAYS_LEAP_CUMULATIVE=[0,31,60,91,121,152,182,213,244,274,305,335],MONTH_DAYS_REGULAR_CUMULATIVE=[0,31,59,90,120,151,181,212,243,273,304,334],ydayFromDate=e=>(isLeapYear(e.getFullYear())?MONTH_DAYS_LEAP_CUMULATIVE:MONTH_DAYS_REGULAR_CUMULATIVE)[e.getMonth()]+e.getDate()-1;function __localtime_js(e,t,r){var n=convertI32PairToI53Checked(e,t),a=new Date(1e3*n);GROWABLE_HEAP_I32()[r>>2]=a.getSeconds(),GROWABLE_HEAP_I32()[r+4>>2]=a.getMinutes(),GROWABLE_HEAP_I32()[r+8>>2]=a.getHours(),GROWABLE_HEAP_I32()[r+12>>2]=a.getDate(),GROWABLE_HEAP_I32()[r+16>>2]=a.getMonth(),GROWABLE_HEAP_I32()[r+20>>2]=a.getFullYear()-1900,GROWABLE_HEAP_I32()[r+24>>2]=a.getDay();var o=0|ydayFromDate(a);GROWABLE_HEAP_I32()[r+28>>2]=o,GROWABLE_HEAP_I32()[r+36>>2]=-60*a.getTimezoneOffset();var i=new Date(a.getFullYear(),0,1),s=new Date(a.getFullYear(),6,1).getTimezoneOffset(),l=i.getTimezoneOffset(),_=0|(s!=l&&a.getTimezoneOffset()==Math.min(l,s));GROWABLE_HEAP_I32()[r+32>>2]=_}var __mktime_js=function(e){var t=(()=>{var t=new Date(GROWABLE_HEAP_I32()[e+20>>2]+1900,GROWABLE_HEAP_I32()[e+16>>2],GROWABLE_HEAP_I32()[e+12>>2],GROWABLE_HEAP_I32()[e+8>>2],GROWABLE_HEAP_I32()[e+4>>2],GROWABLE_HEAP_I32()[e>>2],0),r=GROWABLE_HEAP_I32()[e+32>>2],n=t.getTimezoneOffset(),a=new Date(t.getFullYear(),0,1),o=new Date(t.getFullYear(),6,1).getTimezoneOffset(),i=a.getTimezoneOffset(),s=Math.min(i,o);if(r<0)GROWABLE_HEAP_I32()[e+32>>2]=Number(o!=i&&s==n);else if(r>0!=(s==n)){var l=Math.max(i,o),_=r>0?s:l;t.setTime(t.getTime()+6e4*(_-n))}GROWABLE_HEAP_I32()[e+24>>2]=t.getDay();var m=0|ydayFromDate(t);return GROWABLE_HEAP_I32()[e+28>>2]=m,GROWABLE_HEAP_I32()[e>>2]=t.getSeconds(),GROWABLE_HEAP_I32()[e+4>>2]=t.getMinutes(),GROWABLE_HEAP_I32()[e+8>>2]=t.getHours(),GROWABLE_HEAP_I32()[e+12>>2]=t.getDate(),GROWABLE_HEAP_I32()[e+16>>2]=t.getMonth(),GROWABLE_HEAP_I32()[e+20>>2]=t.getYear(),t.getTime()/1e3})();return setTempRet0((tempDouble=t,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)),t>>>0};function __mmap_js(e,t,r,n,a,o,i,s){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(17,1,e,t,r,n,a,o,i,s);var l=convertI32PairToI53Checked(a,o);try{if(isNaN(l))return 61;var _=SYSCALLS.getStreamFromFD(n),m=FS.mmap(_,e,l,t,r),u=m.ptr;return GROWABLE_HEAP_I32()[i>>2]=m.allocated,GROWABLE_HEAP_U32()[s>>2]=u,0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function __munmap_js(e,t,r,n,a,o,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(18,1,e,t,r,n,a,o,i);var s=convertI32PairToI53Checked(o,i);try{if(isNaN(s))return 61;var l=SYSCALLS.getStreamFromFD(a);2&r&&SYSCALLS.doMsync(e,l,t,n,s),FS.munmap(l)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}var _emscripten_get_now,stringToNewUTF8=e=>{var t=lengthBytesUTF8(e)+1,r=_malloc(t);return r&&stringToUTF8(e,r,t),r},__tzset_js=(e,t,r)=>{var n=(new Date).getFullYear(),a=new Date(n,0,1),o=new Date(n,6,1),i=a.getTimezoneOffset(),s=o.getTimezoneOffset(),l=Math.max(i,s);function _(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}GROWABLE_HEAP_U32()[e>>2]=60*l,GROWABLE_HEAP_I32()[t>>2]=Number(i!=s);var m=_(a),u=_(o),c=stringToNewUTF8(m),d=stringToNewUTF8(u);s<i?(GROWABLE_HEAP_U32()[r>>2]=c,GROWABLE_HEAP_U32()[r+4>>2]=d):(GROWABLE_HEAP_U32()[r>>2]=d,GROWABLE_HEAP_U32()[r+4>>2]=c)},_abort=()=>{abort("")},readEmAsmArgsArray=[],readEmAsmArgs=(e,t)=>{var r;for(readEmAsmArgsArray.length=0;r=GROWABLE_HEAP_U8()[e++];){var n=105!=r;t+=(n&=112!=r)&&t%8?4:0,readEmAsmArgsArray.push(112==r?GROWABLE_HEAP_U32()[t>>2]:105==r?GROWABLE_HEAP_I32()[t>>2]:GROWABLE_HEAP_F64()[t>>3]),t+=n?8:4}return readEmAsmArgsArray},runEmAsmFunction=(e,t,r)=>{var n=readEmAsmArgs(t,r);return ASM_CONSTS[e].apply(null,n)},_emscripten_asm_const_int=(e,t,r)=>runEmAsmFunction(e,t,r),warnOnce=e=>{warnOnce.shown||(warnOnce.shown={}),warnOnce.shown[e]||(warnOnce.shown[e]=1,err(e))},_emscripten_check_blocking_allowed=()=>{},_emscripten_date_now=()=>Date.now(),_emscripten_errn=(e,t)=>err(UTF8ToString(e,t)),runtimeKeepalivePush=()=>{runtimeKeepaliveCounter+=1},_emscripten_exit_with_live_runtime=()=>{throw runtimeKeepalivePush(),"unwind"},getHeapMax=()=>2147483648,_emscripten_get_heap_max=()=>getHeapMax();_emscripten_get_now=()=>performance.timeOrigin+performance.now();var reallyNegative=e=>e<0||0===e&&1/e==-1/0,convertI32PairToI53=(e,t)=>(e>>>0)+4294967296*t,convertU32PairToI53=(e,t)=>(e>>>0)+4294967296*(t>>>0),reSign=(e,t)=>{if(e<=0)return e;var r=t<=32?Math.abs(1<<t-1):Math.pow(2,t-1);return e>=r&&(t<=32||e>r)&&(e=-2*r+e),e},unSign=(e,t)=>e>=0?e:t<=32?2*Math.abs(1<<t-1)+e:Math.pow(2,t)+e,strLen=e=>{for(var t=e;GROWABLE_HEAP_U8()[t];)++t;return t-e},formatString=(e,t)=>{var r=e,n=t;function a(e){var t;return n=function(e,t){return"double"!==t&&"i64"!==t||7&e&&(e+=4),e}(n,e),"double"===e?(t=GROWABLE_HEAP_F64()[n>>3],n+=8):"i64"==e?(t=[GROWABLE_HEAP_I32()[n>>2],GROWABLE_HEAP_I32()[n+4>>2]],n+=8):(e="i32",t=GROWABLE_HEAP_I32()[n>>2],n+=4),t}for(var o,i,s,l=[];;){var _=r;if(0===(o=GROWABLE_HEAP_I8()[r|0]))break;if(i=GROWABLE_HEAP_I8()[r+1|0],37==o){var m=!1,u=!1,c=!1,d=!1,E=!1;e:for(;;){switch(i){case 43:m=!0;break;case 45:u=!0;break;case 35:c=!0;break;case 48:if(d)break e;d=!0;break;case 32:E=!0;break;default:break e}r++,i=GROWABLE_HEAP_I8()[r+1|0]}var f=0;if(42==i)f=a("i32"),r++,i=GROWABLE_HEAP_I8()[r+1|0];else for(;i>=48&&i<=57;)f=10*f+(i-48),r++,i=GROWABLE_HEAP_I8()[r+1|0];var h,p=!1,g=-1;if(46==i){if(g=0,p=!0,r++,42==(i=GROWABLE_HEAP_I8()[r+1|0]))g=a("i32"),r++;else for(;;){var S=GROWABLE_HEAP_I8()[r+1|0];if(S<48||S>57)break;g=10*g+(S-48),r++}i=GROWABLE_HEAP_I8()[r+1|0]}switch(g<0&&(g=6,p=!1),String.fromCharCode(i)){case"h":104==GROWABLE_HEAP_I8()[r+2|0]?(r++,h=1):h=2;break;case"l":108==GROWABLE_HEAP_I8()[r+2|0]?(r++,h=8):h=4;break;case"L":case"q":case"j":h=8;break;case"z":case"t":case"I":h=4;break;default:h=null}switch(h&&r++,i=GROWABLE_HEAP_I8()[r+1|0],String.fromCharCode(i)){case"d":case"i":case"u":case"o":case"x":case"X":case"p":var v=100==i||105==i;if(s=a("i"+8*(h=h||4)),8==h&&(s=117==i?convertU32PairToI53(s[0],s[1]):convertI32PairToI53(s[0],s[1])),h<=4){var y=Math.pow(256,h)-1;s=(v?reSign:unSign)(s&y,8*h)}var F=Math.abs(s),R="";if(100==i||105==i)w=reSign(s,8*h).toString(10);else if(117==i)w=unSign(s,8*h).toString(10),s=Math.abs(s);else if(111==i)w=(c?"0":"")+F.toString(8);else if(120==i||88==i){if(R=c&&0!=s?"0x":"",s<0){s=-s,w=(F-1).toString(16);for(var T=[],A=0;A<w.length;A++)T.push((15-parseInt(w[A],16)).toString(16));for(w=T.join("");w.length<2*h;)w="f"+w}else w=F.toString(16);88==i&&(R=R.toUpperCase(),w=w.toUpperCase())}else 112==i&&(0===F?w="(nil)":(R="0x",w=F.toString(16)));if(p)for(;w.length<g;)w="0"+w;for(s>=0&&(m?R="+"+R:E&&(R=" "+R)),"-"==w.charAt(0)&&(R="-"+R,w=w.substr(1));R.length+w.length<f;)u?w+=" ":d?w="0"+w:R=" "+R;(w=R+w).split("").forEach(function(e){l.push(e.charCodeAt(0))});break;case"f":case"F":case"e":case"E":case"g":case"G":var w;if(s=a("double"),isNaN(s))w="nan",d=!1;else if(isFinite(s)){var D=!1,b=Math.min(g,20);if(103==i||71==i){D=!0,g=g||1;var N=parseInt(s.toExponential(b).split("e")[1],10);g>N&&N>=-4?(i=(103==i?"f":"F").charCodeAt(0),g-=N+1):(i=(103==i?"e":"E").charCodeAt(0),g--),b=Math.min(g,20)}101==i||69==i?(w=s.toExponential(b),/[eE][-+]\d$/.test(w)&&(w=w.slice(0,-1)+"0"+w.slice(-1))):102!=i&&70!=i||(w=s.toFixed(b),0===s&&reallyNegative(s)&&(w="-"+w));var P=w.split("e");if(D&&!c)for(;P[0].length>1&&P[0].includes(".")&&("0"==P[0].slice(-1)||"."==P[0].slice(-1));)P[0]=P[0].slice(0,-1);else for(c&&-1==w.indexOf(".")&&(P[0]+=".");g>b++;)P[0]+="0";w=P[0]+(P.length>1?"e"+P[1]:""),69==i&&(w=w.toUpperCase()),s>=0&&(m?w="+"+w:E&&(w=" "+w))}else w=(s<0?"-":"")+"inf",d=!1;for(;w.length<f;)u?w+=" ":w=!d||"-"!=w[0]&&"+"!=w[0]?(d?"0":" ")+w:w[0]+"0"+w.slice(1);i<97&&(w=w.toUpperCase()),w.split("").forEach(function(e){l.push(e.charCodeAt(0))});break;case"s":var I=a("i8*"),M=I?strLen(I):6;if(p&&(M=Math.min(M,g)),!u)for(;M<f--;)l.push(32);if(I)for(A=0;A<M;A++)l.push(GROWABLE_HEAP_U8()[I++|0]);else l=l.concat(intArrayFromString("(null)".substr(0,M),!0));if(u)for(;M<f--;)l.push(32);break;case"c":for(u&&l.push(a("i8"));--f>0;)l.push(32);u||l.push(a("i8"));break;case"n":var L=a("i32*");GROWABLE_HEAP_I32()[L>>2]=l.length;break;case"%":l.push(o);break;default:for(A=_;A<r+2;A++)l.push(GROWABLE_HEAP_I8()[A|0])}r+=2}else l.push(o),r+=1}return l};function jsStackTrace(){var e=new Error;if(!e.stack){try{throw new Error}catch(t){e=t}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}function getCallstack(e){var t=jsStackTrace(),r=t.lastIndexOf("_emscripten_log"),n=t.lastIndexOf("_emscripten_get_callstack"),a=t.indexOf("\n",Math.max(r,n))+1;t=t.slice(a),8&e&&"undefined"==typeof emscripten_source_map&&(warnOnce('Source map information is not available, emscripten_log with EM_LOG_C_STACK will be ignored. Build with "--pre-js $EMSCRIPTEN/src/emscripten-source-map.min.js" linker flag to add source map loading to code.'),e^=8,e|=16);var o=t.split("\n");t="";var i=new RegExp("\\s*(.*?)@(.*?):([0-9]+):([0-9]+)"),s=new RegExp("\\s*(.*?)@(.*):(.*)(:(.*))?"),l=new RegExp("\\s*at (.*?) \\((.*):(.*):(.*)\\)");for(var _ in o){var m=o[_],u="",c="",d=0,E=0,f=l.exec(m);if(f&&5==f.length)u=f[1],c=f[2],d=f[3],E=f[4];else{if((f=i.exec(m))||(f=s.exec(m)),!(f&&f.length>=4)){t+=m+"\n";continue}u=f[1],c=f[2],d=f[3],E=0|f[4]}var h=!1;if(8&e){var p=emscripten_source_map.originalPositionFor({line:d,column:E});(h=p&&p.source)&&(64&e&&(p.source=p.source.substring(p.source.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=` at ${u} (${p.source}:${p.line}:${p.column})\n`)}(16&e||!h)&&(64&e&&(c=c.substring(c.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=(h?` = ${u}`:` at ${u}`)+` (${c}:${d}:${E})\n`)}return t=t.replace(/\s+$/,"")}var emscriptenLog=(e,t)=>{24&e&&(t=t.replace(/\s+$/,""),t+=(t.length>0?"\n":"")+getCallstack(e)),1&e?4&e||2&e?err(t):out(t):6&e?err(t):out(t)},_emscripten_log=(e,t,r)=>{var n=formatString(t,r),a=UTF8ArrayToString(n,0);emscriptenLog(e,a)},_emscripten_num_logical_cores=()=>navigator.hardwareConcurrency,growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=GROWABLE_HEAP_U8().length;if((e>>>=0)<=t)return!1;var r=getHeapMax();if(e>r)return!1;for(var n=(e,t)=>e+(t-e%t)%t,a=1;a<=4;a*=2){var o=t*(1+.2/a);o=Math.min(o,e+100663296);var i=Math.min(r,n(Math.max(e,o),65536));if(growMemory(i))return!0}return!1},ENV={},getExecutableName=()=>thisProgram||"./this.program",getEnvStrings=()=>{if(!getEnvStrings.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",_:getExecutableName()};for(var t in ENV)void 0===ENV[t]?delete e[t]:e[t]=ENV[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);getEnvStrings.strings=r}return getEnvStrings.strings},stringToAscii=(e,t)=>{for(var r=0;r<e.length;++r)GROWABLE_HEAP_I8()[t++|0]=e.charCodeAt(r);GROWABLE_HEAP_I8()[t|0]=0},_environ_get=function(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(19,1,e,t);var r=0;return getEnvStrings().forEach((n,a)=>{var o=t+r;GROWABLE_HEAP_U32()[e+4*a>>2]=o,stringToAscii(n,o),r+=n.length+1}),0},_environ_sizes_get=function(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(20,1,e,t);var r=getEnvStrings();GROWABLE_HEAP_U32()[e>>2]=r.length;var n=0;return r.forEach(e=>n+=e.length+1),GROWABLE_HEAP_U32()[t>>2]=n,0};function _fd_close(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(21,1,e);try{var t=SYSCALLS.getStreamFromFD(e);return FS.close(t),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}var doReadv=(e,t,r,n)=>{for(var a=0,o=0;o<r;o++){var i=GROWABLE_HEAP_U32()[t>>2],s=GROWABLE_HEAP_U32()[t+4>>2];t+=8;var l=FS.read(e,GROWABLE_HEAP_I8(),i,s,n);if(l<0)return-1;if(a+=l,l<s)break;void 0!==n&&(n+=l)}return a};function _fd_read(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(22,1,e,t,r,n);try{var a=SYSCALLS.getStreamFromFD(e),o=doReadv(a,t,r);return GROWABLE_HEAP_U32()[n>>2]=o,0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_seek(e,t,r,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(23,1,e,t,r,n,a);var o=convertI32PairToI53Checked(t,r);try{if(isNaN(o))return 61;var i=SYSCALLS.getStreamFromFD(e);return FS.llseek(i,o,n),tempI64=[i.position>>>0,(tempDouble=i.position,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[a>>2]=tempI64[0],GROWABLE_HEAP_I32()[a+4>>2]=tempI64[1],i.getdents&&0===o&&0===n&&(i.getdents=null),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}var doWritev=(e,t,r,n)=>{for(var a=0,o=0;o<r;o++){var i=GROWABLE_HEAP_U32()[t>>2],s=GROWABLE_HEAP_U32()[t+4>>2];t+=8;var l=FS.write(e,GROWABLE_HEAP_I8(),i,s,n);if(l<0)return-1;a+=l,void 0!==n&&(n+=l)}return a};function _fd_write(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(24,1,e,t,r,n);try{var a=SYSCALLS.getStreamFromFD(e),o=doWritev(a,t,r);return GROWABLE_HEAP_U32()[n>>2]=o,0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}var functionsInTableMap,arraySum=(e,t)=>{for(var r=0,n=0;n<=t;r+=e[n++]);return r},MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31],MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31],addDays=(e,t)=>{for(var r=new Date(e.getTime());t>0;){var n=isLeapYear(r.getFullYear()),a=r.getMonth(),o=(n?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[a];if(!(t>o-r.getDate()))return r.setDate(r.getDate()+t),r;t-=o-r.getDate()+1,r.setDate(1),a<11?r.setMonth(a+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r},writeArrayToMemory=(e,t)=>{GROWABLE_HEAP_I8().set(e,t)},_strftime=(e,t,r,n)=>{var a=GROWABLE_HEAP_U32()[n+40>>2],o={tm_sec:GROWABLE_HEAP_I32()[n>>2],tm_min:GROWABLE_HEAP_I32()[n+4>>2],tm_hour:GROWABLE_HEAP_I32()[n+8>>2],tm_mday:GROWABLE_HEAP_I32()[n+12>>2],tm_mon:GROWABLE_HEAP_I32()[n+16>>2],tm_year:GROWABLE_HEAP_I32()[n+20>>2],tm_wday:GROWABLE_HEAP_I32()[n+24>>2],tm_yday:GROWABLE_HEAP_I32()[n+28>>2],tm_isdst:GROWABLE_HEAP_I32()[n+32>>2],tm_gmtoff:GROWABLE_HEAP_I32()[n+36>>2],tm_zone:a?UTF8ToString(a):""},i=UTF8ToString(r),s={"%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 l in s)i=i.replace(new RegExp(l,"g"),s[l]);var _=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],m=["January","February","March","April","May","June","July","August","September","October","November","December"];function u(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length<t;)n=r[0]+n;return n}function c(e,t){return u(e,t,"0")}function d(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(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 f(e){var t=addDays(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),a=E(r),o=E(n);return d(a,t)<=0?d(o,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var h={"%a":e=>_[e.tm_wday].substring(0,3),"%A":e=>_[e.tm_wday],"%b":e=>m[e.tm_mon].substring(0,3),"%B":e=>m[e.tm_mon],"%C":e=>c((e.tm_year+1900)/100|0,2),"%d":e=>c(e.tm_mday,2),"%e":e=>u(e.tm_mday,2," "),"%g":e=>f(e).toString().substring(2),"%G":e=>f(e),"%H":e=>c(e.tm_hour,2),"%I":e=>{var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),c(t,2)},"%j":e=>c(e.tm_mday+arraySum(isLeapYear(e.tm_year+1900)?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,e.tm_mon-1),3),"%m":e=>c(e.tm_mon+1,2),"%M":e=>c(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>c(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var t=e.tm_yday+7-e.tm_wday;return c(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&&isLeapYear(e.tm_year)||(t=1)}}else{t=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&isLeapYear(e.tm_year%400-1))&&t++}return c(t,2)},"%w":e=>e.tm_wday,"%W":e=>{var t=e.tm_yday+7-(e.tm_wday+6)%7;return c(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 l in i=i.replace(/%%/g,"\0\0"),h)i.includes(l)&&(i=i.replace(new RegExp(l,"g"),h[l](o)));var p=intArrayFromString(i=i.replace(/\0\0/g,"%"),!1);return p.length>t?0:(writeArrayToMemory(p,e),p.length-1)},_strftime_l=(e,t,r,n,a)=>_strftime(e,t,r,n),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},n=1;n<e.length;++n)r.parameters.push(t[e[n]]);return r},generateFuncType=(e,t)=>{var r=e.slice(0,1),n=e.slice(1),a={i:127,p:127,j:126,f:125,d:124};t.push(96),uleb128Encode(n.length,t);for(var o=0;o<n.length;++o)t.push(a[n[o]]);"v"==r?t.push(0):t.push(1,a[r])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,n),n.push.apply(n,r),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var a=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(a,{e:{f:e}}).exports.f},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}},getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>wasmTable.set(e,t),addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;var a=convertJsFunctionToWasm(e,t);setWasmTableEntry(n,a)}return functionsInTableMap.set(e,n),n},stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r};PThread.init();var FSNode=function(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=FS.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n},readMode=365,writeMode=146;Object.defineProperties(FSNode.prototype,{read:{get:function(){return(this.mode&readMode)===readMode},set:function(e){e?this.mode|=readMode:this.mode&=~readMode}},write:{get:function(){return(this.mode&writeMode)===writeMode},set:function(e){e?this.mode|=writeMode:this.mode&=~writeMode}},isFolder:{get:function(){return FS.isDir(this.mode)}},isDevice:{get:function(){return FS.isChrdev(this.mode)}}}),FS.FSNode=FSNode,FS.createPreloadedFile=FS_createPreloadedFile,FS.staticInit();var calledRun,proxiedFunctionTable=[_proc_exit,exitOnMainThread,pthreadCreateProxied,___syscall_faccessat,___syscall_fcntl64,___syscall_fstat64,___syscall_getcwd,___syscall_getdents64,___syscall_ioctl,___syscall_lstat64,___syscall_mkdirat,___syscall_newfstatat,___syscall_openat,___syscall_readlinkat,___syscall_rmdir,___syscall_stat64,___syscall_unlinkat,__mmap_js,__munmap_js,_environ_get,_environ_sizes_get,_fd_close,_fd_read,_fd_seek,_fd_write],wasmImports={CreateDirectoryFetcher:_CreateDirectoryFetcher,DDN_ConvertElement:_DDN_ConvertElement,DDN_CreateDDNResult:_DDN_CreateDDNResult,DDN_CreateDDNResultItem:_DDN_CreateDDNResultItem,DDN_CreateIntermediateResultUnits:_DDN_CreateIntermediateResultUnits,DDN_CreateParameters:_DDN_CreateParameters,DDN_CreateTargetRoiDefConditionFilter:_DDN_CreateTargetRoiDefConditionFilter,DDN_CreateTaskAlgEntity:_DDN_CreateTaskAlgEntity,DDN_HasSection:_DDN_HasSection,DDN_ReadTaskSetting:_DDN_ReadTaskSetting,DLR_ConvertElement:_DLR_ConvertElement,DLR_CreateBufferedCharacterItemSet:_DLR_CreateBufferedCharacterItemSet,DLR_CreateIntermediateResultUnits:_DLR_CreateIntermediateResultUnits,DLR_CreateParameters:_DLR_CreateParameters,DLR_CreateRecognizedTextLinesResult:_DLR_CreateRecognizedTextLinesResult,DLR_CreateTargetRoiDefConditionFilter:_DLR_CreateTargetRoiDefConditionFilter,DLR_CreateTaskAlgEntity:_DLR_CreateTaskAlgEntity,DLR_CreateTextLineResultItem:_DLR_CreateTextLineResultItem,DLR_ReadTaskSetting:_DLR_ReadTaskSetting,DMImage_GetDIB:_DMImage_GetDIB,DMImage_GetOrientation:_DMImage_GetOrientation,DeleteDirectoryFetcher:_DeleteDirectoryFetcher,_ZN19LabelRecognizerWasm10getVersionEv:__ZN19LabelRecognizerWasm10getVersionEv,_ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv:__ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv,_ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv:__ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv,_ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi:__ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi,_ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb:__ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb,_ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb:__ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb,_ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb:__ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb,_ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii:__ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii,_ZN19LabelRecognizerWasm12DlrWasmClassC1Ev:__ZN19LabelRecognizerWasm12DlrWasmClassC1Ev,_ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE:__ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE,_ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE:__ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE,_ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE:__ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE,_ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE:__ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE,_ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE:__ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE,_ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE:__ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE,_ZN22DocumentNormalizerWasm10getVersionEv:__ZN22DocumentNormalizerWasm10getVersionEv,_ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv:__ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv,_ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi:__ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi,_ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii:__ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii,_ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib:__ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib,_ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib:__ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib,_ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb:__ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb,_ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb:__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb,_ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE:__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE,_ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii:__ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii,_ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev:__ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev,_ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE:__ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE,_ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE:__ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE,_ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE:__ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE,_ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE:__ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE,_ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE:__ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE,_ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv:__ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv,_ZN9dynamsoft7utility14CUtilityModule10GetVersionEv:__ZN9dynamsoft7utility14CUtilityModule10GetVersionEv,__assert_fail:___assert_fail,__cxa_begin_catch:___cxa_begin_catch,__cxa_end_catch:___cxa_end_catch,__cxa_find_matching_catch_2:___cxa_find_matching_catch_2,__cxa_find_matching_catch_3:___cxa_find_matching_catch_3,__cxa_rethrow:___cxa_rethrow,__cxa_rethrow_primary_exception:___cxa_rethrow_primary_exception,__cxa_throw:___cxa_throw,__cxa_uncaught_exceptions:___cxa_uncaught_exceptions,__emscripten_init_main_thread_js:___emscripten_init_main_thread_js,__emscripten_thread_cleanup:___emscripten_thread_cleanup,__pthread_create_js:___pthread_create_js,__resumeException:___resumeException,__syscall_faccessat:___syscall_faccessat,__syscall_fcntl64:___syscall_fcntl64,__syscall_fstat64:___syscall_fstat64,__syscall_getcwd:___syscall_getcwd,__syscall_getdents64:___syscall_getdents64,__syscall_ioctl:___syscall_ioctl,__syscall_lstat64:___syscall_lstat64,__syscall_mkdirat:___syscall_mkdirat,__syscall_newfstatat:___syscall_newfstatat,__syscall_openat:___syscall_openat,__syscall_readlinkat:___syscall_readlinkat,__syscall_rmdir:___syscall_rmdir,__syscall_stat64:___syscall_stat64,__syscall_unlinkat:___syscall_unlinkat,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_notify_mailbox_postmessage:__emscripten_notify_mailbox_postmessage,_emscripten_receive_on_main_thread_js:__emscripten_receive_on_main_thread_js,_emscripten_thread_mailbox_await:__emscripten_thread_mailbox_await,_emscripten_thread_set_strongref:__emscripten_thread_set_strongref,_gmtime_js:__gmtime_js,_localtime_js:__localtime_js,_mktime_js:__mktime_js,_mmap_js:__mmap_js,_munmap_js:__munmap_js,_tzset_js:__tzset_js,abort:_abort,emscripten_asm_const_int:_emscripten_asm_const_int,emscripten_check_blocking_allowed:_emscripten_check_blocking_allowed,emscripten_date_now:_emscripten_date_now,emscripten_errn:_emscripten_errn,emscripten_exit_with_live_runtime:_emscripten_exit_with_live_runtime,emscripten_get_heap_max:_emscripten_get_heap_max,emscripten_get_now:_emscripten_get_now,emscripten_log:_emscripten_log,emscripten_num_logical_cores:_emscripten_num_logical_cores,emscripten_resize_heap:_emscripten_resize_heap,environ_get:_environ_get,environ_sizes_get:_environ_sizes_get,exit:_exit,fd_close:_fd_close,fd_read:_fd_read,fd_seek:_fd_seek,fd_write:_fd_write,invoke_diii:invoke_diii,invoke_fiii:invoke_fiii,invoke_i:invoke_i,invoke_ii:invoke_ii,invoke_iii:invoke_iii,invoke_iiii:invoke_iiii,invoke_iiiii:invoke_iiiii,invoke_iiiiid:invoke_iiiiid,invoke_iiiiii:invoke_iiiiii,invoke_iiiiiii:invoke_iiiiiii,invoke_iiiiiiii:invoke_iiiiiiii,invoke_iiiiiiiiiiii:invoke_iiiiiiiiiiii,invoke_iiiiij:invoke_iiiiij,invoke_j:invoke_j,invoke_ji:invoke_ji,invoke_jii:invoke_jii,invoke_jiiii:invoke_jiiii,invoke_v:invoke_v,invoke_vi:invoke_vi,invoke_vii:invoke_vii,invoke_viid:invoke_viid,invoke_viii:invoke_viii,invoke_viiii:invoke_viiii,invoke_viiiiiii:invoke_viiiiiii,invoke_viiiiiiiiii:invoke_viiiiiiiiii,invoke_viiiiiiiiiiiiiii:invoke_viiiiiiiiiiiiiii,memory:wasmMemory,strftime:_strftime,strftime_l:_strftime_l},wasmExports=createWasm();function invoke_iiii(e,t,r,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ii(e,t){var r=stackSave();try{return getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iii(e,t,r){var n=stackSave();try{return getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vii(e,t,r){var n=stackSave();try{getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vi(e,t){var r=stackSave();try{getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_v(e){var t=stackSave();try{getWasmTableEntry(e)()}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiii(e,t,r,n,a,o,i){var s=stackSave();try{return getWasmTableEntry(e)(t,r,n,a,o,i)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiii(e,t,r,n,a){var o=stackSave();try{getWasmTableEntry(e)(t,r,n,a)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiii(e,t,r,n,a,o){var i=stackSave();try{return getWasmTableEntry(e)(t,r,n,a,o)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiid(e,t,r,n,a,o){var i=stackSave();try{return getWasmTableEntry(e)(t,r,n,a,o)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viii(e,t,r,n){var a=stackSave();try{getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiii(e,t,r,n,a,o,i,s){var l=stackSave();try{return getWasmTableEntry(e)(t,r,n,a,o,i,s)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiii(e,t,r,n,a){var o=stackSave();try{return getWasmTableEntry(e)(t,r,n,a)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_fiii(e,t,r,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_diii(e,t,r,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_i(e){var t=stackSave();try{return getWasmTableEntry(e)()}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiii(e,t,r,n,a,o,i,s){var l=stackSave();try{getWasmTableEntry(e)(t,r,n,a,o,i,s)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiii(e,t,r,n,a,o,i,s,l,_,m,u){var c=stackSave();try{return getWasmTableEntry(e)(t,r,n,a,o,i,s,l,_,m,u)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiii(e,t,r,n,a,o,i,s,l,_,m){var u=stackSave();try{getWasmTableEntry(e)(t,r,n,a,o,i,s,l,_,m)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiiiiiii(e,t,r,n,a,o,i,s,l,_,m,u,c,d,E,f){var h=stackSave();try{getWasmTableEntry(e)(t,r,n,a,o,i,s,l,_,m,u,c,d,E,f)}catch(e){if(stackRestore(h),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viid(e,t,r,n){var a=stackSave();try{getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_j(e){var t=stackSave();try{return dynCall_j(e)}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ji(e,t){var r=stackSave();try{return dynCall_ji(e,t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jii(e,t,r){var n=stackSave();try{return dynCall_jii(e,t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiij(e,t,r,n,a,o,i){var s=stackSave();try{return dynCall_iiiiij(e,t,r,n,a,o,i)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiii(e,t,r,n,a){var o=stackSave();try{return dynCall_jiiii(e,t,r,n,a)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function run(){if(!(runDependencies>0)){if(ENVIRONMENT_IS_PTHREAD)return initRuntime(),void startWorker(Module);preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout(function(){setTimeout(function(){Module.setStatus("")},1),e()},1)):e())}function e(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),wasmExports.emscripten_bind_funcs(addFunction((e,t,r)=>stringToUTF8OnStack(self[UTF8ToString(e)][UTF8ToString(t)]()[UTF8ToString(r)]()),"iiii")),wasmExports.emscripten_bind_funcs(addFunction((e,t,r)=>stringToUTF8OnStack((new(self[UTF8ToString(e)]))[UTF8ToString(t)](UTF8ToString(r))),"iiii")),wasmExports.emscripten_bind_funcs(addFunction((e,t,r,n)=>{self[UTF8ToString(e)](null,JSON.stringify(JSON.parse(UTF8ToString(t))),UTF8ToString(r),n)},"viiii")),wasmExports.emscripten_bind_funcs(addFunction((e,t,r,n)=>stringToUTF8OnStack(self[UTF8ToString(e)][UTF8ToString(t)][UTF8ToString(r)](UTF8ToString(n))?"":self[UTF8ToString(e)][UTF8ToString(t)]),"iiiii")),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),postRun()))}}if(Module.keepRuntimeAlive=keepRuntimeAlive,Module.wasmMemory=wasmMemory,Module.addFunction=addFunction,Module.stringToUTF8OnStack=stringToUTF8OnStack,Module.ExitStatus=ExitStatus,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();run();
1
+ function GROWABLE_HEAP_I8(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAP8}function GROWABLE_HEAP_U8(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPU8}function GROWABLE_HEAP_I16(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAP16}function GROWABLE_HEAP_I32(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAP32}function GROWABLE_HEAP_U32(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPU32}function GROWABLE_HEAP_F64(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPF64}var Module=void 0!==Module?Module:{},moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},ENVIRONMENT_IS_WEB=!1,ENVIRONMENT_IS_WORKER=!0,ENVIRONMENT_IS_NODE=!1,ENVIRONMENT_IS_PTHREAD=Module.ENVIRONMENT_IS_PTHREAD||!1,_scriptDir="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;ENVIRONMENT_IS_WORKER&&(_scriptDir=self.location.href);var read_,readAsync,readBinary,scriptDirectory="";function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:"undefined"!=typeof document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1):"",read_=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;t.open("GET",e,!1),t.responseType="arraybuffer";let r=Date.now(),n={};return t.onloadstart=()=>{postMessage({type:"event",id:-3,body:{loaded:0,total:n.lengthComputable?n.total:0,tag:"starting",resourcesPath:e}})},t.onprogress=t=>{n=t;const a=Date.now();r+500<a&&(postMessage({type:"event",id:-3,body:{total:n.lengthComputable?n.total:0,loaded:n.loaded,tag:"in progress",resourcesPath:e}}),r=a)},t.onloadend=()=>{if(t.status>=400&&t.status<500)throw new Error("failed to load wasm binary file at "+e);postMessage({type:"event",id:-3,body:{loaded:n.lengthComputable?n.total:0,total:n.lengthComputable?n.total:0,tag:"completed",resourcesPath:e}})},t.send(null),new Uint8Array(t.response)}),readAsync=(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)});var wasmBinary,out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit),Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var wasmMemory,wasmModule,noExitRuntime=Module.noExitRuntime||!0;"object"!=typeof WebAssembly&&abort("no native wasm support detected");var EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,ABORT=!1;function assert(e,t){e||abort(t)}function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;if(assert(INITIAL_MEMORY>=20971520,"INITIAL_MEMORY should be larger than STACK_SIZE, was "+INITIAL_MEMORY+"! (STACK_SIZE=20971520)"),ENVIRONMENT_IS_PTHREAD)wasmMemory=Module.wasmMemory;else if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else if(!((wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768,shared:!0})).buffer instanceof SharedArrayBuffer))throw err("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"),ENVIRONMENT_IS_NODE&&err("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),Error("bad memory");updateMemoryViews(),INITIAL_MEMORY=wasmMemory.buffer.byteLength;var __ATPRERUN__=[],__ATINIT__=[],__ATPOSTRUN__=[],runtimeInitialized=!1,runtimeKeepaliveCounter=0;function keepRuntimeAlive(){return noExitRuntime||runtimeKeepaliveCounter>0}function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,ENVIRONMENT_IS_PTHREAD||(Module.noFSInit||FS.init.initialized||FS.init(),FS.ignorePermissions=!1,TTY.init(),callRuntimeCallbacks(__ATINIT__))}function postRun(){if(!ENVIRONMENT_IS_PTHREAD){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort&&Module.onAbort(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var wasmBinaryFile,tempDouble,tempI64,dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(e){return e.startsWith(dataURIPrefix)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary||!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER||"function"!=typeof fetch?Promise.resolve().then(()=>getBinarySync(e)):fetch(e,{credentials:"same-origin"}).then(async t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";postMessage({type:"event",id:-3,body:{total:0,loaded:0,tag:"starting",resourcesPath:e}});const r=+t.headers.get("Content-Length"),n=t.body.getReader();let a=0,o=Date.now();const i=[];for(;;){const{done:t,value:s}=await n.read();if(t)break;if(i.push(s),a+=s.length,r){const t=Date.now();o+500<t&&(postMessage({type:"event",id:-3,body:{total:r,loaded:a,tag:"in progress",resourcesPath:e}}),o=t)}}const s=new Uint8Array(a);let _=0;for(const e of i)s.set(e,_),_+=e.length;return postMessage({type:"event",id:-3,body:{total:r,loaded:r,tag:"completed",resourcesPath:e}}),s}).catch(()=>getBinarySync(e))}function instantiateArrayBuffer(e,t,r){return getBinaryPromise(e).then(e=>WebAssembly.instantiate(e,t)).then(e=>e).then(r,e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)})}function instantiateAsync(e,t,r,n){return instantiateArrayBuffer(t,r,n)}function createWasm(){var e={env:wasmImports,wasi_snapshot_preview1:wasmImports};function t(e,t){return wasmExports=e.exports,registerTLSInit(wasmExports._emscripten_tls_init),wasmTable=wasmExports.__indirect_function_table,addOnInit(wasmExports.__wasm_call_ctors),exportWasmSymbols(wasmExports),wasmModule=t,removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return instantiateAsync(wasmBinary,wasmBinaryFile,e,function(e){t(e.instance,e.module)}),{}}isDataURI(wasmBinaryFile="dynamsoft-barcode-reader-bundle-ml-simd-pthread.wasm")||(wasmBinaryFile=locateFile(wasmBinaryFile));var ASM_CONSTS={799936:()=>stringToNewUTF8(Date.now().toString()),799984:()=>stringToNewUTF8((new Date).toISOString()),800035:()=>stringToNewUTF8(0==location.origin.indexOf("http")?location.origin:""),800115:(e,t)=>{postMessage({cmd:"thread-proxy-callback",taskID:e,ret:UTF8ToString(t)})},800197:(e,t,r,n)=>{if(void 0===Module||!Module.MountedFiles)return 1;let a=UTF8ToString(e>>>0);a.startsWith("./")&&(a=a.substring(2));const o=Module.MountedFiles.get(a);if(!o)return 2;const i=t>>>0,s=r>>>0,_=n>>>0;if(i+s>o.byteLength)return 3;try{return GROWABLE_HEAP_U8().set(o.subarray(i,i+s),_),0}catch{return 4}}};function postThread(e,t,r){self.scsd?scsd(null,JSON.stringify(JSON.parse(UTF8ToString(e))),UTF8ToString(t),r):postMessage({cmd:"s",a:null,b:JSON.stringify(JSON.parse(UTF8ToString(e))),c:UTF8ToString(t),d:r})}function ExitStatus(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var terminateWorker=e=>{e.terminate(),e.onmessage=e=>{}},killThread=e=>{var t=PThread.pthreads[e];delete PThread.pthreads[e],terminateWorker(t),__emscripten_thread_free_data(e),PThread.runningWorkers.splice(PThread.runningWorkers.indexOf(t),1),t.pthread_ptr=0},cancelThread=e=>{PThread.pthreads[e].postMessage({cmd:"cancel"})},cleanupThread=e=>{var t=PThread.pthreads[e];assert(t),PThread.returnWorkerToPool(t)},zeroMemory=(e,t)=>(GROWABLE_HEAP_U8().fill(0,e,e+t),e),spawnThread=e=>{var t=PThread.getNewWorker();if(!t)return 6;PThread.runningWorkers.push(t),PThread.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 t.postMessage(r,e.transferList),0},PATH={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 a=e[n];"."===a?e.splice(n,1):".."===a?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=PATH.isAbs(e),r="/"===e.substr(-1);return(e=PATH.normalizeArray(e.split("/").filter(e=>!!e),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=PATH.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=PATH.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:function(){var e=Array.prototype.slice.call(arguments);return PATH.normalize(e.join("/"))},join2:(e,t)=>PATH.normalize(e+"/"+t)},initRandomFill=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>(e.set(crypto.getRandomValues(new Uint8Array(e.byteLength))),e);abort("initRandomDevice")},randomFill=e=>(randomFill=initRandomFill())(e),PATH_FS={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:FS.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,t=PATH.isAbs(n)}return(t?"/":"")+(e=PATH.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=PATH_FS.resolve(e).substr(1),t=PATH_FS.resolve(t).substr(1);for(var n=r(e.split("/")),a=r(t.split("/")),o=Math.min(n.length,a.length),i=o,s=0;s<o;s++)if(n[s]!==a[s]){i=s;break}var _=[];for(s=i;s<n.length;s++)_.push("..");return(_=_.concat(a.slice(i))).join("/")}},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,UTF8ArrayToString=(e,t,r)=>{for(var n=t+r,a=t;e[a]&&!(a>=n);)++a;if(a-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.slice(t,a));for(var o="";t<a;){var i=e[t++];if(128&i){var s=63&e[t++];if(192!=(224&i)){var _=63&e[t++];if((i=224==(240&i)?(15&i)<<12|s<<6|_:(7&i)<<18|s<<12|_<<6|63&e[t++])<65536)o+=String.fromCharCode(i);else{var l=i-65536;o+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else o+=String.fromCharCode((31&i)<<6|s)}else o+=String.fromCharCode(i)}return o},FS_stdin_getChar_buffer=[],lengthBytesUTF8=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},stringToUTF8Array=(e,t,r,n)=>{if(!(n>0))return 0;for(var a=r,o=r+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i);if(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;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-a};function intArrayFromString(e,t,r){var n=r>0?r:lengthBytesUTF8(e)+1,a=new Array(n),o=stringToUTF8Array(e,a,0,a.length);return t&&(a.length=o),a}var FS_stdin_getChar=()=>{if(!FS_stdin_getChar_buffer.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e)return null;FS_stdin_getChar_buffer=intArrayFromString(e,!0)}return FS_stdin_getChar_buffer.shift()},TTY={ttys:[],init(){},shutdown(){},register(e,t){TTY.ttys[e]={input:[],output:[],ops:t},FS.registerDevice(e,TTY.stream_ops)},stream_ops:{open(e){var t=TTY.ttys[e.node.rdev];if(!t)throw new FS.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,a){if(!e.tty||!e.tty.ops.get_char)throw new FS.ErrnoError(60);for(var o=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new FS.ErrnoError(29)}if(void 0===s&&0===o)throw new FS.ErrnoError(6);if(null==s)break;o++,t[r+i]=s}return o&&(e.node.timestamp=Date.now()),o},write(e,t,r,n,a){if(!e.tty||!e.tty.ops.put_char)throw new FS.ErrnoError(60);try{for(var o=0;o<n;o++)e.tty.ops.put_char(e.tty,t[r+o])}catch(e){throw new FS.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),o}},default_tty_ops:{get_char:e=>FS_stdin_getChar(),put_char(e,t){null===t||10===t?(out(UTF8ArrayToString(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(out(UTF8ArrayToString(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?(err(UTF8ArrayToString(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(err(UTF8ArrayToString(e.output,0)),e.output=[])}}},alignMemory=(e,t)=>Math.ceil(e/t)*t,mmapAlloc=e=>{e=alignMemory(e,65536);var t=_emscripten_builtin_memalign(65536,e);return t?zeroMemory(t,e):0},MEMFS={ops_table:null,mount:e=>MEMFS.createNode(null,"/",16895,0),createNode(e,t,r,n){if(FS.isBlkdev(r)||FS.isFIFO(r))throw new FS.ErrnoError(63);MEMFS.ops_table||(MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}});var a=FS.createNode(e,t,r,n);return FS.isDir(a.mode)?(a.node_ops=MEMFS.ops_table.dir.node,a.stream_ops=MEMFS.ops_table.dir.stream,a.contents={}):FS.isFile(a.mode)?(a.node_ops=MEMFS.ops_table.file.node,a.stream_ops=MEMFS.ops_table.file.stream,a.usedBytes=0,a.contents=null):FS.isLink(a.mode)?(a.node_ops=MEMFS.ops_table.link.node,a.stream_ops=MEMFS.ops_table.link.stream):FS.isChrdev(a.mode)&&(a.node_ops=MEMFS.ops_table.chrdev.node,a.stream_ops=MEMFS.ops_table.chrdev.stream),a.timestamp=Date.now(),e&&(e.contents[t]=a,e.timestamp=a.timestamp),a},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=FS.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,FS.isDir(e.mode)?t.size=4096:FS.isFile(e.mode)?t.size=e.usedBytes:FS.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&&MEMFS.resizeFileStorage(e,t.size)},lookup(e,t){throw FS.genericErrors[44]},mknod:(e,t,r,n)=>MEMFS.createNode(e,t,r,n),rename(e,t,r){if(FS.isDir(e.mode)){var n;try{n=FS.lookupNode(t,r)}catch(e){}if(n)for(var a in n.contents)throw new FS.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=FS.lookupNode(e,t);for(var n in r.contents)throw new FS.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=MEMFS.createNode(e,t,41471,0);return n.link=r,n},readlink(e){if(!FS.isLink(e.mode))throw new FS.ErrnoError(28);return e.link}},stream_ops:{read(e,t,r,n,a){var o=e.node.contents;if(a>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-a,n);if(i>8&&o.subarray)t.set(o.subarray(a,a+i),r);else for(var s=0;s<i;s++)t[r+s]=o[a+s];return i},write(e,t,r,n,a,o){if(t.buffer===GROWABLE_HEAP_I8().buffer&&(o=!1),!n)return 0;var i=e.node;if(i.timestamp=Date.now(),t.subarray&&(!i.contents||i.contents.subarray)){if(o)return i.contents=t.subarray(r,r+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===a)return i.contents=t.slice(r,r+n),i.usedBytes=n,n;if(a+n<=i.usedBytes)return i.contents.set(t.subarray(r,r+n),a),n}if(MEMFS.expandFileStorage(i,a+n),i.contents.subarray&&t.subarray)i.contents.set(t.subarray(r,r+n),a);else for(var s=0;s<n;s++)i.contents[a+s]=t[r+s];return i.usedBytes=Math.max(i.usedBytes,a+n),n},llseek(e,t,r){var n=t;if(1===r?n+=e.position:2===r&&FS.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new FS.ErrnoError(28);return n},allocate(e,t,r){MEMFS.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap(e,t,r,n,a){if(!FS.isFile(e.node.mode))throw new FS.ErrnoError(43);var o,i,s=e.node.contents;if(2&a||s.buffer!==GROWABLE_HEAP_I8().buffer){if((r>0||r+t<s.length)&&(s=s.subarray?s.subarray(r,r+t):Array.prototype.slice.call(s,r,r+t)),i=!0,!(o=mmapAlloc(t)))throw new FS.ErrnoError(48);GROWABLE_HEAP_I8().set(s,o)}else i=!1,o=s.byteOffset;return{ptr:o,allocated:i}},msync:(e,t,r,n,a)=>(MEMFS.stream_ops.write(e,t,0,n,r,!1),0)}},asyncLoad=(e,t,r,n)=>{var a=n?"":getUniqueRunDependency(`al ${e}`);readAsync(e,r=>{assert(r,`Loading data file "${e}" failed (no arrayBuffer).`),t(new Uint8Array(r)),a&&removeRunDependency(a)},t=>{if(!r)throw`Loading data file "${e}" failed.`;r()}),a&&addRunDependency(a)},FS_createDataFile=(e,t,r,n,a,o)=>FS.createDataFile(e,t,r,n,a,o),preloadPlugins=Module.preloadPlugins||[],FS_handledByPreloadPlugin=(e,t,r,n)=>{"undefined"!=typeof Browser&&Browser.init();var a=!1;return preloadPlugins.forEach(o=>{a||o.canHandle(t)&&(o.handle(e,t,r,n),a=!0)}),a},FS_createPreloadedFile=(e,t,r,n,a,o,i,s,_,l)=>{var m=t?PATH_FS.resolve(PATH.join2(e,t)):e,u=getUniqueRunDependency(`cp ${m}`);function c(r){function c(r){l&&l(),s||FS_createDataFile(e,t,r,n,a,_),o&&o(),removeRunDependency(u)}FS_handledByPreloadPlugin(r,m,c,()=>{i&&i(),removeRunDependency(u)})||c(r)}addRunDependency(u),"string"==typeof r?asyncLoad(r,e=>c(e),i):c(r)},FS_modeStringToFlags=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},FS_getMode=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},FS={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=PATH_FS.resolve(e)))return{path:"",node:null};if((t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count>8)throw new FS.ErrnoError(32);for(var r=e.split("/").filter(e=>!!e),n=FS.root,a="/",o=0;o<r.length;o++){var i=o===r.length-1;if(i&&t.parent)break;if(n=FS.lookupNode(n,r[o]),a=PATH.join2(a,r[o]),FS.isMountpoint(n)&&(!i||i&&t.follow_mount)&&(n=n.mounted.root),!i||t.follow)for(var s=0;FS.isLink(n.mode);){var _=FS.readlink(a);if(a=PATH_FS.resolve(PATH.dirname(a),_),n=FS.lookupPath(a,{recurse_count:t.recurse_count+1}).node,s++>40)throw new FS.ErrnoError(32)}}return{path:a,node:n}},getPath(e){for(var t;;){if(FS.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)%FS.nameTable.length},hashAddNode(e){var t=FS.hashName(e.parent.id,e.name);e.name_next=FS.nameTable[t],FS.nameTable[t]=e},hashRemoveNode(e){var t=FS.hashName(e.parent.id,e.name);if(FS.nameTable[t]===e)FS.nameTable[t]=e.name_next;else for(var r=FS.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode(e,t){var r=FS.mayLookup(e);if(r)throw new FS.ErrnoError(r,e);for(var n=FS.hashName(e.id,t),a=FS.nameTable[n];a;a=a.name_next){var o=a.name;if(a.parent.id===e.id&&o===t)return a}return FS.lookup(e,t)},createNode(e,t,r,n){var a=new FS.FSNode(e,t,r,n);return FS.hashAddNode(a),a},destroyNode(e){FS.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&~e),flagsToPermissionString(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>FS.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2,mayLookup(e){var t=FS.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate(e,t){try{FS.lookupNode(e,t);return 20}catch(e){}return FS.nodePermissions(e,"wx")},mayDelete(e,t,r){var n;try{n=FS.lookupNode(e,t)}catch(e){return e.errno}var a=FS.nodePermissions(e,"wx");if(a)return a;if(r){if(!FS.isDir(n.mode))return 54;if(FS.isRoot(n)||FS.getPath(n)===FS.cwd())return 10}else if(FS.isDir(n.mode))return 31;return 0},mayOpen:(e,t)=>e?FS.isLink(e.mode)?32:FS.isDir(e.mode)&&("r"!==FS.flagsToPermissionString(t)||512&t)?31:FS.nodePermissions(e,FS.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=FS.MAX_OPEN_FDS;e++)if(!FS.streams[e])return e;throw new FS.ErrnoError(33)},getStreamChecked(e){var t=FS.getStream(e);if(!t)throw new FS.ErrnoError(8);return t},getStream:e=>FS.streams[e],createStream:(e,t=-1)=>(FS.FSStream||(FS.FSStream=function(){this.shared={}},FS.FSStream.prototype={},Object.defineProperties(FS.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return!!(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 FS.FSStream,e),-1==t&&(t=FS.nextfd()),e.fd=t,FS.streams[t]=e,e),closeStream(e){FS.streams[e]=null},chrdev_stream_ops:{open(e){var t=FS.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new FS.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice(e,t){FS.devices[e]={stream_ops:t}},getDevice:e=>FS.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),FS.syncFSRequests++,FS.syncFSRequests>1&&err(`warning: ${FS.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var r=FS.getMounts(FS.root.mount),n=0;function a(e){return FS.syncFSRequests--,t(e)}function o(e){if(e)return o.errored?void 0:(o.errored=!0,a(e));++n>=r.length&&a(null)}r.forEach(t=>{if(!t.type.syncfs)return o(null);t.type.syncfs(t,e,o)})},mount(e,t,r){var n,a="/"===r,o=!r;if(a&&FS.root)throw new FS.ErrnoError(10);if(!a&&!o){var i=FS.lookupPath(r,{follow_mount:!1});if(r=i.path,n=i.node,FS.isMountpoint(n))throw new FS.ErrnoError(10);if(!FS.isDir(n.mode))throw new FS.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},_=e.mount(s);return _.mount=s,s.root=_,a?FS.root=_:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),_},unmount(e){var t=FS.lookupPath(e,{follow_mount:!1});if(!FS.isMountpoint(t.node))throw new FS.ErrnoError(28);var r=t.node,n=r.mounted,a=FS.getMounts(n);Object.keys(FS.nameTable).forEach(e=>{for(var t=FS.nameTable[e];t;){var r=t.name_next;a.includes(t.mount)&&FS.destroyNode(t),t=r}}),r.mounted=null;var o=r.mount.mounts.indexOf(n);r.mount.mounts.splice(o,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod(e,t,r){var n=FS.lookupPath(e,{parent:!0}).node,a=PATH.basename(e);if(!a||"."===a||".."===a)throw new FS.ErrnoError(28);var o=FS.mayCreate(n,a);if(o)throw new FS.ErrnoError(o);if(!n.node_ops.mknod)throw new FS.ErrnoError(63);return n.node_ops.mknod(n,a,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,FS.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,FS.mknod(e,t,0)),mkdirTree(e,t){for(var r=e.split("/"),n="",a=0;a<r.length;++a)if(r[a]){n+="/"+r[a];try{FS.mkdir(n,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,t,r)=>(void 0===r&&(r=t,t=438),t|=8192,FS.mknod(e,t,r)),symlink(e,t){if(!PATH_FS.resolve(e))throw new FS.ErrnoError(44);var r=FS.lookupPath(t,{parent:!0}).node;if(!r)throw new FS.ErrnoError(44);var n=PATH.basename(t),a=FS.mayCreate(r,n);if(a)throw new FS.ErrnoError(a);if(!r.node_ops.symlink)throw new FS.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename(e,t){var r,n,a=PATH.dirname(e),o=PATH.dirname(t),i=PATH.basename(e),s=PATH.basename(t);if(r=FS.lookupPath(e,{parent:!0}).node,n=FS.lookupPath(t,{parent:!0}).node,!r||!n)throw new FS.ErrnoError(44);if(r.mount!==n.mount)throw new FS.ErrnoError(75);var _,l=FS.lookupNode(r,i),m=PATH_FS.relative(e,o);if("."!==m.charAt(0))throw new FS.ErrnoError(28);if("."!==(m=PATH_FS.relative(t,a)).charAt(0))throw new FS.ErrnoError(55);try{_=FS.lookupNode(n,s)}catch(e){}if(l!==_){var u=FS.isDir(l.mode),c=FS.mayDelete(r,i,u);if(c)throw new FS.ErrnoError(c);if(c=_?FS.mayDelete(n,s,u):FS.mayCreate(n,s))throw new FS.ErrnoError(c);if(!r.node_ops.rename)throw new FS.ErrnoError(63);if(FS.isMountpoint(l)||_&&FS.isMountpoint(_))throw new FS.ErrnoError(10);if(n!==r&&(c=FS.nodePermissions(r,"w")))throw new FS.ErrnoError(c);FS.hashRemoveNode(l);try{r.node_ops.rename(l,n,s)}catch(e){throw e}finally{FS.hashAddNode(l)}}},rmdir(e){var t=FS.lookupPath(e,{parent:!0}).node,r=PATH.basename(e),n=FS.lookupNode(t,r),a=FS.mayDelete(t,r,!0);if(a)throw new FS.ErrnoError(a);if(!t.node_ops.rmdir)throw new FS.ErrnoError(63);if(FS.isMountpoint(n))throw new FS.ErrnoError(10);t.node_ops.rmdir(t,r),FS.destroyNode(n)},readdir(e){var t=FS.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new FS.ErrnoError(54);return t.node_ops.readdir(t)},unlink(e){var t=FS.lookupPath(e,{parent:!0}).node;if(!t)throw new FS.ErrnoError(44);var r=PATH.basename(e),n=FS.lookupNode(t,r),a=FS.mayDelete(t,r,!1);if(a)throw new FS.ErrnoError(a);if(!t.node_ops.unlink)throw new FS.ErrnoError(63);if(FS.isMountpoint(n))throw new FS.ErrnoError(10);t.node_ops.unlink(t,r),FS.destroyNode(n)},readlink(e){var t=FS.lookupPath(e).node;if(!t)throw new FS.ErrnoError(44);if(!t.node_ops.readlink)throw new FS.ErrnoError(28);return PATH_FS.resolve(FS.getPath(t.parent),t.node_ops.readlink(t))},stat(e,t){var r=FS.lookupPath(e,{follow:!t}).node;if(!r)throw new FS.ErrnoError(44);if(!r.node_ops.getattr)throw new FS.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>FS.stat(e,!0),chmod(e,t,r){var n;"string"==typeof e?n=FS.lookupPath(e,{follow:!r}).node:n=e;if(!n.node_ops.setattr)throw new FS.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod(e,t){FS.chmod(e,t,!0)},fchmod(e,t){var r=FS.getStreamChecked(e);FS.chmod(r.node,t)},chown(e,t,r,n){var a;"string"==typeof e?a=FS.lookupPath(e,{follow:!n}).node:a=e;if(!a.node_ops.setattr)throw new FS.ErrnoError(63);a.node_ops.setattr(a,{timestamp:Date.now()})},lchown(e,t,r){FS.chown(e,t,r,!0)},fchown(e,t,r){var n=FS.getStreamChecked(e);FS.chown(n.node,t,r)},truncate(e,t){if(t<0)throw new FS.ErrnoError(28);var r;"string"==typeof e?r=FS.lookupPath(e,{follow:!0}).node:r=e;if(!r.node_ops.setattr)throw new FS.ErrnoError(63);if(FS.isDir(r.mode))throw new FS.ErrnoError(31);if(!FS.isFile(r.mode))throw new FS.ErrnoError(28);var n=FS.nodePermissions(r,"w");if(n)throw new FS.ErrnoError(n);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate(e,t){var r=FS.getStreamChecked(e);if(!(2097155&r.flags))throw new FS.ErrnoError(28);FS.truncate(r.node,t)},utime(e,t,r){var n=FS.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(t,r)})},open(e,t,r){if(""===e)throw new FS.ErrnoError(44);var n;if(r=void 0===r?438:r,r=64&(t="string"==typeof t?FS_modeStringToFlags(t):t)?4095&r|32768:0,"object"==typeof e)n=e;else{e=PATH.normalize(e);try{n=FS.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var a=!1;if(64&t)if(n){if(128&t)throw new FS.ErrnoError(20)}else n=FS.mknod(e,r,0),a=!0;if(!n)throw new FS.ErrnoError(44);if(FS.isChrdev(n.mode)&&(t&=-513),65536&t&&!FS.isDir(n.mode))throw new FS.ErrnoError(54);if(!a){var o=FS.mayOpen(n,t);if(o)throw new FS.ErrnoError(o)}512&t&&!a&&FS.truncate(n,0),t&=-131713;var i=FS.createStream({node:n,path:FS.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return i.stream_ops.open&&i.stream_ops.open(i),!Module.logReadFiles||1&t||(FS.readFiles||(FS.readFiles={}),e in FS.readFiles||(FS.readFiles[e]=1)),i},close(e){if(FS.isClosed(e))throw new FS.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{FS.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,t,r){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new FS.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new FS.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read(e,t,r,n,a){if(n<0||a<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(1==(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.read)throw new FS.ErrnoError(28);var o=void 0!==a;if(o){if(!e.seekable)throw new FS.ErrnoError(70)}else a=e.position;var i=e.stream_ops.read(e,t,r,n,a);return o||(e.position+=i),i},write(e,t,r,n,a,o){if(n<0||a<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.write)throw new FS.ErrnoError(28);e.seekable&&1024&e.flags&&FS.llseek(e,0,2);var i=void 0!==a;if(i){if(!e.seekable)throw new FS.ErrnoError(70)}else a=e.position;var s=e.stream_ops.write(e,t,r,n,a,o);return i||(e.position+=s),s},allocate(e,t,r){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(t<0||r<=0)throw new FS.ErrnoError(28);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(!FS.isFile(e.node.mode)&&!FS.isDir(e.node.mode))throw new FS.ErrnoError(43);if(!e.stream_ops.allocate)throw new FS.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap(e,t,r,n,a){if(2&n&&!(2&a)&&2!=(2097155&e.flags))throw new FS.ErrnoError(2);if(1==(2097155&e.flags))throw new FS.ErrnoError(2);if(!e.stream_ops.mmap)throw new FS.ErrnoError(43);return e.stream_ops.mmap(e,t,r,n,a)},msync:(e,t,r,n,a)=>e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,a):0,munmap:e=>0,ioctl(e,t,r){if(!e.stream_ops.ioctl)throw new FS.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=FS.open(e,t.flags),a=FS.stat(e).size,o=new Uint8Array(a);return FS.read(n,o,0,a,0),"utf8"===t.encoding?r=UTF8ArrayToString(o,0):"binary"===t.encoding&&(r=o),FS.close(n),r},writeFile(e,t,r={}){r.flags=r.flags||577;var n=FS.open(e,r.flags,r.mode);if("string"==typeof t){var a=new Uint8Array(lengthBytesUTF8(t)+1),o=stringToUTF8Array(t,a,0,a.length);FS.write(n,a,0,o,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");FS.write(n,t,0,t.byteLength,void 0,r.canOwn)}FS.close(n)},cwd:()=>FS.currentPath,chdir(e){var t=FS.lookupPath(e,{follow:!0});if(null===t.node)throw new FS.ErrnoError(44);if(!FS.isDir(t.node.mode))throw new FS.ErrnoError(54);var r=FS.nodePermissions(t.node,"x");if(r)throw new FS.ErrnoError(r);FS.currentPath=t.path},createDefaultDirectories(){FS.mkdir("/tmp"),FS.mkdir("/home"),FS.mkdir("/home/web_user")},createDefaultDevices(){FS.mkdir("/dev"),FS.registerDevice(FS.makedev(1,3),{read:()=>0,write:(e,t,r,n,a)=>n}),FS.mkdev("/dev/null",FS.makedev(1,3)),TTY.register(FS.makedev(5,0),TTY.default_tty_ops),TTY.register(FS.makedev(6,0),TTY.default_tty1_ops),FS.mkdev("/dev/tty",FS.makedev(5,0)),FS.mkdev("/dev/tty1",FS.makedev(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=randomFill(e).byteLength),e[--t]);FS.createDevice("/dev","random",r),FS.createDevice("/dev","urandom",r),FS.mkdir("/dev/shm"),FS.mkdir("/dev/shm/tmp")},createSpecialDirectories(){FS.mkdir("/proc");var e=FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd"),FS.mount({mount(){var t=FS.createNode(e,"fd",16895,73);return t.node_ops={lookup(e,t){var r=+t,n=FS.getStreamChecked(r),a={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return a.parent=a,a}},t}},{},"/proc/self/fd")},createStandardStreams(){Module.stdin?FS.createDevice("/dev","stdin",Module.stdin):FS.symlink("/dev/tty","/dev/stdin"),Module.stdout?FS.createDevice("/dev","stdout",null,Module.stdout):FS.symlink("/dev/tty","/dev/stdout"),Module.stderr?FS.createDevice("/dev","stderr",null,Module.stderr):FS.symlink("/dev/tty1","/dev/stderr");FS.open("/dev/stdin",0),FS.open("/dev/stdout",1),FS.open("/dev/stderr",1)},ensureErrnoError(){FS.ErrnoError||(FS.ErrnoError=function(e,t){this.name="ErrnoError",this.node=t,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},FS.ErrnoError.prototype=new Error,FS.ErrnoError.prototype.constructor=FS.ErrnoError,[44].forEach(e=>{FS.genericErrors[e]=new FS.ErrnoError(e),FS.genericErrors[e].stack="<generic error, no stack>"}))},staticInit(){FS.ensureErrnoError(),FS.nameTable=new Array(4096),FS.mount(MEMFS,{},"/"),FS.createDefaultDirectories(),FS.createDefaultDevices(),FS.createSpecialDirectories(),FS.filesystems={MEMFS:MEMFS}},init(e,t,r){FS.init.initialized=!0,FS.ensureErrnoError(),Module.stdin=e||Module.stdin,Module.stdout=t||Module.stdout,Module.stderr=r||Module.stderr,FS.createStandardStreams()},quit(){FS.init.initialized=!1;for(var e=0;e<FS.streams.length;e++){var t=FS.streams[e];t&&FS.close(t)}},findObject(e,t){var r=FS.analyzePath(e,t);return r.exists?r.object:null},analyzePath(e,t){try{e=(n=FS.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=FS.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=PATH.basename(e),n=FS.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:FS.getPath(e);for(var a=t.split("/").reverse();a.length;){var o=a.pop();if(o){var i=PATH.join2(e,o);try{FS.mkdir(i)}catch(e){}e=i}}return i},createFile(e,t,r,n,a){var o=PATH.join2("string"==typeof e?e:FS.getPath(e),t),i=FS_getMode(n,a);return FS.create(o,i)},createDataFile(e,t,r,n,a,o){var i=t;e&&(e="string"==typeof e?e:FS.getPath(e),i=t?PATH.join2(e,t):e);var s=FS_getMode(n,a),_=FS.create(i,s);if(r){if("string"==typeof r){for(var l=new Array(r.length),m=0,u=r.length;m<u;++m)l[m]=r.charCodeAt(m);r=l}FS.chmod(_,146|s);var c=FS.open(_,577);FS.write(c,r,0,r.length,0,o),FS.close(c),FS.chmod(_,s)}return _},createDevice(e,t,r,n){var a=PATH.join2("string"==typeof e?e:FS.getPath(e),t),o=FS_getMode(!!r,!!n);FS.createDevice.major||(FS.createDevice.major=64);var i=FS.makedev(FS.createDevice.major++,0);return FS.registerDevice(i,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,t,n,a,o){for(var i=0,s=0;s<a;s++){var _;try{_=r()}catch(e){throw new FS.ErrnoError(29)}if(void 0===_&&0===i)throw new FS.ErrnoError(6);if(null==_)break;i++,t[n+s]=_}return i&&(e.node.timestamp=Date.now()),i},write(e,t,r,a,o){for(var i=0;i<a;i++)try{n(t[r+i])}catch(e){throw new FS.ErrnoError(29)}return a&&(e.node.timestamp=Date.now()),i}}),FS.mkdev(a,o,i)},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(!read_)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=intArrayFromString(read_(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new FS.ErrnoError(29)}},createLazyFile(e,t,r,n,a){function o(){this.lengthKnown=!1,this.chunks=[]}if(o.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]}},o.prototype.setDataGetter=function(e){this.getter=e},o.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),a=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,o=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,i=1048576;a||(i=n);var s=this;s.setDataGetter(e=>{var t=e*i,a=(e+1)*i-1;if(a=Math.min(a,n-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>n-1)throw new Error("only "+n+" bytes available! programmer error!");var a=new XMLHttpRequest;if(a.open("GET",r,!1),n!==i&&a.setRequestHeader("Range","bytes="+e+"-"+t),a.responseType="arraybuffer",a.overrideMimeType&&a.overrideMimeType("text/plain; charset=x-user-defined"),a.send(null),!(a.status>=200&&a.status<300||304===a.status))throw new Error("Couldn't load "+r+". Status: "+a.status);return void 0!==a.response?new Uint8Array(a.response||[]):intArrayFromString(a.responseText||"",!0)})(t,a)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]}),!o&&n||(i=n=1,n=this.getter(0).length,i=n,out("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new o;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:i}}else s={isDevice:!1,url:r};var _=FS.createFile(e,t,s,n,a);s.contents?_.contents=s.contents:s.url&&(_.contents=null,_.url=s.url),Object.defineProperties(_,{usedBytes:{get:function(){return this.contents.length}}});var l={};function m(e,t,r,n,a){var o=e.node.contents;if(a>=o.length)return 0;var i=Math.min(o.length-a,n);if(o.slice)for(var s=0;s<i;s++)t[r+s]=o[a+s];else for(s=0;s<i;s++)t[r+s]=o.get(a+s);return i}return Object.keys(_.stream_ops).forEach(e=>{var t=_.stream_ops[e];l[e]=function(){return FS.forceLoadFile(_),t.apply(null,arguments)}}),l.read=(e,t,r,n,a)=>(FS.forceLoadFile(_),m(e,t,r,n,a)),l.mmap=(e,t,r,n,a)=>{FS.forceLoadFile(_);var o=mmapAlloc(t);if(!o)throw new FS.ErrnoError(48);return m(e,GROWABLE_HEAP_I8(),o,t,r),{ptr:o,allocated:!0}},_.stream_ops=l,_}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(GROWABLE_HEAP_U8(),e,t):"",SYSCALLS={DEFAULT_POLLMASK:5,calculateAt(e,t,r){if(PATH.isAbs(t))return t;var n;-100===e?n=FS.cwd():n=SYSCALLS.getStreamFromFD(e).path;if(0==t.length){if(!r)throw new FS.ErrnoError(44);return n}return PATH.join2(n,t)},doStat(e,t,r){try{var n=e(t)}catch(e){if(e&&e.node&&PATH.normalize(t)!==PATH.normalize(FS.getPath(e.node)))return-54;throw e}GROWABLE_HEAP_I32()[r>>2]=n.dev,GROWABLE_HEAP_I32()[r+4>>2]=n.mode,GROWABLE_HEAP_U32()[r+8>>2]=n.nlink,GROWABLE_HEAP_I32()[r+12>>2]=n.uid,GROWABLE_HEAP_I32()[r+16>>2]=n.gid,GROWABLE_HEAP_I32()[r+20>>2]=n.rdev,tempI64=[n.size>>>0,(tempDouble=n.size,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+24>>2]=tempI64[0],GROWABLE_HEAP_I32()[r+28>>2]=tempI64[1],GROWABLE_HEAP_I32()[r+32>>2]=4096,GROWABLE_HEAP_I32()[r+36>>2]=n.blocks;var a=n.atime.getTime(),o=n.mtime.getTime(),i=n.ctime.getTime();return tempI64=[Math.floor(a/1e3)>>>0,(tempDouble=Math.floor(a/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+40>>2]=tempI64[0],GROWABLE_HEAP_I32()[r+44>>2]=tempI64[1],GROWABLE_HEAP_U32()[r+48>>2]=a%1e3*1e3,tempI64=[Math.floor(o/1e3)>>>0,(tempDouble=Math.floor(o/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+56>>2]=tempI64[0],GROWABLE_HEAP_I32()[r+60>>2]=tempI64[1],GROWABLE_HEAP_U32()[r+64>>2]=o%1e3*1e3,tempI64=[Math.floor(i/1e3)>>>0,(tempDouble=Math.floor(i/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+72>>2]=tempI64[0],GROWABLE_HEAP_I32()[r+76>>2]=tempI64[1],GROWABLE_HEAP_U32()[r+80>>2]=i%1e3*1e3,tempI64=[n.ino>>>0,(tempDouble=n.ino,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+88>>2]=tempI64[0],GROWABLE_HEAP_I32()[r+92>>2]=tempI64[1],0},doMsync(e,t,r,n,a){if(!FS.isFile(t.node.mode))throw new FS.ErrnoError(43);if(2&n)return 0;var o=GROWABLE_HEAP_U8().slice(e,e+r);FS.msync(t,o,a,r,n)},varargs:void 0,get(){var e=GROWABLE_HEAP_I32()[+SYSCALLS.varargs>>2];return SYSCALLS.varargs+=4,e},getp:()=>SYSCALLS.get(),getStr:e=>UTF8ToString(e),getStreamFromFD:e=>FS.getStreamChecked(e)};function _proc_exit(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(0,1,e);EXITSTATUS=e,keepRuntimeAlive()||(PThread.terminateAllThreads(),Module.onExit&&Module.onExit(e),ABORT=!0),quit_(e,new ExitStatus(e))}var exitJS=(e,t)=>{if(EXITSTATUS=e,ENVIRONMENT_IS_PTHREAD)throw exitOnMainThread(e),"unwind";_proc_exit(e)},_exit=exitJS,handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},PThread={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init(){ENVIRONMENT_IS_PTHREAD?PThread.initWorker():PThread.initMainThread()},initMainThread(){for(var e=Module.pthreadPoolSize||5;e--;)PThread.allocateUnusedWorker();addOnPreRun(()=>{addRunDependency("loading-workers"),PThread.loadWasmModuleToAllWorkers(()=>removeRunDependency("loading-workers"))})},initWorker(){PThread.receiveObjectTransfer=PThread.receiveObjectTransfer,PThread.threadInitTLS=PThread.threadInitTLS,PThread.setExitStatus=PThread.setExitStatus,noExitRuntime=!1},setExitStatus:e=>{EXITSTATUS=e},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var e of PThread.runningWorkers)terminateWorker(e);for(var e of PThread.unusedWorkers)terminateWorker(e);PThread.unusedWorkers=[],PThread.runningWorkers=[],PThread.pthreads=[]},returnWorkerToPool:e=>{var t=e.pthread_ptr;delete PThread.pthreads[t],PThread.unusedWorkers.push(e),PThread.runningWorkers.splice(PThread.runningWorkers.indexOf(e),1),e.pthread_ptr=0,__emscripten_thread_free_data(t)},receiveObjectTransfer(e){},threadInitTLS(){PThread.tlsInitFunctions.forEach(e=>e())},loadWasmModuleToWorker:e=>new Promise(t=>{e.onmessage=r=>{var n=r.data,a=n.cmd;if(n.targetThread&&n.targetThread!=_pthread_self()){var o=PThread.pthreads[n.targetThread];o?o.postMessage(n,n.transferList):err(`Internal error! Worker sent a message "${a}" to target pthread ${n.targetThread}, but that thread no longer exists!`)}else"checkMailbox"===a?checkMailbox():"spawnThread"===a?spawnThread(n):"cleanupThread"===a?cleanupThread(n.thread):"killThread"===a?killThread(n.thread):"cancelThread"===a?cancelThread(n.thread):"loaded"===a?(e.loaded=!0,t(e)):"alert"===a?alert(`Thread ${n.threadId}: ${n.text}`):"setimmediate"===n.target?e.postMessage(n):"callHandler"===a?Module[n.handler](...n.args):"thread-proxy-callback"===a?mapThreadProxyCallBack[n.taskID](n.ret):"s"===a?scsd(n.a,n.b,n.c,n.d):a&&err(`worker sent an unknown command ${a}`)},e.onerror=e=>{throw err(`worker sent an error! ${e.filename}:${e.lineno}: ${e.message}`),e};var r=[];for(var n of["onExit","onAbort","print","printErr"])Module.hasOwnProperty(n)&&r.push(n);e.postMessage({cmd:"load",handlers:r,urlOrBlob:Module.pthreadJsCache.get("pthreadjs")||Module.mainScriptUrlOrBlob||_scriptDir,wasmMemory:wasmMemory,wasmModule:wasmModule})}),loadWasmModuleToAllWorkers(e){if(ENVIRONMENT_IS_PTHREAD)return e();Promise.all(PThread.unusedWorkers.map(PThread.loadWasmModuleToWorker)).then(e)},allocateUnusedWorker(){var e,t=Module.pthreadJsCache.get("pthreadWorkerjs");let r=URL.createObjectURL(t);e=new Worker(r),PThread.unusedWorkers.push(e)},getNewWorker:()=>(0==PThread.unusedWorkers.length&&(PThread.allocateUnusedWorker(),PThread.loadWasmModuleToWorker(PThread.unusedWorkers[0])),PThread.unusedWorkers.pop())};Module.PThread=PThread;var callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},establishStackSpace=()=>{var e=_pthread_self(),t=GROWABLE_HEAP_U32()[e+52>>2],r=GROWABLE_HEAP_U32()[e+56>>2];_emscripten_stack_set_limits(t,t-r),stackRestore(t)};function exitOnMainThread(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(1,0,e);_exit(e)}Module.establishStackSpace=establishStackSpace;var wasmTable,asmjsMangle=e=>("__main_argc_argv"==e&&(e="main"),0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore","getTempRet0","setTempRet0"].includes(e)?e:"_"+e),exportWasmSymbols=e=>{for(var t in e){var r=asmjsMangle(t);this[r]=Module[r]=e[t]}},getWasmTableEntry=e=>wasmTable.get(e),invokeEntryPoint=(e,t)=>{!function(e){keepRuntimeAlive()?PThread.setExitStatus(e):__emscripten_thread_exit(e)}(getWasmTableEntry(e)(t))};Module.invokeEntryPoint=invokeEntryPoint;var registerTLSInit=e=>{PThread.tlsInitFunctions.push(e)};function _DDN_ConvertElement(){abort("missing function: DDN_ConvertElement")}function _DDN_CreateDDNResult(){abort("missing function: DDN_CreateDDNResult")}function _DDN_CreateDDNResultItem(){abort("missing function: DDN_CreateDDNResultItem")}function _DDN_CreateIntermediateResultUnits(){abort("missing function: DDN_CreateIntermediateResultUnits")}function _DDN_CreateParameters(){abort("missing function: DDN_CreateParameters")}function _DDN_CreateTargetRoiDefConditionFilter(){abort("missing function: DDN_CreateTargetRoiDefConditionFilter")}function _DDN_CreateTaskAlgEntity(){abort("missing function: DDN_CreateTaskAlgEntity")}function _DDN_HasSection(){abort("missing function: DDN_HasSection")}function _DDN_ReadTaskSetting(){abort("missing function: DDN_ReadTaskSetting")}function _DLR_ConvertElement(){abort("missing function: DLR_ConvertElement")}function _DLR_CreateBufferedCharacterItemSet(){abort("missing function: DLR_CreateBufferedCharacterItemSet")}function _DLR_CreateIntermediateResultUnits(){abort("missing function: DLR_CreateIntermediateResultUnits")}function _DLR_CreateParameters(){abort("missing function: DLR_CreateParameters")}function _DLR_CreateRecognizedTextLinesResult(){abort("missing function: DLR_CreateRecognizedTextLinesResult")}function _DLR_CreateTargetRoiDefConditionFilter(){abort("missing function: DLR_CreateTargetRoiDefConditionFilter")}function _DLR_CreateTaskAlgEntity(){abort("missing function: DLR_CreateTaskAlgEntity")}function _DLR_CreateTextLineResultItem(){abort("missing function: DLR_CreateTextLineResultItem")}function _DLR_ReadTaskSetting(){abort("missing function: DLR_ReadTaskSetting")}function _DMImage_CloseFile(){abort("missing function: DMImage_CloseFile")}function _DMImage_GetDIB(){abort("missing function: DMImage_GetDIB")}function _DMImage_GetFormatFromHandle(){abort("missing function: DMImage_GetFormatFromHandle")}function _DMImage_GetFormatFromStream(){abort("missing function: DMImage_GetFormatFromStream")}function _DMImage_GetOrientation(){abort("missing function: DMImage_GetOrientation")}function _DMImage_OpenFile(){abort("missing function: DMImage_OpenFile")}function __Z22DM_GetNodeFromFormatID15DM_IMAGE_FORMAT(){abort("missing function: _Z22DM_GetNodeFromFormatID15DM_IMAGE_FORMAT")}function __ZN11DMImageNode9SetHandleEPvj(){abort("missing function: _ZN11DMImageNode9SetHandleEPvj")}function __ZN19LabelRecognizerWasm10getVersionEv(){abort("missing function: _ZN19LabelRecognizerWasm10getVersionEv")}function __ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv")}function __ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv")}function __ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi")}function __ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb")}function __ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb")}function __ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb")}function __ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii")}function __ZN19LabelRecognizerWasm12DlrWasmClassC1Ev(){abort("missing function: _ZN19LabelRecognizerWasm12DlrWasmClassC1Ev")}function __ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE(){abort("missing function: _ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE")}function __ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE(){abort("missing function: _ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE")}function __ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE(){abort("missing function: _ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE")}function __ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE(){abort("missing function: _ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE")}function __ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE(){abort("missing function: _ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE")}function __ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE(){abort("missing function: _ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE")}function __ZN22DocumentNormalizerWasm10getVersionEv(){abort("missing function: _ZN22DocumentNormalizerWasm10getVersionEv")}function __ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv")}function __ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi")}function __ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii")}function __ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib")}function __ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib")}function __ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb")}function __ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb")}function __ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE")}function __ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii")}function __ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev(){abort("missing function: _ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev")}function __ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE(){abort("missing function: _ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE")}function __ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE(){abort("missing function: _ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE")}function __ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE(){abort("missing function: _ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE")}function __ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE(){abort("missing function: _ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE")}function __ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE(){abort("missing function: _ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE")}function __ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv(){abort("missing function: _ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv")}_DDN_ConvertElement.stub=!0,_DDN_CreateDDNResult.stub=!0,_DDN_CreateDDNResultItem.stub=!0,_DDN_CreateIntermediateResultUnits.stub=!0,_DDN_CreateParameters.stub=!0,_DDN_CreateTargetRoiDefConditionFilter.stub=!0,_DDN_CreateTaskAlgEntity.stub=!0,_DDN_HasSection.stub=!0,_DDN_ReadTaskSetting.stub=!0,_DLR_ConvertElement.stub=!0,_DLR_CreateBufferedCharacterItemSet.stub=!0,_DLR_CreateIntermediateResultUnits.stub=!0,_DLR_CreateParameters.stub=!0,_DLR_CreateRecognizedTextLinesResult.stub=!0,_DLR_CreateTargetRoiDefConditionFilter.stub=!0,_DLR_CreateTaskAlgEntity.stub=!0,_DLR_CreateTextLineResultItem.stub=!0,_DLR_ReadTaskSetting.stub=!0,_DMImage_CloseFile.stub=!0,_DMImage_GetDIB.stub=!0,_DMImage_GetFormatFromHandle.stub=!0,_DMImage_GetFormatFromStream.stub=!0,_DMImage_GetOrientation.stub=!0,_DMImage_OpenFile.stub=!0,__Z22DM_GetNodeFromFormatID15DM_IMAGE_FORMAT.stub=!0,__ZN11DMImageNode9SetHandleEPvj.stub=!0,__ZN19LabelRecognizerWasm10getVersionEv.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii.stub=!0,__ZN19LabelRecognizerWasm12DlrWasmClassC1Ev.stub=!0,__ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE.stub=!0,__ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE.stub=!0,__ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE.stub=!0,__ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE.stub=!0,__ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE.stub=!0,__ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE.stub=!0,__ZN22DocumentNormalizerWasm10getVersionEv.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii.stub=!0,__ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev.stub=!0,__ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE.stub=!0,__ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE.stub=!0,__ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE.stub=!0,__ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE.stub=!0,__ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE.stub=!0,__ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv.stub=!0;var ___assert_fail=(e,t,r,n)=>{abort(`Assertion failed: ${UTF8ToString(e)}, at: `+[t?UTF8ToString(t):"unknown filename",r,n?UTF8ToString(n):"unknown function"])},exceptionCaught=[],uncaughtExceptionCount=0,___cxa_begin_catch=e=>{var t=new ExceptionInfo(e);return t.get_caught()||(t.set_caught(!0),uncaughtExceptionCount--),t.set_rethrown(!1),exceptionCaught.push(t),___cxa_increment_exception_refcount(t.excPtr),t.get_exception_ptr()},exceptionLast=0,___cxa_end_catch=()=>{_setThrew(0,0);var e=exceptionCaught.pop();___cxa_decrement_exception_refcount(e.excPtr),exceptionLast=0};function ExceptionInfo(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){GROWABLE_HEAP_U32()[this.ptr+4>>2]=e},this.get_type=function(){return GROWABLE_HEAP_U32()[this.ptr+4>>2]},this.set_destructor=function(e){GROWABLE_HEAP_U32()[this.ptr+8>>2]=e},this.get_destructor=function(){return GROWABLE_HEAP_U32()[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,GROWABLE_HEAP_I8()[this.ptr+12|0]=e},this.get_caught=function(){return 0!=GROWABLE_HEAP_I8()[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,GROWABLE_HEAP_I8()[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=GROWABLE_HEAP_I8()[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){GROWABLE_HEAP_U32()[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return GROWABLE_HEAP_U32()[this.ptr+16>>2]},this.get_exception_ptr=function(){if(___cxa_is_pointer_type(this.get_type()))return GROWABLE_HEAP_U32()[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var ___resumeException=e=>{throw exceptionLast||(exceptionLast=e),exceptionLast},findMatchingCatch=e=>{var t=exceptionLast;if(!t)return setTempRet0(0),0;var r=new ExceptionInfo(t);r.set_adjusted_ptr(t);var n=r.get_type();if(!n)return setTempRet0(0),t;for(var a in e){var o=e[a];if(0===o||o===n)break;var i=r.ptr+16;if(___cxa_can_catch(o,n,i))return setTempRet0(o),t}return setTempRet0(n),t},___cxa_find_matching_catch_2=()=>findMatchingCatch([]),___cxa_find_matching_catch_3=e=>findMatchingCatch([e]),___cxa_rethrow=()=>{var e=exceptionCaught.pop();e||abort("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(exceptionCaught.push(e),e.set_rethrown(!0),e.set_caught(!1),uncaughtExceptionCount++),exceptionLast=t},___cxa_rethrow_primary_exception=e=>{if(e){var t=new ExceptionInfo(e);exceptionCaught.push(t),t.set_rethrown(!0),___cxa_rethrow()}},___cxa_throw=(e,t,r)=>{throw new ExceptionInfo(e).init(t,r),uncaughtExceptionCount++,exceptionLast=e},___cxa_uncaught_exceptions=()=>uncaughtExceptionCount,___emscripten_init_main_thread_js=e=>{__emscripten_thread_init(e,!ENVIRONMENT_IS_WORKER,1,!ENVIRONMENT_IS_WEB,20971520,!1),PThread.threadInitTLS()},___emscripten_thread_cleanup=e=>{ENVIRONMENT_IS_PTHREAD?postMessage({cmd:"cleanupThread",thread:e}):cleanupThread(e)};function pthreadCreateProxied(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(2,1,e,t,r,n):___pthread_create_js(e,t,r,n)}var ___pthread_create_js=(e,t,r,n)=>{if("undefined"==typeof SharedArrayBuffer)return err("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var a=[];if(ENVIRONMENT_IS_PTHREAD&&0===a.length)return pthreadCreateProxied(e,t,r,n);var o={startRoutine:r,pthread_ptr:e,arg:n,transferList:a};return ENVIRONMENT_IS_PTHREAD?(o.cmd="spawnThread",postMessage(o,a),0):spawnThread(o)};function ___syscall_faccessat(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(3,1,e,t,r,n);try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),-8&r)return-28;var a=FS.lookupPath(t,{follow:!0}).node;if(!a)return-44;var o="";return 4&r&&(o+="r"),2&r&&(o+="w"),1&r&&(o+="x"),o&&FS.nodePermissions(a,o)?-2:0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}var setErrNo=e=>(GROWABLE_HEAP_I32()[___errno_location()>>2]=e,e);function ___syscall_fcntl64(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(4,1,e,t,r);SYSCALLS.varargs=r;try{var n=SYSCALLS.getStreamFromFD(e);switch(t){case 0:if((a=SYSCALLS.get())<0)return-28;for(;FS.streams[a];)a++;return FS.createStream(n,a).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var a=SYSCALLS.get();return n.flags|=a,0;case 5:a=SYSCALLS.getp();return GROWABLE_HEAP_I16()[a+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return setErrNo(28),-1}}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fstat64(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(5,1,e,t);try{var r=SYSCALLS.getStreamFromFD(e);return SYSCALLS.doStat(FS.stat,r.path,t)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}var stringToUTF8=(e,t,r)=>stringToUTF8Array(e,GROWABLE_HEAP_U8(),t,r);function ___syscall_getcwd(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(6,1,e,t);try{if(0===t)return-28;var r=FS.cwd(),n=lengthBytesUTF8(r)+1;return t<n?-68:(stringToUTF8(r,e,t),n)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getdents64(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(7,1,e,t,r);try{var n=SYSCALLS.getStreamFromFD(e);n.getdents||(n.getdents=FS.readdir(n.path));for(var a=280,o=0,i=FS.llseek(n,0,1),s=Math.floor(i/a);s<n.getdents.length&&o+a<=r;){var _,l,m=n.getdents[s];if("."===m)_=n.node.id,l=4;else if(".."===m){_=FS.lookupPath(n.path,{parent:!0}).node.id,l=4}else{var u=FS.lookupNode(n.node,m);_=u.id,l=FS.isChrdev(u.mode)?2:FS.isDir(u.mode)?4:FS.isLink(u.mode)?10:8}tempI64=[_>>>0,(tempDouble=_,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[t+o>>2]=tempI64[0],GROWABLE_HEAP_I32()[t+o+4>>2]=tempI64[1],tempI64=[(s+1)*a>>>0,(tempDouble=(s+1)*a,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[t+o+8>>2]=tempI64[0],GROWABLE_HEAP_I32()[t+o+12>>2]=tempI64[1],GROWABLE_HEAP_I16()[t+o+16>>1]=280,GROWABLE_HEAP_I8()[t+o+18|0]=l,stringToUTF8(m,t+o+19,256),o+=a,s+=1}return FS.llseek(n,s*a,0),o}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_ioctl(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(8,1,e,t,r);SYSCALLS.varargs=r;try{var n=SYSCALLS.getStreamFromFD(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var a=n.tty.ops.ioctl_tcgets(n),o=SYSCALLS.getp();GROWABLE_HEAP_I32()[o>>2]=a.c_iflag||0,GROWABLE_HEAP_I32()[o+4>>2]=a.c_oflag||0,GROWABLE_HEAP_I32()[o+8>>2]=a.c_cflag||0,GROWABLE_HEAP_I32()[o+12>>2]=a.c_lflag||0;for(var i=0;i<32;i++)GROWABLE_HEAP_I8()[o+i+17|0]=a.c_cc[i]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){o=SYSCALLS.getp();var s=GROWABLE_HEAP_I32()[o>>2],_=GROWABLE_HEAP_I32()[o+4>>2],l=GROWABLE_HEAP_I32()[o+8>>2],m=GROWABLE_HEAP_I32()[o+12>>2],u=[];for(i=0;i<32;i++)u.push(GROWABLE_HEAP_I8()[o+i+17|0]);return n.tty.ops.ioctl_tcsets(n.tty,t,{c_iflag:s,c_oflag:_,c_cflag:l,c_lflag:m,c_cc:u})}return 0;case 21519:if(!n.tty)return-59;o=SYSCALLS.getp();return GROWABLE_HEAP_I32()[o>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:o=SYSCALLS.getp();return FS.ioctl(n,t,o);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var c=n.tty.ops.ioctl_tiocgwinsz(n.tty);o=SYSCALLS.getp();GROWABLE_HEAP_I16()[o>>1]=c[0],GROWABLE_HEAP_I16()[o+2>>1]=c[1]}return 0;default:return-28}}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_lstat64(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(9,1,e,t);try{return e=SYSCALLS.getStr(e),SYSCALLS.doStat(FS.lstat,e,t)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_mkdirat(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(10,1,e,t,r);try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),"/"===(t=PATH.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),FS.mkdir(t,r,0),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_newfstatat(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(11,1,e,t,r,n);try{t=SYSCALLS.getStr(t);var a=256&n,o=4096&n;return n&=-6401,t=SYSCALLS.calculateAt(e,t,o),SYSCALLS.doStat(a?FS.lstat:FS.stat,t,r)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_openat(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(12,1,e,t,r,n);SYSCALLS.varargs=n;try{t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t);var a=n?SYSCALLS.get():0;return FS.open(t,r,a).fd}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_readlinkat(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(13,1,e,t,r,n);try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),n<=0)return-28;var a=FS.readlink(t),o=Math.min(n,lengthBytesUTF8(a)),i=GROWABLE_HEAP_I8()[r+o];return stringToUTF8(a,r,n+1),GROWABLE_HEAP_I8()[r+o]=i,o}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_rmdir(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(14,1,e);try{return e=SYSCALLS.getStr(e),FS.rmdir(e),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_stat64(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(15,1,e,t);try{return e=SYSCALLS.getStr(e),SYSCALLS.doStat(FS.stat,e,t)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_unlinkat(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(16,1,e,t,r);try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),0===r?FS.unlink(t):512===r?FS.rmdir(t):abort("Invalid flags passed to unlinkat"),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}var nowIsMonotonic=!0,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic,maybeExit=()=>{if(!keepRuntimeAlive())try{ENVIRONMENT_IS_PTHREAD?__emscripten_thread_exit(EXITSTATUS):_exit(EXITSTATUS)}catch(e){handleException(e)}},callUserCallback=e=>{if(!ABORT)try{e(),maybeExit()}catch(e){handleException(e)}},__emscripten_thread_mailbox_await=e=>{if("function"==typeof Atomics.waitAsync){Atomics.waitAsync(GROWABLE_HEAP_I32(),e>>2,e).value.then(checkMailbox);var t=e+128;Atomics.store(GROWABLE_HEAP_I32(),t>>2,1)}};Module.__emscripten_thread_mailbox_await=__emscripten_thread_mailbox_await;var checkMailbox=()=>{var e=_pthread_self();e&&(__emscripten_thread_mailbox_await(e),callUserCallback(()=>__emscripten_check_mailbox()))};Module.checkMailbox=checkMailbox;var __emscripten_notify_mailbox_postmessage=(e,t,r)=>{if(e==t)setTimeout(()=>checkMailbox());else if(ENVIRONMENT_IS_PTHREAD)postMessage({targetThread:e,cmd:"checkMailbox"});else{var n=PThread.pthreads[e];if(!n)return;n.postMessage({cmd:"checkMailbox"})}},withStackSave=e=>{var t=stackSave(),r=e();return stackRestore(t),r},proxyToMainThread=function(e,t){var r=arguments.length-2,n=arguments;return withStackSave(()=>{for(var a=r,o=stackAlloc(8*a),i=o>>3,s=0;s<r;s++){var _=n[2+s];GROWABLE_HEAP_F64()[i+s]=_}return __emscripten_run_on_main_thread_js(e,a,o,t)})},proxiedJSCallArgs=[],__emscripten_receive_on_main_thread_js=(e,t,r,n)=>{proxiedJSCallArgs.length=r;for(var a=n>>3,o=0;o<r;o++)proxiedJSCallArgs[o]=GROWABLE_HEAP_F64()[a+o];var i=e<0?ASM_CONSTS[-e-1]:proxiedFunctionTable[e];PThread.currentProxiedOperationCallerThread=t;var s=i.apply(null,proxiedJSCallArgs);return PThread.currentProxiedOperationCallerThread=0,s},__emscripten_thread_set_strongref=e=>{},convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function __gmtime_js(e,t,r){var n=convertI32PairToI53Checked(e,t),a=new Date(1e3*n);GROWABLE_HEAP_I32()[r>>2]=a.getUTCSeconds(),GROWABLE_HEAP_I32()[r+4>>2]=a.getUTCMinutes(),GROWABLE_HEAP_I32()[r+8>>2]=a.getUTCHours(),GROWABLE_HEAP_I32()[r+12>>2]=a.getUTCDate(),GROWABLE_HEAP_I32()[r+16>>2]=a.getUTCMonth(),GROWABLE_HEAP_I32()[r+20>>2]=a.getUTCFullYear()-1900,GROWABLE_HEAP_I32()[r+24>>2]=a.getUTCDay();var o=Date.UTC(a.getUTCFullYear(),0,1,0,0,0,0),i=(a.getTime()-o)/864e5|0;GROWABLE_HEAP_I32()[r+28>>2]=i}var isLeapYear=e=>e%4==0&&(e%100!=0||e%400==0),MONTH_DAYS_LEAP_CUMULATIVE=[0,31,60,91,121,152,182,213,244,274,305,335],MONTH_DAYS_REGULAR_CUMULATIVE=[0,31,59,90,120,151,181,212,243,273,304,334],ydayFromDate=e=>(isLeapYear(e.getFullYear())?MONTH_DAYS_LEAP_CUMULATIVE:MONTH_DAYS_REGULAR_CUMULATIVE)[e.getMonth()]+e.getDate()-1;function __localtime_js(e,t,r){var n=convertI32PairToI53Checked(e,t),a=new Date(1e3*n);GROWABLE_HEAP_I32()[r>>2]=a.getSeconds(),GROWABLE_HEAP_I32()[r+4>>2]=a.getMinutes(),GROWABLE_HEAP_I32()[r+8>>2]=a.getHours(),GROWABLE_HEAP_I32()[r+12>>2]=a.getDate(),GROWABLE_HEAP_I32()[r+16>>2]=a.getMonth(),GROWABLE_HEAP_I32()[r+20>>2]=a.getFullYear()-1900,GROWABLE_HEAP_I32()[r+24>>2]=a.getDay();var o=0|ydayFromDate(a);GROWABLE_HEAP_I32()[r+28>>2]=o,GROWABLE_HEAP_I32()[r+36>>2]=-60*a.getTimezoneOffset();var i=new Date(a.getFullYear(),0,1),s=new Date(a.getFullYear(),6,1).getTimezoneOffset(),_=i.getTimezoneOffset(),l=0|(s!=_&&a.getTimezoneOffset()==Math.min(_,s));GROWABLE_HEAP_I32()[r+32>>2]=l}var __mktime_js=function(e){var t=(()=>{var t=new Date(GROWABLE_HEAP_I32()[e+20>>2]+1900,GROWABLE_HEAP_I32()[e+16>>2],GROWABLE_HEAP_I32()[e+12>>2],GROWABLE_HEAP_I32()[e+8>>2],GROWABLE_HEAP_I32()[e+4>>2],GROWABLE_HEAP_I32()[e>>2],0),r=GROWABLE_HEAP_I32()[e+32>>2],n=t.getTimezoneOffset(),a=new Date(t.getFullYear(),0,1),o=new Date(t.getFullYear(),6,1).getTimezoneOffset(),i=a.getTimezoneOffset(),s=Math.min(i,o);if(r<0)GROWABLE_HEAP_I32()[e+32>>2]=Number(o!=i&&s==n);else if(r>0!=(s==n)){var _=Math.max(i,o),l=r>0?s:_;t.setTime(t.getTime()+6e4*(l-n))}GROWABLE_HEAP_I32()[e+24>>2]=t.getDay();var m=0|ydayFromDate(t);return GROWABLE_HEAP_I32()[e+28>>2]=m,GROWABLE_HEAP_I32()[e>>2]=t.getSeconds(),GROWABLE_HEAP_I32()[e+4>>2]=t.getMinutes(),GROWABLE_HEAP_I32()[e+8>>2]=t.getHours(),GROWABLE_HEAP_I32()[e+12>>2]=t.getDate(),GROWABLE_HEAP_I32()[e+16>>2]=t.getMonth(),GROWABLE_HEAP_I32()[e+20>>2]=t.getYear(),t.getTime()/1e3})();return setTempRet0((tempDouble=t,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)),t>>>0};function __mmap_js(e,t,r,n,a,o,i,s){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(17,1,e,t,r,n,a,o,i,s);var _=convertI32PairToI53Checked(a,o);try{if(isNaN(_))return 61;var l=SYSCALLS.getStreamFromFD(n),m=FS.mmap(l,e,_,t,r),u=m.ptr;return GROWABLE_HEAP_I32()[i>>2]=m.allocated,GROWABLE_HEAP_U32()[s>>2]=u,0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}function __munmap_js(e,t,r,n,a,o,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(18,1,e,t,r,n,a,o,i);var s=convertI32PairToI53Checked(o,i);try{if(isNaN(s))return 61;var _=SYSCALLS.getStreamFromFD(a);2&r&&SYSCALLS.doMsync(e,_,t,n,s),FS.munmap(_)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.errno}}var _emscripten_get_now,stringToNewUTF8=e=>{var t=lengthBytesUTF8(e)+1,r=_malloc(t);return r&&stringToUTF8(e,r,t),r},__tzset_js=(e,t,r)=>{var n=(new Date).getFullYear(),a=new Date(n,0,1),o=new Date(n,6,1),i=a.getTimezoneOffset(),s=o.getTimezoneOffset(),_=Math.max(i,s);function l(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}GROWABLE_HEAP_U32()[e>>2]=60*_,GROWABLE_HEAP_I32()[t>>2]=Number(i!=s);var m=l(a),u=l(o),c=stringToNewUTF8(m),d=stringToNewUTF8(u);s<i?(GROWABLE_HEAP_U32()[r>>2]=c,GROWABLE_HEAP_U32()[r+4>>2]=d):(GROWABLE_HEAP_U32()[r>>2]=d,GROWABLE_HEAP_U32()[r+4>>2]=c)},_abort=()=>{abort("")},readEmAsmArgsArray=[],readEmAsmArgs=(e,t)=>{var r;for(readEmAsmArgsArray.length=0;r=GROWABLE_HEAP_U8()[e++];){var n=105!=r;t+=(n&=112!=r)&&t%8?4:0,readEmAsmArgsArray.push(112==r?GROWABLE_HEAP_U32()[t>>2]:105==r?GROWABLE_HEAP_I32()[t>>2]:GROWABLE_HEAP_F64()[t>>3]),t+=n?8:4}return readEmAsmArgsArray},runEmAsmFunction=(e,t,r)=>{var n=readEmAsmArgs(t,r);return ASM_CONSTS[e].apply(null,n)},_emscripten_asm_const_int=(e,t,r)=>runEmAsmFunction(e,t,r),_emscripten_asm_const_ptr=(e,t,r)=>runEmAsmFunction(e,t,r),warnOnce=e=>{warnOnce.shown||(warnOnce.shown={}),warnOnce.shown[e]||(warnOnce.shown[e]=1,err(e))},_emscripten_check_blocking_allowed=()=>{},_emscripten_date_now=()=>Date.now(),_emscripten_errn=(e,t)=>err(UTF8ToString(e,t)),runtimeKeepalivePush=()=>{runtimeKeepaliveCounter+=1},_emscripten_exit_with_live_runtime=()=>{throw runtimeKeepalivePush(),"unwind"},getHeapMax=()=>2147483648,_emscripten_get_heap_max=()=>getHeapMax();_emscripten_get_now=()=>performance.timeOrigin+performance.now();var reallyNegative=e=>e<0||0===e&&1/e==-1/0,convertI32PairToI53=(e,t)=>(e>>>0)+4294967296*t,convertU32PairToI53=(e,t)=>(e>>>0)+4294967296*(t>>>0),reSign=(e,t)=>{if(e<=0)return e;var r=t<=32?Math.abs(1<<t-1):Math.pow(2,t-1);return e>=r&&(t<=32||e>r)&&(e=-2*r+e),e},unSign=(e,t)=>e>=0?e:t<=32?2*Math.abs(1<<t-1)+e:Math.pow(2,t)+e,strLen=e=>{for(var t=e;GROWABLE_HEAP_U8()[t];)++t;return t-e},formatString=(e,t)=>{var r=e,n=t;function a(e){var t;return n=function(e,t){return"double"!==t&&"i64"!==t||7&e&&(e+=4),e}(n,e),"double"===e?(t=GROWABLE_HEAP_F64()[n>>3],n+=8):"i64"==e?(t=[GROWABLE_HEAP_I32()[n>>2],GROWABLE_HEAP_I32()[n+4>>2]],n+=8):(e="i32",t=GROWABLE_HEAP_I32()[n>>2],n+=4),t}for(var o,i,s,_=[];;){var l=r;if(0===(o=GROWABLE_HEAP_I8()[r|0]))break;if(i=GROWABLE_HEAP_I8()[r+1|0],37==o){var m=!1,u=!1,c=!1,d=!1,E=!1;e:for(;;){switch(i){case 43:m=!0;break;case 45:u=!0;break;case 35:c=!0;break;case 48:if(d)break e;d=!0;break;case 32:E=!0;break;default:break e}r++,i=GROWABLE_HEAP_I8()[r+1|0]}var f=0;if(42==i)f=a("i32"),r++,i=GROWABLE_HEAP_I8()[r+1|0];else for(;i>=48&&i<=57;)f=10*f+(i-48),r++,i=GROWABLE_HEAP_I8()[r+1|0];var h,g=!1,p=-1;if(46==i){if(p=0,g=!0,r++,42==(i=GROWABLE_HEAP_I8()[r+1|0]))p=a("i32"),r++;else for(;;){var S=GROWABLE_HEAP_I8()[r+1|0];if(S<48||S>57)break;p=10*p+(S-48),r++}i=GROWABLE_HEAP_I8()[r+1|0]}switch(p<0&&(p=6,g=!1),String.fromCharCode(i)){case"h":104==GROWABLE_HEAP_I8()[r+2|0]?(r++,h=1):h=2;break;case"l":108==GROWABLE_HEAP_I8()[r+2|0]?(r++,h=8):h=4;break;case"L":case"q":case"j":h=8;break;case"z":case"t":case"I":h=4;break;default:h=null}switch(h&&r++,i=GROWABLE_HEAP_I8()[r+1|0],String.fromCharCode(i)){case"d":case"i":case"u":case"o":case"x":case"X":case"p":var v=100==i||105==i;if(s=a("i"+8*(h=h||4)),8==h&&(s=117==i?convertU32PairToI53(s[0],s[1]):convertI32PairToI53(s[0],s[1])),h<=4){var y=Math.pow(256,h)-1;s=(v?reSign:unSign)(s&y,8*h)}var F=Math.abs(s),R="";if(100==i||105==i)T=reSign(s,8*h).toString(10);else if(117==i)T=unSign(s,8*h).toString(10),s=Math.abs(s);else if(111==i)T=(c?"0":"")+F.toString(8);else if(120==i||88==i){if(R=c&&0!=s?"0x":"",s<0){s=-s,T=(F-1).toString(16);for(var D=[],A=0;A<T.length;A++)D.push((15-parseInt(T[A],16)).toString(16));for(T=D.join("");T.length<2*h;)T="f"+T}else T=F.toString(16);88==i&&(R=R.toUpperCase(),T=T.toUpperCase())}else 112==i&&(0===F?T="(nil)":(R="0x",T=F.toString(16)));if(g)for(;T.length<p;)T="0"+T;for(s>=0&&(m?R="+"+R:E&&(R=" "+R)),"-"==T.charAt(0)&&(R="-"+R,T=T.substr(1));R.length+T.length<f;)u?T+=" ":d?T="0"+T:R=" "+R;(T=R+T).split("").forEach(function(e){_.push(e.charCodeAt(0))});break;case"f":case"F":case"e":case"E":case"g":case"G":var T;if(s=a("double"),isNaN(s))T="nan",d=!1;else if(isFinite(s)){var w=!1,b=Math.min(p,20);if(103==i||71==i){w=!0,p=p||1;var N=parseInt(s.toExponential(b).split("e")[1],10);p>N&&N>=-4?(i=(103==i?"f":"F").charCodeAt(0),p-=N+1):(i=(103==i?"e":"E").charCodeAt(0),p--),b=Math.min(p,20)}101==i||69==i?(T=s.toExponential(b),/[eE][-+]\d$/.test(T)&&(T=T.slice(0,-1)+"0"+T.slice(-1))):102!=i&&70!=i||(T=s.toFixed(b),0===s&&reallyNegative(s)&&(T="-"+T));var M=T.split("e");if(w&&!c)for(;M[0].length>1&&M[0].includes(".")&&("0"==M[0].slice(-1)||"."==M[0].slice(-1));)M[0]=M[0].slice(0,-1);else for(c&&-1==T.indexOf(".")&&(M[0]+=".");p>b++;)M[0]+="0";T=M[0]+(M.length>1?"e"+M[1]:""),69==i&&(T=T.toUpperCase()),s>=0&&(m?T="+"+T:E&&(T=" "+T))}else T=(s<0?"-":"")+"inf",d=!1;for(;T.length<f;)u?T+=" ":T=!d||"-"!=T[0]&&"+"!=T[0]?(d?"0":" ")+T:T[0]+"0"+T.slice(1);i<97&&(T=T.toUpperCase()),T.split("").forEach(function(e){_.push(e.charCodeAt(0))});break;case"s":var I=a("i8*"),P=I?strLen(I):6;if(g&&(P=Math.min(P,p)),!u)for(;P<f--;)_.push(32);if(I)for(A=0;A<P;A++)_.push(GROWABLE_HEAP_U8()[I++|0]);else _=_.concat(intArrayFromString("(null)".substr(0,P),!0));if(u)for(;P<f--;)_.push(32);break;case"c":for(u&&_.push(a("i8"));--f>0;)_.push(32);u||_.push(a("i8"));break;case"n":var L=a("i32*");GROWABLE_HEAP_I32()[L>>2]=_.length;break;case"%":_.push(o);break;default:for(A=l;A<r+2;A++)_.push(GROWABLE_HEAP_I8()[A|0])}r+=2}else _.push(o),r+=1}return _};function jsStackTrace(){var e=new Error;if(!e.stack){try{throw new Error}catch(t){e=t}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}function getCallstack(e){var t=jsStackTrace(),r=t.lastIndexOf("_emscripten_log"),n=t.lastIndexOf("_emscripten_get_callstack"),a=t.indexOf("\n",Math.max(r,n))+1;t=t.slice(a),8&e&&"undefined"==typeof emscripten_source_map&&(warnOnce('Source map information is not available, emscripten_log with EM_LOG_C_STACK will be ignored. Build with "--pre-js $EMSCRIPTEN/src/emscripten-source-map.min.js" linker flag to add source map loading to code.'),e^=8,e|=16);var o=t.split("\n");t="";var i=new RegExp("\\s*(.*?)@(.*?):([0-9]+):([0-9]+)"),s=new RegExp("\\s*(.*?)@(.*):(.*)(:(.*))?"),_=new RegExp("\\s*at (.*?) \\((.*):(.*):(.*)\\)");for(var l in o){var m=o[l],u="",c="",d=0,E=0,f=_.exec(m);if(f&&5==f.length)u=f[1],c=f[2],d=f[3],E=f[4];else{if((f=i.exec(m))||(f=s.exec(m)),!(f&&f.length>=4)){t+=m+"\n";continue}u=f[1],c=f[2],d=f[3],E=0|f[4]}var h=!1;if(8&e){var g=emscripten_source_map.originalPositionFor({line:d,column:E});(h=g&&g.source)&&(64&e&&(g.source=g.source.substring(g.source.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=` at ${u} (${g.source}:${g.line}:${g.column})\n`)}(16&e||!h)&&(64&e&&(c=c.substring(c.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=(h?` = ${u}`:` at ${u}`)+` (${c}:${d}:${E})\n`)}return t=t.replace(/\s+$/,"")}var emscriptenLog=(e,t)=>{24&e&&(t=t.replace(/\s+$/,""),t+=(t.length>0?"\n":"")+getCallstack(e)),1&e?4&e||2&e?err(t):out(t):6&e?err(t):out(t)},_emscripten_log=(e,t,r)=>{var n=formatString(t,r),a=UTF8ArrayToString(n,0);emscriptenLog(e,a)},_emscripten_num_logical_cores=()=>navigator.hardwareConcurrency,growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=GROWABLE_HEAP_U8().length;if((e>>>=0)<=t)return!1;var r=getHeapMax();if(e>r)return!1;for(var n=(e,t)=>e+(t-e%t)%t,a=1;a<=4;a*=2){var o=t*(1+.2/a);o=Math.min(o,e+100663296);var i=Math.min(r,n(Math.max(e,o),65536));if(growMemory(i))return!0}return!1},ENV={},getExecutableName=()=>thisProgram||"./this.program",getEnvStrings=()=>{if(!getEnvStrings.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",_:getExecutableName()};for(var t in ENV)void 0===ENV[t]?delete e[t]:e[t]=ENV[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);getEnvStrings.strings=r}return getEnvStrings.strings},stringToAscii=(e,t)=>{for(var r=0;r<e.length;++r)GROWABLE_HEAP_I8()[t++|0]=e.charCodeAt(r);GROWABLE_HEAP_I8()[t|0]=0},_environ_get=function(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(19,1,e,t);var r=0;return getEnvStrings().forEach((n,a)=>{var o=t+r;GROWABLE_HEAP_U32()[e+4*a>>2]=o,stringToAscii(n,o),r+=n.length+1}),0},_environ_sizes_get=function(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(20,1,e,t);var r=getEnvStrings();GROWABLE_HEAP_U32()[e>>2]=r.length;var n=0;return r.forEach(e=>n+=e.length+1),GROWABLE_HEAP_U32()[t>>2]=n,0};function _fd_close(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(21,1,e);try{var t=SYSCALLS.getStreamFromFD(e);return FS.close(t),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}var doReadv=(e,t,r,n)=>{for(var a=0,o=0;o<r;o++){var i=GROWABLE_HEAP_U32()[t>>2],s=GROWABLE_HEAP_U32()[t+4>>2];t+=8;var _=FS.read(e,GROWABLE_HEAP_I8(),i,s,n);if(_<0)return-1;if(a+=_,_<s)break;void 0!==n&&(n+=_)}return a};function _fd_read(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(22,1,e,t,r,n);try{var a=SYSCALLS.getStreamFromFD(e),o=doReadv(a,t,r);return GROWABLE_HEAP_U32()[n>>2]=o,0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_seek(e,t,r,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(23,1,e,t,r,n,a);var o=convertI32PairToI53Checked(t,r);try{if(isNaN(o))return 61;var i=SYSCALLS.getStreamFromFD(e);return FS.llseek(i,o,n),tempI64=[i.position>>>0,(tempDouble=i.position,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[a>>2]=tempI64[0],GROWABLE_HEAP_I32()[a+4>>2]=tempI64[1],i.getdents&&0===o&&0===n&&(i.getdents=null),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}var doWritev=(e,t,r,n)=>{for(var a=0,o=0;o<r;o++){var i=GROWABLE_HEAP_U32()[t>>2],s=GROWABLE_HEAP_U32()[t+4>>2];t+=8;var _=FS.write(e,GROWABLE_HEAP_I8(),i,s,n);if(_<0)return-1;a+=_,void 0!==n&&(n+=_)}return a};function _fd_write(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(24,1,e,t,r,n);try{var a=SYSCALLS.getStreamFromFD(e),o=doWritev(a,t,r);return GROWABLE_HEAP_U32()[n>>2]=o,0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.errno}}var functionsInTableMap,arraySum=(e,t)=>{for(var r=0,n=0;n<=t;r+=e[n++]);return r},MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31],MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31],addDays=(e,t)=>{for(var r=new Date(e.getTime());t>0;){var n=isLeapYear(r.getFullYear()),a=r.getMonth(),o=(n?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[a];if(!(t>o-r.getDate()))return r.setDate(r.getDate()+t),r;t-=o-r.getDate()+1,r.setDate(1),a<11?r.setMonth(a+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r},writeArrayToMemory=(e,t)=>{GROWABLE_HEAP_I8().set(e,t)},_strftime=(e,t,r,n)=>{var a=GROWABLE_HEAP_U32()[n+40>>2],o={tm_sec:GROWABLE_HEAP_I32()[n>>2],tm_min:GROWABLE_HEAP_I32()[n+4>>2],tm_hour:GROWABLE_HEAP_I32()[n+8>>2],tm_mday:GROWABLE_HEAP_I32()[n+12>>2],tm_mon:GROWABLE_HEAP_I32()[n+16>>2],tm_year:GROWABLE_HEAP_I32()[n+20>>2],tm_wday:GROWABLE_HEAP_I32()[n+24>>2],tm_yday:GROWABLE_HEAP_I32()[n+28>>2],tm_isdst:GROWABLE_HEAP_I32()[n+32>>2],tm_gmtoff:GROWABLE_HEAP_I32()[n+36>>2],tm_zone:a?UTF8ToString(a):""},i=UTF8ToString(r),s={"%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 _ in s)i=i.replace(new RegExp(_,"g"),s[_]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],m=["January","February","March","April","May","June","July","August","September","October","November","December"];function u(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length<t;)n=r[0]+n;return n}function c(e,t){return u(e,t,"0")}function d(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(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 f(e){var t=addDays(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),a=E(r),o=E(n);return d(a,t)<=0?d(o,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var h={"%a":e=>l[e.tm_wday].substring(0,3),"%A":e=>l[e.tm_wday],"%b":e=>m[e.tm_mon].substring(0,3),"%B":e=>m[e.tm_mon],"%C":e=>c((e.tm_year+1900)/100|0,2),"%d":e=>c(e.tm_mday,2),"%e":e=>u(e.tm_mday,2," "),"%g":e=>f(e).toString().substring(2),"%G":e=>f(e),"%H":e=>c(e.tm_hour,2),"%I":e=>{var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),c(t,2)},"%j":e=>c(e.tm_mday+arraySum(isLeapYear(e.tm_year+1900)?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,e.tm_mon-1),3),"%m":e=>c(e.tm_mon+1,2),"%M":e=>c(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>c(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var t=e.tm_yday+7-e.tm_wday;return c(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&&isLeapYear(e.tm_year)||(t=1)}}else{t=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&isLeapYear(e.tm_year%400-1))&&t++}return c(t,2)},"%w":e=>e.tm_wday,"%W":e=>{var t=e.tm_yday+7-(e.tm_wday+6)%7;return c(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 _ in i=i.replace(/%%/g,"\0\0"),h)i.includes(_)&&(i=i.replace(new RegExp(_,"g"),h[_](o)));var g=intArrayFromString(i=i.replace(/\0\0/g,"%"),!1);return g.length>t?0:(writeArrayToMemory(g,e),g.length-1)},_strftime_l=(e,t,r,n,a)=>_strftime(e,t,r,n),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},n=1;n<e.length;++n)r.parameters.push(t[e[n]]);return r},generateFuncType=(e,t)=>{var r=e.slice(0,1),n=e.slice(1),a={i:127,p:127,j:126,f:125,d:124};t.push(96),uleb128Encode(n.length,t);for(var o=0;o<n.length;++o)t.push(a[n[o]]);"v"==r?t.push(0):t.push(1,a[r])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,n),n.push.apply(n,r),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var a=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(a,{e:{f:e}}).exports.f},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}},getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>wasmTable.set(e,t),addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;var a=convertJsFunctionToWasm(e,t);setWasmTableEntry(n,a)}return functionsInTableMap.set(e,n),n},stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r};PThread.init();var FSNode=function(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=FS.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n},readMode=365,writeMode=146;Object.defineProperties(FSNode.prototype,{read:{get:function(){return(this.mode&readMode)===readMode},set:function(e){e?this.mode|=readMode:this.mode&=~readMode}},write:{get:function(){return(this.mode&writeMode)===writeMode},set:function(e){e?this.mode|=writeMode:this.mode&=~writeMode}},isFolder:{get:function(){return FS.isDir(this.mode)}},isDevice:{get:function(){return FS.isChrdev(this.mode)}}}),FS.FSNode=FSNode,FS.createPreloadedFile=FS_createPreloadedFile,FS.staticInit();var calledRun,proxiedFunctionTable=[_proc_exit,exitOnMainThread,pthreadCreateProxied,___syscall_faccessat,___syscall_fcntl64,___syscall_fstat64,___syscall_getcwd,___syscall_getdents64,___syscall_ioctl,___syscall_lstat64,___syscall_mkdirat,___syscall_newfstatat,___syscall_openat,___syscall_readlinkat,___syscall_rmdir,___syscall_stat64,___syscall_unlinkat,__mmap_js,__munmap_js,_environ_get,_environ_sizes_get,_fd_close,_fd_read,_fd_seek,_fd_write],wasmImports={DDN_ConvertElement:_DDN_ConvertElement,DDN_CreateDDNResult:_DDN_CreateDDNResult,DDN_CreateDDNResultItem:_DDN_CreateDDNResultItem,DDN_CreateIntermediateResultUnits:_DDN_CreateIntermediateResultUnits,DDN_CreateParameters:_DDN_CreateParameters,DDN_CreateTargetRoiDefConditionFilter:_DDN_CreateTargetRoiDefConditionFilter,DDN_CreateTaskAlgEntity:_DDN_CreateTaskAlgEntity,DDN_HasSection:_DDN_HasSection,DDN_ReadTaskSetting:_DDN_ReadTaskSetting,DLR_ConvertElement:_DLR_ConvertElement,DLR_CreateBufferedCharacterItemSet:_DLR_CreateBufferedCharacterItemSet,DLR_CreateIntermediateResultUnits:_DLR_CreateIntermediateResultUnits,DLR_CreateParameters:_DLR_CreateParameters,DLR_CreateRecognizedTextLinesResult:_DLR_CreateRecognizedTextLinesResult,DLR_CreateTargetRoiDefConditionFilter:_DLR_CreateTargetRoiDefConditionFilter,DLR_CreateTaskAlgEntity:_DLR_CreateTaskAlgEntity,DLR_CreateTextLineResultItem:_DLR_CreateTextLineResultItem,DLR_ReadTaskSetting:_DLR_ReadTaskSetting,DMImage_CloseFile:_DMImage_CloseFile,DMImage_GetDIB:_DMImage_GetDIB,DMImage_GetFormatFromHandle:_DMImage_GetFormatFromHandle,DMImage_GetFormatFromStream:_DMImage_GetFormatFromStream,DMImage_GetOrientation:_DMImage_GetOrientation,DMImage_OpenFile:_DMImage_OpenFile,_Z22DM_GetNodeFromFormatID15DM_IMAGE_FORMAT:__Z22DM_GetNodeFromFormatID15DM_IMAGE_FORMAT,_ZN11DMImageNode9SetHandleEPvj:__ZN11DMImageNode9SetHandleEPvj,_ZN19LabelRecognizerWasm10getVersionEv:__ZN19LabelRecognizerWasm10getVersionEv,_ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv:__ZN19LabelRecognizerWasm12DlrWasmClass15clearVerifyListEv,_ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv:__ZN19LabelRecognizerWasm12DlrWasmClass22getDuplicateForgetTimeEv,_ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi:__ZN19LabelRecognizerWasm12DlrWasmClass22setDuplicateForgetTimeEi,_ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb:__ZN19LabelRecognizerWasm12DlrWasmClass25enableResultDeduplicationEb,_ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb:__ZN19LabelRecognizerWasm12DlrWasmClass27getJvFromTextLineResultItemEPKN9dynamsoft3dlr19CTextLineResultItemEPKcb,_ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb:__ZN19LabelRecognizerWasm12DlrWasmClass29enableResultCrossVerificationEb,_ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii:__ZN19LabelRecognizerWasm12DlrWasmClass34setResultCrossVerificationCriteriaEii,_ZN19LabelRecognizerWasm12DlrWasmClassC1Ev:__ZN19LabelRecognizerWasm12DlrWasmClassC1Ev,_ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE:__ZN19LabelRecognizerWasm24getJvFromCharacterResultEPKN9dynamsoft3dlr16CCharacterResultE,_ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE:__ZN19LabelRecognizerWasm26getJvBufferedCharacterItemEPKN9dynamsoft3dlr22CBufferedCharacterItemE,_ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE:__ZN19LabelRecognizerWasm27getJvAuxiliaryRegionElementEPKN9dynamsoft20intermediate_results23CAuxiliaryRegionElementE,_ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE:__ZN19LabelRecognizerWasm29getJvLocalizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results25CLocalizedTextLineElementE,_ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE:__ZN19LabelRecognizerWasm30getJvRecognizedTextLineElementEPKN9dynamsoft3dlr20intermediate_results26CRecognizedTextLineElementE,_ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE:__ZN19LabelRecognizerWasm32getJvFromTextLineResultItem_JustEPKN9dynamsoft3dlr19CTextLineResultItemE,_ZN22DocumentNormalizerWasm10getVersionEv:__ZN22DocumentNormalizerWasm10getVersionEv,_ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv:__ZN22DocumentNormalizerWasm12DdnWasmClass15clearVerifyListEv,_ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi:__ZN22DocumentNormalizerWasm12DdnWasmClass22getDuplicateForgetTimeEi,_ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii:__ZN22DocumentNormalizerWasm12DdnWasmClass22setDuplicateForgetTimeEii,_ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib:__ZN22DocumentNormalizerWasm12DdnWasmClass25enableResultDeduplicationEib,_ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib:__ZN22DocumentNormalizerWasm12DdnWasmClass29enableResultCrossVerificationEib,_ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb:__ZN22DocumentNormalizerWasm12DdnWasmClass31getJvFromDetectedQuadResultItemEPKN9dynamsoft3ddn23CDetectedQuadResultItemEPKcb,_ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb:__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromDeskewedImageResultItemEPKN9dynamsoft3ddn24CDeskewedImageResultItemEPKcb,_ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE:__ZN22DocumentNormalizerWasm12DdnWasmClass32getJvFromEnhancedImageResultItemEPKN9dynamsoft3ddn24CEnhancedImageResultItemE,_ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii:__ZN22DocumentNormalizerWasm12DdnWasmClass34setResultCrossVerificationCriteriaEiii,_ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev:__ZN22DocumentNormalizerWasm12DdnWasmClassC1Ev,_ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE:__ZN22DocumentNormalizerWasm24getJvDetectedQuadElementEPKN9dynamsoft3ddn20intermediate_results20CDetectedQuadElementE,_ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE:__ZN22DocumentNormalizerWasm25getJvDeskewedImageElementEPKN9dynamsoft3ddn20intermediate_results21CDeskewedImageElementE,_ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE:__ZN22DocumentNormalizerWasm25getJvEnhancedImageElementEPKN9dynamsoft3ddn20intermediate_results21CEnhancedImageElementE,_ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE:__ZN22DocumentNormalizerWasm36getJvFromDetectedQuadResultItem_JustEPKN9dynamsoft3ddn23CDetectedQuadResultItemE,_ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE:__ZN22DocumentNormalizerWasm37getJvFromDeskewedImageResultItem_JustEPKN9dynamsoft3ddn24CDeskewedImageResultItemE,_ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv:__ZN9dynamsoft10id_utility22CIdentityUtilityModule10GetVersionEv,__assert_fail:___assert_fail,__cxa_begin_catch:___cxa_begin_catch,__cxa_end_catch:___cxa_end_catch,__cxa_find_matching_catch_2:___cxa_find_matching_catch_2,__cxa_find_matching_catch_3:___cxa_find_matching_catch_3,__cxa_rethrow:___cxa_rethrow,__cxa_rethrow_primary_exception:___cxa_rethrow_primary_exception,__cxa_throw:___cxa_throw,__cxa_uncaught_exceptions:___cxa_uncaught_exceptions,__emscripten_init_main_thread_js:___emscripten_init_main_thread_js,__emscripten_thread_cleanup:___emscripten_thread_cleanup,__pthread_create_js:___pthread_create_js,__resumeException:___resumeException,__syscall_faccessat:___syscall_faccessat,__syscall_fcntl64:___syscall_fcntl64,__syscall_fstat64:___syscall_fstat64,__syscall_getcwd:___syscall_getcwd,__syscall_getdents64:___syscall_getdents64,__syscall_ioctl:___syscall_ioctl,__syscall_lstat64:___syscall_lstat64,__syscall_mkdirat:___syscall_mkdirat,__syscall_newfstatat:___syscall_newfstatat,__syscall_openat:___syscall_openat,__syscall_readlinkat:___syscall_readlinkat,__syscall_rmdir:___syscall_rmdir,__syscall_stat64:___syscall_stat64,__syscall_unlinkat:___syscall_unlinkat,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_notify_mailbox_postmessage:__emscripten_notify_mailbox_postmessage,_emscripten_receive_on_main_thread_js:__emscripten_receive_on_main_thread_js,_emscripten_thread_mailbox_await:__emscripten_thread_mailbox_await,_emscripten_thread_set_strongref:__emscripten_thread_set_strongref,_gmtime_js:__gmtime_js,_localtime_js:__localtime_js,_mktime_js:__mktime_js,_mmap_js:__mmap_js,_munmap_js:__munmap_js,_tzset_js:__tzset_js,abort:_abort,emscripten_asm_const_int:_emscripten_asm_const_int,emscripten_asm_const_ptr:_emscripten_asm_const_ptr,emscripten_check_blocking_allowed:_emscripten_check_blocking_allowed,emscripten_date_now:_emscripten_date_now,emscripten_errn:_emscripten_errn,emscripten_exit_with_live_runtime:_emscripten_exit_with_live_runtime,emscripten_get_heap_max:_emscripten_get_heap_max,emscripten_get_now:_emscripten_get_now,emscripten_log:_emscripten_log,emscripten_num_logical_cores:_emscripten_num_logical_cores,emscripten_resize_heap:_emscripten_resize_heap,environ_get:_environ_get,environ_sizes_get:_environ_sizes_get,exit:_exit,fd_close:_fd_close,fd_read:_fd_read,fd_seek:_fd_seek,fd_write:_fd_write,invoke_diii:invoke_diii,invoke_fiii:invoke_fiii,invoke_i:invoke_i,invoke_ii:invoke_ii,invoke_iii:invoke_iii,invoke_iiii:invoke_iiii,invoke_iiiii:invoke_iiiii,invoke_iiiiid:invoke_iiiiid,invoke_iiiiii:invoke_iiiiii,invoke_iiiiiii:invoke_iiiiiii,invoke_iiiiiiii:invoke_iiiiiiii,invoke_iiiiiiiiiiii:invoke_iiiiiiiiiiii,invoke_iiiiij:invoke_iiiiij,invoke_j:invoke_j,invoke_ji:invoke_ji,invoke_jii:invoke_jii,invoke_jiiii:invoke_jiiii,invoke_v:invoke_v,invoke_vi:invoke_vi,invoke_vii:invoke_vii,invoke_viid:invoke_viid,invoke_viii:invoke_viii,invoke_viiii:invoke_viiii,invoke_viiiiiii:invoke_viiiiiii,invoke_viiiiiiiiii:invoke_viiiiiiiiii,invoke_viiiiiiiiiiiiiii:invoke_viiiiiiiiiiiiiii,memory:wasmMemory,postThread:postThread,strftime:_strftime,strftime_l:_strftime_l},wasmExports=createWasm(),___start_em_js=Module.___start_em_js=800698,___stop_em_js=Module.___stop_em_js=800931;function invoke_iiii(e,t,r,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ii(e,t){var r=stackSave();try{return getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iii(e,t,r){var n=stackSave();try{return getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vii(e,t,r){var n=stackSave();try{getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vi(e,t){var r=stackSave();try{getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_v(e){var t=stackSave();try{getWasmTableEntry(e)()}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiii(e,t,r,n,a,o,i){var s=stackSave();try{return getWasmTableEntry(e)(t,r,n,a,o,i)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiii(e,t,r,n,a){var o=stackSave();try{getWasmTableEntry(e)(t,r,n,a)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiii(e,t,r,n,a,o){var i=stackSave();try{return getWasmTableEntry(e)(t,r,n,a,o)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiid(e,t,r,n,a,o){var i=stackSave();try{return getWasmTableEntry(e)(t,r,n,a,o)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viii(e,t,r,n){var a=stackSave();try{getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiii(e,t,r,n,a,o,i,s){var _=stackSave();try{return getWasmTableEntry(e)(t,r,n,a,o,i,s)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiii(e,t,r,n,a){var o=stackSave();try{return getWasmTableEntry(e)(t,r,n,a)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_fiii(e,t,r,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_diii(e,t,r,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_i(e){var t=stackSave();try{return getWasmTableEntry(e)()}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiii(e,t,r,n,a,o,i,s){var _=stackSave();try{getWasmTableEntry(e)(t,r,n,a,o,i,s)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiii(e,t,r,n,a,o,i,s,_,l,m,u){var c=stackSave();try{return getWasmTableEntry(e)(t,r,n,a,o,i,s,_,l,m,u)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiii(e,t,r,n,a,o,i,s,_,l,m){var u=stackSave();try{getWasmTableEntry(e)(t,r,n,a,o,i,s,_,l,m)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiiiiiii(e,t,r,n,a,o,i,s,_,l,m,u,c,d,E,f){var h=stackSave();try{getWasmTableEntry(e)(t,r,n,a,o,i,s,_,l,m,u,c,d,E,f)}catch(e){if(stackRestore(h),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viid(e,t,r,n){var a=stackSave();try{getWasmTableEntry(e)(t,r,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_j(e){var t=stackSave();try{return dynCall_j(e)}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ji(e,t){var r=stackSave();try{return dynCall_ji(e,t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jii(e,t,r){var n=stackSave();try{return dynCall_jii(e,t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiij(e,t,r,n,a,o,i){var s=stackSave();try{return dynCall_iiiiij(e,t,r,n,a,o,i)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiii(e,t,r,n,a){var o=stackSave();try{return dynCall_jiiii(e,t,r,n,a)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function run(){if(!(runDependencies>0)){if(ENVIRONMENT_IS_PTHREAD)return initRuntime(),void startWorker(Module);preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout(function(){setTimeout(function(){Module.setStatus("")},1),e()},1)):e())}function e(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),postRun()))}}if(Module.keepRuntimeAlive=keepRuntimeAlive,Module.wasmMemory=wasmMemory,Module.addFunction=addFunction,Module.stringToUTF8OnStack=stringToUTF8OnStack,Module.ExitStatus=ExitStatus,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();run();