@hpcc-js/wasm
Version:
hpcc-js - WASM Libraries
1 lines • 740 kB
JavaScript
var oo=ArrayBuffer,C=Uint8Array,Vr=Uint16Array,no=Int16Array,qr=Int32Array,ct=function(d,l,f){if(C.prototype.slice)return C.prototype.slice.call(d,l,f);(l==null||l<0)&&(l=0),(f==null||f>d.length)&&(f=d.length);var s=new C(f-l);return s.set(d.subarray(l,f)),s},Qr=function(d,l,f,s){if(C.prototype.fill)return C.prototype.fill.call(d,l,f,s);for((f==null||f<0)&&(f=0),(s==null||s>d.length)&&(s=d.length);f<s;++f)d[f]=l;return d},ao=function(d,l,f,s){if(C.prototype.copyWithin)return C.prototype.copyWithin.call(d,l,f,s);for((f==null||f<0)&&(f=0),(s==null||s>d.length)&&(s=d.length);f<s;)d[l++]=d[f++]},io=["invalid zstd data","window size too large (>2046MB)","invalid block type","FSE accuracy too high","match distance too far back","unexpected EOF"],V=function(d,l,f){var s=new Error(l||io[d]);if(s.code=d,Error.captureStackTrace&&Error.captureStackTrace(s,V),!f)throw s;return s},Ht=function(d,l,f){for(var s=0,p=0;s<f;++s)p|=d[l++]<<(s<<3);return p},so=function(d,l){return(d[l]|d[l+1]<<8|d[l+2]<<16|d[l+3]<<24)>>>0},uo=function(d,l){var f=d[0]|d[1]<<8|d[2]<<16;if(f==3126568&&d[3]==253){var s=d[4],p=s>>5&1,y=s>>2&1,_=s&3,v=s>>6;s&8&&V(0);var b=6-p,K=_==3?4:_,q=Ht(d,b,K);b+=K;var T=v?1<<v:p,Q=Ht(d,b,T)+(v==1&&256),H=Q;if(!p){var J=1<<10+(d[5]>>3);H=J+(J>>3)*(d[5]&7)}H>2145386496&&V(1);var L=new C((l==1?Q||H:l?0:H)+12);return L[0]=1,L[4]=4,L[8]=8,{b:b+T,y:0,l:0,d:q,w:l&&l!=1?l:L.subarray(12),e:H,o:new qr(L.buffer,0,3),u:Q,c:y,m:Math.min(131072,H)}}else if((f>>4|d[3]<<20)==25481893)return so(d,4)+8;V(0)},Lr=function(d){for(var l=0;1<<l<=d;++l);return l-1},Ur=function(d,l,f){var s=(l<<3)+4,p=(d[l]&15)+5;p>f&&V(3);for(var y=1<<p,_=y,v=-1,b=-1,K=-1,q=y,T=new oo(512+(y<<2)),Q=new no(T,0,256),H=new Vr(T,0,256),J=new Vr(T,512,y),L=512+(y<<1),Z=new C(T,L,y),er=new C(T,L+y);v<255&&_>0;){var X=Lr(_+1),W=s>>3,cr=(1<<X+1)-1,$=(d[W]|d[W+1]<<8|d[W+2]<<16)>>(s&7)&cr,m=(1<<X)-1,U=cr-_-1,k=$&m;if(k<U?(s+=X,$=k):(s+=X+1,$>m&&($-=U)),Q[++v]=--$,$==-1?(_+=$,Z[--q]=v):_-=$,!$)do{var ar=s>>3;b=(d[ar]|d[ar+1]<<8)>>(s&7)&3,s+=2,v+=b}while(b==3)}(v>255||_)&&V(0);for(var B=0,M=(y>>1)+(y>>3)+3,ir=y-1,or=0;or<=v;++or){var j=Q[or];if(j<1){H[or]=-j;continue}for(K=0;K<j;++K){Z[B]=or;do B=B+M&ir;while(B>=q)}}for(B&&V(0),K=0;K<y;++K){var F=H[Z[K]]++,A=er[K]=p-Lr(F);J[K]=(F<<A)-y}return[s+7>>3,{b:p,s:Z,n:er,t:J}]},co=function(d,l){var f=0,s=-1,p=new C(292),y=d[l],_=p.subarray(0,256),v=p.subarray(256,268),b=new Vr(p.buffer,268);if(y<128){var K=Ur(d,l+1,6),q=K[0],T=K[1];l+=y;var Q=q<<3,H=d[l];H||V(0);for(var J=0,L=0,Z=T.b,er=Z,X=(++l<<3)-8+Lr(H);X-=Z,!(X<Q);){var W=X>>3;if(J+=(d[W]|d[W+1]<<8)>>(X&7)&(1<<Z)-1,_[++s]=T.s[J],X-=er,X<Q)break;W=X>>3,L+=(d[W]|d[W+1]<<8)>>(X&7)&(1<<er)-1,_[++s]=T.s[L],Z=T.n[J],J=T.t[J],er=T.n[L],L=T.t[L]}++s>255&&V(0)}else{for(s=y-127;f<s;f+=2){var cr=d[++l];_[f]=cr>>4,_[f+1]=cr&15}++l}var $=0;for(f=0;f<s;++f){var m=_[f];m>11&&V(0),$+=m&&1<<m-1}var U=Lr($)+1,k=1<<U,ar=k-$;for(ar&ar-1&&V(0),_[s++]=Lr(ar)+1,f=0;f<s;++f){var m=_[f];++v[_[f]=m&&U+1-m]}var B=new C(k<<1),M=B.subarray(0,k),ir=B.subarray(k);for(b[U]=0,f=U;f>0;--f){var or=b[f];Qr(ir,f,or,b[f-1]=or+v[f]*(1<<U-f))}for(b[0]!=k&&V(0),f=0;f<s;++f){var j=_[f];if(j){var F=b[j];Qr(M,f,F,b[j]=F+(1<<U-j))}}return[l,{n:ir,b:U,s:M}]},lo=Ur(new C([81,16,99,140,49,198,24,99,12,33,196,24,99,102,102,134,70,146,4]),0,6)[1],fo=Ur(new C([33,20,196,24,99,140,33,132,16,66,8,33,132,16,66,8,33,68,68,68,68,68,68,68,68,36,9]),0,6)[1],po=Ur(new C([32,132,16,66,102,70,68,68,68,68,36,73,2]),0,5)[1],Ut=function(d,l){for(var f=d.length,s=new qr(f),p=0;p<f;++p)s[p]=l,l+=1<<d[p];return s},ft=new C(new qr([0,0,0,0,16843009,50528770,134678020,202050057,269422093]).buffer,0,36),ho=Ut(ft,0),pt=new C(new qr([0,0,0,0,0,0,0,0,16843009,50528770,117769220,185207048,252579084,16]).buffer,0,53),yo=Ut(pt,3),Tr=function(d,l,f){var s=d.length,p=l.length,y=d[s-1],_=(1<<f.b)-1,v=-f.b;y||V(0);for(var b=0,K=f.b,q=(s<<3)-8+Lr(y)-K,T=-1;q>v&&T<p;){var Q=q>>3,H=(d[Q]|d[Q+1]<<8|d[Q+2]<<16)>>(q&7);b=(b<<K|H)&_,l[++T]=f.s[b],q-=K=f.n[b]}(q!=v||T+1!=p)&&V(0)},_o=function(d,l,f){var s=6,p=l.length,y=p+3>>2,_=y<<1,v=y+_;Tr(d.subarray(s,s+=d[0]|d[1]<<8),l.subarray(0,y),f),Tr(d.subarray(s,s+=d[2]|d[3]<<8),l.subarray(y,_),f),Tr(d.subarray(s,s+=d[4]|d[5]<<8),l.subarray(_,v),f),Tr(d.subarray(s),l.subarray(v),f)},Eo=function(d,l,f){var s,p=l.b,y=d[p],_=y>>1&3;l.l=y&1;var v=y>>3|d[p+1]<<5|d[p+2]<<13,b=(p+=3)+v;if(_==1)return p>=d.length?void 0:(l.b=p+1,f?(Qr(f,d[p],l.y,l.y+=v),f):Qr(new C(v),d[p]));if(!(b>d.length)){if(_==0)return l.b=b,f?(f.set(d.subarray(p,b),l.y),l.y+=v,f):ct(d,p,b);if(_==2){var K=d[p],q=K&3,T=K>>2&3,Q=K>>4,H=0,J=0;q<2?T&1?Q|=d[++p]<<4|(T&2&&d[++p]<<12):Q=K>>3:(J=T,T<2?(Q|=(d[++p]&63)<<4,H=d[p]>>6|d[++p]<<2):T==2?(Q|=d[++p]<<4|(d[++p]&3)<<12,H=d[p]>>2|d[++p]<<6):(Q|=d[++p]<<4|(d[++p]&63)<<12,H=d[p]>>6|d[++p]<<2|d[++p]<<10)),++p;var L=f?f.subarray(l.y,l.y+l.m):new C(l.m),Z=L.length-Q;if(q==0)L.set(d.subarray(p,p+=Q),Z);else if(q==1)Qr(L,d[p++],Z);else{var er=l.h;if(q==2){var X=co(d,p);H+=p-(p=X[0]),l.h=er=X[1]}else er||V(0);(J?_o:Tr)(d.subarray(p,p+=H),L.subarray(Z),er)}var W=d[p++];if(W){W==255?W=(d[p++]|d[p++]<<8)+32512:W>127&&(W=W-128<<8|d[p++]);var cr=d[p++];cr&3&&V(0);for(var $=[fo,po,lo],m=2;m>-1;--m){var U=cr>>(m<<1)+2&3;if(U==1){var k=new C([0,0,d[p++]]);$[m]={s:k.subarray(2,3),n:k.subarray(0,1),t:new Vr(k.buffer,0,1),b:0}}else U==2?(s=Ur(d,p,9-(m&1)),p=s[0],$[m]=s[1]):U==3&&(l.t||V(0),$[m]=l.t[m])}var ar=l.t=$,B=ar[0],M=ar[1],ir=ar[2],or=d[b-1];or||V(0);var j=(b<<3)-8+Lr(or)-ir.b,F=j>>3,A=0,Fr=(d[F]|d[F+1]<<8)>>(j&7)&(1<<ir.b)-1;F=(j-=M.b)>>3;var xr=(d[F]|d[F+1]<<8)>>(j&7)&(1<<M.b)-1;F=(j-=B.b)>>3;var Ir=(d[F]|d[F+1]<<8)>>(j&7)&(1<<B.b)-1;for(++W;--W;){var Zr=ir.s[Fr],Wr=ir.n[Fr],jr=B.s[Ir],mr=B.n[Ir],Or=M.s[xr],wr=M.n[xr];F=(j-=Or)>>3;var Jr=1<<Or,lr=Jr+((d[F]|d[F+1]<<8|d[F+2]<<16|d[F+3]<<24)>>>(j&7)&Jr-1);F=(j-=pt[jr])>>3;var yr=yo[jr]+((d[F]|d[F+1]<<8|d[F+2]<<16)>>(j&7)&(1<<pt[jr])-1);F=(j-=ft[Zr])>>3;var _r=ho[Zr]+((d[F]|d[F+1]<<8|d[F+2]<<16)>>(j&7)&(1<<ft[Zr])-1);if(F=(j-=Wr)>>3,Fr=ir.t[Fr]+((d[F]|d[F+1]<<8)>>(j&7)&(1<<Wr)-1),F=(j-=mr)>>3,Ir=B.t[Ir]+((d[F]|d[F+1]<<8)>>(j&7)&(1<<mr)-1),F=(j-=wr)>>3,xr=M.t[xr]+((d[F]|d[F+1]<<8)>>(j&7)&(1<<wr)-1),lr>3)l.o[2]=l.o[1],l.o[1]=l.o[0],l.o[0]=lr-=3;else{var Mr=lr-(_r!=0);Mr?(lr=Mr==3?l.o[0]-1:l.o[Mr],Mr>1&&(l.o[2]=l.o[1]),l.o[1]=l.o[0],l.o[0]=lr):lr=l.o[0]}for(var m=0;m<_r;++m)L[A+m]=L[Z+m];A+=_r,Z+=_r;var Br=A-lr;if(Br<0){var Gr=-Br,Nr=l.e+Br;Gr>yr&&(Gr=yr);for(var m=0;m<Gr;++m)L[A+m]=l.w[Nr+m];A+=Gr,yr-=Gr,Br=0}for(var m=0;m<yr;++m)L[A+m]=L[Br+m];A+=yr}if(A!=Z)for(;Z<L.length;)L[A++]=L[Z++];else A=L.length;f?l.y+=A:L=ct(L,0,A)}else if(f){if(l.y+=Q,Z)for(var m=0;m<Q;++m)L[m]=L[Z+m]}else Z&&(L=ct(L,Z));return l.b=b,L}V(2)}},vo=function(d,l){if(d.length==1)return d[0];for(var f=new C(l),s=0,p=0;s<d.length;++s){var y=d[s];f.set(y,p),p+=y.length}return f};function mo(d,l){for(var f=[],s=+!l,p=0,y=0;d.length;){var _=uo(d,s||l);if(typeof _=="object"){for(s?(l=null,_.w.length==_.u&&(f.push(l=_.w),y+=_.u)):(f.push(l),_.e=0);!_.l;){var v=Eo(d,_,l);v||V(5),l?_.e=_.y:(f.push(v),y+=v.length,ao(_.w,0,v.length),_.w.set(v,_.w.length-v.length))}p=_.b+_.c*4}else p=_;d=d.subarray(p)}return vo(f,y)}var wo=(()=>{var d=typeof document<"u"?document.currentScript?.src:void 0;return function(l={}){var f,s=l,p,y,_=new Promise((r,t)=>{p=r,y=t}),v=!1,b=Object.assign({},s),K="./this.program",q=(r,t)=>{throw t},T="";function Q(r){return T+r}var H,J,L=console.log.bind(console),Z=console.error.bind(console);Object.assign(s,b),b=null;var er=s.wasmBinary,X,W=!1,cr;function $(r,t){r||_r(t)}var m,U,k,ar,B,M,ir,or;function j(){var r=X.buffer;s.HEAP8=m=new Int8Array(r),s.HEAP16=k=new Int16Array(r),s.HEAPU8=U=new Uint8Array(r),s.HEAPU16=ar=new Uint16Array(r),s.HEAP32=B=new Int32Array(r),s.HEAPU32=M=new Uint32Array(r),s.HEAPF32=ir=new Float32Array(r),s.HEAPF64=or=new Float64Array(r)}var F=[],A=[],Fr=[],xr=!1;function Ir(){Ar(F)}function Zr(){xr=!0,!s.noFSInit&&!o.initialized&&o.init(),o.ignorePermissions=!1,br.init(),Ar(A)}function Wr(){Ar(Fr)}function jr(r){A.unshift(r)}var mr=0,Or=null,wr=null;function Jr(r){return r}function lr(r){mr++}function yr(r){if(mr--,mr==0&&(Or!==null&&(clearInterval(Or),Or=null),wr)){var t=wr;wr=null,t()}}function _r(r){r="Aborted("+r+")",Z(r),W=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw y(t),t}var Mr="data:application/octet-stream;base64,",Br=r=>r.startsWith(Mr),Gr=r=>r.startsWith("file://");function Nr(){var r="graphvizlib.wasm";return Br(r)?r:Q(r)}var kr;function ht(r){if(r==kr&&er)return new Uint8Array(er);if(J)return J(r);throw"both async and sync fetching of the wasm failed"}function Wt(r){return er?Promise.resolve().then(()=>ht(r)):H(r).then(t=>new Uint8Array(t),()=>ht(r))}function yt(r,t,e){return Wt(r).then(n=>WebAssembly.instantiate(n,t)).then(e,n=>{Z(`failed to asynchronously prepare wasm: ${n}`),_r(n)})}function $t(r,t,e,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!Br(t)&&!Gr(t)&&typeof fetch=="function"?fetch(t,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,e);return i.then(n,function(u){return Z(`wasm streaming compile failed: ${u}`),Z("falling back to ArrayBuffer instantiation"),yt(t,e,n)})}):yt(t,e,n)}function Xt(){return{a:Xe}}function Ct(){function r(n,a){return z=n.exports,X=z.B,j(),jr(z.C),yr("wasm-instantiate"),z}lr("wasm-instantiate");function t(n){r(n.instance)}var e=Xt();return kr??=Nr(),$t(er,kr,e,t).catch(y),{}}var I,N,Vt={173064:(r,t)=>{var e=sr(r),n=sr(t);o.createPath("/",S.dirname(e)),o.writeFile(S.join("/",e),n)}};class qt{name="ExitStatus";constructor(t){this.message=`Program terminated with exit(${t})`,this.status=t}}var Ar=r=>{for(;r.length>0;)r.shift()(s)};class Jt{constructor(t){this.excPtr=t,this.ptr=t-24}set_type(t){M[this.ptr+4>>2]=t}get_type(){return M[this.ptr+4>>2]}set_destructor(t){M[this.ptr+8>>2]=t}get_destructor(){return M[this.ptr+8>>2]}set_caught(t){t=t?1:0,m[this.ptr+12]=t}get_caught(){return m[this.ptr+12]!=0}set_rethrown(t){t=t?1:0,m[this.ptr+13]=t}get_rethrown(){return m[this.ptr+13]!=0}init(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e)}set_adjusted_ptr(t){M[this.ptr+16>>2]=t}get_adjusted_ptr(){return M[this.ptr+16>>2]}}var _t=0,Nt=0,kt=(r,t,e)=>{var n=new Jt(r);throw n.init(t,e),_t=r,Nt++,_t},S={isAbs:r=>r.charAt(0)==="/",splitPath:r=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return t.exec(r).slice(1)},normalizeArray:(r,t)=>{for(var e=0,n=r.length-1;n>=0;n--){var a=r[n];a==="."?r.splice(n,1):a===".."?(r.splice(n,1),e++):e&&(r.splice(n,1),e--)}if(t)for(;e;e--)r.unshift("..");return r},normalize:r=>{var t=S.isAbs(r),e=r.substr(-1)==="/";return r=S.normalizeArray(r.split("/").filter(n=>!!n),!t).join("/"),!r&&!t&&(r="."),r&&e&&(r+="/"),(t?"/":"")+r},dirname:r=>{var t=S.splitPath(r),e=t[0],n=t[1];return!e&&!n?".":(n&&(n=n.substr(0,n.length-1)),e+n)},basename:r=>{if(r==="/")return"/";r=S.normalize(r),r=r.replace(/\/$/,"");var t=r.lastIndexOf("/");return t===-1?r:r.substr(t+1)},join:(...r)=>S.normalize(r.join("/")),join2:(r,t)=>S.normalize(r+"/"+t)},At=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return r=>crypto.getRandomValues(r);_r("initRandomDevice")},Et=r=>(Et=At())(r),gr={resolve:(...r)=>{for(var t="",e=!1,n=r.length-1;n>=-1&&!e;n--){var a=n>=0?r[n]:o.cwd();if(typeof a!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!a)return"";t=a+"/"+t,e=S.isAbs(a)}return t=S.normalizeArray(t.split("/").filter(i=>!!i),!e).join("/"),(e?"/":"")+t||"."},relative:(r,t)=>{r=gr.resolve(r).substr(1),t=gr.resolve(t).substr(1);function e(G){for(var O=0;O<G.length&&G[O]==="";O++);for(var Y=G.length-1;Y>=0&&G[Y]==="";Y--);return O>Y?[]:G.slice(O,Y-O+1)}for(var n=e(r.split("/")),a=e(t.split("/")),i=Math.min(n.length,a.length),u=i,c=0;c<i;c++)if(n[c]!==a[c]){u=c;break}for(var h=[],c=u;c<n.length;c++)h.push("..");return h=h.concat(a.slice(u)),h.join("/")}},vt=typeof TextDecoder<"u"?new TextDecoder:void 0,Dr=(r,t=0,e=NaN)=>{for(var n=t+e,a=t;r[a]&&!(a>=n);)++a;if(a-t>16&&r.buffer&&vt)return vt.decode(r.subarray(t,a));for(var i="";t<a;){var u=r[t++];if(!(u&128)){i+=String.fromCharCode(u);continue}var c=r[t++]&63;if((u&224)==192){i+=String.fromCharCode((u&31)<<6|c);continue}var h=r[t++]&63;if((u&240)==224?u=(u&15)<<12|c<<6|h:u=(u&7)<<18|c<<12|h<<6|r[t++]&63,u<65536)i+=String.fromCharCode(u);else{var G=u-65536;i+=String.fromCharCode(55296|G>>10,56320|G&1023)}}return i},rt=[],tt=r=>{for(var t=0,e=0;e<r.length;++e){var n=r.charCodeAt(e);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++e):t+=3}return t},et=(r,t,e,n)=>{if(!(n>0))return 0;for(var a=e,i=e+n-1,u=0;u<r.length;++u){var c=r.charCodeAt(u);if(c>=55296&&c<=57343){var h=r.charCodeAt(++u);c=65536+((c&1023)<<10)|h&1023}if(c<=127){if(e>=i)break;t[e++]=c}else if(c<=2047){if(e+1>=i)break;t[e++]=192|c>>6,t[e++]=128|c&63}else if(c<=65535){if(e+2>=i)break;t[e++]=224|c>>12,t[e++]=128|c>>6&63,t[e++]=128|c&63}else{if(e+3>=i)break;t[e++]=240|c>>18,t[e++]=128|c>>12&63,t[e++]=128|c>>6&63,t[e++]=128|c&63}}return t[e]=0,e-a};function ot(r,t,e){var n=e>0?e:tt(r)+1,a=new Array(n),i=et(r,a,0,a.length);return t&&(a.length=i),a}var re=()=>{if(!rt.length){var r=null;if(!r)return null;rt=ot(r,!0)}return rt.shift()},br={ttys:[],init(){},shutdown(){},register(r,t){br.ttys[r]={input:[],output:[],ops:t},o.registerDevice(r,br.stream_ops)},stream_ops:{open(r){var t=br.ttys[r.node.rdev];if(!t)throw new o.ErrnoError(43);r.tty=t,r.seekable=!1},close(r){r.tty.ops.fsync(r.tty)},fsync(r){r.tty.ops.fsync(r.tty)},read(r,t,e,n,a){if(!r.tty||!r.tty.ops.get_char)throw new o.ErrnoError(60);for(var i=0,u=0;u<n;u++){var c;try{c=r.tty.ops.get_char(r.tty)}catch{throw new o.ErrnoError(29)}if(c===void 0&&i===0)throw new o.ErrnoError(6);if(c==null)break;i++,t[e+u]=c}return i&&(r.node.timestamp=Date.now()),i},write(r,t,e,n,a){if(!r.tty||!r.tty.ops.put_char)throw new o.ErrnoError(60);try{for(var i=0;i<n;i++)r.tty.ops.put_char(r.tty,t[e+i])}catch{throw new o.ErrnoError(29)}return n&&(r.node.timestamp=Date.now()),i}},default_tty_ops:{get_char(r){return re()},put_char(r,t){t===null||t===10?(L(Dr(r.output)),r.output=[]):t!=0&&r.output.push(t)},fsync(r){r.output&&r.output.length>0&&(L(Dr(r.output)),r.output=[])},ioctl_tcgets(r){return{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(r,t,e){return 0},ioctl_tiocgwinsz(r){return[24,80]}},default_tty1_ops:{put_char(r,t){t===null||t===10?(Z(Dr(r.output)),r.output=[]):t!=0&&r.output.push(t)},fsync(r){r.output&&r.output.length>0&&(Z(Dr(r.output)),r.output=[])}}},te=(r,t)=>{U.fill(0,r,r+t)},nt=(r,t)=>Math.ceil(r/t)*t,mt=r=>{r=nt(r,65536);var t=Tt(65536,r);return t&&te(t,r),t},g={ops_table:null,mount(r){return g.createNode(null,"/",16895,0)},createNode(r,t,e,n){if(o.isBlkdev(e)||o.isFIFO(e))throw new o.ErrnoError(63);g.ops_table||={dir:{node:{getattr:g.node_ops.getattr,setattr:g.node_ops.setattr,lookup:g.node_ops.lookup,mknod:g.node_ops.mknod,rename:g.node_ops.rename,unlink:g.node_ops.unlink,rmdir:g.node_ops.rmdir,readdir:g.node_ops.readdir,symlink:g.node_ops.symlink},stream:{llseek:g.stream_ops.llseek}},file:{node:{getattr:g.node_ops.getattr,setattr:g.node_ops.setattr},stream:{llseek:g.stream_ops.llseek,read:g.stream_ops.read,write:g.stream_ops.write,allocate:g.stream_ops.allocate,mmap:g.stream_ops.mmap,msync:g.stream_ops.msync}},link:{node:{getattr:g.node_ops.getattr,setattr:g.node_ops.setattr,readlink:g.node_ops.readlink},stream:{}},chrdev:{node:{getattr:g.node_ops.getattr,setattr:g.node_ops.setattr},stream:o.chrdev_stream_ops}};var a=o.createNode(r,t,e,n);return o.isDir(a.mode)?(a.node_ops=g.ops_table.dir.node,a.stream_ops=g.ops_table.dir.stream,a.contents={}):o.isFile(a.mode)?(a.node_ops=g.ops_table.file.node,a.stream_ops=g.ops_table.file.stream,a.usedBytes=0,a.contents=null):o.isLink(a.mode)?(a.node_ops=g.ops_table.link.node,a.stream_ops=g.ops_table.link.stream):o.isChrdev(a.mode)&&(a.node_ops=g.ops_table.chrdev.node,a.stream_ops=g.ops_table.chrdev.stream),a.timestamp=Date.now(),r&&(r.contents[t]=a,r.timestamp=a.timestamp),a},getFileDataAsTypedArray(r){return r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0)},expandFileStorage(r,t){var e=r.contents?r.contents.length:0;if(!(e>=t)){var n=1048576;t=Math.max(t,e*(e<n?2:1.125)>>>0),e!=0&&(t=Math.max(t,256));var a=r.contents;r.contents=new Uint8Array(t),r.usedBytes>0&&r.contents.set(a.subarray(0,r.usedBytes),0)}},resizeFileStorage(r,t){if(r.usedBytes!=t)if(t==0)r.contents=null,r.usedBytes=0;else{var e=r.contents;r.contents=new Uint8Array(t),e&&r.contents.set(e.subarray(0,Math.min(t,r.usedBytes))),r.usedBytes=t}},node_ops:{getattr(r){var t={};return t.dev=o.isChrdev(r.mode)?r.id:1,t.ino=r.id,t.mode=r.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=r.rdev,o.isDir(r.mode)?t.size=4096:o.isFile(r.mode)?t.size=r.usedBytes:o.isLink(r.mode)?t.size=r.link.length:t.size=0,t.atime=new Date(r.timestamp),t.mtime=new Date(r.timestamp),t.ctime=new Date(r.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr(r,t){t.mode!==void 0&&(r.mode=t.mode),t.timestamp!==void 0&&(r.timestamp=t.timestamp),t.size!==void 0&&g.resizeFileStorage(r,t.size)},lookup(r,t){throw g.doesNotExistError},mknod(r,t,e,n){return g.createNode(r,t,e,n)},rename(r,t,e){if(o.isDir(r.mode)){var n;try{n=o.lookupNode(t,e)}catch{}if(n)for(var a in n.contents)throw new o.ErrnoError(55)}delete r.parent.contents[r.name],r.parent.timestamp=Date.now(),r.name=e,t.contents[e]=r,t.timestamp=r.parent.timestamp},unlink(r,t){delete r.contents[t],r.timestamp=Date.now()},rmdir(r,t){var e=o.lookupNode(r,t);for(var n in e.contents)throw new o.ErrnoError(55);delete r.contents[t],r.timestamp=Date.now()},readdir(r){var t=[".",".."];for(var e of Object.keys(r.contents))t.push(e);return t},symlink(r,t,e){var n=g.createNode(r,t,41471,0);return n.link=e,n},readlink(r){if(!o.isLink(r.mode))throw new o.ErrnoError(28);return r.link}},stream_ops:{read(r,t,e,n,a){var i=r.node.contents;if(a>=r.node.usedBytes)return 0;var u=Math.min(r.node.usedBytes-a,n);if(u>8&&i.subarray)t.set(i.subarray(a,a+u),e);else for(var c=0;c<u;c++)t[e+c]=i[a+c];return u},write(r,t,e,n,a,i){if(t.buffer===m.buffer&&(i=!1),!n)return 0;var u=r.node;if(u.timestamp=Date.now(),t.subarray&&(!u.contents||u.contents.subarray)){if(i)return u.contents=t.subarray(e,e+n),u.usedBytes=n,n;if(u.usedBytes===0&&a===0)return u.contents=t.slice(e,e+n),u.usedBytes=n,n;if(a+n<=u.usedBytes)return u.contents.set(t.subarray(e,e+n),a),n}if(g.expandFileStorage(u,a+n),u.contents.subarray&&t.subarray)u.contents.set(t.subarray(e,e+n),a);else for(var c=0;c<n;c++)u.contents[a+c]=t[e+c];return u.usedBytes=Math.max(u.usedBytes,a+n),n},llseek(r,t,e){var n=t;if(e===1?n+=r.position:e===2&&o.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new o.ErrnoError(28);return n},allocate(r,t,e){g.expandFileStorage(r.node,t+e),r.node.usedBytes=Math.max(r.node.usedBytes,t+e)},mmap(r,t,e,n,a){if(!o.isFile(r.node.mode))throw new o.ErrnoError(43);var i,u,c=r.node.contents;if(!(a&2)&&c&&c.buffer===m.buffer)u=!1,i=c.byteOffset;else{if(u=!0,i=mt(t),!i)throw new o.ErrnoError(48);c&&((e>0||e+t<c.length)&&(c.subarray?c=c.subarray(e,e+t):c=Array.prototype.slice.call(c,e,e+t)),m.set(c,i))}return{ptr:i,allocated:u}},msync(r,t,e,n,a){return g.stream_ops.write(r,t,0,n,e,!1),0}}},ee=(r,t,e,n)=>{var a=n?"":`al ${r}`;H(r).then(i=>{t(new Uint8Array(i)),a&&yr(a)},i=>{if(e)e();else throw`Loading data file "${r}" failed.`}),a&&lr(a)},oe=(r,t,e,n,a,i)=>{o.createDataFile(r,t,e,n,a,i)},ne=[],ae=(r,t,e,n)=>{typeof Browser<"u"&&Browser.init();var a=!1;return ne.forEach(i=>{a||i.canHandle(t)&&(i.handle(r,t,e,n),a=!0)}),a},ie=(r,t,e,n,a,i,u,c,h,G)=>{var O=t?gr.resolve(S.join2(r,t)):r,Y=`cp ${O}`;function x(w){function R(tr){G?.(),c||oe(r,t,tr,n,a,h),i?.(),yr(Y)}ae(w,O,R,()=>{u?.(),yr(Y)})||R(w)}lr(Y),typeof e=="string"?ee(e,x,u):x(e)},se=r=>{var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},e=t[r];if(typeof e>"u")throw new Error(`Unknown file open mode: ${r}`);return e},at=(r,t)=>{var e=0;return r&&(e|=365),t&&(e|=146),e},o={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:class{name="ErrnoError";constructor(r){this.errno=r}},filesystems:null,syncFSRequests:0,FSStream:class{shared={};get object(){return this.node}set object(r){this.node=r}get isRead(){return(this.flags&2097155)!==1}get isWrite(){return(this.flags&2097155)!==0}get isAppend(){return this.flags&1024}get flags(){return this.shared.flags}set flags(r){this.shared.flags=r}get position(){return this.shared.position}set position(r){this.shared.position=r}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(r,t,e,n){r||(r=this),this.parent=r,this.mount=r.mount,this.id=o.nextInode++,this.name=t,this.mode=e,this.rdev=n}get read(){return(this.mode&this.readMode)===this.readMode}set read(r){r?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(r){r?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return o.isDir(this.mode)}get isDevice(){return o.isChrdev(this.mode)}},lookupPath(r,t={}){if(r=gr.resolve(r),!r)return{path:"",node:null};var e={follow_mount:!0,recurse_count:0};if(t=Object.assign(e,t),t.recurse_count>8)throw new o.ErrnoError(32);for(var n=r.split("/").filter(Y=>!!Y),a=o.root,i="/",u=0;u<n.length;u++){var c=u===n.length-1;if(c&&t.parent)break;if(a=o.lookupNode(a,n[u]),i=S.join2(i,n[u]),o.isMountpoint(a)&&(!c||c&&t.follow_mount)&&(a=a.mounted.root),!c||t.follow)for(var h=0;o.isLink(a.mode);){var G=o.readlink(i);i=gr.resolve(S.dirname(i),G);var O=o.lookupPath(i,{recurse_count:t.recurse_count+1});if(a=O.node,h++>40)throw new o.ErrnoError(32)}}return{path:i,node:a}},getPath(r){for(var t;;){if(o.isRoot(r)){var e=r.mount.mountpoint;return t?e[e.length-1]!=="/"?`${e}/${t}`:e+t:e}t=t?`${r.name}/${t}`:r.name,r=r.parent}},hashName(r,t){for(var e=0,n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n)|0;return(r+e>>>0)%o.nameTable.length},hashAddNode(r){var t=o.hashName(r.parent.id,r.name);r.name_next=o.nameTable[t],o.nameTable[t]=r},hashRemoveNode(r){var t=o.hashName(r.parent.id,r.name);if(o.nameTable[t]===r)o.nameTable[t]=r.name_next;else for(var e=o.nameTable[t];e;){if(e.name_next===r){e.name_next=r.name_next;break}e=e.name_next}},lookupNode(r,t){var e=o.mayLookup(r);if(e)throw new o.ErrnoError(e);for(var n=o.hashName(r.id,t),a=o.nameTable[n];a;a=a.name_next){var i=a.name;if(a.parent.id===r.id&&i===t)return a}return o.lookup(r,t)},createNode(r,t,e,n){var a=new o.FSNode(r,t,e,n);return o.hashAddNode(a),a},destroyNode(r){o.hashRemoveNode(r)},isRoot(r){return r===r.parent},isMountpoint(r){return!!r.mounted},isFile(r){return(r&61440)===32768},isDir(r){return(r&61440)===16384},isLink(r){return(r&61440)===40960},isChrdev(r){return(r&61440)===8192},isBlkdev(r){return(r&61440)===24576},isFIFO(r){return(r&61440)===4096},isSocket(r){return(r&49152)===49152},flagsToPermissionString(r){var t=["r","w","rw"][r&3];return r&512&&(t+="w"),t},nodePermissions(r,t){return o.ignorePermissions?0:t.includes("r")&&!(r.mode&292)||t.includes("w")&&!(r.mode&146)||t.includes("x")&&!(r.mode&73)?2:0},mayLookup(r){if(!o.isDir(r.mode))return 54;var t=o.nodePermissions(r,"x");return t||(r.node_ops.lookup?0:2)},mayCreate(r,t){try{var e=o.lookupNode(r,t);return 20}catch{}return o.nodePermissions(r,"wx")},mayDelete(r,t,e){var n;try{n=o.lookupNode(r,t)}catch(i){return i.errno}var a=o.nodePermissions(r,"wx");if(a)return a;if(e){if(!o.isDir(n.mode))return 54;if(o.isRoot(n)||o.getPath(n)===o.cwd())return 10}else if(o.isDir(n.mode))return 31;return 0},mayOpen(r,t){return r?o.isLink(r.mode)?32:o.isDir(r.mode)&&(o.flagsToPermissionString(t)!=="r"||t&512)?31:o.nodePermissions(r,o.flagsToPermissionString(t)):44},MAX_OPEN_FDS:4096,nextfd(){for(var r=0;r<=o.MAX_OPEN_FDS;r++)if(!o.streams[r])return r;throw new o.ErrnoError(33)},getStreamChecked(r){var t=o.getStream(r);if(!t)throw new o.ErrnoError(8);return t},getStream:r=>o.streams[r],createStream(r,t=-1){return r=Object.assign(new o.FSStream,r),t==-1&&(t=o.nextfd()),r.fd=t,o.streams[t]=r,r},closeStream(r){o.streams[r]=null},dupStream(r,t=-1){var e=o.createStream(r,t);return e.stream_ops?.dup?.(e),e},chrdev_stream_ops:{open(r){var t=o.getDevice(r.node.rdev);r.stream_ops=t.stream_ops,r.stream_ops.open?.(r)},llseek(){throw new o.ErrnoError(70)}},major:r=>r>>8,minor:r=>r&255,makedev:(r,t)=>r<<8|t,registerDevice(r,t){o.devices[r]={stream_ops:t}},getDevice:r=>o.devices[r],getMounts(r){for(var t=[],e=[r];e.length;){var n=e.pop();t.push(n),e.push(...n.mounts)}return t},syncfs(r,t){typeof r=="function"&&(t=r,r=!1),o.syncFSRequests++,o.syncFSRequests>1&&Z(`warning: ${o.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var e=o.getMounts(o.root.mount),n=0;function a(u){return o.syncFSRequests--,t(u)}function i(u){if(u)return i.errored?void 0:(i.errored=!0,a(u));++n>=e.length&&a(null)}e.forEach(u=>{if(!u.type.syncfs)return i(null);u.type.syncfs(u,r,i)})},mount(r,t,e){var n=e==="/",a=!e,i;if(n&&o.root)throw new o.ErrnoError(10);if(!n&&!a){var u=o.lookupPath(e,{follow_mount:!1});if(e=u.path,i=u.node,o.isMountpoint(i))throw new o.ErrnoError(10);if(!o.isDir(i.mode))throw new o.ErrnoError(54)}var c={type:r,opts:t,mountpoint:e,mounts:[]},h=r.mount(c);return h.mount=c,c.root=h,n?o.root=h:i&&(i.mounted=c,i.mount&&i.mount.mounts.push(c)),h},unmount(r){var t=o.lookupPath(r,{follow_mount:!1});if(!o.isMountpoint(t.node))throw new o.ErrnoError(28);var e=t.node,n=e.mounted,a=o.getMounts(n);Object.keys(o.nameTable).forEach(u=>{for(var c=o.nameTable[u];c;){var h=c.name_next;a.includes(c.mount)&&o.destroyNode(c),c=h}}),e.mounted=null;var i=e.mount.mounts.indexOf(n);e.mount.mounts.splice(i,1)},lookup(r,t){return r.node_ops.lookup(r,t)},mknod(r,t,e){var n=o.lookupPath(r,{parent:!0}),a=n.node,i=S.basename(r);if(!i||i==="."||i==="..")throw new o.ErrnoError(28);var u=o.mayCreate(a,i);if(u)throw new o.ErrnoError(u);if(!a.node_ops.mknod)throw new o.ErrnoError(63);return a.node_ops.mknod(a,i,t,e)},statfs(r){var t={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:o.nextInode,ffree:o.nextInode-1,fsid:42,flags:2,namelen:255},e=o.lookupPath(r,{follow:!0}).node;return e?.node_ops.statfs&&Object.assign(t,e.node_ops.statfs(e.mount.opts.root)),t},create(r,t=438){return t&=4095,t|=32768,o.mknod(r,t,0)},mkdir(r,t=511){return t&=1023,t|=16384,o.mknod(r,t,0)},mkdirTree(r,t){for(var e=r.split("/"),n="",a=0;a<e.length;++a)if(e[a]){n+="/"+e[a];try{o.mkdir(n,t)}catch(i){if(i.errno!=20)throw i}}},mkdev(r,t,e){return typeof e>"u"&&(e=t,t=438),t|=8192,o.mknod(r,t,e)},symlink(r,t){if(!gr.resolve(r))throw new o.ErrnoError(44);var e=o.lookupPath(t,{parent:!0}),n=e.node;if(!n)throw new o.ErrnoError(44);var a=S.basename(t),i=o.mayCreate(n,a);if(i)throw new o.ErrnoError(i);if(!n.node_ops.symlink)throw new o.ErrnoError(63);return n.node_ops.symlink(n,a,r)},rename(r,t){var e=S.dirname(r),n=S.dirname(t),a=S.basename(r),i=S.basename(t),u,c,h;if(u=o.lookupPath(r,{parent:!0}),c=u.node,u=o.lookupPath(t,{parent:!0}),h=u.node,!c||!h)throw new o.ErrnoError(44);if(c.mount!==h.mount)throw new o.ErrnoError(75);var G=o.lookupNode(c,a),O=gr.relative(r,n);if(O.charAt(0)!==".")throw new o.ErrnoError(28);if(O=gr.relative(t,e),O.charAt(0)!==".")throw new o.ErrnoError(55);var Y;try{Y=o.lookupNode(h,i)}catch{}if(G!==Y){var x=o.isDir(G.mode),w=o.mayDelete(c,a,x);if(w)throw new o.ErrnoError(w);if(w=Y?o.mayDelete(h,i,x):o.mayCreate(h,i),w)throw new o.ErrnoError(w);if(!c.node_ops.rename)throw new o.ErrnoError(63);if(o.isMountpoint(G)||Y&&o.isMountpoint(Y))throw new o.ErrnoError(10);if(h!==c&&(w=o.nodePermissions(c,"w"),w))throw new o.ErrnoError(w);o.hashRemoveNode(G);try{c.node_ops.rename(G,h,i),G.parent=h}catch(R){throw R}finally{o.hashAddNode(G)}}},rmdir(r){var t=o.lookupPath(r,{parent:!0}),e=t.node,n=S.basename(r),a=o.lookupNode(e,n),i=o.mayDelete(e,n,!0);if(i)throw new o.ErrnoError(i);if(!e.node_ops.rmdir)throw new o.ErrnoError(63);if(o.isMountpoint(a))throw new o.ErrnoError(10);e.node_ops.rmdir(e,n),o.destroyNode(a)},readdir(r){var t=o.lookupPath(r,{follow:!0}),e=t.node;if(!e.node_ops.readdir)throw new o.ErrnoError(54);return e.node_ops.readdir(e)},unlink(r){var t=o.lookupPath(r,{parent:!0}),e=t.node;if(!e)throw new o.ErrnoError(44);var n=S.basename(r),a=o.lookupNode(e,n),i=o.mayDelete(e,n,!1);if(i)throw new o.ErrnoError(i);if(!e.node_ops.unlink)throw new o.ErrnoError(63);if(o.isMountpoint(a))throw new o.ErrnoError(10);e.node_ops.unlink(e,n),o.destroyNode(a)},readlink(r){var t=o.lookupPath(r),e=t.node;if(!e)throw new o.ErrnoError(44);if(!e.node_ops.readlink)throw new o.ErrnoError(28);return e.node_ops.readlink(e)},stat(r,t){var e=o.lookupPath(r,{follow:!t}),n=e.node;if(!n)throw new o.ErrnoError(44);if(!n.node_ops.getattr)throw new o.ErrnoError(63);return n.node_ops.getattr(n)},lstat(r){return o.stat(r,!0)},chmod(r,t,e){var n;if(typeof r=="string"){var a=o.lookupPath(r,{follow:!e});n=a.node}else n=r;if(!n.node_ops.setattr)throw new o.ErrnoError(63);n.node_ops.setattr(n,{mode:t&4095|n.mode&-4096,timestamp:Date.now()})},lchmod(r,t){o.chmod(r,t,!0)},fchmod(r,t){var e=o.getStreamChecked(r);o.chmod(e.node,t)},chown(r,t,e,n){var a;if(typeof r=="string"){var i=o.lookupPath(r,{follow:!n});a=i.node}else a=r;if(!a.node_ops.setattr)throw new o.ErrnoError(63);a.node_ops.setattr(a,{timestamp:Date.now()})},lchown(r,t,e){o.chown(r,t,e,!0)},fchown(r,t,e){var n=o.getStreamChecked(r);o.chown(n.node,t,e)},truncate(r,t){if(t<0)throw new o.ErrnoError(28);var e;if(typeof r=="string"){var n=o.lookupPath(r,{follow:!0});e=n.node}else e=r;if(!e.node_ops.setattr)throw new o.ErrnoError(63);if(o.isDir(e.mode))throw new o.ErrnoError(31);if(!o.isFile(e.mode))throw new o.ErrnoError(28);var a=o.nodePermissions(e,"w");if(a)throw new o.ErrnoError(a);e.node_ops.setattr(e,{size:t,timestamp:Date.now()})},ftruncate(r,t){var e=o.getStreamChecked(r);if(!(e.flags&2097155))throw new o.ErrnoError(28);o.truncate(e.node,t)},utime(r,t,e){var n=o.lookupPath(r,{follow:!0}),a=n.node;a.node_ops.setattr(a,{timestamp:Math.max(t,e)})},open(r,t,e=438){if(r==="")throw new o.ErrnoError(44);t=typeof t=="string"?se(t):t,t&64?e=e&4095|32768:e=0;var n;if(typeof r=="object")n=r;else{r=S.normalize(r);try{var a=o.lookupPath(r,{follow:!(t&131072)});n=a.node}catch{}}var i=!1;if(t&64)if(n){if(t&128)throw new o.ErrnoError(20)}else n=o.mknod(r,e,0),i=!0;if(!n)throw new o.ErrnoError(44);if(o.isChrdev(n.mode)&&(t&=-513),t&65536&&!o.isDir(n.mode))throw new o.ErrnoError(54);if(!i){var u=o.mayOpen(n,t);if(u)throw new o.ErrnoError(u)}t&512&&!i&&o.truncate(n,0),t&=-131713;var c=o.createStream({node:n,path:o.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return c.stream_ops.open&&c.stream_ops.open(c),c},close(r){if(o.isClosed(r))throw new o.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(t){throw t}finally{o.closeStream(r.fd)}r.fd=null},isClosed(r){return r.fd===null},llseek(r,t,e){if(o.isClosed(r))throw new o.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new o.ErrnoError(70);if(e!=0&&e!=1&&e!=2)throw new o.ErrnoError(28);return r.position=r.stream_ops.llseek(r,t,e),r.ungotten=[],r.position},read(r,t,e,n,a){if(n<0||a<0)throw new o.ErrnoError(28);if(o.isClosed(r))throw new o.ErrnoError(8);if((r.flags&2097155)===1)throw new o.ErrnoError(8);if(o.isDir(r.node.mode))throw new o.ErrnoError(31);if(!r.stream_ops.read)throw new o.ErrnoError(28);var i=typeof a<"u";if(!i)a=r.position;else if(!r.seekable)throw new o.ErrnoError(70);var u=r.stream_ops.read(r,t,e,n,a);return i||(r.position+=u),u},write(r,t,e,n,a,i){if(n<0||a<0)throw new o.ErrnoError(28);if(o.isClosed(r))throw new o.ErrnoError(8);if(!(r.flags&2097155))throw new o.ErrnoError(8);if(o.isDir(r.node.mode))throw new o.ErrnoError(31);if(!r.stream_ops.write)throw new o.ErrnoError(28);r.seekable&&r.flags&1024&&o.llseek(r,0,2);var u=typeof a<"u";if(!u)a=r.position;else if(!r.seekable)throw new o.ErrnoError(70);var c=r.stream_ops.write(r,t,e,n,a,i);return u||(r.position+=c),c},allocate(r,t,e){if(o.isClosed(r))throw new o.ErrnoError(8);if(t<0||e<=0)throw new o.ErrnoError(28);if(!(r.flags&2097155))throw new o.ErrnoError(8);if(!o.isFile(r.node.mode)&&!o.isDir(r.node.mode))throw new o.ErrnoError(43);if(!r.stream_ops.allocate)throw new o.ErrnoError(138);r.stream_ops.allocate(r,t,e)},mmap(r,t,e,n,a){if(n&2&&!(a&2)&&(r.flags&2097155)!==2)throw new o.ErrnoError(2);if((r.flags&2097155)===1)throw new o.ErrnoError(2);if(!r.stream_ops.mmap)throw new o.ErrnoError(43);if(!t)throw new o.ErrnoError(28);return r.stream_ops.mmap(r,t,e,n,a)},msync(r,t,e,n,a){return r.stream_ops.msync?r.stream_ops.msync(r,t,e,n,a):0},ioctl(r,t,e){if(!r.stream_ops.ioctl)throw new o.ErrnoError(59);return r.stream_ops.ioctl(r,t,e)},readFile(r,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary",t.encoding!=="utf8"&&t.encoding!=="binary")throw new Error(`Invalid encoding type "${t.encoding}"`);var e,n=o.open(r,t.flags),a=o.stat(r),i=a.size,u=new Uint8Array(i);return o.read(n,u,0,i,0),t.encoding==="utf8"?e=Dr(u):t.encoding==="binary"&&(e=u),o.close(n),e},writeFile(r,t,e={}){e.flags=e.flags||577;var n=o.open(r,e.flags,e.mode);if(typeof t=="string"){var a=new Uint8Array(tt(t)+1),i=et(t,a,0,a.length);o.write(n,a,0,i,void 0,e.canOwn)}else if(ArrayBuffer.isView(t))o.write(n,t,0,t.byteLength,void 0,e.canOwn);else throw new Error("Unsupported data type");o.close(n)},cwd:()=>o.currentPath,chdir(r){var t=o.lookupPath(r,{follow:!0});if(t.node===null)throw new o.ErrnoError(44);if(!o.isDir(t.node.mode))throw new o.ErrnoError(54);var e=o.nodePermissions(t.node,"x");if(e)throw new o.ErrnoError(e);o.currentPath=t.path},createDefaultDirectories(){o.mkdir("/tmp"),o.mkdir("/home"),o.mkdir("/home/web_user")},createDefaultDevices(){o.mkdir("/dev"),o.registerDevice(o.makedev(1,3),{read:()=>0,write:(n,a,i,u,c)=>u,llseek:()=>0}),o.mkdev("/dev/null",o.makedev(1,3)),br.register(o.makedev(5,0),br.default_tty_ops),br.register(o.makedev(6,0),br.default_tty1_ops),o.mkdev("/dev/tty",o.makedev(5,0)),o.mkdev("/dev/tty1",o.makedev(6,0));var r=new Uint8Array(1024),t=0,e=()=>(t===0&&(t=Et(r).byteLength),r[--t]);o.createDevice("/dev","random",e),o.createDevice("/dev","urandom",e),o.mkdir("/dev/shm"),o.mkdir("/dev/shm/tmp")},createSpecialDirectories(){o.mkdir("/proc");var r=o.mkdir("/proc/self");o.mkdir("/proc/self/fd"),o.mount({mount(){var t=o.createNode(r,"fd",16895,73);return t.node_ops={lookup(e,n){var a=+n,i=o.getStreamChecked(a),u={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>i.path}};return u.parent=u,u}},t}},{},"/proc/self/fd")},createStandardStreams(r,t,e){r?o.createDevice("/dev","stdin",r):o.symlink("/dev/tty","/dev/stdin"),t?o.createDevice("/dev","stdout",null,t):o.symlink("/dev/tty","/dev/stdout"),e?o.createDevice("/dev","stderr",null,e):o.symlink("/dev/tty1","/dev/stderr");var n=o.open("/dev/stdin",0),a=o.open("/dev/stdout",1),i=o.open("/dev/stderr",1)},staticInit(){o.nameTable=new Array(4096),o.mount(g,{},"/"),o.createDefaultDirectories(),o.createDefaultDevices(),o.createSpecialDirectories(),o.filesystems={MEMFS:g}},init(r,t,e){o.initialized=!0,o.createStandardStreams(r,t,e)},quit(){o.initialized=!1;for(var r=0;r<o.streams.length;r++){var t=o.streams[r];t&&o.close(t)}},findObject(r,t){var e=o.analyzePath(r,t);return e.exists?e.object:null},analyzePath(r,t){try{var e=o.lookupPath(r,{follow:!t});r=e.path}catch{}var n={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var e=o.lookupPath(r,{parent:!0});n.parentExists=!0,n.parentPath=e.path,n.parentObject=e.node,n.name=S.basename(r),e=o.lookupPath(r,{follow:!t}),n.exists=!0,n.path=e.path,n.object=e.node,n.name=e.node.name,n.isRoot=e.path==="/"}catch(a){n.error=a.errno}return n},createPath(r,t,e,n){r=typeof r=="string"?r:o.getPath(r);for(var a=t.split("/").reverse();a.length;){var i=a.pop();if(i){var u=S.join2(r,i);try{o.mkdir(u)}catch{}r=u}}return u},createFile(r,t,e,n,a){var i=S.join2(typeof r=="string"?r:o.getPath(r),t),u=at(n,a);return o.create(i,u)},createDataFile(r,t,e,n,a,i){var u=t;r&&(r=typeof r=="string"?r:o.getPath(r),u=t?S.join2(r,t):r);var c=at(n,a),h=o.create(u,c);if(e){if(typeof e=="string"){for(var G=new Array(e.length),O=0,Y=e.length;O<Y;++O)G[O]=e.charCodeAt(O);e=G}o.chmod(h,c|146);var x=o.open(h,577);o.write(x,e,0,e.length,0,i),o.close(x),o.chmod(h,c)}},createDevice(r,t,e,n){var a=S.join2(typeof r=="string"?r:o.getPath(r),t),i=at(!!e,!!n);o.createDevice.major??=64;var u=o.makedev(o.createDevice.major++,0);return o.registerDevice(u,{open(c){c.seekable=!1},close(c){n?.buffer?.length&&n(10)},read(c,h,G,O,Y){for(var x=0,w=0;w<O;w++){var R;try{R=e()}catch{throw new o.ErrnoError(29)}if(R===void 0&&x===0)throw new o.ErrnoError(6);if(R==null)break;x++,h[G+w]=R}return x&&(c.node.timestamp=Date.now()),x},write(c,h,G,O,Y){for(var x=0;x<O;x++)try{n(h[G+x])}catch{throw new o.ErrnoError(29)}return O&&(c.node.timestamp=Date.now()),x}}),o.mkdev(a,i,u)},forceLoadFile(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;if(typeof XMLHttpRequest<"u")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.");try{r.contents=J(r.url),r.usedBytes=r.contents.length}catch{throw new o.ErrnoError(29)}},createLazyFile(r,t,e,n,a){class i{lengthKnown=!1;chunks=[];get(w){if(!(w>this.length-1||w<0)){var R=w%this.chunkSize,tr=w/this.chunkSize|0;return this.getter(tr)[R]}}setDataGetter(w){this.getter=w}cacheLength(){var w=new XMLHttpRequest;if(w.open("HEAD",e,!1),w.send(null),!(w.status>=200&&w.status<300||w.status===304))throw new Error("Couldn't load "+e+". Status: "+w.status);var R=Number(w.getResponseHeader("Content-length")),tr,fr=(tr=w.getResponseHeader("Accept-Ranges"))&&tr==="bytes",nr=(tr=w.getResponseHeader("Content-Encoding"))&&tr==="gzip",pr=1024*1024;fr||(pr=R);var hr=(Er,Yr)=>{if(Er>Yr)throw new Error("invalid range ("+Er+", "+Yr+") or no bytes requested!");if(Yr>R-1)throw new Error("only "+R+" bytes available! programmer error!");var rr=new XMLHttpRequest;if(rr.open("GET",e,!1),R!==pr&&rr.setRequestHeader("Range","bytes="+Er+"-"+Yr),rr.responseType="arraybuffer",rr.overrideMimeType&&rr.overrideMimeType("text/plain; charset=x-user-defined"),rr.send(null),!(rr.status>=200&&rr.status<300||rr.status===304))throw new Error("Couldn't load "+e+". Status: "+rr.status);return rr.response!==void 0?new Uint8Array(rr.response||[]):ot(rr.responseText||"",!0)},Kr=this;Kr.setDataGetter(Er=>{var Yr=Er*pr,rr=(Er+1)*pr-1;if(rr=Math.min(rr,R-1),typeof Kr.chunks[Er]>"u"&&(Kr.chunks[Er]=hr(Yr,rr)),typeof Kr.chunks[Er]>"u")throw new Error("doXHR failed!");return Kr.chunks[Er]}),(nr||!R)&&(pr=R=1,R=this.getter(0).length,pr=R,L("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=R,this._chunkSize=pr,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if(typeof XMLHttpRequest<"u"){if(!v)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var u=new i,c={isDevice:!1,contents:u}}else var c={isDevice:!1,url:e};var h=o.createFile(r,t,c,n,a);c.contents?h.contents=c.contents:c.url&&(h.contents=null,h.url=c.url),Object.defineProperties(h,{usedBytes:{get:function(){return this.contents.length}}});var G={},O=Object.keys(h.stream_ops);O.forEach(x=>{var w=h.stream_ops[x];G[x]=(...R)=>(o.forceLoadFile(h),w(...R))});function Y(x,w,R,tr,fr){var nr=x.node.contents;if(fr>=nr.length)return 0;var pr=Math.min(nr.length-fr,tr);if(nr.slice)for(var hr=0;hr<pr;hr++)w[R+hr]=nr[fr+hr];else for(var hr=0;hr<pr;hr++)w[R+hr]=nr.get(fr+hr);return pr}return G.read=(x,w,R,tr,fr)=>(o.forceLoadFile(h),Y(x,w,R,tr,fr)),G.mmap=(x,w,R,tr,fr)=>{o.forceLoadFile(h);var nr=mt(w);if(!nr)throw new o.ErrnoError(48);return Y(x,m,nr,w,R),{ptr:nr,allocated:!0}},h.stream_ops=G,h}},sr=(r,t)=>r?Dr(U,r,t):"",P={DEFAULT_POLLMASK:5,calculateAt(r,t,e){if(S.isAbs(t))return t;var n;if(r===-100)n=o.cwd();else{var a=P.getStreamFromFD(r);n=a.path}if(t.length==0){if(!e)throw new o.ErrnoError(44);return n}return S.join2(n,t)},doStat(r,t,e){var n=r(t);B[e>>2]=n.dev,B[e+4>>2]=n.mode,M[e+8>>2]=n.nlink,B[e+12>>2]=n.uid,B[e+16>>2]=n.gid,B[e+20>>2]=n.rdev,N=[n.size>>>0,(I=n.size,+Math.abs(I)>=1?I>0?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],B[e+24>>2]=N[0],B[e+28>>2]=N[1],B[e+32>>2]=4096,B[e+36>>2]=n.blocks;var a=n.atime.getTime(),i=n.mtime.getTime(),u=n.ctime.getTime();return N=[Math.floor(a/1e3)>>>0,(I=Math.floor(a/1e3),+Math.abs(I)>=1?I>0?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],B[e+40>>2]=N[0],B[e+44>>2]=N[1],M[e+48>>2]=a%1e3*1e3*1e3,N=[Math.floor(i/1e3)>>>0,(I=Math.floor(i/1e3),+Math.abs(I)>=1?I>0?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],B[e+56>>2]=N[0],B[e+60>>2]=N[1],M[e+64>>2]=i%1e3*1e3*1e3,N=[Math.floor(u/1e3)>>>0,(I=Math.floor(u/1e3),+Math.abs(I)>=1?I>0?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],B[e+72>>2]=N[0],B[e+76>>2]=N[1],M[e+80>>2]=u%1e3*1e3*1e3,N=[n.ino>>>0,(I=n.ino,+Math.abs(I)>=1?I>0?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],B[e+88>>2]=N[0],B[e+92>>2]=N[1],0},doMsync(r,t,e,n,a){if(!o.isFile(t.node.mode))throw new o.ErrnoError(43);if(n&2)return 0;var i=U.slice(r,r+e);o.msync(t,i,a,e,n)},getStreamFromFD(r){var t=o.getStreamChecked(r);return t},varargs:void 0,getStr(r){var t=sr(r);return t}};function ue(r,t,e,n){try{if(t=P.getStr(t),t=P.calculateAt(r,t),e&-8)return-28;var a=o.lookupPath(t,{follow:!0}),i=a.node;if(!i)return-44;var u="";return e&4&&(u+="r"),e&2&&(u+="w"),e&1&&(u+="x"),u&&o.nodePermissions(i,u)?-2:0}catch(c){if(typeof o>"u"||c.name!=="ErrnoError")throw c;return-c.errno}}var $r=()=>{var r=B[+P.varargs>>2];return P.varargs+=4,r},Rr=$r;function de(r,t,e){P.varargs=e;try{var n=P.getStreamFromFD(r);switch(t){case 0:{var a=$r();if(a<0)return-28;for(;o.streams[a];)a++;var i;return i=o.dupStream(n,a),i.fd}case 1:case 2:return 0;case 3:return n.flags;case 4:{var a=$r();return n.flags|=a,0}case 12:{var a=Rr(),u=0;return k[a+u>>1]=2,0}case 13:case 14:return 0}return-28}catch(c){if(typeof o>"u"||c.name!=="ErrnoError")throw c;return-c.errno}}function ce(r,t){try{var e=P.getStreamFromFD(r);return P.doStat(o.stat,e.path,t)}catch(n){if(typeof o>"u"||n.name!=="ErrnoError")throw n;return-n.errno}}function le(r,t,e){P.varargs=e;try{var n=P.getStreamFromFD(r);switch(t){case 21509:return n.tty?0:-59;case 21505:{if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var a=n.tty.ops.ioctl_tcgets(n),i=Rr();B[i>>2]=a.c_iflag||0,B[i+4>>2]=a.c_oflag||0,B[i+8>>2]=a.c_cflag||0,B[i+12>>2]=a.c_lflag||0;for(var u=0;u<32;u++)m[i+u+17]=a.c_cc[u]||0;return 0}return 0}case 21510:case 21511:case 21512:return n.tty?0:-59;case 21506:case 21507:case 21508:{if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){for(var i=Rr(),c=B[i>>2],h=B[i+4>>2],G=B[i+8>>2],O=B[i+12>>2],Y=[],u=0;u<32;u++)Y.push(m[i+u+17]);return n.tty.ops.ioctl_tcsets(n.tty,t,{c_iflag:c,c_oflag:h,c_cflag:G,c_lflag:O,c_cc:Y})}return 0}case 21519:{if(!n.tty)return-59;var i=Rr();return B[i>>2]=0,0}case 21520:return n.tty?-28:-59;case 21531:{var i=Rr();return o.ioctl(n,t,i)}case 21523:{if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var x=n.tty.ops.ioctl_tiocgwinsz(n.tty),i=Rr();k[i>>1]=x[0],k[i+2>>1]=x[1]}return 0}case 21524:return n.tty?0:-59;case 21515:return n.tty?0:-59;default:return-28}}catch(w){if(typeof o>"u"||w.name!=="ErrnoError")throw w;return-w.errno}}function fe(r,t,e,n){try{t=P.getStr(t);var a=n&256,i=n&4096;return n=n&-6401,t=P.calculateAt(r,t,i),P.doStat(a?o.lstat:o.stat,t,e)}catch(u){if(typeof o>"u"||u.name!=="ErrnoError")throw u;return-u.errno}}function pe(r,t,e,n){P.varargs=n;try{t=P.getStr(t),t=P.calculateAt(r,t);var a=n?$r():0;return o.open(t,e,a).fd}catch(i){if(typeof o>"u"||i.name!=="ErrnoError")throw i;return-i.errno}}var zr=(r,t,e)=>et(r,U,t,e);function he(r,t,e,n){try{if(t=P.getStr(t),t=P.calculateAt(r,t),n<=0)return-28;var a=o.readlink(t),i=Math.min(n,tt(a)),u=m[e+i];return zr(a,e,n+1),m[e+i]=u,i}catch(c){if(typeof o>"u"||c.name!=="ErrnoError")throw c;return-c.errno}}function ye(r){try{return r=P.getStr(r),o.rmdir(r),0}catch(t){if(typeof o>"u"||t.name!=="ErrnoError")throw t;return-t.errno}}function _e(r,t){try{return r=P.getStr(r),P.doStat(o.stat,r,t)}catch(e){if(typeof o>"u"||e.name!=="ErrnoError")throw e;return-e.errno}}function Ee(r,t,e){try{return t=P.getStr(t),t=P.calculateAt(r,t),e===0?o.unlink(t):e===512?o.rmdir(t):_r("Invalid flags passed to unlinkat"),0}catch(n){if(typeof o>"u"||n.name!=="ErrnoError")throw n;return-n.errno}}var ve=()=>_r(""),me=1,we=()=>me,Be=(r,t,e)=>U.copyWithin(r,t,t+e),it=(r,t)=>t+2097152>>>0<4194305-!!r?(r>>>0)+t*4294967296:NaN;function ge(r,t,e,n,a,i,u,c){var h=it(a,i);try{if(isNaN(h))return 61;var G=P.getStreamFromFD(n),O=o.mmap(G,r,h,t,e),Y=O.ptr;return B[u>>2]=O.allocated,M[c>>2]=Y,0}catch(x){if(typeof o>"u"||x.name!=="ErrnoError")throw x;return-x.errno}}function be(r,t,e,n,a,i,u){var c=it(i,u);try{var h=P.getStreamFromFD(a);e&2&&P.doMsync(r,h,t,n,c)}catch(G){if(typeof o>"u"||G.name!=="ErrnoError")throw G;return-G.errno}}var Ge=(r,t,e,n)=>{var a=new Date().getFullYear(),i=new Date(a,0,1),u=new Date(a,6,1),c=i.getTimezoneOffset(),h=u.getTimezoneOffset(),G=Math.max(c,h);M[r>>2]=G*60,B[t>>2]=+(c!=h);var O=w=>{var R=w>=0?"-":"+",tr=Math.abs(w),fr=String(Math.floor(tr/60)).padStart(2,"0"),nr=String(tr%60).padStart(2,"0");return`UTC${R}${fr}${nr}`},Y=O(c),x=O(h);h<c?(zr(Y,e,17),zr(x,n,17)):(zr(Y,n,17),zr(x,e,17))},st=[],Le=(r,t)=>{st.length=0;for(var e;e=U[r++];){var n=e!=105;n&=e!=112,t+=n&&t%8?4:0,st.push(e==112?M[t>>2]:e==105?B[t>>2]:or[t>>3]),t+=n?8:4}return st},Fe=(r,t,e)=>{var n=Le(t,e);return Vt[r](...n)},xe=(r,t,e)=>Fe(r,t,e),Ie=()=>Date.now(),Oe=()=>2147483648,Me=r=>{var t=X.buffer,e=(r-t.byteLength+65535)/65536|0;try{return X.grow(e),j(),1}catch{}},De=r=>{var t=U.length;r>>>=0;var e=Oe();if(r>e)return!1;for(var n=1;n<=4;n*=2){var a=t*(1+.2/n);a=Math.min(a,r+100663296);var i=Math.min(e,nt(Math.max(r,a),65536)),u=Me(i);if(u)return!0}return!1},ut={},Re=()=>K||"./this.program",Sr=()=>{if(!Sr.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:Re()};for(var e in ut)ut[e]===void 0?delete t[e]:t[e]=ut[e];var n=[];for(var e in t)n.push(`${e}=${t[e]}`);Sr.strings=n}return Sr.strings},Ye=(r,t)=>{for(var e=0;e<r.length;++e)m[t++]=r.charCodeAt(e);m[t]=0},Pe=(r,t)=>{var e=0;return Sr().forEach((n,a)=>{var i=t+e;M[r+a*4>>2]=i,Ye(n,i),e+=n.length+1}),0},Ze=(r,t)=>{var e=Sr();M[r>>2]=e.length;var n=0;return e.forEach(a=>n+=a.length+1),M[t>>2]=n,0},je=()=>!0,ze=r=>{cr=r,je()||(W=!0),q(r,new qt(r))},Se=(r,t)=>{cr=r,ze(r)},Ke=Se;function Te(r){try{var t=P.getStreamFromFD(r);return o.close(t),0}catch(e){if(typeof o>"u"||e.name!=="ErrnoError")throw e;return e.errno}}var Qe=(r,t,e,n)=>{for(var a=0,i=0;i<e;i++){var u=M[t>>2],c=M[t+4>>2];t+=8;var h=o.read(r,m,u,c,n);if(h<0)return-1;if(a+=h,h<c)break;typeof n<"u"&&(n+=h)}return a};function He(r,t,e,n){try{var a=P.getStreamFromFD(r),i=Qe(a,t,e);return M[n>>2]=i,0}catch(u){if(typeof o>"u"||u.name!=="ErrnoError")throw u;return u.errno}}function Ue(r,t,e,n,a){var i=it(t,e);try{if(isNaN(i))return 61;var u=P.getStreamFromFD(r);return o.llseek(u,i,n),N=[u.position>>>0,(I=u.position,+Math.abs(I)>=1?I>0?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],B[a>>2]=N[0],B[a+4>>2]=N[1],u.getdents&&i===0&&n===0&&(u.getdents=null),0}catch(c){if(typeof o>"u"||c.name!=="ErrnoError")throw c;return c.errno}}var We=(r,t,e,n)=>{for(var a=0,i=0;i<e;i++){var u=M[t>>2],c=M[t+4>>2];t+=8;var h=o.write(r,m,u,c,n);if(h<0)return-1;if(a+=h,h<c)break;typeof n<"u"&&(n+=h)}return a};function $e(r,t,e,n){try{var a=P.getStreamFromFD(r),i=We(a,t,e);return M[n>>2]=i,0}catch(u){if(typeof o>"u"||u.name!=="ErrnoError")throw u;return u.errno}}o.createPreloadedFile=ie,o.staticInit(),g.doesNotExistError=new o.ErrnoError(44),g.doesNotExistError.stack="<generic error, no stack>";var Xe={a:kt,i:ue,f:de,x:ce,k:le,v:fe,h:pe,q:he,r:ye,w:_e,s:Ee,j:ve,y:we,z:Be,l:ge,m:be,o:Ge,A:xe,c:Ie,p:De,t:Pe,u:Ze,g:Ke,b:Te,e:He,n:Ue,d:$e},z=Ct(),Ce=()=>(Ce=z.C)(),Ve=s._webidl_free=r=>(Ve=s._webidl_free=z.D)(r),qe=s._free=r=>(qe=s._free=z.E)(r),Je=s._webidl_malloc=r=>(Je=s._webidl_malloc=z.F)(r),Ne=s._malloc=r=>(Ne=s._malloc=z.G)(r),wt=s._emscripten_bind_VoidPtr___destroy___0=r=>(wt=s._emscripten_bind_VoidPtr___destroy___0=z.H)(r),Bt=s._emscripten_bind_Graphviz_Graphviz_2=(r,t)=>(Bt=s._emscripten_bind_Graphviz_Graphviz_2=z.I)(r,t),gt=s._emscripten_bind_Graphviz_version_0=()=>(gt=s._emscripten_bind_Graphviz_version_0=z.J)(),bt=s._emscripten_bind_Graphviz_lastError_0=()=>(bt=s._emscripten_bind_Graphviz_lastError_0=z.K)(),Gt=s._emscripten_bind_Graphviz_createFile_2=(r,t,e)=>(Gt=s._emscripten_bind_Graphviz_createFile_2=z.L)(r,t,e),Lt=s._emscripten_bind_Graphviz_layout_3=(r,t,e,n)=>(Lt=s._emscripten_bind_Graphviz_layout_3=z.M)(r,t,e,n),Ft=s._emscripten_bind_Graphviz_acyclic_3=(r,t,e,n)=>(Ft=s._emscripten_bind_Graphviz_acyclic_3=z.N)(r,t,e,n),xt=s._emscripten_bind_Graphviz_tred_3=(r,t,e,n)=>(xt=s._emscripten_bind_Graphviz_tred_3=z.O)(r,t,e,n),It=s._emscripten_bind_Graphviz_unflatten_4=(r,t,e,n,a)=>(It=s._emscripten_bind_Graphviz_unflatten_4=z.P)(r,t,e,n,a),Ot=s._emscripten_bind_Graphviz_get_layout_result_0=r=>(Ot=s._emscripten_bind_Graphviz_get_layout_result_0=z.Q)(r),Mt=s._emscripten_bind_Graphviz_set_layout_result_1=(r,t)