forked from dinguschan-owo/Helios
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblipglitch.html
More file actions
53 lines (45 loc) · 89.9 KB
/
Copy pathblipglitch.html
File metadata and controls
53 lines (45 loc) · 89.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BlipGlitch</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 20px;
}
.button-list {
display: flex;
flex-direction: column;
gap: 10px;
align-items: center;
}
.btn {
padding: 10px 20px;
font-size: 16px;
border: none;
cursor: pointer;
background-color: #007bff;
color: white;
border-radius: 5px;
text-decoration: none;
}
.btn:hover {
background-color: #0056b3;
}
</style>
<script>global = window; var __bfs__=function(){"use strict";function t(t,r){return r.forEach((function(r){r&&"string"!=typeof r&&!Array.isArray(r)&&Object.keys(r).forEach((function(e){if("default"!==e&&!(e in t)){var n=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:function(){return r[e]}})}}))})),Object.freeze(t)}var r=[],e=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,o=!1;function i(){o=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,i=t.length;n<i;++n)r[n]=t[n],e[t.charCodeAt(n)]=n;e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63}function s(t,e,n){for(var o,i,s=[],u=e;u<n;u+=3)o=(t[u]<<16)+(t[u+1]<<8)+t[u+2],s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}function u(t){var e;o||i();for(var n=t.length,u=n%3,a="",f=[],c=0,p=n-u;c<p;c+=16383)f.push(s(t,c,c+16383>p?p:c+16383));return 1===u?(e=t[n-1],a+=r[e>>2],a+=r[e<<4&63],a+="=="):2===u&&(e=(t[n-2]<<8)+t[n-1],a+=r[e>>10],a+=r[e>>4&63],a+=r[e<<2&63],a+="="),f.push(a),f.join("")}function a(t,r,e,n,o){var i,s,u=8*o-n-1,a=(1<<u)-1,f=a>>1,c=-7,p=e?o-1:0,h=e?-1:1,l=t[r+p];for(p+=h,i=l&(1<<-c)-1,l>>=-c,c+=u;c>0;i=256*i+t[r+p],p+=h,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=256*s+t[r+p],p+=h,c-=8);if(0===i)i=1-f;else{if(i===a)return s?NaN:1/0*(l?-1:1);s+=Math.pow(2,n),i-=f}return(l?-1:1)*s*Math.pow(2,i-n)}function f(t,r,e,n,o,i){var s,u,a,f=8*i-o-1,c=(1<<f)-1,p=c>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:i-1,y=n?1:-1,d=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,s=c):(s=Math.floor(Math.log(r)/Math.LN2),r*(a=Math.pow(2,-s))<1&&(s--,a*=2),(r+=s+p>=1?h/a:h*Math.pow(2,1-p))*a>=2&&(s++,a/=2),s+p>=c?(u=0,s=c):s+p>=1?(u=(r*a-1)*Math.pow(2,o),s+=p):(u=r*Math.pow(2,p-1)*Math.pow(2,o),s=0));o>=8;t[e+l]=255&u,l+=y,u/=256,o-=8);for(s=s<<o|u,f+=o;f>0;t[e+l]=255&s,l+=y,s/=256,f-=8);t[e+l-y]|=128*d}var c={}.toString,p=Array.isArray||function(t){return"[object Array]"==c.call(t)};d.TYPED_ARRAY_SUPPORT=void 0===global.TYPED_ARRAY_SUPPORT||global.TYPED_ARRAY_SUPPORT;var h=l();function l(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function y(t,r){if(l()<r)throw new RangeError("Invalid typed array length");return d.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=d.prototype:(null===t&&(t=new d(r)),t.length=r),t}function d(t,r,e){if(!(d.TYPED_ARRAY_SUPPORT||this instanceof d))return new d(t,r,e);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return m(this,t)}return E(this,t,r,e)}function E(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?function(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n);d.TYPED_ARRAY_SUPPORT?(t=r).__proto__=d.prototype:t=w(t,r);return t}(t,r,e,n):"string"==typeof r?function(t,r,e){"string"==typeof e&&""!==e||(e="utf8");if(!d.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|b(r,e),o=(t=y(t,n)).write(r,e);o!==n&&(t=t.slice(0,o));return t}(t,r,e):function(t,r){if(S(r)){var e=0|v(r.length);return 0===(t=y(t,e)).length||r.copy(t,0,0,e),t}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||(n=r.length)!=n?y(t,0):w(t,r);if("Buffer"===r.type&&p(r.data))return w(t,r.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,r)}function g(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function m(t,r){if(g(r),t=y(t,r<0?0:0|v(r)),!d.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function w(t,r){var e=r.length<0?0:0|v(r.length);t=y(t,e);for(var n=0;n<e;n+=1)t[n]=255&r[n];return t}function v(t){if(t>=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|t}function S(t){return!(null==t||!t._isBuffer)}function b(t,r){if(S(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return q(t).length;default:if(n)return H(t).length;r=(""+r).toLowerCase(),n=!0}}function A(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return U(this,r,e);case"utf8":case"utf-8":return D(this,r,e);case"ascii":return B(this,r,e);case"latin1":case"binary":return k(this,r,e);case"base64":return L(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function T(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function _(t,r,e,n,o){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=o?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(o)return-1;e=t.length-1}else if(e<0){if(!o)return-1;e=0}if("string"==typeof r&&(r=d.from(r,n)),S(r))return 0===r.length?-1:O(t,r,e,n,o);if("number"==typeof r)return r&=255,d.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):O(t,[r],e,n,o);throw new TypeError("val must be string, number or Buffer")}function O(t,r,e,n,o){var i,s=1,u=t.length,a=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;s=2,u/=2,a/=2,e/=2}function f(t,r){return 1===s?t[r]:t.readUInt16BE(r*s)}if(o){var c=-1;for(i=e;i<u;i++)if(f(t,i)===f(r,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===a)return c*s}else-1!==c&&(i-=i-c),c=-1}else for(e+a>u&&(e=u-a),i=e;i>=0;i--){for(var p=!0,h=0;h<a;h++)if(f(t,i+h)!==f(r,h)){p=!1;break}if(p)return i}return-1}function F(t,r,e,n){e=Number(e)||0;var o=t.length-e;n?(n=Number(n))>o&&(n=o):n=o;var i=r.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;s<n;++s){var u=parseInt(r.substr(2*s,2),16);if(isNaN(u))return s;t[e+s]=u}return s}function N(t,r,e,n){return G(H(r,t.length-e),t,e,n)}function I(t,r,e,n){return G(function(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}(r),t,e,n)}function P(t,r,e,n){return I(t,r,e,n)}function C(t,r,e,n){return G(q(r),t,e,n)}function R(t,r,e,n){return G(function(t,r){for(var e,n,o,i=[],s=0;s<t.length&&!((r-=2)<0);++s)e=t.charCodeAt(s),n=e>>8,o=e%256,i.push(o),i.push(n);return i}(r,t.length-e),t,e,n)}function L(t,r,e){return 0===r&&e===t.length?u(t):u(t.slice(r,e))}function D(t,r,e){e=Math.min(t.length,e);for(var n=[],o=r;o<e;){var i,s,u,a,f=t[o],c=null,p=f>239?4:f>223?3:f>191?2:1;if(o+p<=e)switch(p){case 1:f<128&&(c=f);break;case 2:128==(192&(i=t[o+1]))&&(a=(31&f)<<6|63&i)>127&&(c=a);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&(a=(15&f)<<12|(63&i)<<6|63&s)>2047&&(a<55296||a>57343)&&(c=a);break;case 4:i=t[o+1],s=t[o+2],u=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&u)&&(a=(15&f)<<18|(63&i)<<12|(63&s)<<6|63&u)>65535&&a<1114112&&(c=a)}null===c?(c=65533,p=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=p}return function(t){var r=t.length;if(r<=4096)return String.fromCharCode.apply(String,t);var e="",n=0;for(;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return e}(n)}d.poolSize=8192,d._augment=function(t){return t.__proto__=d.prototype,t},d.from=function(t,r,e){return E(null,t,r,e)},d.TYPED_ARRAY_SUPPORT&&(d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array),d.alloc=function(t,r,e){return function(t,r,e,n){return g(r),r<=0?y(t,r):void 0!==e?"string"==typeof n?y(t,r).fill(e,n):y(t,r).fill(e):y(t,r)}(null,t,r,e)},d.allocUnsafe=function(t){return m(null,t)},d.allocUnsafeSlow=function(t){return m(null,t)},d.isBuffer=$,d.compare=function(t,r){if(!S(t)||!S(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,o=0,i=Math.min(e,n);o<i;++o)if(t[o]!==r[o]){e=t[o],n=r[o];break}return e<n?-1:n<e?1:0},d.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(t,r){if(!p(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return d.alloc(0);var e;if(void 0===r)for(r=0,e=0;e<t.length;++e)r+=t[e].length;var n=d.allocUnsafe(r),o=0;for(e=0;e<t.length;++e){var i=t[e];if(!S(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},d.byteLength=b,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)T(this,r,r+1);return this},d.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)T(this,r,r+3),T(this,r+1,r+2);return this},d.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)T(this,r,r+7),T(this,r+1,r+6),T(this,r+2,r+5),T(this,r+3,r+4);return this},d.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?D(this,0,t):A.apply(this,arguments)},d.prototype.equals=function(t){if(!S(t))throw new TypeError("Argument must be a Buffer");return this===t||0===d.compare(this,t)},d.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},d.prototype.compare=function(t,r,e,n,o){if(!S(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),r<0||e>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&r>=e)return 0;if(n>=o)return-1;if(r>=e)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(e>>>=0)-(r>>>=0),u=Math.min(i,s),a=this.slice(n,o),f=t.slice(r,e),c=0;c<u;++c)if(a[c]!==f[c]){i=a[c],s=f[c];break}return i<s?-1:s<i?1:0},d.prototype.includes=function(t,r,e){return-1!==this.indexOf(t,r,e)},d.prototype.indexOf=function(t,r,e){return _(this,t,r,e,!0)},d.prototype.lastIndexOf=function(t,r,e){return _(this,t,r,e,!1)},d.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(e)?(e|=0,void 0===n&&(n="utf8")):(n=e,e=void 0)}var o=this.length-r;if((void 0===e||e>o)&&(e=o),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return F(this,t,r,e);case"utf8":case"utf-8":return N(this,t,r,e);case"ascii":return I(this,t,r,e);case"latin1":case"binary":return P(this,t,r,e);case"base64":return C(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r,e);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(127&t[o]);return n}function k(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(t[o]);return n}function U(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var o="",i=r;i<e;++i)o+=J(t[i]);return o}function x(t,r,e){for(var n=t.slice(r,e),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function M(t,r,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}function Y(t,r,e,n,o,i){if(!S(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>o||r<i)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}function j(t,r,e,n){r<0&&(r=65535+r+1);for(var o=0,i=Math.min(t.length-e,2);o<i;++o)t[e+o]=(r&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function V(t,r,e,n){r<0&&(r=4294967295+r+1);for(var o=0,i=Math.min(t.length-e,4);o<i;++o)t[e+o]=r>>>8*(n?o:3-o)&255}function z(t,r,e,n,o,i){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function W(t,r,e,n,o){return o||z(t,0,e,4),f(t,r,e,n,23,4),e+4}function X(t,r,e,n,o){return o||z(t,0,e,8),f(t,r,e,n,52,8),e+8}d.prototype.slice=function(t,r){var e,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(r=void 0===r?n:~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),r<t&&(r=t),d.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,r)).__proto__=d.prototype;else{var o=r-t;e=new d(o,void 0);for(var i=0;i<o;++i)e[i]=this[i+t]}return e},d.prototype.readUIntLE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n},d.prototype.readUIntBE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t+--r],o=1;r>0&&(o*=256);)n+=this[t+--r]*o;return n},d.prototype.readUInt8=function(t,r){return r||M(t,1,this.length),this[t]},d.prototype.readUInt16LE=function(t,r){return r||M(t,2,this.length),this[t]|this[t+1]<<8},d.prototype.readUInt16BE=function(t,r){return r||M(t,2,this.length),this[t]<<8|this[t+1]},d.prototype.readUInt32LE=function(t,r){return r||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},d.prototype.readUInt32BE=function(t,r){return r||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},d.prototype.readIntLE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*r)),n},d.prototype.readIntBE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=r,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*r)),i},d.prototype.readInt8=function(t,r){return r||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},d.prototype.readInt16LE=function(t,r){r||M(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},d.prototype.readInt16BE=function(t,r){r||M(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},d.prototype.readInt32LE=function(t,r){return r||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},d.prototype.readInt32BE=function(t,r){return r||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},d.prototype.readFloatLE=function(t,r){return r||M(t,4,this.length),a(this,t,!0,23,4)},d.prototype.readFloatBE=function(t,r){return r||M(t,4,this.length),a(this,t,!1,23,4)},d.prototype.readDoubleLE=function(t,r){return r||M(t,8,this.length),a(this,t,!0,52,8)},d.prototype.readDoubleBE=function(t,r){return r||M(t,8,this.length),a(this,t,!1,52,8)},d.prototype.writeUIntLE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||Y(this,t,r,e,Math.pow(2,8*e)-1,0);var o=1,i=0;for(this[r]=255&t;++i<e&&(o*=256);)this[r+i]=t/o&255;return r+e},d.prototype.writeUIntBE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||Y(this,t,r,e,Math.pow(2,8*e)-1,0);var o=e-1,i=1;for(this[r+o]=255&t;--o>=0&&(i*=256);)this[r+o]=t/i&255;return r+e},d.prototype.writeUInt8=function(t,r,e){return t=+t,r|=0,e||Y(this,t,r,1,255,0),d.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},d.prototype.writeUInt16LE=function(t,r,e){return t=+t,r|=0,e||Y(this,t,r,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):j(this,t,r,!0),r+2},d.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||Y(this,t,r,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):j(this,t,r,!1),r+2},d.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||Y(this,t,r,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):V(this,t,r,!0),r+4},d.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||Y(this,t,r,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):V(this,t,r,!1),r+4},d.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r|=0,!n){var o=Math.pow(2,8*e-1);Y(this,t,r,e,o-1,-o)}var i=0,s=1,u=0;for(this[r]=255&t;++i<e&&(s*=256);)t<0&&0===u&&0!==this[r+i-1]&&(u=1),this[r+i]=(t/s>>0)-u&255;return r+e},d.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r|=0,!n){var o=Math.pow(2,8*e-1);Y(this,t,r,e,o-1,-o)}var i=e-1,s=1,u=0;for(this[r+i]=255&t;--i>=0&&(s*=256);)t<0&&0===u&&0!==this[r+i+1]&&(u=1),this[r+i]=(t/s>>0)-u&255;return r+e},d.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||Y(this,t,r,1,127,-128),d.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},d.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||Y(this,t,r,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):j(this,t,r,!0),r+2},d.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||Y(this,t,r,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):j(this,t,r,!1),r+2},d.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||Y(this,t,r,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):V(this,t,r,!0),r+4},d.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||Y(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),d.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):V(this,t,r,!1),r+4},d.prototype.writeFloatLE=function(t,r,e){return W(this,t,r,!0,e)},d.prototype.writeFloatBE=function(t,r,e){return W(this,t,r,!1,e)},d.prototype.writeDoubleLE=function(t,r,e){return X(this,t,r,!0,e)},d.prototype.writeDoubleBE=function(t,r,e){return X(this,t,r,!1,e)},d.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var o,i=n-e;if(this===t&&e<r&&r<n)for(o=i-1;o>=0;--o)t[o+r]=this[o+e];else if(i<1e3||!d.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+r]=this[o+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+i),r);return i},d.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!d.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;var i;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(i=r;i<e;++i)this[i]=t;else{var s=S(t)?t:H(new d(t,n).toString()),u=s.length;for(i=0;i<e-r;++i)this[i+r]=s[i%u]}return this};var K=/[^+\/0-9A-Za-z-_]/g;function J(t){return t<16?"0"+t.toString(16):t.toString(16)}function H(t,r){var e;r=r||1/0;for(var n=t.length,o=null,i=[],s=0;s<n;++s){if((e=t.charCodeAt(s))>55295&&e<57344){if(!o){if(e>56319){(r-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&i.push(239,191,189),o=e;continue}e=65536+(o-55296<<10|e-56320)}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;i.push(e)}else if(e<2048){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return i}function q(t){return function(t){var r,s,u,a,f,c;o||i();var p=t.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");f="="===t[p-2]?2:"="===t[p-1]?1:0,c=new n(3*p/4-f),u=f>0?p-4:p;var h=0;for(r=0,s=0;r<u;r+=4,s+=3)a=e[t.charCodeAt(r)]<<18|e[t.charCodeAt(r+1)]<<12|e[t.charCodeAt(r+2)]<<6|e[t.charCodeAt(r+3)],c[h++]=a>>16&255,c[h++]=a>>8&255,c[h++]=255&a;return 2===f?(a=e[t.charCodeAt(r)]<<2|e[t.charCodeAt(r+1)]>>4,c[h++]=255&a):1===f&&(a=e[t.charCodeAt(r)]<<10|e[t.charCodeAt(r+1)]<<4|e[t.charCodeAt(r+2)]>>2,c[h++]=a>>8&255,c[h++]=255&a),c}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(K,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,r,e,n){for(var o=0;o<n&&!(o+e>=r.length||o>=t.length);++o)r[o+e]=t[o];return o}function $(t){return null!=t&&(!!t._isBuffer||Z(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Z(t.slice(0,0))}(t))}function Z(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var Q=Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:h,Buffer:d,SlowBuffer:function(t){return+t!=t&&(t=0),d.alloc(+t)},isBuffer:$});function tt(){}function rt(){rt.init.call(this)}function et(t){return void 0===t._maxListeners?rt.defaultMaxListeners:t._maxListeners}function nt(t,r,e){if(r)t.call(e);else for(var n=t.length,o=pt(t,n),i=0;i<n;++i)o[i].call(e)}function ot(t,r,e,n){if(r)t.call(e,n);else for(var o=t.length,i=pt(t,o),s=0;s<o;++s)i[s].call(e,n)}function it(t,r,e,n,o){if(r)t.call(e,n,o);else for(var i=t.length,s=pt(t,i),u=0;u<i;++u)s[u].call(e,n,o)}function st(t,r,e,n,o,i){if(r)t.call(e,n,o,i);else for(var s=t.length,u=pt(t,s),a=0;a<s;++a)u[a].call(e,n,o,i)}function ut(t,r,e,n){if(r)t.apply(e,n);else for(var o=t.length,i=pt(t,o),s=0;s<o;++s)i[s].apply(e,n)}function at(t,r,e,n){var o,i,s,u;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if((i=t._events)?(i.newListener&&(t.emit("newListener",r,e.listener?e.listener:e),i=t._events),s=i[r]):(i=t._events=new tt,t._eventsCount=0),s){if("function"==typeof s?s=i[r]=n?[e,s]:[s,e]:n?s.unshift(e):s.push(e),!s.warned&&(o=et(t))&&o>0&&s.length>o){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+r+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=r,a.count=s.length,u=a,"function"==typeof console.warn?console.warn(u):console.log(u)}}else s=i[r]=e,++t._eventsCount;return t}function ft(t,r,e){var n=!1;function o(){t.removeListener(r,o),n||(n=!0,e.apply(t,arguments))}return o.listener=e,o}function ct(t){var r=this._events;if(r){var e=r[t];if("function"==typeof e)return 1;if(e)return e.length}return 0}function pt(t,r){for(var e=new Array(r);r--;)e[r]=t[r];return e}function ht(t,r){for(var e=0,n=t.length-1;n>=0;n--){var o=t[n];"."===o?t.splice(n,1):".."===o?(t.splice(n,1),e++):e&&(t.splice(n,1),e--)}if(r)for(;e--;e)t.unshift("..");return t}tt.prototype=Object.create(null),rt.EventEmitter=rt,rt.usingDomains=!1,rt.prototype.domain=void 0,rt.prototype._events=void 0,rt.prototype._maxListeners=void 0,rt.defaultMaxListeners=10,rt.init=function(){this.domain=null,rt.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new tt,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},rt.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},rt.prototype.getMaxListeners=function(){return et(this)},rt.prototype.emit=function(t){var r,e,n,o,i,s,u,a="error"===t;if(s=this._events)a=a&&null==s.error;else if(!a)return!1;if(u=this.domain,a){if(r=arguments[1],!u){if(r instanceof Error)throw r;var f=new Error('Uncaught, unspecified "error" event. ('+r+")");throw f.context=r,f}return r||(r=new Error('Uncaught, unspecified "error" event')),r.domainEmitter=this,r.domain=u,r.domainThrown=!1,u.emit("error",r),!1}if(!(e=s[t]))return!1;var c="function"==typeof e;switch(n=arguments.length){case 1:nt(e,c,this);break;case 2:ot(e,c,this,arguments[1]);break;case 3:it(e,c,this,arguments[1],arguments[2]);break;case 4:st(e,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(n-1),i=1;i<n;i++)o[i-1]=arguments[i];ut(e,c,this,o)}return!0},rt.prototype.addListener=function(t,r){return at(this,t,r,!1)},rt.prototype.on=rt.prototype.addListener,rt.prototype.prependListener=function(t,r){return at(this,t,r,!0)},rt.prototype.once=function(t,r){if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');return this.on(t,ft(this,t,r)),this},rt.prototype.prependOnceListener=function(t,r){if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,ft(this,t,r)),this},rt.prototype.removeListener=function(t,r){var e,n,o,i,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(e=n[t]))return this;if(e===r||e.listener&&e.listener===r)0==--this._eventsCount?this._events=new tt:(delete n[t],n.removeListener&&this.emit("removeListener",t,e.listener||r));else if("function"!=typeof e){for(o=-1,i=e.length;i-- >0;)if(e[i]===r||e[i].listener&&e[i].listener===r){s=e[i].listener,o=i;break}if(o<0)return this;if(1===e.length){if(e[0]=void 0,0==--this._eventsCount)return this._events=new tt,this;delete n[t]}else!function(t,r){for(var e=r,n=e+1,o=t.length;n<o;e+=1,n+=1)t[e]=t[n];t.pop()}(e,o);n.removeListener&&this.emit("removeListener",t,s||r)}return this},rt.prototype.removeAllListeners=function(t){var r,e;if(!(e=this._events))return this;if(!e.removeListener)return 0===arguments.length?(this._events=new tt,this._eventsCount=0):e[t]&&(0==--this._eventsCount?this._events=new tt:delete e[t]),this;if(0===arguments.length){for(var n,o=Object.keys(e),i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new tt,this._eventsCount=0,this}if("function"==typeof(r=e[t]))this.removeListener(t,r);else if(r)do{this.removeListener(t,r[r.length-1])}while(r[0]);return this},rt.prototype.listeners=function(t){var r,e=this._events;return e&&(r=e[t])?"function"==typeof r?[r.listener||r]:function(t){for(var r=new Array(t.length),e=0;e<r.length;++e)r[e]=t[e].listener||t[e];return r}(r):[]},rt.listenerCount=function(t,r){return"function"==typeof t.listenerCount?t.listenerCount(r):ct.call(t,r)},rt.prototype.listenerCount=ct,rt.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var lt=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,yt=function(t){return lt.exec(t).slice(1)};function dt(){for(var t="",r=!1,e=arguments.length-1;e>=-1&&!r;e--){var n=e>=0?arguments[e]:"/";if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(t=n+"/"+t,r="/"===n.charAt(0))}return(r?"/":"")+(t=ht(Tt(t.split("/"),(function(t){return!!t})),!r).join("/"))||"."}function Et(t){var r=gt(t),e="/"===_t(t,-1);return(t=ht(Tt(t.split("/"),(function(t){return!!t})),!r).join("/"))||r||(t="."),t&&e&&(t+="/"),(r?"/":"")+t}function gt(t){return"/"===t.charAt(0)}function mt(){var t=Array.prototype.slice.call(arguments,0);return Et(Tt(t,(function(t,r){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))}function wt(t,r){function e(t){for(var r=0;r<t.length&&""===t[r];r++);for(var e=t.length-1;e>=0&&""===t[e];e--);return r>e?[]:t.slice(r,e-r+1)}t=dt(t).substr(1),r=dt(r).substr(1);for(var n=e(t.split("/")),o=e(r.split("/")),i=Math.min(n.length,o.length),s=i,u=0;u<i;u++)if(n[u]!==o[u]){s=u;break}var a=[];for(u=s;u<n.length;u++)a.push("..");return(a=a.concat(o.slice(s))).join("/")}function vt(t){var r=yt(t),e=r[0],n=r[1];return e||n?(n&&(n=n.substr(0,n.length-1)),e+n):"."}function St(t,r){var e=yt(t)[2];return r&&e.substr(-1*r.length)===r&&(e=e.substr(0,e.length-r.length)),e}function bt(t){return yt(t)[3]}var At={extname:bt,basename:St,dirname:vt,sep:"/",delimiter:":",relative:wt,join:mt,isAbsolute:gt,normalize:Et,resolve:dt};function Tt(t,r){if(t.filter)return t.filter(r);for(var e=[],n=0;n<t.length;n++)r(t[n],n,t)&&e.push(t[n]);return e}var _t="b"==="ab".substr(-1)?function(t,r,e){return t.substr(r,e)}:function(t,r,e){return r<0&&(r=t.length+r),t.substr(r,e)},Ot=Object.freeze({__proto__:null,resolve:dt,normalize:Et,isAbsolute:gt,join:mt,relative:wt,sep:"/",delimiter:":",dirname:vt,basename:St,extname:bt,default:At});function Ft(){throw new Error("setTimeout has not been defined")}function Nt(){throw new Error("clearTimeout has not been defined")}var It=Ft,Pt=Nt;function Ct(t){if(It===setTimeout)return setTimeout(t,0);if((It===Ft||!It)&&setTimeout)return It=setTimeout,setTimeout(t,0);try{return It(t,0)}catch(r){try{return It.call(null,t,0)}catch(r){return It.call(this,t,0)}}}"function"==typeof global.setTimeout&&(It=setTimeout),"function"==typeof global.clearTimeout&&(Pt=clearTimeout);var Rt,Lt=[],Dt=!1,Bt=-1;function kt(){Dt&&Rt&&(Dt=!1,Rt.length?Lt=Rt.concat(Lt):Bt=-1,Lt.length&&Ut())}function Ut(){if(!Dt){var t=Ct(kt);Dt=!0;for(var r=Lt.length;r;){for(Rt=Lt,Lt=[];++Bt<r;)Rt&&Rt[Bt].run();Bt=-1,r=Lt.length}Rt=null,Dt=!1,function(t){if(Pt===clearTimeout)return clearTimeout(t);if((Pt===Nt||!Pt)&&clearTimeout)return Pt=clearTimeout,clearTimeout(t);try{Pt(t)}catch(r){try{return Pt.call(null,t)}catch(r){return Pt.call(this,t)}}}(t)}}function xt(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];Lt.push(new Mt(t,r)),1!==Lt.length||Dt||Ct(Ut)}function Mt(t,r){this.fun=t,this.array=r}Mt.prototype.run=function(){this.fun.apply(null,this.array)};var Yt={},jt=[],Vt={},zt={},Wt={};function Xt(){}var Kt=Xt,Jt=Xt,Ht=Xt,qt=Xt,Gt=Xt,$t=Xt,Zt=Xt;function Qt(t){throw new Error("process.binding is not supported")}function tr(){return"/"}function rr(t){throw new Error("process.chdir is not supported")}function er(){return 0}var nr=global.performance||{},or=nr.now||nr.mozNow||nr.msNow||nr.oNow||nr.webkitNow||function(){return(new Date).getTime()};function ir(t){var r=.001*or.call(nr),e=Math.floor(r),n=Math.floor(r%1*1e9);return t&&(e-=t[0],(n-=t[1])<0&&(e--,n+=1e9)),[e,n]}var sr=new Date;function ur(){return(new Date-sr)/1e3}var ar={nextTick:xt,title:"browser",browser:!0,env:Yt,argv:jt,version:"",versions:Vt,on:Kt,addListener:Jt,once:Ht,off:qt,removeListener:Gt,removeAllListeners:$t,emit:Zt,binding:Qt,cwd:tr,chdir:rr,umask:er,hrtime:ir,platform:"browser",release:zt,config:Wt,uptime:ur},fr=Object.freeze({__proto__:null,nextTick:xt,title:"browser",platform:"browser",browser:!0,env:Yt,argv:jt,version:"",versions:Vt,release:zt,config:Wt,on:Kt,addListener:Jt,once:Ht,off:qt,removeListener:Gt,removeAllListeners:$t,emit:Zt,binding:Qt,cwd:tr,chdir:rr,umask:er,hrtime:ir,uptime:ur,default:ar}),cr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function pr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function hr(t,r,e){return t(e={path:r,exports:{},require:function(t,r){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==r&&e.path)}},e.exports),e.exports}var lr=hr((function(t,r){var e,n,o=cr&&cr.__extends||(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])},function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});r.__esModule=!0,function(t){t[t.EPERM=1]="EPERM",t[t.ENOENT=2]="ENOENT",t[t.EIO=5]="EIO",t[t.EBADF=9]="EBADF",t[t.EACCES=13]="EACCES",t[t.EBUSY=16]="EBUSY",t[t.EEXIST=17]="EEXIST",t[t.ENOTDIR=20]="ENOTDIR",t[t.EISDIR=21]="EISDIR",t[t.EINVAL=22]="EINVAL",t[t.EFBIG=27]="EFBIG",t[t.ENOSPC=28]="ENOSPC",t[t.EROFS=30]="EROFS",t[t.ENOTEMPTY=39]="ENOTEMPTY",t[t.ENOTSUP=95]="ENOTSUP"}(n=r.ErrorCode||(r.ErrorCode={})),r.ErrorStrings={},r.ErrorStrings[n.EPERM]="Operation not permitted.",r.ErrorStrings[n.ENOENT]="No such file or directory.",r.ErrorStrings[n.EIO]="Input/output error.",r.ErrorStrings[n.EBADF]="Bad file descriptor.",r.ErrorStrings[n.EACCES]="Permission denied.",r.ErrorStrings[n.EBUSY]="Resource busy or locked.",r.ErrorStrings[n.EEXIST]="File exists.",r.ErrorStrings[n.ENOTDIR]="File is not a directory.",r.ErrorStrings[n.EISDIR]="File is a directory.",r.ErrorStrings[n.EINVAL]="Invalid argument.",r.ErrorStrings[n.EFBIG]="File is too big.",r.ErrorStrings[n.ENOSPC]="No space left on disk.",r.ErrorStrings[n.EROFS]="Cannot modify a read-only file system.",r.ErrorStrings[n.ENOTEMPTY]="Directory is not empty.",r.ErrorStrings[n.ENOTSUP]="Operation is not supported.";var i=function(t){function e(e,o,i){void 0===o&&(o=r.ErrorStrings[e]);var s=t.call(this,o)||this;return s.syscall="",s.errno=e,s.code=n[e],s.path=i,s.stack=(new Error).stack,s.message="Error: "+s.code+": "+o+(s.path?", '"+s.path+"'":""),s}return o(e,t),e.fromJSON=function(t){var r=new e(0);return r.errno=t.errno,r.code=t.code,r.path=t.path,r.stack=t.stack,r.message=t.message,r},e.fromBuffer=function(t,r){return void 0===r&&(r=0),e.fromJSON(JSON.parse(t.toString("utf8",r+4,r+4+t.readUInt32LE(r))))},e.FileError=function(t,n){return new e(t,r.ErrorStrings[t],n)},e.ENOENT=function(t){return this.FileError(n.ENOENT,t)},e.EEXIST=function(t){return this.FileError(n.EEXIST,t)},e.EISDIR=function(t){return this.FileError(n.EISDIR,t)},e.ENOTDIR=function(t){return this.FileError(n.ENOTDIR,t)},e.EPERM=function(t){return this.FileError(n.EPERM,t)},e.ENOTEMPTY=function(t){return this.FileError(n.ENOTEMPTY,t)},e.prototype.toString=function(){return this.message},e.prototype.toJSON=function(){return{errno:this.errno,code:this.code,path:this.path,stack:this.stack,message:this.message}},e.prototype.writeToBuffer=function(t,r){void 0===t&&(t=Buffer.alloc(this.bufferSize())),void 0===r&&(r=0);var e=t.write(JSON.stringify(this.toJSON()),r+4);return t.writeUInt32LE(e,r),t},e.prototype.bufferSize=function(){return 4+Buffer.byteLength(JSON.stringify(this.toJSON()))},e}(Error);r.ApiError=i}));pr(lr);var yr=lr.ErrorCode;lr.ErrorStrings;var dr=lr.ApiError,Er=hr((function(t,r){var e;r.__esModule=!0,function(t){t[t.NOP=0]="NOP",t[t.THROW_EXCEPTION=1]="THROW_EXCEPTION",t[t.TRUNCATE_FILE=2]="TRUNCATE_FILE",t[t.CREATE_FILE=3]="CREATE_FILE"}(e=r.ActionType||(r.ActionType={}));var n=function(){function t(r){if(this.flagStr=r,t.validFlagStrs.indexOf(r)<0)throw new lr.ApiError(lr.ErrorCode.EINVAL,"Invalid flag: "+r)}return t.getFileFlag=function(r){return t.flagCache.hasOwnProperty(r)?t.flagCache[r]:t.flagCache[r]=new t(r)},t.prototype.getFlagString=function(){return this.flagStr},t.prototype.isReadable=function(){return-1!==this.flagStr.indexOf("r")||-1!==this.flagStr.indexOf("+")},t.prototype.isWriteable=function(){return-1!==this.flagStr.indexOf("w")||-1!==this.flagStr.indexOf("a")||-1!==this.flagStr.indexOf("+")},t.prototype.isTruncating=function(){return-1!==this.flagStr.indexOf("w")},t.prototype.isAppendable=function(){return-1!==this.flagStr.indexOf("a")},t.prototype.isSynchronous=function(){return-1!==this.flagStr.indexOf("s")},t.prototype.isExclusive=function(){return-1!==this.flagStr.indexOf("x")},t.prototype.pathExistsAction=function(){return this.isExclusive()?e.THROW_EXCEPTION:this.isTruncating()?e.TRUNCATE_FILE:e.NOP},t.prototype.pathNotExistsAction=function(){return(this.isWriteable()||this.isAppendable())&&"r+"!==this.flagStr?e.CREATE_FILE:e.THROW_EXCEPTION},t}();n.flagCache={},n.validFlagStrs=["r","r+","rs","rs+","w","wx","w+","wx+","a","ax","a+","ax+"],r.FileFlag=n}));pr(Er),Er.ActionType,Er.FileFlag;var gr=hr((function(t,r){function e(t,r,e,n,o){return t<r||e<r?t>e?e+1:t+1:n===o?r:r+1}r.__esModule=!0,r.default=function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var o=t.length,i=r.length;o>0&&t.charCodeAt(o-1)===r.charCodeAt(i-1);)o--,i--;for(var s=0;s<o&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(i-=s,0===(o-=s)||1===i)return i;for(var u,a,f,c,p,h=new Array(o<<1),l=0;l<o;)h[o+l]=t.charCodeAt(s+l),h[l]=++l;for(u=0;u+3<i;){var y=r.charCodeAt(s+(a=u)),d=r.charCodeAt(s+(f=u+1)),E=r.charCodeAt(s+(c=u+2)),g=r.charCodeAt(s+(p=u+3)),m=u+=4;for(l=0;l<o;){var w=h[o+l];a=e(S=h[l],a,f,y,w),f=e(a,f,c,d,w),c=e(f,c,p,E,w),m=e(c,p,m,g,w),h[l++]=m,p=c,c=f,f=a,a=S}}for(var v=0;u<i;){y=r.charCodeAt(s+(a=u));v=++u;for(l=0;l<o;l++){var S=h[l];h[l]=v=S<a||v<a?S>v?v+1:S+1:y===h[o+l]?a:a+1,a=S}}return v}}));pr(gr);var mr=hr((function(t,r){function e(t){return t instanceof Uint8Array?t:new Uint8Array(t)}function n(t){return t instanceof Buffer?t:0===t.byteOffset&&t.byteLength===t.buffer.byteLength?o(t.buffer):Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function o(t){return Buffer.from(t)}r.__esModule=!0,r.deprecationMessage=function(t,r,e){t&&console.warn("["+r+"] Direct file system constructor usage is deprecated for this file system, and will be removed in the next major version. Please use the '"+r+".Create("+JSON.stringify(e)+", callback)' method instead. See https://github.com/jvilk/BrowserFS/issues/176 for more details.")},r.isIE="undefined"!=typeof navigator&&!(!/(msie) ([\w.]+)/.exec(navigator.userAgent.toLowerCase())&&-1===navigator.userAgent.indexOf("Trident")),r.isWebWorker="undefined"==typeof window,r.fail=function(){throw new Error("BFS has reached an impossible code path; please file a bug.")},r.mkdirpSync=function t(r,e,n){n.existsSync(r)||(t(At.dirname(r),e,n),n.mkdirSync(r,e))},r.buffer2ArrayBuffer=function(t){var r=e(t),n=r.byteOffset,o=r.byteLength;return 0===n&&o===r.buffer.byteLength?r.buffer:r.buffer.slice(n,n+o)},r.buffer2Uint8array=e,r.arrayish2Buffer=function(t){return t instanceof Buffer?t:t instanceof Uint8Array?n(t):Buffer.from(t)},r.uint8Array2Buffer=n,r.arrayBuffer2Buffer=o,r.copyingSlice=function(t,r,o){if(void 0===r&&(r=0),void 0===o&&(o=t.length),r<0||o<0||o>t.length||r>o)throw new TypeError("Invalid slice bounds on buffer of length "+t.length+": ["+r+", "+o+"]");if(0===t.length)return s();var i=e(t),u=t[0],a=(u+1)%255;return t[0]=a,i[0]===a?(i[0]=u,n(i.slice(r,o))):(t[0]=u,n(i.subarray(r,o)))};var i=null;function s(){return i||(i=Buffer.alloc(0))}r.emptyBuffer=s,r.bufferValidator=function(t,r){Buffer.isBuffer(t)?r():r(new lr.ApiError(lr.ErrorCode.EINVAL,"option must be a Buffer."))},r.checkOptions=function(t,r,e){var n=t.Options,o=t.Name,i=0,s=!1,u=!1;function a(t){s||(t&&(s=!0,e(t)),0===--i&&u&&e())}var f=function(t){if(n.hasOwnProperty(t)){var u=n[t],f=r[t];if(null==f){if(!u.optional){var c=Object.keys(r).filter((function(t){return!(t in n)})).map((function(r){return{str:r,distance:gr.default(t,r)}})).filter((function(t){return t.distance<5})).sort((function(t,r){return t.distance-r.distance}));return s?{value:void 0}:(s=!0,{value:e(new lr.ApiError(lr.ErrorCode.EINVAL,"["+o+"] Required option '"+t+"' not provided."+(c.length>0?" You provided unrecognized option '"+c[0].str+"'; perhaps you meant to type '"+t+"'.":"")+"\nOption description: "+u.description))})}}else{if(!(Array.isArray(u.type)?-1!==u.type.indexOf(typeof f):typeof f===u.type))return s?{value:void 0}:(s=!0,{value:e(new lr.ApiError(lr.ErrorCode.EINVAL,"["+o+"] Value provided for option "+t+" is not the proper type. Expected "+(Array.isArray(u.type)?"one of {"+u.type.join(", ")+"}":u.type)+", but received "+typeof f+"\nOption description: "+u.description))});u.validator&&(i++,u.validator(f,a))}}};for(var c in n){var p=f(c);if("object"==typeof p)return p.value}u=!0,0!==i||s||e()}}));pr(mr),mr.deprecationMessage,mr.isIE,mr.isWebWorker,mr.fail,mr.mkdirpSync,mr.buffer2ArrayBuffer,mr.buffer2Uint8array,mr.arrayish2Buffer,mr.uint8Array2Buffer,mr.arrayBuffer2Buffer,mr.copyingSlice,mr.emptyBuffer,mr.bufferValidator,mr.checkOptions;var wr=hr((function(t,r){var e,n=cr&&cr.__extends||(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])},function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});r.__esModule=!0;var o=function(){function t(){}return t.prototype.supportsLinks=function(){return!1},t.prototype.diskSpace=function(t,r){r(0,0)},t.prototype.openFile=function(t,r,e){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.createFile=function(t,r,e,n){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.open=function(t,r,e,n){var o=this;this.stat(t,!1,(function(i,s){if(i)switch(r.pathNotExistsAction()){case Er.ActionType.CREATE_FILE:return o.stat(At.dirname(t),!1,(function(i,s){i?n(i):s&&!s.isDirectory()?n(lr.ApiError.ENOTDIR(At.dirname(t))):o.createFile(t,r,e,n)}));case Er.ActionType.THROW_EXCEPTION:return n(lr.ApiError.ENOENT(t));default:return n(new lr.ApiError(lr.ErrorCode.EINVAL,"Invalid FileFlag object."))}else{if(s&&s.isDirectory())return n(lr.ApiError.EISDIR(t));switch(r.pathExistsAction()){case Er.ActionType.THROW_EXCEPTION:return n(lr.ApiError.EEXIST(t));case Er.ActionType.TRUNCATE_FILE:return o.openFile(t,r,(function(t,r){t?n(t):r?r.truncate(0,(function(){r.sync((function(){n(null,r)}))})):mr.fail()}));case Er.ActionType.NOP:return o.openFile(t,r,n);default:return n(new lr.ApiError(lr.ErrorCode.EINVAL,"Invalid FileFlag object."))}}}))},t.prototype.rename=function(t,r,e){e(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.renameSync=function(t,r){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.stat=function(t,r,e){e(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.statSync=function(t,r){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.openFileSync=function(t,r,e){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.createFileSync=function(t,r,e){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.openSync=function(t,r,e){var n;try{n=this.statSync(t,!1)}catch(n){switch(r.pathNotExistsAction()){case Er.ActionType.CREATE_FILE:if(!this.statSync(At.dirname(t),!1).isDirectory())throw lr.ApiError.ENOTDIR(At.dirname(t));return this.createFileSync(t,r,e);case Er.ActionType.THROW_EXCEPTION:throw lr.ApiError.ENOENT(t);default:throw new lr.ApiError(lr.ErrorCode.EINVAL,"Invalid FileFlag object.")}}if(n.isDirectory())throw lr.ApiError.EISDIR(t);switch(r.pathExistsAction()){case Er.ActionType.THROW_EXCEPTION:throw lr.ApiError.EEXIST(t);case Er.ActionType.TRUNCATE_FILE:return this.unlinkSync(t),this.createFileSync(t,r,n.mode);case Er.ActionType.NOP:return this.openFileSync(t,r,e);default:throw new lr.ApiError(lr.ErrorCode.EINVAL,"Invalid FileFlag object.")}},t.prototype.unlink=function(t,r){r(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.unlinkSync=function(t){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.rmdir=function(t,r){r(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.rmdirSync=function(t){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.mkdir=function(t,r,e){e(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.mkdirSync=function(t,r){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.readdir=function(t,r){r(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.readdirSync=function(t){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.exists=function(t,r){this.stat(t,null,(function(t){r(!t)}))},t.prototype.existsSync=function(t){try{return this.statSync(t,!0),!0}catch(t){return!1}},t.prototype.realpath=function(t,r,e){if(this.supportsLinks())for(var n=t.split(At.sep),o=0;o<n.length;o++){var i=n.slice(0,o+1);n[o]=At.join.apply(null,i)}else this.exists(t,(function(r){r?e(null,t):e(lr.ApiError.ENOENT(t))}))},t.prototype.realpathSync=function(t,r){if(this.supportsLinks()){for(var e=t.split(At.sep),n=0;n<e.length;n++){var o=e.slice(0,n+1);e[n]=At.join.apply(At,o)}return e.join(At.sep)}if(this.existsSync(t))return t;throw lr.ApiError.ENOENT(t)},t.prototype.truncate=function(t,r,e){this.open(t,Er.FileFlag.getFileFlag("r+"),420,(function(t,n){if(t)return e(t);n.truncate(r,(function(t){n.close((function(r){e(t||r)}))}))}))},t.prototype.truncateSync=function(t,r){var e=this.openSync(t,Er.FileFlag.getFileFlag("r+"),420);try{e.truncateSync(r)}catch(t){throw t}finally{e.closeSync()}},t.prototype.readFile=function(t,r,e,n){var o=n;this.open(t,e,420,(function(t,e){if(t)return n(t);n=function(t,r){e.close((function(e){return t||(t=e),o(t,r)}))},e.stat((function(t,o){if(t)return n(t);var i=Buffer.alloc(o.size);e.read(i,0,o.size,0,(function(t){if(t)return n(t);if(null===r)return n(t,i);try{n(null,i.toString(r))}catch(t){n(t)}}))}))}))},t.prototype.readFileSync=function(t,r,e){var n=this.openSync(t,e,420);try{var o=n.statSync(),i=Buffer.alloc(o.size);return n.readSync(i,0,o.size,0),n.closeSync(),null===r?i:i.toString(r)}finally{n.closeSync()}},t.prototype.writeFile=function(t,r,e,n,o,i){var s=i;this.open(t,n,420,(function(t,n){if(t)return i(t);i=function(t){n.close((function(r){s(t||r)}))};try{"string"==typeof r&&(r=Buffer.from(r,e))}catch(t){return i(t)}n.write(r,0,r.length,0,i)}))},t.prototype.writeFileSync=function(t,r,e,n,o){var i=this.openSync(t,n,o);try{"string"==typeof r&&(r=Buffer.from(r,e)),i.writeSync(r,0,r.length,0)}finally{i.closeSync()}},t.prototype.appendFile=function(t,r,e,n,o,i){var s=i;this.open(t,n,o,(function(t,n){if(t)return i(t);i=function(t){n.close((function(r){s(t||r)}))},"string"==typeof r&&(r=Buffer.from(r,e)),n.write(r,0,r.length,null,i)}))},t.prototype.appendFileSync=function(t,r,e,n,o){var i=this.openSync(t,n,o);try{"string"==typeof r&&(r=Buffer.from(r,e)),i.writeSync(r,0,r.length,null)}finally{i.closeSync()}},t.prototype.chmod=function(t,r,e,n){n(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.chmodSync=function(t,r,e){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.chown=function(t,r,e,n,o){o(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.chownSync=function(t,r,e,n){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.utimes=function(t,r,e,n){n(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.utimesSync=function(t,r,e){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.link=function(t,r,e){e(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.linkSync=function(t,r){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.symlink=function(t,r,e,n){n(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.symlinkSync=function(t,r,e){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.readlink=function(t,r){r(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.readlinkSync=function(t){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t}();r.BaseFileSystem=o;var i=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n(r,t),r.prototype.supportsSynch=function(){return!0},r.prototype.rename=function(t,r,e){try{this.renameSync(t,r),e()}catch(t){e(t)}},r.prototype.stat=function(t,r,e){try{e(null,this.statSync(t,r))}catch(t){e(t)}},r.prototype.open=function(t,r,e,n){try{n(null,this.openSync(t,r,e))}catch(t){n(t)}},r.prototype.unlink=function(t,r){try{this.unlinkSync(t),r()}catch(t){r(t)}},r.prototype.rmdir=function(t,r){try{this.rmdirSync(t),r()}catch(t){r(t)}},r.prototype.mkdir=function(t,r,e){try{this.mkdirSync(t,r),e()}catch(t){e(t)}},r.prototype.readdir=function(t,r){try{r(null,this.readdirSync(t))}catch(t){r(t)}},r.prototype.chmod=function(t,r,e,n){try{this.chmodSync(t,r,e),n()}catch(t){n(t)}},r.prototype.chown=function(t,r,e,n,o){try{this.chownSync(t,r,e,n),o()}catch(t){o(t)}},r.prototype.utimes=function(t,r,e,n){try{this.utimesSync(t,r,e),n()}catch(t){n(t)}},r.prototype.link=function(t,r,e){try{this.linkSync(t,r),e()}catch(t){e(t)}},r.prototype.symlink=function(t,r,e,n){try{this.symlinkSync(t,r,e),n()}catch(t){n(t)}},r.prototype.readlink=function(t,r){try{r(null,this.readlinkSync(t))}catch(t){r(t)}},r}(o);r.SynchronousFileSystem=i}));pr(wr),wr.BaseFileSystem;var vr=wr.SynchronousFileSystem,Sr=hr((function(t,r){var e;r.__esModule=!0,function(t){t[t.FILE=32768]="FILE",t[t.DIRECTORY=16384]="DIRECTORY",t[t.SYMLINK=40960]="SYMLINK"}(e=r.FileType||(r.FileType={}));var n=function(){function t(t,r,n,o,i,s){if(void 0===o&&(o=new Date),void 0===i&&(i=new Date),void 0===s&&(s=new Date),this.size=r,this.atime=o,this.mtime=i,this.ctime=s,this.dev=0,this.ino=0,this.rdev=0,this.nlink=1,this.blksize=4096,this.uid=0,this.gid=0,this.birthtime=new Date(0),this.fileData=null,n)this.mode=n;else switch(t){case e.FILE:this.mode=420;break;case e.DIRECTORY:default:this.mode=511}this.blocks=Math.ceil(r/512),this.mode<4096&&(this.mode|=t)}return t.fromBuffer=function(r){var e=r.readUInt32LE(0),n=r.readUInt32LE(4),o=r.readDoubleLE(8),i=r.readDoubleLE(16),s=r.readDoubleLE(24);return new t(61440&n,e,4095&n,new Date(o),new Date(i),new Date(s))},t.prototype.toBuffer=function(){var t=Buffer.alloc(32);return t.writeUInt32LE(this.size,0),t.writeUInt32LE(this.mode,4),t.writeDoubleLE(this.atime.getTime(),8),t.writeDoubleLE(this.mtime.getTime(),16),t.writeDoubleLE(this.ctime.getTime(),24),t},t.prototype.clone=function(){return new t(61440&this.mode,this.size,4095&this.mode,this.atime,this.mtime,this.ctime)},t.prototype.isFile=function(){return(61440&this.mode)===e.FILE},t.prototype.isDirectory=function(){return(61440&this.mode)===e.DIRECTORY},t.prototype.isSymbolicLink=function(){return(61440&this.mode)===e.SYMLINK},t.prototype.chmod=function(t){this.mode=61440&this.mode|t},t.prototype.isSocket=function(){return!1},t.prototype.isBlockDevice=function(){return!1},t.prototype.isCharacterDevice=function(){return!1},t.prototype.isFIFO=function(){return!1},t}();r.default=n})),br=pr(Sr),Ar=Sr.FileType,Tr=hr((function(t,r){r.__esModule=!0;var e=function(){function t(t,r,e,n,o,i){this.id=t,this.size=r,this.mode=e,this.atime=n,this.mtime=o,this.ctime=i}return t.fromBuffer=function(r){if(void 0===r)throw new Error("NO");return new t(r.toString("ascii",30),r.readUInt32LE(0),r.readUInt16LE(4),r.readDoubleLE(6),r.readDoubleLE(14),r.readDoubleLE(22))},t.prototype.toStats=function(){return new Sr.default((61440&this.mode)===Sr.FileType.DIRECTORY?Sr.FileType.DIRECTORY:Sr.FileType.FILE,this.size,this.mode,new Date(this.atime),new Date(this.mtime),new Date(this.ctime))},t.prototype.getSize=function(){return 30+this.id.length},t.prototype.toBuffer=function(t){return void 0===t&&(t=Buffer.alloc(this.getSize())),t.writeUInt32LE(this.size,0),t.writeUInt16LE(this.mode,4),t.writeDoubleLE(this.atime,6),t.writeDoubleLE(this.mtime,14),t.writeDoubleLE(this.ctime,22),t.write(this.id,30,this.id.length,"ascii"),t},t.prototype.update=function(t){var r=!1;this.size!==t.size&&(this.size=t.size,r=!0),this.mode!==t.mode&&(this.mode=t.mode,r=!0);var e=t.atime.getTime();this.atime!==e&&(this.atime=e,r=!0);var n=t.mtime.getTime();this.mtime!==n&&(this.mtime=n,r=!0);var o=t.ctime.getTime();return this.ctime!==o&&(this.ctime=o,r=!0),r},t.prototype.isFile=function(){return(61440&this.mode)===Sr.FileType.FILE},t.prototype.isDirectory=function(){return(61440&this.mode)===Sr.FileType.DIRECTORY},t}();r.default=e}));pr(Tr);var _r=hr((function(t,r){r.__esModule=!0;var e=function(){function t(){}return t.prototype.sync=function(t){t(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.syncSync=function(){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.datasync=function(t){this.sync(t)},t.prototype.datasyncSync=function(){return this.syncSync()},t.prototype.chown=function(t,r,e){e(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.chownSync=function(t,r){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.chmod=function(t,r){r(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.chmodSync=function(t){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.utimes=function(t,r,e){e(new lr.ApiError(lr.ErrorCode.ENOTSUP))},t.prototype.utimesSync=function(t,r){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t}();r.BaseFile=e}));pr(_r),_r.BaseFile;var Or=hr((function(t,r){r.__esModule=!0;var e=At,n=function(t,r){return t};function o(t){if(t)return t;throw new lr.ApiError(lr.ErrorCode.EIO,"Initialize BrowserFS with a file system using BrowserFS.initialize(filesystem)")}function i(t,r){switch(typeof t){case"number":return t;case"string":var e=parseInt(t,8);return isNaN(e)?r:e;default:return r}}function s(t){if(t instanceof Date)return t;if("number"==typeof t)return new Date(1e3*t);throw new lr.ApiError(lr.ErrorCode.EINVAL,"Invalid time.")}function u(t){if(t.indexOf("\0")>=0)throw new lr.ApiError(lr.ErrorCode.EINVAL,"Path must be a string without null bytes.");if(""===t)throw new lr.ApiError(lr.ErrorCode.EINVAL,"Path must not be empty.");return e.resolve(t)}function a(t,r,e,n){switch(typeof t){case"object":return{encoding:void 0!==t.encoding?t.encoding:r,flag:void 0!==t.flag?t.flag:e,mode:i(t.mode,n)};case"string":return{encoding:t,flag:e,mode:n};default:return{encoding:r,flag:e,mode:n}}}function f(){}var c=function(){function t(){this.F_OK=0,this.R_OK=4,this.W_OK=2,this.X_OK=1,this.root=null,this.fdMap={},this.nextFd=100}return t.prototype.initialize=function(t){if(!t.constructor.isAvailable())throw new lr.ApiError(lr.ErrorCode.EINVAL,"Tried to instantiate BrowserFS with an unavailable file system.");return this.root=t},t.prototype._toUnixTimestamp=function(t){if("number"==typeof t)return t;if(t instanceof Date)return t.getTime()/1e3;throw new Error("Cannot parse time: "+t)},t.prototype.getRootFS=function(){return this.root?this.root:null},t.prototype.rename=function(t,r,e){void 0===e&&(e=f);var i=n(e,1);try{o(this.root).rename(u(t),u(r),i)}catch(t){i(t)}},t.prototype.renameSync=function(t,r){o(this.root).renameSync(u(t),u(r))},t.prototype.exists=function(t,r){void 0===r&&(r=f);var e=n(r,1);try{return o(this.root).exists(u(t),e)}catch(t){return e(!1)}},t.prototype.existsSync=function(t){try{return o(this.root).existsSync(u(t))}catch(t){return!1}},t.prototype.stat=function(t,r){void 0===r&&(r=f);var e=n(r,2);try{return o(this.root).stat(u(t),!1,e)}catch(t){return e(t)}},t.prototype.statSync=function(t){return o(this.root).statSync(u(t),!1)},t.prototype.lstat=function(t,r){void 0===r&&(r=f);var e=n(r,2);try{return o(this.root).stat(u(t),!0,e)}catch(t){return e(t)}},t.prototype.lstatSync=function(t){return o(this.root).statSync(u(t),!0)},t.prototype.truncate=function(t,r,e){void 0===r&&(r=0),void 0===e&&(e=f);var i=0;"function"==typeof r?e=r:"number"==typeof r&&(i=r);var s=n(e,1);try{if(i<0)throw new lr.ApiError(lr.ErrorCode.EINVAL);return o(this.root).truncate(u(t),i,s)}catch(t){return s(t)}},t.prototype.truncateSync=function(t,r){if(void 0===r&&(r=0),r<0)throw new lr.ApiError(lr.ErrorCode.EINVAL);return o(this.root).truncateSync(u(t),r)},t.prototype.unlink=function(t,r){void 0===r&&(r=f);var e=n(r,1);try{return o(this.root).unlink(u(t),e)}catch(t){return e(t)}},t.prototype.unlinkSync=function(t){return o(this.root).unlinkSync(u(t))},t.prototype.open=function(t,r,e,s){var a=this;void 0===s&&(s=f);var c=i(e,420),p=n(s="function"==typeof e?e:s,2);try{o(this.root).open(u(t),Er.FileFlag.getFileFlag(r),c,(function(t,r){r?p(t,a.getFdForFile(r)):p(t)}))}catch(t){p(t)}},t.prototype.openSync=function(t,r,e){return void 0===e&&(e=420),this.getFdForFile(o(this.root).openSync(u(t),Er.FileFlag.getFileFlag(r),i(e,420)))},t.prototype.readFile=function(t,r,e){void 0===r&&(r={}),void 0===e&&(e=f);var i=a(r,null,"r",null),s=n(e="function"==typeof r?r:e,2);try{var c=Er.FileFlag.getFileFlag(i.flag);return c.isReadable()?o(this.root).readFile(u(t),i.encoding,c,s):s(new lr.ApiError(lr.ErrorCode.EINVAL,"Flag passed to readFile must allow for reading."))}catch(t){return s(t)}},t.prototype.readFileSync=function(t,r){void 0===r&&(r={});var e=a(r,null,"r",null),n=Er.FileFlag.getFileFlag(e.flag);if(!n.isReadable())throw new lr.ApiError(lr.ErrorCode.EINVAL,"Flag passed to readFile must allow for reading.");return o(this.root).readFileSync(u(t),e.encoding,n)},t.prototype.writeFile=function(t,r,e,i){void 0===e&&(e={}),void 0===i&&(i=f);var s=a(e,"utf8","w",420),c=n(i="function"==typeof e?e:i,1);try{var p=Er.FileFlag.getFileFlag(s.flag);return p.isWriteable()?o(this.root).writeFile(u(t),r,s.encoding,p,s.mode,c):c(new lr.ApiError(lr.ErrorCode.EINVAL,"Flag passed to writeFile must allow for writing."))}catch(t){return c(t)}},t.prototype.writeFileSync=function(t,r,e){var n=a(e,"utf8","w",420),i=Er.FileFlag.getFileFlag(n.flag);if(!i.isWriteable())throw new lr.ApiError(lr.ErrorCode.EINVAL,"Flag passed to writeFile must allow for writing.");return o(this.root).writeFileSync(u(t),r,n.encoding,i,n.mode)},t.prototype.appendFile=function(t,r,e,i){void 0===i&&(i=f);var s=a(e,"utf8","a",420),c=n(i="function"==typeof e?e:i,1);try{var p=Er.FileFlag.getFileFlag(s.flag);if(!p.isAppendable())return c(new lr.ApiError(lr.ErrorCode.EINVAL,"Flag passed to appendFile must allow for appending."));o(this.root).appendFile(u(t),r,s.encoding,p,s.mode,c)}catch(t){c(t)}},t.prototype.appendFileSync=function(t,r,e){var n=a(e,"utf8","a",420),i=Er.FileFlag.getFileFlag(n.flag);if(!i.isAppendable())throw new lr.ApiError(lr.ErrorCode.EINVAL,"Flag passed to appendFile must allow for appending.");return o(this.root).appendFileSync(u(t),r,n.encoding,i,n.mode)},t.prototype.fstat=function(t,r){void 0===r&&(r=f);var e=n(r,2);try{this.fd2file(t).stat(e)}catch(t){e(t)}},t.prototype.fstatSync=function(t){return this.fd2file(t).statSync()},t.prototype.close=function(t,r){var e=this;void 0===r&&(r=f);var o=n(r,1);try{this.fd2file(t).close((function(r){r||e.closeFd(t),o(r)}))}catch(t){o(t)}},t.prototype.closeSync=function(t){this.fd2file(t).closeSync(),this.closeFd(t)},t.prototype.ftruncate=function(t,r,e){void 0===e&&(e=f);var o="number"==typeof r?r:0,i=n(e="function"==typeof r?r:e,1);try{var s=this.fd2file(t);if(o<0)throw new lr.ApiError(lr.ErrorCode.EINVAL);s.truncate(o,i)}catch(t){i(t)}},t.prototype.ftruncateSync=function(t,r){void 0===r&&(r=0);var e=this.fd2file(t);if(r<0)throw new lr.ApiError(lr.ErrorCode.EINVAL);e.truncateSync(r)},t.prototype.fsync=function(t,r){void 0===r&&(r=f);var e=n(r,1);try{this.fd2file(t).sync(e)}catch(t){e(t)}},t.prototype.fsyncSync=function(t){this.fd2file(t).syncSync()},t.prototype.fdatasync=function(t,r){void 0===r&&(r=f);var e=n(r,1);try{this.fd2file(t).datasync(e)}catch(t){e(t)}},t.prototype.fdatasyncSync=function(t){this.fd2file(t).datasyncSync()},t.prototype.write=function(t,r,e,o,i,s){void 0===s&&(s=f);var u,a,c,p=null;if("string"==typeof r){var h="utf8";switch(typeof e){case"function":s=e;break;case"number":p=e,h="string"==typeof o?o:"utf8",s="function"==typeof i?i:s;break;default:return(s="function"==typeof o?o:"function"==typeof i?i:s)(new lr.ApiError(lr.ErrorCode.EINVAL,"Invalid arguments."))}a=0,c=(u=Buffer.from(r,h)).length}else u=r,a=e,c=o,p="number"==typeof i?i:null,s="function"==typeof i?i:s;var l=n(s,3);try{var y=this.fd2file(t);null==p&&(p=y.getPos()),y.write(u,a,c,p,l)}catch(t){l(t)}},t.prototype.writeSync=function(t,r,e,n,o){var i,s,u,a=0;if("string"==typeof r){u="number"==typeof e?e:null;var f="string"==typeof n?n:"utf8";a=0,s=(i=Buffer.from(r,f)).length}else i=r,a=e,s=n,u="number"==typeof o?o:null;var c=this.fd2file(t);return null==u&&(u=c.getPos()),c.writeSync(i,a,s,u)},t.prototype.read=function(t,r,e,o,i,s){var u,a,c,p,h;if(void 0===s&&(s=f),"number"==typeof r){c=r,u=e;var l=o;s="function"==typeof i?i:s,a=0,p=Buffer.alloc(c),h=n((function(t,r,e){if(t)return s(t);s(t,e.toString(l),r)}),3)}else p=r,a=e,c=o,u=i,h=n(s,3);try{var y=this.fd2file(t);null==u&&(u=y.getPos()),y.read(p,a,c,u,h)}catch(t){h(t)}},t.prototype.readSync=function(t,r,e,n,o){var i,s,u,a,f=!1,c="utf8";"number"==typeof r?(u=r,a=e,c=n,s=0,i=Buffer.alloc(u),f=!0):(i=r,s=e,u=n,a=o);var p=this.fd2file(t);null==a&&(a=p.getPos());var h=p.readSync(i,s,u,a);return f?[i.toString(c),h]:h},t.prototype.fchown=function(t,r,e,o){void 0===o&&(o=f);var i=n(o,1);try{this.fd2file(t).chown(r,e,i)}catch(t){i(t)}},t.prototype.fchownSync=function(t,r,e){this.fd2file(t).chownSync(r,e)},t.prototype.fchmod=function(t,r,e){var o=n(e,1);try{var i="string"==typeof r?parseInt(r,8):r;this.fd2file(t).chmod(i,o)}catch(t){o(t)}},t.prototype.fchmodSync=function(t,r){var e="string"==typeof r?parseInt(r,8):r;this.fd2file(t).chmodSync(e)},t.prototype.futimes=function(t,r,e,o){void 0===o&&(o=f);var i=n(o,1);try{var s=this.fd2file(t);"number"==typeof r&&(r=new Date(1e3*r)),"number"==typeof e&&(e=new Date(1e3*e)),s.utimes(r,e,i)}catch(t){i(t)}},t.prototype.futimesSync=function(t,r,e){this.fd2file(t).utimesSync(s(r),s(e))},t.prototype.rmdir=function(t,r){void 0===r&&(r=f);var e=n(r,1);try{t=u(t),o(this.root).rmdir(t,e)}catch(t){e(t)}},t.prototype.rmdirSync=function(t){return t=u(t),o(this.root).rmdirSync(t)},t.prototype.mkdir=function(t,r,e){void 0===e&&(e=f),"function"==typeof r&&(e=r,r=511);var i=n(e,1);try{t=u(t),o(this.root).mkdir(t,r,i)}catch(t){i(t)}},t.prototype.mkdirSync=function(t,r){o(this.root).mkdirSync(u(t),i(r,511))},t.prototype.readdir=function(t,r){void 0===r&&(r=f);var e=n(r,2);try{t=u(t),o(this.root).readdir(t,e)}catch(t){e(t)}},t.prototype.readdirSync=function(t){return t=u(t),o(this.root).readdirSync(t)},t.prototype.link=function(t,r,e){void 0===e&&(e=f);var i=n(e,1);try{t=u(t),r=u(r),o(this.root).link(t,r,i)}catch(t){i(t)}},t.prototype.linkSync=function(t,r){return t=u(t),r=u(r),o(this.root).linkSync(t,r)},t.prototype.symlink=function(t,r,e,i){void 0===i&&(i=f);var s="string"==typeof e?e:"file",a=n(i="function"==typeof e?e:i,1);try{if("file"!==s&&"dir"!==s)return a(new lr.ApiError(lr.ErrorCode.EINVAL,"Invalid type: "+s));t=u(t),r=u(r),o(this.root).symlink(t,r,s,a)}catch(t){a(t)}},t.prototype.symlinkSync=function(t,r,e){if(e){if("file"!==e&&"dir"!==e)throw new lr.ApiError(lr.ErrorCode.EINVAL,"Invalid type: "+e)}else e="file";return t=u(t),r=u(r),o(this.root).symlinkSync(t,r,e)},t.prototype.readlink=function(t,r){void 0===r&&(r=f);var e=n(r,2);try{t=u(t),o(this.root).readlink(t,e)}catch(t){e(t)}},t.prototype.readlinkSync=function(t){return t=u(t),o(this.root).readlinkSync(t)},t.prototype.chown=function(t,r,e,i){void 0===i&&(i=f);var s=n(i,1);try{t=u(t),o(this.root).chown(t,!1,r,e,s)}catch(t){s(t)}},t.prototype.chownSync=function(t,r,e){t=u(t),o(this.root).chownSync(t,!1,r,e)},t.prototype.lchown=function(t,r,e,i){void 0===i&&(i=f);var s=n(i,1);try{t=u(t),o(this.root).chown(t,!0,r,e,s)}catch(t){s(t)}},t.prototype.lchownSync=function(t,r,e){t=u(t),o(this.root).chownSync(t,!0,r,e)},t.prototype.chmod=function(t,r,e){void 0===e&&(e=f);var s=n(e,1);try{var a=i(r,-1);if(a<0)throw new lr.ApiError(lr.ErrorCode.EINVAL,"Invalid mode.");o(this.root).chmod(u(t),!1,a,s)}catch(t){s(t)}},t.prototype.chmodSync=function(t,r){var e=i(r,-1);if(e<0)throw new lr.ApiError(lr.ErrorCode.EINVAL,"Invalid mode.");t=u(t),o(this.root).chmodSync(t,!1,e)},t.prototype.lchmod=function(t,r,e){void 0===e&&(e=f);var s=n(e,1);try{var a=i(r,-1);if(a<0)throw new lr.ApiError(lr.ErrorCode.EINVAL,"Invalid mode.");o(this.root).chmod(u(t),!0,a,s)}catch(t){s(t)}},t.prototype.lchmodSync=function(t,r){var e=i(r,-1);if(e<1)throw new lr.ApiError(lr.ErrorCode.EINVAL,"Invalid mode.");o(this.root).chmodSync(u(t),!0,e)},t.prototype.utimes=function(t,r,e,i){void 0===i&&(i=f);var a=n(i,1);try{o(this.root).utimes(u(t),s(r),s(e),a)}catch(t){a(t)}},t.prototype.utimesSync=function(t,r,e){o(this.root).utimesSync(u(t),s(r),s(e))},t.prototype.realpath=function(t,r,e){void 0===e&&(e=f);var i="object"==typeof r?r:{},s=n(e="function"==typeof r?r:f,2);try{t=u(t),o(this.root).realpath(t,i,s)}catch(t){s(t)}},t.prototype.realpathSync=function(t,r){return void 0===r&&(r={}),t=u(t),o(this.root).realpathSync(t,r)},t.prototype.watchFile=function(t,r,e){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.unwatchFile=function(t,r){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.watch=function(t,r,e){return"function"==typeof r?o(this.root).watch(u(t),r):o(this.root).watch(u(t),r,e)},t.prototype.access=function(t,r,e){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.accessSync=function(t,r){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.createReadStream=function(t,r){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.createWriteStream=function(t,r){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},t.prototype.wrapCallbacks=function(t){n=t},t.prototype.getFdForFile=function(t){var r=this.nextFd++;return this.fdMap[r]=t,r},t.prototype.fd2file=function(t){var r=this.fdMap[t];if(r)return r;throw new lr.ApiError(lr.ErrorCode.EBADF,"Invalid file descriptor.")},t.prototype.closeFd=function(t){delete this.fdMap[t]},t}();c.Stats=Sr.default,r.default=c})),Fr=pr(Or),Nr=hr((function(t,r){r.__esModule=!0;var e=new Or.default,n={},o=Or.default.prototype;Object.keys(o).forEach((function(t){"function"==typeof e[t]?n[t]=function(){return e[t].apply(e,arguments)}:n[t]=e[t]})),n.changeFSModule=function(t){e=t},n.getFSModule=function(){return e},n.FS=Or.default,r.default=n})),Ir=pr(Nr),Pr=hr((function(t,r){var e,n=cr&&cr.__extends||(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])},function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});r.__esModule=!0;var o=function(t){function r(r,e,n,o,i){var s=t.call(this)||this;if(s._pos=0,s._dirty=!1,s._fs=r,s._path=e,s._flag=n,s._stat=o,s._buffer=i||mr.emptyBuffer(),s._stat.size!==s._buffer.length&&s._flag.isReadable())throw new Error("Invalid buffer: Buffer is "+s._buffer.length+" long, yet Stats object specifies that file is "+s._stat.size+" long.");return s}return n(r,t),r.prototype.getBuffer=function(){return this._buffer},r.prototype.getStats=function(){return this._stat},r.prototype.getFlag=function(){return this._flag},r.prototype.getPath=function(){return this._path},r.prototype.getPos=function(){return this._flag.isAppendable()?this._stat.size:this._pos},r.prototype.advancePos=function(t){return this._pos+=t},r.prototype.setPos=function(t){return this._pos=t},r.prototype.sync=function(t){try{this.syncSync(),t()}catch(r){t(r)}},r.prototype.syncSync=function(){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},r.prototype.close=function(t){try{this.closeSync(),t()}catch(r){t(r)}},r.prototype.closeSync=function(){throw new lr.ApiError(lr.ErrorCode.ENOTSUP)},r.prototype.stat=function(t){try{t(null,this._stat.clone())}catch(r){t(r)}},r.prototype.statSync=function(){return this._stat.clone()},r.prototype.truncate=function(t,r){try{this.truncateSync(t),this._flag.isSynchronous()&&!Nr.default.getRootFS().supportsSynch()&&this.sync(r),r()}catch(t){return r(t)}},r.prototype.truncateSync=function(t){if(this._dirty=!0,!this._flag.isWriteable())throw new lr.ApiError(lr.ErrorCode.EPERM,"File not opened with a writeable mode.");if(this._stat.mtime=new Date,t>this._buffer.length){var r=Buffer.alloc(t-this._buffer.length,0);return this.writeSync(r,0,r.length,this._buffer.length),void(this._flag.isSynchronous()&&Nr.default.getRootFS().supportsSynch()&&this.syncSync())}this._stat.size=t;var e=Buffer.alloc(t);this._buffer.copy(e,0,0,t),this._buffer=e,this._flag.isSynchronous()&&Nr.default.getRootFS().supportsSynch()&&this.syncSync()},r.prototype.write=function(t,r,e,n,o){try{o(null,this.writeSync(t,r,e,n),t)}catch(t){o(t)}},r.prototype.writeSync=function(t,r,e,n){if(this._dirty=!0,null==n&&(n=this.getPos()),!this._flag.isWriteable())throw new lr.ApiError(lr.ErrorCode.EPERM,"File not opened with a writeable mode.");var o=n+e;if(o>this._stat.size&&(this._stat.size=o,o>this._buffer.length)){var i=Buffer.alloc(o);this._buffer.copy(i),this._buffer=i}var s=t.copy(this._buffer,n,r,r+e);return this._stat.mtime=new Date,this._flag.isSynchronous()?(this.syncSync(),s):(this.setPos(n+s),s)},r.prototype.read=function(t,r,e,n,o){try{o(null,this.readSync(t,r,e,n),t)}catch(t){o(t)}},r.prototype.readSync=function(t,r,e,n){if(!this._flag.isReadable())throw new lr.ApiError(lr.ErrorCode.EPERM,"File not opened with a readable mode.");null==n&&(n=this.getPos()),n+e>this._stat.size&&(e=this._stat.size-n);var o=this._buffer.copy(t,r,n,n+e);return this._stat.atime=new Date,this._pos=n+e,o},r.prototype.chmod=function(t,r){try{this.chmodSync(t),r()}catch(t){r(t)}},r.prototype.chmodSync=function(t){if(!this._fs.supportsProps())throw new lr.ApiError(lr.ErrorCode.ENOTSUP);this._dirty=!0,this._stat.chmod(t),this.syncSync()},r.prototype.isDirty=function(){return this._dirty},r.prototype.resetDirty=function(){this._dirty=!1},r}(_r.BaseFile);r.default=o;var i=function(t){function r(r,e,n,o,i){return t.call(this,r,e,n,o,i)||this}return n(r,t),r.prototype.sync=function(t){t()},r.prototype.syncSync=function(){},r.prototype.close=function(t){t()},r.prototype.closeSync=function(){},r}(o);r.NoSyncFile=i})),Cr=pr(Pr);Pr.NoSyncFile;var Rr=hr((function(t,r){var e,n=cr&&cr.__extends||(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])},function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});r.__esModule=!0;var o=null;function i(){return o||(o=Buffer.from("{}"))}function s(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=16*Math.random()|0;return("x"===t?r:3&r|8).toString(16)}))}function u(t,r){return!t||(r(t),!1)}function a(t,r,e){return!t||(r.abort((function(){e(t)})),!1)}var f=function(){function t(t){this.store=t,this.originalData={},this.modifiedKeys=[]}return t.prototype.get=function(t){var r=this.store.get(t);return this.stashOldValue(t,r),r},t.prototype.put=function(t,r,e){return this.markModified(t),this.store.put(t,r,e)},t.prototype.del=function(t){this.markModified(t),this.store.del(t)},t.prototype.commit=function(){},t.prototype.abort=function(){for(var t=0,r=this.modifiedKeys;t<r.length;t++){var e=r[t],n=this.originalData[e];n?this.store.put(e,n,!0):this.store.del(e)}},t.prototype.stashOldValue=function(t,r){this.originalData.hasOwnProperty(t)||(this.originalData[t]=r)},t.prototype.markModified=function(t){-1===this.modifiedKeys.indexOf(t)&&(this.modifiedKeys.push(t),this.originalData.hasOwnProperty(t)||(this.originalData[t]=this.store.get(t)))},t}();r.SimpleSyncRWTransaction=f;var c=function(t){function r(r,e,n,o,i){return t.call(this,r,e,n,o,i)||this}return n(r,t),r.prototype.syncSync=function(){this.isDirty()&&(this._fs._syncSync(this.getPath(),this.getBuffer(),this.getStats()),this.resetDirty())},r.prototype.closeSync=function(){this.syncSync()},r}(Pr.default);r.SyncKeyValueFile=c;var p=function(t){function r(r){var e=t.call(this)||this;return e.store=r.store,e.makeRootDirectory(),e}return n(r,t),r.isAvailable=function(){return!0},r.prototype.getName=function(){return this.store.name()},r.prototype.isReadOnly=function(){return!1},r.prototype.supportsSymlinks=function(){return!1},r.prototype.supportsProps=function(){return!1},r.prototype.supportsSynch=function(){return!0},r.prototype.empty=function(){this.store.clear(),this.makeRootDirectory()},r.prototype.renameSync=function(t,r){var e=this.store.beginTransaction("readwrite"),n=At.dirname(t),o=At.basename(t),i=At.dirname(r),s=At.basename(r),u=this.findINode(e,n),a=this.getDirListing(e,n,u);if(!a[o])throw lr.ApiError.ENOENT(t);var f,c,p=a[o];if(delete a[o],0===(i+"/").indexOf(t+"/"))throw new lr.ApiError(lr.ErrorCode.EBUSY,n);if(i===n?(f=u,c=a):(f=this.findINode(e,i),c=this.getDirListing(e,i,f)),c[s]){var h=this.getINode(e,r,c[s]);if(!h.isFile())throw lr.ApiError.EPERM(r);try{e.del(h.id),e.del(c[s])}catch(t){throw e.abort(),t}}c[s]=p;try{e.put(u.id,Buffer.from(JSON.stringify(a)),!0),e.put(f.id,Buffer.from(JSON.stringify(c)),!0)}catch(t){throw e.abort(),t}e.commit()},r.prototype.statSync=function(t,r){return this.findINode(this.store.beginTransaction("readonly"),t).toStats()},r.prototype.createFileSync=function(t,r,e){var n=this.store.beginTransaction("readwrite"),o=mr.emptyBuffer(),i=this.commitNewFile(n,t,Sr.FileType.FILE,e,o);return new c(this,t,r,i.toStats(),o)},r.prototype.openFileSync=function(t,r){var e=this.store.beginTransaction("readonly"),n=this.findINode(e,t),o=e.get(n.id);if(void 0===o)throw lr.ApiError.ENOENT(t);return new c(this,t,r,n.toStats(),o)},r.prototype.unlinkSync=function(t){this.removeEntry(t,!1)},r.prototype.rmdirSync=function(t){if(this.readdirSync(t).length>0)throw lr.ApiError.ENOTEMPTY(t);this.removeEntry(t,!0)},r.prototype.mkdirSync=function(t,r){var e=this.store.beginTransaction("readwrite"),n=Buffer.from("{}");this.commitNewFile(e,t,Sr.FileType.DIRECTORY,r,n)},r.prototype.readdirSync=function(t){var r=this.store.beginTransaction("readonly");return Object.keys(this.getDirListing(r,t,this.findINode(r,t)))},r.prototype._syncSync=function(t,r,e){var n=this.store.beginTransaction("readwrite"),o=this._findINode(n,At.dirname(t),At.basename(t)),i=this.getINode(n,t,o),s=i.update(e);try{n.put(i.id,r,!0),s&&n.put(o,i.toBuffer(),!0)}catch(t){throw n.abort(),t}n.commit()},r.prototype.makeRootDirectory=function(){var t=this.store.beginTransaction("readwrite");if(void 0===t.get("/")){var r=(new Date).getTime(),e=new Tr.default(s(),4096,511|Sr.FileType.DIRECTORY,r,r,r);t.put(e.id,i(),!1),t.put("/",e.toBuffer(),!1),t.commit()}},r.prototype._findINode=function(t,r,e){var n=this,o=function(o){var i=n.getDirListing(t,r,o);if(i[e])return i[e];throw lr.ApiError.ENOENT(At.resolve(r,e))};return"/"===r?""===e?"/":o(this.getINode(t,r,"/")):o(this.getINode(t,r+At.sep+e,this._findINode(t,At.dirname(r),At.basename(r))))},r.prototype.findINode=function(t,r){return this.getINode(t,r,this._findINode(t,At.dirname(r),At.basename(r)))},r.prototype.getINode=function(t,r,e){var n=t.get(e);if(void 0===n)throw lr.ApiError.ENOENT(r);return Tr.default.fromBuffer(n)},r.prototype.getDirListing=function(t,r,e){if(!e.isDirectory())throw lr.ApiError.ENOTDIR(r);var n=t.get(e.id);if(void 0===n)throw lr.ApiError.ENOENT(r);return JSON.parse(n.toString())},r.prototype.addNewNode=function(t,r){for(var e;;)try{return e=s(),t.put(e,r,!1),e}catch(t){}throw new lr.ApiError(lr.ErrorCode.EIO,"Unable to commit data to key-value store.")},r.prototype.commitNewFile=function(t,r,e,n,o){var i,s=At.dirname(r),u=At.basename(r),a=this.findINode(t,s),f=this.getDirListing(t,s,a),c=(new Date).getTime();if("/"===r)throw lr.ApiError.EEXIST(r);if(f[u])throw lr.ApiError.EEXIST(r);try{var p=this.addNewNode(t,o);i=new Tr.default(p,o.length,n|e,c,c,c);var h=this.addNewNode(t,i.toBuffer());f[u]=h,t.put(a.id,Buffer.from(JSON.stringify(f)),!0)}catch(r){throw t.abort(),r}return t.commit(),i},r.prototype.removeEntry=function(t,r){var e=this.store.beginTransaction("readwrite"),n=At.dirname(t),o=this.findINode(e,n),i=this.getDirListing(e,n,o),s=At.basename(t);if(!i[s])throw lr.ApiError.ENOENT(t);var u=i[s];delete i[s];var a=this.getINode(e,t,u);if(!r&&a.isDirectory())throw lr.ApiError.EISDIR(t);if(r&&!a.isDirectory())throw lr.ApiError.ENOTDIR(t);try{e.del(a.id),e.del(u),e.put(o.id,Buffer.from(JSON.stringify(i)),!0)}catch(t){throw e.abort(),t}e.commit()},r}(wr.SynchronousFileSystem);r.SyncKeyValueFileSystem=p;var h=function(t){function r(r,e,n,o,i){return t.call(this,r,e,n,o,i)||this}return n(r,t),r.prototype.sync=function(t){var r=this;this.isDirty()?this._fs._sync(this.getPath(),this.getBuffer(),this.getStats(),(function(e){e||r.resetDirty(),t(e)})):t()},r.prototype.close=function(t){this.sync(t)},r}(Pr.default);r.AsyncKeyValueFile=h;var l=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n(r,t),r.isAvailable=function(){return!0},r.prototype.init=function(t,r){this.store=t,this.makeRootDirectory(r)},r.prototype.getName=function(){return this.store.name()},r.prototype.isReadOnly=function(){return!1},r.prototype.supportsSymlinks=function(){return!1},r.prototype.supportsProps=function(){return!1},r.prototype.supportsSynch=function(){return!1},r.prototype.empty=function(t){var r=this;this.store.clear((function(e){u(e,t)&&r.makeRootDirectory(t)}))},r.prototype.rename=function(t,r,e){var n=this,o=this.store.beginTransaction("readwrite"),i=At.dirname(t),s=At.basename(t),u=At.dirname(r),f=At.basename(r),c={},p={},h=!1;if(0===(u+"/").indexOf(t+"/"))return e(new lr.ApiError(lr.ErrorCode.EBUSY,i));var l=function(l){n.findINodeAndDirListing(o,l,(function(y,d,E){y?h||(h=!0,o.abort((function(){e(y)}))):(c[l]=d,p[l]=E,function(){if(!h&&p.hasOwnProperty(i)&&p.hasOwnProperty(u)){var l=p[i],y=c[i],d=p[u],E=c[u];if(l[s]){var g=l[s];delete l[s];var m=function(){d[f]=g,o.put(y.id,Buffer.from(JSON.stringify(l)),!0,(function(t){a(t,o,e)&&(i===u?o.commit(e):o.put(E.id,Buffer.from(JSON.stringify(d)),!0,(function(t){a(t,o,e)&&o.commit(e)})))}))};d[f]?n.getINode(o,r,d[f],(function(t,n){a(t,o,e)&&(n.isFile()?o.del(n.id,(function(t){a(t,o,e)&&o.del(d[f],(function(t){a(t,o,e)&&m()}))})):o.abort((function(t){e(lr.ApiError.EPERM(r))})))})):m()}else e(lr.ApiError.ENOENT(t))}}())}))};l(i),i!==u&&l(u)},r.prototype.stat=function(t,r,e){var n=this.store.beginTransaction("readonly");this.findINode(n,t,(function(t,r){u(t,e)&&e(null,r.toStats())}))},r.prototype.createFile=function(t,r,e,n){var o=this,i=this.store.beginTransaction("readwrite"),s=mr.emptyBuffer();this.commitNewFile(i,t,Sr.FileType.FILE,e,s,(function(e,i){u(e,n)&&n(null,new h(o,t,r,i.toStats(),s))}))},r.prototype.openFile=function(t,r,e){var n=this,o=this.store.beginTransaction("readonly");this.findINode(o,t,(function(i,s){u(i,e)&&o.get(s.id,(function(o,i){u(o,e)&&(void 0===i?e(lr.ApiError.ENOENT(t)):e(null,new h(n,t,r,s.toStats(),i)))}))}))},r.prototype.unlink=function(t,r){this.removeEntry(t,!1,r)},r.prototype.rmdir=function(t,r){var e=this;this.readdir(t,(function(n,o){n?r(n):o.length>0?r(lr.ApiError.ENOTEMPTY(t)):e.removeEntry(t,!0,r)}))},r.prototype.mkdir=function(t,r,e){var n=this.store.beginTransaction("readwrite"),o=Buffer.from("{}");this.commitNewFile(n,t,Sr.FileType.DIRECTORY,r,o,e)},r.prototype.readdir=function(t,r){var e=this,n=this.store.beginTransaction("readonly");this.findINode(n,t,(function(o,i){u(o,r)&&e.getDirListing(n,t,i,(function(t,e){u(t,r)&&r(null,Object.keys(e))}))}))},r.prototype._sync=function(t,r,e,n){var o=this,i=this.store.beginTransaction("readwrite");this._findINode(i,At.dirname(t),At.basename(t),(function(s,u){a(s,i,n)&&o.getINode(i,t,u,(function(t,o){if(a(t,i,n)){var s=o.update(e);i.put(o.id,r,!0,(function(t){a(t,i,n)&&(s?i.put(u,o.toBuffer(),!0,(function(t){a(t,i,n)&&i.commit(n)})):i.commit(n))}))}}))}))},r.prototype.makeRootDirectory=function(t){var r=this.store.beginTransaction("readwrite");r.get("/",(function(e,n){if(e||void 0===n){var o=(new Date).getTime(),u=new Tr.default(s(),4096,511|Sr.FileType.DIRECTORY,o,o,o);r.put(u.id,i(),!1,(function(e){a(e,r,t)&&r.put("/",u.toBuffer(),!1,(function(e){e?r.abort((function(){t(e)})):r.commit(t)}))}))}else r.commit(t)}))},r.prototype._findINode=function(t,r,e,n){var o=this,i=function(t,o,i){t?n(t):i[e]?n(null,i[e]):n(lr.ApiError.ENOENT(At.resolve(r,e)))};"/"===r?""===e?n(null,"/"):this.getINode(t,r,"/",(function(e,s){u(e,n)&&o.getDirListing(t,r,s,(function(t,r){i(t,0,r)}))})):this.findINodeAndDirListing(t,r,i)},r.prototype.findINode=function(t,r,e){var n=this;this._findINode(t,At.dirname(r),At.basename(r),(function(o,i){u(o,e)&&n.getINode(t,r,i,e)}))},r.prototype.getINode=function(t,r,e,n){t.get(e,(function(t,e){u(t,n)&&(void 0===e?n(lr.ApiError.ENOENT(r)):n(null,Tr.default.fromBuffer(e)))}))},r.prototype.getDirListing=function(t,r,e,n){e.isDirectory()?t.get(e.id,(function(t,e){if(u(t,n))try{n(null,JSON.parse(e.toString()))}catch(t){n(lr.ApiError.ENOENT(r))}})):n(lr.ApiError.ENOTDIR(r))},r.prototype.findINodeAndDirListing=function(t,r,e){var n=this;this.findINode(t,r,(function(o,i){u(o,e)&&n.getDirListing(t,r,i,(function(t,r){u(t,e)&&e(null,i,r)}))}))},r.prototype.addNewNode=function(t,r,e){var n,o=0,i=function(){5==++o?e(new lr.ApiError(lr.ErrorCode.EIO,"Unable to commit data to key-value store.")):(n=s(),t.put(n,r,!1,(function(t,r){t||!r?i():e(null,n)})))};i()},r.prototype.commitNewFile=function(t,r,e,n,o,i){var s=this,u=At.dirname(r),f=At.basename(r),c=(new Date).getTime();if("/"===r)return i(lr.ApiError.EEXIST(r));this.findINodeAndDirListing(t,u,(function(u,p,h){a(u,t,i)&&(h[f]?t.abort((function(){i(lr.ApiError.EEXIST(r))})):s.addNewNode(t,o,(function(r,u){if(a(r,t,i)){var l=new Tr.default(u,o.length,n|e,c,c,c);s.addNewNode(t,l.toBuffer(),(function(r,e){a(r,t,i)&&(h[f]=e,t.put(p.id,Buffer.from(JSON.stringify(h)),!0,(function(r){a(r,t,i)&&t.commit((function(r){a(r,t,i)&&i(null,l)}))})))}))}})))}))},r.prototype.removeEntry=function(t,r,e){var n=this,o=this.store.beginTransaction("readwrite"),i=At.dirname(t),s=At.basename(t);this.findINodeAndDirListing(o,i,(function(i,u,f){if(a(i,o,e))if(f[s]){var c=f[s];delete f[s],n.getINode(o,t,c,(function(n,i){a(n,o,e)&&(!r&&i.isDirectory()?o.abort((function(){e(lr.ApiError.EISDIR(t))})):r&&!i.isDirectory()?o.abort((function(){e(lr.ApiError.ENOTDIR(t))})):o.del(i.id,(function(t){a(t,o,e)&&o.del(c,(function(t){a(t,o,e)&&o.put(u.id,Buffer.from(JSON.stringify(f)),!0,(function(t){a(t,o,e)&&o.commit(e)}))}))})))}))}else o.abort((function(){e(lr.ApiError.ENOENT(t))}))}))},r}(wr.BaseFileSystem);r.AsyncKeyValueFileSystem=l}));pr(Rr),Rr.SimpleSyncRWTransaction,Rr.SyncKeyValueFile,Rr.SyncKeyValueFileSystem,Rr.AsyncKeyValueFile,Rr.AsyncKeyValueFileSystem;var Lr=hr((function(t,r){var e,n=cr&&cr.__extends||(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])},function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});r.__esModule=!0;var o=function(){function t(){this.store={}}return t.prototype.name=function(){return i.Name},t.prototype.clear=function(){this.store={}},t.prototype.beginTransaction=function(t){return new Rr.SimpleSyncRWTransaction(this)},t.prototype.get=function(t){return this.store[t]},t.prototype.put=function(t,r,e){return!(!e&&this.store.hasOwnProperty(t))&&(this.store[t]=r,!0)},t.prototype.del=function(t){delete this.store[t]},t}();r.InMemoryStore=o;var i=function(t){function r(){return t.call(this,{store:new o})||this}return n(r,t),r.Create=function(t,e){e(null,new r)},r}(Rr.SyncKeyValueFileSystem);i.Name="InMemory",i.Options={},r.default=i})),Dr=pr(Lr);Lr.InMemoryStore;var Br=hr((function(t,r){r.endianness=function(){return"LE"},r.hostname=function(){return"undefined"!=typeof location?location.hostname:""},r.loadavg=function(){return[]},r.uptime=function(){return 0},r.freemem=function(){return Number.MAX_VALUE},r.totalmem=function(){return Number.MAX_VALUE},r.cpus=function(){return[]},r.type=function(){return"Browser"},r.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},r.networkInterfaces=r.getNetworkInterfaces=function(){return{}},r.arch=function(){return"javascript"},r.platform=function(){return"browser"},r.tmpdir=r.tmpDir=function(){return"/tmp"},r.EOL="\n",r.homedir=function(){return"/"}})),kr=Br.endianness,Ur=Br.hostname,xr=Br.loadavg,Mr=Br.uptime,Yr=Br.freemem,jr=Br.totalmem,Vr=Br.cpus,zr=Br.type,Wr=Br.release,Xr=Br.networkInterfaces,Kr=Br.getNetworkInterfaces,Jr=Br.arch,Hr=Br.platform,qr=Br.tmpdir,Gr=Br.tmpDir,$r=Br.EOL,Zr=Br.homedir,Qr=Object.freeze(t({__proto__:null,default:Br,__moduleExports:Br,endianness:kr,hostname:Ur,loadavg:xr,uptime:Mr,freemem:Yr,totalmem:jr,cpus:Vr,type:zr,release:Wr,networkInterfaces:Xr,getNetworkInterfaces:Kr,arch:Jr,platform:Hr,tmpdir:qr,tmpDir:Gr,EOL:$r,homedir:Zr},[Br]));class te extends Cr{constructor(t,r,e,n,o){super(t,r,e,n,o)}sync(t){if(this.isDirty()){const r=this.getBuffer();this._fs._sync(this.getPath(),r,(r,e)=>{r||this.resetDirty(),t(r)})}else t()}close(t){this.sync(t)}syncSync(){this.isDirty()&&(this._fs._syncSync(this.getPath(),this.getBuffer()),this.resetDirty())}closeSync(){this.syncSync()}}class re extends vr{constructor(t){super(),this.baseFS=t.baseFS,this.omitValueOnEvent=t.omitValueOnEvent}static Create(t,r){r(null,new re(t))}static isAvailable(){return!0}getName(){return"VirtualFS"}isReadOnly(){return!1}supportsProps(){return!1}supportsSynch(){return!0}empty(t){const r=this.baseFS.getFiles();Object.keys(r).forEach(t=>{const e=r[t];this.baseFS.removeFile(e.path)}),t()}renameSync(t,r){const e=this.baseFS.getFiles(),n=Object.keys(e).filter(r=>r.startsWith(t)+"/"||r===t);if(0===n.length)throw dr.FileError(yr.ENOENT,t);n.map(t=>({path:t,file:e[t]})).forEach(({path:e,file:n})=>{this.baseFS.moveFile(n.path,e.replace(t,r))})}statSync(t,r){const e=this.baseFS.getFiles(),n=e[t];if(!n){if(Object.keys(e).filter(r=>r.startsWith(t.endsWith("/")?t:t+"/")||r===t).length>0)return new br(Ar.DIRECTORY,0);throw dr.FileError(yr.ENOENT,t)}return new br(Ar.FILE,((null==n?void 0:n.value)||"").length)}createFileSync(t,r,e){if("/"===t)throw dr.EEXIST(t);if(this.baseFS.getFiles()[t])throw dr.EEXIST(t);this.baseFS.addFile(t);const n=Buffer.from(""),o=new br(Ar.FILE,n.length);return new te(this,t,r,o,n)}openFileSync(t,r,e){const n=this.baseFS.getFiles()[t];if(!n)throw dr.ENOENT(t);const o=n.value||"",i=Buffer.from(o),s=new br(Ar.FILE,i.length);return new te(this,t,r,s,i)}rmdirSync(t){const r=this.baseFS.getFiles();Object.keys(r).filter(r=>r.startsWith(t+"/")||t===r).forEach(t=>{const e=r[t];this.baseFS.removeFile(e.path)})}mkdirSync(t){console.warn("mkdir [not implemented]",t)}readdirSync(t){const r=Object.keys(this.baseFS.getFiles()),e=t.endsWith("/")?t:t+"/",n=r.filter(t=>t.startsWith(e));if(0===n.length)return[];const o=new Set,i=e.split("/").length;return n.filter(t=>t.split("/").length>=i).forEach(t=>{const r=t.split("/");r.length=i,o.add(r.join("/"))}),Array.from(o).map(t=>t.replace(e,""))}_sync(t,r,e){const n=vt(t);this.stat(n,!1,(o,i)=>{if(o)e(dr.FileError(yr.ENOENT,n));else{const n=this.baseFS.getFiles()[t];this.omitValueOnEvent?this.baseFS.updateFile(n.path,void 0):this.baseFS.updateFile(n.path,r),e(null)}})}_syncSync(t,r){const e=vt(t);this.statSync(e,!1);const n=this.baseFS.getFiles()[t];n&&(this.omitValueOnEvent?this.baseFS.updateFile(n.path,void 0):this.baseFS.updateFile(n.path,r))}unlinkSync(t){const r=this.baseFS.getFiles()[t];if(!r)throw dr.ENOENT(t);this.baseFS.removeFile(r.path)}watch(t,r,e){if(!this.baseFS.getFiles()[t])throw dr.ENOENT(t);return"function"==typeof r?this.baseFS.watch(t,r):this.baseFS.watch(t,e)}unwatchFile(t,r){console.warn("unwatchFile: not implemented")}}re.Name="VirtualFS",re.Options={baseFS:{type:"object",description:"Base file system",validator:(t,r)=>{t?r():r(new dr(yr.EINVAL,"Base FS is invalid"))}},omitValueOnEvent:{type:"boolean",description:"Omit value on event",validator:(t,r)=>{r()}}};const ee=Object.getOwnPropertyDescriptors||function(t){const r=Object.keys(t),e={};for(let n=0;n<r.length;n++)e[r[n]]=Object.getOwnPropertyDescriptor(t,r[n]);return e},ne="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function oe(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(ne&&t[ne]){const r=t[ne];if("function"!=typeof r)throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,ne,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){let r,e;const n=new Promise((function(t,n){r=t,e=n})),o=[];for(let t=0;t<arguments.length;t++)o.push(arguments[t]);o.push((function(t,n){1!==arguments.length||t instanceof Error?t?e(t):r(n):r(t)}));try{t.apply(this,o)}catch(t){e(t)}return n}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),ne&&Object.defineProperty(r,ne,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,ee(t))}oe.custom=ne;const ie="undefined"!=typeof window?(se=window,new Proxy(se,{get(t,r,e){const n=Symbol.for("__"+r+"__");if(n)return t[n]},set:(t,r,e)=>t[Symbol.for("__"+r+"__")]=e})):{};var se;return{FS:Fr,backends:{InMemory:Dr,VirtualFS:re},polyFills:{path:Ot,buffer:Q,process:fr,os:Qr,events:{EventEmitter:rt}},plugins:{},BFSRequire:function(t){var r;switch(t){case"fs":return Ir;case"fs/promises":return Ir.promises;case"path":return Object.assign(Object.assign({},Ot),{posix:Ot});case"buffer":return Q;case"process":const e=Object.assign({},fr);return e.versions.node="16.14.0",e;case"events":return rt;case"os":return Qr;default:ie.startedPackages||(ie.startedPackages=new Map);const n=ie.startedPackages,o=null===(r=ie.modules)||void 0===r?void 0:r[t];if(o){if(n.has(t))return n.get(t);{const r=o(window);return n.set(t,r),r}}throw new Error(`Module "${t}" does not exist`)}},initialize:function(t){ie.startedPackages=new Map;const r=Ir.initialize(t);var e;return(e=Ir).promises={access:oe(e.access),appendFile:oe(e.appendFile),chmod:oe(e.chmod),chown:oe(e.chown),readdir:oe(e.readdir),readFile:oe(e.readFile),readlink:oe(e.readlink),realpath:oe(e.realpath),rename:oe(e.rename),rmdir:oe(e.rmdir),stat:oe(e.stat),symlink:oe(e.symlink),truncate:oe(e.truncate),unlink:oe(e.unlink),utimes:oe(e.utimes),writeFile:oe(e.writeFile)},r}}}(); window.process = { env: { NODE_ENV: 'development' }, nextTick: function(cb) { return requestAnimationFrame(cb); }, browser: false, once: __bfs__.BFSRequire('process').once,};window.path = __bfs__.BFSRequire('path');window.fs = __bfs__.BFSRequire('fs');window.events = __bfs__.BFSRequire('events');window.os = __bfs__.BFSRequire('os');window.process = __bfs__.BFSRequire('process');window.process.stdout = {isTTY: true};window.buffer = __bfs__.BFSRequire('buffer');window.buffer.hasOwnProperty = () => true;window.Buffer = window.buffer.Buffer;window.require = __bfs__.BFSRequire;window.__filename = '/index.js';window.__dirname = '/';__bfs__.backends.InMemory.Create({}, ( e, inMemory ) => { if ( e ) { console.error(e); return; }; __bfs__.initialize(inMemory);});</script><script></script></head>
<body>
<h1>BlipGlitch Apps</h1>
<div class="button-list">
<a href="https://BGText.playcode.io/index.html" class="btn">Glitch Text-Based Static Browser with Tabs</a>
<a href="https://blipbrowser.playcode.io/" class="btn">Blip Text-Based API Static Browser Proxy with Tabs</a>
<a href="https://blipai.playcode.io/" class="btn">Blip! AI Chatbot</a>
<a href="https://bgformula.playcode.io/" class="btn">Search Scientific Principles and Formulae</a>
<a href="https://blipcipher.playcode.io/" class="btn">Completely encode information</a>
<a href="https://bgformula.playcode.io/" class="btn">Lookup words and synonyms here</a>
</div>
</body>
</html>