@claudecam/dashboard 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/boolean-DnW06Vcs.js +18 -0
- package/dist/assets/boolean-DnW06Vcs.js.map +1 -0
- package/dist/assets/gaussian-splat-compression-Dbnz1wNI.js +36 -0
- package/dist/assets/gaussian-splat-compression-Dbnz1wNI.js.map +1 -0
- package/dist/assets/howler-fXqmOWwM.js +2 -0
- package/dist/assets/howler-fXqmOWwM.js.map +1 -0
- package/dist/assets/index-DC_51MVS.css +1 -0
- package/dist/assets/index-DN5RC2uB.js +12448 -0
- package/dist/assets/index-DN5RC2uB.js.map +1 -0
- package/dist/assets/navmesh-B1pUQaZh.js +3 -0
- package/dist/assets/navmesh-B1pUQaZh.js.map +1 -0
- package/dist/assets/opentype-U-0Y99ve.js +2 -0
- package/dist/assets/opentype-U-0Y99ve.js.map +1 -0
- package/dist/assets/physics-ChHD2_fM.js +2 -0
- package/dist/assets/physics-ChHD2_fM.js.map +1 -0
- package/dist/assets/process-VPR0TfJD.js +19 -0
- package/dist/assets/process-VPR0TfJD.js.map +1 -0
- package/dist/assets/ui-CzK6-nAP.js +4 -0
- package/dist/assets/ui-CzK6-nAP.js.map +1 -0
- package/dist/index.html +28 -0
- package/package.json +57 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var tn=(()=>{var Tr=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return(function(Cr={}){var f=Cr,Mr,ar;f.ready=new Promise((r,e)=>{Mr=r,ar=e});var Rr=Object.assign({},f),Or="./this.program",we=!0,N="";function _e(r){return f.locateFile?f.locateFile(r,N):N+r}var gr,Ur;typeof document<"u"&&document.currentScript&&(N=document.currentScript.src),Tr&&(N=Tr),N.indexOf("blob:")!==0?N=N.substr(0,N.replace(/[?#].*/,"").lastIndexOf("/")+1):N="",gr=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.send(null),e.responseText},Ur=(r,e,t)=>{var n=new XMLHttpRequest;n.open("GET",r,!0),n.responseType="arraybuffer",n.onload=()=>{if(n.status==200||n.status==0&&n.response){e(n.response);return}t()},n.onerror=t,n.send(null)};var wr=f.print||console.log.bind(console),$=f.printErr||console.error.bind(console);Object.assign(f,Rr),Rr=null,f.arguments&&f.arguments,f.thisProgram&&(Or=f.thisProgram),f.quit&&f.quit;var Q;f.wasmBinary&&(Q=f.wasmBinary),typeof WebAssembly!="object"&&G("no native wasm support detected");var ir,Wr=!1;function Ee(r,e){r||G(e)}var M,O,X,rr,_,k,jr,Lr;function zr(){var r=ir.buffer;f.HEAP8=M=new Int8Array(r),f.HEAP16=X=new Int16Array(r),f.HEAPU8=O=new Uint8Array(r),f.HEAPU16=rr=new Uint16Array(r),f.HEAP32=_=new Int32Array(r),f.HEAPU32=k=new Uint32Array(r),f.HEAPF32=jr=new Float32Array(r),f.HEAPF64=Lr=new Float64Array(r)}var Nr=[],xr=[],Hr=[];function ke(){if(f.preRun)for(typeof f.preRun=="function"&&(f.preRun=[f.preRun]);f.preRun.length;)Ae(f.preRun.shift());Er(Nr)}function be(){!f.noFSInit&&!o.init.initialized&&o.init(),o.ignorePermissions=!1,Er(xr)}function Fe(){if(f.postRun)for(typeof f.postRun=="function"&&(f.postRun=[f.postRun]);f.postRun.length;)Se(f.postRun.shift());Er(Hr)}function Ae(r){Nr.unshift(r)}function De(r){xr.unshift(r)}function Se(r){Hr.unshift(r)}var Y=0,er=null;function en(r){return r}function _r(r){Y++,f.monitorRunDependencies&&f.monitorRunDependencies(Y)}function sr(r){if(Y--,f.monitorRunDependencies&&f.monitorRunDependencies(Y),Y==0&&er){var e=er;er=null,e()}}function G(r){f.onAbort&&f.onAbort(r),r="Aborted("+r+")",$(r),Wr=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw ar(e),e}var Pe="data:application/octet-stream;base64,",Br=r=>r.startsWith(Pe),K;K="boolean.wasm",Br(K)||(K=_e(K));function $r(r){if(r==K&&Q)return new Uint8Array(Q);throw"both async and sync fetching of the wasm failed"}function Te(r){return!Q&&we&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw"failed to load wasm binary file at '"+r+"'";return e.arrayBuffer()}).catch(()=>$r(r)):Promise.resolve().then(()=>$r(r))}function Ir(r,e,t){return Te(r).then(n=>WebAssembly.instantiate(n,e)).then(n=>n).then(t,n=>{$(`failed to asynchronously prepare wasm: ${n}`),G(n)})}function Ce(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!Br(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(s){return $(`wasm streaming compile failed: ${s}`),$("falling back to ArrayBuffer instantiation"),Ir(e,t,n)})}):Ir(e,t,n)}function Me(){var r={a:rn};function e(n,a){return R=n.exports,ir=R.A,zr(),te=R.C,De(R.B),sr(),R}_r();function t(n){e(n.instance)}if(f.instantiateWasm)try{return f.instantiateWasm(r,e)}catch(n){$(`Module.instantiateWasm callback failed with error: ${n}`),ar(n)}return Ce(Q,K,r,t).catch(ar),{}}var E,T,Er=r=>{for(;r.length>0;)r.shift()(f)};f.noExitRuntime;function Re(r){this.excPtr=r,this.ptr=r-24,this.set_type=function(e){k[this.ptr+4>>2]=e},this.get_type=function(){return k[this.ptr+4>>2]},this.set_destructor=function(e){k[this.ptr+8>>2]=e},this.get_destructor=function(){return k[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,M[this.ptr+12>>0]=e},this.get_caught=function(){return M[this.ptr+12>>0]!=0},this.set_rethrown=function(e){e=e?1:0,M[this.ptr+13>>0]=e},this.get_rethrown=function(){return M[this.ptr+13>>0]!=0},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){k[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return k[this.ptr+16>>2]},this.get_exception_ptr=function(){var e=ye(this.get_type());if(e)return k[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Yr=0,Oe=(r,e,t)=>{var n=new Re(r);throw n.init(e,t),Yr=r,Yr},ur={},Vr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function kr(r){return this.fromWireType(_[r>>2])}var J={},V={},lr={},qr,Xr=r=>{throw new qr(r)},Gr=(r,e,t)=>{r.forEach(function(u){lr[u]=e});function n(u){var l=t(u);l.length!==r.length&&Xr("Mismatched type converter count");for(var c=0;c<r.length;++c)z(r[c],l[c])}var a=new Array(e.length),i=[],s=0;e.forEach((u,l)=>{V.hasOwnProperty(u)?a[l]=V[u]:(i.push(u),J.hasOwnProperty(u)||(J[u]=[]),J[u].push(()=>{a[l]=V[u],++s,s===i.length&&n(a)}))}),i.length===0&&n(a)},Ue=r=>{var e=ur[r];delete ur[r];var t=e.elements,n=t.length,a=t.map(u=>u.getterReturnType).concat(t.map(u=>u.setterArgumentType)),i=e.rawConstructor,s=e.rawDestructor;Gr([r],a,function(u){return t.forEach((l,c)=>{var v=u[c],m=l.getter,h=l.getterContext,y=u[c+n],p=l.setter,F=l.setterContext;l.read=D=>v.fromWireType(m(h,D)),l.write=(D,S)=>{var d=[];p(F,D,y.toWireType(d,S)),Vr(d)}}),[{name:e.name,fromWireType:l=>{for(var c=new Array(n),v=0;v<n;++v)c[v]=t[v].read(l);return s(l),c},toWireType:(l,c)=>{if(n!==c.length)throw new TypeError(`Incorrect number of tuple elements for ${e.name}: expected=${n}, actual=${c.length}`);for(var v=i(),m=0;m<n;++m)t[m].write(v,c[m]);return l!==null&&l.push(s,v),v},argPackAdvance:x,readValueFromPointer:kr,destructorFunction:s}]})},We=(r,e,t,n,a)=>{},je=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Kr=r},Kr,U=r=>{for(var e="",t=r;O[t];)e+=Kr[O[t++]];return e},Jr,W=r=>{throw new Jr(r)};function Le(r,e,t={}){var n=e.name;if(r||W(`type "${n}" must have a positive integer typeid pointer`),V.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;W(`Cannot register type '${n}' twice`)}if(V[r]=e,delete lr[r],J.hasOwnProperty(r)){var a=J[r];delete J[r],a.forEach(i=>i())}}function z(r,e,t={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Le(r,e,t)}var x=8,ze=(r,e,t,n)=>{e=U(e),z(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:x,readValueFromPointer:function(a){return this.fromWireType(O[a])},destructorFunction:null})};function Ne(){Object.assign(Zr.prototype,{get(r){return this.allocated[r]},has(r){return this.allocated[r]!==void 0},allocate(r){var e=this.freelist.pop()||this.allocated.length;return this.allocated[e]=r,e},free(r){this.allocated[r]=void 0,this.freelist.push(r)}})}function Zr(){this.allocated=[void 0],this.freelist=[]}var j=new Zr,xe=r=>{r>=j.reserved&&--j.get(r).refcount===0&&j.free(r)},He=()=>{for(var r=0,e=j.reserved;e<j.allocated.length;++e)j.allocated[e]!==void 0&&++r;return r},Be=()=>{j.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),j.reserved=j.allocated.length,f.count_emval_handles=He},Qr={toValue:r=>(r||W("Cannot use deleted val. handle = "+r),j.get(r).value),toHandle:r=>{switch(r){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return j.allocate({refcount:1,value:r})}}},$e=(r,e)=>{e=U(e),z(r,{name:e,fromWireType:t=>{var n=Qr.toValue(t);return xe(t),n},toWireType:(t,n)=>Qr.toHandle(n),argPackAdvance:x,readValueFromPointer:kr,destructorFunction:null})},Ie=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){return r[e].overloadTable.hasOwnProperty(arguments.length)||W(`Function '${t}' 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[n.argCount]=n}},re=(r,e,t)=>{f.hasOwnProperty(r)?((t===void 0||f[r].overloadTable!==void 0&&f[r].overloadTable[t]!==void 0)&&W(`Cannot register public name '${r}' twice`),Ie(f,r,r),f.hasOwnProperty(t)&&W(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),f[r].overloadTable[t]=e):(f[r]=e,t!==void 0&&(f[r].numArguments=t))},Ye=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(M[n>>0])}:function(n){return this.fromWireType(O[n>>0])};case 2:return t?function(n){return this.fromWireType(X[n>>1])}:function(n){return this.fromWireType(rr[n>>1])};case 4:return t?function(n){return this.fromWireType(_[n>>2])}:function(n){return this.fromWireType(k[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Ve=(r,e,t,n)=>{e=U(e);function a(){}a.values={},z(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,s)=>s.value,argPackAdvance:x,readValueFromPointer:Ye(e,t,n),destructorFunction:null}),re(e,a)},fr=(r,e)=>Object.defineProperty(e,"name",{value:r}),ee=r=>{var e=he(r),t=U(e);return B(e),t},qe=(r,e)=>{var t=V[r];return t===void 0&&W(e+" has unknown type "+ee(r)),t},Xe=(r,e,t)=>{var n=qe(r,"enum");e=U(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:fr(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},Ge=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(jr[t>>2])};case 8:return function(t){return this.fromWireType(Lr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Ke=(r,e,t)=>{e=U(e),z(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:x,readValueFromPointer:Ge(e,t),destructorFunction:null})};function Je(r,e){if(!(r instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof r} which is not a function`);var t=fr(r.name||"unknownFunctionName",function(){});t.prototype=r.prototype;var n=new t,a=r.apply(n,e);return a instanceof Object?a:n}function Ze(r,e,t,n,a,i){var s=e.length;s<2&&W("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];for(var u=!1,l=1;l<e.length;++l)if(e[l]!==null&&e[l].destructorFunction===void 0){u=!0;break}for(var c=e[0].name!=="void",v="",m="",l=0;l<s-2;++l)v+=(l!==0?", ":"")+"arg"+l,m+=(l!==0?", ":"")+"arg"+l+"Wired";var h=`
|
|
2
|
+
return function (${v}) {
|
|
3
|
+
if (arguments.length !== ${s-2}) {
|
|
4
|
+
throwBindingError('function ${r} called with ' + arguments.length + ' arguments, expected ${s-2}');
|
|
5
|
+
}`;u&&(h+=`var destructors = [];
|
|
6
|
+
`);for(var y=u?"destructors":"null",p=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],F=[W,n,a,Vr,e[0],e[1]],l=0;l<s-2;++l)h+="var arg"+l+"Wired = argType"+l+".toWireType("+y+", arg"+l+"); // "+e[l+2].name+`
|
|
7
|
+
`,p.push("argType"+l),F.push(e[l+2]);if(h+=(c||i?"var rv = ":"")+"invoker(fn"+(m.length>0?", ":"")+m+`);
|
|
8
|
+
`,u)h+=`runDestructors(destructors);
|
|
9
|
+
`;else for(var l=2;l<e.length;++l){var D=l===1?"thisWired":"arg"+(l-2)+"Wired";e[l].destructorFunction!==null&&(h+=D+"_dtor("+D+"); // "+e[l].name+`
|
|
10
|
+
`,p.push(D+"_dtor"),F.push(e[l].destructorFunction))}c&&(h+=`var ret = retType.fromWireType(rv);
|
|
11
|
+
return ret;
|
|
12
|
+
`),h+=`}
|
|
13
|
+
`,p.push(h);var S=Je(Function,p).apply(null,F);return fr(r,S)}var Qe=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(k[e+n*4>>2]);return t},rt=(r,e,t)=>{f.hasOwnProperty(r)||Xr("Replacing nonexistant public symbol"),f[r].overloadTable!==void 0&&t!==void 0?f[r].overloadTable[t]=e:(f[r]=e,f[r].argCount=t)},et=(r,e,t)=>{var n=f["dynCall_"+r];return t&&t.length?n.apply(null,[e].concat(t)):n.call(null,e)},dr=[],te,ne=r=>{var e=dr[r];return e||(r>=dr.length&&(dr.length=r+1),dr[r]=e=te.get(r)),e},tt=(r,e,t)=>{if(r.includes("j"))return et(r,e,t);var n=ne(e).apply(null,t);return n},nt=(r,e)=>{var t=[];return function(){return t.length=0,Object.assign(t,arguments),tt(r,e,t)}},tr=(r,e)=>{r=U(r);function t(){return r.includes("j")?nt(r,e):ne(e)}var n=t();return typeof n!="function"&&W(`unknown function pointer with signature ${r}: ${e}`),n},ot=(r,e)=>{var t=fr(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+`
|
|
14
|
+
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},oe,at=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!V[i]){if(lr[i]){lr[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new oe(`${r}: `+t.map(ee).join([", "]))},it=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},st=(r,e,t,n,a,i,s)=>{var u=Qe(e,t);r=U(r),r=it(r),a=tr(n,a),re(r,function(){at(`Cannot call ${r} due to unbound types`,u)},e-1),Gr([],u,function(l){var c=[l[0],null].concat(l.slice(1));return rt(r,Ze(r,c,null,a,i,s),e-1),[]})},ut=(r,e,t)=>{switch(e){case 1:return t?n=>M[n>>0]:n=>O[n>>0];case 2:return t?n=>X[n>>1]:n=>rr[n>>1];case 4:return t?n=>_[n>>2]:n=>k[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},lt=(r,e,t,n,a)=>{e=U(e);var i=v=>v;if(n===0){var s=32-8*t;i=v=>v<<s>>>s}var u=e.includes("unsigned"),l=(v,m)=>{},c;u?c=function(v,m){return l(m,this.name),m>>>0}:c=function(v,m){return l(m,this.name),m},z(r,{name:e,fromWireType:i,toWireType:c,argPackAdvance:x,readValueFromPointer:ut(e,t,n!==0),destructorFunction:null})},ft=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(s){var u=k[s>>2],l=k[s+4>>2];return new a(M.buffer,l,u)}t=U(t),z(r,{name:t,fromWireType:i,argPackAdvance:x,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})};function dt(r){return this.fromWireType(k[r>>2])}var br=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,s=0;s<r.length;++s){var u=r.charCodeAt(s);if(u>=55296&&u<=57343){var l=r.charCodeAt(++s);u=65536+((u&1023)<<10)|l&1023}if(u<=127){if(t>=i)break;e[t++]=u}else if(u<=2047){if(t+1>=i)break;e[t++]=192|u>>6,e[t++]=128|u&63}else if(u<=65535){if(t+2>=i)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|u&63}else{if(t+3>=i)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|u&63}}return e[t]=0,t-a},ae=(r,e,t)=>br(r,O,e,t),cr=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},ie=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Z=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&ie)return ie.decode(r.subarray(e,a));for(var i="";e<a;){var s=r[e++];if(!(s&128)){i+=String.fromCharCode(s);continue}var u=r[e++]&63;if((s&224)==192){i+=String.fromCharCode((s&31)<<6|u);continue}var l=r[e++]&63;if((s&240)==224?s=(s&15)<<12|u<<6|l:s=(s&7)<<18|u<<12|l<<6|r[e++]&63,s<65536)i+=String.fromCharCode(s);else{var c=s-65536;i+=String.fromCharCode(55296|c>>10,56320|c&1023)}}return i},nr=(r,e)=>r?Z(O,r,e):"",ct=(r,e)=>{e=U(e);var t=e==="std::string";z(r,{name:e,fromWireType(n){var a=k[n>>2],i=n+4,s;if(t)for(var u=i,l=0;l<=a;++l){var c=i+l;if(l==a||O[c]==0){var v=c-u,m=nr(u,v);s===void 0?s=m:(s+="\0",s+=m),u=c+1}}else{for(var h=new Array(a),l=0;l<a;++l)h[l]=String.fromCharCode(O[i+l]);s=h.join("")}return B(n),s},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,s=typeof a=="string";s||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||W("Cannot pass non-string to std::string"),t&&s?i=cr(a):i=a.length;var u=Sr(4+i+1),l=u+4;if(k[u>>2]=i,t&&s)ae(a,l,i+1);else if(s)for(var c=0;c<i;++c){var v=a.charCodeAt(c);v>255&&(B(l),W("String has UTF-16 code units that do not fit in 8 bits")),O[l+c]=v}else for(var c=0;c<i;++c)O[l+c]=a[c];return n!==null&&n.push(B,u),u},argPackAdvance:x,readValueFromPointer:dt,destructorFunction(n){B(n)}})},se=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,vt=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&rr[n];)++n;if(t=n<<1,t-r>32&&se)return se.decode(O.subarray(r,t));for(var i="",s=0;!(s>=e/2);++s){var u=X[r+s*2>>1];if(u==0)break;i+=String.fromCharCode(u)}return i},ht=(r,e,t)=>{if(t===void 0&&(t=2147483647),t<2)return 0;t-=2;for(var n=e,a=t<r.length*2?t/2:r.length,i=0;i<a;++i){var s=r.charCodeAt(i);X[e>>1]=s,e+=2}return X[e>>1]=0,e-n},mt=r=>r.length*2,pt=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=_[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},yt=(r,e,t)=>{if(t===void 0&&(t=2147483647),t<4)return 0;for(var n=e,a=n+t-4,i=0;i<r.length;++i){var s=r.charCodeAt(i);if(s>=55296&&s<=57343){var u=r.charCodeAt(++i);s=65536+((s&1023)<<10)|u&1023}if(_[e>>2]=s,e+=4,e+4>a)break}return _[e>>2]=0,e-n},gt=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},wt=(r,e,t)=>{t=U(t);var n,a,i,s,u;e===2?(n=vt,a=ht,s=mt,i=()=>rr,u=1):e===4&&(n=pt,a=yt,s=gt,i=()=>k,u=2),z(r,{name:t,fromWireType:l=>{for(var c=k[l>>2],v=i(),m,h=l+4,y=0;y<=c;++y){var p=l+4+y*e;if(y==c||v[p>>u]==0){var F=p-h,D=n(h,F);m===void 0?m=D:(m+="\0",m+=D),h=p+e}}return B(l),m},toWireType:(l,c)=>{typeof c!="string"&&W(`Cannot pass non-string to C++ string type ${t}`);var v=s(c),m=Sr(4+v+e);return k[m>>2]=v>>u,a(c,m+4,v+e),l!==null&&l.push(B,m),m},argPackAdvance:x,readValueFromPointer:kr,destructorFunction(l){B(l)}})},_t=(r,e,t,n,a,i)=>{ur[r]={name:U(e),rawConstructor:tr(t,n),rawDestructor:tr(a,i),elements:[]}},Et=(r,e,t,n,a,i,s,u,l)=>{ur[r].elements.push({getterReturnType:e,getter:tr(t,n),getterContext:a,setterArgumentType:i,setter:tr(s,u),setterContext:l})},kt=(r,e)=>{e=U(e),z(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},bt=()=>{G("")},Ft=(r,e,t)=>O.copyWithin(r,e,e+t),At=()=>2147483648,Dt=r=>{var e=ir.buffer,t=(r-e.byteLength+65535)/65536;try{return ir.grow(t),zr(),1}catch{}},St=r=>{var e=O.length;r>>>=0;var t=At();if(r>t)return!1;for(var n=(l,c)=>l+(c-l%c)%c,a=1;a<=4;a*=2){var i=e*(1+.2/a);i=Math.min(i,r+100663296);var s=Math.min(t,n(Math.max(r,i),65536)),u=Dt(s);if(u)return!0}return!1},Fr={},Pt=()=>Or||"./this.program",or=()=>{if(!or.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:Pt()};for(var t in Fr)Fr[t]===void 0?delete e[t]:e[t]=Fr[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);or.strings=n}return or.strings},Tt=(r,e)=>{for(var t=0;t<r.length;++t)M[e++>>0]=r.charCodeAt(t);M[e>>0]=0},b={isAbs:r=>r.charAt(0)==="/",splitPath:r=>{var e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return e.exec(r).slice(1)},normalizeArray:(r,e)=>{for(var t=0,n=r.length-1;n>=0;n--){var a=r[n];a==="."?r.splice(n,1):a===".."?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift("..");return r},normalize:r=>{var e=b.isAbs(r),t=r.substr(-1)==="/";return r=b.normalizeArray(r.split("/").filter(n=>!!n),!e).join("/"),!r&&!e&&(r="."),r&&t&&(r+="/"),(e?"/":"")+r},dirname:r=>{var e=b.splitPath(r),t=e[0],n=e[1];return!t&&!n?".":(n&&(n=n.substr(0,n.length-1)),t+n)},basename:r=>{if(r==="/")return"/";r=b.normalize(r),r=r.replace(/\/$/,"");var e=r.lastIndexOf("/");return e===-1?r:r.substr(e+1)},join:function(){var r=Array.prototype.slice.call(arguments);return b.normalize(r.join("/"))},join2:(r,e)=>b.normalize(r+"/"+e)},Ct=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return r=>crypto.getRandomValues(r);G("initRandomDevice")},ue=r=>(ue=Ct())(r),H={resolve:function(){for(var r="",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var n=t>=0?arguments[t]:o.cwd();if(typeof n!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";r=n+"/"+r,e=b.isAbs(n)}return r=b.normalizeArray(r.split("/").filter(a=>!!a),!e).join("/"),(e?"/":"")+r||"."},relative:(r,e)=>{r=H.resolve(r).substr(1),e=H.resolve(e).substr(1);function t(c){for(var v=0;v<c.length&&c[v]==="";v++);for(var m=c.length-1;m>=0&&c[m]==="";m--);return v>m?[]:c.slice(v,m-v+1)}for(var n=t(r.split("/")),a=t(e.split("/")),i=Math.min(n.length,a.length),s=i,u=0;u<i;u++)if(n[u]!==a[u]){s=u;break}for(var l=[],u=s;u<n.length;u++)l.push("..");return l=l.concat(a.slice(s)),l.join("/")}},Ar=[];function vr(r,e,t){var n=cr(r)+1,a=new Array(n),i=br(r,a,0,a.length);return e&&(a.length=i),a}var Mt=()=>{if(!Ar.length){var r=null;if(typeof window<"u"&&typeof window.prompt=="function"?(r=window.prompt("Input: "),r!==null&&(r+=`
|
|
15
|
+
`)):typeof readline=="function"&&(r=readline(),r!==null&&(r+=`
|
|
16
|
+
`)),!r)return null;Ar=vr(r,!0)}return Ar.shift()},q={ttys:[],init(){},shutdown(){},register(r,e){q.ttys[r]={input:[],output:[],ops:e},o.registerDevice(r,q.stream_ops)},stream_ops:{open(r){var e=q.ttys[r.node.rdev];if(!e)throw new o.ErrnoError(43);r.tty=e,r.seekable=!1},close(r){r.tty.ops.fsync(r.tty)},fsync(r){r.tty.ops.fsync(r.tty)},read(r,e,t,n,a){if(!r.tty||!r.tty.ops.get_char)throw new o.ErrnoError(60);for(var i=0,s=0;s<n;s++){var u;try{u=r.tty.ops.get_char(r.tty)}catch{throw new o.ErrnoError(29)}if(u===void 0&&i===0)throw new o.ErrnoError(6);if(u==null)break;i++,e[t+s]=u}return i&&(r.node.timestamp=Date.now()),i},write(r,e,t,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,e[t+i])}catch{throw new o.ErrnoError(29)}return n&&(r.node.timestamp=Date.now()),i}},default_tty_ops:{get_char(r){return Mt()},put_char(r,e){e===null||e===10?(wr(Z(r.output,0)),r.output=[]):e!=0&&r.output.push(e)},fsync(r){r.output&&r.output.length>0&&(wr(Z(r.output,0)),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,e,t){return 0},ioctl_tiocgwinsz(r){return[24,80]}},default_tty1_ops:{put_char(r,e){e===null||e===10?($(Z(r.output,0)),r.output=[]):e!=0&&r.output.push(e)},fsync(r){r.output&&r.output.length>0&&($(Z(r.output,0)),r.output=[])}}},le=r=>{G()},w={ops_table:null,mount(r){return w.createNode(null,"/",16895,0)},createNode(r,e,t,n){if(o.isBlkdev(t)||o.isFIFO(t))throw new o.ErrnoError(63);w.ops_table||(w.ops_table={dir:{node:{getattr:w.node_ops.getattr,setattr:w.node_ops.setattr,lookup:w.node_ops.lookup,mknod:w.node_ops.mknod,rename:w.node_ops.rename,unlink:w.node_ops.unlink,rmdir:w.node_ops.rmdir,readdir:w.node_ops.readdir,symlink:w.node_ops.symlink},stream:{llseek:w.stream_ops.llseek}},file:{node:{getattr:w.node_ops.getattr,setattr:w.node_ops.setattr},stream:{llseek:w.stream_ops.llseek,read:w.stream_ops.read,write:w.stream_ops.write,allocate:w.stream_ops.allocate,mmap:w.stream_ops.mmap,msync:w.stream_ops.msync}},link:{node:{getattr:w.node_ops.getattr,setattr:w.node_ops.setattr,readlink:w.node_ops.readlink},stream:{}},chrdev:{node:{getattr:w.node_ops.getattr,setattr:w.node_ops.setattr},stream:o.chrdev_stream_ops}});var a=o.createNode(r,e,t,n);return o.isDir(a.mode)?(a.node_ops=w.ops_table.dir.node,a.stream_ops=w.ops_table.dir.stream,a.contents={}):o.isFile(a.mode)?(a.node_ops=w.ops_table.file.node,a.stream_ops=w.ops_table.file.stream,a.usedBytes=0,a.contents=null):o.isLink(a.mode)?(a.node_ops=w.ops_table.link.node,a.stream_ops=w.ops_table.link.stream):o.isChrdev(a.mode)&&(a.node_ops=w.ops_table.chrdev.node,a.stream_ops=w.ops_table.chrdev.stream),a.timestamp=Date.now(),r&&(r.contents[e]=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,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){var n=1024*1024;e=Math.max(e,t*(t<n?2:1.125)>>>0),t!=0&&(e=Math.max(e,256));var a=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(a.subarray(0,r.usedBytes),0)}},resizeFileStorage(r,e){if(r.usedBytes!=e)if(e==0)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr(r){var e={};return e.dev=o.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,o.isDir(r.mode)?e.size=4096:o.isFile(r.mode)?e.size=r.usedBytes:o.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(r,e){e.mode!==void 0&&(r.mode=e.mode),e.timestamp!==void 0&&(r.timestamp=e.timestamp),e.size!==void 0&&w.resizeFileStorage(r,e.size)},lookup(r,e){throw o.genericErrors[44]},mknod(r,e,t,n){return w.createNode(r,e,t,n)},rename(r,e,t){if(o.isDir(r.mode)){var n;try{n=o.lookupNode(e,t)}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=t,e.contents[t]=r,e.timestamp=r.parent.timestamp,r.parent=e},unlink(r,e){delete r.contents[e],r.timestamp=Date.now()},rmdir(r,e){var t=o.lookupNode(r,e);for(var n in t.contents)throw new o.ErrnoError(55);delete r.contents[e],r.timestamp=Date.now()},readdir(r){var e=[".",".."];for(var t in r.contents)r.contents.hasOwnProperty(t)&&e.push(t);return e},symlink(r,e,t){var n=w.createNode(r,e,41471,0);return n.link=t,n},readlink(r){if(!o.isLink(r.mode))throw new o.ErrnoError(28);return r.link}},stream_ops:{read(r,e,t,n,a){var i=r.node.contents;if(a>=r.node.usedBytes)return 0;var s=Math.min(r.node.usedBytes-a,n);if(s>8&&i.subarray)e.set(i.subarray(a,a+s),t);else for(var u=0;u<s;u++)e[t+u]=i[a+u];return s},write(r,e,t,n,a,i){if(e.buffer===M.buffer&&(i=!1),!n)return 0;var s=r.node;if(s.timestamp=Date.now(),e.subarray&&(!s.contents||s.contents.subarray)){if(i)return s.contents=e.subarray(t,t+n),s.usedBytes=n,n;if(s.usedBytes===0&&a===0)return s.contents=e.slice(t,t+n),s.usedBytes=n,n;if(a+n<=s.usedBytes)return s.contents.set(e.subarray(t,t+n),a),n}if(w.expandFileStorage(s,a+n),s.contents.subarray&&e.subarray)s.contents.set(e.subarray(t,t+n),a);else for(var u=0;u<n;u++)s.contents[a+u]=e[t+u];return s.usedBytes=Math.max(s.usedBytes,a+n),n},llseek(r,e,t){var n=e;if(t===1?n+=r.position:t===2&&o.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new o.ErrnoError(28);return n},allocate(r,e,t){w.expandFileStorage(r.node,e+t),r.node.usedBytes=Math.max(r.node.usedBytes,e+t)},mmap(r,e,t,n,a){if(!o.isFile(r.node.mode))throw new o.ErrnoError(43);var i,s,u=r.node.contents;if(!(a&2)&&u.buffer===M.buffer)s=!1,i=u.byteOffset;else{if((t>0||t+e<u.length)&&(u.subarray?u=u.subarray(t,t+e):u=Array.prototype.slice.call(u,t,t+e)),s=!0,i=le(),!i)throw new o.ErrnoError(48);M.set(u,i)}return{ptr:i,allocated:s}},msync(r,e,t,n,a){return w.stream_ops.write(r,e,0,n,t,!1),0}}},Rt=(r,e,t,n)=>{var a=`al ${r}`;Ur(r,i=>{Ee(i,`Loading data file "${r}" failed (no arrayBuffer).`),e(new Uint8Array(i)),a&&sr()},i=>{if(t)t();else throw`Loading data file "${r}" failed.`}),a&&_r()},Ot=(r,e,t,n,a,i)=>{o.createDataFile(r,e,t,n,a,i)},Ut=f.preloadPlugins||[],Wt=(r,e,t,n)=>{typeof Browser<"u"&&Browser.init();var a=!1;return Ut.forEach(i=>{a||i.canHandle(e)&&(i.handle(r,e,t,n),a=!0)}),a},jt=(r,e,t,n,a,i,s,u,l,c)=>{var v=e?H.resolve(b.join2(r,e)):r;function m(h){function y(p){c&&c(),u||Ot(r,e,p,n,a,l),i&&i(),sr()}Wt(h,v,y,()=>{s&&s(),sr()})||y(h)}_r(),typeof t=="string"?Rt(t,h=>m(h),s):m(t)},Lt=r=>{var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},t=e[r];if(typeof t>"u")throw new Error(`Unknown file open mode: ${r}`);return t},Dr=(r,e)=>{var t=0;return r&&(t|=365),e&&(t|=146),t},o={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(r,e={}){if(r=H.resolve(r),!r)return{path:"",node:null};var t={follow_mount:!0,recurse_count:0};if(e=Object.assign(t,e),e.recurse_count>8)throw new o.ErrnoError(32);for(var n=r.split("/").filter(m=>!!m),a=o.root,i="/",s=0;s<n.length;s++){var u=s===n.length-1;if(u&&e.parent)break;if(a=o.lookupNode(a,n[s]),i=b.join2(i,n[s]),o.isMountpoint(a)&&(!u||u&&e.follow_mount)&&(a=a.mounted.root),!u||e.follow)for(var l=0;o.isLink(a.mode);){var c=o.readlink(i);i=H.resolve(b.dirname(i),c);var v=o.lookupPath(i,{recurse_count:e.recurse_count+1});if(a=v.node,l++>40)throw new o.ErrnoError(32)}}return{path:i,node:a}},getPath(r){for(var e;;){if(o.isRoot(r)){var t=r.mount.mountpoint;return e?t[t.length-1]!=="/"?`${t}/${e}`:t+e:t}e=e?`${r.name}/${e}`:r.name,r=r.parent}},hashName(r,e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%o.nameTable.length},hashAddNode(r){var e=o.hashName(r.parent.id,r.name);r.name_next=o.nameTable[e],o.nameTable[e]=r},hashRemoveNode(r){var e=o.hashName(r.parent.id,r.name);if(o.nameTable[e]===r)o.nameTable[e]=r.name_next;else for(var t=o.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode(r,e){var t=o.mayLookup(r);if(t)throw new o.ErrnoError(t,r);for(var n=o.hashName(r.id,e),a=o.nameTable[n];a;a=a.name_next){var i=a.name;if(a.parent.id===r.id&&i===e)return a}return o.lookup(r,e)},createNode(r,e,t,n){var a=new o.FSNode(r,e,t,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 e=["r","w","rw"][r&3];return r&512&&(e+="w"),e},nodePermissions(r,e){return o.ignorePermissions?0:e.includes("r")&&!(r.mode&292)||e.includes("w")&&!(r.mode&146)||e.includes("x")&&!(r.mode&73)?2:0},mayLookup(r){var e=o.nodePermissions(r,"x");return e||(r.node_ops.lookup?0:2)},mayCreate(r,e){try{var t=o.lookupNode(r,e);return 20}catch{}return o.nodePermissions(r,"wx")},mayDelete(r,e,t){var n;try{n=o.lookupNode(r,e)}catch(i){return i.errno}var a=o.nodePermissions(r,"wx");if(a)return a;if(t){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,e){return r?o.isLink(r.mode)?32:o.isDir(r.mode)&&(o.flagsToPermissionString(e)!=="r"||e&512)?31:o.nodePermissions(r,o.flagsToPermissionString(e)):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 e=o.getStream(r);if(!e)throw new o.ErrnoError(8);return e},getStream:r=>o.streams[r],createStream(r,e=-1){return o.FSStream||(o.FSStream=function(){this.shared={}},o.FSStream.prototype={},Object.defineProperties(o.FSStream.prototype,{object:{get(){return this.node},set(t){this.node=t}},isRead:{get(){return(this.flags&2097155)!==1}},isWrite:{get(){return(this.flags&2097155)!==0}},isAppend:{get(){return this.flags&1024}},flags:{get(){return this.shared.flags},set(t){this.shared.flags=t}},position:{get(){return this.shared.position},set(t){this.shared.position=t}}})),r=Object.assign(new o.FSStream,r),e==-1&&(e=o.nextfd()),r.fd=e,o.streams[e]=r,r},closeStream(r){o.streams[r]=null},chrdev_stream_ops:{open(r){var e=o.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open&&r.stream_ops.open(r)},llseek(){throw new o.ErrnoError(70)}},major:r=>r>>8,minor:r=>r&255,makedev:(r,e)=>r<<8|e,registerDevice(r,e){o.devices[r]={stream_ops:e}},getDevice:r=>o.devices[r],getMounts(r){for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push.apply(t,n.mounts)}return e},syncfs(r,e){typeof r=="function"&&(e=r,r=!1),o.syncFSRequests++,o.syncFSRequests>1&&$(`warning: ${o.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=o.getMounts(o.root.mount),n=0;function a(s){return o.syncFSRequests--,e(s)}function i(s){if(s)return i.errored?void 0:(i.errored=!0,a(s));++n>=t.length&&a(null)}t.forEach(s=>{if(!s.type.syncfs)return i(null);s.type.syncfs(s,r,i)})},mount(r,e,t){var n=t==="/",a=!t,i;if(n&&o.root)throw new o.ErrnoError(10);if(!n&&!a){var s=o.lookupPath(t,{follow_mount:!1});if(t=s.path,i=s.node,o.isMountpoint(i))throw new o.ErrnoError(10);if(!o.isDir(i.mode))throw new o.ErrnoError(54)}var u={type:r,opts:e,mountpoint:t,mounts:[]},l=r.mount(u);return l.mount=u,u.root=l,n?o.root=l:i&&(i.mounted=u,i.mount&&i.mount.mounts.push(u)),l},unmount(r){var e=o.lookupPath(r,{follow_mount:!1});if(!o.isMountpoint(e.node))throw new o.ErrnoError(28);var t=e.node,n=t.mounted,a=o.getMounts(n);Object.keys(o.nameTable).forEach(s=>{for(var u=o.nameTable[s];u;){var l=u.name_next;a.includes(u.mount)&&o.destroyNode(u),u=l}}),t.mounted=null;var i=t.mount.mounts.indexOf(n);t.mount.mounts.splice(i,1)},lookup(r,e){return r.node_ops.lookup(r,e)},mknod(r,e,t){var n=o.lookupPath(r,{parent:!0}),a=n.node,i=b.basename(r);if(!i||i==="."||i==="..")throw new o.ErrnoError(28);var s=o.mayCreate(a,i);if(s)throw new o.ErrnoError(s);if(!a.node_ops.mknod)throw new o.ErrnoError(63);return a.node_ops.mknod(a,i,e,t)},create(r,e){return e=e!==void 0?e:438,e&=4095,e|=32768,o.mknod(r,e,0)},mkdir(r,e){return e=e!==void 0?e:511,e&=1023,e|=16384,o.mknod(r,e,0)},mkdirTree(r,e){for(var t=r.split("/"),n="",a=0;a<t.length;++a)if(t[a]){n+="/"+t[a];try{o.mkdir(n,e)}catch(i){if(i.errno!=20)throw i}}},mkdev(r,e,t){return typeof t>"u"&&(t=e,e=438),e|=8192,o.mknod(r,e,t)},symlink(r,e){if(!H.resolve(r))throw new o.ErrnoError(44);var t=o.lookupPath(e,{parent:!0}),n=t.node;if(!n)throw new o.ErrnoError(44);var a=b.basename(e),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,e){var t=b.dirname(r),n=b.dirname(e),a=b.basename(r),i=b.basename(e),s,u,l;if(s=o.lookupPath(r,{parent:!0}),u=s.node,s=o.lookupPath(e,{parent:!0}),l=s.node,!u||!l)throw new o.ErrnoError(44);if(u.mount!==l.mount)throw new o.ErrnoError(75);var c=o.lookupNode(u,a),v=H.relative(r,n);if(v.charAt(0)!==".")throw new o.ErrnoError(28);if(v=H.relative(e,t),v.charAt(0)!==".")throw new o.ErrnoError(55);var m;try{m=o.lookupNode(l,i)}catch{}if(c!==m){var h=o.isDir(c.mode),y=o.mayDelete(u,a,h);if(y)throw new o.ErrnoError(y);if(y=m?o.mayDelete(l,i,h):o.mayCreate(l,i),y)throw new o.ErrnoError(y);if(!u.node_ops.rename)throw new o.ErrnoError(63);if(o.isMountpoint(c)||m&&o.isMountpoint(m))throw new o.ErrnoError(10);if(l!==u&&(y=o.nodePermissions(u,"w"),y))throw new o.ErrnoError(y);o.hashRemoveNode(c);try{u.node_ops.rename(c,l,i)}catch(p){throw p}finally{o.hashAddNode(c)}}},rmdir(r){var e=o.lookupPath(r,{parent:!0}),t=e.node,n=b.basename(r),a=o.lookupNode(t,n),i=o.mayDelete(t,n,!0);if(i)throw new o.ErrnoError(i);if(!t.node_ops.rmdir)throw new o.ErrnoError(63);if(o.isMountpoint(a))throw new o.ErrnoError(10);t.node_ops.rmdir(t,n),o.destroyNode(a)},readdir(r){var e=o.lookupPath(r,{follow:!0}),t=e.node;if(!t.node_ops.readdir)throw new o.ErrnoError(54);return t.node_ops.readdir(t)},unlink(r){var e=o.lookupPath(r,{parent:!0}),t=e.node;if(!t)throw new o.ErrnoError(44);var n=b.basename(r),a=o.lookupNode(t,n),i=o.mayDelete(t,n,!1);if(i)throw new o.ErrnoError(i);if(!t.node_ops.unlink)throw new o.ErrnoError(63);if(o.isMountpoint(a))throw new o.ErrnoError(10);t.node_ops.unlink(t,n),o.destroyNode(a)},readlink(r){var e=o.lookupPath(r),t=e.node;if(!t)throw new o.ErrnoError(44);if(!t.node_ops.readlink)throw new o.ErrnoError(28);return H.resolve(o.getPath(t.parent),t.node_ops.readlink(t))},stat(r,e){var t=o.lookupPath(r,{follow:!e}),n=t.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,e,t){var n;if(typeof r=="string"){var a=o.lookupPath(r,{follow:!t});n=a.node}else n=r;if(!n.node_ops.setattr)throw new o.ErrnoError(63);n.node_ops.setattr(n,{mode:e&4095|n.mode&-4096,timestamp:Date.now()})},lchmod(r,e){o.chmod(r,e,!0)},fchmod(r,e){var t=o.getStreamChecked(r);o.chmod(t.node,e)},chown(r,e,t,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,e,t){o.chown(r,e,t,!0)},fchown(r,e,t){var n=o.getStreamChecked(r);o.chown(n.node,e,t)},truncate(r,e){if(e<0)throw new o.ErrnoError(28);var t;if(typeof r=="string"){var n=o.lookupPath(r,{follow:!0});t=n.node}else t=r;if(!t.node_ops.setattr)throw new o.ErrnoError(63);if(o.isDir(t.mode))throw new o.ErrnoError(31);if(!o.isFile(t.mode))throw new o.ErrnoError(28);var a=o.nodePermissions(t,"w");if(a)throw new o.ErrnoError(a);t.node_ops.setattr(t,{size:e,timestamp:Date.now()})},ftruncate(r,e){var t=o.getStreamChecked(r);if((t.flags&2097155)===0)throw new o.ErrnoError(28);o.truncate(t.node,e)},utime(r,e,t){var n=o.lookupPath(r,{follow:!0}),a=n.node;a.node_ops.setattr(a,{timestamp:Math.max(e,t)})},open(r,e,t){if(r==="")throw new o.ErrnoError(44);e=typeof e=="string"?Lt(e):e,t=typeof t>"u"?438:t,e&64?t=t&4095|32768:t=0;var n;if(typeof r=="object")n=r;else{r=b.normalize(r);try{var a=o.lookupPath(r,{follow:!(e&131072)});n=a.node}catch{}}var i=!1;if(e&64)if(n){if(e&128)throw new o.ErrnoError(20)}else n=o.mknod(r,t,0),i=!0;if(!n)throw new o.ErrnoError(44);if(o.isChrdev(n.mode)&&(e&=-513),e&65536&&!o.isDir(n.mode))throw new o.ErrnoError(54);if(!i){var s=o.mayOpen(n,e);if(s)throw new o.ErrnoError(s)}e&512&&!i&&o.truncate(n,0),e&=-131713;var u=o.createStream({node:n,path:o.getPath(n),flags:e,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return u.stream_ops.open&&u.stream_ops.open(u),f.logReadFiles&&!(e&1)&&(o.readFiles||(o.readFiles={}),r in o.readFiles||(o.readFiles[r]=1)),u},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(e){throw e}finally{o.closeStream(r.fd)}r.fd=null},isClosed(r){return r.fd===null},llseek(r,e,t){if(o.isClosed(r))throw new o.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new o.ErrnoError(70);if(t!=0&&t!=1&&t!=2)throw new o.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read(r,e,t,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 s=r.stream_ops.read(r,e,t,n,a);return i||(r.position+=s),s},write(r,e,t,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)===0)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 s=typeof a<"u";if(!s)a=r.position;else if(!r.seekable)throw new o.ErrnoError(70);var u=r.stream_ops.write(r,e,t,n,a,i);return s||(r.position+=u),u},allocate(r,e,t){if(o.isClosed(r))throw new o.ErrnoError(8);if(e<0||t<=0)throw new o.ErrnoError(28);if((r.flags&2097155)===0)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,e,t)},mmap(r,e,t,n,a){if((n&2)!==0&&(a&2)===0&&(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);return r.stream_ops.mmap(r,e,t,n,a)},msync(r,e,t,n,a){return r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,a):0},munmap:r=>0,ioctl(r,e,t){if(!r.stream_ops.ioctl)throw new o.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile(r,e={}){if(e.flags=e.flags||0,e.encoding=e.encoding||"binary",e.encoding!=="utf8"&&e.encoding!=="binary")throw new Error(`Invalid encoding type "${e.encoding}"`);var t,n=o.open(r,e.flags),a=o.stat(r),i=a.size,s=new Uint8Array(i);return o.read(n,s,0,i,0),e.encoding==="utf8"?t=Z(s,0):e.encoding==="binary"&&(t=s),o.close(n),t},writeFile(r,e,t={}){t.flags=t.flags||577;var n=o.open(r,t.flags,t.mode);if(typeof e=="string"){var a=new Uint8Array(cr(e)+1),i=br(e,a,0,a.length);o.write(n,a,0,i,void 0,t.canOwn)}else if(ArrayBuffer.isView(e))o.write(n,e,0,e.byteLength,void 0,t.canOwn);else throw new Error("Unsupported data type");o.close(n)},cwd:()=>o.currentPath,chdir(r){var e=o.lookupPath(r,{follow:!0});if(e.node===null)throw new o.ErrnoError(44);if(!o.isDir(e.node.mode))throw new o.ErrnoError(54);var t=o.nodePermissions(e.node,"x");if(t)throw new o.ErrnoError(t);o.currentPath=e.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,s,u)=>s}),o.mkdev("/dev/null",o.makedev(1,3)),q.register(o.makedev(5,0),q.default_tty_ops),q.register(o.makedev(6,0),q.default_tty1_ops),o.mkdev("/dev/tty",o.makedev(5,0)),o.mkdev("/dev/tty1",o.makedev(6,0));var r=new Uint8Array(1024),e=0,t=()=>(e===0&&(e=ue(r).byteLength),r[--e]);o.createDevice("/dev","random",t),o.createDevice("/dev","urandom",t),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 e=o.createNode(r,"fd",16895,73);return e.node_ops={lookup(t,n){var a=+n,i=o.getStreamChecked(a),s={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>i.path}};return s.parent=s,s}},e}},{},"/proc/self/fd")},createStandardStreams(){f.stdin?o.createDevice("/dev","stdin",f.stdin):o.symlink("/dev/tty","/dev/stdin"),f.stdout?o.createDevice("/dev","stdout",null,f.stdout):o.symlink("/dev/tty","/dev/stdout"),f.stderr?o.createDevice("/dev","stderr",null,f.stderr):o.symlink("/dev/tty1","/dev/stderr"),o.open("/dev/stdin",0),o.open("/dev/stdout",1),o.open("/dev/stderr",1)},ensureErrnoError(){o.ErrnoError||(o.ErrnoError=function(e,t){this.name="ErrnoError",this.node=t,this.setErrno=function(n){this.errno=n},this.setErrno(e),this.message="FS error"},o.ErrnoError.prototype=new Error,o.ErrnoError.prototype.constructor=o.ErrnoError,[44].forEach(r=>{o.genericErrors[r]=new o.ErrnoError(r),o.genericErrors[r].stack="<generic error, no stack>"}))},staticInit(){o.ensureErrnoError(),o.nameTable=new Array(4096),o.mount(w,{},"/"),o.createDefaultDirectories(),o.createDefaultDevices(),o.createSpecialDirectories(),o.filesystems={MEMFS:w}},init(r,e,t){o.init.initialized=!0,o.ensureErrnoError(),f.stdin=r||f.stdin,f.stdout=e||f.stdout,f.stderr=t||f.stderr,o.createStandardStreams()},quit(){o.init.initialized=!1;for(var r=0;r<o.streams.length;r++){var e=o.streams[r];e&&o.close(e)}},findObject(r,e){var t=o.analyzePath(r,e);return t.exists?t.object:null},analyzePath(r,e){try{var t=o.lookupPath(r,{follow:!e});r=t.path}catch{}var n={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var t=o.lookupPath(r,{parent:!0});n.parentExists=!0,n.parentPath=t.path,n.parentObject=t.node,n.name=b.basename(r),t=o.lookupPath(r,{follow:!e}),n.exists=!0,n.path=t.path,n.object=t.node,n.name=t.node.name,n.isRoot=t.path==="/"}catch(a){n.error=a.errno}return n},createPath(r,e,t,n){r=typeof r=="string"?r:o.getPath(r);for(var a=e.split("/").reverse();a.length;){var i=a.pop();if(i){var s=b.join2(r,i);try{o.mkdir(s)}catch{}r=s}}return s},createFile(r,e,t,n,a){var i=b.join2(typeof r=="string"?r:o.getPath(r),e),s=Dr(n,a);return o.create(i,s)},createDataFile(r,e,t,n,a,i){var s=e;r&&(r=typeof r=="string"?r:o.getPath(r),s=e?b.join2(r,e):r);var u=Dr(n,a),l=o.create(s,u);if(t){if(typeof t=="string"){for(var c=new Array(t.length),v=0,m=t.length;v<m;++v)c[v]=t.charCodeAt(v);t=c}o.chmod(l,u|146);var h=o.open(l,577);o.write(h,t,0,t.length,0,i),o.close(h),o.chmod(l,u)}},createDevice(r,e,t,n){var a=b.join2(typeof r=="string"?r:o.getPath(r),e),i=Dr(!!t,!!n);o.createDevice.major||(o.createDevice.major=64);var s=o.makedev(o.createDevice.major++,0);return o.registerDevice(s,{open(u){u.seekable=!1},close(u){n&&n.buffer&&n.buffer.length&&n(10)},read(u,l,c,v,m){for(var h=0,y=0;y<v;y++){var p;try{p=t()}catch{throw new o.ErrnoError(29)}if(p===void 0&&h===0)throw new o.ErrnoError(6);if(p==null)break;h++,l[c+y]=p}return h&&(u.node.timestamp=Date.now()),h},write(u,l,c,v,m){for(var h=0;h<v;h++)try{n(l[c+h])}catch{throw new o.ErrnoError(29)}return v&&(u.node.timestamp=Date.now()),h}}),o.mkdev(a,i,s)},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.");if(gr)try{r.contents=vr(gr(r.url),!0),r.usedBytes=r.contents.length}catch{throw new o.ErrnoError(29)}else throw new Error("Cannot load without read() or XMLHttpRequest.")},createLazyFile(r,e,t,n,a){function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(y){if(!(y>this.length-1||y<0)){var p=y%this.chunkSize,F=y/this.chunkSize|0;return this.getter(F)[p]}},i.prototype.setDataGetter=function(y){this.getter=y},i.prototype.cacheLength=function(){var y=new XMLHttpRequest;if(y.open("HEAD",t,!1),y.send(null),!(y.status>=200&&y.status<300||y.status===304))throw new Error("Couldn't load "+t+". Status: "+y.status);var p=Number(y.getResponseHeader("Content-length")),F,D=(F=y.getResponseHeader("Accept-Ranges"))&&F==="bytes",S=(F=y.getResponseHeader("Content-Encoding"))&&F==="gzip",d=1024*1024;D||(d=p);var g=(A,L)=>{if(A>L)throw new Error("invalid range ("+A+", "+L+") or no bytes requested!");if(L>p-1)throw new Error("only "+p+" bytes available! programmer error!");var P=new XMLHttpRequest;if(P.open("GET",t,!1),p!==d&&P.setRequestHeader("Range","bytes="+A+"-"+L),P.responseType="arraybuffer",P.overrideMimeType&&P.overrideMimeType("text/plain; charset=x-user-defined"),P.send(null),!(P.status>=200&&P.status<300||P.status===304))throw new Error("Couldn't load "+t+". Status: "+P.status);return P.response!==void 0?new Uint8Array(P.response||[]):vr(P.responseText||"",!0)},C=this;C.setDataGetter(A=>{var L=A*d,P=(A+1)*d-1;if(P=Math.min(P,p-1),typeof C.chunks[A]>"u"&&(C.chunks[A]=g(L,P)),typeof C.chunks[A]>"u")throw new Error("doXHR failed!");return C.chunks[A]}),(S||!p)&&(d=p=1,p=this.getter(0).length,d=p,wr("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=p,this._chunkSize=d,this.lengthKnown=!0},typeof XMLHttpRequest<"u"){throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var s,u}else var u={isDevice:!1,url:t};var l=o.createFile(r,e,u,n,a);u.contents?l.contents=u.contents:u.url&&(l.contents=null,l.url=u.url),Object.defineProperties(l,{usedBytes:{get:function(){return this.contents.length}}});var c={},v=Object.keys(l.stream_ops);v.forEach(h=>{var y=l.stream_ops[h];c[h]=function(){return o.forceLoadFile(l),y.apply(null,arguments)}});function m(h,y,p,F,D){var S=h.node.contents;if(D>=S.length)return 0;var d=Math.min(S.length-D,F);if(S.slice)for(var g=0;g<d;g++)y[p+g]=S[D+g];else for(var g=0;g<d;g++)y[p+g]=S.get(D+g);return d}return c.read=(h,y,p,F,D)=>(o.forceLoadFile(l),m(h,y,p,F,D)),c.mmap=(h,y,p,F,D)=>{o.forceLoadFile(l);var S=le();if(!S)throw new o.ErrnoError(48);return m(h,M,S,y,p),{ptr:S,allocated:!0}},l.stream_ops=c,l}},I={DEFAULT_POLLMASK:5,calculateAt(r,e,t){if(b.isAbs(e))return e;var n;if(r===-100)n=o.cwd();else{var a=I.getStreamFromFD(r);n=a.path}if(e.length==0){if(!t)throw new o.ErrnoError(44);return n}return b.join2(n,e)},doStat(r,e,t){try{var n=r(e)}catch(u){if(u&&u.node&&b.normalize(e)!==b.normalize(o.getPath(u.node)))return-54;throw u}_[t>>2]=n.dev,_[t+4>>2]=n.mode,k[t+8>>2]=n.nlink,_[t+12>>2]=n.uid,_[t+16>>2]=n.gid,_[t+20>>2]=n.rdev,T=[n.size>>>0,(E=n.size,+Math.abs(E)>=1?E>0?+Math.floor(E/4294967296)>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)],_[t+24>>2]=T[0],_[t+28>>2]=T[1],_[t+32>>2]=4096,_[t+36>>2]=n.blocks;var a=n.atime.getTime(),i=n.mtime.getTime(),s=n.ctime.getTime();return T=[Math.floor(a/1e3)>>>0,(E=Math.floor(a/1e3),+Math.abs(E)>=1?E>0?+Math.floor(E/4294967296)>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)],_[t+40>>2]=T[0],_[t+44>>2]=T[1],k[t+48>>2]=a%1e3*1e3,T=[Math.floor(i/1e3)>>>0,(E=Math.floor(i/1e3),+Math.abs(E)>=1?E>0?+Math.floor(E/4294967296)>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)],_[t+56>>2]=T[0],_[t+60>>2]=T[1],k[t+64>>2]=i%1e3*1e3,T=[Math.floor(s/1e3)>>>0,(E=Math.floor(s/1e3),+Math.abs(E)>=1?E>0?+Math.floor(E/4294967296)>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)],_[t+72>>2]=T[0],_[t+76>>2]=T[1],k[t+80>>2]=s%1e3*1e3,T=[n.ino>>>0,(E=n.ino,+Math.abs(E)>=1?E>0?+Math.floor(E/4294967296)>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)],_[t+88>>2]=T[0],_[t+92>>2]=T[1],0},doMsync(r,e,t,n,a){if(!o.isFile(e.node.mode))throw new o.ErrnoError(43);if(n&2)return 0;var i=O.slice(r,r+t);o.msync(e,i,a,t,n)},varargs:void 0,get(){var r=_[+I.varargs>>2];return I.varargs+=4,r},getp(){return I.get()},getStr(r){var e=nr(r);return e},getStreamFromFD(r){var e=o.getStreamChecked(r);return e}},zt=(r,e)=>{var t=0;return or().forEach((n,a)=>{var i=e+t;k[r+a*4>>2]=i,Tt(n,i),t+=n.length+1}),0},Nt=(r,e)=>{var t=or();k[r>>2]=t.length;var n=0;return t.forEach(a=>n+=a.length+1),k[e>>2]=n,0};function xt(r){try{var e=I.getStreamFromFD(r);return o.close(e),0}catch(t){if(typeof o>"u"||t.name!=="ErrnoError")throw t;return t.errno}}var Ht=(r,e,t,n)=>{for(var a=0,i=0;i<t;i++){var s=k[e>>2],u=k[e+4>>2];e+=8;var l=o.read(r,M,s,u,n);if(l<0)return-1;if(a+=l,l<u)break}return a};function Bt(r,e,t,n){try{var a=I.getStreamFromFD(r),i=Ht(a,e,t);return k[n>>2]=i,0}catch(s){if(typeof o>"u"||s.name!=="ErrnoError")throw s;return s.errno}}var $t=(r,e)=>e+2097152>>>0<4194305-!!r?(r>>>0)+e*4294967296:NaN;function It(r,e,t,n,a){var i=$t(e,t);try{if(isNaN(i))return 61;var s=I.getStreamFromFD(r);return o.llseek(s,i,n),T=[s.position>>>0,(E=s.position,+Math.abs(E)>=1?E>0?+Math.floor(E/4294967296)>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)],_[a>>2]=T[0],_[a+4>>2]=T[1],s.getdents&&i===0&&n===0&&(s.getdents=null),0}catch(u){if(typeof o>"u"||u.name!=="ErrnoError")throw u;return u.errno}}var Yt=(r,e,t,n)=>{for(var a=0,i=0;i<t;i++){var s=k[e>>2],u=k[e+4>>2];e+=8;var l=o.write(r,M,s,u,n);if(l<0)return-1;a+=l}return a};function Vt(r,e,t,n){try{var a=I.getStreamFromFD(r),i=Yt(a,e,t);return k[n>>2]=i,0}catch(s){if(typeof o>"u"||s.name!=="ErrnoError")throw s;return s.errno}}var hr=r=>r%4===0&&(r%100!==0||r%400===0),qt=(r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t},fe=[31,29,31,30,31,30,31,31,30,31,30,31],de=[31,28,31,30,31,30,31,31,30,31,30,31],Xt=(r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=hr(t.getFullYear()),a=t.getMonth(),i=(n?fe:de)[a];if(e>i-t.getDate())e-=i-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+e),t}return t},ce=(r,e)=>{M.set(r,e)},Gt=(r,e,t,n)=>{var a=k[n+40>>2],i={tm_sec:_[n>>2],tm_min:_[n+4>>2],tm_hour:_[n+8>>2],tm_mday:_[n+12>>2],tm_mon:_[n+16>>2],tm_year:_[n+20>>2],tm_wday:_[n+24>>2],tm_yday:_[n+28>>2],tm_isdst:_[n+32>>2],tm_gmtoff:_[n+36>>2],tm_zone:a?nr(a):""},s=nr(t),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 l in u)s=s.replace(new RegExp(l,"g"),u[l]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function m(d,g,C){for(var A=typeof d=="number"?d.toString():d||"";A.length<g;)A=C[0]+A;return A}function h(d,g){return m(d,g,"0")}function y(d,g){function C(L){return L<0?-1:L>0?1:0}var A;return(A=C(d.getFullYear()-g.getFullYear()))===0&&(A=C(d.getMonth()-g.getMonth()))===0&&(A=C(d.getDate()-g.getDate())),A}function p(d){switch(d.getDay()){case 0:return new Date(d.getFullYear()-1,11,29);case 1:return d;case 2:return new Date(d.getFullYear(),0,3);case 3:return new Date(d.getFullYear(),0,2);case 4:return new Date(d.getFullYear(),0,1);case 5:return new Date(d.getFullYear()-1,11,31);case 6:return new Date(d.getFullYear()-1,11,30)}}function F(d){var g=Xt(new Date(d.tm_year+1900,0,1),d.tm_yday),C=new Date(g.getFullYear(),0,4),A=new Date(g.getFullYear()+1,0,4),L=p(C),P=p(A);return y(L,g)<=0?y(P,g)<=0?g.getFullYear()+1:g.getFullYear():g.getFullYear()-1}var D={"%a":d=>c[d.tm_wday].substring(0,3),"%A":d=>c[d.tm_wday],"%b":d=>v[d.tm_mon].substring(0,3),"%B":d=>v[d.tm_mon],"%C":d=>{var g=d.tm_year+1900;return h(g/100|0,2)},"%d":d=>h(d.tm_mday,2),"%e":d=>m(d.tm_mday,2," "),"%g":d=>F(d).toString().substring(2),"%G":d=>F(d),"%H":d=>h(d.tm_hour,2),"%I":d=>{var g=d.tm_hour;return g==0?g=12:g>12&&(g-=12),h(g,2)},"%j":d=>h(d.tm_mday+qt(hr(d.tm_year+1900)?fe:de,d.tm_mon-1),3),"%m":d=>h(d.tm_mon+1,2),"%M":d=>h(d.tm_min,2),"%n":()=>`
|
|
17
|
+
`,"%p":d=>d.tm_hour>=0&&d.tm_hour<12?"AM":"PM","%S":d=>h(d.tm_sec,2),"%t":()=>" ","%u":d=>d.tm_wday||7,"%U":d=>{var g=d.tm_yday+7-d.tm_wday;return h(Math.floor(g/7),2)},"%V":d=>{var g=Math.floor((d.tm_yday+7-(d.tm_wday+6)%7)/7);if((d.tm_wday+371-d.tm_yday-2)%7<=2&&g++,g){if(g==53){var A=(d.tm_wday+371-d.tm_yday)%7;A!=4&&(A!=3||!hr(d.tm_year))&&(g=1)}}else{g=52;var C=(d.tm_wday+7-d.tm_yday-1)%7;(C==4||C==5&&hr(d.tm_year%400-1))&&g++}return h(g,2)},"%w":d=>d.tm_wday,"%W":d=>{var g=d.tm_yday+7-(d.tm_wday+6)%7;return h(Math.floor(g/7),2)},"%y":d=>(d.tm_year+1900).toString().substring(2),"%Y":d=>d.tm_year+1900,"%z":d=>{var g=d.tm_gmtoff,C=g>=0;return g=Math.abs(g)/60,g=g/60*100+g%60,(C?"+":"-")+("0000"+g).slice(-4)},"%Z":d=>d.tm_zone,"%%":()=>"%"};s=s.replace(/%%/g,"\0\0");for(var l in D)s.includes(l)&&(s=s.replace(new RegExp(l,"g"),D[l](i)));s=s.replace(/\0\0/g,"%");var S=vr(s,!1);return S.length>e?0:(ce(S,r),S.length-1)},Kt=(r,e,t,n,a)=>Gt(r,e,t,n),Jt=r=>{var e=f["_"+r];return e},Zt=r=>{var e=cr(r)+1,t=Pr(e);return ae(r,t,e),t},Qt=(r,e,t,n,a)=>{var i={string:p=>{var F=0;return p!=null&&p!==0&&(F=Zt(p)),F},array:p=>{var F=Pr(p.length);return ce(p,F),F}};function s(p){return e==="string"?nr(p):e==="boolean"?!!p:p}var u=Jt(r),l=[],c=0;if(n)for(var v=0;v<n.length;v++){var m=i[t[v]];m?(c===0&&(c=me()),l[v]=m(n[v])):l[v]=n[v]}var h=u.apply(null,l);function y(p){return c!==0&&pe(c),s(p)}return h=y(h),h};qr=f.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},je(),Jr=f.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Ne(),Be(),oe=f.UnboundTypeError=ot(Error,"UnboundTypeError");var ve=function(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.mounted=null,this.id=o.nextInode++,this.name=e,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},mr=365,pr=146;Object.defineProperties(ve.prototype,{read:{get:function(){return(this.mode&mr)===mr},set:function(r){r?this.mode|=mr:this.mode&=~mr}},write:{get:function(){return(this.mode&pr)===pr},set:function(r){r?this.mode|=pr:this.mode&=~pr}},isFolder:{get:function(){return o.isDir(this.mode)}},isDevice:{get:function(){return o.isChrdev(this.mode)}}}),o.FSNode=ve,o.createPreloadedFile=jt,o.staticInit();var rn={a:Oe,m:Ue,p:We,k:ze,y:$e,z:Ve,f:Xe,j:Ke,d:st,e:lt,b:ft,h:ct,g:wt,n:_t,c:Et,l:kt,i:bt,x:Ft,u:St,r:zt,s:Nt,w:xt,t:Bt,o:It,v:Vt,q:Kt},R=Me(),he=r=>(he=R.D)(r),Sr=f._malloc=r=>(Sr=f._malloc=R.E)(r),B=f._free=r=>(B=f._free=R.F)(r),me=()=>(me=R.G)(),pe=r=>(pe=R.H)(r),Pr=r=>(Pr=R.I)(r),ye=r=>(ye=R.J)(r);f.dynCall_jiji=(r,e,t,n,a)=>(f.dynCall_jiji=R.K)(r,e,t,n,a),f.dynCall_viijii=(r,e,t,n,a,i,s)=>(f.dynCall_viijii=R.L)(r,e,t,n,a,i,s),f.dynCall_iiiiij=(r,e,t,n,a,i,s)=>(f.dynCall_iiiiij=R.M)(r,e,t,n,a,i,s),f.dynCall_iiiiijj=(r,e,t,n,a,i,s,u,l)=>(f.dynCall_iiiiijj=R.N)(r,e,t,n,a,i,s,u,l),f.dynCall_iiiiiijj=(r,e,t,n,a,i,s,u,l,c)=>(f.dynCall_iiiiiijj=R.O)(r,e,t,n,a,i,s,u,l,c),f.ccall=Qt;var yr;er=function r(){yr||ge(),yr||(er=r)};function ge(){if(Y>0||(ke(),Y>0))return;function r(){yr||(yr=!0,f.calledRun=!0,!Wr&&(be(),Mr(f),f.onRuntimeInitialized&&f.onRuntimeInitialized(),Fe()))}f.setStatus?(f.setStatus("Running..."),setTimeout(function(){setTimeout(function(){f.setStatus("")},1),r()},1)):r()}if(f.preInit)for(typeof f.preInit=="function"&&(f.preInit=[f.preInit]);f.preInit.length>0;)f.preInit.pop()();return ge(),Cr.ready})})();export{tn as default};
|
|
18
|
+
//# sourceMappingURL=boolean-DnW06Vcs.js.map
|