1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[669],{6669:function(r,e,n){n.r(e);var t,o=(t="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(r){var e,n,o,i,a,u,s,c,f,l,d,m,p,h,$,v,w,g,y,_,E,k,b,r=void 0!==(r=r||{})?r:{};r.ready=new Promise(function(r,e){n=r,o=e});var F={};for(i in r)r.hasOwnProperty(i)&&(F[i]=r[i]);var D=[],P="./this.program",S="";"undefined"!=typeof document&&document.currentScript&&(S=document.currentScript.src),t&&(S=t),S=0!==S.indexOf("blob:")?S.substr(0,S.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=function(r){var e=new XMLHttpRequest;return e.open("GET",r,!1),e.send(null),e.responseText},u=function(r,e,n){var t=new XMLHttpRequest;t.open("GET",r,!0),t.responseType="arraybuffer",t.onload=function(){if(200==t.status||0==t.status&&t.response){e(t.response);return}n()},t.onerror=n,t.send(null)};var T=r.print||console.log.bind(console),C=r.printErr||console.warn.bind(console);for(i in F)F.hasOwnProperty(i)&&(r[i]=F[i]);F=null,r.arguments&&(D=r.arguments),r.thisProgram&&(P=r.thisProgram),r.quit&&r.quit;var A=function(r){};r.wasmBinary&&(c=r.wasmBinary),r.noExitRuntime,"object"!=typeof WebAssembly&&ra("no native wasm support detected");var R=!1;function M(r,e){r||ra("Assertion failed: "+e)}var x="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function N(r,e,n){for(var t=e+n,o=e;r[o]&&!(o>=t);)++o;if(o-e>16&&r.subarray&&x)return x.decode(r.subarray(e,o));for(var i="";e<o;){var a=r[e++];if(!(128&a)){i+=String.fromCharCode(a);continue}var u=63&r[e++];if((224&a)==192){i+=String.fromCharCode((31&a)<<6|u);continue}var s=63&r[e++];if((a=(240&a)==224?(15&a)<<12|u<<6|s:(7&a)<<18|u<<12|s<<6|63&r[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}return i}function B(r,e){return r?N(m,r,e):""}function O(r,e,n,t){if(!(t>0))return 0;for(var o=n,i=n+t-1,a=0;a<r.length;++a){var u=r.charCodeAt(a);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&r.charCodeAt(++a)),u<=127){if(n>=i)break;e[n++]=u}else if(u<=2047){if(n+1>=i)break;e[n++]=192|u>>6,e[n++]=128|63&u}else if(u<=65535){if(n+2>=i)break;e[n++]=224|u>>12,e[n++]=128|u>>6&63,e[n++]=128|63&u}else{if(n+3>=i)break;e[n++]=240|u>>18,e[n++]=128|u>>12&63,e[n++]=128|u>>6&63,e[n++]=128|63&u}}return e[n]=0,n-o}function j(r,e,n){return O(r,m,e,n)}function z(r){for(var e=0,n=0;n<r.length;++n){var t=r.charCodeAt(n);t>=55296&&t<=57343&&(t=65536+((1023&t)<<10)|1023&r.charCodeAt(++n)),t<=127?++e:t<=2047?e+=2:t<=65535?e+=3:e+=4}return e}var W="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function I(r,e){for(var n=r,t=n>>1,o=t+e/2;!(t>=o)&&h[t];)++t;if((n=t<<1)-r>32&&W)return W.decode(m.subarray(r,n));for(var i="",a=0;!(a>=e/2);++a){var u=p[r+2*a>>1];if(0==u)break;i+=String.fromCharCode(u)}return i}function H(r,e,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var t=e,o=(n-=2)<2*r.length?n/2:r.length,i=0;i<o;++i){var a=r.charCodeAt(i);p[e>>1]=a,e+=2}return p[e>>1]=0,e-t}function L(r){return 2*r.length}function Y(r,e){for(var n=0,t="";!(n>=e/4);){var o=$[r+4*n>>2];if(0==o)break;if(++n,o>=65536){var i=o-65536;t+=String.fromCharCode(55296|i>>10,56320|1023&i)}else t+=String.fromCharCode(o)}return t}function U(r,e,n){if(void 0===n&&(n=2147483647),n<4)return 0;for(var t=e,o=t+n-4,i=0;i<r.length;++i){var a=r.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&r.charCodeAt(++i)),$[e>>2]=a,(e+=4)+4>o)break}return $[e>>2]=0,e-t}function V(r){for(var e=0,n=0;n<r.length;++n){var t=r.charCodeAt(n);t>=55296&&t<=57343&&++n,e+=4}return e}function q(r,e){d.set(r,e)}function G(r,e){return r%e>0&&(r+=e-r%e),r}function X(e){l=e,r.HEAP8=d=new Int8Array(e),r.HEAP16=p=new Int16Array(e),r.HEAP32=$=new Int32Array(e),r.HEAPU8=m=new Uint8Array(e),r.HEAPU16=h=new Uint16Array(e),r.HEAPU32=v=new Uint32Array(e),r.HEAPF32=w=new Float32Array(e),r.HEAPF64=g=new Float64Array(e)}r.INITIAL_MEMORY;var J=[],K=[],Z=[];function Q(r){J.unshift(r)}function rr(r){Z.unshift(r)}var re=0,rn=null,rt=null;function ro(e){re++,r.monitorRunDependencies&&r.monitorRunDependencies(re)}function ri(e){if(re--,r.monitorRunDependencies&&r.monitorRunDependencies(re),0==re&&(null!==rn&&(clearInterval(rn),rn=null),rt)){var n=rt;rt=null,n()}}function ra(e){r.onAbort&&r.onAbort(e),C(e="Aborted("+e+")"),R=!0,e+=". Build with -s ASSERTIONS=1 for more info.";var n=new WebAssembly.RuntimeError(e);throw o(n),n}function ru(r){return r.startsWith("data:application/octet-stream;base64,")}function rs(r){try{if(r==_&&c)return new Uint8Array(c);if(s)return s(r);throw"both async and sync fetching of the wasm failed"}catch(e){ra(e)}}function rc(e){for(;e.length>0;){var n=e.shift();if("function"==typeof n){n(r);continue}var t=n.func;"number"==typeof t?void 0===n.arg?rl(t)():rl(t)(n.arg):t(void 0===n.arg?null:n.arg)}}r.preloadedImages={},r.preloadedAudios={},!ru(_="boolean.wasm")&&(_=(e=_,r.locateFile?r.locateFile(e,S):S+e));var rf=[];function rl(r){var e=rf[r];return e||(r>=rf.length&&(rf.length=r+1),rf[r]=e=y.get(r)),e}function rd(r){this.excPtr=r,this.ptr=r-16,this.set_type=function(r){$[this.ptr+4>>2]=r},this.get_type=function(){return $[this.ptr+4>>2]},this.set_destructor=function(r){$[this.ptr+8>>2]=r},this.get_destructor=function(){return $[this.ptr+8>>2]},this.set_refcount=function(r){$[this.ptr>>2]=r},this.set_caught=function(r){r=r?1:0,d[this.ptr+12>>0]=r},this.get_caught=function(){return 0!=d[this.ptr+12>>0]},this.set_rethrown=function(r){r=r?1:0,d[this.ptr+13>>0]=r},this.get_rethrown=function(){return 0!=d[this.ptr+13>>0]},this.init=function(r,e){this.set_type(r),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var r=$[this.ptr>>2];$[this.ptr>>2]=r+1},this.release_ref=function(){var r=$[this.ptr>>2];return $[this.ptr>>2]=r-1,1===r}}var rm=0,rp={};function rh(r){for(;r.length;){var e=r.pop();r.pop()(e)}}function r$(r){return this.fromWireType(v[r>>2])}var rv={},rw={},rg={};function ry(r){if(void 0===r)return"_unknown";
1var e=(r=r.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?"_"+r:r}function r_(r,e){return Function("body","return function "+(r=ry(r))+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(e)}function rE(r,e){var n=r_(e,function(r){this.name=e,this.message=r;var n=Error(r).stack;void 0!==n&&(this.stack=this.toString()+"\n"+n.replace(/^Error(:[^\n]*)?\n/,""))});return n.prototype=Object.create(r.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},n}var r0=void 0;function r8(r){throw new r0(r)}function rk(r,e,n){function t(e){var t=n(e);t.length!==r.length&&r8("Mismatched type converter count");for(var o=0;o<r.length;++o)rF(r[o],t[o])}r.forEach(function(r){rg[r]=e});var o=Array(e.length),i=[],a=0;e.forEach(function(r,e){rw.hasOwnProperty(r)?o[e]=rw[r]:(i.push(r),rv.hasOwnProperty(r)||(rv[r]=[]),rv[r].push(function(){o[e]=rw[r],++a===i.length&&t(o)}))}),0===i.length&&t(o)}function rb(r){switch(r){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw TypeError("Unknown type size: "+r)}}var r2=void 0;function r4(r){for(var e="",n=r;m[n];)e+=r2[m[n++]];return e}var r1=void 0;function r3(r){throw new r1(r)}function rF(r,e,n){if(n=n||{},!("argPackAdvance"in e))throw TypeError("registerType registeredInstance requires argPackAdvance");var t=e.name;if(r||r3('type "'+t+'" must have a positive integer typeid pointer'),r
1w.hasOwnProperty(r)){if(n.ignoreDuplicateRegistrations)return;r3("Cannot register type '"+t+"' twice")}if(rw[r]=e,delete rg[r],rv.hasOwnProperty(r)){var o=rv[r];delete rv[r],o.forEach(function(r){r()})}}var rD=[],rP=[{},{value:void 0},{value:null},{value:!0},{value:!1}],rS={toValue:function(r){return r||r3("Cannot use deleted val. handle = "+r),rP[r].value},toHandle:function(r){switch(r){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=rD.length?rD.pop():rP.length;return rP[e]={refcount:1,value:r},e}}};function r6(e,n,t){r.hasOwnProperty(e)?((void 0===t||void 0!==r[e].overloadTable&&void 0!==r[e].overloadTable[t])&&r3("Cannot register public name '"+e+"' twice"),function(r,e,n){if(void 0===r[e].overloadTable){var t=r[e];r[e]=function(){return r[e].overloadTable.hasOwnProperty(arguments.length)||r3("Function '"+n+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+r[e].overloadTable+")!"),r[e].overloadTable[arguments.length].apply(this,arguments)},r[e].overloadTable=[],r[e].overloadTable[t.argCount]=t}}(r,e,e),r.hasOwnProperty(t)&&r3("Cannot register multiple overloads of a function with the same number of arguments ("+t+")!"),r[e].overloadTable[t]=n):(r[e]=n,void 0!==t&&(r[e].numArguments=t))}function r7(r){var e=rJ(r),n=r4(e);return ee(e),n}function rT(r){if(null===r)return"null";var e=typeof r;return"object"===e||"array"===e||"function"===e?r.toString():""+r}function rC(e,n){e=r4(e);var t=function(){if(e.includes("j")){var t,o,i;return t=e,o=n,i=[],function(){i.length=arguments.length;for(var e=0;e<arguments.length;e++)i[e]=arguments[e];return function(e,n,t){if(e.includes("j")){var o,i,a,u;return o=e,i=n,a=t,u=r["dynCall_"+o],a&&a.length?u.apply(null,[i].concat(a)):u.call(null,i)}return rl(n).apply(null,t)}(t,o,i)}}return rl(n)}();return"function"!=typeof t&&r3("unknown function pointer with signature "+e+": "+n),t}var rA=void 0;function r5(r){try{return f.grow(r-l.byteLength+65535>>>16),X(f.buffer),1}catch(e){}}var rR={};function rM(){if(!rM.strings){var 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",_:P||"./this.program"};for(var e in rR)void 0===rR[e]?delete r[e]:r[e]=rR[e];var n=[];for(var e in r)n.push(e+"="+r[e]);rM.strings=n}return rM.strings}var rx={splitPath:function(r){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(r).slice(1)},normalizeArray:function(r,e){for(var n=0,t=r.length-1;t>=0;t--){var o=r[t];"."===o?r.splice(t,1):".."===o?(r.splice(t,1),n++):n&&(r.splice(t,1),n--)}if(e)for(;n;n--)r.unshift("..");return r},normalize:function(r){var e="/"===r.charAt(0),n="/"===r.substr(-1);return(r=rx.normalizeArray(r.split("/").filter(function(r){return!!r}),!e).join("/"))||e||(r="."),r&&n&&(r+="/"),(e?"/":"")+r},dirname:function(r){var e=rx.splitPath(r),n=e[0],t=e[1];return n||t?(t&&(t=t.substr(0,t.length-1)),n+t):"."},basename:function(r){if("/"===r)return"/";var e=(r=(r=rx.normalize(r)).replace(/\/$/,"")).lastIndexOf("/");return -1===e?r:r.substr(e+1)},extname:function(r){return rx.splitPath(r)[3]},join:function(){var r=Array.prototype.slice.call(arguments,0);return rx.normalize(r.join("/"))},join2:function(r,e){return rx.normalize(r+"/"+e)}},rN={resolve:function(){for(var r="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var t=n>=0?arguments[n]:rj.cwd();if("string"!=typeof t)throw TypeError("Arguments to path.resolve must be strings");if(!t)return"";r=t+"/"+r,e="/"===t.charAt(0)}return r=rx.normalizeArray(r.split("/").filter(function(r){return!!r}),!e).join("/"),(e?"/":"")+r||"."},relative:function(r,e){function n(r){for(var e=0;e<r.length&&""===r[e];e++);for(var n=r.length-1;n>=0&&""===r[n];n--);return e>n?[]:r.slice(e,n-e+1)}r=rN.resolve(r).substr(1),e=rN.resolve(e).substr(1);for(var t=n(r.split("/")),o=n(e.split("/")),i=Math.min(t.length,o.length),a=i,u=0;u<i;u++)if(t[u]!==o[u]){a=u;break}for(var s=[],u=a;u<t.length;u++)s.push("..");return(s=s.concat(o.slice(a))).join("/")}},rB={ttys:[],init:function(){},shutdown:function(){},register:function(r,e){rB.ttys[r]={input:[],output:[],ops:e},rj.registerDevice(r,rB.stream_ops)}
vendor: 4,947 bytes, line 1
1,stream_ops:{open:function(r){var e=rB.ttys[r.node.rdev];if(!e)throw new rj.ErrnoError(43);r.tty=e,r.seekable=!1},close:function(r){r.tty.ops.flush(r.tty)},flush:function(r){r.tty.ops.flush(r.tty)},read:function(r,e,n,t,o){if(!r.tty||!r.tty.ops.get_char)throw new rj.ErrnoError(60);for(var i,a=0,u=0;u<t;u++){try{i=r.tty.ops.get_char(r.tty)}catch(s){throw new rj.ErrnoError(29)}if(void 0===i&&0===a)throw new rj.ErrnoError(6);if(null==i)break;a++,e[n+u]=i}return a&&(r.node.timestamp=Date.now()),a},write:function(r,e,n,t,o){if(!r.tty||!r.tty.ops.put_char)throw new rj.ErrnoError(60);try{for(var i=0;i<t;i++)r.tty.ops.put_char(r.tty,e[n+i])}catch(a){throw new rj.ErrnoError(29)}return t&&(r.node.timestamp=Date.now()),i}},default_tty_ops:{get_char:function(r){if(!r.input.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;r.input=rq(e,!0)}return r.input.shift()},put_char:function(r,e){null===e||10===e?(T(N(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},flush:function(r){r.output&&r.output.length>0&&(T(N(r.output,0)),r.output=[])}},default_tty1_ops:{put_char:function(r,e){null===e||10===e?(C(N(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},flush:function(r){r.output&&r.output.length>0&&(C(N(r.output,0)),r.output=[])}}},rO={ops_table:null,mount:function(r){return rO.createNode(null,"/",16895,0)},createNode:function(r,e,n,t){if(rj.isBlkdev(n)||rj.isFIFO(n))throw new rj.ErrnoError(63);rO.ops_table||(rO.ops_table={dir:{node:{getattr:rO.node_ops.getattr,setattr:rO.node_ops.setattr,lookup:rO.node_ops.lookup,mknod:rO.node_ops.mknod,rename:rO.node_ops.rename,unlink:rO.node_ops.unlink,rmdir:rO.node_ops.rmdir,readdir:rO.node_ops.readdir,symlink:rO.node_ops.symlink},stream:{llseek:rO.stream_ops.llseek}},file:{node:{getattr:rO.node_ops.getattr,setattr:rO.node_ops.setattr},stream:{llseek:rO.stream_ops.llseek,read:rO.stream_ops.read,write:rO.stream_ops.write,allocate:rO.stream_ops.allocate,mmap:rO.stream_ops.mmap,msync:rO.stream_ops.msync}},link:{node:{getattr:rO.node_ops.getattr,setattr:rO.node_ops.setattr,readlink:rO.node_ops.readlink},stream:{}},chrdev:{node:{getattr:rO.node_ops.getattr,setattr:rO.node_ops.setattr},stream:rj.chrdev_stream_ops}});var o=rj.createNode(r,e,n,t);return rj.isDir(o.mode)?(o.node_ops=rO.ops_table.dir.node,o.stream_ops=rO.ops_table.dir.stream,o.contents={}):rj.isFile(o.mode)?(o.node_ops=rO.ops_table.file.node,o.stream_ops=rO.ops_table.file.stream,o.usedBytes=0,o.contents=null):rj.isLink(o.mode)?(o.node_ops=rO.ops_table.link.node,o.stream_ops=rO.ops_table.link.stream):rj.isChrdev(o.mode)&&(o.node_ops=rO.ops_table.chrdev.node,o.stream_ops=rO.ops_table.chrdev.stream),o.timestamp=Date.now(),r&&(r.contents[e]=o,r.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(r){return r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0)},expandFileStorage:function(r,e){var n=r.contents?r.contents.length:0;if(!(n>=e)){e=Math.max(e,n*(n<1048576?2:1.125)>>>0),0!=n&&(e=Math.max(e,256));var t=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(t.subarray(0,r.usedBytes),0)}},resizeFileStorage:function(r,e){if(r.usedBytes!=e){if(0==e)r.contents=null,r.usedBytes=0;else{var n=r.contents;r.contents=new Uint8Array(e),n&&r.contents.set(n.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}}},node_ops:{getattr:function(r){var e={};return e.dev=rj.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,rj.isDir(r.mode)?e.size=4096:rj.isFile(r.mode)?e.size=r.usedBytes:rj.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.timestamp),e.mtime=new Date(r.timestamp),e.ctime=new Date(r.timestamp),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr:function(r,e){void 0!==e.mode&&(r.mode=e.mode),void 0!==e.timestamp&&(r.timestamp=e.timestamp),void 0!==e.size&&rO.resizeFileStorage(r,e.size)},lookup:function(r,e){throw rj.genericErrors[44]},mknod:function(r,e,n,t){return rO.createNode(r,e,n,t)},rename:function(r,e,n){if(rj.isDir(r.mode)){var t;try{t=rj.lookupNode(e,n)}catch(o){}if(t)for(var i in t.contents)throw new rj.ErrnoError(55)}delete r.parent.contents[r.name],r.parent.timestamp=Date.now(),r.name=n,e.contents[n]=r,e.timestamp=r.parent.timestamp,r.parent=e},unlink:function(r,e){delete r.contents[e],r.timestamp=Date.now()},rmdir:function(r,e){var n=rj.lookupNode(r,e);for(var t in n.contents)throw new rj.ErrnoError(55);delete r.contents[e],r.timestamp=Date.now()},readdir:function(r){var e=[".",".."];for(var n in r.contents)r.contents.hasOwnProperty(n)&&e.push(n);return e},symlink:function(r,e,n){var t=rO.createNode(r,e,41471,0);return t.link=n,t},readlink:function(r){if(!rj.isLink(r.mode))throw new rj.ErrnoError(28);return r.link}},stream_ops:{read:function(r,e,n,t,o){var i=r.node.contents;if(o>
1=r.node.usedBytes)return 0;var a=Math.min(r.node.usedBytes-o,t);if(a>8&&i.subarray)e.set(i.subarray(o,o+a),n);else for(var u=0;u<a;u++)e[n+u]=i[o+u];return a},write:function(r,e,n,t,o,i){if(e.buffer===d.buffer&&(i=!1),!t)return 0;var a=r.node;if(a.timestamp=Date.now(),e.subarray&&(!a.contents||a.contents.subarray)){if(i)return a.contents=e.subarray(n,n+t),a.usedBytes=t,t;if(0===a.usedBytes&&0===o)return a.contents=e.slice(n,n+t),a.usedBytes=t,t;if(o+t<=a.usedBytes)return a.contents.set(e.subarray(n,n+t),o),t}if(rO.expandFileStorage(a,o+t),a.contents.subarray&&e.subarray)a.contents.set(e.subarray(n,n+t),o);else for(var u=0;u<t;u++)a.contents[o+u]=e[n+u];return a.usedBytes=Math.max(a.usedBytes,o+t),t},llseek:function(r,e,n){var t=e;if(1===n?t+=r.position:2===n&&rj.isFile(r.node.mode)&&(t+=r.node.usedBytes),t<0)throw new rj.ErrnoError(28);return t},allocate:function(r,e,n){rO.expandFileStorage(r.node,e+n),r.node.usedBytes=Math.max(r.node.usedBytes,e+n)},mmap:function(r,e,n,t,o,i){if(0!==e)throw new rj.ErrnoError(28);if(!rj.isFile(r.node.mode))throw new rj.ErrnoError(43);var a,u,s=r.node.contents;if(2&i||s.buffer!==l)throw(t>0||t+n<s.length)&&(s=s.subarray?s.subarray(t,t+n):Array.prototype.slice.call(s,t,t+n)),u=!0,a=void ra(),new rj.ErrnoError(48);return u=!1,a=s.byteOffset,{ptr:a,allocated:u}},msync:function(r,e,n,t,o){if(!rj.isFile(r.node.mode))throw new rj.ErrnoError(43);return 2&o||rO.stream_ops.write(r,e,0,t,n,!1),0}}},rj={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(r,e){if(r=rN.resolve(rj.cwd(),r),e=e||{},!r)return{path:"",node:null};var n={follow_mount:!0,recurse_count:0};for(var t in n)void 0===e[t]&&(e[t]=n[t]);if(e.recurse_count>8)throw new rj.ErrnoError(32);for(var o=rx.normalizeArray(r.split("/").filter(function(r){return!!r}),!1),i=rj.root,a="/",u=0;u<o.length;u++){var s=u===o.length-1;if(s&&e.parent)break;if(i=rj.lookupNode(i,o[u]),a=rx.join2(a,o[u]),rj.isMountpoint(i)&&(!s||s&&e.follow_mount)&&(i=i.mounted.root),!s||e.follow)for(var c=0;rj.isLink(i.mode);){var f=rj.readlink(a);if(a=rN.resolve(rx.dirname(a),f),i=rj.lookupPath(a,{recurse_count:e.recurse_count}).node,c++>40)throw new rj.ErrnoError(32)}}return{path:a,node:i}},getPath:function(r){for(var e;;){if(rj.isRoot(r)){var n=r.mount.mountpoint;if(!e)return n;return"/"!==n[n.length-1]?n+"/"+e:n+e}e=e?r.name+"/"+e:r.name,r=r.parent}},hashName:function(r,e){for(var n=0,t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t)|0;return(r+n>>>0)%rj.nameTable.length},hashAddNode:function(r){var e=rj.hashName(r.parent.id,r.name);r.name_next=rj.nameTable[e],rj.nameTable[e]=r},hashRemoveNode:function(r){var e=rj.hashName(r.parent.id,r.name);if(rj.nameTable[e]===r)rj.nameTable[e]=r.name_next;else for(var n=rj.nameTable[e];n;){if(n.name_next===r){n.name_next=r.name_next;break}n=n.name_next}},lookupNode:function(r,e){var n=rj.mayLookup(r);if(n)throw new rj.ErrnoError(n,r);for(var t=rj.hashName(r.id,e),o=rj.nameTable[t];o;o=o.name_next){var i=o.name;if(o.parent.id===r.id&&i===e)return o}return rj.lookup(r,e)},createNode:function(r,e,n,t){var o=new rj.FSNode(r,e,n,t);return rj.hashAddNode(o),o},destroyNode:function(r){rj.hashRemoveNode(r)},isRoot:function(r){return r===r.parent},isMountpoint:function(r){return!!r.mounted},isFile:function(r){return(61440&r)==32768},isDir:function(r){return(61440&r)==16384},isLink:function(r){return(61440&r)==40960},isChrdev:function(r){return(61440&r)==8192},isBlkdev:function(r){return(61440&r)==24576},isFIFO:function(r){return(61440&r)==4096},isSocket:function(r){return(49152&r)==49152},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(r){var e=rj.flagModes[r];if(void 0===e)throw Error("Unknown file open mode: "+r);return e},flagsToPermissionString:function(r){var e=["r","w","rw"][3&r];return 512&r&&(e+="w"),e},nodePermissions:function(r,e){return rj.ignorePermissions?0:e.includes("r")&&!(292&r.mode)||e.includes("w")&&!(146&r.mode)||e.includes("x")&&!(73&r.mode)?2:0},mayLookup:function(r){var e=rj.nodePermissions(r,"x");return e||(r.node_ops.lookup?0:2)},mayCreate:function(r,e){try{return rj.lookupNode(r,e),20}catch(n){}return rj.nodePermissions(r,"wx")},mayDelete:function(r,e,n){try{o=rj.lookupNode(r,e)}catch(t){return t.errno}var o,i=rj.nodePermissions(r,"wx");if(i)return i;if(n){if(!rj.isDir(o.mode))return 54;
1if(rj.isRoot(o)||rj.getPath(o)===rj.cwd())return 10}else if(rj.isDir(o.mode))return 31;return 0},mayOpen:function(r,e){return r?rj.isLink(r.mode)?32:rj.isDir(r.mode)&&("r"!==rj.flagsToPermissionString(e)||512&e)?31:rj.nodePermissions(r,rj.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(r,e){r=r||0,e=e||rj.MAX_OPEN_FDS;for(var n=r;n<=e;n++)if(!rj.streams[n])return n;throw new rj.ErrnoError(33)},getStream:function(r){return rj.streams[r]},createStream:function(r,e,n){rj.FSStream||(rj.FSStream=function(){},rj.FSStream.prototype={object:{get:function(){return this.node},set:function(r){this.node=r}},isRead:{get:function(){return(2097155&this.flags)!=1}},isWrite:{get:function(){return(2097155&this.flags)!=0}},isAppend:{get:function(){return 1024&this.flags}}});var t=new rj.FSStream;for(var o in r)t[o]=r[o];r=t;var i=rj.nextfd(e,n);return r.fd=i,rj.streams[i]=r,r},closeStream:function(r){rj.streams[r]=null},chrdev_stream_ops:{open:function(r){var e=rj.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open&&r.stream_ops.open(r)},llseek:function(){throw new rj.ErrnoError(70)}},major:function(r){return r>>8},minor:function(r){return 255&r},makedev:function(r,e){return r<<8|e},registerDevice:function(r,e){rj.devices[r]={stream_ops:e}},getDevice:function(r){return rj.devices[r]},getMounts:function(r){for(var e=[],n=[r];n.length;){var t=n.pop();e.push(t),n.push.apply(n,t.mounts)}return e},syncfs:function(r,e){"function"==typeof r&&(e=r,r=!1),rj.syncFSRequests++,rj.syncFSRequests>1&&C("warning: "+rj.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=rj.getMounts(rj.root.mount),t=0;function o(r){return rj.syncFSRequests--,e(r)}function i(r){if(r)return i.errored?void 0:(i.errored=!0,o(r));++t>=n.length&&o(null)}n.forEach(function(e){if(!e.type.syncfs)return i(null);e.type.syncfs(e,r,i)})},mount:function(r,e,n){var t,o="/"===n,i=!n;if(o&&rj.root)throw new rj.ErrnoError(10);if(!o&&!i){var a=rj.lookupPath(n,{follow_mount:!1});if(n=a.path,t=a.node,rj.isMountpoint(t))throw new rj.ErrnoError(10);if(!rj.isDir(t.mode))throw new rj.ErrnoError(54)}var u={type:r,opts:e,mountpoint:n,mounts:[]},s=r.mount(u);return s.mount=u,u.root=s,o?rj.root=s:t&&(t.mounted=u,t.mount&&t.mount.mounts.push(u)),s},unmount:function(r){var e=rj.lookupPath(r,{follow_mount:!1});if(!rj.isMountpoint(e.node))throw new rj.ErrnoError(28);var n=e.node,t=n.mounted,o=rj.getMounts(t);Object.keys(rj.nameTable).forEach(function(r){for(var e=rj.nameTable[r];e;){var n=e.name_next;o.includes(e.mount)&&rj.destroyNode(e),e=n}}),n.mounted=null;var i=n.mount.mounts.indexOf(t);n.mount.mounts.splice(i,1)},lookup:function(r,e){return r.node_ops.lookup(r,e)},mknod:function(r,e,n){var t=rj.lookupPath(r,{parent:!0}).node,o=rx.basename(r);if(!o||"."===o||".."===o)throw new rj.ErrnoError(28);var i=rj.mayCreate(t,o);if(i)throw new rj.ErrnoError(i);if(!t.node_ops.mknod)throw new rj.ErrnoError(63);return t.node_ops.mknod(t,o,e,n)},create:function(r,e){return e=void 0!==e?e:438,e&=4095,e|=32768,rj.mknod(r,e,0)},mkdir:function(r,e){return e=void 0!==e?e:511,e&=1023,e|=16384,rj.mknod(r,e,0)},mkdirTree:function(r,e){for(var n=r.split("/"),t="",o=0;o<n.length;++o)if(n[o]){t+="/"+n[o];try{rj.mkdir(t,e)}catch(i){if(20!=i.errno)throw i}}},mkdev:function(r,e,n){return void 0===n&&(n=e,e=438),e|=8192,rj.mknod(r,e,n)},symlink:function(r,e){if(!rN.resolve(r))throw new rj.ErrnoError(44);var n=rj.lookupPath(e,{parent:!0}).node;if(!n)throw new rj.ErrnoError(44);var t=rx.basename(e),o=rj.mayCreate(n,t);if(o)throw new rj.ErrnoError(o);if(!n.node_ops.symlink)throw new rj.ErrnoError(63);return n.node_ops.symlink(n,t,r)},rename:function(r,e){var n,t,o,i,a=rx.dirname(r),u=rx.dirname(e),s=rx.basename(r),c=rx.base
1name(e);if(t=rj.lookupPath(r,{parent:!0}).node,o=rj.lookupPath(e,{parent:!0}).node,!t||!o)throw new rj.ErrnoError(44);if(t.mount!==o.mount)throw new rj.ErrnoError(75);var f=rj.lookupNode(t,s),l=rN.relative(r,u);if("."!==l.charAt(0))throw new rj.ErrnoError(28);if("."!==(l=rN.relative(e,a)).charAt(0))throw new rj.ErrnoError(55);try{i=rj.lookupNode(o,c)}catch(d){}if(f!==i){var m=rj.isDir(f.mode),p=rj.mayDelete(t,s,m);if(p||(p=i?rj.mayDelete(o,c,m):rj.mayCreate(o,c)))throw new rj.ErrnoError(p);if(!t.node_ops.rename)throw new rj.ErrnoError(63);if(rj.isMountpoint(f)||i&&rj.isMountpoint(i))throw new rj.ErrnoError(10);if(o!==t&&(p=rj.nodePermissions(t,"w")))throw new rj.ErrnoError(p);rj.hashRemoveNode(f);try{t.node_ops.rename(f,o,c)}catch(h){throw h}finally{rj.hashAddNode(f)}}},rmdir:function(r){var e=rj.lookupPath(r,{parent:!0}).node,n=rx.basename(r),t=rj.lookupNode(e,n),o=rj.mayDelete(e,n,!0);if(o)throw new rj.ErrnoError(o);if(!e.node_ops.rmdir)throw new rj.ErrnoError(63);if(rj.isMountpoint(t))throw new rj.ErrnoError(10);e.node_ops.rmdir(e,n),rj.destroyNode(t)},readdir:function(r){var e=rj.lookupPath(r,{follow:!0}).node;if(!e.node_ops.readdir)throw new rj.ErrnoError(54);return e.node_ops.readdir(e)},unlink:function(r){var e=rj.lookupPath(r,{parent:!0}).node,n=rx.basename(r),t=rj.lookupNode(e,n),o=rj.mayDelete(e,n,!1);if(o)throw new rj.ErrnoError(o);if(!e.node_ops.unlink)throw new rj.ErrnoError(63);if(rj.isMountpoint(t))throw new rj.ErrnoError(10);e.node_ops.unlink(e,n),rj.destroyNode(t)},readlink:function(r){var e=rj.lookupPath(r).node;if(!e)throw new rj.ErrnoError(44);if(!e.node_ops.readlink)throw new rj.ErrnoError(28);return rN.resolve(rj.getPath(e.parent),e.node_ops.readlink(e))},stat:function(r,e){var n=rj.lookupPath(r,{follow:!e}).node;if(!n)throw new rj.ErrnoError(44);if(!n.node_ops.getattr)throw new rj.ErrnoError(63);return n.node_ops.getattr(n)},lstat:function(r){return rj.stat(r,!0)},chmod:function(r,e,n){var t;if(!(t="string"==typeof r?rj.lookupPath(r,{follow:!n}).node:r).node_ops.setattr)throw new rj.ErrnoError(63);t.node_ops.setattr(t,{mode:4095&e|-4096&t.mode,timestamp:Date.now()})},lchmod:function(r,e){rj.chmod(r,e,!0)},fchmod:function(r,e){var n=rj.getStream(r);if(!n)throw new rj.ErrnoError(8);rj.chmod(n.node,e)},chown:function(r,e,n,t){var o;if(!(o="string"==typeof r?rj.lookupPath(r,{follow:!t}).node:r).node_ops.setattr)throw new rj.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:function(r,e,n){rj.chown(r,e,n,!0)},fchown:function(r,e,n){var t=rj.getStream(r);if(!t)throw new rj.ErrnoError(8);rj.chown(t.node,e,n)},truncate:function(r,e){if(e<0)throw new rj.ErrnoError(28);if("string"==typeof r){var n;n=rj.lookupPath(r,{follow:!0}).node}else n=r;if(!n.node_ops.setattr)throw new rj.ErrnoError(63);if(rj.isDir(n.mode))throw new rj.ErrnoError(31);if(!rj.isFile(n.mode))throw new rj.ErrnoError(28);var t=rj.nodePermissions(n,"w");if(t)throw new rj.ErrnoError(t);n.node_ops.setattr(n,{size:e,timestamp:Date.now()})},ftruncate:function(r,e){var n=rj.getStream(r);if(!n)throw new rj.ErrnoError(8);if((2097155&n.flags)==0)throw new rj.ErrnoError(28);rj.truncate(n.node,e)},utime:function(r,e,n){var t=rj.lookupPath(r,{follow:!0}).node;t.node_ops.setattr(t,{timestamp:Math.max(e,n)})},open:function(e,n,t,o,i){if(""===e)throw new rj.ErrnoError(44);if(n="string"==typeof n?rj.modeStringToFlags(n):n,t=void 0===t?438:t,t=64&n?4095&t|32768:0,"object"==typeof e)a=e;else{e=rx.normalize(e);try{var a;a=rj.lookupPath(e,{follow:!(131072&n)}).node}catch(u){}}var s=!1;if(64&n){if(a){if(128&n)throw new rj.ErrnoError(20)}else a=rj.mknod(e,t,0),s=!0}if(!a)throw new rj.ErrnoError(44);if(rj.isChrdev(a.mode)&&(n&=-513),65536&n&&!rj.isDir(a.mode))throw new rj.ErrnoError(54);if(!s){var c=rj.mayOpen(a,n);if(c)throw new rj.ErrnoError(c)}512&n&&rj.truncate(a,0),n&=-131713;var f=rj.createStream({node:a,path:rj.getPath(a),id:a.id,flags:n,mode:a.mode,seekable:!0,position:0,stream_ops:a.stream_ops,node_ops:a.node_ops,ungotten:[],error:!1},o,i);return f.stream_ops.open&&f.stream_ops.open(f),!r.logReadFiles||1&n||(rj.readFiles||(rj.readFiles={}),e in rj.readFiles||(rj.readFiles[e]=1)),f},close:function(r){if(rj.isClosed(r))throw new rj.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(e){throw e}finally{rj.closeStream(r.fd)}r.fd=null},isClosed:function(r){return null===r.fd},llseek:function(r,e,n){if(rj.isClosed(r))throw new rj.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new rj.ErrnoError(70);if(0!=n&&1!=n&&2!=n)throw new rj.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,n),r.ungotten=[],r.position},read:function(r,e,n,t,o){if(t<0||o<0)throw new rj.ErrnoError(28);if(rj.isClosed(r)||(2097155&r.flags)==1)throw new rj.ErrnoError(8);if(rj.isDir(r.node.mode))throw new rj.ErrnoError(31);if(!r.stream_ops.read)throw new rj.ErrnoError(28);var i=void 0!==o;if(i){if(!r.seekable)throw new rj.ErrnoError(70)}else o=r.position;var a=r.stream_ops.read(r,e,n,t,o);
1return i||(r.position+=a),a},write:function(r,e,n,t,o,i){if(t<0||o<0)throw new rj.ErrnoError(28);if(rj.isClosed(r)||(2097155&r.flags)==0)throw new rj.ErrnoError(8);if(rj.isDir(r.node.mode))throw new rj.ErrnoError(31);if(!r.stream_ops.write)throw new rj.ErrnoError(28);r.seekable&&1024&r.flags&&rj.llseek(r,0,2);var a=void 0!==o;if(a){if(!r.seekable)throw new rj.ErrnoError(70)}else o=r.position;var u=r.stream_ops.write(r,e,n,t,o,i);return a||(r.position+=u),u},allocate:function(r,e,n){if(rj.isClosed(r))throw new rj.ErrnoError(8);if(e<0||n<=0)throw new rj.ErrnoError(28);if((2097155&r.flags)==0)throw new rj.ErrnoError(8);if(!rj.isFile(r.node.mode)&&!rj.isDir(r.node.mode))throw new rj.ErrnoError(43);if(!r.stream_ops.allocate)throw new rj.ErrnoError(138);r.stream_ops.allocate(r,e,n)},mmap:function(r,e,n,t,o,i){if((2&o)!=0&&(2&i)==0&&(2097155&r.flags)!=2||(2097155&r.flags)==1)throw new rj.ErrnoError(2);if(!r.stream_ops.mmap)throw new rj.ErrnoError(43);return r.stream_ops.mmap(r,e,n,t,o,i)},msync:function(r,e,n,t,o){return r&&r.stream_ops.msync?r.stream_ops.msync(r,e,n,t,o):0},munmap:function(r){return 0},ioctl:function(r,e,n){if(!r.stream_ops.ioctl)throw new rj.ErrnoError(59);return r.stream_ops.ioctl(r,e,n)},readFile:function(r,e){if((e=e||{}).flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding)throw Error('Invalid encoding type "'+e.encoding+'"');var n,t=rj.open(r,e.flags),o=rj.stat(r).size,i=new Uint8Array(o);return rj.read(t,i,0,o,0),"utf8"===e.encoding?n=N(i,0):"binary"===e.encoding&&(n=i),rj.close(t),n},writeFile:function(r,e,n){(n=n||{}).flags=n.flags||577;var t=rj.open(r,n.flags,n.mode);if("string"==typeof e){var o=new Uint8Array(z(e)+1),i=O(e,o,0,o.length);rj.write(t,o,0,i,void 0,n.canOwn)}else if(ArrayBuffer.isView(e))rj.write(t,e,0,e.byteLength,void 0,n.canOwn);else throw Error("Unsupported data type");rj.close(t)},cwd:function(){return rj.currentPath},chdir:function(r){var e=rj.lookupPath(r,{follow:!0});if(null===e.node)throw new rj.ErrnoError(44);if(!rj.isDir(e.node.mode))throw new rj.ErrnoError(54);var n=rj.nodePermissions(e.node,"x");if(n)throw new rj.ErrnoError(n);rj.currentPath=e.path},createDefaultDirectories:function(){rj.mkdir("/tmp"),rj.mkdir("/home"),rj.mkdir("/home/web_user")},createDefaultDevices:function(){rj.mkdir("/dev"),rj.registerDevice(rj.makedev(1,3),{read:function(){return 0},write:function(r,e,n,t,o){return t}}),rj.mkdev("/dev/null",rj.makedev(1,3)),rB.register(rj.makedev(5,0),rB.default_tty_ops),rB.register(rj.makedev(6,0),rB.default_tty1_ops),rj.mkdev("/dev/tty",rj.makedev(5,0)),rj.mkdev("/dev/tty1",rj.makedev(6,0));var r=function(){if("object"!=typeof crypto||"function"!=typeof crypto.getRandomValues)return function(){ra("randomDevice")};var r=new Uint8Array(1);return function(){return crypto.getRandomValues(r),r[0]}}();rj.createDevice("/dev","random",r),rj.createDevice("/dev","urandom",r),rj.mkdir("/dev/shm"),rj.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){rj.mkdir("/proc");var r=rj.mkdir("/proc/self");rj.mkdir("/proc/self/fd"),rj.mount({mount:function(){var e=rj.createNode(r,"fd",16895,73);return e.node_ops={lookup:function(r,e){var n=rj.getStream(+e);if(!n)throw new rj.ErrnoError(8);var t={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return n.path}}};return t.parent=t,t}},e}},{},"/proc/self/fd")},createStandardStreams:function(){r.stdin?rj.createDevice("/dev","stdin",r.stdin):rj.symlink("/dev/tty","/dev/stdin"),r.stdout?rj.createDevice("/dev","stdout",null,r.stdout):rj.symlink("/dev/tty","/dev/stdout"),r.stderr?rj.createDevice("/dev","stderr",null,r.stderr):rj.symlink("/dev/tty1","/dev/stderr"),rj.open("/dev/stdin",0),rj.open("/dev/stdout",1),rj.open("/dev/stderr",1)},ensureErrnoError:function(){rj.ErrnoError||(rj.ErrnoError=function(r,e){this.node=e,this.setErrno=function(r){this.errno=r},this.setErrno(r),this.message="FS error"},rj.ErrnoError.prototype=Error(),rj.ErrnoError.prototype.constructor=rj.ErrnoError,[44].forEach(function(r){rj.genericErrors[r]=new rj.ErrnoError(r),rj.genericErrors[r].stack="<generic error, no stack>"}))},staticInit:function(){rj.ensureErrnoError(),rj.nameTable=Array(4096),rj.mount(rO,{},"/"),rj.createDefaultDirectories(),rj.createDefaultDevices(),rj.createSpecialDirectories(),rj.filesystems={MEMFS:rO}},init:function(e,n,t){rj.init.initialized=!0,rj.ensureErrnoError(),r.stdin=e||r.stdin,r.stdout=n||r.stdout,r.stderr=t||r.stderr,rj.createStandardStream
1s()},quit:function(){rj.init.initialized=!1;var e=r._fflush;e&&e(0);for(var n=0;n<rj.streams.length;n++){var t=rj.streams[n];t&&rj.close(t)}},getMode:function(r,e){var n=0;return r&&(n|=365),e&&(n|=146),n},findObject:function(r,e){var n=rj.analyzePath(r,e);return n.exists?n.object:null},analyzePath:function(r,e){try{var n=rj.lookupPath(r,{follow:!e});r=n.path}catch(t){}var o={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=rj.lookupPath(r,{parent:!0});o.parentExists=!0,o.parentPath=n.path,o.parentObject=n.node,o.name=rx.basename(r),n=rj.lookupPath(r,{follow:!e}),o.exists=!0,o.path=n.path,o.object=n.node,o.name=n.node.name,o.isRoot="/"===n.path}catch(i){o.error=i.errno}return o},createPath:function(r,e,n,t){r="string"==typeof r?r:rj.getPath(r);for(var o=e.split("/").reverse();o.length;){var i=o.pop();if(i){var a=rx.join2(r,i);try{rj.mkdir(a)}catch(u){}r=a}}return a},createFile:function(r,e,n,t,o){var i=rx.join2("string"==typeof r?r:rj.getPath(r),e),a=rj.getMode(t,o);return rj.create(i,a)},createDataFile:function(r,e,n,t,o,i){var a=e?rx.join2("string"==typeof r?r:rj.getPath(r),e):r,u=rj.getMode(t,o),s=rj.create(a,u);if(n){if("string"==typeof n){for(var c=Array(n.length),f=0,l=n.length;f<l;++f)c[f]=n.charCodeAt(f);n=c}rj.chmod(s,146|u);var d=rj.open(s,577);rj.write(d,n,0,n.length,0,i),rj.close(d),rj.chmod(s,u)}return s},createDevice:function(r,e,n,t){var o=rx.join2("string"==typeof r?r:rj.getPath(r),e),i=rj.getMode(!!n,!!t);rj.createDevice.major||(rj.createDevice.major=64);var a=rj.makedev(rj.createDevice.major++,0);return rj.registerDevice(a,{open:function(r){r.seekable=!1},close:function(r){t&&t.buffer&&t.buffer.length&&t(10)},read:function(r,e,t,o,i){for(var a,u=0,s=0;s<o;s++){try{a=n()}catch(c){throw new rj.ErrnoError(29)}if(void 0===a&&0===u)throw new rj.ErrnoError(6);if(null==a)break;u++,e[t+s]=a}return u&&(r.node.timestamp=Date.now()),u},write:function(r,e,n,o,i){for(var a=0;a<o;a++)try{t(e[n+a])}catch(u){throw new rj.ErrnoError(29)}return o&&(r.node.timestamp=Date.now()),a}}),rj.mkdev(o,i,a)},forceLoadFile:function(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;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.");if(a)try{r.contents=rq(a(r.url),!0),r.usedBytes=r.contents.length}catch(e){throw new rj.ErrnoError(29)}else throw Error("Cannot load without read() or XMLHttpRequest.")},createLazyFile:function(r,e,n,t,o){function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(r){if(!(r>this.length-1)&&!(r<0)){var e=r%this.chunkSize,n=r/this.chunkSize|0;return this.getter(n)[e]}},i.prototype.setDataGetter=function(r){this.getter=r},i.prototype.cacheLength=function(){var r,e=new XMLHttpRequest;if(e.open("HEAD",n,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw Error("Couldn't load "+n+". Status: "+e.status);var t=Number(e.getResponseHeader("Content-length")),o=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,i=(r=e.getResponseHeader("Content-Encoding"))&&"gzip"===r,a=1048576;o||(a=t);var u=function(r,e){if(r>e)throw Error("invalid range ("+r+", "+e+") or no bytes requested!");if(e>t-1)throw Error("only "+t+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",n,!1),t!==a&&o.setRequestHeader("Range","bytes="+r+"-"+e),"undefined"!=typeof Uint8Array&&(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 Error("Couldn't load "+n+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):rq(o.responseText||"",!0)},s=this;s.setDataGetter(function(r){var e=r*a,n=(r+1)*a-1;if(n=Math.min(n,t-1),void 0===s.chunks[r]&&(s.chunks[r]=u(e,n)),void 0===s.chunks[r])throw Error("doXHR failed!");return s.chunks[r]}),(i||!t)&&(a=t=1,a=t=this.getter(0).length,T("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=t,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a={isDevice:!1,url:n},u=rj.createFile(r,e,a,t,o);a.contents?u.contents=a.contents:a.url&&(u.contents=null,u.url=a.url),Object.defineProperties(u,{usedBytes:{get:function(){return this.contents.length}}});var a,s={};
1return Object.keys(u.stream_ops).forEach(function(r){var e=u.stream_ops[r];s[r]=function(){return rj.forceLoadFile(u),e.apply(null,arguments)}}),s.read=function(r,e,n,t,o){rj.forceLoadFile(u);var i=r.node.contents;if(o>=i.length)return 0;var a=Math.min(i.length-o,t);if(i.slice)for(var s=0;s<a;s++)e[n+s]=i[o+s];else for(var s=0;s<a;s++)e[n+s]=i.get(o+s);return a},u.stream_ops=s,u},createPreloadedFile:function(e,n,t,o,i,a,s,c,f,l){Browser.init();var d,m,p,h,$,v,w=n?rN.resolve(rx.join2(e,n)):e,g=v="cp "+w;function y(t){function u(r){l&&l(),c||rj.createDataFile(e,n,r,o,i,f),a&&a(),ri(g)}var d=!1;r.preloadPlugins.forEach(function(r){!d&&r.canHandle(w)&&(r.handle(t,w,u,function(){s&&s(),ri(g)}),d=!0)}),d||u(t)}(ro(g),"string"==typeof t)?(d=t,m=function(r){y(r)},p=s,$=h="al "+d,u(d,function(r){M(r,'Loading data file "'+d+'" failed (no arrayBuffer).'),m(new Uint8Array(r)),$&&ri($)},function(r){if(p)p();else throw'Loading data file "'+d+'" failed.'}),$&&ro($)):y(t)},indexedDB:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:function(){return"EM_FS_"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function(r,e,n){e=e||function(){},n=n||function(){};var t=rj.indexedDB();try{var o=t.open(rj.DB_NAME(),rj.DB_VERSION)}catch(i){return n(i)}o.onupgradeneeded=function(){T("creating db"),o.result.createObjectStore(rj.DB_STORE_NAME)},o.onsuccess=function(){var t=o.result.transaction([rj.DB_STORE_NAME],"readwrite"),i=t.objectStore(rj.DB_STORE_NAME),a=0,u=0,s=r.length;function c(){0==u?e():n()}r.forEach(function(r){var e=i.put(rj.analyzePath(r).object.contents,r);e.onsuccess=function(){++a+u==s&&c()},e.onerror=function(){a+ ++u==s&&c()}}),t.onerror=n},o.onerror=n},loadFilesFromDB:function(r,e,n){e=e||function(){},n=n||function(){};var t=rj.indexedDB();try{var o=t.open(rj.DB_NAME(),rj.DB_VERSION)}catch(i){return n(i)}o.onupgradeneeded=n,o.onsuccess=function(){var t=o.result;try{var i=t.transaction([rj.DB_STORE_NAME],"readonly")}catch(a){n(a);return}var u=i.objectStore(rj.DB_STORE_NAME),s=0,c=0,f=r.length;function l(){0==c?e():n()}r.forEach(function(r){var e=u.get(r);e.onsuccess=function(){rj.analyzePath(r).exists&&rj.unlink(r),rj.createDataFile(rx.dirname(r),rx.basename(r),e.result,!0,!0,!0),++s+c==f&&l()},e.onerror=function(){s+ ++c==f&&l()}}),i.onerror=n},o.onerror=n}},rz={mappings:{},DEFAULT_POLLMASK:5,calculateAt:function(r,e,n){if("/"===e[0])return e;if(-100===r)t=rj.cwd();else{var t,o=rj.getStream(r);if(!o)throw new rj.ErrnoError(8);t=o.path}if(0==e.length){if(!n)throw new rj.ErrnoError(44);return t}return rx.join2(t,e)},doStat:function(r,e,n){try{var t=r(e)}catch(o){if(o&&o.node&&rx.normalize(e)!==rx.normalize(rj.getPath(o.node)))return -54;throw o}return $[n>>2]=t.dev,$[n+4>>2]=0,$[n+8>>2]=t.ino,$[n+12>>2]=t.mode,$[n+16>>2]=t.nlink,$[n+20>>2]=t.uid,$[n+24>>2]=t.gid,$[n+28>>2]=t.rdev,$[n+32>>2]=0,k=[t.size>>>0,+Math.abs(E=t.size)>=1?E>0?(0|Math.min(+Math.floor(E/4294967296),4294967295))>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0],$[n+40>>2]=k[0],$[n+44>>2]=k[1],$[n+48>>2]=4096,$[n+52>>2]=t.blocks,$[n+56>>2]=t.atime.getTime()/1e3|0,$[n+60>>2]=0,$[n+64>>2]=t.mtime.getTime()/1e3|0,$[n+68>>2]=0,$[n+72>>2]=t.ctime.getTime()/1e3|0,$[n+76>>2]=0,k=[t.ino>>>0,+Math.abs(E=t.ino)>=1?E>0?(0|Math.min(+Math.floor(E/4294967296),4294967295))>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0],$[n+80>>2]=k[0],$[n+84>>2]=k[1],0},doMsync:function(r,e,n,t,o){var i=m.slice(r,r+n);rj.msync(e,i,o,n,t)},doMkdir:function(r,e){return"/"===(r=rx.normalize(r))[r.length-1]&&(r=r.substr(0,r.length-1)),rj.mkdir(r,e,0),0},doMknod:function(r,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return -28}return rj.mknod(r,e,n),0},doReadlink:function(r,e,n){if(n<=0)return -28;var t=rj.readlink(r),o=Math.min(n,z(t)),i=d[e+o];return j(t,e,n+1),d[e+o]=i,o},doAccess:function(r,e){if(-8&e)return -28;if(!(n=rj.lookupPath(r,{follow:!0}).node))return -44;var n,t="";return(4&e&&(t+="r"),2&e&&(t+="w"),1&e&&(t+="x"),t&&rj.nodePermissions(n,t))?-2:0},doDup:function(r,e,n){var t=rj.getStream(n);return t&&rj.close(t),rj.open(r,e,0,n,n).fd},doReadv:function(r,e,n,t){for(var o=0,i=0;i<n;i++){var a=$[e+8*i>>2],u=$[e+(8*i+4)>>2],s=rj.read(r,d,a,u,t);if(s<0)return -1;if(o+=s,s<u)break}return o},doWritev:function(r,e,n,t){for(var o=0,i=0;i<n;i++){var a=$[e+8*i>>2],u=$[e+(8*i+4)>>2],s=rj.write(r,d,a,u,t);if(s<0)return -1;o+=s}return o},varargs:void 0,get:function(){return rz.varargs+=4,$[rz.varargs-4>>2]},getStr:function(r){return B(r)},getStreamFromFD:function(r){var e=rj.getStream(r);if(!e)throw new rj.ErrnoError(8);return e},get64:function(r,e){return r}};function rW(r){A(r)}function rI(r){return r%4==0&&(r%100!=0||r%400==0)}function rH(r,e){for(var n=0,t=0;t<=e;n+=r[t++]);return n}var rL=[31,29,31,30,31,30,31,31,30,31,30,31],rY=[31,28,31,30,31,30,31,31,30,31,30,31];function rU(r,e){for(var n=new Date(r.getTime());e>0;){var t=rI(n.getFullYear()),o=n.getMonth(),i=(t?rL:rY)[o];if(e>i-n.getDate())e-=i-n.getDate()+1,n.setDate(1),o<11?n.setMonth(o+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1));else{n.setDate(n.getDate()+e);break}}return n}r0=r.InternalError=rE(Error,"InternalError"),function(){for(var r=Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);
1r2=r}(),r1=r.BindingError=rE(Error,"BindingError"),r.count_emval_handles=function r(){for(var e=0,n=5;n<rP.length;++n)void 0!==rP[n]&&++e;return e},r.get_first_emval=function r(){for(var e=5;e<rP.length;++e)if(void 0!==rP[e])return rP[e];return null},rA=r.UnboundTypeError=rE(Error,"UnboundTypeError");var rV=function(r,e,n,t){r||(r=this),this.parent=r,this.mount=r.mount,this.mounted=null,this.id=rj.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=t};function rq(r,e,n){var t=n>0?n:z(r)+1,o=Array(t),i=O(r,o,0,o.length);return e&&(o.length=i),o}Object.defineProperties(rV.prototype,{read:{get:function(){return(365&this.mode)==365},set:function(r){r?this.mode|=365:this.mode&=-366}},write:{get:function(){return(146&this.mode)==146},set:function(r){r?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return rj.isDir(this.mode)}},isDevice:{get:function(){return rj.isChrdev(this.mode)}}}),rj.FSNode=rV,rj.staticInit();var rG={a:function(r){return r9(r+16)+16},b:function(r,e,n){throw new rd(r).init(e,n),rm++,r},o:function(r){var e=rp[r];delete rp[r];var n=e.elements,t=n.length,o=n.map(function(r){return r.getterReturnType}).concat(n.map(function(r){return r.setterArgumentType})),i=e.rawConstructor,a=e.rawDestructor;rk([r],o,function(r){return n.forEach(function(e,n){var o=r[n],i=e.getter,a=e.getterContext,u=r[n+t],s=e.setter,c=e.setterContext;e.read=function(r){return o.fromWireType(i(a,r))},e.write=function(r,e){var n=[];s(c,r,u.toWireType(n,e)),rh(n)}}),[{name:e.name,fromWireType:function(r){for(var e=Array(t),o=0;o<t;++o)e[o]=n[o].read(r);return a(r),e},toWireType:function(r,o){if(t!==o.length)throw TypeError("Incorrect number of tuple elements for "+e.name+": expected="+t+", actual="+o.length);for(var u=i(),s=0;s<t;++s)n[s].write(u,o[s]);return null!==r&&r.push(a,u),u},argPackAdvance:8,readValueFromPointer:r$,destructorFunction:a}]})},r:function(r,e,n,t,o){},m:function(r,e,n,t,o){var i=rb(n);e=r4(e),rF(r,{name:e,fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:o},argPackAdvance:8,readValueFromPointer:function(r){var t;if(1===n)t=d;else if(2===n)t=p;else if(4===n)t=$;else throw TypeError("Unknown boolean type size: "+e);return this.fromWireType(t[r>>i])},destructorFunction:null})},B:function(r,e){e=r4(e),rF(r,{name:e,fromWireType:function(r){var e,n=rS.toValue(r);return(e=r)>4&&0==--rP[e].refcount&&(rP[e]=void 0,rD.push(e)),n},toWireType:function(r,e){return rS.toHandle(e)},argPackAdvance:8,readValueFromPointer:r$,destructorFunction:null})},w:function(r,e,n,t){var o=rb(n);function i(){}e=r4(e),i.values={},rF(r,{name:e,constructor:i,fromWireType:function(r){return this.constructor.values[r]},toWireType:function(r,e){return e.value},argPackAdvance:8,readValueFromPointer:function(r,e,n){switch(e){case 0:return function(r){var e=n?d:m;return this.fromWireType(e[r])};case 1:return function(r){var e=n?p:h;return this.fromWireType(e[r>>1])};case 2:return function(r){var e=n?$:v;return this.fromWireType(e[r>>2])};default:throw TypeError("Unknown integer type: "+r)}}(e,o,t),destructorFunction:null}),r6(e,i)},g:function(r,e,n){var t,o,i=(void 0===(o=rw[t=r])&&r3("enum has unknown type "+r7(t)),o);e=r4(e);var a=i.constructor,u=Object.create(i.constructor.prototype,{value:{value:n},constructor:{value:r_(i.name+"_"+e,function(){})}});a.values[n]=u,a[e]=u},k:function(r,e,n){var t=rb(n);e=r4(e),rF(r,{name:e,fromWireType:function(r){return r},toWireType:function(r,e){if("number"!=typeof e&&"boolean"!=typeof e)throw TypeError('Cannot convert "'+rT(e)+'" to '+this.name);return e},argPackAdvance:8,readValueFromPointer:function(r,e){switch(e){case 2:return function(r){return this.fromWireType(w[r>>2])};case 3:return function(r){return this.fromWireType(g[r>>3])};default:throw TypeError("Unknown float type: "+r)}}(e,t),destructorFunction:null})},f:function(e,n,t,o,i,a){var u=function(r,e){for(var n=[],t=0;t<r;t++)n.push($[(e>>2)+t]);return n}(n,t);e=r4(e),i=rC(o,i),r6(e,function(){!function(r,e){var n=[],t={};function o(r){if(!t[r]&&!rw[r]){if(rg[r]){rg[r].forEach(o);return}n.push(r),t[r]=!0}}throw e.forEach(o),new rA(r+": "+n.map(r7).join([", "]))}("Cannot call "+e+" due to unbound types",u)},n-1),rk([],u,function(t){var o,u,s,c=[t[0],null].concat(t.slice(1));return o=e,u=function(r,e,n,t,o){var i=e.length;i<2&&r3("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==e[1]&&!1,u=!1,s=1;s<e.length;++s)if(null!==e[s]&&void 0===e[s].destructorFunction){u=!0;break}for(var c="void"!==e[0].name,f="",l="",s=0;s<i-2;++s)f+=(0!==s?", ":"")+"arg"+s,l+=(0!==s?", ":"")+"arg"+s+"Wired";var d="return function "+ry(r)+"("+f+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+r+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";u&&(d+="var destructors = [];\n");var m=u?"destructors":"null",p=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],h=[r3,t,o,rh,e[0],e[1]];a&&(d+="var thisWired = classParam.toWireType("+m+", this);\n");for(var s=0;s<i-2;++s)d+="var arg"+s+"Wired = argType"+s+".toWireType("+m+", arg"+s+"); // "+e[s+2].name+"\n",p.push("argType"+s),h.push(e[s+2]);if(a&&(l="thisWired"+(l.length>0?", ":"")+l),d+=(c?"var rv = ":"")+"invoker(fn"+(l.length>0?", ":"")+l+");\n",u)d+="runDestructors(destructors);\n";else for(var s=a?1:2;s<e.length;++s){var $=1===s?"thisWired":"arg"+(s-2)+"Wired";null!==e[s].destructorFunction&&(d+=$+"_dtor("+$+"); // "+e[s].name+"\n",p.push($+"_dtor"),h.push(e[s].destructorFunction))}return c&&(d+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),d+="}\n",p.push(d),(function(r,e){if(!(r instanceof Function))throw TypeError("new_ called with constructor type "+typeof r+" which is not a function");var n=r_(r.name||"unknownFunctionName",function(){});n.prototype=r.prototype;var t=new n,o=r.apply(t,e);return o instanceof Object?o:t})(Function,p).apply(null,h)}(e,c,null,i,a),s=n-1,r.hasOwnProperty(o)||r8("Replacing nonexistant public symbol"),void 0!==r[o].overloadTable&&void 0!==s?r[o].overloadTable[s]=u:(r[o]=u,r[o].argCount=s),[]})},e:function(r,e,n,t,o){e=r4(e),-1===o&&(o=4294967295);var i=rb(n),a=function(r){return r};if(0===t){var u=32-8*n;a=function(r){return r<<u>>>u}}var s=e.includes("unsigned");rF(r,{name:e,fromWireType:a,toWireType:function(r,n){if("number"!=typeof n&&"boolean"!=typeof n)throw TypeError('Cannot convert "'+rT(n)+'" to '+this.name);if(n<t||n>o)throw TypeError('Passing a number "'+rT(n)+'" from JS side to C/C++ side to an argument of type "'+e+'", which is outside the valid range ['+t+", "+o+"]!");return s?n>>>0:0|n},argPackAdvance:8,readValueFromPointer:function(r,e,n){switch(e){case 0:return n?function(r){return d[r]}:function(r){return m[r]};case 1:return n?function(r){return p[r>>1]}:function(r){return h[r>>1]};case 2:return n?function(r){return $[r>>2]}:function(r){return v[r>>2]};default:throw TypeError("Unknown integer type: "+r)}}(e,i,0!==t),destructorFunction:null})},d:function(r,e,n){var t=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array
1][e];function o(r){var e=v,n=e[r>>=2],o=e[r+1];return new t(l,o,n)}n=r4(n),rF(r,{name:n,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},l:function(r,e){var n="std::string"===(e=r4(e));rF(r,{name:e,fromWireType:function(r){var e,t=v[r>>2];if(n)for(var o=r+4,i=0;i<=t;++i){var a=r+4+i;if(i==t||0==m[a]){var u=a-o,s=B(o,u);void 0===e?e=s:(e+="\0",e+=s),o=a+1}}else{for(var c=Array(t),i=0;i<t;++i)c[i]=String.fromCharCode(m[r+4+i]);e=c.join("")}return ee(r),e},toWireType:function(r,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var t="string"==typeof e;t||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||r3("Cannot pass non-string to std::string");var o=(n&&t?function(){return z(e)}:function(){return e.length})(),i=r9(4+o+1);if(v[i>>2]=o,n&&t)j(e,i+4,o+1);else if(t)for(var a=0;a<o;++a){var u=e.charCodeAt(a);u>255&&(ee(i),r3("String has UTF-16 code units that do not fit in 8 bits")),m[i+4+a]=u}else for(var a=0;a<o;++a)m[i+4+a]=e[a];return null!==r&&r.push(ee,i),i},argPackAdvance:8,readValueFromPointer:r$,destructorFunction:function(r){ee(r)}})},i:function(r,e,n){var t,o,i,a,u;n=r4(n),2===e?(t=I,o=H,a=L,i=function(){return h},u=1):4===e&&(t=Y,o=U,a=V,i=function(){return v},u=2),rF(r,{name:n,fromWireType:function(r){for(var n,o=v[r>>2],a=i(),s=r+4,c=0;c<=o;++c){var f=r+4+c*e;if(c==o||0==a[f>>u]){var l=f-s,d=t(s,l);void 0===n?n=d:(n+="\0",n+=d),s=f+e}}return ee(r),n},toWireType:function(r,t){"string"!=typeof t&&r3("Cannot pass non-string to C++ string type "+n);var i=a(t),s=r9(4+i+e);return v[s>>2]=i>>u,o(t,s+4,i+e),null!==r&&r.push(ee,s),s},argPackAdvance:8,readValueFromPointer:r$,destructorFunction:function(r){ee(r)}})},p:function(r,e,n,t,o,i){rp[r]={name:r4(e),rawConstructor:rC(n,t),rawDestructor:rC(o,i),elements:[]}},c:function(r,e,n,t,o,i,a,u,s){rp[r].elements.push({getterReturnType:e,getter:rC(n,t),getterContext:o,setterArgumentType:i,setter:rC(a,u),setterContext:s})},n:function(r,e){e=r4(e),rF(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:function(){},toWireType:function(r,e){}})},j:function(){ra("")},t:function(r,e,n){m.copyWithin(r,e,e+n)},h:function(r){var e=m.length;if((r>>>=0)>2147483648)return!1;for(var n=1;n<=4;n*=2){var t=e*(1+.2/n);t=Math.min(t,r+100663296);var o=Math.min(2147483648,G(Math.max(r,t),65536));if(r5(o))return!0}return!1},x:function(r,e){var n=0;return rM().forEach(function(t,o){var i=e+n;$[r+4*o>>2]=i,function(r,e,n){for(var t=0;t<r.length;++t)d[e++>>0]=r.charCodeAt(t);d[e>>0]=0}(t,i),n+=t.length+1}),0},y:function(r,e){var n=rM();$[r>>2]=n.length;var t=0;return n.forEach(function(r){t+=r.length+1}),$[e>>2]=t,0},A:function(r){try{var e=rz.getStreamFromFD(r);return rj.close(e),0}catch(n){return void 0!==rj&&n instanceof rj.ErrnoError||ra(n),n.errno}},u:function(r,e,n,t){try{var o=rz.getStreamFromFD(r),i=rz.doReadv(o,e,n);return $[t>>2]=i,0}catch(a){return void 0!==rj&&a instanceof rj.ErrnoError||ra(a),a.errno}},q:function(r,e,n,t,o){try{var i=rz.getStreamFromFD(r),a=4294967296*n+(e>>>0);if(a<=-9007199254740992||a>=9007199254740992)return -61;return rj.llseek(i,a,t),k=[i.position>>>0,(E=i.position,+Math.abs(E)>=1?E>0?(0|Math.min(+Math.floor(E/4294967296),4294967295))>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)],$[o>>2]=k[0],$[o+4>>2]=k[1],i.getdents&&0===a&&0===t&&(i.getdents=null),0}catch(u){return void 0!==rj&&u instanceof rj.ErrnoError||ra(u),u.errno}},z:function(r,e,n,t){try{var o=rz.getStreamFromFD(r),i=rz.doWritev(o,e,n);return $[t>>2]=i,0}catch(a){return void 0!==rj&&a instanceof rj.ErrnoError||ra(a),a.errno}},s:rW,v:function(r,e,n,t){return function(r,e,n,t){var o=$[t+40>>2],i={tm_sec:$[t>>2],tm_min:$[t+4>>2],tm_hour:$[t+8>>2],tm_mday:$[t+12>>2],tm_mon:$[t+16>>2],tm_year:$[t+20>>2],tm_wday:$[t+24>>2],tm_yday:$[t+28>>2],tm_isdst:$[t+32>>2],tm_gmtoff:$[t+36>>2],tm_zone:o?B(o):""},a=B(n),u={"%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 s in u)a=a.replace(RegExp(s,"g"),u[s]);
1var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=["January","February","March","April","May","June","July","August","September","October","November","December"];function l(r,e,n){for(var t="number"==typeof r?r.toString():r||"";t.length<e;)t=n[0]+t;return t}function d(r,e){return l(r,e,"0")}function m(r,e){var n;function t(r){return r<0?-1:r>0?1:0}return 0===(n=t(r.getFullYear()-e.getFullYear()))&&0===(n=t(r.getMonth()-e.getMonth()))&&(n=t(r.getDate()-e.getDate())),n}function p(r){switch(r.getDay()){case 0:return new Date(r.getFullYear()-1,11,29);case 1:return r;case 2:return new Date(r.getFullYear(),0,3);case 3:return new Date(r.getFullYear(),0,2);case 4:return new Date(r.getFullYear(),0,1);case 5:return new Date(r.getFullYear()-1,11,31);case 6:return new Date(r.getFullYear()-1,11,30)}}function h(r){var e=rU(new Date(r.tm_year+1900,0,1),r.tm_yday),n=new Date(e.getFullYear(),0,4),t=new Date(e.getFullYear()+1,0,4),o=p(n),i=p(t);return 0>=m(o,e)?0>=m(i,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var v={"%a":function(r){return c[r.tm_wday].substring(0,3)},"%A":function(r){return c[r.tm_wday]},"%b":function(r){return f[r.tm_mon].substring(0,3)},"%B":function(r){return f[r.tm_mon]},"%C":function(r){return d((r.tm_year+1900)/100|0,2)},"%d":function(r){return d(r.tm_mday,2)},"%e":function(r){return l(r.tm_mday,2," ")},"%g":function(r){return h(r).toString().substring(2)},"%G":function(r){return h(r)},"%H":function(r){return d(r.tm_hour,2)},"%I":function(r){var e=r.tm_hour;return 0==e?e=12:e>12&&(e-=12),d(e,2)},"%j":function(r){return d(r.tm_mday+rH(rI(r.tm_year+1900)?rL:rY,r.tm_mon-1),3)},"%m":function(r){return d(r.tm_mon+1,2)},"%M":function(r){return d(r.tm_min,2)},"%n":function(){return"\n"},"%p":function(r){return r.tm_hour>=0&&r.tm_hour<12?"AM":"PM"},"%S":function(r){return d(r.tm_sec,2)},"%t":function(){return" "},"%u":function(r){return r.tm_wday||7},"%U":function(r){var e=new Date(r.tm_year+1900,0,1),n=0===e.getDay()?e:rU(e,7-e.getDay()),t=new Date(r.tm_year+1900,r.tm_mon,r.tm_mday);if(0>m(n,t)){var o=rH(rI(t.getFullYear())?rL:rY,t.getMonth()-1)-31;return d(Math.ceil((31-n.getDate()+o+t.getDate())/7),2)}return 0===m(n,e)?"01":"00"},"%V":function(r){var e,n=new Date(r.tm_year+1900,0,4),t=new Date(r.tm_year+1901,0,4),o=p(n),i=p(t),a=rU(new Date(r.tm_year+1900,0,1),r.tm_yday);return 0>m(a,o)?"53":0>=m(i,a)?"01":d(Math.ceil((o.getFullYear()<r.tm_year+1900?r.tm_yday+32-o.getDate():r.tm_yday+1-o.getDate())/7),2)},"%w":function(r){return r.tm_wday},"%W":function(r){var e=new Date(r.tm_year,0,1),n=1===e.getDay()?e:rU(e,0===e.getDay()?1:7-e.getDay()+1),t=new Date(r.tm_year+1900,r.tm_mon,r.tm_mday);if(0>m(n,t)){var o=rH(rI(t.getFullYear())?rL:rY,t.getMonth()-1)-31;return d(Math.ceil((31-n.getDate()+o+t.getDate())/7),2)}return 0===m(n,e)?"01":"00"},"%y":function(r){return(r.tm_year+1900).toString().substring(2)},"%Y":function(r){return r.tm_year+1900},"%z":function(r){var e,n=r.tm_gmtoff;return(n>=0?"+":"-")+String("0000"+(n=(n=Math.abs(n)/60)/60*100+n%60)).slice(-4)},"%Z":function(r){return r.tm_zone},"%%":function(){return"%"}};for(var s in v)a.includes(s)&&(a=a.replace(RegExp(s,"g"),v[s](i)));var w=rq(a,!1);return w.length>e?0:(q(w,r),w.length-1)}(r,e,n,t)}};!function(){var e={a:rG};function n(e,n){var t,o=e.exports;r.asm=o,X((f=r.asm.C).buffer),y=r.asm.E,t=r.asm.D,K.unshift(t),ri("wasm-instantiate")}function t(r){n(r.instance)}function i(r){return(c||"function"!=typeof fetch?Promise.resolve().then(function(){return rs(_)}):fetch(_,{credentials:"same-origin"}).then(function(r){if(!r.ok)throw"failed to load wasm binary file at '"+_+"'";return r.arrayBuffer()}).catch(function(){return rs(_)})).then(function(r){return WebAssembly.instantiate(r,e)}).then(function(r){return r}).then(r,function(r){C("failed to asynchronously prepare wasm: "+r),ra(r)})}if(ro("wasm-instantiate"),r.instantiateWasm)try{return r.instantiateWasm(e,n)}catch(a){return C("Module.instantiateWasm callback failed with error: "+a),!1}return(c||"function"!=typeof WebAssembly.instantiateStreaming||ru(_)||"function"!=typeof fetch?i(t):fetch(_,{credentials:"same-origin"}).then(function(r){return WebAssembly.instantiateStreaming(r,e).then(t,function(r){return C("wasm streaming compile failed: "+r),C("falling back to ArrayBuffer instantiation"),i(t)})}
1)).catch(o),{}}();var rX=r.___wasm_call_ctors=function(){return(rX=r.___wasm_call_ctors=r.asm.D).apply(null,arguments)},rJ=r.___getTypeName=function(){return(rJ=r.___getTypeName=r.asm.F).apply(null,arguments)},rK=r.___embind_register_native_and_builtin_types=function(){return(rK=r.___embind_register_native_and_builtin_types=r.asm.G).apply(null,arguments)},r9=r._malloc=function(){return(r9=r._malloc=r.asm.H).apply(null,arguments)},rZ=r.stackSave=function(){return(rZ=r.stackSave=r.asm.I).apply(null,arguments)},rQ=r.stackRestore=function(){return(rQ=r.stackRestore=r.asm.J).apply(null,arguments)},er=r.stackAlloc=function(){return(er=r.stackAlloc=r.asm.K).apply(null,arguments)},ee=r._free=function(){return(ee=r._free=r.asm.L).apply(null,arguments)},en=r.dynCall_jiji=function(){return(en=r.dynCall_jiji=r.asm.M).apply(null,arguments)},et=r.dynCall_iiiiij=function(){return(et=r.dynCall_iiiiij=r.asm.N).apply(null,arguments)},eo=r.dynCall_iiiiijj=function(){return(eo=r.dynCall_iiiiijj=r.asm.O).apply(null,arguments)},ei=r.dynCall_iiiiiijj=function(){return(ei=r.dynCall_iiiiiijj=r.asm.P).apply(null,arguments)},ea=r.dynCall_viijii=function(){return(ea=r.dynCall_viijii=r.asm.Q).apply(null,arguments)};function eu(e){if(e=e||D,!(re>0))(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)Q(r.preRun.shift());rc(J)})(),!(re>0)&&(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),t()},1)):t());function t(){!b&&(b=!0,r.calledRun=!0,R||(r.noFSInit||rj.init.initialized||rj.init(),rj.ignorePermissions=!1,rB.init(),rc(K),n(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)rr(r.postRun.shift());rc(Z)}()))}}if(r.ccall=function(e,n,t,o,i){var a,u,s={string:function(r){var e=0;if(null!=r&&0!==r){var n=(r.length<<2)+1;e=er(n),j(r,e,n)}return e},array:function(r){var e=er(r.length);return q(r,e),e}},c=(u=r["_"+(a=e)],M(u,"Cannot call unknown function "+a+", make sure it is exported"),u),f=[],l=0;if(o)for(var d=0;d<o.length;d++){var m=s[t[d]];m?(0===l&&(l=rZ()),f[d]=m(o[d])):f[d]=o[d]}var p,h,$=c.apply(null,f);return p=$,0!==l&&rQ(l),h=p,"string"===n?B(h):"boolean"===n?Boolean(h):h},rt=function r(){b||eu(),b||(rt=r)},r.run=eu,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return eu(),r.ready});e.default=o}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.