[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.129.211.138: ~ $
(()=>{var __webpack_modules__={1533:module=>{var Vips=(()=>{var _scriptName="undefined"!=typeof document?document.currentScript?.src:void 0;return function(moduleArg={}){var moduleRtn,l=moduleArg,aa,ba,ca=new Promise(((e,r)=>{aa=e,ba=r})),da="object"==typeof window,ea="function"==typeof importScripts,fa="object"==typeof process&&"object"==typeof process.fc&&"string"==typeof process.fc.node,r=ea&&"em-pthread"==self.name;l.dynamicLibraries=l.dynamicLibraries||["vips-jxl.wasm","vips-heif.wasm"],l.workaroundCors&&(l.mainScriptUrlOrBlob=l.mainScriptUrlOrBlob||URL.createObjectURL(new Blob([`importScripts('${_scriptName}');`],{type:"application/javascript"})));var ja=Object.assign({},l),ka=[],la="./this.program",ma=(e,r)=>{throw r},na;na=ea?self.location.href:da?_scriptName:void 0;var oa="",qa,ra;function pa(e){return l.locateFile?l.locateFile(e,oa):oa+e}(da||ea)&&(na.startsWith("blob:")||(oa=na.substr(0,na.replace(/[?#].*/,"").lastIndexOf("/")+1)),ea&&(ra=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),qa=e=>fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(Error(e.status+" : "+e.url)))));var sa=l.print||console.log.bind(console),w=l.printErr||console.error.bind(console);if(Object.assign(l,ja),ja=null,l.arguments&&(ka=l.arguments),l.thisProgram&&(la=l.thisProgram),l.quit&&(ma=l.quit),r){var ta,ua=!1;function a(...e){console.error(e.join(" "))}function b(e){try{var r=e.data,t=r.cmd;if("load"===t){let e=[];self.onmessage=r=>e.push(r),self.startWorker=()=>{postMessage({cmd:"loaded"});for(let r of e)b(r);self.onmessage=b},xa=r.dynamicLibraries,ya=r.sharedModules;for(const e of r.handlers)l[e]&&!l[e].proxy||(l[e]=(...r)=>{postMessage({Pa:"callHandler",xc:e,kc:r})},"print"==e&&(sa=l[e]),"printErr"==e&&(w=l[e]));za=r.wasmMemory,Aa(),ta(r.wasmModule)}else if("run"===t){Ba(r.pthread_ptr,0,0,1,0,0),Ca(r.pthread_ptr),Da(),Ea(),ua||(Fa(),ua=!0);try{Ga(r.start_routine,r.arg)}catch(e){if("unwind"!=e)throw e}}else"cancel"===t?va()&&Ha(-1):"setimmediate"!==r.target&&("checkMailbox"===t?ua&&Ia():t&&(w(`worker: received unknown command ${t}`),w(r)))}catch(e){throw Ja(),e}}l.printErr||(w=a),self.alert=function(...e){postMessage({Pa:"alert",text:e.join(" "),Fc:va()})},l.instantiateWasm=(e,r)=>new Promise((e=>{ta=t=>{var n=new WebAssembly.Instance(t,wa());r(n,t),e()}})),self.onunhandledrejection=e=>{throw e.reason||e},self.onmessage=b}var xa=l.dynamicLibraries||[],Ka;l.wasmBinary&&(Ka=l.wasmBinary);var za,La,Ma=!1,Na,x,y,z,A,B,C,Oa,D,Pa,Qa;function Aa(){var e=za.buffer;l.HEAP8=x=new Int8Array(e),l.HEAP16=z=new Int16Array(e),l.HEAPU8=y=new Uint8Array(e),l.HEAPU16=A=new Uint16Array(e),l.HEAP32=B=new Int32Array(e),l.HEAPU32=C=new Uint32Array(e),l.HEAPF32=Oa=new Float32Array(e),l.HEAPF64=Qa=new Float64Array(e),l.HEAP64=D=new BigInt64Array(e),l.HEAPU64=Pa=new BigUint64Array(e)}if(!r){if(l.wasmMemory)za=l.wasmMemory;else{var Ra=l.INITIAL_MEMORY||1073741824;if(za=new WebAssembly.Memory({initial:Ra/65536,maximum:Ra/65536,shared:!0}),!(za.buffer instanceof SharedArrayBuffer))throw w("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"),fa&&w("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),Error("bad memory")}Aa()}var Sa=[],Ta=[],Ua=[],Va=[],Wa=[],Xa=[],Ya=!1,$a=!1;function ab(){Ya=!0,r||(bb(Xa),l.noFSInit||FS.init.Ea||FS.init(),FS.Ya=!1,bb(Ta))}var cb=0,db=null,eb=null;function fb(){cb++,l.monitorRunDependencies?.(cb)}function gb(){if(cb--,l.monitorRunDependencies?.(cb),0==cb&&(null!==db&&(clearInterval(db),db=null),eb)){var e=eb;eb=null,e()}}function hb(e){throw l.onAbort?.(e),w(e="Aborted("+e+")"),Ma=!0,Na=1,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),ba(e),e}var ib=e=>e.startsWith("data:application/octet-stream;base64,"),mb;class E extends Error{}class jb extends E{}class kb extends E{constructor(e){super(e),this.ba=e,e=lb(e),this.name=e[0],this.message=e[1]}}function nb(e){if(e==mb&&Ka)return new Uint8Array(Ka);if(ra)return ra(e);throw"both async and sync fetching of the wasm failed"}function ob(e){return Ka?Promise.resolve().then((()=>nb(e))):qa(e).then((e=>new Uint8Array(e)),(()=>nb(e)))}function pb(e,r,t){return ob(e).then((e=>WebAssembly.instantiate(e,r))).then(t,(e=>{w(`failed to asynchronously prepare wasm: ${e}`),hb(e)}))}function qb(e,r){var t=mb;return Ka||"function"!=typeof WebAssembly.instantiateStreaming||ib(t)||"function"!=typeof fetch?pb(t,e,r):fetch(t,{credentials:"same-origin"}).then((n=>WebAssembly.instantiateStreaming(n,e).then(r,(function(n){return w(`wasm streaming compile failed: ${n}`),w("falling back to ArrayBuffer instantiation"),pb(t,e,r)}))))}function wa(){return{env:F={__assert_fail:rb,__call_sighandler:sb,__cxa_begin_catch:tb,__cxa_end_catch:ub,__cxa_find_matching_catch_2:vb,__cxa_find_matching_catch_3:wb,__cxa_rethrow:xb,__cxa_throw:yb,__cxa_uncaught_exceptions:zb,__heap_base:Ab,__indirect_function_table:Bb,__lsan_ignore_object:Cb,__memory_base:Db,__pthread_create_js:Eb,__resumeException:Fb,__stack_high:Gb,__stack_low:Hb,__stack_pointer:Ib,__syscall_dup:Jb,__syscall_faccessat:Kb,__syscall_fcntl64:Lb,__syscall_fstat64:Mb,__syscall_ftruncate64:Nb,__syscall_getcwd:Ob,__syscall_ioctl:Pb,__syscall_lstat64:Qb,__syscall_newfstatat:Rb,__syscall_openat:Sb,__syscall_poll:Tb,__syscall_rmdir:Ub,__syscall_stat64:Vb,__syscall_unlinkat:Wb,__table_base:Xb,_abort_js:Yb,_dlopen_js:Zb,_dlsym_catchup_js:$b,_dlsym_js:ac,_embind_finalize_value_object:bc,_embind_register_arithmetic_vector:cc,_embind_register_bigint:dc,_embind_register_bool:ec,_embind_register_class:fc,_embind_register_class_class_function:gc,_embind_register_class_constructor:hc,_embind_register_class_function:ic,_embind_register_class_property:jc,_embind_register_emval:kc,_embind_register_enum:lc,_embind_register_enum_value:mc,_embind_register_float:nc,_embind_register_function:oc,_embind_register_integer:pc,_embind_register_memory_view:qc,_embind_register_std_string:rc,_embind_register_std_wstring:sc,_embind_register_value_object:tc,_embind_register_value_object_field:uc,_embind_register_void:vc,_emscripten_dlopen_js:wc,_emscripten_dlsync_threads:xc,_emscripten_dlsync_threads_async:yc,_emscripten_get_dynamic_libraries_js:zc,_emscripten_get_now_is_monotonic:Ac,_emscripten_init_main_thread_js:Bc,_emscripten_notify_mailbox_postmessage:Cc,_emscripten_receive_on_main_thread_js:Dc,_emscripten_runtime_keepalive_clear:Ec,_emscripten_thread_cleanup:Fc,_emscripten_thread_exit_joinable:Gc,_emscripten_thread_mailbox_await:Ca,_emscripten_thread_set_strongref:Hc,_emscripten_throw_longjmp:Ic,_emval_as:Jc,_emval_call:Kc,_emval_decref:Lc,_emval_get_global:Mc,_emval_get_method_caller:Nc,_emval_get_module_property:Oc,_emval_get_property:Pc,_emval_incref:Qc,_emval_instanceof:Rc,_emval_is_number:Sc,_emval_is_string:Tc,_emval_new_cstring:Uc,_emval_run_destructors:Vc,_emval_set_property:Wc,_emval_take_value:Xc,_emval_typeof:Yc,_gmtime_js:Zc,_localtime_js:$c,_mmap_js:ad,_munmap_js:bd,_tzset_js:cd,emscripten_check_blocking_allowed:dd,emscripten_console_error:ed,emscripten_date_now:fd,emscripten_err:gd,emscripten_exit_with_live_runtime:hd,emscripten_get_heap_max:jd,emscripten_get_now:kd,emscripten_num_logical_cores:ld,emscripten_promise_destroy:md,emscripten_promise_resolve:nd,emscripten_resize_heap:od,environ_get:pd,environ_sizes_get:qd,exit:rd,fd_close:sd,fd_fdstat_get:td,fd_read:ud,fd_seek:vd,fd_write:wd,ffi_call_js:xd,getentropy:yd,heif_error_success:zd,heif_image_release:Ad,heif_nclx_color_profile_free:Bd,invoke_di:Cd,invoke_dii:Dd,invoke_diii:Ed,invoke_diiii:Fd,invoke_fiii:Gd,invoke_i:Hd,invoke_ii:Id,invoke_iii:Jd,invoke_iiid:Kd,invoke_iiii:Ld,invoke_iiiii:Md,invoke_iiiiid:Nd,invoke_iiiiii:Od,invoke_iiiiiii:Pd,invoke_iiiiiiii:Qd,invoke_iiiiiiiiiii:Rd,invoke_iiiiiiiiiiii:Sd,invoke_iiiiiiiiiiiii:Td,invoke_iiiiij:Ud,invoke_ji:Vd,invoke_jiiii:Wd,invoke_v:Xd,invoke_vi:Yd,invoke_vid:Zd,invoke_viddi:$d,invoke_vii:ae,invoke_viid:be,invoke_viidd:ce,invoke_viiddi:de,invoke_viidi:ee,invoke_viii:fe,invoke_viiid:ge,invoke_viiidddddi:he,invoke_viiiddddi:ie,invoke_viiidddi:je,invoke_viiiddi:ke,invoke_viiidi:le,invoke_viiii:me,invoke_viiiii:ne,invoke_viiiiii:oe,invoke_viiiiiii:pe,invoke_viiiiiiii:qe,invoke_viiiiiiiii:re,invoke_viiiiiiiiii:se,invoke_viiiiiiiiiii:te,invoke_viiiiiiiiiiii:ue,invoke_viiiiiiiiiiiii:ve,invoke_viiiiiiiiiiiiiii:we,llvm_eh_typeid_for:xe,memory:za,proc_exit:ye},wasi_snapshot_preview1:F,"GOT.mem":new Proxy(F,ze),"GOT.func":new Proxy(F,ze)}}var Ae={};function Be(e){for(var r=A[e+6>>1];13===r&&!(16<C[e>>2]);){var t=C[e+8>>2],n=C[t>>2];if(0===n){r=0;break}if(0!==C[1+(t>>2)])break;e=n,r=A[n+6>>1]}return[e,r]}function xd(e,r,t,n){var a=C[1+(e>>2)],i=C[6+(e>>2)],o=C[2+(e>>2)];e=Be(C[3+(e>>2)])[1];var s=I(),c=s,l=[],h=0;if(15===e)throw Error("complex ret marshalling nyi");if(0>e||15<e)throw Error("Unexpected rtype "+e);4!==e&&13!==e||(l.push(t),h=1);for(var u=0;u<i;u++){var f=C[(n>>2)+u],d=Be(C[(o>>2)+u]),p=d[0];switch(d=d[1]){case 1:case 10:case 9:case 14:l.push(C[f>>2]);break;case 2:l.push(Oa[f>>2]);break;case 3:l.push(Qa[f>>3]);break;case 5:l.push(y[f]);break;case 6:l.push(x[f]);break;case 7:l.push(A[f>>1]);break;case 8:l.push(z[f>>1]);break;case 11:case 12:l.push(Pa[f>>3]);break;case 4:l.push(Pa[f>>3]),l.push(Pa[1+(f>>3)]);break;case 13:c-=d=C[p>>2],c&=~((p=A[p+4>>1])-1),x.subarray(c,c+d).set(x.subarray(f,f+d)),l.push(c);break;case 15:throw Error("complex marshalling nyi");default:throw Error("Unexpected type "+d)}}if(i!=a){var v=[];for(u=a-1;u>=i;u--)switch(f=C[(n>>2)+u],d=Be(C[(o>>2)+u]),p=d[0],d=d[1],d){case 5:case 6:--c,y[c&=-1]=y[f];break;case 7:case 8:c-=2,A[(c&=-2)>>1]=A[f>>1];break;case 1:case 9:case 10:case 14:case 2:c-=4,C[(c&=-4)>>2]=C[f>>2];break;case 3:case 11:case 12:c-=8,C[(c&=-8)>>2]=C[f>>2],C[1+(c>>2)]=C[1+(f>>2)];break;case 4:c-=16,C[(c&=-8)>>2]=C[f>>2],C[1+(c>>2)]=C[1+(f>>2)],C[2+(c>>2)]=C[2+(f>>2)],C[3+(c>>2)]=C[3+(f>>2)];break;case 13:c-=4,c&=-4,v.push([c,f,C[p>>2],A[p+4>>1]]);break;case 15:throw Error("complex arg marshalling nyi");default:throw Error("Unexpected argtype "+d)}for(l.push(c),u=0;u<v.length;u++)n=(a=v[u])[0],f=a[1],c-=d=a[2],c&=~((p=a[3])-1),x.subarray(c,c+d).set(x.subarray(f,f+d)),C[n>>2]=c}if(J(c),Ce(0),r=K(r).apply(null,l),J(s),!h)switch(e){case 0:break;case 1:case 9:case 10:case 14:C[t>>2]=r;break;case 2:Oa[t>>2]=r;break;case 3:Qa[t>>3]=r;break;case 5:case 6:y[t+0]=r;break;case 7:case 8:A[t>>1]=r;break;case 11:case 12:Pa[t>>3]=r;break;case 15:throw Error("complex ret marshalling nyi");default:throw Error("Unexpected rtype "+e)}}xd.g="viiii";var M=0,Me=(e,r)=>{if(De=e,Ee=r,Fe)if(Ge||(M+=1,Ge=!0),0==e)He=function(){var e=0|Math.max(0,Ie+r-kd());setTimeout(Je,e)};else if(1==e)He=function(){Ke(Je)};else if(2==e){if(void 0===Le)if("undefined"==typeof setImmediate){var t=[];addEventListener("message",(e=>{"setimmediate"!==e.data&&"setimmediate"!==e.data.target||(e.stopPropagation(),t.shift()())}),!0),Le=function(e){t.push(e),ea?(l.setImmediates??(l.setImmediates=[]),l.setImmediates.push(e),postMessage({target:"setimmediate"})):postMessage("setimmediate","*")}}else Le=setImmediate;He=function(){Le(Je)}}},kd;function Ne(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}kd=()=>performance.timeOrigin+performance.now(),kd.g="d";var Oe=e=>-9007199254740992>e||9007199254740992<e?NaN:Number(e),Pe=e=>{e.terminate(),e.onmessage=()=>{}},We=e=>{var r=Qe[e];Re.delete(e),e in Se&&Se[e].resolve(),e=r.fa,delete Qe[e],Te.push(r),Ue.splice(Ue.indexOf(r),1),r.fa=0,Ve(e)},Ze=e=>{0==Te.length&&(Xe(),Ye(Te[0]));var r=Te.pop();return r?(Ue.push(r),Qe[e.fa]=r,r.fa=e.fa,r.postMessage({cmd:"run",start_routine:e.ac,arg:e.Na,pthread_ptr:e.fa},e.cc),0):6},$e=e=>{e instanceof Ne||"unwind"==e||ma(1,e)},Te=[],Ue=[],af=[],Qe={};function bf(){for(var e=6<navigator.hardwareConcurrency?navigator.hardwareConcurrency:6;e--;)Xe();Sa.unshift((()=>{fb("loading-workers"),cf((()=>gb("loading-workers")))})),Se={},Re=new Set}var df=()=>{for(var e of Ue)Pe(e);for(e of Te)Pe(e);Te=[],Ue=[],Qe=[]};function Ea(){af.forEach((e=>e()))}var Ye=e=>new Promise((r=>{e.onmessage=t=>{var n=(t=t.data).cmd;if(t.targetThread&&t.targetThread!=va()){var a=Qe[t.targetThread];a?a.postMessage(t,t.transferList):w(`Internal error! Worker sent a message "${n}" to target pthread ${t.targetThread}, but that thread no longer exists!`)}else"checkMailbox"===n?Ia():"spawnThread"===n?Ze(t):"cleanupThread"===n?We(t.thread):"markAsFinished"===n?(t=t.thread,Re.add(t),t in Se&&Se[t].resolve()):"killThread"===n?(t=t.thread,n=Qe[t],delete Qe[t],Pe(n),Ve(t),Ue.splice(Ue.indexOf(n),1),n.fa=0):"cancelThread"===n?Qe[t.thread].postMessage({cmd:"cancel"}):"loaded"===n?(e.loaded=!0,r(e)):"alert"===n?alert(`Thread ${t.threadId}: ${t.text}`):"setimmediate"===t.target?e.postMessage(t):"callHandler"===n?l[t.handler](...t.args):n&&w(`worker sent an unknown command ${n}`)},e.onerror=e=>{throw w(`worker sent an error! ${e.filename}:${e.lineno}: ${e.message}`),e};var t,n=[];for(t of["onExit","onAbort","print","printErr"])l.propertyIsEnumerable(t)&&n.push(t);e.postMessage({cmd:"load",handlers:n,wasmMemory:za,wasmModule:La,dynamicLibraries:xa,sharedModules:ya})}));function cf(e){r?e():Promise.all(Te.map(Ye)).then(e)}function Xe(){var e=na;l.mainScriptUrlOrBlob&&"string"!=typeof(e=l.mainScriptUrlOrBlob)&&(e=URL.createObjectURL(e)),e=new Worker(e,{name:"em-pthread"}),Te.push(e)}var Re,Se,O=(e,r,...t)=>{for(var n=2*t.length,a=I(),i=Ce(8*n),o=i>>3,s=0;s<t.length;s++){var c=t[s];"bigint"==typeof c?(D[o+2*s]=1n,D[o+2*s+1]=c):(D[o+2*s]=0n,Qa[o+2*s+1]=c)}return e=ef(e,0,n,i,r),J(a),e};function ye(e){if(r)return O(0,1,e);Na=e,ff||0<M||(df(),l.onExit?.(e),Ma=!0),ma(e,new Ne(e))}function gf(e){if(r)return O(1,0,e);rd(e)}ye.g="vi";var rd=e=>{if(Na=e,r)throw gf(e),"unwind";if(!(ff||0<M||r)){hf(),bb(Va),FS.init.Ea=!1,jf(0);for(var t=0;t<FS.streams.length;t++){var n=FS.streams[t];n&&FS.close(n)}df(),$a=!0}ye(e)};rd.g="vi";var kf=()=>{if(!($a||ff||0<M))try{r?Ha(Na):rd(Na)}catch(e){$e(e)}},rf=e=>{function r(){return!(t<lf&&(--M,kf(),1))}Fe=e;var t=lf;Ge=!1,Je=function(){if(!Ma)if(0<mf.length){var t=mf.shift();if(t.vc(t.Na),nf){var n=nf,a=0==n%1?n-1:Math.floor(n);nf=t.qc?a:(8*n+(a+.5))/9}l.setStatus&&(t=l.statusMessage||"Please wait...",n=nf,a=of.tc,n?n<a?l.setStatus("{message} ({expected - remaining}/{expected})"):l.setStatus(t):l.setStatus("")),r()&&setTimeout(Je,0)}else r()&&(pf=pf+1|0,1==De&&1<Ee&&0!=pf%Ee?He():(0==De&&(Ie=kd()),Ma||l.preMainLoop&&!1===l.preMainLoop()||(qf(e),l.postMainLoop?.()),r()&&("object"==typeof SDL&&SDL.audio?.Ec?.(),He())))}},qf=e=>{if(!$a&&!Ma)try{e(),kf()}catch(e){$e(e)}},sf=e=>{M+=1,setTimeout((()=>{--M,qf(e)}),1e4)},tf=l.preloadPlugins||[],uf={},Ge=!1,He=null,lf=0,Fe=null,De=0,Ee=0,pf=0,mf=[],of={},Ie,Je,nf,vf=!1,wf=!1,xf=[];function yf(){function e(){wf=document.pointerLockElement===l.canvas||document.mozPointerLockElement===l.canvas||document.webkitPointerLockElement===l.canvas||document.msPointerLockElement===l.canvas}if(!zf){zf=!0,tf.push({canHandle:function(e){return!l.noImageDecoding&&/\.(jpg|jpeg|png|bmp)$/i.test(e)},handle:function(e,r,t,n){var a=new Blob([e],{type:Af(r)});a.size!==e.length&&(a=new Blob([new Uint8Array(e).buffer],{type:Af(r)}));var i=URL.createObjectURL(a),o=new Image;o.onload=()=>{var r=document.createElement("canvas");r.width=o.width,r.height=o.height,r.getContext("2d").drawImage(o,0,0),URL.revokeObjectURL(i),t?.(e)},o.onerror=()=>{w(`Image ${i} could not be decoded`),n?.()},o.src=i}}),tf.push({canHandle:function(e){return!l.noAudioDecoding&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(e,r,t){function n(){a||(a=!0,t?.(e))}var a=!1,i=URL.createObjectURL(new Blob([e],{type:Af(r)})),o=new Audio;o.addEventListener("canplaythrough",(()=>n()),!1),o.onerror=function(){if(!a){w(`warning: browser could not fully decode audio ${r}, trying slower base64 approach`);for(var t="",i=0,s=0,c=0;c<e.length;c++)for(i=i<<8|e[c],s+=8;6<=s;){var l=i>>s-6&63;s-=6,t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[l]}2==s?(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&i)<<4],t+="=="):4==s&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&i)<<2],t+="="),o.src="data:audio/x-"+r.substr(-3)+";base64,"+t,n()}},o.src=i,sf((()=>{n()}))}});var r=l.canvas;r&&(r.requestPointerLock=r.requestPointerLock||r.mozRequestPointerLock||r.webkitRequestPointerLock||r.msRequestPointerLock||(()=>{}),r.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||(()=>{}),r.exitPointerLock=r.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",e,!1),document.addEventListener("mozpointerlockchange",e,!1),document.addEventListener("webkitpointerlockchange",e,!1),document.addEventListener("mspointerlockchange",e,!1),l.elementPointerLock&&r.addEventListener("click",(e=>{!wf&&l.canvas.requestPointerLock&&(l.canvas.requestPointerLock(),e.preventDefault())}),!1))}}var Bf=!1,Cf=void 0,Df=void 0;function Ef(){return!!vf&&((document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||(()=>{})).apply(document,[]),!0)}var Ff=0;function Ke(e){if("function"==typeof requestAnimationFrame)requestAnimationFrame(e);else{var r=Date.now();if(0===Ff)Ff=r+1e3/60;else for(;r+2>=Ff;)Ff+=1e3/60;setTimeout(e,Math.max(Ff-r,0))}}function Af(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]}var Gf=[];function Hf(){var e=l.canvas;Gf.forEach((r=>r(e.width,e.height)))}function If(e,r,t){r&&t?(e.ic=r,e.Eb=t):(r=e.ic,t=e.Eb);var n=r,a=t;if(l.forcedAspectRatio&&0<l.forcedAspectRatio&&(n/a<l.forcedAspectRatio?n=Math.round(a*l.forcedAspectRatio):a=Math.round(n/l.forcedAspectRatio)),(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e.parentNode&&"undefined"!=typeof screen){var i=Math.min(screen.width/n,screen.height/a);n=Math.round(n*i),a=Math.round(a*i)}Df?(e.width!=n&&(e.width=n),e.height!=a&&(e.height=a),void 0!==e.style&&(e.style.removeProperty("width"),e.style.removeProperty("height"))):(e.width!=r&&(e.width=r),e.height!=t&&(e.height=t),void 0!==e.style&&(n!=r||a!=t?(e.style.setProperty("width",n+"px","important"),e.style.setProperty("height",a+"px","important")):(e.style.removeProperty("width"),e.style.removeProperty("height"))))}var Jf={},Le,zf,Kf={},Lf=new Set(["__lsan_ignore_object","__lsan_ignore_object"]),ze={get:(e,r)=>((e=Kf[r])||(e=Kf[r]=new WebAssembly.Global({value:"i32",mutable:!0})),Lf.has(r)||(e.required=!0),e)},bb=e=>{for(;0<e.length;)e.shift()(l)},Da=()=>{var e=va(),r=C[e+52>>2];Mf(r,r-C[e+56>>2]),J(r)},Nf=new TextDecoder,Of=(e,r,t)=>{t=r+t;for(var n=r;e[n]&&!(n>=t);)++n;return Nf.decode(e.buffer?e.buffer instanceof SharedArrayBuffer?e.slice(r,n):e.subarray(r,n):new Uint8Array(e.slice(r,n)))},Pf=e=>{function r(){for(var r=0,t=1;;){var n=e[a++];if(r+=(127&n)*t,t*=128,!(128&n))break}return r}function t(){var t=r();return Of(e,(a+=t)-t,t)}function n(e,r){if(e)throw Error(r)}var a=0,i=0,o="dylink.0";e instanceof WebAssembly.Module?(0===(i=WebAssembly.Module.customSections(e,o)).length&&(o="dylink",i=WebAssembly.Module.customSections(e,o)),n(0===i.length,"need dylink section"),i=(e=new Uint8Array(i[0])).length):(n(!(i=1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0]),"need to see wasm magic number"),n(0!==e[8],"need the dylink section to be first"),a=9,i=r(),i=a+i,o=t());var s={xa:[],gb:new Set,hb:new Set};if("dylink"==o){s.wa=r(),s.ab=r(),s.pa=r(),s.bc=r(),o=r();for(var c=0;c<o;++c){var l=t();s.xa.push(l)}}else for(n("dylink.0"!==o);a<i;)if(o=e[a++],c=r(),1===o)s.wa=r(),s.ab=r(),s.pa=r(),s.bc=r();else if(2===o)for(o=r(),c=0;c<o;++c)l=t(),s.xa.push(l);else if(3===o)for(o=r();o--;)c=t(),256&(l=r())&&s.gb.add(c);else if(4===o)for(o=r();o--;)t(),c=t(),1==(3&(l=r()))&&s.hb.add(c);else a+=c;return s},Qf=[],Bb=new WebAssembly.Table({initial:5831,element:"anyfunc"}),K=e=>{var r=Qf[e];return r||(e>=Qf.length&&(Qf.length=e+1),Qf[e]=r=Bb.get(e)),r},Ga=(e,r)=>{M=0,Rf(),e=K(e)(r),ff||0<M?Na=e:Ha(e)},Uf=(e,r,t)=>(t={ya:1/0,name:e,exports:t,global:!0},Sf[e]=t,null!=r&&(Tf[r]=t),t),Sf={},Tf={},Ab=3665600,Vf=(e,r)=>Math.ceil(e/r)*r,Xf=e=>{if(Ya){var r=Wf(e);return y.fill(0,r,r+e),r}return Ab=e=(r=Ab)+16*Math.ceil(e/16),Kf.__heap_base.value=e,r},Zf=(e,r)=>{if(Yf)for(var t=e;t<e+r;t++){var n=K(t);n&&Yf.set(n,t)}},Yf,$f=e=>(Yf||(Yf=new WeakMap,Zf(0,Bb.length)),Yf.get(e)||0),ag=[],bg=(e,r)=>{var t=$f(e);if(t)return t;if(ag.length)t=ag.pop();else{try{Bb.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}t=Bb.length-1}try{var n=t;Bb.set(n,e),Qf[n]=Bb.get(n)}catch(s){if(!(s instanceof TypeError))throw s;if("function"==typeof WebAssembly.Function){n=WebAssembly.Function;for(var a={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},i={parameters:[],results:"v"==r[0]?[]:[a[r[0]]]},o=1;o<r.length;++o)i.parameters.push(a[r[o]]);r=new n(i,e)}else{for(n=[1],a=r.slice(0,1),r=r.slice(1),i={i:127,p:127,j:126,f:125,d:124,e:111},n.push(96),128>(o=r.length)?n.push(o):n.push(o%128|128,o>>7),o=0;o<r.length;++o)n.push(i[r[o]]);"v"==a?n.push(0):n.push(1,i[a]),r=[0,97,115,109,1,0,0,0,1],128>(a=n.length)?r.push(a):r.push(a%128|128,a>>7),r.push(...n),r.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),r=new WebAssembly.Module(new Uint8Array(r)),r=new WebAssembly.Instance(r,{e:{f:e}}).exports.f}n=t,Bb.set(n,r),Qf[n]=Bb.get(n)}return Yf.set(e,t),t},cg=(e,r,t)=>{var n,a={};for(n in e){var i=e[n];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=r),a[n]=i}for(var o in a){if(e=o,"__cpp_exception __c_longjmp __wasm_apply_data_relocs __dso_handle __tls_size __tls_align __set_stack_limits _emscripten_tls_init __wasm_init_tls __wasm_call_ctors __start_em_asm __stop_em_asm __start_em_js __stop_em_js".split(" ").includes(e)||e.startsWith("__em_js__"))continue;let r,n;e=a[o],(r=Kf)[n=o]||(r[n]=new WebAssembly.Global({value:"i32",mutable:!0})),(t||0==Kf[o].value)&&("function"==typeof e?Kf[o].value=bg(e):"number"==typeof e?Kf[o].value=e:w(`unhandled export type for '${o}': ${typeof e}`))}return a},dg=e=>!(!(e=F[e])||e.ia),eg=(e,r=[])=>K(e)(...r),gg=e=>(r,...t)=>{var n=I();try{return eg(r,t)}catch(r){if(J(n),!(r instanceof E))throw r;if(P(1,0),"j"==e[0])return 0n}},ig=e=>{var r;return dg(e)?r=F[e]:e.startsWith("invoke_")?r=F[e]=gg(e.split("_")[1]):e.startsWith("__cxa_find_matching_catch_")&&(r=F[e]=(...e)=>hg(e)),{Ma:r,name:e}},R=(e,r)=>{if(!e)return"";r=e+r;for(var t=e;!(t>=r)&&y[t];)++t;return Nf.decode(y.slice(e,t))},mg=(a,b,c,d,e)=>{function f(){function h(u,v){function G(L,ha){L=[];for(var Za=0;16>Za&&-1!=ha.indexOf("$"+Za);Za++)L.push("$"+Za);L=L.join(","),Ae[H]=eval(`(${L}) => { ${ha} };`)}function N(L,ha,Za){var fg=[];if(ha=ha.slice(1,-1),"void"!=ha)for(var yi in ha=ha.split(","),ha){var zi=ha[yi].split(" ").pop();fg.push(zi.replace("*",""))}q[L]=eval(`(${fg}) => ${Za};`)}if(!r&&c&&(ya[c]=u),Zf(p,g.pa),q=cg(v.exports,n),b.lb||jg(),"__start_em_asm"in q){var H=q.__start_em_asm;for(u=q.__stop_em_asm;H<u;){var Q=R(H);G(H,Q),H=y.indexOf(0,H)+1}}for(var ia in q)ia.startsWith("__em_js__")&&(H=q[ia],Q=R(H),u=Q.split("<::>"),N(ia.replace("__em_js__",""),u[0],u[1]),delete q[ia]);return kg(q._emscripten_tls_init,v.exports,g),k&&((v=q.__wasm_apply_data_relocs)&&(Ya?v():Xa.push(v)),(v=q.__wasm_call_ctors)&&(Ya?v():Ta.push(v))),q}var k=!e||!x[e+8],q;if(k){var m=Math.pow(2,g.ab),n=g.wa?Vf(Xf(g.wa+m),m):0,p=g.pa?Bb.length:0;e&&(x[e+8]=1,C[e+12>>2]=n,B[e+16>>2]=g.wa,C[e+20>>2]=p,B[e+24>>2]=g.pa)}else n=C[e+12>>2],p=C[e+20>>2];m=p+g.pa-Bb.length,0<m&&Bb.grow(m),m=new Proxy({},{get(e,r){switch(r){case"__memory_base":return n;case"__table_base":return p}return r in F&&!F[r].ia?F[r]:(r in e||(e[r]=(...e)=>{if(!t){var n=ig(r).Ma;!n&&d&&(n=d[r]),n||=q[r],t=n}return t(...e)}),e[r]);var t}});var t={"GOT.mem":new Proxy({},ze),"GOT.func":new Proxy({},ze),env:m,wasi_snapshot_preview1:m};return b.G?a instanceof WebAssembly.Module?(t=new WebAssembly.Instance(a,t),Promise.resolve(h(a,t))):WebAssembly.instantiate(a,t).then((e=>h(e.module,e.instance))):(m=a instanceof WebAssembly.Module?a:new WebAssembly.Module(a),t=new WebAssembly.Instance(m,t),h(m,t))}var g=Pf(a);return Lf=g.hb,b.G?g.xa.reduce(((e,r)=>e.then((()=>lg(r,b,d)))),Promise.resolve()).then(f):(g.xa.forEach((e=>lg(e,b,d))),f())},ng=e=>{var r,t;for([r,t]of Object.entries(e))dg(r)||(F[r]=t),r.startsWith("dynCall_")&&!l.hasOwnProperty(r)&&(l[r]=t)},og=(e,r,t)=>{var n=`al ${e}`;qa(e).then((e=>{r(new Uint8Array(e)),n&&gb(n)}),(()=>{if(!t)throw`Loading data file "${e}" failed.`;t()})),n&&fb(n)};function lg(e,r={global:!0,la:!0},t,n){function a(){var t=ya[e];if(t)return r.G?Promise.resolve(t):t;if(n){t=C[n+28>>2];var a=C[n+32>>2];if(t&&a)return t=x.slice(t,t+a),r.G?Promise.resolve(t):t}var i=pa(e);if(r.G)return new Promise((function(e,r){og(i,e,r)}));if(!ra)throw Error(`${i}: file not found, and synchronous loading of external files is not available`);return ra(i)}function i(){var i=uf[e];return i?r.G?Promise.resolve(i):i:r.G?a().then((a=>mg(a,r,e,t,n))):mg(a(),r,e,t,n)}function o(e){s.global?ng(e):t&&Object.assign(t,e),s.exports=e}var s=Sf[e];return s?(r.global?s.global||(s.global=!0,ng(s.exports)):t&&Object.assign(t,s.exports),r.la&&1/0!==s.ya&&(s.ya=1/0),s.ya++,n&&(Tf[n]=s),!r.G||Promise.resolve(!0)):((s=Uf(e,n,"loading")).ya=r.la?1/0:1,s.global=r.global,r.G?i().then((e=>(o(e),!0))):(o(i()),!0))}var jg=()=>{var e,r;for([e,r]of Object.entries(Kf))if(0==r.value){var t=ig(e).Ma;if(t||r.required)if("function"==typeof t)r.value=bg(t,t.g);else{if("number"!=typeof t)throw Error(`bad export type for '${e}': ${typeof t}`);r.value=t}}},pg=()=>{xa.length?(fb("loadDylibs"),xa.reduce(((e,r)=>e.then((()=>lg(r,{G:!0,global:!0,la:!0,lb:!0})))),Promise.resolve()).then((()=>{jg(),gb("loadDylibs")}))):jg()},ff=l.noExitRuntime||!1,kg=(e,r,t)=>{function n(){var n=e();if(n){var a={};t.gb.forEach((e=>a[e]=r[e])),cg(a,n,!0)}}af.push(n),Ya&&n()},rb=(e,r,t,n)=>{hb(`Assertion failed: ${R(e)}, at: `+[r?R(r):"unknown filename",t,n?R(n):"unknown function"])};rb.g="vppip";var sb=(e,r)=>K(e)(r);sb.g="vpi";var qg=[],rg=0,tb=e=>{if(e=new sg(e),0==x[e.s+12]&&(x[e.s+12]=1,rg--),x[e.s+13]=0,qg.push(e),tg(e.ba),ug(C[e.s+4>>2]))e=C[e.ba>>2];else{var r=C[e.s+16>>2];e=0!==r?r:e.ba}return e};tb.g="pp";var vg=0,ub=()=>{P(0,0);var e=qg.pop();wg(e.ba),vg=0};ub.g="v";class sg{constructor(e){this.ba=e,this.s=e-24}init(e,r){C[this.s+16>>2]=0,C[this.s+4>>2]=e,C[this.s+8>>2]=r}}var Fb=e=>{throw vg||=new kb(e),vg};Fb.g="vp";var hg=e=>{var r=vg?.ba;if(!r)return xg(0),0;var t=new sg(r);C[t.s+16>>2]=r;var n=C[t.s+4>>2];if(!n)return xg(0),r;for(var a of e){if(0===a||a===n)break;if(yg(a,n,t.s+16))return xg(a),r}return xg(n),r},vb=()=>hg([]);vb.g="p";var wb=e=>hg([e]);wb.g="pp";var xb=()=>{var e=qg.pop();e||hb("no exception to throw");var r=e.ba;throw 0==x[e.s+13]&&(qg.push(e),x[e.s+13]=1,x[e.s+12]=0,rg++),vg=new kb(r)};xb.g="v";var yb=(e,r,t)=>{throw new sg(e).init(r,t),vg=new kb(e),rg++,vg};yb.g="vppp";var zb=()=>rg;function Cb(...e){return F.__lsan_ignore_object(...e)}zb.g="i",Cb.ia=!0;var Db=new WebAssembly.Global({value:"i32",mutable:!1},1024);function zg(e,t,n,a){return r?O(2,1,e,t,n,a):Eb(e,t,n,a)}var Eb=(e,t,n,a)=>{if("undefined"==typeof SharedArrayBuffer)return w("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var i=[];return r&&0===i.length?zg(e,t,n,a):(e={ac:n,fa:e,Na:a,cc:i},r?(e.Pa="spawnThread",postMessage(e,i),0):Ze(e))};Eb.g="ipppp";var Gb=3665600,Hb=3403456,Ib=new WebAssembly.Global({value:"i32",mutable:!0},3665600),Ag=(e,r)=>{for(var t=0,n=e.length-1;0<=n;n--){var a=e[n];"."===a?e.splice(n,1):".."===a?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},Bg=e=>{var r="/"===e.charAt(0),t="/"===e.substr(-1);return(e=Ag(e.split("/").filter((e=>!!e)),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},Cg=e=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=r[0],r=r[1],e||r?(r&&=r.substr(0,r.length-1),e+r):"."},Dg=e=>{if("/"===e)return"/";var r=(e=(e=Bg(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},Eg=(e,r)=>Bg(e+"/"+r),Fg=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>(e.set(crypto.getRandomValues(new Uint8Array(e.byteLength))),e);hb("initRandomDevice")},Gg=e=>(Gg=Fg())(e),Hg=(...e)=>{for(var r="",t=!1,n=e.length-1;-1<=n&&!t;n--){if("string"!=typeof(t=0<=n?e[n]:FS.cwd()))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";r=t+"/"+r,t="/"===t.charAt(0)}return(t?"/":"")+(r=Ag(r.split("/").filter((e=>!!e)),!t).join("/"))||"."},Ig=(e,r)=>{function t(e){for(var r=0;r<e.length&&""===e[r];r++);for(var t=e.length-1;0<=t&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=Hg(e).substr(1),r=Hg(r).substr(1),e=t(e.split("/")),r=t(r.split("/"));for(var n=Math.min(e.length,r.length),a=n,i=0;i<n;i++)if(e[i]!==r[i]){a=i;break}for(n=[],i=a;i<e.length;i++)n.push("..");return(n=n.concat(r.slice(a))).join("/")},Jg=[],Kg=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);127>=n?r++:2047>=n?r+=2:55296<=n&&57343>=n?(r+=4,++t):r+=3}return r},Lg=(e,r,t,n)=>{if(!(0<n))return 0;var a=t;n=t+n-1;for(var i=0;i<e.length;++i){var o=e.charCodeAt(i);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++i)),127>=o){if(t>=n)break;r[t++]=o}else{if(2047>=o){if(t+1>=n)break;r[t++]=192|o>>6}else{if(65535>=o){if(t+2>=n)break;r[t++]=224|o>>12}else{if(t+3>=n)break;r[t++]=240|o>>18,r[t++]=128|o>>12&63}r[t++]=128|o>>6&63}r[t++]=128|63&o}}return r[t]=0,t-a};function Mg(e){var r=Array(Kg(e)+1);return e=Lg(e,r,0,r.length),r.length=e,r}var Ng=[];function Og(e,r){Ng[e]={input:[],K:[],W:r},FS.registerDevice(e,Pg)}var Pg={open(e){var r=Ng[e.node.na];if(!r)throw new FS.h(43);e.A=r,e.seekable=!1},close(e){e.A.W.sa(e.A)},sa(e){e.A.W.sa(e.A)},read(e,r,t,n){if(!e.A||!e.A.W.Xa)throw new FS.h(60);for(var a=0,i=0;i<n;i++){try{var o=e.A.W.Xa(e.A)}catch(e){throw new FS.h(29)}if(void 0===o&&0===a)throw new FS.h(6);if(null==o)break;a++,r[t+i]=o}return a&&(e.node.timestamp=Date.now()),a},write(e,r,t,n){if(!e.A||!e.A.W.Ia)throw new FS.h(60);try{for(var a=0;a<n;a++)e.A.W.Ia(e.A,r[t+a])}catch(e){throw new FS.h(29)}return n&&(e.node.timestamp=Date.now()),a}},Qg={Xa(){e:{if(!Jg.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt&&null!==(e=window.prompt("Input: "))&&(e+="\n"),!e){e=null;break e}Jg=Mg(e)}e=Jg.shift()}return e},Ia(e,r){null===r||10===r?(sa(Of(e.K,0)),e.K=[]):0!=r&&e.K.push(r)},sa(e){e.K&&0<e.K.length&&(sa(Of(e.K,0)),e.K=[])},Hb:()=>({nc:25856,pc:5,mc:191,oc:35387,lc:[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]}),Ib:()=>0,Jb:()=>[24,80]},Rg={Ia(e,r){null===r||10===r?(w(Of(e.K,0)),e.K=[]):0!=r&&e.K.push(r)},sa(e){e.K&&0<e.K.length&&(w(Of(e.K,0)),e.K=[])}},Tg=e=>{e=65536*Math.ceil(e/65536);var r=Sg(65536,e);return r?(y.fill(0,r,r+e),e=r):e=0,e};function Ug(e,r){var t=e.u?e.u.length:0;t>=r||(r=Math.max(r,t*(1048576>t?2:1.125)>>>0),0!=t&&(r=Math.max(r,256)),t=e.u,e.u=new Uint8Array(r),0<e.C&&e.u.set(t.subarray(0,e.C),0))}var S={T:null,mount:()=>S.createNode(null,"/",16895,0),createNode(e,r,t,n){var a;if((a=FS.isBlkdev(t))||(a=4096==(61440&t)),a)throw new FS.h(63);return S.T||(S.T={dir:{node:{R:S.m.R,H:S.m.H,ca:S.m.ca,V:S.m.V,rename:S.m.rename,unlink:S.m.unlink,rmdir:S.m.rmdir,oa:S.m.oa,symlink:S.m.symlink},stream:{llseek:S.o.llseek}},file:{node:{R:S.m.R,H:S.m.H},stream:{llseek:S.o.llseek,read:S.o.read,write:S.o.write,Z:S.o.Z,da:S.o.da,ha:S.o.ha}},link:{node:{R:S.m.R,H:S.m.H,readlink:S.m.readlink},stream:{}},Oa:{node:{R:S.m.R,H:S.m.H},stream:FS.qb}}),t=FS.createNode(e,r,t,n),FS.isDir(t.mode)?(t.m=S.T.dir.node,t.o=S.T.dir.stream,t.u={}):FS.isFile(t.mode)?(t.m=S.T.file.node,t.o=S.T.file.stream,t.C=0,t.u=null):FS.isLink(t.mode)?(t.m=S.T.link.node,t.o=S.T.link.stream):FS.isChrdev(t.mode)&&(t.m=S.T.Oa.node,t.o=S.T.Oa.stream),t.timestamp=Date.now(),e&&(e.u[r]=t,e.timestamp=t.timestamp),t},wc:e=>e.u?e.u.subarray?e.u.subarray(0,e.C):new Uint8Array(e.u):new Uint8Array(0),m:{R(e){var r={};return r.tb=FS.isChrdev(e.mode)?e.id:1,r.Gb=e.id,r.mode=e.mode,r.Pb=1,r.uid=0,r.Db=0,r.na=e.na,FS.isDir(e.mode)?r.size=4096:FS.isFile(e.mode)?r.size=e.C:FS.isLink(e.mode)?r.size=e.link.length:r.size=0,r.mb=new Date(e.timestamp),r.Nb=new Date(e.timestamp),r.sb=new Date(e.timestamp),r.nb=4096,r.ob=Math.ceil(r.size/r.nb),r},H(e,r){if(void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&(r=r.size,e.C!=r))if(0==r)e.u=null,e.C=0;else{var t=e.u;e.u=new Uint8Array(r),t&&e.u.set(t.subarray(0,Math.min(r,e.C))),e.C=r}},ca(){throw FS.Ba[44]},V:(e,r,t,n)=>S.createNode(e,r,t,n),rename(e,r,t){if(FS.isDir(e.mode)){try{var n=Vg(r,t)}catch(e){}if(n)for(var a in n.u)throw new FS.h(55)}delete e.parent.u[e.name],e.parent.timestamp=Date.now(),e.name=t,r.u[t]=e,r.timestamp=e.parent.timestamp},unlink(e,r){delete e.u[r],e.timestamp=Date.now()},rmdir(e,r){var t,n=Vg(e,r);for(t in n.u)throw new FS.h(55);delete e.u[r],e.timestamp=Date.now()},oa(e){var r,t=[".",".."];for(r of Object.keys(e.u))t.push(r);return t},symlink:(e,r,t)=>((e=S.createNode(e,r,41471,0)).link=t,e),readlink(e){if(!FS.isLink(e.mode))throw new FS.h(28);return e.link}},o:{read(e,r,t,n,a){var i=e.node.u;if(a>=e.node.C)return 0;if(8<(e=Math.min(e.node.C-a,n))&&i.subarray)r.set(i.subarray(a,a+e),t);else for(n=0;n<e;n++)r[t+n]=i[a+n];return e},write(e,r,t,n,a,i){if(!n)return 0;if((e=e.node).timestamp=Date.now(),r.subarray&&(!e.u||e.u.subarray)){if(i)return e.u=r.subarray(t,t+n),e.C=n;if(0===e.C&&0===a)return e.u=r.slice(t,t+n),e.C=n;if(a+n<=e.C)return e.u.set(r.subarray(t,t+n),a),n}if(Ug(e,a+n),e.u.subarray&&r.subarray)e.u.set(r.subarray(t,t+n),a);else for(i=0;i<n;i++)e.u[a+i]=r[t+i];return e.C=Math.max(e.C,a+n),n},llseek(e,r,t){if(1===t?r+=e.position:2===t&&FS.isFile(e.node.mode)&&(r+=e.node.C),0>r)throw new FS.h(28);return r},Z(e,r,t){Ug(e.node,r+t),e.node.C=Math.max(e.node.C,r+t)},da(e,r,t,n,a){if(!FS.isFile(e.node.mode))throw new FS.h(43);if(e=e.node.u,2&a||e.buffer!==x.buffer){if((0<t||t+r<e.length)&&(e=e.subarray?e.subarray(t,t+r):Array.prototype.slice.call(e,t,t+r)),t=!0,!(r=Tg(r)))throw new FS.h(48);x.set(e,r)}else t=!1,r=e.byteOffset;return{s:r,X:t}},ha:(e,r,t,n)=>(S.o.write(e,r,0,n,t,!1),0)}},Wg=(e,r,t,n)=>{void 0!==Jf&&yf();var a=!1;return tf.forEach((i=>{!a&&i.canHandle(r)&&(i.handle(e,r,t,n),a=!0)})),a},Xg=(e,r,t,n,a,i,o,s,c,l)=>{function h(t){function h(t){l?.(),s||FS.createDataFile(e,r,t,n,a,c),i?.(),gb(f)}Wg(t,u,h,(()=>{o?.(),gb(f)}))||h(t)}var u=r?Hg(Bg(e+"/"+r)):e,f=`cp ${u}`;fb(f),"string"==typeof t?og(t,h,o):h(t)},Yg=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t};function Vg(e,r){var t=FS.isDir(e.mode)?(t=Zg(e,"x"))?t:e.m.ca?0:2:54;if(t)throw new FS.h(t);for(t=FS.S[$g(e.id,r)];t;t=t.ea){var n=t.name;if(t.parent.id===e.id&&n===r)return t}return FS.ca(e,r)}function $g(e,r){for(var t=0,n=0;n<r.length;n++)t=(t<<5)-t+r.charCodeAt(n)|0;return(e+t>>>0)%FS.S.length}function ah(e){var r=$g(e.parent.id,e.name);e.ea=FS.S[r],FS.S[r]=e}function bh(e){var r=$g(e.parent.id,e.name);if(FS.S[r]===e)FS.S[r]=e.ea;else for(r=FS.S[r];r;){if(r.ea===e){r.ea=e.ea;break}r=r.ea}}function ch(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r}function Zg(e,r){return FS.Ya?0:!r.includes("r")||292&e.mode?r.includes("w")&&!(146&e.mode)||r.includes("x")&&!(73&e.mode)?2:0:2}function dh(e,r){try{return Vg(e,r),20}catch(e){}return Zg(e,"wx")}function eh(e,r,t){try{var n=Vg(e,r)}catch(e){return e.B}if(e=Zg(e,"wx"))return e;if(t){if(!FS.isDir(n.mode))return 54;if(FS.ua(n)||FS.getPath(n)===FS.cwd())return 10}else if(FS.isDir(n.mode))return 31;return 0}function T(e){if(!(e=FS.Wa(e)))throw new FS.h(8);return e}function fh(e,r=-1){if(e=Object.assign(new FS.jb,e),-1==r)e:{for(r=0;r<=FS.kb;r++)if(!FS.streams[r])break e;throw new FS.h(33)}return e.P=r,FS.streams[r]=e}function gh(e,r=-1){return e=fh(e,r),e.o?.sc?.(e),e}function hh(e){var r=[];for(e=[e];e.length;){var t=e.pop();r.push(t),e.push(...t.ka)}return r}function ih(e,r,t,n){return e="string"==typeof e?e:FS.getPath(e),r=Bg(e+"/"+r),FS.create(r,Yg(t,n))}function jh(e){if(!(e.Kb||e.Lb||e.link||e.u)){if("undefined"!=typeof XMLHttpRequest)throw 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.");try{e.u=ra(e.url),e.C=e.u.length}catch(e){throw new FS.h(29)}}}var FS={root:null,ka:[],Ta:{},streams:[],Ob:1,S:null,Ra:"/",Ea:!1,Ya:!0,h:class{constructor(e){this.name="ErrnoError",this.B=e}},Ba:{},xb:null,za:0,jb:class{constructor(){this.M={},this.node=null}get object(){return this.node}set object(e){this.node=e}get flags(){return this.M.flags}set flags(e){this.M.flags=e}get position(){return this.M.position}set position(e){this.M.position=e}},ib:class{constructor(e,r,t,n){e||=this,this.parent=e,this.mount=e.mount,this.O=null,this.id=FS.Ob++,this.name=r,this.mode=t,this.m={},this.o={},this.na=n}get read(){return!(365&~this.mode)}set read(e){e?this.mode|=365:this.mode&=-366}get write(){return!(146&~this.mode)}set write(e){e?this.mode|=146:this.mode&=-147}get Lb(){return FS.isDir(this.mode)}get Kb(){return FS.isChrdev(this.mode)}},lookupPath(e,r={}){if(!(e=Hg(e)))return{path:"",node:null};if(8<(r=Object.assign({Aa:!0,La:0},r)).La)throw new FS.h(32);e=e.split("/").filter((e=>!!e));for(var t=FS.root,n="/",a=0;a<e.length;a++){var i=a===e.length-1;if(i&&r.parent)break;if(t=Vg(t,e[a]),n=Bg(n+"/"+e[a]),t.O&&(!i||i&&r.Aa)&&(t=t.O.root),!i||r.follow)for(i=0;FS.isLink(t.mode);)if(t=FS.readlink(n),n=Hg(Cg(n),t),t=FS.lookupPath(n,{La:r.La+1}).node,40<i++)throw new FS.h(32)}return{path:n,node:t}},getPath(e){for(var r;;){if(FS.ua(e))return e=e.mount.bb,r?"/"!==e[e.length-1]?`${e}/${r}`:e+r:e;r=r?`${e.name}/${r}`:e.name,e=e.parent}},createNode:(e,r,t,n)=>(ah(e=new FS.ib(e,r,t,n)),e),ua:e=>e===e.parent,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),isSocket:e=>!(49152&~e),kb:4096,Wa:e=>FS.streams[e],qb:{open(e){e.o=FS.zb(e.node.na).o,e.o.open?.(e)},llseek(){throw new FS.h(70)}},Ha:e=>e>>8,Ac:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice(e,r){FS.Ta[e]={o:r}},zb:e=>FS.Ta[e],syncfs(e,r){function t(e){return FS.za--,r(e)}function n(e){if(e){if(!n.vb)return n.vb=!0,t(e)}else++i>=a.length&&t(null)}"function"==typeof e&&(r=e,e=!1),FS.za++,1<FS.za&&w(`warning: ${FS.za} FS.syncfs operations in flight at once, probably just doing extra work`);var a=hh(FS.root.mount),i=0;a.forEach((r=>{if(!r.type.syncfs)return n(null);r.type.syncfs(r,e,n)}))},mount(e,r,t){var n="/"===t;if(n&&FS.root)throw new FS.h(10);if(!n&&t){var a=FS.lookupPath(t,{Aa:!1});if(t=a.path,(a=a.node).O)throw new FS.h(10);if(!FS.isDir(a.mode))throw new FS.h(54)}return r={type:e,Dc:r,bb:t,ka:[]},(e=e.mount(r)).mount=r,r.root=e,n?FS.root=e:a&&(a.O=r,a.mount&&a.mount.ka.push(r)),e},unmount(e){if(!(e=FS.lookupPath(e,{Aa:!1})).node.O)throw new FS.h(28);var r=(e=e.node).O,t=hh(r);Object.keys(FS.S).forEach((e=>{for(e=FS.S[e];e;){var r=e.ea;t.includes(e.mount)&&bh(e),e=r}})),e.O=null,e.mount.ka.splice(e.mount.ka.indexOf(r),1)},ca:(e,r)=>e.m.ca(e,r),V(e,r,t){var n=FS.lookupPath(e,{parent:!0}).node;if(!(e=Dg(e))||"."===e||".."===e)throw new FS.h(28);var a=dh(n,e);if(a)throw new FS.h(a);if(!n.m.V)throw new FS.h(63);return n.m.V(n,e,r,t)},create:(e,r)=>FS.V(e,4095&(void 0!==r?r:438)|32768,0),mkdir:(e,r)=>FS.V(e,1023&(void 0!==r?r:511)|16384,0),Bc(e,r){e=e.split("/");for(var t="",n=0;n<e.length;++n)if(e[n]){t+="/"+e[n];try{FS.mkdir(t,r)}catch(e){if(20!=e.B)throw e}}},mkdev:(e,r,t)=>(void 0===t&&(t=r,r=438),FS.V(e,8192|r,t)),symlink(e,r){if(!Hg(e))throw new FS.h(44);var t=FS.lookupPath(r,{parent:!0}).node;if(!t)throw new FS.h(44);var n=dh(t,r=Dg(r));if(n)throw new FS.h(n);if(!t.m.symlink)throw new FS.h(63);return t.m.symlink(t,r,e)},rename(e,r){var t=Cg(e),n=Cg(r),a=Dg(e),i=Dg(r),o=FS.lookupPath(e,{parent:!0}),s=o.node;if(o=(o=FS.lookupPath(r,{parent:!0})).node,!s||!o)throw new FS.h(44);if(s.mount!==o.mount)throw new FS.h(75);var c=Vg(s,a);if("."!==(e=Ig(e,n)).charAt(0))throw new FS.h(28);if("."!==(e=Ig(r,t)).charAt(0))throw new FS.h(55);try{var l=Vg(o,i)}catch(e){}if(c!==l){if(a=eh(s,a,r=FS.isDir(c.mode)))throw new FS.h(a);if(a=l?eh(o,i,r):dh(o,i))throw new FS.h(a);if(!s.m.rename)throw new FS.h(63);if(c.O||l&&l.O)throw new FS.h(10);if(o!==s&&(a=Zg(s,"w")))throw new FS.h(a);bh(c);try{s.m.rename(c,o,i),c.parent=o}catch(e){throw e}finally{ah(c)}}},rmdir(e){var r=FS.lookupPath(e,{parent:!0}).node,t=Vg(r,e=Dg(e)),n=eh(r,e,!0);if(n)throw new FS.h(n);if(!r.m.rmdir)throw new FS.h(63);if(t.O)throw new FS.h(10);r.m.rmdir(r,e),bh(t)},oa(e){if(!(e=FS.lookupPath(e,{follow:!0}).node).m.oa)throw new FS.h(54);return e.m.oa(e)},unlink(e){var r=FS.lookupPath(e,{parent:!0}).node;if(!r)throw new FS.h(44);var t=Vg(r,e=Dg(e)),n=eh(r,e,!1);if(n)throw new FS.h(n);if(!r.m.unlink)throw new FS.h(63);if(t.O)throw new FS.h(10);r.m.unlink(r,e),bh(t)},readlink(e){if(!(e=FS.lookupPath(e).node))throw new FS.h(44);if(!e.m.readlink)throw new FS.h(28);return Hg(FS.getPath(e.parent),e.m.readlink(e))},stat(e,r){if(!(e=FS.lookupPath(e,{follow:!r}).node))throw new FS.h(44);if(!e.m.R)throw new FS.h(63);return e.m.R(e)},lstat:e=>FS.stat(e,!0),chmod(e,r,t){if(!(e="string"==typeof e?FS.lookupPath(e,{follow:!t}).node:e).m.H)throw new FS.h(63);e.m.H(e,{mode:4095&r|-4096&e.mode,timestamp:Date.now()})},lchmod(e,r){FS.chmod(e,r,!0)},fchmod(e,r){e=T(e),FS.chmod(e.node,r)},chown(e,r,t,n){if(!(e="string"==typeof e?FS.lookupPath(e,{follow:!n}).node:e).m.H)throw new FS.h(63);e.m.H(e,{timestamp:Date.now()})},lchown(e,r,t){FS.chown(e,r,t,!0)},fchown(e,r,t){e=T(e),FS.chown(e.node,r,t)},truncate(e,r){if(0>r)throw new FS.h(28);if(!(e="string"==typeof e?FS.lookupPath(e,{follow:!0}).node:e).m.H)throw new FS.h(63);if(FS.isDir(e.mode))throw new FS.h(31);if(!FS.isFile(e.mode))throw new FS.h(28);var t=Zg(e,"w");if(t)throw new FS.h(t);e.m.H(e,{size:r,timestamp:Date.now()})},ftruncate(e,r){if(!(2097155&(e=T(e)).flags))throw new FS.h(28);FS.truncate(e.node,r)},utime(e,r,t){(e=FS.lookupPath(e,{follow:!0}).node).m.H(e,{timestamp:Math.max(r,t)})},open(e,r,t){if(""===e)throw new FS.h(44);if("string"==typeof r){var n={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===n)throw Error(`Unknown file open mode: ${r}`);r=n}if(t=64&r?4095&(void 0===t?438:t)|32768:0,"object"==typeof e)var a=e;else{e=Bg(e);try{a=FS.lookupPath(e,{follow:!(131072&r)}).node}catch(e){}}if(n=!1,64&r)if(a){if(128&r)throw new FS.h(20)}else a=FS.V(e,t,0),n=!0;if(!a)throw new FS.h(44);if(FS.isChrdev(a.mode)&&(r&=-513),65536&r&&!FS.isDir(a.mode))throw new FS.h(54);if(!n){var i=r;if(t=(t=a)?FS.isLink(t.mode)?32:FS.isDir(t.mode)&&("r"!==ch(i)||512&i)?31:Zg(t,ch(i)):44)throw new FS.h(t)}return 512&r&&!n&&FS.truncate(a,0),r&=-131713,(a=fh({node:a,path:FS.getPath(a),flags:r,seekable:!0,position:0,o:a.o,ec:[],error:!1})).o.open&&a.o.open(a),!l.logReadFiles||1&r||(FS.Ka||(FS.Ka={}),e in FS.Ka||(FS.Ka[e]=1)),a},close(e){if(null===e.P)throw new FS.h(8);e.Ca&&(e.Ca=null);try{e.o.close&&e.o.close(e)}catch(e){throw e}finally{FS.streams[e.P]=null}e.P=null},llseek(e,r,t){if(null===e.P)throw new FS.h(8);if(!e.seekable||!e.o.llseek)throw new FS.h(70);if(0!=t&&1!=t&&2!=t)throw new FS.h(28);return e.position=e.o.llseek(e,r,t),e.ec=[],e.position},read(e,r,t,n,a){if(0>n||0>a)throw new FS.h(28);if(null===e.P)throw new FS.h(8);if(1==(2097155&e.flags))throw new FS.h(8);if(FS.isDir(e.node.mode))throw new FS.h(31);if(!e.o.read)throw new FS.h(28);var i=void 0!==a;if(i){if(!e.seekable)throw new FS.h(70)}else a=e.position;return r=e.o.read(e,r,t,n,a),i||(e.position+=r),r},write(e,r,t,n,a,i){if(0>n||0>a)throw new FS.h(28);if(null===e.P)throw new FS.h(8);if(!(2097155&e.flags))throw new FS.h(8);if(FS.isDir(e.node.mode))throw new FS.h(31);if(!e.o.write)throw new FS.h(28);e.seekable&&1024&e.flags&&FS.llseek(e,0,2);var o=void 0!==a;if(o){if(!e.seekable)throw new FS.h(70)}else a=e.position;return r=e.o.write(e,r,t,n,a,i),o||(e.position+=r),r},Z(e,r,t){if(null===e.P)throw new FS.h(8);if(0>r||0>=t)throw new FS.h(28);if(!(2097155&e.flags))throw new FS.h(8);if(!FS.isFile(e.node.mode)&&!FS.isDir(e.node.mode))throw new FS.h(43);if(!e.o.Z)throw new FS.h(138);e.o.Z(e,r,t)},da(e,r,t,n,a){if(2&n&&!(2&a)&&2!=(2097155&e.flags))throw new FS.h(2);if(1==(2097155&e.flags))throw new FS.h(2);if(!e.o.da)throw new FS.h(43);return e.o.da(e,r,t,n,a)},ha:(e,r,t,n,a)=>e.o.ha?e.o.ha(e,r,t,n,a):0,Fa(e,r,t){if(!e.o.Fa)throw new FS.h(59);return e.o.Fa(e,r,t)},readFile(e,r={}){if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw Error(`Invalid encoding type "${r.encoding}"`);var t,n=FS.open(e,r.flags);e=FS.stat(e).size;var a=new Uint8Array(e);return FS.read(n,a,0,e,0),"utf8"===r.encoding?t=Of(a,0):"binary"===r.encoding&&(t=a),FS.close(n),t},writeFile(e,r,t={}){if(t.flags=t.flags||577,e=FS.open(e,t.flags,t.mode),"string"==typeof r){var n=new Uint8Array(Kg(r)+1);r=Lg(r,n,0,n.length),FS.write(e,n,0,r,void 0,t.pb)}else{if(!ArrayBuffer.isView(r))throw Error("Unsupported data type");FS.write(e,r,0,r.byteLength,void 0,t.pb)}FS.close(e)},cwd:()=>FS.Ra,chdir(e){if(null===(e=FS.lookupPath(e,{follow:!0})).node)throw new FS.h(44);if(!FS.isDir(e.node.mode))throw new FS.h(54);var r=Zg(e.node,"x");if(r)throw new FS.h(r);FS.Ra=e.path},init(e,r,t){FS.init.Ea=!0,l.stdin=e||l.stdin,l.stdout=r||l.stdout,l.stderr=t||l.stderr,l.stdin?FS.createDevice("/dev","stdin",l.stdin):FS.symlink("/dev/tty","/dev/stdin"),l.stdout?FS.createDevice("/dev","stdout",null,l.stdout):FS.symlink("/dev/tty","/dev/stdout"),l.stderr?FS.createDevice("/dev","stderr",null,l.stderr):FS.symlink("/dev/tty1","/dev/stderr"),FS.open("/dev/stdin",0),FS.open("/dev/stdout",1),FS.open("/dev/stderr",1)},uc:(e,r)=>(e=FS.analyzePath(e,r)).Ua?e.object:null,analyzePath(e,r){try{var t=FS.lookupPath(e,{follow:!r});e=t.path}catch(e){}var n={ua:!1,Ua:!1,error:0,name:null,path:null,object:null,Qb:!1,Sb:null,Rb:null};try{t=FS.lookupPath(e,{parent:!0}),n.Qb=!0,n.Sb=t.path,n.Rb=t.node,n.name=Dg(e),t=FS.lookupPath(e,{follow:!r}),n.Ua=!0,n.path=t.path,n.object=t.node,n.name=t.node.name,n.ua="/"===t.path}catch(e){n.error=e.B}return n},createPath(e,r){for(e="string"==typeof e?e:FS.getPath(e),r=r.split("/").reverse();r.length;){var t=r.pop();if(t){var n=Bg(e+"/"+t);try{FS.mkdir(n)}catch(e){}e=n}}return n},createDataFile(e,r,t,n,a,i){var o=r;if(e&&(e="string"==typeof e?e:FS.getPath(e),o=r?Bg(e+"/"+r):e),e=Yg(n,a),o=FS.create(o,e),t){if("string"==typeof t){for(r=Array(t.length),n=0,a=t.length;n<a;++n)r[n]=t.charCodeAt(n);t=r}FS.chmod(o,146|e),r=FS.open(o,577),FS.write(r,t,0,t.length,0,i),FS.close(r),FS.chmod(o,e)}},createDevice(e,r,t,n){e=Eg("string"==typeof e?e:FS.getPath(e),r),r=Yg(!!t,!!n),FS.createDevice.Ha||(FS.createDevice.Ha=64);var a=FS.makedev(FS.createDevice.Ha++,0);return FS.registerDevice(a,{open(e){e.seekable=!1},close(){n?.buffer?.length&&n(10)},read(e,r,n,a){for(var i=0,o=0;o<a;o++){try{var s=t()}catch(e){throw new FS.h(29)}if(void 0===s&&0===i)throw new FS.h(6);if(null==s)break;i++,r[n+o]=s}return i&&(e.node.timestamp=Date.now()),i},write(e,r,t,a){for(var i=0;i<a;i++)try{n(r[t+i])}catch(e){throw new FS.h(29)}return a&&(e.node.timestamp=Date.now()),i}}),FS.mkdev(e,r,a)},createLazyFile(e,r,t,n,a){function i(e,r,t,n,a){if(a>=(e=e.node.u).length)return 0;if(n=Math.min(e.length-a,n),e.slice)for(var i=0;i<n;i++)r[t+i]=e[a+i];else for(i=0;i<n;i++)r[t+i]=e.get(a+i);return n}class o{constructor(){this.Da=!1,this.M=[],this.ja=void 0,this.Za=this.$a=0}get(e){if(!(e>this.length-1||0>e)){var r=e%this.fb;return this.ja(e/this.fb|0)[r]}}dc(e){this.ja=e}cb(){var e=new XMLHttpRequest;if(e.open("HEAD",t,!1),e.send(null),!(200<=e.status&&300>e.status||304===e.status))throw Error("Couldn't load "+t+". Status: "+e.status);var r,n=Number(e.getResponseHeader("Content-length")),a=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r;e=(r=e.getResponseHeader("Content-Encoding"))&&"gzip"===r;var i=1048576;a||(i=n);var o=this;o.dc((e=>{var r=e*i,a=(e+1)*i-1;if(a=Math.min(a,n-1),void 0===o.M[e]){var s=o.M;if(r>a)throw Error("invalid range ("+r+", "+a+") or no bytes requested!");if(a>n-1)throw Error("only "+n+" bytes available! programmer error!");var c=new XMLHttpRequest;if(c.open("GET",t,!1),n!==i&&c.setRequestHeader("Range","bytes="+r+"-"+a),c.responseType="arraybuffer",c.overrideMimeType&&c.overrideMimeType("text/plain; charset=x-user-defined"),c.send(null),!(200<=c.status&&300>c.status||304===c.status))throw Error("Couldn't load "+t+". Status: "+c.status);r=void 0!==c.response?new Uint8Array(c.response||[]):Mg(c.responseText||""),s[e]=r}if(void 0===o.M[e])throw Error("doXHR failed!");return o.M[e]})),!e&&n||(i=n=1,i=n=this.ja(0).length,sa("LazyFiles on gzip forces download of the whole file when length is accessed")),this.$a=n,this.Za=i,this.Da=!0}get length(){return this.Da||this.cb(),this.$a}get fb(){return this.Da||this.cb(),this.Za}}if("undefined"!=typeof XMLHttpRequest){if(!ea)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var s=new o,c=void 0}else c=t,s=void 0;var l=ih(e,r,n,a);s?l.u=s:c&&(l.u=null,l.url=c),Object.defineProperties(l,{C:{get:function(){return this.u.length}}});var h={};return Object.keys(l.o).forEach((e=>{var r=l.o[e];h[e]=(...e)=>(jh(l),r(...e))})),h.read=(e,r,t,n,a)=>(jh(l),i(e,r,t,n,a)),h.da=(e,r,t)=>{jh(l);var n=Tg(r);if(!n)throw new FS.h(48);return i(e,x,n,r,t),{s:n,X:!0}},l.o=h,l}},kh=5;function lh(e,r,t){if("/"===r.charAt(0))return r;if(e=-100===e?FS.cwd():T(e).path,0==r.length){if(!t)throw new FS.h(44);return e}return Bg(e+"/"+r)}function mh(e,r,t){e=e(r),B[t>>2]=e.tb,B[t+4>>2]=e.mode,C[t+8>>2]=e.Pb,B[t+12>>2]=e.uid,B[t+16>>2]=e.Db,B[t+20>>2]=e.na,D[t+24>>3]=BigInt(e.size),B[t+32>>2]=4096,B[t+36>>2]=e.ob,r=e.mb.getTime();var n=e.Nb.getTime(),a=e.sb.getTime();return D[t+40>>3]=BigInt(Math.floor(r/1e3)),C[t+48>>2]=r%1e3*1e3,D[t+56>>3]=BigInt(Math.floor(n/1e3)),C[t+64>>2]=n%1e3*1e3,D[t+72>>3]=BigInt(Math.floor(a/1e3)),C[t+80>>2]=a%1e3*1e3,D[t+88>>3]=BigInt(e.Gb),0}var nh=void 0;function Jb(e){if(r)return O(3,1,e);try{return gh(T(e)).P}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}function Kb(e,t,n,a){if(r)return O(4,1,e,t,n,a);try{if(t=lh(e,t=R(t)),-8&n)return-28;var i=FS.lookupPath(t,{follow:!0}).node;return i?(e="",4&n&&(e+="r"),2&n&&(e+="w"),1&n&&(e+="x"),e&&Zg(i,e)?-2:0):-44}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}function oh(){var e=B[+nh>>2];return nh+=4,e}function Lb(e,t,n){if(r)return O(5,1,e,t,n);nh=n;try{var a=T(e);switch(t){case 0:var i=oh();if(0>i)break;for(;FS.streams[i];)i++;return gh(a,i).P;case 1:case 2:case 13:case 14:return 0;case 3:return a.flags;case 4:return i=oh(),a.flags|=i,0;case 12:return i=oh(),z[i+0>>1]=2,0}return-28}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}function Mb(e,t){if(r)return O(6,1,e,t);try{var n=T(e);return mh(FS.stat,n.path,t)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}function Nb(e,t){if(r)return O(7,1,e,t);t=Oe(t);try{return isNaN(t)?61:(FS.ftruncate(e,t),0)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}function Ob(e,t){if(r)return O(8,1,e,t);try{if(0===t)return-28;var n=FS.cwd(),a=Kg(n)+1;return t<a?-68:(Lg(n,y,e,t),a)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}function Pb(e,t,n){if(r)return O(9,1,e,t,n);nh=n;try{var a=T(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return a.A?0:-59;case 21505:if(!a.A)return-59;if(a.A.W.Hb){e=[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];var i=oh();B[i>>2]=25856,B[i+4>>2]=5,B[i+8>>2]=191,B[i+12>>2]=35387;for(var o=0;32>o;o++)x[i+o+17]=e[o]||0}return 0;case 21506:case 21507:case 21508:if(!a.A)return-59;if(a.A.W.Ib)for(i=oh(),e=[],o=0;32>o;o++)e.push(x[i+o+17]);return 0;case 21519:return a.A?(i=oh(),B[i>>2]=0):-59;case 21520:return a.A?-28:-59;case 21531:return i=oh(),FS.Fa(a,t,i);case 21523:return a.A?(a.A.W.Jb&&(o=[24,80],i=oh(),z[i>>1]=o[0],z[i+2>>1]=o[1]),0):-59;default:return-28}}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}function Qb(e,t){if(r)return O(10,1,e,t);try{return e=R(e),mh(FS.lstat,e,t)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}function Rb(e,t,n,a){if(r)return O(11,1,e,t,n,a);try{t=R(t);var i=256&a;return t=lh(e,t,4096&a),mh(i?FS.lstat:FS.stat,t,n)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}function Sb(e,t,n,a){if(r)return O(12,1,e,t,n,a);nh=a;try{t=lh(e,t=R(t));var i=a?oh():0;return FS.open(t,n,i).P}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}function Tb(e,t,n){if(r)return O(13,1,e,t,n);try{for(var a=n=0;a<t;a++){var i=e+8*a,o=z[i+4>>1],s=32,c=FS.Wa(B[i>>2]);c&&(s=kh,c.o.Ub&&(s=c.o.Ub(c,-1))),(s&=24|o)&&n++,z[i+6>>1]=s}return n}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}function Ub(e){if(r)return O(14,1,e);try{return e=R(e),FS.rmdir(e),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}function Vb(e,t){if(r)return O(15,1,e,t);try{return e=R(e),mh(FS.stat,e,t)}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}function Wb(e,t,n){if(r)return O(16,1,e,t,n);try{return t=lh(e,t=R(t)),0===n?FS.unlink(t):512===n?FS.rmdir(t):hb("Invalid flags passed to unlinkat"),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}Jb.g="ii",Kb.g="iipii",Lb.g="iiip",Mb.g="iip",Nb.g="iij",Ob.g="ipp",Pb.g="iiip",Qb.g="ipp",Rb.g="iippi",Sb.g="iipip",Tb.g="ipii",Ub.g="ip",Vb.g="ipp",Wb.g="iipi";var Xb=new WebAssembly.Global({value:"i32",mutable:!1},1),Yb=()=>{hb("")};Yb.g="v";var ph={},qh=e=>{var r=Kg(e)+1,t=Ce(r);return Lg(e,y,t,r),t},sh=e=>{var r=I();e=qh(e),rh(e,0),J(r)},th=(e,r)=>{var t=R(e+36),n=B[e+4>>2];t=Bg(t);var a=!!(256&n),i=a?null:{};if(n={global:a,la:!!(4096&n),G:r.G},r.G)return lg(t,n,i,e);try{return lg(t,n,i,e)}catch(e){return sh(`Could not load dynamic lib: ${t}\n${e}`),0}},Zb=e=>th(e,{G:!1});Zb.g="pp";var $b=(e,r)=>(r=(e=Tf[e].exports)[r=Object.keys(e)[r]],bg(r,r.g));$b.g="ppi";var ac=(e,r,t)=>{r=R(r);var n=Tf[e];return!n.exports.hasOwnProperty(r)||n.exports[r].ia?(sh(`Tried to lookup unknown symbol "${r}" in dynamic lib: ${n.name}`),0):(e=Object.keys(n.exports).indexOf(r),"function"==typeof(r=n.exports[r])&&((n=$f(r))?r=n:(r=bg(r,r.g),C[t>>2]=e)),r)};ac.g="pppp";var uh={},vh=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function wh(e){return this.fromWireType(C[e>>2])}var xh={},yh={},zh={},Ah,Ch=(e,r,t)=>{function n(r){if((r=t(r)).length!==e.length)throw new Ah("Mismatched type converter count");for(var n=0;n<e.length;++n)Bh(e[n],r[n])}e.forEach((function(e){zh[e]=r}));var a=Array(r.length),i=[],o=0;r.forEach(((e,r)=>{yh.hasOwnProperty(e)?a[r]=yh[e]:(i.push(e),xh.hasOwnProperty(e)||(xh[e]=[]),xh[e].push((()=>{a[r]=yh[e],++o===i.length&&n(a)})))})),0===i.length&&n(a)},bc=e=>{var r=uh[e];delete uh[e];var t=r.Ja,n=r.U,a=r.Va,i=a.map((e=>e.Cb)).concat(a.map((e=>e.Yb)));Ch([e],i,(e=>{var i={};return a.forEach(((r,t)=>{var n=e[t],o=r.ja,s=r.Bb,c=e[t+a.length],l=r.Xb,h=r.Zb;i[r.wb]={read:e=>n.fromWireType(o(s,e)),write:(e,r)=>{var t=[];l(h,e,c.toWireType(t,r)),vh(t)}}})),[{name:r.name,fromWireType:e=>{var r,t={};for(r in i)t[r]=i[r].read(e);return n(e),t},toWireType:(e,r)=>{for(var a in i)if(!(a in r))throw new TypeError(`Missing field: "${a}"`);var o=t();for(a in i)i[a].write(o,r[a]);return null!==e&&e.push(n,o),o},argPackAdvance:Dh,readValueFromPointer:wh,J:n}]}))};bc.g="vp";var Eh,U=e=>{for(var r="";y[e];)r+=Eh[y[e++]];return r},V,Fh=e=>{throw new V(e)};function Gh(e,r,t={}){var n=r.name;if(!e)throw new V(`type "${n}" must have a positive integer typeid pointer`);if(yh.hasOwnProperty(e)){if(t.Fb)return;throw new V(`Cannot register type '${n}' twice`)}yh[e]=r,delete zh[e],xh.hasOwnProperty(e)&&(r=xh[e],delete xh[e],r.forEach((e=>e())))}function Bh(e,r,t={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Gh(e,r,t)}var cc=(e,r,t,n,a)=>{if(r=U(r),n)e:switch(t){case 4:n=Oa;break e;case 8:n=Qa;break e;default:throw new TypeError(`invalid float width (${t}): ${r}`)}else e:switch(t){case 1:n=a?x:y;break e;case 2:n=a?z:A;break e;case 4:n=a?B:C;break e;case 8:n=a?D:Pa;break e;default:throw new TypeError(`invalid integer width (${t}): ${r}`)}var i=n,o=Math.log2(t);Bh(e,{name:r,fromWireType:e=>{for(var r=C[e>>2],n=Array(r),a=e+Math.max(4,t)>>o,s=0;s<r;++s)n[s]=i[a+s];return W(e),n},toWireType:(e,n)=>{if("number"==typeof n&&(n=[n]),!Array.isArray(n))throw new V("Cannot pass non-array to C++ vector type "+r);var a=(n=Array.prototype.concat.apply([],n)).length,s=Math.max(4,t),c=Wf(s+a*t);return s=c+s>>o,C[c>>2]=a,i.set(n,s),null!==e&&e.push(W,c),c},argPackAdvance:Dh,readValueFromPointer:wh,J(e){W(e)}})};cc.g="vpppii";var Hh=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},Ih=(e,r,t)=>{switch(r){case 1:return t?e=>x[e]:e=>y[e];case 2:return t?e=>z[e>>1]:e=>A[e>>1];case 4:return t?e=>B[e>>2]:e=>C[e>>2];case 8:return t?e=>D[e>>3]:e=>Pa[e>>3];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},dc=(e,r,t)=>{var n=(r=U(r)).includes("u");Bh(e,{name:r,fromWireType:e=>e,toWireType:function(e,r){if("bigint"!=typeof r&&"number"!=typeof r)throw new TypeError(`Cannot convert "${Hh(r)}" to ${this.name}`);return"number"==typeof r&&(r=BigInt(r)),r},argPackAdvance:Dh,readValueFromPointer:Ih(r,t,!n),J:null})};dc.g="vpppjj";var Dh=8,ec=(e,r,t,n)=>{Bh(e,{name:r=U(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},argPackAdvance:Dh,readValueFromPointer:function(e){return this.fromWireType(y[e])},J:null})};ec.g="vppii";var Jh=e=>{throw new V(e.l.D.v.name+" instance already deleted")},Kh=!1,Lh=!1,Mh=()=>{},Nh=(e,r,t)=>r===t?e:void 0===t.L||null===(e=Nh(e,r,t.L))?null:t.ub(e),Oh={},Ph=[],Qh=()=>{for(;Ph.length;){var e=Ph.pop();e.l.aa=!1,e.delete()}},Rh,Sh={},Th=(e,r)=>{if(void 0===r)throw new V("ptr should not be undefined");for(;e.L;)r=e.qa(r),e=e.L;return Sh[r]},Vh=(e,r)=>{if(!r.D||!r.s)throw new Ah("makeClassHandle requires ptr and ptrType");if(!!r.N!=!!r.I)throw new Ah("Both smartPtrType and smartPtr must be specified");return r.count={value:1},Uh(Object.create(e,{l:{value:r,writable:!0}}))},Uh=e=>Kh?(Uh=e=>e.deleteLater(),Uh(e)):"undefined"==typeof FinalizationRegistry?(Uh=e=>e,e):(Lh=new FinalizationRegistry((e=>{--(e=e.l).count.value,0===e.count.value&&(e.I?e.N.U(e.I):e.D.v.U(e.s))})),Uh=e=>{var r=e.l;return r.I&&Lh.register(e,{l:r},e),e},Mh=e=>{Lh.unregister(e)},Uh(e));function Wh(){}var Xh=(e,r)=>Object.defineProperty(r,"name",{value:e}),Yh=(e,r,t)=>{if(void 0===e[r].F){var n=e[r];e[r]=function(...n){if(!e[r].F.hasOwnProperty(n.length))throw new V(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${e[r].F})!`);return e[r].F[n.length].apply(this,n)},e[r].F=[],e[r].F[n.ga]=n}},Zh=(e,r,t)=>{if(l.hasOwnProperty(e)){if(void 0===t||void 0!==l[e].F&&void 0!==l[e].F[t])throw new V(`Cannot register public name '${e}' twice`);if(Yh(l,e,e),l.hasOwnProperty(t))throw new V(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`);l[e].F[t]=r}else l[e]=r,void 0!==t&&(l[e].Cc=t)},$h=e=>{if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=r&&57>=r?`_${e}`:e};function ai(e,r,t,n,a,i,o,s){this.name=e,this.constructor=r,this.Y=t,this.U=n,this.L=a,this.yb=i,this.qa=o,this.ub=s,this.Vb=[]}var bi=(e,r,t)=>{for(;r!==t;){if(!r.qa)throw new V(`Expected null or instance of ${t.name}, got an instance of ${r.name}`);e=r.qa(e),r=r.L}return e};function ci(e,r){if(null===r){if(this.Ga)throw new V(`null is not a valid ${this.name}`);return 0}if(!r.l)throw new V(`Cannot pass "${Hh(r)}" as a ${this.name}`);if(!r.l.s)throw new V(`Cannot pass deleted object as a pointer of type ${this.name}`);return bi(r.l.s,r.l.D.v,this.v)}function di(e,r){if(null===r){if(this.Ga)throw new V(`null is not a valid ${this.name}`);if(this.va){var t=this.Ja();return null!==e&&e.push(this.U,t),t}return 0}if(!r||!r.l)throw new V(`Cannot pass "${Hh(r)}" as a ${this.name}`);if(!r.l.s)throw new V(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.ta&&r.l.D.ta)throw new V(`Cannot convert argument of type ${r.l.N?r.l.N.name:r.l.D.name} to parameter type ${this.name}`);if(t=bi(r.l.s,r.l.D.v,this.v),this.va){if(void 0===r.l.I)throw new V("Passing raw pointer to smart pointer is illegal");switch(this.$b){case 0:if(r.l.N!==this)throw new V(`Cannot convert argument of type ${r.l.N?r.l.N.name:r.l.D.name} to parameter type ${this.name}`);t=r.l.I;break;case 1:t=r.l.I;break;case 2:if(r.l.N===this)t=r.l.I;else{var n=r.clone();t=this.Wb(t,ei((()=>n.delete()))),null!==e&&e.push(this.U,t)}break;default:throw new V("Unsupporting sharing policy")}}return t}function fi(e,r){if(null===r){if(this.Ga)throw new V(`null is not a valid ${this.name}`);return 0}if(!r.l)throw new V(`Cannot pass "${Hh(r)}" as a ${this.name}`);if(!r.l.s)throw new V(`Cannot pass deleted object as a pointer of type ${this.name}`);if(r.l.D.ta)throw new V(`Cannot convert argument of type ${r.l.D.name} to parameter type ${this.name}`);return bi(r.l.s,r.l.D.v,this.v)}function gi(e,r,t,n,a,i,o,s,c,l,h){this.name=e,this.v=r,this.Ga=t,this.ta=n,this.va=a,this.Tb=i,this.$b=o,this.eb=s,this.Ja=c,this.Wb=l,this.U=h,a||void 0!==r.L?this.toWireType=di:(this.toWireType=n?ci:fi,this.J=null)}var hi=(e,r,t)=>{if(!l.hasOwnProperty(e))throw new Ah("Replacing nonexistent public symbol");void 0!==l[e].F&&void 0!==t?l[e].F[t]=r:(l[e]=r,l[e].ga=t)},X=(e,r)=>{e=U(e);var t=K(r);if("function"!=typeof t)throw new V(`unknown function pointer with signature ${e}: ${r}`);return t},ii,ki=e=>{e=ji(e);var r=U(e);return W(e),r},li=(e,r)=>{var t=[],n={};throw r.forEach((function e(r){n[r]||yh[r]||(zh[r]?zh[r].forEach(e):(t.push(r),n[r]=!0))})),new ii(`${e}: `+t.map(ki).join([", "]))},fc=(e,r,t,n,a,i,o,s,c,l,h,u,f)=>{h=U(h),i=X(a,i),s&&=X(o,s),l&&=X(c,l),f=X(u,f);var d=$h(h);Zh(d,(function(){li(`Cannot construct ${h} due to unbound types`,[n])})),Ch([e,r,t],n?[n]:[],(r=>{if(r=r[0],n)var t=r.v,a=t.Y;else a=Wh.prototype;r=Xh(h,(function(...e){if(Object.getPrototypeOf(this)!==o)throw new V("Use 'new' to construct "+h);if(void 0===u.$)throw new V(h+" has no accessible constructor");var r=u.$[e.length];if(void 0===r)throw new V(`Tried to invoke ctor of ${h} with invalid number of parameters (${e.length}) - expected (${Object.keys(u.$).toString()}) parameters instead!`);return r.apply(this,e)}));var o=Object.create(a,{constructor:{value:r}});r.prototype=o;var c,u=new ai(h,r,o,f,t,i,s,l);return u.L&&((c=u.L).ra??(c.ra=[]),u.L.ra.push(u)),t=new gi(h,u,!0,!1,!1),c=new gi(h+"*",u,!1,!1,!1),a=new gi(h+" const*",u,!1,!0,!1),Oh[e]={pointerType:c,rb:a},hi(d,r),[t,c,a]}))};function mi(e){for(var r=1;r<e.length;++r)if(null!==e[r]&&void 0===e[r].J)return!0;return!1}function ni(e){var r=Function;if(!(r instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof r} which is not a function`);var t=Xh(r.name||"unknownFunctionName",(function(){}));return t.prototype=r.prototype,t=new t,(e=r.apply(t,e))instanceof Object?e:t}function oi(e,r,t,n,a,i){var o=r.length;if(2>o)throw new V("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=null!==r[1]&&null!==t,c=mi(r);for(t="void"!==r[0].name,n=[e,Fh,n,a,vh,r[0],r[1]],a=0;a<o-2;++a)n.push(r[a+2]);if(!c)for(a=s?1:2;a<r.length;++a)null!==r[a].J&&n.push(r[a].J);c=mi(r),a=r.length;var l="",h="";for(o=0;o<a-2;++o)l+=(0!==o?", ":"")+"arg"+o,h+=(0!==o?", ":"")+"arg"+o+"Wired";l=`\n        return function (${l}) {\n        if (arguments.length !== ${a-2}) {\n          throwBindingError('function ' + humanName + ' called with ' + arguments.length + ' arguments, expected ${a-2}');\n        }`,c&&(l+="var destructors = [];\n");var u=c?"destructors":"null",f="humanName throwBindingError invoker fn runDestructors retType classParam".split(" ");for(s&&(l+="var thisWired = classParam['toWireType']("+u+", this);\n"),o=0;o<a-2;++o)l+="var arg"+o+"Wired = argType"+o+"['toWireType']("+u+", arg"+o+");\n",f.push("argType"+o);if(s&&(h="thisWired"+(0<h.length?", ":"")+h),l+=(t||i?"var rv = ":"")+"invoker(fn"+(0<h.length?", ":"")+h+");\n",c)l+="runDestructors(destructors);\n";else for(o=s?1:2;o<r.length;++o)i=1===o?"thisWired":"arg"+(o-2)+"Wired",null!==r[o].J&&(l+=`${i}_dtor(${i});\n`,f.push(`${i}_dtor`));t&&(l+="var ret = retType['fromWireType'](rv);\nreturn ret;\n");let[d,p]=[f,l+"}\n"];return d.push(p),r=ni(d)(...n),Xh(e,r)}fc.g="vppppppppppppp";var pi=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(C[r+4*n>>2]);return t},qi=e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?e.substr(0,r):e},gc=(e,r,t,n,a,i,o,s)=>{var c=pi(t,n);r=U(r),r=qi(r),i=X(a,i),Ch([],[e],(e=>{function n(){li(`Cannot call ${a} due to unbound types`,c)}var a=`${(e=e[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]);var l=e.v.constructor;return void 0===l[r]?(n.ga=t-1,l[r]=n):(Yh(l,r,a),l[r].F[t-1]=n),Ch([],c,(n=>{if(n=oi(a,[n[0],null].concat(n.slice(1)),null,i,o,s),void 0===l[r].F?(n.ga=t-1,l[r]=n):l[r].F[t-1]=n,e.v.ra)for(const t of e.v.ra)t.constructor.hasOwnProperty(r)||(t.constructor[r]=n);return[]})),[]}))};gc.g="vppippppi";var hc=(e,r,t,n,a,i)=>{var o=pi(r,t);a=X(n,a),Ch([],[e],(e=>{var t=`constructor ${(e=e[0]).name}`;if(void 0===e.v.$&&(e.v.$=[]),void 0!==e.v.$[r-1])throw new V(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.v.$[r-1]=()=>{li(`Cannot construct ${e.name} due to unbound types`,o)},Ch([],o,(n=>(n.splice(1,0,null),e.v.$[r-1]=oi(t,n,null,a,i),[]))),[]}))};hc.g="vpipppp";var ic=(e,r,t,n,a,i,o,s,c)=>{var l=pi(t,n);r=U(r),r=qi(r),i=X(a,i),Ch([],[e],(e=>{function n(){li(`Cannot call ${a} due to unbound types`,l)}var a=`${(e=e[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.v.Vb.push(r);var h=e.v.Y,u=h[r];return void 0===u||void 0===u.F&&u.className!==e.name&&u.ga===t-2?(n.ga=t-2,n.className=e.name,h[r]=n):(Yh(h,r,a),h[r].F[t-2]=n),Ch([],l,(n=>(n=oi(a,n,e,i,o,c),void 0===h[r].F?(n.ga=t-2,h[r]=n):h[r].F[t-2]=n,[]))),[]}))};ic.g="vppippppii";var ri=(e,r,t)=>{if(!(e instanceof Object))throw new V(`${t} with invalid "this": ${e}`);if(!(e instanceof r.v.constructor))throw new V(`${t} incompatible with "this" of type ${e.constructor.name}`);if(!e.l.s)throw new V(`cannot call emscripten binding method ${t} on deleted object`);return bi(e.l.s,e.l.D.v,r.v)},jc=(e,r,t,n,a,i,o,s,c,l)=>{r=U(r),a=X(n,a),Ch([],[e],(e=>{var n=`${(e=e[0]).name}.${r}`,h={get(){li(`Cannot access ${n} due to unbound types`,[t,o])},enumerable:!0,configurable:!0};return h.set=c?()=>li(`Cannot access ${n} due to unbound types`,[t,o]):()=>{throw new V(n+" is a read-only property")},Object.defineProperty(e.v.Y,r,h),Ch([],c?[t,o]:[t],(t=>{var o=t[0],h={get(){var r=ri(this,e,n+" getter");return o.fromWireType(a(i,r))},enumerable:!0};if(c){c=X(s,c);var u=t[1];h.set=function(r){var t=ri(this,e,n+" setter"),a=[];c(l,t,u.toWireType(a,r)),vh(a)}}return Object.defineProperty(e.v.Y,r,h),[]})),[]}))};jc.g="vpppppppppp";var si=[],ti=[],Lc=e=>{9<e&&0==--ti[e+1]&&(ti[e]=void 0,si.push(e))};Lc.g="vp";var Y=e=>{if(!e)throw new V("Cannot use deleted val. handle = "+e);return ti[e]},ei=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const r=si.pop()||ti.length;return ti[r]=e,ti[r+1]=1,r}},ui={name:"emscripten::val",fromWireType:e=>{var r=Y(e);return Lc(e),r},toWireType:(e,r)=>ei(r),argPackAdvance:Dh,readValueFromPointer:wh,J:null},kc=e=>Bh(e,ui);kc.g="vp";var vi=(e,r,t)=>{switch(r){case 1:return t?function(e){return this.fromWireType(x[e])}:function(e){return this.fromWireType(y[e])};case 2:return t?function(e){return this.fromWireType(z[e>>1])}:function(e){return this.fromWireType(A[e>>1])};case 4:return t?function(e){return this.fromWireType(B[e>>2])}:function(e){return this.fromWireType(C[e>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},lc=(e,r,t,n)=>{function a(){}r=U(r),a.values={},Bh(e,{name:r,constructor:a,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,r)=>r.value,argPackAdvance:Dh,readValueFromPointer:vi(r,t,n),J:null}),Zh(r,a)};lc.g="vpppi";var wi=(e,r)=>{var t=yh[e];if(void 0===t)throw e=`${r} has unknown type ${ki(e)}`,new V(e);return t},mc=(e,r,t)=>{var n=wi(e,"enum");r=U(r),e=n.constructor,n=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:Xh(`${n.name}_${r}`,(function(){}))}}),e.values[t]=n,e[r]=n};mc.g="vppi";var xi=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(Oa[e>>2])};case 8:return function(e){return this.fromWireType(Qa[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},nc=(e,r,t)=>{Bh(e,{name:r=U(r),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:Dh,readValueFromPointer:xi(r,t),J:null})};nc.g="vppp";var oc=(e,r,t,n,a,i,o)=>{var s=pi(r,t);e=U(e),e=qi(e),a=X(n,a),Zh(e,(function(){li(`Cannot call ${e} due to unbound types`,s)}),r-1),Ch([],s,(t=>(hi(e,oi(e,[t[0],null].concat(t.slice(1)),null,a,i,o),r-1),[])))};oc.g="vpippppi";var pc=(e,r,t,n,a)=>{if(r=U(r),-1===a&&(a=4294967295),a=e=>e,0===n){var i=32-8*t;a=e=>e<<i>>>i}var o=r.includes("unsigned")?function(e,r){return r>>>0}:function(e,r){return r};Bh(e,{name:r,fromWireType:a,toWireType:o,argPackAdvance:Dh,readValueFromPointer:Ih(r,t,0!==n),J:null})};pc.g="vpppii";var qc=(e,r,t)=>{function n(e){return new a(x.buffer,C[e+4>>2],C[e>>2])}var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][r];Bh(e,{name:t=U(t),fromWireType:n,argPackAdvance:Dh,readValueFromPointer:n},{Fb:!0})};qc.g="vpip";var rc=(e,r)=>{var t="std::string"===(r=U(r));Bh(e,{name:r,fromWireType:function(e){var r=C[e>>2],n=e+4;if(t)for(var a=n,i=0;i<=r;++i){var o=n+i;if(i==r||0==y[o]){if(a=R(a,o-a),void 0===s)var s=a;else s+=String.fromCharCode(0),s+=a;a=o+1}}else{for(s=Array(r),i=0;i<r;++i)s[i]=String.fromCharCode(y[n+i]);s=s.join("")}return W(e),s},toWireType:function(e,r){r instanceof ArrayBuffer&&(r=new Uint8Array(r));var n="string"==typeof r;if(!(n||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array))throw new V("Cannot pass non-string to std::string");var a=t&&n?Kg(r):r.length,i=Wf(4+a+1),o=i+4;if(C[i>>2]=a,t&&n)Lg(r,y,o,a+1);else if(n)for(n=0;n<a;++n){var s=r.charCodeAt(n);if(255<s)throw W(o),new V("String has UTF-16 code units that do not fit in 8 bits");y[o+n]=s}else y.set(r,o);return null!==e&&e.push(W,i),i},argPackAdvance:Dh,readValueFromPointer:wh,J(e){W(e)}})};rc.g="vpp";var Ai=new TextDecoder("utf-16le"),Bi=(e,r)=>{var t=e>>1;for(r=t+r/2;!(t>=r)&&A[t];)++t;return Ai.decode(y.slice(e,t<<1))},Ci=(e,r,t)=>{if(t??=2147483647,2>t)return 0;var n=r;t=(t-=2)<2*e.length?t/2:e.length;for(var a=0;a<t;++a)z[r>>1]=e.charCodeAt(a),r+=2;return z[r>>1]=0,r-n},Di=e=>2*e.length,Ei=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var a=B[e+4*t>>2];if(0==a)break;++t,65536<=a?(a-=65536,n+=String.fromCharCode(55296|a>>10,56320|1023&a)):n+=String.fromCharCode(a)}return n},Fi=(e,r,t)=>{if(t??=2147483647,4>t)return 0;var n=r;t=n+t-4;for(var a=0;a<e.length;++a){var i=e.charCodeAt(a);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++a)),B[r>>2]=i,(r+=4)+4>t)break}return B[r>>2]=0,r-n},Gi=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);55296<=n&&57343>=n&&++t,r+=4}return r},sc=(e,r,t)=>{if(t=U(t),2===r)var n=Bi,a=Ci,i=Di,o=e=>A[e>>1];else 4===r&&(n=Ei,a=Fi,i=Gi,o=e=>C[e>>2]);Bh(e,{name:t,fromWireType:e=>{for(var t,a=C[e>>2],i=e+4,s=0;s<=a;++s){var c=e+4+s*r;s!=a&&0!=o(c)||(i=n(i,c-i),void 0===t?t=i:(t+=String.fromCharCode(0),t+=i),i=c+r)}return W(e),t},toWireType:(e,n)=>{if("string"!=typeof n)throw new V(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),s=Wf(4+o+r);return C[s>>2]=o/r,a(n,s+4,o+r),null!==e&&e.push(W,s),s},argPackAdvance:Dh,readValueFromPointer:wh,J(e){W(e)}})};sc.g="vppp";var tc=(e,r,t,n,a,i)=>{uh[e]={name:U(r),Ja:X(t,n),U:X(a,i),Va:[]}};tc.g="vpppppp";var uc=(e,r,t,n,a,i,o,s,c,l)=>{uh[e].Va.push({wb:U(r),Cb:t,ja:X(n,a),Bb:i,Yb:o,Xb:X(s,c),Zb:l})};uc.g="vpppppppppp";var vc=(e,r)=>{Bh(e,{Mb:!0,name:r=U(r),argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}})};vc.g="vpp";var wc=(e,r,t,n)=>{function a(r){var a=R(e+36);sh(`'Could not load dynamic lib: ${a}\n${r}`),--M,qf((()=>K(t)(e,n)))}M+=1;var i=th(e,{G:!0});i?i.then((function(){--M,qf((()=>K(r)(e,n)))}),a):a()};wc.g="vpppp";var xc=()=>{for(const e of Object.keys(Qe)){const r=Number(e);Re.has(r)||Hi(r)}};function Ii(e){var r=Ji;r.X[e]=void 0,r.M.push(e)}xc.g="v";class Ki{constructor(){this.X=[void 0],this.M=[]}get(e){return this.X[e]}has(e){return void 0!==this.X[e]}Z(e){var r=this.M.pop()||this.X.length;return this.X[r]=e,r}}var Ji=new Ki,Li=()=>{var e={};return e.promise=new Promise(((r,t)=>{e.reject=t,e.resolve=r})),e.id=Ji.Z(e),e},yc=(e,r,t)=>{const n=[];0===Object.keys(Se).length||hb();var a=Li();n.push(a.promise),Mi(a.id);for(const r of Object.keys(Qe)){const t=Number(r);t===e||Re.has(t)||(a=Li(),Ni(t,a.id),Se[t]=a,n.push(a.promise))}Promise.all(n).then((()=>{Se={},K(r)(t)}))};function zc(){var e=Wf(4*(xa.length+1)),r=e;return xa.forEach((e=>{var t=C,n=r>>2,a=Kg(e)+1,i=Wf(a);i&&Lg(e,y,i,a),t[n]=i,r+=4})),C[r>>2]=0,e}yc.g="vppp",zc.g="p";var Ac=()=>1;Ac.g="i";var Bc=e=>{Ba(e,!ea,1,!da,262144,!1),Ea()};Bc.g="vp";var Ca=e=>{"function"==typeof Atomics.hc&&(Atomics.hc(B,e>>2,e).value.then(Ia),Atomics.store(B,e+128>>2,1))};Ca.g="vp";var Ia=()=>{var e=va();e&&(Ca(e),qf(Oi))},Cc=(e,t)=>{e==t?setTimeout(Ia):r?postMessage({targetThread:e,cmd:"checkMailbox"}):(e=Qe[e])&&e.postMessage({cmd:"checkMailbox"})};Cc.g="vppp";var Pi=[],Dc=(e,r,t,n,a)=>{for(n/=2,Pi.length=n,t=a>>3,a=0;a<n;a++)Pi[a]=D[t+2*a]?D[t+2*a+1]:Qa[t+2*a+1];return(r?Ae[r]:Qi[e])(...Pi)};function Ec(){if(r)return O(17,1);ff=!1,M=0}Dc.g="dippip",Ec.g="v";var Fc=e=>{r?postMessage({cmd:"cleanupThread",thread:e}):We(e)};Fc.g="vp";var Gc=e=>{r?postMessage({cmd:"markAsFinished",thread:e}):(Re.add(e),e in Se&&Se[e].resolve())};Gc.g="vp";var Hc=()=>{};Hc.g="vp";var Ic=()=>{throw new jb};Ic.g="v";var Ri=(e,r,t)=>{var n=[];return e=e.toWireType(n,t),n.length&&(C[r>>2]=ei(n)),e},Jc=(e,r,t)=>(e=Y(e),r=wi(r,"emval::as"),Ri(r,t,e));Jc.g="dppp";var Si=[],Kc=(e,r,t,n)=>(e=Si[e])(null,r=Y(r),t,n);Kc.g="dpppp";var Ti={},Ui=e=>{var r=Ti[e];return void 0===r?U(e):r},Vi=()=>"object"==typeof globalThis?globalThis:Function("return this")(),Mc=e=>0===e?ei(Vi()):(e=Ui(e),ei(Vi()[e]));Mc.g="pp";var Wi=e=>{var r=Si.length;return Si.push(e),r},Xi=(e,r)=>{for(var t=Array(e),n=0;n<e;++n)t[n]=wi(C[r+4*n>>2],"parameter "+n);return t},Nc=(e,r,t)=>{var n=(r=Xi(e,r)).shift();e--;var a="return function (obj, func, destructorsRef, args) {\n",i=0,o=[];0===t&&o.push("obj");for(var s=["retType"],c=[n],l=0;l<e;++l)o.push("arg"+l),s.push("argType"+l),c.push(r[l]),a+=`  var arg${l} = argType${l}.readValueFromPointer(args${i?"+"+i:""});\n`,i+=r[l].argPackAdvance;return a+=`  var rv = ${1===t?"new func":"func.call"}(${o.join(", ")});\n`,n.Mb||(s.push("emval_returnValue"),c.push(Ri),a+="  return emval_returnValue(retType, destructorsRef, rv);\n"),s.push(a+"};\n"),e=ni(s)(...c),t=`methodCaller<(${r.map((e=>e.name)).join(", ")}) => ${n.name}>`,Wi(Xh(t,e))};Nc.g="pipi";var Oc=e=>(e=Ui(e),ei(l[e]));Oc.g="pp";var Pc=(e,r)=>(e=Y(e),r=Y(r),ei(e[r]));Pc.g="ppp";var Qc=e=>{9<e&&(ti[e+1]+=1)};Qc.g="vp";var Rc=(e,r)=>(e=Y(e))instanceof Y(r);Rc.g="ipp";var Sc=e=>"number"==typeof(e=Y(e));Sc.g="ip";var Tc=e=>"string"==typeof(e=Y(e));Tc.g="ip";var Uc=e=>ei(Ui(e));Uc.g="pp";var Vc=e=>{var r=Y(e);vh(r),Lc(e)};Vc.g="vp";var Wc=(e,r,t)=>{e=Y(e),r=Y(r),t=Y(t),e[r]=t};Wc.g="vppp";var Xc=(e,r)=>(e=(e=wi(e,"_emval_take_value")).readValueFromPointer(r),ei(e));Xc.g="ppp";var Yc=e=>(e=Y(e),ei(typeof e));function Zc(e,r){e=Oe(e),e=new Date(1e3*e),B[r>>2]=e.getUTCSeconds(),B[r+4>>2]=e.getUTCMinutes(),B[r+8>>2]=e.getUTCHours(),B[r+12>>2]=e.getUTCDate(),B[r+16>>2]=e.getUTCMonth(),B[r+20>>2]=e.getUTCFullYear()-1900,B[r+24>>2]=e.getUTCDay(),B[r+28>>2]=(e.getTime()-Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0}Yc.g="pp",Zc.g="vjp";var Yi=[0,31,60,91,121,152,182,213,244,274,305,335],Zi=[0,31,59,90,120,151,181,212,243,273,304,334];function $c(e,r){e=Oe(e),e=new Date(1e3*e),B[r>>2]=e.getSeconds(),B[r+4>>2]=e.getMinutes(),B[r+8>>2]=e.getHours(),B[r+12>>2]=e.getDate(),B[r+16>>2]=e.getMonth(),B[r+20>>2]=e.getFullYear()-1900,B[r+24>>2]=e.getDay();var t=e.getFullYear();B[r+28>>2]=(0!=t%4||0==t%100&&0!=t%400?Zi:Yi)[e.getMonth()]+e.getDate()-1|0,B[r+36>>2]=-60*e.getTimezoneOffset(),t=new Date(e.getFullYear(),6,1).getTimezoneOffset();var n=new Date(e.getFullYear(),0,1).getTimezoneOffset();B[r+32>>2]=0|(t!=n&&e.getTimezoneOffset()==Math.min(n,t))}function ad(e,t,n,a,i,o,s){if(r)return O(18,1,e,t,n,a,i,o,s);i=Oe(i);try{if(isNaN(i))return 61;var c=T(a),l=FS.da(c,e,i,t,n),h=l.s;return B[o>>2]=l.X,C[s>>2]=h,0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}function bd(e,t,n,a,i,o){if(r)return O(19,1,e,t,n,a,i,o);o=Oe(o);try{var s=T(i);if(2&n){if(n=o,!FS.isFile(s.node.mode))throw new FS.h(43);2&a||FS.ha(s,y.slice(e,e+t),n,t,a)}}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return-e.B}}$c.g="vjp",ad.g="ipiiijpp",bd.g="ippiiij";var cd=(e,r,t,n)=>{var a=(new Date).getFullYear(),i=new Date(a,0,1).getTimezoneOffset();a=new Date(a,6,1).getTimezoneOffset(),C[e>>2]=60*Math.max(i,a),B[r>>2]=Number(i!=a),e=(r=e=>{var r=Math.abs(e);return`UTC${0<=e?"-":"+"}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`})(i),r=r(a),a<i?(Lg(e,y,t,17),Lg(r,y,n,17)):(Lg(e,y,n,17),Lg(r,y,t,17))};cd.g="vpppp";var dd=()=>{};dd.g="v";var ed=e=>{console.error(R(e))};ed.g="vp";var fd=()=>Date.now();fd.g="d";var gd=e=>w(R(e));gd.g="vp";var hd=()=>{throw M+=1,"unwind"};hd.g="v";var jd=()=>y.length;jd.g="p";var ld=()=>navigator.hardwareConcurrency;ld.g="i";var md=e=>{Ii(e)};md.g="vp";var nd=(e,r,t)=>{switch(e=Ji.get(e),r){case 0:e.resolve(t);break;case 1:e.resolve(Ji.get(t).promise);break;case 2:e.resolve(Ji.get(t).promise),Ii(t);break;case 3:e.reject(t)}};nd.g="vpip";var od=()=>!1;od.g="ip";var aj=()=>{if(!$i){var e,r={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",_:la||"./this.program"};for(e in ph)void 0===ph[e]?delete r[e]:r[e]=ph[e];var t=[];for(e in r)t.push(`${e}=${r[e]}`);$i=t}return $i},$i;function pd(e,t){if(r)return O(20,1,e,t);var n=0;return aj().forEach(((r,a)=>{var i=t+n;for(a=C[e+4*a>>2]=i,i=0;i<r.length;++i)x[a++]=r.charCodeAt(i);x[a]=0,n+=r.length+1})),0}function qd(e,t){if(r)return O(21,1,e,t);var n=aj();C[e>>2]=n.length;var a=0;return n.forEach((e=>a+=e.length+1)),C[t>>2]=a,0}function sd(e){if(r)return O(22,1,e);try{var t=T(e);return FS.close(t),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.B}}function td(e,t){if(r)return O(23,1,e,t);try{var n=T(e),a=n.A?2:FS.isDir(n.mode)?3:FS.isLink(n.mode)?7:4;return x[t]=a,z[t+2>>1]=0,D[t+8>>3]=BigInt(0),D[t+16>>3]=BigInt(0),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.B}}function ud(e,t,n,a){if(r)return O(24,1,e,t,n,a);try{e:{var i=T(e);e=t;for(var o,s=t=0;s<n;s++){var c=C[e>>2],l=C[e+4>>2];e+=8;var h=FS.read(i,x,c,l,o);if(0>h){var u=-1;break e}if(t+=h,h<l)break;void 0!==o&&(o+=h)}u=t}return C[a>>2]=u,0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.B}}function vd(e,t,n,a){if(r)return O(25,1,e,t,n,a);t=Oe(t);try{if(isNaN(t))return 61;var i=T(e);return FS.llseek(i,t,n),D[a>>3]=BigInt(i.position),i.Ca&&0===t&&0===n&&(i.Ca=null),0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.B}}function wd(e,t,n,a){if(r)return O(26,1,e,t,n,a);try{e:{var i=T(e);e=t;for(var o,s=t=0;s<n;s++){var c=C[e>>2],l=C[e+4>>2];e+=8;var h=FS.write(i,x,c,l,o);if(0>h){var u=-1;break e}t+=h,void 0!==o&&(o+=h)}u=t}return C[a>>2]=u,0}catch(e){if(void 0===FS||"ErrnoError"!==e.name)throw e;return e.B}}pd.g="ipp",qd.g="ipp",sd.g="ii",td.g="iip",ud.g="iippp",vd.g="iijip",wd.g="iippp";var yd=(e,r)=>(Gg(y.subarray(e,e+r)),0);function zd(...e){return F.heif_error_success(...e)}function Ad(...e){return F.heif_image_release(...e)}function Bd(...e){return F.heif_nclx_color_profile_free(...e)}yd.g="ipp",zd.ia=!0,Ad.ia=!0,Bd.ia=!0;var xe=e=>e;xe.g="vp";var bj=FS.createPath,cj=FS.createLazyFile,dj=FS.createDevice;l.incrementExceptionRefcount=e=>tg(e),l.decrementExceptionRefcount=e=>wg(e);var lb=e=>{var r=I(),t=Ce(4),n=Ce(4);if(ej(e,t,n),e=C[t>>2],n=C[n>>2],t=R(e),W(e),n){var a=R(n);W(n)}return J(r),[t,a]};l.getExceptionMessage=e=>lb(e),l.requestFullscreen=function(e,r){function t(){vf=!1;var e=n.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e?(n.exitFullscreen=Ef,Cf&&n.requestPointerLock(),vf=!0,Df?("undefined"!=typeof SDL&&(B[SDL.screen>>2]=8388608|C[SDL.screen>>2]),If(l.canvas),Hf()):If(n)):(e.parentNode.insertBefore(n,e),e.parentNode.removeChild(e),Df?("undefined"!=typeof SDL&&(B[SDL.screen>>2]=-8388609&C[SDL.screen>>2]),If(l.canvas),Hf()):If(n)),l.onFullScreen?.(vf),l.onFullscreen?.(vf)}void 0===(Cf=e)&&(Cf=!0),void 0===(Df=r)&&(Df=!1);var n=l.canvas;Bf||(Bf=!0,document.addEventListener("fullscreenchange",t,!1),document.addEventListener("mozfullscreenchange",t,!1),document.addEventListener("webkitfullscreenchange",t,!1),document.addEventListener("MSFullscreenChange",t,!1));var a=document.createElement("div");n.parentNode.insertBefore(a,n),a.appendChild(n),a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||(a.webkitRequestFullscreen?()=>a.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):null)||(a.webkitRequestFullScreen?()=>a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):null),a.requestFullscreen()},l.requestAnimationFrame=Ke,l.setCanvasSize=function(e,r,t){If(l.canvas,e,r),t||Hf()},l.pauseMainLoop=function(){He=null,lf++},l.resumeMainLoop=function(){lf++;var e=De,r=Ee,t=Fe;Fe=null,rf(t),Me(e,r),He()},l.getUserMedia=function(e){let r;(r=window).getUserMedia||(r.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(e)},l.createContext=function(e,r,t,n){if(r&&l.Qa&&e==l.canvas)return l.Qa;var a;if(r){var i={antialias:!1,alpha:!1,yc:1};if(n)for(var o in n)i[o]=n[o];if("undefined"!=typeof GL&&(a=GL.rc(e,i)))var s=GL.getContext(a).jc}else s=e.getContext("2d");return s?(t&&(l.Qa=s,r&&GL.zc(a),l.Gc=r,xf.forEach((e=>e())),yf()),s):null},r?ff=!1:bf(),(()=>{var e={promiseChainEnd:Promise.resolve(),canHandle:e=>!l.noWasmDecoding&&e.endsWith(".so"),handle:(r,t,n,a)=>{e.promiseChainEnd=e.promiseChainEnd.then((()=>mg(r,{G:!0,la:!0},t,{}))).then((e=>{uf[t]=e,n(r)}),(e=>{w(`failed to instantiate wasm: ${t}: ${e}`),a()}))}};tf.push(e)})(),FS.createPreloadedFile=Xg,[44].forEach((e=>{FS.Ba[e]=new FS.h(e),FS.Ba[e].stack="<generic error, no stack>"})),FS.S=Array(4096),FS.mount(S,{},"/"),FS.mkdir("/tmp"),FS.mkdir("/home"),FS.mkdir("/home/web_user"),function(){FS.mkdir("/dev"),FS.registerDevice(FS.makedev(1,3),{read:()=>0,write:(e,r,t,n)=>n}),FS.mkdev("/dev/null",FS.makedev(1,3)),Og(FS.makedev(5,0),Qg),Og(FS.makedev(6,0),Rg),FS.mkdev("/dev/tty",FS.makedev(5,0)),FS.mkdev("/dev/tty1",FS.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(r=Gg(e).byteLength),e[--r]);FS.createDevice("/dev","random",t),FS.createDevice("/dev","urandom",t),FS.mkdir("/dev/shm"),FS.mkdir("/dev/shm/tmp")}(),function(){FS.mkdir("/proc");var e=FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd"),FS.mount({mount(){var r=FS.createNode(e,"fd",16895,73);return r.m={ca(e,r){var t=T(+r);return(e={parent:null,mount:{bb:"fake"},m:{readlink:()=>t.path}}).parent=e}},r}},{},"/proc/self/fd")}(),FS.xb={MEMFS:S},l.FS_createPath=FS.createPath,l.FS_createDataFile=FS.createDataFile,l.FS_createPreloadedFile=FS.createPreloadedFile,l.FS_unlink=FS.unlink,l.FS_createLazyFile=FS.createLazyFile,l.FS_createDevice=FS.createDevice,Ah=l.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}};for(var fj=Array(256),gj=0;256>gj;++gj)fj[gj]=String.fromCharCode(gj);Eh=fj,V=l.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(Wh.prototype,{isAliasOf:function(e){if(!(this instanceof Wh&&e instanceof Wh))return!1;var r=this.l.D.v,t=this.l.s;e.l=e.l;var n=e.l.D.v;for(e=e.l.s;r.L;)t=r.qa(t),r=r.L;for(;n.L;)e=n.qa(e),n=n.L;return r===n&&t===e},clone:function(){if(this.l.s||Jh(this),this.l.ma)return this.l.count.value+=1,this;var e=Uh,r=Object,t=r.create,n=Object.getPrototypeOf(this),a=this.l;return(e=e(t.call(r,n,{l:{value:{count:a.count,aa:a.aa,ma:a.ma,s:a.s,D:a.D,I:a.I,N:a.N}}}))).l.count.value+=1,e.l.aa=!1,e},delete(){if(this.l.s||Jh(this),this.l.aa&&!this.l.ma)throw new V("Object already scheduled for deletion");Mh(this);var e=this.l;--e.count.value,0===e.count.value&&(e.I?e.N.U(e.I):e.D.v.U(e.s)),this.l.ma||(this.l.I=void 0,this.l.s=void 0)},isDeleted:function(){return!this.l.s},deleteLater:function(){if(this.l.s||Jh(this),this.l.aa&&!this.l.ma)throw new V("Object already scheduled for deletion");return Ph.push(this),1===Ph.length&&Rh&&Rh(Qh),this.l.aa=!0,this}}),l.getInheritedInstanceCount=()=>Object.keys(Sh).length,l.getLiveInheritedInstances=()=>{var e,r=[];for(e in Sh)Sh.hasOwnProperty(e)&&r.push(Sh[e]);return r},l.setAutoDeleteLater=e=>{Kh=e},l.flushPendingDeletes=Qh,l.setDelayFunction=e=>{Rh=e,Ph.length&&Rh&&Rh(Qh)},Object.assign(gi.prototype,{Ab(e){return this.eb&&(e=this.eb(e)),e},Sa(e){this.U?.(e)},argPackAdvance:Dh,readValueFromPointer:wh,fromWireType:function(e){function r(){return this.va?Vh(this.v.Y,{D:this.Tb,s:t,N:this,I:e}):Vh(this.v.Y,{D:this,s:e})}var t=this.Ab(e);if(!t)return this.Sa(e),null;var n=Th(this.v,t);if(void 0!==n)return 0===n.l.count.value?(n.l.s=t,n.l.I=e,n.clone()):(n=n.clone(),this.Sa(e),n);if(n=this.v.yb(t),!(n=Oh[n]))return r.call(this);n=this.ta?n.rb:n.pointerType;var a=Nh(t,this.v,n.v);return null===a?r.call(this):this.va?Vh(n.v.Y,{D:n,s:a,N:this,I:e}):Vh(n.v.Y,{D:n,s:a})}}),ii=l.UnboundTypeError=((e,r)=>{var t=Xh(r,(function(e){this.name=r,this.message=e,void 0!==(e=Error(e).stack)&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t})(Error,"UnboundTypeError"),ti.push(0,1,void 0,1,null,1,!0,1,!1,1),l.count_emval_handles=()=>ti.length/2-5-si.length,Sa.unshift((()=>{ph.VIPS_MAX_THREADS=6<navigator.hardwareConcurrency?navigator.hardwareConcurrency:6,ph.VIPS_CONCURRENCY=1})),Object.assign(Wh.prototype,{preventAutoDelete:function(){const e=Ph.indexOf(this);return-1<e&&Ph.splice(e,1),this.l.aa=!1,this}});var Qi=[ye,gf,zg,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Ec,ad,bd,pd,qd,sd,td,ud,vd,wd],F,Z=function(){function e(e,r){Z=e.exports,Z=cg(Z,1024);var t=Pf(r);return ng(Z),Uf("__main__",0,F),pg(),kg(Z._emscripten_tls_init,e.exports,t),Ta.unshift(Z.__wasm_call_ctors),Xa.push(Z.__wasm_apply_data_relocs),La=r,gb("wasm-instantiate"),Z}var r=wa();if(fb("wasm-instantiate"),l.instantiateWasm)try{return l.instantiateWasm(r,e)}catch(e){w(`Module.instantiateWasm callback failed with error: ${e}`),ba(e)}return mb||=ib("vips.wasm")?"vips.wasm":pa("vips.wasm"),qb(r,(function(r){e(r.instance,r.module)})).catch(ba),{}}(),ji=e=>(ji=Z.__getTypeName)(e),Fa=()=>(Fa=Z._embind_initialize_bindings)(),va=()=>(va=Z.pthread_self)(),Wf=e=>(Wf=Z.malloc)(e);l._main=(e,r)=>(l._main=Z.main)(e,r);var W=e=>(W=Z.free)(e),jf=e=>(jf=Z.fflush)(e);l._emscripten_builtin_free=e=>(l._emscripten_builtin_free=Z.emscripten_builtin_free)(e);var Sg=(e,r)=>(Sg=Z.emscripten_builtin_memalign)(e,r);l._emscripten_builtin_malloc=e=>(l._emscripten_builtin_malloc=Z.emscripten_builtin_malloc)(e);var hf=()=>(hf=Z.__funcs_on_exit)();l.___libc_calloc=(e,r)=>(l.___libc_calloc=Z.__libc_calloc)(e,r),l.___libc_free=e=>(l.___libc_free=Z.__libc_free)(e),l.___libc_malloc=e=>(l.___libc_malloc=Z.__libc_malloc)(e);var rh=(e,r)=>(rh=Z.__dl_seterr)(e,r),Mi=e=>(Mi=Z._emscripten_dlsync_self_async)(e),Rf=()=>(Rf=Z._emscripten_dlsync_self)(),Ni=(e,r)=>(Ni=Z._emscripten_proxy_dlsync_async)(e,r),Hi=e=>(Hi=Z._emscripten_proxy_dlsync)(e),Ba=(e,r,t,n,a,i)=>(Ba=Z._emscripten_thread_init)(e,r,t,n,a,i),Ja=()=>(Ja=Z._emscripten_thread_crashed)(),ef=(e,r,t,n,a)=>(ef=Z._emscripten_run_on_main_thread_js)(e,r,t,n,a),Ve=e=>(Ve=Z._emscripten_thread_free_data)(e),Ha=e=>(Ha=Z._emscripten_thread_exit)(e),Oi=()=>(Oi=Z._emscripten_check_mailbox)();l.__ZdaPvm=(e,r)=>(l.__ZdaPvm=Z._ZdaPvm)(e,r),l.__Znaj=e=>(l.__Znaj=Z._Znaj)(e),l.__ZnajSt11align_val_t=(e,r)=>(l.__ZnajSt11align_val_t=Z._ZnajSt11align_val_t)(e,r),l.__Znwj=e=>(l.__Znwj=Z._Znwj)(e),l.__ZnwjSt11align_val_t=(e,r)=>(l.__ZnwjSt11align_val_t=Z._ZnwjSt11align_val_t)(e,r),l.___libc_realloc=(e,r)=>(l.___libc_realloc=Z.__libc_realloc)(e,r),l._malloc_size=e=>(l._malloc_size=Z.malloc_size)(e),l._malloc_usable_size=e=>(l._malloc_usable_size=Z.malloc_usable_size)(e),l._reallocf=(e,r)=>(l._reallocf=Z.reallocf)(e,r);var P=(e,r)=>(P=Z.setThrew)(e,r),xg=e=>(xg=Z._emscripten_tempret_set)(e),Mf=(e,r)=>(Mf=Z.emscripten_stack_set_limits)(e,r),J=e=>(J=Z._emscripten_stack_restore)(e),Ce=e=>(Ce=Z._emscripten_stack_alloc)(e),I=()=>(I=Z.emscripten_stack_get_current)(),tg=e=>(tg=Z.__cxa_increment_exception_refcount)(e),wg=e=>(wg=Z.__cxa_decrement_exception_refcount)(e),ej=(e,r,t)=>(ej=Z.__get_exception_message)(e,r,t),yg=(e,r,t)=>(yg=Z.__cxa_can_catch)(e,r,t),ug=e=>(ug=Z.__cxa_is_pointer_type)(e),hj;function Yd(e,r){var t=I();try{K(e)(r)}catch(e){if(J(t),!(e instanceof E))throw e;P(1,0)}}function fe(e,r,t,n){var a=I();try{K(e)(r,t,n)}catch(e){if(J(a),!(e instanceof E))throw e;P(1,0)}}function Jd(e,r,t){var n=I();try{return K(e)(r,t)}catch(e){if(J(n),!(e instanceof E))throw e;P(1,0)}}function Id(e,r){var t=I();try{return K(e)(r)}catch(e){if(J(t),!(e instanceof E))throw e;P(1,0)}}function Hd(e){var r=I();try{return K(e)()}catch(e){if(J(r),!(e instanceof E))throw e;P(1,0)}}function Xd(e){var r=I();try{K(e)()}catch(e){if(J(r),!(e instanceof E))throw e;P(1,0)}}function me(e,r,t,n,a){var i=I();try{K(e)(r,t,n,a)}catch(e){if(J(i),!(e instanceof E))throw e;P(1,0)}}function Ed(e,r,t,n){var a=I();try{return K(e)(r,t,n)}catch(e){if(J(a),!(e instanceof E))throw e;P(1,0)}}function Ld(e,r,t,n){var a=I();try{return K(e)(r,t,n)}catch(e){if(J(a),!(e instanceof E))throw e;P(1,0)}}function ae(e,r,t){var n=I();try{K(e)(r,t)}catch(e){if(J(n),!(e instanceof E))throw e;P(1,0)}}function Od(e,r,t,n,a,i){var o=I();try{return K(e)(r,t,n,a,i)}catch(e){if(J(o),!(e instanceof E))throw e;P(1,0)}}function ne(e,r,t,n,a,i){var o=I();try{K(e)(r,t,n,a,i)}catch(e){if(J(o),!(e instanceof E))throw e;P(1,0)}}function Pd(e,r,t,n,a,i,o){var s=I();try{return K(e)(r,t,n,a,i,o)}catch(e){if(J(s),!(e instanceof E))throw e;P(1,0)}}function Md(e,r,t,n,a){var i=I();try{return K(e)(r,t,n,a)}catch(e){if(J(i),!(e instanceof E))throw e;P(1,0)}}function be(e,r,t,n){var a=I();try{K(e)(r,t,n)}catch(e){if(J(a),!(e instanceof E))throw e;P(1,0)}}function ce(e,r,t,n,a){var i=I();try{K(e)(r,t,n,a)}catch(e){if(J(i),!(e instanceof E))throw e;P(1,0)}}function Kd(e,r,t,n){var a=I();try{return K(e)(r,t,n)}catch(e){if(J(a),!(e instanceof E))throw e;P(1,0)}}function Zd(e,r,t){var n=I();try{K(e)(r,t)}catch(e){if(J(n),!(e instanceof E))throw e;P(1,0)}}function Fd(e,r,t,n,a){var i=I();try{return K(e)(r,t,n,a)}catch(e){if(J(i),!(e instanceof E))throw e;P(1,0)}}function Cd(e,r){var t=I();try{return K(e)(r)}catch(e){if(J(t),!(e instanceof E))throw e;P(1,0)}}function se(e,r,t,n,a,i,o,s,c,l,h){var u=I();try{K(e)(r,t,n,a,i,o,s,c,l,h)}catch(e){if(J(u),!(e instanceof E))throw e;P(1,0)}}function oe(e,r,t,n,a,i,o){var s=I();try{K(e)(r,t,n,a,i,o)}catch(e){if(J(s),!(e instanceof E))throw e;P(1,0)}}function pe(e,r,t,n,a,i,o,s){var c=I();try{K(e)(r,t,n,a,i,o,s)}catch(e){if(J(c),!(e instanceof E))throw e;P(1,0)}}function Dd(e,r,t){var n=I();try{return K(e)(r,t)}catch(e){if(J(n),!(e instanceof E))throw e;P(1,0)}}function ee(e,r,t,n,a){var i=I();try{K(e)(r,t,n,a)}catch(e){if(J(i),!(e instanceof E))throw e;P(1,0)}}function ge(e,r,t,n,a){var i=I();try{K(e)(r,t,n,a)}catch(e){if(J(i),!(e instanceof E))throw e;P(1,0)}}function $d(e,r,t,n,a){var i=I();try{K(e)(r,t,n,a)}catch(e){if(J(i),!(e instanceof E))throw e;P(1,0)}}function je(e,r,t,n,a,i,o,s){var c=I();try{K(e)(r,t,n,a,i,o,s)}catch(e){if(J(c),!(e instanceof E))throw e;P(1,0)}}function he(e,r,t,n,a,i,o,s,c,l){var h=I();try{K(e)(r,t,n,a,i,o,s,c,l)}catch(e){if(J(h),!(e instanceof E))throw e;P(1,0)}}function ie(e,r,t,n,a,i,o,s,c){var l=I();try{K(e)(r,t,n,a,i,o,s,c)}catch(e){if(J(l),!(e instanceof E))throw e;P(1,0)}}function le(e,r,t,n,a,i){var o=I();try{K(e)(r,t,n,a,i)}catch(e){if(J(o),!(e instanceof E))throw e;P(1,0)}}function ke(e,r,t,n,a,i,o){var s=I();try{K(e)(r,t,n,a,i,o)}catch(e){if(J(s),!(e instanceof E))throw e;P(1,0)}}function ue(e,r,t,n,a,i,o,s,c,l,h,u,f){var d=I();try{K(e)(r,t,n,a,i,o,s,c,l,h,u,f)}catch(e){if(J(d),!(e instanceof E))throw e;P(1,0)}}function te(e,r,t,n,a,i,o,s,c,l,h,u){var f=I();try{K(e)(r,t,n,a,i,o,s,c,l,h,u)}catch(e){if(J(f),!(e instanceof E))throw e;P(1,0)}}function re(e,r,t,n,a,i,o,s,c,l){var h=I();try{K(e)(r,t,n,a,i,o,s,c,l)}catch(e){if(J(h),!(e instanceof E))throw e;P(1,0)}}function qe(e,r,t,n,a,i,o,s,c){var l=I();try{K(e)(r,t,n,a,i,o,s,c)}catch(e){if(J(l),!(e instanceof E))throw e;P(1,0)}}function ve(e,r,t,n,a,i,o,s,c,l,h,u,f,d){var p=I();try{K(e)(r,t,n,a,i,o,s,c,l,h,u,f,d)}catch(e){if(J(p),!(e instanceof E))throw e;P(1,0)}}function de(e,r,t,n,a,i){var o=I();try{K(e)(r,t,n,a,i)}catch(e){if(J(o),!(e instanceof E))throw e;P(1,0)}}function Qd(e,r,t,n,a,i,o,s){var c=I();try{return K(e)(r,t,n,a,i,o,s)}catch(e){if(J(c),!(e instanceof E))throw e;P(1,0)}}function Vd(e,r){var t=I();try{return K(e)(r)}catch(e){if(J(t),!(e instanceof E))throw e;return P(1,0),0n}}function Td(e,r,t,n,a,i,o,s,c,l,h,u,f){var d=I();try{return K(e)(r,t,n,a,i,o,s,c,l,h,u,f)}catch(e){if(J(d),!(e instanceof E))throw e;P(1,0)}}function Wd(e,r,t,n,a){var i=I();try{return K(e)(r,t,n,a)}catch(e){if(J(i),!(e instanceof E))throw e;return P(1,0),0n}}function Gd(e,r,t,n){var a=I();try{return K(e)(r,t,n)}catch(e){if(J(a),!(e instanceof E))throw e;P(1,0)}}function Rd(e,r,t,n,a,i,o,s,c,l,h){var u=I();try{return K(e)(r,t,n,a,i,o,s,c,l,h)}catch(e){if(J(u),!(e instanceof E))throw e;P(1,0)}}function Sd(e,r,t,n,a,i,o,s,c,l,h,u){var f=I();try{return K(e)(r,t,n,a,i,o,s,c,l,h,u)}catch(e){if(J(f),!(e instanceof E))throw e;P(1,0)}}function we(e,r,t,n,a,i,o,s,c,l,h,u,f,d,p,v){var m=I();try{K(e)(r,t,n,a,i,o,s,c,l,h,u,f,d,p,v)}catch(e){if(J(m),!(e instanceof E))throw e;P(1,0)}}function Ud(e,r,t,n,a,i){var o=I();try{return K(e)(r,t,n,a,i)}catch(e){if(J(o),!(e instanceof E))throw e;P(1,0)}}function Nd(e,r,t,n,a,i){var o=I();try{return K(e)(r,t,n,a,i)}catch(e){if(J(o),!(e instanceof E))throw e;P(1,0)}}function kj(e=[]){var r=ig("main").Ma;if(r){e.unshift(la);var t=e.length,n=Ce(4*(t+1)),a=n;e.forEach((e=>{C[a>>2]=qh(e),a+=4})),C[a>>2]=0;try{var i=r(t,n);rd(i,!0)}catch(e){$e(e)}}}l.___THREW__=1196,l.__ZTISt12length_error=1418820,l.__ZTVSt12length_error=1418800,l.__ZTVN10__cxxabiv120__si_class_type_infoE=1418492,l.__ZTVN10__cxxabiv117__class_type_infoE=1418452,l.__ZTISt20bad_array_new_length=1418704,l.___threwValue=1200,l._stdout=1411936,l._stderr=1411784,l._g_mem_gc_friendly=3339644,l._g_utf8_skip=1355028,l.__ZTVNSt3__215basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE=1422376,l.__ZTTNSt3__218basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE=1422792,l.__ZTTNSt3__219basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE=1423024,l.__ZTVNSt3__218basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE=1422732,l.__ZTVNSt3__219basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE=1422984,l.__ZNSt3__24coutE=3402584,l.__ZNSt3__24cerrE=3402752,l.__ZNSt3__25ctypeIcE2idE=3399804,l.__ZTVNSt3__212bad_weak_ptrE=1418948,l.__ZTINSt3__212bad_weak_ptrE=1418968,l.__ZTINSt3__219__shared_weak_countE=1419008,l.__ZTISt9bad_alloc=1418692,l.__ZSt7nothrow=932108,l.__ZTISt12out_of_range=1418852,l.__ZTVSt12out_of_range=1418832,l.__ZTVN10__cxxabiv121__vmi_class_type_infoE=1418544,l.addRunDependency=fb,l.removeRunDependency=gb,l.bigintToI53Checked=Oe,l.ENV=ph,l.addFunction=bg,l.FS_createPreloadedFile=Xg,l.FS_unlink=e=>FS.unlink(e),l.FS_createPath=bj,l.FS_createDevice=dj,l.FS=FS,l.FS_createDataFile=(e,r,t,n,a,i)=>{FS.createDataFile(e,r,t,n,a,i)},l.FS_createLazyFile=cj,l.deletionQueue=Ph,eb=function e(){hj||jj(),hj||(eb=e)};var ya={};function jj(){var e=ka;function t(){if(!hj&&(hj=!0,l.calledRun=!0,!Ma&&(ab(),r||bb(Ua),aa(l),l.onRuntimeInitialized?.(),lj&&kj(e),!r))){if(l.postRun)for("function"==typeof l.postRun&&(l.postRun=[l.postRun]);l.postRun.length;){var t=l.postRun.shift();Wa.unshift(t)}bb(Wa)}}if(!(0<cb))if(r)aa(l),ab(),startWorker(l);else{if(l.preRun)for("function"==typeof l.preRun&&(l.preRun=[l.preRun]);l.preRun.length;)Sa.unshift(l.preRun.shift());bb(Sa),0<cb||(l.setStatus?(l.setStatus("Running..."),setTimeout((function(){setTimeout((function(){l.setStatus("")}),1),t()}),1)):t())}}if(l.preInit)for("function"==typeof l.preInit&&(l.preInit=[l.preInit]);0<l.preInit.length;)l.preInit.pop()();var lj=!0;return l.noInitialRun&&(lj=!1),jj(),moduleRtn=ca,moduleRtn}})();module.exports=Vips;var isPthread="em-pthread"===globalThis.self?.name;isPthread&&Vips()}},__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];if(void 0!==r)return r.exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](t,t.exports,__webpack_require__),t.exports}__webpack_require__.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(r,{a:r}),r},__webpack_require__.d=(e,r)=>{for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{cancelOperations:()=>f,compressImage:()=>p,convertImageFormat:()=>d,hasTransparency:()=>m,resizeImage:()=>v,setLocation:()=>l});var e=__webpack_require__(1533),r=__webpack_require__.n(e);const t="./build/vips/vips.wasm",n="./build/vips/vips-heif.wasm",a="./build/vips/vips-jxl.wasm";function i(e){return["image/webp","image/gif"].includes(e)}let o,s,c="";function l(e){c=e}async function h(){return s||(s=await r()({locateFile:e=>(e.endsWith("vips.wasm")?e=t:e.endsWith("vips-heif.wasm")?e=n:e.endsWith("vips-jxl.wasm")&&(e=a),c+e),preRun:e=>{e.setAutoDeleteLater(!0),e.setDelayFunction((e=>{o=e}))}}),s)}const u=new Set;async function f(e){return u.delete(e)}async function d(e,r,t,n,a=.82,s=!1){const c=n.split("/")[1];u.add(e);let l="";const f={};i(t)&&(l="[n=-1]",f.n=-1);const d=(await h()).Image.newFromBuffer(r,l,f);d.onProgress=()=>{u.has(e)||(d.kill=!0)};const p={};["image/jpeg","image/png","image/webp","image/avif"].includes(n)&&(p.Q=100*a),s&&["image/jpeg","image/gif","image/png"].includes(n)&&(p.interlace=s),"image/avif"===n&&(p.effort=2);const v=d.writeToBuffer(`.${c}`,p).buffer;return o?.(),v}async function p(e,r,t,n=.82,a=!1){return d(e,r,t,t,n,a)}async function v(e,r,t,n,a=!1){const s=t.split("/")[1];u.add(e);const c=await h(),l={size:"down"};let f="";const d={};i(t)&&!n.crop&&(f="[n=-1]",l.option_string=f,d.n=-1);const p=()=>{u.has(e)||(v.kill=!0)};let v=c.Image.newFromBuffer(r,f,d);v.onProgress=p;const{width:m,pageHeight:g}=v;n.height=n.height||g/m*n.width;let _=n.width;if(l.height=n.height,n.crop)if(!0===n.crop)l.crop=a?"attention":"centre",v=c.Image.thumbnailBuffer(r,_,l),v.onProgress=p;else{m<g?(_=n.width>=n.height?n.width:m/g*n.height,l.height=n.width>=n.height?g/m*_:n.height):(_=n.width>=n.height?m/g*n.height:n.width,l.height=n.width>=n.height?n.height:g/m*_),v=c.Image.thumbnailBuffer(r,_,l),v.onProgress=p;let e=0;"center"===n.crop[0]?e=(v.width-n.width)/2:"right"===n.crop[0]&&(e=v.width-n.width);let t=0;"center"===n.crop[1]?t=(v.height-n.height)/2:"bottom"===n.crop[1]&&(t=v.height-n.height),e=Math.max(0,e),t=Math.max(0,t),n.width=Math.min(v.width,n.width),n.height=Math.min(v.height,n.height),v=v.crop(e,t,n.width,n.height),v.onProgress=p}else v=c.Image.thumbnailBuffer(r,_,l),v.onProgress=p;const w={buffer:v.writeToBuffer(`.${s}`,{}).buffer,width:v.width,height:v.pageHeight,originalWidth:m,originalHeight:g};return o?.(),w}async function m(e){const r=(await h()).Image.newFromBuffer(e).hasAlpha();return o?.(),r}})(),(window.wp=window.wp||{}).vips=__webpack_exports__})();
//# sourceMappingURL=index.min.js.map

Filemanager

Name Type Size Permission Actions
index.js File 110.56 KB 0644
index.min.asset.php File 84 B 0644
index.min.js File 99.41 KB 0644
index.min.js.map File 275.09 KB 0644
vips-heif.wasm File 4.56 MB 0644
vips-jxl.wasm File 2.24 MB 0644
vips.wasm File 5.38 MB 0644