/home/bdqbpbxa/demo-subdomains/uniferx.goodface.com.ua/static/js/516.3e7a0bc5.chunk.js
"use strict";(self.webpackChunkuniferx_frontend=self.webpackChunkuniferx_frontend||[]).push([[516],{516:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});const n=(()=>{var e="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;return function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t,n,o=r;o.ready=new Promise(((e,r)=>{t=e,n=r}));var a,i,s,u=Object.assign({},o),l="./this.program",d=!0,c=!1,f="";(d||c)&&(c?f=self.location.href:"undefined"!=typeof document&&document.currentScript&&(f=document.currentScript.src),e&&(f=e),f=0!==f.indexOf("blob:")?f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},c&&(s=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),i=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?r(n.response):t()},n.onerror=t,n.send(null)});var h,m,p=o.print||console.log.bind(console),v=o.printErr||console.error.bind(console);Object.assign(o,u),u=null,o.arguments&&o.arguments,o.thisProgram&&(l=o.thisProgram),o.quit&&o.quit,o.wasmBinary&&(h=o.wasmBinary),"object"!=typeof WebAssembly&&O("no native wasm support detected");var w,y,g,E,_,b,k,F,A=!1;function D(){var e=m.buffer;o.HEAP8=w=new Int8Array(e),o.HEAP16=g=new Int16Array(e),o.HEAPU8=y=new Uint8Array(e),o.HEAPU16=E=new Uint16Array(e),o.HEAP32=_=new Int32Array(e),o.HEAPU32=b=new Uint32Array(e),o.HEAPF32=k=new Float32Array(e),o.HEAPF64=F=new Float64Array(e)}var P=[],T=[],S=[];var C=0,M=null,j=null;function x(e){C++,o.monitorRunDependencies&&o.monitorRunDependencies(C)}function R(e){if(C--,o.monitorRunDependencies&&o.monitorRunDependencies(C),0==C&&(null!==M&&(clearInterval(M),M=null),j)){var r=j;j=null,r()}}function O(e){o.onAbort&&o.onAbort(e),v(e="Aborted("+e+")"),A=!0,1,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw n(r),r}var W,z,N,B,L=e=>e.startsWith("data:application/octet-stream;base64,");function I(e){if(e==W&&h)return new Uint8Array(h);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}function U(e,r,t){return function(e){return h||!d&&!c||"function"!=typeof fetch?Promise.resolve().then((()=>I(e))):fetch(e,{credentials:"same-origin"}).then((r=>{if(!r.ok)throw"failed to load wasm binary file at '"+e+"'";return r.arrayBuffer()})).catch((()=>I(e)))}(e).then((e=>WebAssembly.instantiate(e,r))).then((e=>e)).then(t,(e=>{v("failed to asynchronously prepare wasm: ".concat(e)),O(e)}))}L(W="boolean.wasm")||(z=W,W=o.locateFile?o.locateFile(z,f):f+z);var H=e=>{for(;e.length>0;)e.shift()(o)};o.noExitRuntime;function Y(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){b[this.ptr+4>>2]=e},this.get_type=function(){return b[this.ptr+4>>2]},this.set_destructor=function(e){b[this.ptr+8>>2]=e},this.get_destructor=function(){return b[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,w[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=w[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,w[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=w[this.ptr+13>>0]},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)},this.set_adjusted_ptr=function(e){b[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return b[this.ptr+16>>2]},this.get_exception_ptr=function(){if(yr(this.get_type()))return b[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var q={},V=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function X(e){return this.fromWireType(_[e>>2])}var G,K,J,$={},Z={},Q={},ee=e=>{throw new G(e)},re=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&ee("Mismatched type converter count");for(var o=0;o<e.length;++o)oe(e[o],n[o])}e.forEach((function(e){Q[e]=r}));var o=new Array(r.length),a=[],i=0;r.forEach(((e,r)=>{Z.hasOwnProperty(e)?o[r]=Z[e]:(a.push(e),$.hasOwnProperty(e)||($[e]=[]),$[e].push((()=>{o[r]=Z[e],++i===a.length&&n(o)})))})),0===a.length&&n(o)},te=e=>{for(var r="",t=e;y[t];)r+=K[y[t++]];return r},ne=e=>{throw new J(e)};function oe(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=r.name;if(e||ne('type "'.concat(n,'" must have a positive integer typeid pointer')),Z.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;ne("Cannot register type '".concat(n,"' twice"))}if(Z[e]=r,delete Q[e],$.hasOwnProperty(e)){var o=$[e];delete $[e],o.forEach((e=>e()))}}(e,r,t)}var ae=8;function ie(){this.allocated=[void 0],this.freelist=[]}var se=new ie,ue=()=>{for(var e=0,r=se.reserved;r<se.allocated.length;++r)void 0!==se.allocated[r]&&++e;return e},le=e=>(e||ne("Cannot use deleted val. handle = "+e),se.get(e).value),de=e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return se.allocate({refcount:1,value:e})}},ce=(e,r,t)=>{if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||ne("Function '".concat(t,"' called with an invalid number of arguments (").concat(arguments.length,") - expects one of (").concat(e[r].overloadTable,")!")),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},fe=(e,r,t)=>{o.hasOwnProperty(e)?((void 0===t||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[t])&&ne("Cannot register public name '".concat(e,"' twice")),ce(o,e,e),o.hasOwnProperty(t)&&ne("Cannot register multiple overloads of a function with the same number of arguments (".concat(t,")!")),o[e].overloadTable[t]=r):(o[e]=r,void 0!==t&&(o[e].numArguments=t))},he=(e,r,t)=>{switch(r){case 1:return t?function(e){return this.fromWireType(w[e>>0])}:function(e){return this.fromWireType(y[e>>0])};case 2:return t?function(e){return this.fromWireType(g[e>>1])}:function(e){return this.fromWireType(E[e>>1])};case 4:return t?function(e){return this.fromWireType(_[e>>2])}:function(e){return this.fromWireType(b[e>>2])};default:throw new TypeError("invalid integer width (".concat(r,"): ").concat(e))}},me=(e,r)=>Object.defineProperty(r,"name",{value:e}),pe=e=>{var r=fr(e),t=te(r);return mr(r),t},ve=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(k[e>>2])};case 8:return function(e){return this.fromWireType(F[e>>3])};default:throw new TypeError("invalid float width (".concat(r,"): ").concat(e))}};function we(e,r,t,n,o,a){var i=r.length;i<2&&ne("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==r[1]&&null!==t,u=!1,l=1;l<r.length;++l)if(null!==r[l]&&void 0===r[l].destructorFunction){u=!0;break}var d="void"!==r[0].name,c="",f="";for(l=0;l<i-2;++l)c+=(0!==l?", ":"")+"arg"+l,f+=(0!==l?", ":"")+"arg"+l+"Wired";var h="\n return function (".concat(c,") {\n if (arguments.length !== ").concat(i-2,") {\n throwBindingError('function ").concat(e," called with ' + arguments.length + ' arguments, expected ").concat(i-2,"');\n }");u&&(h+="var destructors = [];\n");var m=u?"destructors":"null",p=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[ne,n,o,V,r[0],r[1]];s&&(h+="var thisWired = classParam.toWireType("+m+", this);\n");for(l=0;l<i-2;++l)h+="var arg"+l+"Wired = argType"+l+".toWireType("+m+", arg"+l+"); // "+r[l+2].name+"\n",p.push("argType"+l),v.push(r[l+2]);if(s&&(f="thisWired"+(f.length>0?", ":"")+f),h+=(d||a?"var rv = ":"")+"invoker(fn"+(f.length>0?", ":"")+f+");\n",u)h+="runDestructors(destructors);\n";else for(l=s?1:2;l<r.length;++l){var w=1===l?"thisWired":"arg"+(l-2)+"Wired";null!==r[l].destructorFunction&&(h+=w+"_dtor("+w+"); // "+r[l].name+"\n",p.push(w+"_dtor"),v.push(r[l].destructorFunction))}d&&(h+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),h+="}\n",p.push(h);var y=function(e,r){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type ".concat(typeof e," which is not a function"));var t=me(e.name||"unknownFunctionName",(function(){}));t.prototype=e.prototype;var n=new t,o=e.apply(n,r);return o instanceof Object?o:n}(Function,p).apply(null,v);return me(e,y)}var ye,ge,Ee=[],_e=e=>{var r=Ee[e];return r||(e>=Ee.length&&(Ee.length=e+1),Ee[e]=r=ye.get(e)),r},be=(e,r,t)=>e.includes("j")?((e,r,t)=>{var n=o["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)})(e,r,t):_e(r).apply(null,t),ke=(e,r)=>{var t=(e=te(e)).includes("j")?((e,r)=>{var t=[];return function(){return t.length=0,Object.assign(t,arguments),be(e,r,t)}})(e,r):_e(r);return"function"!=typeof t&&ne("unknown function pointer with signature ".concat(e,": ").concat(r)),t},Fe=(e,r,t)=>{switch(r){case 1:return t?e=>w[e>>0]:e=>y[e>>0];case 2:return t?e=>g[e>>1]:e=>E[e>>1];case 4:return t?e=>_[e>>2]:e=>b[e>>2];default:throw new TypeError("invalid integer width (".concat(r,"): ").concat(e))}};function Ae(e){return this.fromWireType(b[e>>2])}var De=(e,r,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i);if(s<=127){if(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s}}return r[t]=0,t-o},Pe=(e,r,t)=>De(e,y,r,t),Te=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},Se="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,Ce=(e,r,t)=>{for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&Se)return Se.decode(e.subarray(r,o));for(var a="";r<o;){var i=e[r++];if(128&i){var s=63&e[r++];if(192!=(224&i)){var u=63&e[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&e[r++])<65536)a+=String.fromCharCode(i);else{var l=i-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},Me=(e,r)=>e?Ce(y,e,r):"",je="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,xe=(e,r)=>{for(var t=e,n=t>>1,o=n+r/2;!(n>=o)&&E[n];)++n;if((t=n<<1)-e>32&&je)return je.decode(y.subarray(e,t));for(var a="",i=0;!(i>=r/2);++i){var s=g[e+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},Re=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=r,o=(t-=2)<2*e.length?t/2:e.length,a=0;a<o;++a){var i=e.charCodeAt(a);g[r>>1]=i,r+=2}return g[r>>1]=0,r-n},Oe=e=>2*e.length,We=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var o=_[e+4*t>>2];if(0==o)break;if(++t,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},ze=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=r,o=n+t-4,a=0;a<e.length;++a){var i=e.charCodeAt(a);if(i>=55296&&i<=57343)i=65536+((1023&i)<<10)|1023&e.charCodeAt(++a);if(_[r>>2]=i,(r+=4)+4>o)break}return _[r>>2]=0,r-n},Ne=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},Be=e=>{var r=(e-m.buffer.byteLength+65535)/65536;try{return m.grow(r),D(),1}catch(t){}},Le={},Ie=()=>{if(!Ie.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:l||"./this.program"};for(var r in Le)void 0===Le[r]?delete e[r]:e[r]=Le[r];var t=[];for(var r in e)t.push("".concat(r,"=").concat(e[r]));Ie.strings=t}return Ie.strings},Ue={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=Ue.isAbs(e),t="/"===e.substr(-1);return(e=Ue.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=Ue.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:e=>{if("/"===e)return"/";var r=(e=(e=Ue.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},join:function(){var e=Array.prototype.slice.call(arguments);return Ue.normalize(e.join("/"))},join2:(e,r)=>Ue.normalize(e+"/"+r)},He=e=>(He=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);O("initRandomDevice")})())(e),Ye={resolve:function(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var n=t>=0?arguments[t]:Qe.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,r=Ue.isAbs(n)}return(r?"/":"")+(e=Ue.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))||"."},relative:(e,r)=>{function t(e){for(var r=0;r<e.length&&""===e[r];r++);for(var t=e.length-1;t>=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=Ye.resolve(e).substr(1),r=Ye.resolve(r).substr(1);for(var n=t(e.split("/")),o=t(r.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(i))).join("/")}},qe=[];function Ve(e,r,t){var n=t>0?t:Te(e)+1,o=new Array(n),a=De(e,o,0,o.length);return r&&(o.length=a),o}var Xe={ttys:[],init(){},shutdown(){},register(e,r){Xe.ttys[e]={input:[],output:[],ops:r},Qe.registerDevice(e,Xe.stream_ops)},stream_ops:{open(e){var r=Xe.ttys[e.node.rdev];if(!r)throw new Qe.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,t,n,o){if(!e.tty||!e.tty.ops.get_char)throw new Qe.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(u){throw new Qe.ErrnoError(29)}if(void 0===s&&0===a)throw new Qe.ErrnoError(6);if(null===s||void 0===s)break;a++,r[t+i]=s}return a&&(e.node.timestamp=Date.now()),a},write(e,r,t,n,o){if(!e.tty||!e.tty.ops.put_char)throw new Qe.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,r[t+a])}catch(i){throw new Qe.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:e=>(()=>{if(!qe.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e)return null;qe=Ve(e,!0)}return qe.shift()})(),put_char(e,r){null===r||10===r?(p(Ce(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(p(Ce(e.output,0)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,r,t)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,r){null===r||10===r?(v(Ce(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(v(Ce(e.output,0)),e.output=[])}}},Ge=e=>{O()},Ke={ops_table:null,mount:e=>Ke.createNode(null,"/",16895,0),createNode(e,r,t,n){if(Qe.isBlkdev(t)||Qe.isFIFO(t))throw new Qe.ErrnoError(63);Ke.ops_table||(Ke.ops_table={dir:{node:{getattr:Ke.node_ops.getattr,setattr:Ke.node_ops.setattr,lookup:Ke.node_ops.lookup,mknod:Ke.node_ops.mknod,rename:Ke.node_ops.rename,unlink:Ke.node_ops.unlink,rmdir:Ke.node_ops.rmdir,readdir:Ke.node_ops.readdir,symlink:Ke.node_ops.symlink},stream:{llseek:Ke.stream_ops.llseek}},file:{node:{getattr:Ke.node_ops.getattr,setattr:Ke.node_ops.setattr},stream:{llseek:Ke.stream_ops.llseek,read:Ke.stream_ops.read,write:Ke.stream_ops.write,allocate:Ke.stream_ops.allocate,mmap:Ke.stream_ops.mmap,msync:Ke.stream_ops.msync}},link:{node:{getattr:Ke.node_ops.getattr,setattr:Ke.node_ops.setattr,readlink:Ke.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Ke.node_ops.getattr,setattr:Ke.node_ops.setattr},stream:Qe.chrdev_stream_ops}});var o=Qe.createNode(e,r,t,n);return Qe.isDir(o.mode)?(o.node_ops=Ke.ops_table.dir.node,o.stream_ops=Ke.ops_table.dir.stream,o.contents={}):Qe.isFile(o.mode)?(o.node_ops=Ke.ops_table.file.node,o.stream_ops=Ke.ops_table.file.stream,o.usedBytes=0,o.contents=null):Qe.isLink(o.mode)?(o.node_ops=Ke.ops_table.link.node,o.stream_ops=Ke.ops_table.link.stream):Qe.isChrdev(o.mode)&&(o.node_ops=Ke.ops_table.chrdev.node,o.stream_ops=Ke.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[r]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,r){var t=e.contents?e.contents.length:0;if(!(t>=r)){r=Math.max(r,t*(t<1048576?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var n=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,r){if(e.usedBytes!=r)if(0==r)e.contents=null,e.usedBytes=0;else{var t=e.contents;e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=Qe.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,Qe.isDir(e.mode)?r.size=4096:Qe.isFile(e.mode)?r.size=e.usedBytes:Qe.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.timestamp),r.mtime=new Date(e.timestamp),r.ctime=new Date(e.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&Ke.resizeFileStorage(e,r.size)},lookup(e,r){throw Qe.genericErrors[44]},mknod:(e,r,t,n)=>Ke.createNode(e,r,t,n),rename(e,r,t){if(Qe.isDir(e.mode)){var n;try{n=Qe.lookupNode(r,t)}catch(a){}if(n)for(var o in n.contents)throw new Qe.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=t,r.contents[t]=e,r.timestamp=e.parent.timestamp,e.parent=r},unlink(e,r){delete e.contents[r],e.timestamp=Date.now()},rmdir(e,r){var t=Qe.lookupNode(e,r);for(var n in t.contents)throw new Qe.ErrnoError(55);delete e.contents[r],e.timestamp=Date.now()},readdir(e){var r=[".",".."];for(var t in e.contents)e.contents.hasOwnProperty(t)&&r.push(t);return r},symlink(e,r,t){var n=Ke.createNode(e,r,41471,0);return n.link=t,n},readlink(e){if(!Qe.isLink(e.mode))throw new Qe.ErrnoError(28);return e.link}},stream_ops:{read(e,r,t,n,o){var a=e.node.contents;if(o>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&a.subarray)r.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)r[t+s]=a[o+s];return i},write(e,r,t,n,o,a){if(r.buffer===w.buffer&&(a=!1),!n)return 0;var i=e.node;if(i.timestamp=Date.now(),r.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=r.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=r.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(r.subarray(t,t+n),o),n}if(Ke.expandFileStorage(i,o+n),i.contents.subarray&&r.subarray)i.contents.set(r.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=r[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&Qe.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new Qe.ErrnoError(28);return n},allocate(e,r,t){Ke.expandFileStorage(e.node,r+t),e.node.usedBytes=Math.max(e.node.usedBytes,r+t)},mmap(e,r,t,n,o){if(!Qe.isFile(e.node.mode))throw new Qe.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||s.buffer!==w.buffer){if((t>0||t+r<s.length)&&(s=s.subarray?s.subarray(t,t+r):Array.prototype.slice.call(s,t,t+r)),i=!0,!(a=Ge()))throw new Qe.ErrnoError(48);w.set(s,a)}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(e,r,t,n,o)=>(Ke.stream_ops.write(e,r,0,n,t,!1),0)}},Je=(e,r,t,n)=>{var o=n?"":"al ".concat(e);i(e,(t=>{var n,a;n=t,a='Loading data file "'.concat(e,'" failed (no arrayBuffer).'),n||O(a),r(new Uint8Array(t)),o&&R()}),(r=>{if(!t)throw'Loading data file "'.concat(e,'" failed.');t()})),o&&x()},$e=o.preloadPlugins||[],Ze=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},Qe={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(e=Ye.resolve(e)))return{path:"",node:null};if(r=Object.assign({follow_mount:!0,recurse_count:0},r),r.recurse_count>8)throw new Qe.ErrnoError(32);for(var t=e.split("/").filter((e=>!!e)),n=Qe.root,o="/",a=0;a<t.length;a++){var i=a===t.length-1;if(i&&r.parent)break;if(n=Qe.lookupNode(n,t[a]),o=Ue.join2(o,t[a]),Qe.isMountpoint(n)&&(!i||i&&r.follow_mount)&&(n=n.mounted.root),!i||r.follow)for(var s=0;Qe.isLink(n.mode);){var u=Qe.readlink(o);if(o=Ye.resolve(Ue.dirname(o),u),n=Qe.lookupPath(o,{recurse_count:r.recurse_count+1}).node,s++>40)throw new Qe.ErrnoError(32)}}return{path:o,node:n}},getPath(e){for(var r;;){if(Qe.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?"".concat(t,"/").concat(r):t+r:t}r=r?"".concat(e.name,"/").concat(r):e.name,e=e.parent}},hashName(e,r){for(var t=0,n=0;n<r.length;n++)t=(t<<5)-t+r.charCodeAt(n)|0;return(e+t>>>0)%Qe.nameTable.length},hashAddNode(e){var r=Qe.hashName(e.parent.id,e.name);e.name_next=Qe.nameTable[r],Qe.nameTable[r]=e},hashRemoveNode(e){var r=Qe.hashName(e.parent.id,e.name);if(Qe.nameTable[r]===e)Qe.nameTable[r]=e.name_next;else for(var t=Qe.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode(e,r){var t=Qe.mayLookup(e);if(t)throw new Qe.ErrnoError(t,e);for(var n=Qe.hashName(e.id,r),o=Qe.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===r)return o}return Qe.lookup(e,r)},createNode(e,r,t,n){var o=new Qe.FSNode(e,r,t,n);return Qe.hashAddNode(o),o},destroyNode(e){Qe.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768===(61440&e),isDir:e=>16384===(61440&e),isLink:e=>40960===(61440&e),isChrdev:e=>8192===(61440&e),isBlkdev:e=>24576===(61440&e),isFIFO:e=>4096===(61440&e),isSocket:e=>49152===(49152&e),flagsToPermissionString(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>Qe.ignorePermissions||(!r.includes("r")||292&e.mode)&&(!r.includes("w")||146&e.mode)&&(!r.includes("x")||73&e.mode)?0:2,mayLookup(e){var r=Qe.nodePermissions(e,"x");return r||(e.node_ops.lookup?0:2)},mayCreate(e,r){try{Qe.lookupNode(e,r);return 20}catch(t){}return Qe.nodePermissions(e,"wx")},mayDelete(e,r,t){var n;try{n=Qe.lookupNode(e,r)}catch(a){return a.errno}var o=Qe.nodePermissions(e,"wx");if(o)return o;if(t){if(!Qe.isDir(n.mode))return 54;if(Qe.isRoot(n)||Qe.getPath(n)===Qe.cwd())return 10}else if(Qe.isDir(n.mode))return 31;return 0},mayOpen:(e,r)=>e?Qe.isLink(e.mode)?32:Qe.isDir(e.mode)&&("r"!==Qe.flagsToPermissionString(r)||512&r)?31:Qe.nodePermissions(e,Qe.flagsToPermissionString(r)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=Qe.MAX_OPEN_FDS;e++)if(!Qe.streams[e])return e;throw new Qe.ErrnoError(33)},getStreamChecked(e){var r=Qe.getStream(e);if(!r)throw new Qe.ErrnoError(8);return r},getStream:e=>Qe.streams[e],createStream(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return Qe.FSStream||(Qe.FSStream=function(){this.shared={}},Qe.FSStream.prototype={},Object.defineProperties(Qe.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!==(2097155&this.flags)}},isWrite:{get(){return 0!==(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(e){this.shared.flags=e}},position:{get(){return this.shared.position},set(e){this.shared.position=e}}})),e=Object.assign(new Qe.FSStream,e),-1==r&&(r=Qe.nextfd()),e.fd=r,Qe.streams[r]=e,e},closeStream(e){Qe.streams[e]=null},chrdev_stream_ops:{open(e){var r=Qe.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new Qe.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice(e,r){Qe.devices[e]={stream_ops:r}},getDevice:e=>Qe.devices[e],getMounts(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push.apply(t,n.mounts)}return r},syncfs(e,r){"function"==typeof e&&(r=e,e=!1),Qe.syncFSRequests++,Qe.syncFSRequests>1&&v("warning: ".concat(Qe.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var t=Qe.getMounts(Qe.root.mount),n=0;function o(e){return Qe.syncFSRequests--,r(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=t.length&&o(null)}t.forEach((r=>{if(!r.type.syncfs)return a(null);r.type.syncfs(r,e,a)}))},mount(e,r,t){var n,o="/"===t,a=!t;if(o&&Qe.root)throw new Qe.ErrnoError(10);if(!o&&!a){var i=Qe.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,Qe.isMountpoint(n))throw new Qe.ErrnoError(10);if(!Qe.isDir(n.mode))throw new Qe.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},u=e.mount(s);return u.mount=s,s.root=u,o?Qe.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount(e){var r=Qe.lookupPath(e,{follow_mount:!1});if(!Qe.isMountpoint(r.node))throw new Qe.ErrnoError(28);var t=r.node,n=t.mounted,o=Qe.getMounts(n);Object.keys(Qe.nameTable).forEach((e=>{for(var r=Qe.nameTable[e];r;){var t=r.name_next;o.includes(r.mount)&&Qe.destroyNode(r),r=t}})),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(e,r)=>e.node_ops.lookup(e,r),mknod(e,r,t){var n=Qe.lookupPath(e,{parent:!0}).node,o=Ue.basename(e);if(!o||"."===o||".."===o)throw new Qe.ErrnoError(28);var a=Qe.mayCreate(n,o);if(a)throw new Qe.ErrnoError(a);if(!n.node_ops.mknod)throw new Qe.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},create:(e,r)=>(r=void 0!==r?r:438,r&=4095,r|=32768,Qe.mknod(e,r,0)),mkdir:(e,r)=>(r=void 0!==r?r:511,r&=1023,r|=16384,Qe.mknod(e,r,0)),mkdirTree(e,r){for(var t=e.split("/"),n="",o=0;o<t.length;++o)if(t[o]){n+="/"+t[o];try{Qe.mkdir(n,r)}catch(a){if(20!=a.errno)throw a}}},mkdev:(e,r,t)=>("undefined"==typeof t&&(t=r,r=438),r|=8192,Qe.mknod(e,r,t)),symlink(e,r){if(!Ye.resolve(e))throw new Qe.ErrnoError(44);var t=Qe.lookupPath(r,{parent:!0}).node;if(!t)throw new Qe.ErrnoError(44);var n=Ue.basename(r),o=Qe.mayCreate(t,n);if(o)throw new Qe.ErrnoError(o);if(!t.node_ops.symlink)throw new Qe.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename(e,r){var t,n,o=Ue.dirname(e),a=Ue.dirname(r),i=Ue.basename(e),s=Ue.basename(r);if(t=Qe.lookupPath(e,{parent:!0}).node,n=Qe.lookupPath(r,{parent:!0}).node,!t||!n)throw new Qe.ErrnoError(44);if(t.mount!==n.mount)throw new Qe.ErrnoError(75);var u,l=Qe.lookupNode(t,i),d=Ye.relative(e,a);if("."!==d.charAt(0))throw new Qe.ErrnoError(28);if("."!==(d=Ye.relative(r,o)).charAt(0))throw new Qe.ErrnoError(55);try{u=Qe.lookupNode(n,s)}catch(h){}if(l!==u){var c=Qe.isDir(l.mode),f=Qe.mayDelete(t,i,c);if(f)throw new Qe.ErrnoError(f);if(f=u?Qe.mayDelete(n,s,c):Qe.mayCreate(n,s))throw new Qe.ErrnoError(f);if(!t.node_ops.rename)throw new Qe.ErrnoError(63);if(Qe.isMountpoint(l)||u&&Qe.isMountpoint(u))throw new Qe.ErrnoError(10);if(n!==t&&(f=Qe.nodePermissions(t,"w")))throw new Qe.ErrnoError(f);Qe.hashRemoveNode(l);try{t.node_ops.rename(l,n,s)}catch(h){throw h}finally{Qe.hashAddNode(l)}}},rmdir(e){var r=Qe.lookupPath(e,{parent:!0}).node,t=Ue.basename(e),n=Qe.lookupNode(r,t),o=Qe.mayDelete(r,t,!0);if(o)throw new Qe.ErrnoError(o);if(!r.node_ops.rmdir)throw new Qe.ErrnoError(63);if(Qe.isMountpoint(n))throw new Qe.ErrnoError(10);r.node_ops.rmdir(r,t),Qe.destroyNode(n)},readdir(e){var r=Qe.lookupPath(e,{follow:!0}).node;if(!r.node_ops.readdir)throw new Qe.ErrnoError(54);return r.node_ops.readdir(r)},unlink(e){var r=Qe.lookupPath(e,{parent:!0}).node;if(!r)throw new Qe.ErrnoError(44);var t=Ue.basename(e),n=Qe.lookupNode(r,t),o=Qe.mayDelete(r,t,!1);if(o)throw new Qe.ErrnoError(o);if(!r.node_ops.unlink)throw new Qe.ErrnoError(63);if(Qe.isMountpoint(n))throw new Qe.ErrnoError(10);r.node_ops.unlink(r,t),Qe.destroyNode(n)},readlink(e){var r=Qe.lookupPath(e).node;if(!r)throw new Qe.ErrnoError(44);if(!r.node_ops.readlink)throw new Qe.ErrnoError(28);return Ye.resolve(Qe.getPath(r.parent),r.node_ops.readlink(r))},stat(e,r){var t=Qe.lookupPath(e,{follow:!r}).node;if(!t)throw new Qe.ErrnoError(44);if(!t.node_ops.getattr)throw new Qe.ErrnoError(63);return t.node_ops.getattr(t)},lstat:e=>Qe.stat(e,!0),chmod(e,r,t){var n;"string"==typeof e?n=Qe.lookupPath(e,{follow:!t}).node:n=e;if(!n.node_ops.setattr)throw new Qe.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod(e,r){Qe.chmod(e,r,!0)},fchmod(e,r){var t=Qe.getStreamChecked(e);Qe.chmod(t.node,r)},chown(e,r,t,n){var o;"string"==typeof e?o=Qe.lookupPath(e,{follow:!n}).node:o=e;if(!o.node_ops.setattr)throw new Qe.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(e,r,t){Qe.chown(e,r,t,!0)},fchown(e,r,t){var n=Qe.getStreamChecked(e);Qe.chown(n.node,r,t)},truncate(e,r){if(r<0)throw new Qe.ErrnoError(28);var t;"string"==typeof e?t=Qe.lookupPath(e,{follow:!0}).node:t=e;if(!t.node_ops.setattr)throw new Qe.ErrnoError(63);if(Qe.isDir(t.mode))throw new Qe.ErrnoError(31);if(!Qe.isFile(t.mode))throw new Qe.ErrnoError(28);var n=Qe.nodePermissions(t,"w");if(n)throw new Qe.ErrnoError(n);t.node_ops.setattr(t,{size:r,timestamp:Date.now()})},ftruncate(e,r){var t=Qe.getStreamChecked(e);if(0===(2097155&t.flags))throw new Qe.ErrnoError(28);Qe.truncate(t.node,r)},utime(e,r,t){var n=Qe.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,t)})},open(e,r,t){if(""===e)throw new Qe.ErrnoError(44);var n;if(t="undefined"==typeof t?438:t,t=64&(r="string"==typeof r?(e=>{var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if("undefined"==typeof r)throw new Error("Unknown file open mode: ".concat(e));return r})(r):r)?4095&t|32768:0,"object"==typeof e)n=e;else{e=Ue.normalize(e);try{n=Qe.lookupPath(e,{follow:!(131072&r)}).node}catch(u){}}var a=!1;if(64&r)if(n){if(128&r)throw new Qe.ErrnoError(20)}else n=Qe.mknod(e,t,0),a=!0;if(!n)throw new Qe.ErrnoError(44);if(Qe.isChrdev(n.mode)&&(r&=-513),65536&r&&!Qe.isDir(n.mode))throw new Qe.ErrnoError(54);if(!a){var i=Qe.mayOpen(n,r);if(i)throw new Qe.ErrnoError(i)}512&r&&!a&&Qe.truncate(n,0),r&=-131713;var s=Qe.createStream({node:n,path:Qe.getPath(n),flags:r,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),!o.logReadFiles||1&r||(Qe.readFiles||(Qe.readFiles={}),e in Qe.readFiles||(Qe.readFiles[e]=1)),s},close(e){if(Qe.isClosed(e))throw new Qe.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(r){throw r}finally{Qe.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,r,t){if(Qe.isClosed(e))throw new Qe.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new Qe.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new Qe.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read(e,r,t,n,o){if(n<0||o<0)throw new Qe.ErrnoError(28);if(Qe.isClosed(e))throw new Qe.ErrnoError(8);if(1===(2097155&e.flags))throw new Qe.ErrnoError(8);if(Qe.isDir(e.node.mode))throw new Qe.ErrnoError(31);if(!e.stream_ops.read)throw new Qe.ErrnoError(28);var a="undefined"!=typeof o;if(a){if(!e.seekable)throw new Qe.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,r,t,n,o);return a||(e.position+=i),i},write(e,r,t,n,o,a){if(n<0||o<0)throw new Qe.ErrnoError(28);if(Qe.isClosed(e))throw new Qe.ErrnoError(8);if(0===(2097155&e.flags))throw new Qe.ErrnoError(8);if(Qe.isDir(e.node.mode))throw new Qe.ErrnoError(31);if(!e.stream_ops.write)throw new Qe.ErrnoError(28);e.seekable&&1024&e.flags&&Qe.llseek(e,0,2);var i="undefined"!=typeof o;if(i){if(!e.seekable)throw new Qe.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,r,t,n,o,a);return i||(e.position+=s),s},allocate(e,r,t){if(Qe.isClosed(e))throw new Qe.ErrnoError(8);if(r<0||t<=0)throw new Qe.ErrnoError(28);if(0===(2097155&e.flags))throw new Qe.ErrnoError(8);if(!Qe.isFile(e.node.mode)&&!Qe.isDir(e.node.mode))throw new Qe.ErrnoError(43);if(!e.stream_ops.allocate)throw new Qe.ErrnoError(138);e.stream_ops.allocate(e,r,t)},mmap(e,r,t,n,o){if(0!==(2&n)&&0===(2&o)&&2!==(2097155&e.flags))throw new Qe.ErrnoError(2);if(1===(2097155&e.flags))throw new Qe.ErrnoError(2);if(!e.stream_ops.mmap)throw new Qe.ErrnoError(43);return e.stream_ops.mmap(e,r,t,n,o)},msync:(e,r,t,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,r,t,n,o):0,munmap:e=>0,ioctl(e,r,t){if(!e.stream_ops.ioctl)throw new Qe.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error('Invalid encoding type "'.concat(r.encoding,'"'));var t,n=Qe.open(e,r.flags),o=Qe.stat(e).size,a=new Uint8Array(o);return Qe.read(n,a,0,o,0),"utf8"===r.encoding?t=Ce(a,0):"binary"===r.encoding&&(t=a),Qe.close(n),t},writeFile(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.flags=t.flags||577;var n=Qe.open(e,t.flags,t.mode);if("string"==typeof r){var o=new Uint8Array(Te(r)+1),a=De(r,o,0,o.length);Qe.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");Qe.write(n,r,0,r.byteLength,void 0,t.canOwn)}Qe.close(n)},cwd:()=>Qe.currentPath,chdir(e){var r=Qe.lookupPath(e,{follow:!0});if(null===r.node)throw new Qe.ErrnoError(44);if(!Qe.isDir(r.node.mode))throw new Qe.ErrnoError(54);var t=Qe.nodePermissions(r.node,"x");if(t)throw new Qe.ErrnoError(t);Qe.currentPath=r.path},createDefaultDirectories(){Qe.mkdir("/tmp"),Qe.mkdir("/home"),Qe.mkdir("/home/web_user")},createDefaultDevices(){Qe.mkdir("/dev"),Qe.registerDevice(Qe.makedev(1,3),{read:()=>0,write:(e,r,t,n,o)=>n}),Qe.mkdev("/dev/null",Qe.makedev(1,3)),Xe.register(Qe.makedev(5,0),Xe.default_tty_ops),Xe.register(Qe.makedev(6,0),Xe.default_tty1_ops),Qe.mkdev("/dev/tty",Qe.makedev(5,0)),Qe.mkdev("/dev/tty1",Qe.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(r=He(e).byteLength),e[--r]);Qe.createDevice("/dev","random",t),Qe.createDevice("/dev","urandom",t),Qe.mkdir("/dev/shm"),Qe.mkdir("/dev/shm/tmp")},createSpecialDirectories(){Qe.mkdir("/proc");var e=Qe.mkdir("/proc/self");Qe.mkdir("/proc/self/fd"),Qe.mount({mount(){var r=Qe.createNode(e,"fd",16895,73);return r.node_ops={lookup(e,r){var t=+r,n=Qe.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},r}},{},"/proc/self/fd")},createStandardStreams(){o.stdin?Qe.createDevice("/dev","stdin",o.stdin):Qe.symlink("/dev/tty","/dev/stdin"),o.stdout?Qe.createDevice("/dev","stdout",null,o.stdout):Qe.symlink("/dev/tty","/dev/stdout"),o.stderr?Qe.createDevice("/dev","stderr",null,o.stderr):Qe.symlink("/dev/tty1","/dev/stderr");Qe.open("/dev/stdin",0),Qe.open("/dev/stdout",1),Qe.open("/dev/stderr",1)},ensureErrnoError(){Qe.ErrnoError||(Qe.ErrnoError=function(e,r){this.name="ErrnoError",this.node=r,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},Qe.ErrnoError.prototype=new Error,Qe.ErrnoError.prototype.constructor=Qe.ErrnoError,[44].forEach((e=>{Qe.genericErrors[e]=new Qe.ErrnoError(e),Qe.genericErrors[e].stack="<generic error, no stack>"})))},staticInit(){Qe.ensureErrnoError(),Qe.nameTable=new Array(4096),Qe.mount(Ke,{},"/"),Qe.createDefaultDirectories(),Qe.createDefaultDevices(),Qe.createSpecialDirectories(),Qe.filesystems={MEMFS:Ke}},init(e,r,t){Qe.init.initialized=!0,Qe.ensureErrnoError(),o.stdin=e||o.stdin,o.stdout=r||o.stdout,o.stderr=t||o.stderr,Qe.createStandardStreams()},quit(){Qe.init.initialized=!1;for(var e=0;e<Qe.streams.length;e++){var r=Qe.streams[e];r&&Qe.close(r)}},findObject(e,r){var t=Qe.analyzePath(e,r);return t.exists?t.object:null},analyzePath(e,r){try{e=(n=Qe.lookupPath(e,{follow:!r})).path}catch(o){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=Qe.lookupPath(e,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=Ue.basename(e),n=Qe.lookupPath(e,{follow:!r}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(o){t.error=o.errno}return t},createPath(e,r,t,n){e="string"==typeof e?e:Qe.getPath(e);for(var o=r.split("/").reverse();o.length;){var a=o.pop();if(a){var i=Ue.join2(e,a);try{Qe.mkdir(i)}catch(s){}e=i}}return i},createFile(e,r,t,n,o){var a=Ue.join2("string"==typeof e?e:Qe.getPath(e),r),i=Ze(n,o);return Qe.create(a,i)},createDataFile(e,r,t,n,o,a){var i=r;e&&(e="string"==typeof e?e:Qe.getPath(e),i=r?Ue.join2(e,r):e);var s=Ze(n,o),u=Qe.create(i,s);if(t){if("string"==typeof t){for(var l=new Array(t.length),d=0,c=t.length;d<c;++d)l[d]=t.charCodeAt(d);t=l}Qe.chmod(u,146|s);var f=Qe.open(u,577);Qe.write(f,t,0,t.length,0,a),Qe.close(f),Qe.chmod(u,s)}},createDevice(e,r,t,n){var o=Ue.join2("string"==typeof e?e:Qe.getPath(e),r),a=Ze(!!t,!!n);Qe.createDevice.major||(Qe.createDevice.major=64);var i=Qe.makedev(Qe.createDevice.major++,0);return Qe.registerDevice(i,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,r,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=t()}catch(l){throw new Qe.ErrnoError(29)}if(void 0===u&&0===i)throw new Qe.ErrnoError(6);if(null===u||void 0===u)break;i++,r[n+s]=u}return i&&(e.node.timestamp=Date.now()),i},write(e,r,t,o,a){for(var i=0;i<o;i++)try{n(r[t+i])}catch(s){throw new Qe.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),i}}),Qe.mkdev(o,a,i)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!a)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=Ve(a(e.url),!0),e.usedBytes=e.contents.length}catch(r){throw new Qe.ErrnoError(29)}},createLazyFile(e,r,t,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var r=e%this.chunkSize,t=e/this.chunkSize|0;return this.getter(t)[r]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",t,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+t+". Status: "+e.status);var r,n=Number(e.getResponseHeader("Content-length")),o=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,a=(r=e.getResponseHeader("Content-Encoding"))&&"gzip"===r,i=1048576;o||(i=n);var s=this;s.setDataGetter((e=>{var r=e*i,o=(e+1)*i-1;if(o=Math.min(o,n-1),"undefined"==typeof s.chunks[e]&&(s.chunks[e]=((e,r)=>{if(e>r)throw new Error("invalid range ("+e+", "+r+") or no bytes requested!");if(r>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",t,!1),n!==i&&o.setRequestHeader("Range","bytes="+e+"-"+r),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+t+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):Ve(o.responseText||"",!0)})(r,o)),"undefined"==typeof s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!a&&n||(i=n=1,n=this.getter(0).length,i=n,p("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!c)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new a;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:i}}else s={isDevice:!1,url:t};var u=Qe.createFile(e,r,s,n,o);s.contents?u.contents=s.contents:s.url&&(u.contents=null,u.url=s.url),Object.defineProperties(u,{usedBytes:{get:function(){return this.contents.length}}});var l={};function d(e,r,t,n,o){var a=e.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)r[t+s]=a[o+s];else for(s=0;s<i;s++)r[t+s]=a.get(o+s);return i}return Object.keys(u.stream_ops).forEach((e=>{var r=u.stream_ops[e];l[e]=function(){return Qe.forceLoadFile(u),r.apply(null,arguments)}})),l.read=(e,r,t,n,o)=>(Qe.forceLoadFile(u),d(e,r,t,n,o)),l.mmap=(e,r,t,n,o)=>{Qe.forceLoadFile(u);var a=Ge();if(!a)throw new Qe.ErrnoError(48);return d(e,w,a,r,t),{ptr:a,allocated:!0}},u.stream_ops=l,u}},er={DEFAULT_POLLMASK:5,calculateAt(e,r,t){if(Ue.isAbs(r))return r;var n;-100===e?n=Qe.cwd():n=er.getStreamFromFD(e).path;if(0==r.length){if(!t)throw new Qe.ErrnoError(44);return n}return Ue.join2(n,r)},doStat(e,r,t){try{var n=e(r)}catch(s){if(s&&s.node&&Ue.normalize(r)!==Ue.normalize(Qe.getPath(s.node)))return-54;throw s}_[t>>2]=n.dev,_[t+4>>2]=n.mode,b[t+8>>2]=n.nlink,_[t+12>>2]=n.uid,_[t+16>>2]=n.gid,_[t+20>>2]=n.rdev,B=[n.size>>>0,(N=n.size,+Math.abs(N)>=1?N>0?+Math.floor(N/4294967296)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)],_[t+24>>2]=B[0],_[t+28>>2]=B[1],_[t+32>>2]=4096,_[t+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return B=[Math.floor(o/1e3)>>>0,(N=Math.floor(o/1e3),+Math.abs(N)>=1?N>0?+Math.floor(N/4294967296)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)],_[t+40>>2]=B[0],_[t+44>>2]=B[1],b[t+48>>2]=o%1e3*1e3,B=[Math.floor(a/1e3)>>>0,(N=Math.floor(a/1e3),+Math.abs(N)>=1?N>0?+Math.floor(N/4294967296)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)],_[t+56>>2]=B[0],_[t+60>>2]=B[1],b[t+64>>2]=a%1e3*1e3,B=[Math.floor(i/1e3)>>>0,(N=Math.floor(i/1e3),+Math.abs(N)>=1?N>0?+Math.floor(N/4294967296)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)],_[t+72>>2]=B[0],_[t+76>>2]=B[1],b[t+80>>2]=i%1e3*1e3,B=[n.ino>>>0,(N=n.ino,+Math.abs(N)>=1?N>0?+Math.floor(N/4294967296)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)],_[t+88>>2]=B[0],_[t+92>>2]=B[1],0},doMsync(e,r,t,n,o){if(!Qe.isFile(r.node.mode))throw new Qe.ErrnoError(43);if(2&n)return 0;var a=y.slice(e,e+t);Qe.msync(r,a,o,t,n)},varargs:void 0,get(){var e=_[+er.varargs>>2];return er.varargs+=4,e},getp:()=>er.get(),getStr:e=>Me(e),getStreamFromFD:e=>Qe.getStreamChecked(e)};var rr=e=>e%4===0&&(e%100!==0||e%400===0),tr=[31,29,31,30,31,30,31,31,30,31,30,31],nr=[31,28,31,30,31,30,31,31,30,31,30,31],or=(e,r)=>{w.set(e,r)},ar=(e,r,t,n)=>{var o=b[n+40>>2],a={tm_sec:_[n>>2],tm_min:_[n+4>>2],tm_hour:_[n+8>>2],tm_mday:_[n+12>>2],tm_mon:_[n+16>>2],tm_year:_[n+20>>2],tm_wday:_[n+24>>2],tm_yday:_[n+28>>2],tm_isdst:_[n+32>>2],tm_gmtoff:_[n+36>>2],tm_zone:o?Me(o):""},i=Me(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)i=i.replace(new RegExp(u,"g"),s[u]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"];function c(e,r,t){for(var n="number"==typeof e?e.toString():e||"";n.length<r;)n=t[0]+n;return n}function f(e,r){return c(e,r,"0")}function h(e,r){function t(e){return e<0?-1:e>0?1:0}var n;return 0===(n=t(e.getFullYear()-r.getFullYear()))&&0===(n=t(e.getMonth()-r.getMonth()))&&(n=t(e.getDate()-r.getDate())),n}function m(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function p(e){var r=((e,r)=>{for(var t=new Date(e.getTime());r>0;){var n=rr(t.getFullYear()),o=t.getMonth(),a=(n?tr:nr)[o];if(!(r>a-t.getDate()))return t.setDate(t.getDate()+r),t;r-=a-t.getDate()+1,t.setDate(1),o<11?t.setMonth(o+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t})(new Date(e.tm_year+1900,0,1),e.tm_yday),t=new Date(r.getFullYear(),0,4),n=new Date(r.getFullYear()+1,0,4),o=m(t),a=m(n);return h(o,r)<=0?h(a,r)<=0?r.getFullYear()+1:r.getFullYear():r.getFullYear()-1}var v={"%a":e=>l[e.tm_wday].substring(0,3),"%A":e=>l[e.tm_wday],"%b":e=>d[e.tm_mon].substring(0,3),"%B":e=>d[e.tm_mon],"%C":e=>f((e.tm_year+1900)/100|0,2),"%d":e=>f(e.tm_mday,2),"%e":e=>c(e.tm_mday,2," "),"%g":e=>p(e).toString().substring(2),"%G":e=>p(e),"%H":e=>f(e.tm_hour,2),"%I":e=>{var r=e.tm_hour;return 0==r?r=12:r>12&&(r-=12),f(r,2)},"%j":e=>f(e.tm_mday+((e,r)=>{for(var t=0,n=0;n<=r;t+=e[n++]);return t})(rr(e.tm_year+1900)?tr:nr,e.tm_mon-1),3),"%m":e=>f(e.tm_mon+1,2),"%M":e=>f(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>f(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var r=e.tm_yday+7-e.tm_wday;return f(Math.floor(r/7),2)},"%V":e=>{var r=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&r++,r){if(53==r){var t=(e.tm_wday+371-e.tm_yday)%7;4==t||3==t&&rr(e.tm_year)||(r=1)}}else{r=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&rr(e.tm_year%400-1))&&r++}return f(r,2)},"%w":e=>e.tm_wday,"%W":e=>{var r=e.tm_yday+7-(e.tm_wday+6)%7;return f(Math.floor(r/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var r=e.tm_gmtoff,t=r>=0;return r=(r=Math.abs(r)/60)/60*100+r%60,(t?"+":"-")+String("0000"+r).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var u in i=i.replace(/%%/g,"\0\0"),v)i.includes(u)&&(i=i.replace(new RegExp(u,"g"),v[u](a)));var w=Ve(i=i.replace(/\0\0/g,"%"),!1);return w.length>r?0:(or(w,e),w.length-1)};G=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},(()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);K=e})(),J=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(ie.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=e,r},free(e){this.allocated[e]=void 0,this.freelist.push(e)}}),se.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),se.reserved=se.allocated.length,o.count_emval_handles=ue,ge=o.UnboundTypeError=((e,r)=>{var t=me(r,(function(e){this.name=r,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.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:"".concat(this.name,": ").concat(this.message)},t})(Error,"UnboundTypeError");var ir=function(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=Qe.nextInode++,this.name=r,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},sr=365,ur=146;Object.defineProperties(ir.prototype,{read:{get:function(){return(this.mode&sr)===sr},set:function(e){e?this.mode|=sr:this.mode&=-366}},write:{get:function(){return(this.mode&ur)===ur},set:function(e){e?this.mode|=ur:this.mode&=-147}},isFolder:{get:function(){return Qe.isDir(this.mode)}},isDevice:{get:function(){return Qe.isChrdev(this.mode)}}}),Qe.FSNode=ir,Qe.createPreloadedFile=(e,r,t,n,o,a,i,s,u,l)=>{var d=r?Ye.resolve(Ue.join2(e,r)):e;"cp ".concat(d);function c(t){function c(t){l&&l(),s||((e,r,t,n,o,a)=>{Qe.createDataFile(e,r,t,n,o,a)})(e,r,t,n,o,u),a&&a(),R()}((e,r,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return $e.forEach((a=>{o||a.canHandle(r)&&(a.handle(e,r,t,n),o=!0)})),o})(t,d,c,(()=>{i&&i(),R()}))||c(t)}x(),"string"==typeof t?Je(t,(e=>c(e)),i):c(t)},Qe.staticInit();var lr,dr={a:(e,r,t)=>{throw new Y(e).init(r,t),e},m:e=>{var r=q[e];delete q[e];var t=r.elements,n=t.length,o=t.map((e=>e.getterReturnType)).concat(t.map((e=>e.setterArgumentType))),a=r.rawConstructor,i=r.rawDestructor;re([e],o,(function(e){return t.forEach(((r,t)=>{var o=e[t],a=r.getter,i=r.getterContext,s=e[t+n],u=r.setter,l=r.setterContext;r.read=e=>o.fromWireType(a(i,e)),r.write=(e,r)=>{var t=[];u(l,e,s.toWireType(t,r)),V(t)}})),[{name:r.name,fromWireType:e=>{for(var r=new Array(n),o=0;o<n;++o)r[o]=t[o].read(e);return i(e),r},toWireType:(e,o)=>{if(n!==o.length)throw new TypeError("Incorrect number of tuple elements for ".concat(r.name,": expected=").concat(n,", actual=").concat(o.length));for(var s=a(),u=0;u<n;++u)t[u].write(s,o[u]);return null!==e&&e.push(i,s),s},argPackAdvance:ae,readValueFromPointer:X,destructorFunction:i}]}))},p:(e,r,t,n,o)=>{},k:(e,r,t,n)=>{oe(e,{name:r=te(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},argPackAdvance:ae,readValueFromPointer:function(e){return this.fromWireType(y[e])},destructorFunction:null})},y:(e,r)=>{oe(e,{name:r=te(r),fromWireType:e=>{var r=le(e);return(e=>{e>=se.reserved&&0===--se.get(e).refcount&&se.free(e)})(e),r},toWireType:(e,r)=>de(r),argPackAdvance:ae,readValueFromPointer:X,destructorFunction:null})},z:(e,r,t,n)=>{function o(){}r=te(r),o.values={},oe(e,{name:r,constructor:o,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,r)=>r.value,argPackAdvance:ae,readValueFromPointer:he(r,t,n),destructorFunction:null}),fe(r,o)},f:(e,r,t)=>{var n=((e,r)=>{var t=Z[e];return void 0===t&&ne(r+" has unknown type "+pe(e)),t})(e,"enum");r=te(r);var o=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:me("".concat(n.name,"_").concat(r),(function(){}))}});o.values[t]=a,o[r]=a},j:(e,r,t)=>{oe(e,{name:r=te(r),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:ae,readValueFromPointer:ve(r,t),destructorFunction:null})},d:(e,r,t,n,a,i,s)=>{var u=((e,r)=>{for(var t=[],n=0;n<e;n++)t.push(b[r+4*n>>2]);return t})(r,t);e=(e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?e.substr(0,r):e})(e=te(e)),a=ke(n,a),fe(e,(function(){((e,r)=>{var t=[],n={};throw r.forEach((function e(r){n[r]||Z[r]||(Q[r]?Q[r].forEach(e):(t.push(r),n[r]=!0))})),new ge("".concat(e,": ")+t.map(pe).join([", "]))})("Cannot call ".concat(e," due to unbound types"),u)}),r-1),re([],u,(function(t){var n=[t[0],null].concat(t.slice(1));return((e,r,t)=>{o.hasOwnProperty(e)||ee("Replacing nonexistant public symbol"),void 0!==o[e].overloadTable&&void 0!==t?o[e].overloadTable[t]=r:(o[e]=r,o[e].argCount=t)})(e,we(e,n,null,a,i,s),r-1),[]}))},e:(e,r,t,n,o)=>{r=te(r),-1===o&&(o=4294967295);var a=e=>e;if(0===n){var i=32-8*t;a=e=>e<<i>>>i}var s=r.includes("unsigned");oe(e,{name:r,fromWireType:a,toWireType:s?function(e,r){return this.name,r>>>0}:function(e,r){return this.name,r},argPackAdvance:ae,readValueFromPointer:Fe(r,t,0!==n),destructorFunction:null})},b:(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(e){var r=b[e>>2],t=b[e+4>>2];return new n(w.buffer,t,r)}oe(e,{name:t=te(t),fromWireType:o,argPackAdvance:ae,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},h:(e,r)=>{var t="std::string"===(r=te(r));oe(e,{name:r,fromWireType(e){var r,n=b[e>>2],o=e+4;if(t)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==y[s]){var u=Me(a,s-a);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),a=s+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(y[o+i]);r=l.join("")}return mr(e),r},toWireType(e,r){var n;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var o="string"==typeof r;o||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||ne("Cannot pass non-string to std::string"),n=t&&o?Te(r):r.length;var a=hr(4+n+1),i=a+4;if(b[a>>2]=n,t&&o)Pe(r,i,n+1);else if(o)for(var s=0;s<n;++s){var u=r.charCodeAt(s);u>255&&(mr(i),ne("String has UTF-16 code units that do not fit in 8 bits")),y[i+s]=u}else for(s=0;s<n;++s)y[i+s]=r[s];return null!==e&&e.push(mr,a),a},argPackAdvance:ae,readValueFromPointer:Ae,destructorFunction(e){mr(e)}})},g:(e,r,t)=>{var n,o,a,i,s;t=te(t),2===r?(n=xe,o=Re,i=Oe,a=()=>E,s=1):4===r&&(n=We,o=ze,i=Ne,a=()=>b,s=2),oe(e,{name:t,fromWireType:e=>{for(var t,o=b[e>>2],i=a(),u=e+4,l=0;l<=o;++l){var d=e+4+l*r;if(l==o||0==i[d>>s]){var c=n(u,d-u);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),u=d+r}}return mr(e),t},toWireType:(e,n)=>{"string"!=typeof n&&ne("Cannot pass non-string to C++ string type ".concat(t));var a=i(n),u=hr(4+a+r);return b[u>>2]=a>>s,o(n,u+4,a+r),null!==e&&e.push(mr,u),u},argPackAdvance:ae,readValueFromPointer:X,destructorFunction(e){mr(e)}})},n:(e,r,t,n,o,a)=>{q[e]={name:te(r),rawConstructor:ke(t,n),rawDestructor:ke(o,a),elements:[]}},c:(e,r,t,n,o,a,i,s,u)=>{q[e].elements.push({getterReturnType:r,getter:ke(t,n),getterContext:o,setterArgumentType:a,setter:ke(i,s),setterContext:u})},l:(e,r)=>{oe(e,{isVoid:!0,name:r=te(r),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,r)=>{}})},i:()=>{O("")},x:(e,r,t)=>y.copyWithin(e,r,r+t),u:e=>{var r=y.length,t=2147483648;if((e>>>=0)>t)return!1;for(var n,o,a=1;a<=4;a*=2){var i=r*(1+.2/a);i=Math.min(i,e+100663296);var s=Math.min(t,(n=Math.max(e,i))+((o=65536)-n%o)%o);if(Be(s))return!0}return!1},r:(e,r)=>{var t=0;return Ie().forEach(((n,o)=>{var a=r+t;b[e+4*o>>2]=a,((e,r)=>{for(var t=0;t<e.length;++t)w[r++>>0]=e.charCodeAt(t);w[r>>0]=0})(n,a),t+=n.length+1})),0},s:(e,r)=>{var t=Ie();b[e>>2]=t.length;var n=0;return t.forEach((e=>n+=e.length+1)),b[r>>2]=n,0},w:function(e){try{var r=er.getStreamFromFD(e);return Qe.close(r),0}catch(t){if("undefined"==typeof Qe||"ErrnoError"!==t.name)throw t;return t.errno}},t:function(e,r,t,n){try{var o=((e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=b[r>>2],s=b[r+4>>2];r+=8;var u=Qe.read(e,w,i,s,n);if(u<0)return-1;if(o+=u,u<s)break;"undefined"!==typeof n&&(n+=u)}return o})(er.getStreamFromFD(e),r,t);return b[n>>2]=o,0}catch(a){if("undefined"==typeof Qe||"ErrnoError"!==a.name)throw a;return a.errno}},o:function(e,r,t,n,o){var a,i,s=(i=t)+2097152>>>0<4194305-!!(a=r)?(a>>>0)+4294967296*i:NaN;try{if(isNaN(s))return 61;var u=er.getStreamFromFD(e);return Qe.llseek(u,s,n),B=[u.position>>>0,(N=u.position,+Math.abs(N)>=1?N>0?+Math.floor(N/4294967296)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)],_[o>>2]=B[0],_[o+4>>2]=B[1],u.getdents&&0===s&&0===n&&(u.getdents=null),0}catch(l){if("undefined"==typeof Qe||"ErrnoError"!==l.name)throw l;return l.errno}},v:function(e,r,t,n){try{var o=((e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=b[r>>2],s=b[r+4>>2];r+=8;var u=Qe.write(e,w,i,s,n);if(u<0)return-1;o+=u,"undefined"!==typeof n&&(n+=u)}return o})(er.getStreamFromFD(e),r,t);return b[n>>2]=o,0}catch(a){if("undefined"==typeof Qe||"ErrnoError"!==a.name)throw a;return a.errno}},q:(e,r,t,n,o)=>ar(e,r,t,n)},cr=function(){var e,r,t,a,i={a:dr};function s(e,r){var t;return cr=e.exports,m=cr.A,D(),ye=cr.C,t=cr.B,T.unshift(t),R(),cr}if(x(),o.instantiateWasm)try{return o.instantiateWasm(i,s)}catch(u){v("Module.instantiateWasm callback failed with error: ".concat(u)),n(u)}return(e=h,r=W,t=i,a=function(e){s(e.instance)},e||"function"!=typeof WebAssembly.instantiateStreaming||L(r)||"function"!=typeof fetch?U(r,t,a):fetch(r,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,t).then(a,(function(e){return v("wasm streaming compile failed: ".concat(e)),v("falling back to ArrayBuffer instantiation"),U(r,t,a)}))))).catch(n),{}}(),fr=e=>(fr=cr.D)(e),hr=o._malloc=e=>(hr=o._malloc=cr.E)(e),mr=o._free=e=>(mr=o._free=cr.F)(e),pr=()=>(pr=cr.G)(),vr=e=>(vr=cr.H)(e),wr=e=>(wr=cr.I)(e),yr=e=>(yr=cr.J)(e);o.dynCall_jiji=(e,r,t,n,a)=>(o.dynCall_jiji=cr.K)(e,r,t,n,a),o.dynCall_viijii=(e,r,t,n,a,i,s)=>(o.dynCall_viijii=cr.L)(e,r,t,n,a,i,s),o.dynCall_iiiiij=(e,r,t,n,a,i,s)=>(o.dynCall_iiiiij=cr.M)(e,r,t,n,a,i,s),o.dynCall_iiiiijj=(e,r,t,n,a,i,s,u,l)=>(o.dynCall_iiiiijj=cr.N)(e,r,t,n,a,i,s,u,l),o.dynCall_iiiiiijj=(e,r,t,n,a,i,s,u,l,d)=>(o.dynCall_iiiiiijj=cr.O)(e,r,t,n,a,i,s,u,l,d);function gr(){function e(){lr||(lr=!0,o.calledRun=!0,A||(!0,o.noFSInit||Qe.init.initialized||Qe.init(),Qe.ignorePermissions=!1,Xe.init(),H(T),t(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)e=o.postRun.shift(),S.unshift(e);var e;H(S)}()))}C>0||(!function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)e=o.preRun.shift(),P.unshift(e);var e;H(P)}(),C>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),e()}),1)):e()))}if(o.ccall=(e,r,t,n,a)=>{var i={string:e=>{var r=0;return null!==e&&void 0!==e&&0!==e&&(r=(e=>{var r=Te(e)+1,t=wr(r);return Pe(e,t,r),t})(e)),r},array:e=>{var r=wr(e.length);return or(e,r),r}};var s=(e=>o["_"+e])(e),u=[],l=0;if(n)for(var d=0;d<n.length;d++){var c=i[t[d]];c?(0===l&&(l=pr()),u[d]=c(n[d])):u[d]=n[d]}var f=s.apply(null,u);return f=function(e){return 0!==l&&vr(l),function(e){return"string"===r?Me(e):"boolean"===r?Boolean(e):e}(e)}(f)},j=function e(){lr||gr(),lr||(j=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return gr(),r.ready}})()}}]);
//# sourceMappingURL=516.3e7a0bc5.chunk.js.map