@rsbuild/core 2.1.9 → 2.1.11

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/memfs.js CHANGED
@@ -1 +1 @@
1
- import{__webpack_require__ as e}from"./rslib-runtime.js";import"./626.js";e.add({"../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/constants.js"(e,t){t.alphabet=void 0,t.alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/","function"==typeof Buffer&&Buffer.from},"../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/createFromBase64Bin.js"(e,t,s){t.createFromBase64Bin=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/constants.js");t.createFromBase64Bin=(e=i.alphabet,t="=")=>{if(64!==e.length)throw Error("chars must be 64 characters long");let s=0;for(let t=0;t<e.length;t++)s=Math.max(s,e.charCodeAt(t));let o=[];for(let e=0;e<=s;e+=1)o[e]=-1;for(let t=0;t<e.length;t++)o[e.charCodeAt(t)]=t;let r=1===t.length?t.charCodeAt(0):0;return(e,t,s)=>{if(!s)return new Uint8Array(0);let i=0;if(s%4!=0)i=4-s%4,s+=i;else{let o=t+s-1;e.getUint8(o)===r&&(i=1,s>1&&e.getUint8(o-1)===r&&(i=2))}if(s%4!=0)throw Error("Base64 string length must be a multiple of 4");let n=t+s-4*!!i,l=new Uint8Array((s>>2)*3-i),d=0,a=t;for(;a<n;a+=4){let t=e.getUint32(a),s=t>>>24,i=t>>>16&255,r=t>>>8&255,n=255&t,h=o[s],u=o[i],c=o[r],f=o[n];if(h<0||u<0||c<0||f<0)throw Error("INVALID_BASE64_SEQ");l[d]=h<<2|u>>4,l[d+1]=u<<4|c>>2,l[d+2]=c<<6|f,d+=3}if(!i)return l;if(1===i){let t=e.getUint16(n),s=e.getUint8(n+2),i=o[t>>8],r=o[255&t],a=o[s];if(i<0||r<0||a<0)throw Error("INVALID_BASE64_SEQ");return l[d]=i<<2|r>>4,l[d+1]=r<<4|a>>2,l}let h=e.getUint16(n),u=o[h>>8],c=o[255&h];if(u<0||c<0)throw Error("INVALID_BASE64_SEQ");return l[d]=u<<2|c>>4,l}}},"../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/createToBase64Bin.js"(e,t,s){t.createToBase64Bin=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/constants.js");t.createToBase64Bin=(e=i.alphabet,t="=")=>{if(64!==e.length)throw Error("chars must be 64 characters long");let s=e.split("").map(e=>e.charCodeAt(0)),o=[];for(let e of s)for(let t of s){let s=(e<<8)+t;o.push(s)}let r=1===t.length,n=r?t.charCodeAt(0):0,l=r?n<<8|n:0;return(e,t,i,d,a)=>{let h=i%3,u=i-h;for(;t<u;t+=3){let s=e[t],i=e[t+1],r=e[t+2],n=s<<4|i>>4,l=(15&i)<<8|r;d.setInt32(a,(o[n]<<16)+o[l]),a+=4}if(1===h){let t=e[u];r?(d.setInt32(a,(o[t<<4]<<16)+l),a+=4):(d.setInt16(a,o[t<<4]),a+=2)}else if(h){let t=e[u],i=e[u+1],l=t<<4|i>>4,h=(15&i)<<2;r?(d.setInt32(a,(o[l]<<16)+(s[h]<<8)+n),a+=4):(d.setInt16(a,o[l]),a+=2,d.setInt8(a,s[h]),a+=1)}return a}}},"../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/fromBase64Bin.js"(e,t,s){t.fromBase64Bin=void 0,t.fromBase64Bin=(0,s("../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/createFromBase64Bin.js").createFromBase64Bin)()},"../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/toBase64Bin.js"(e,t,s){t.toBase64Bin=void 0,t.toBase64Bin=(0,s("../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/createToBase64Bin.js").createToBase64Bin)()},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Reader.js"(e,t,s){t.Reader=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/index.js");t.Reader=class e{constructor(e=new Uint8Array([]),t=new DataView(e.buffer,e.byteOffset,e.length),s=0,i=e.length){this.uint8=e,this.view=t,this.x=s,this.end=i}reset(e){this.x=0,this.uint8=e,this.view=new DataView(e.buffer,e.byteOffset,e.length)}size(){return this.end-this.x}peek(){return this.view.getUint8(this.x)}peak(){return this.peek()}skip(e){this.x+=e}buf(e=this.size()){let t=this.x,s=t+e,i=this.uint8.subarray(t,s);return this.x=s,i}subarray(e=0,t){let s=this.x,i="number"==typeof t?s+t:this.end;return this.uint8.subarray(s+e,i)}slice(t=0,s){let i=this.x,o="number"==typeof s?i+s:this.end;return new e(this.uint8,this.view,i+t,o)}cut(e=this.size()){let t=this.slice(0,e);return this.skip(e),t}u8(){return this.uint8[this.x++]}i8(){return this.view.getInt8(this.x++)}u16(){let e=this.x,t=(this.uint8[e++]<<8)+this.uint8[e++];return this.x=e,t}i16(){let e=this.view.getInt16(this.x);return this.x+=2,e}u32(){let e=this.view.getUint32(this.x);return this.x+=4,e}i32(){let e=this.view.getInt32(this.x);return this.x+=4,e}u64(){let e=this.view.getBigUint64(this.x);return this.x+=8,e}i64(){let e=this.view.getBigInt64(this.x);return this.x+=8,e}f32(){let e=this.x;return this.x+=4,this.view.getFloat32(e)}f64(){let e=this.x;return this.x+=8,this.view.getFloat64(e)}utf8(e){let t=this.x;return this.x+=e,(0,i.decodeUtf8)(this.uint8,t,e)}ascii(e){let t=this.uint8,s="",i=this.x+e;for(let e=this.x;e<i;e++)s+=String.fromCharCode(t[e]);return this.x=i,s}}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Slice.js"(e,t){t.Slice=void 0,t.Slice=class{constructor(e,t,s,i){this.uint8=e,this.view=t,this.start=s,this.end=i}subarray(){return this.uint8.subarray(this.start,this.end)}}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Writer.js"(e,t,s){t.Writer=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Slice.js"),o=new DataView(new Uint8Array([]).buffer),r="function"==typeof Buffer,n=r?Buffer.prototype.utf8Write:null,l=r?Buffer.from:null,d="u">typeof TextEncoder?new TextEncoder:null;t.Writer=class{constructor(e=65536){this.allocSize=e,this.view=o,this.x0=0,this.x=0,this.uint8=new Uint8Array(e),this.size=e,this.view=new DataView(this.uint8.buffer)}grow(e){let t=this.x0,s=this.x,i=this.uint8,o=new Uint8Array(e),r=new DataView(o.buffer),n=i.subarray(t,s);o.set(n,0),this.x=s-t,this.x0=0,this.uint8=o,this.size=e,this.view=r}ensureCapacity(e){let t=this.size,s=t-this.x;if(s<e){let i=t-this.x0+(e-s);this.grow(i<=this.allocSize?this.allocSize:2*i)}}move(e){this.ensureCapacity(e),this.x+=e}reset(){this.x0=this.x}newBuffer(e){let t=this.uint8=new Uint8Array(e);this.size=e,this.view=new DataView(t.buffer),this.x=this.x0=0}flush(){let e=this.uint8.subarray(this.x0,this.x);return this.x0=this.x,e}flushSlice(){let e=new i.Slice(this.uint8,this.view,this.x0,this.x);return this.x0=this.x,e}u8(e){this.ensureCapacity(1),this.uint8[this.x++]=e}u16(e){this.ensureCapacity(2),this.view.setUint16(this.x,e),this.x+=2}u32(e){this.ensureCapacity(4),this.view.setUint32(this.x,e),this.x+=4}i32(e){this.ensureCapacity(4),this.view.setInt32(this.x,e),this.x+=4}u64(e){this.ensureCapacity(8),this.view.setBigUint64(this.x,BigInt(e)),this.x+=8}f64(e){this.ensureCapacity(8),this.view.setFloat64(this.x,e),this.x+=8}u8u16(e,t){this.ensureCapacity(3);let s=this.x;this.uint8[s++]=e,this.uint8[s++]=t>>>8,this.uint8[s++]=255&t,this.x=s}u8u32(e,t){this.ensureCapacity(5);let s=this.x;this.uint8[s++]=e,this.view.setUint32(s,t),this.x=s+4}u8u64(e,t){this.ensureCapacity(9);let s=this.x;this.uint8[s++]=e,this.view.setBigUint64(s,BigInt(t)),this.x=s+8}u8f32(e,t){this.ensureCapacity(5);let s=this.x;this.uint8[s++]=e,this.view.setFloat32(s,t),this.x=s+4}u8f64(e,t){this.ensureCapacity(9);let s=this.x;this.uint8[s++]=e,this.view.setFloat64(s,t),this.x=s+8}buf(e,t){this.ensureCapacity(t);let s=this.x;this.uint8.set(e,s),this.x=s+t}utf8(e){let t=4*e.length;if(t<168)return this.utf8Native(e);this.ensureCapacity(t);let s=this.size-this.x;if(n){let t=n.call(this.uint8,e,this.x,s);return this.x+=t,t}if(l){let t=this.uint8,i=t.byteOffset+this.x,o=l(t.buffer).subarray(i,i+s).write(e,0,s,"utf8");return this.x+=o,o}if(t>1024&&d){let t=d.encodeInto(e,this.uint8.subarray(this.x,this.x+s)).written;return this.x+=t,t}return this.utf8Native(e)}utf8Native(e){let t=e.length,s=this.uint8,i=this.x,o=0;for(;o<t;){let r=e.charCodeAt(o++);if((0xffffff80&r)==0){s[i++]=r;continue}if((0xfffff800&r)==0)s[i++]=r>>6&31|192;else{if(r>=55296&&r<=56319&&o<t){let t=e.charCodeAt(o);(64512&t)==56320&&(o++,r=((1023&r)<<10)+(1023&t)+65536)}(0xffff0000&r)==0?s[i++]=r>>12&15|224:(s[i++]=r>>18&7|240,s[i++]=r>>12&63|128),s[i++]=r>>6&63|128}s[i++]=63&r|128}let r=i-this.x;return this.x=i,r}ascii(e){let t=e.length;this.ensureCapacity(t);let s=this.uint8,i=this.x,o=0;for(;o<t;)s[i++]=e.charCodeAt(o++);this.x=i}}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/f16.js"(e,t){t.decodeF16=void 0;let s=Math.pow;t.decodeF16=e=>{let t=(31744&e)>>10,i=1023&e;return(e>>15?-1:1)*(t?31===t?i?NaN:1/0:s(2,t-15)*(1+i/1024):i/1024*6103515625e-14)}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/isFloat32.js"(e,t){t.isFloat32=void 0;let s=new DataView(new ArrayBuffer(4));t.isFloat32=e=>(s.setFloat32(0,e),e===s.getFloat32(0))},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/CachedUtf8Decoder.js"(e,t,s){t.CachedUtf8Decoder=void 0;let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs").__importDefault(s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/v10.js")),o=1+Math.round(0xfffffffe*Math.random());class r{constructor(e,t){this.bytes=e,this.value=t}}t.CachedUtf8Decoder=class{constructor(){this.caches=[];for(let e=0;e<31;e++)this.caches.push([])}get(e,t,s){let i=this.caches[s-1],o=i.length;e:for(let r=0;r<o;r++){let o=i[r],n=o.bytes;for(let i=0;i<s;i++)if(n[i]!==e[t+i])continue e;return o.value}return null}store(e,t){let s=this.caches[e.length-1],i=new r(e,t);s.length>=16?s[o^=o<<13,o^=o>>>17,((o^=o<<5)>>>0)%16+0]=i:s.push(i)}decode(e,t,s){if(!s)return"";let o=this.get(e,t,s);if(null!==o)return o;let r=(0,i.default)(e,t,s),n=Uint8Array.prototype.slice.call(e,t,t+s);return this.store(n,r),r}}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeAscii.js"(e,t){t.decodeAsciiMax15=t.decodeAscii=void 0;let s=String.fromCharCode;t.decodeAscii=(e,t,i)=>{let o=[];for(let s=0;s<i;s++){let s=e[t++];if(128&s)return;o.push(s)}return s.apply(String,o)},t.decodeAsciiMax15=(e,t,i)=>{if(i<4)if(i<2)if(0===i)return"";else{let i=e[t++];if((128&i)>1){t-=1;return}return s(i)}else{let o=e[t++],r=e[t++];if((128&o)>0||(128&r)>0){t-=2;return}if(i<3)return s(o,r);let n=e[t++];if((128&n)>0){t-=3;return}return s(o,r,n)}{let o=e[t++],r=e[t++],n=e[t++],l=e[t++];if((128&o)>0||(128&r)>0||(128&n)>0||(128&l)>0){t-=4;return}if(i<6)if(4===i)return s(o,r,n,l);else{let i=e[t++];if((128&i)>0){t-=5;return}return s(o,r,n,l,i)}if(i<8){let d=e[t++],a=e[t++];if((128&d)>0||(128&a)>0){t-=6;return}if(i<7)return s(o,r,n,l,d,a);let h=e[t++];if((128&h)>0){t-=7;return}return s(o,r,n,l,d,a,h)}{let d=e[t++],a=e[t++],h=e[t++],u=e[t++];if((128&d)>0||(128&a)>0||(128&h)>0||(128&u)>0){t-=8;return}if(i<10)if(8===i)return s(o,r,n,l,d,a,h,u);else{let i=e[t++];if((128&i)>0){t-=9;return}return s(o,r,n,l,d,a,h,u,i)}if(i<12){let c=e[t++],f=e[t++];if((128&c)>0||(128&f)>0){t-=10;return}if(i<11)return s(o,r,n,l,d,a,h,u,c,f);let m=e[t++];if((128&m)>0){t-=11;return}return s(o,r,n,l,d,a,h,u,c,f,m)}{let c=e[t++],f=e[t++],m=e[t++],p=e[t++];if((128&c)>0||(128&f)>0||(128&m)>0||(128&p)>0){t-=12;return}if(i<14)if(12===i)return s(o,r,n,l,d,a,h,u,c,f,m,p);else{let i=e[t++];if((128&i)>0){t-=13;return}return s(o,r,n,l,d,a,h,u,c,f,m,p,i)}{let y=e[t++],b=e[t++];if((128&y)>0||(128&b)>0){t-=14;return}if(i<15)return s(o,r,n,l,d,a,h,u,c,f,m,p,y,b);let _=e[t++];if((128&_)>0){t-=15;return}return s(o,r,n,l,d,a,h,u,c,f,m,p,y,b,_)}}}}}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/index.js"(e,t,s){t.decodeUtf8=void 0,t.decodeUtf8=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs").__importDefault(s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/v16.js")).default},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/v10.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0});let s=String.fromCharCode;t.default=(e,t,i)=>{let o=t,r=o+i,n="";for(;o<r;){let t=e[o++];if((128&t)==0){n+=s(t);continue}let i=63&e[o++];if((224&t)==192){n+=s((31&t)<<6|i);continue}let r=63&e[o++];if((240&t)==224){n+=s((31&t)<<12|i<<6|r);continue}if((248&t)==240){let l=(7&t)<<18|i<<12|r<<6|63&e[o++];l>65535?n+=s((l-=65536)>>>10&1023|55296,l=56320|1023&l):n+=s(l)}else n+=s(t)}return n}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/v16.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"),o=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeAscii.js"),r=i.__importDefault(s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/v18.js")),n="u">typeof Buffer,l=n?Buffer.prototype.utf8Slice:null,d=n?Buffer.from:null,a=l?(e,t,s)=>l.call(e,t,t+s):d?(e,t,s)=>d(e).subarray(t,t+s).toString("utf8"):r.default;t.default=(e,t,s)=>{if(s<16)return(0,o.decodeAsciiMax15)(e,t,s)??(0,r.default)(e,t,s);if(s<32)return(0,o.decodeAscii)(e,t,s)??(0,r.default)(e,t,s);return a(e,t,s)}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/v18.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0});let s=String.fromCharCode;t.default=(e,t,i)=>{let o=t,r=o+i,n=[];for(;o<r;){let t=e[o++];if((128&t)!=0){let s=63&e[o++];if((224&t)==192)t=(31&t)<<6|s;else{let i=63&e[o++];if((240&t)==224)t=(31&t)<<12|s<<6|i;else if((248&t)==240){let r=(7&t)<<18|s<<12|i<<6|63&e[o++];if(r>65535){let e=(r-=65536)>>>10&1023|55296;t=56320|1023&r,n.push(e)}else t=r}}}n.push(t)}return s.apply(String,n)}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/sharedCachedUtf8Decoder.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=new(s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/CachedUtf8Decoder.js")).CachedUtf8Decoder},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/File.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.File=void 0;let{O_APPEND:i}=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js").constants;t.File=class{constructor(e,t,s,o){this.link=e,this.node=t,this.flags=s,this.fd=o,this.position=0,this.flags&i&&(this.position=this.getSize())}getString(e="utf8"){return this.node.getString()}setString(e){this.node.setString(e)}getBuffer(){return this.node.getBuffer()}setBuffer(e){this.node.setBuffer(e)}getSize(){return this.node.getSize()}truncate(e){this.node.truncate(e)}seekTo(e){this.position=e}write(e,t=0,s=e.length,i){"number"!=typeof i&&(i=this.position);let o=this.node.write(e,t,s,i);return this.position=i+o,o}read(e,t=0,s=e.byteLength,i){"number"!=typeof i&&(i=this.position);let o=this.node.read(e,t,s,i);return this.position=i+o,o}chmod(e){this.node.chmod(e)}chown(e,t){this.node.chown(e,t)}}},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Link.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),o=s("../../node_modules/.pnpm/thingies@2.6.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js"),{S_IFREG:r}=i.constants;t.Link=class e{get steps(){return this._steps}set steps(e){for(let[t,s]of(this._steps=e,this.children.entries()))"."!==t&&".."!==t&&s?.syncSteps()}constructor(e,t,s){this.changes=new o.FanOut,this.children=new Map,this._steps=[],this.ino=0,this.length=0,this.vol=e,this.parent=t,this.name=s,this.syncSteps()}setNode(e){this.node=e,this.ino=e.ino}getNode(){return this.node}createChild(t,s=this.vol.createNode(438|r)){let i=new e(this.vol,this,t);return i.setNode(s),s.isDirectory()&&(i.children.set(".",i),i.getNode().nlink++),this.setChild(t,i),i}setChild(t,s=new e(this.vol,this,t)){return this.children.set(t,s),s.parent=this,this.length++,s.getNode().isDirectory()&&(s.children.set("..",this),this.getNode().nlink++),this.getNode().mtime=new Date,this.changes.emit(["child:add",s,this]),s}deleteChild(e){e.getNode().isDirectory()&&(e.children.delete(".."),this.getNode().nlink--),this.children.delete(e.getName()),this.length--,this.getNode().mtime=new Date,this.changes.emit(["child:del",e,this])}getChild(e){return this.getNode().atime=new Date,this.children.get(e)}getPath(){return this.steps.join("/")}getParentPath(){return this.steps.slice(0,-1).join("/")||"/"}getName(){return this.steps[this.steps.length-1]}toJSON(){return{steps:this.steps,ino:this.ino,children:Array.from(this.children.keys())}}syncSteps(){this.steps=this.parent?this.parent.steps.concat([this.name]):[this.name]}}},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Node.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Node=void 0;let i=s("../../node_modules/.pnpm/thingies@2.6.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),{S_IFMT:n,S_IFDIR:l,S_IFREG:d,S_IFLNK:a,S_IFCHR:h}=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js").constants,u=()=>o.default.getuid?.()??0,c=()=>o.default.getgid?.()??0,f=(0,r.bufferAllocUnsafe)(0);t.Node=class{constructor(e,t=438,s=u(),o=c()){this.changes=new i.FanOut,this._uid=u(),this._gid=c(),this._atime=new Date,this._mtime=new Date,this._ctime=new Date,this.buf=f,this.capacity=0,this.size=0,this.rdev=0,this._nlink=1,this.mode=t,this.ino=e,this._uid=s,this._gid=o}set ctime(e){this._ctime=e}get ctime(){return this._ctime}set uid(e){this._uid=e,this.ctime=new Date}get uid(){return this._uid}set gid(e){this._gid=e,this.ctime=new Date}get gid(){return this._gid}set atime(e){this._atime=e}get atime(){return this._atime}set mtime(e){this._mtime=e,this.ctime=new Date}get mtime(){return this._mtime}get perm(){return this.mode&~n}set perm(e){this.mode=this.mode&n|e&~n,this.ctime=new Date}set nlink(e){this._nlink=e,this.ctime=new Date}get nlink(){return this._nlink}getString(e="utf8"){return this.atime=new Date,this.getBuffer().toString(e)}setString(e){this._setBuf((0,r.bufferFrom)(e,"utf8"))}getBuffer(){return this.atime=new Date,this.buf||(this.buf=(0,r.bufferAllocUnsafe)(0)),(0,r.bufferFrom)(this.buf.subarray(0,this.size))}setBuffer(e){let t=(0,r.bufferFrom)(e);this._setBuf(t)}_setBuf(e){let t=e.length;this.buf=e,this.capacity=t,this.size=t,this.touch()}getSize(){return this.size}setModeProperty(e){this.mode=e}isFile(){return(this.mode&n)===d}isDirectory(){return(this.mode&n)===l}isSymlink(){return(this.mode&n)===a}isCharacterDevice(){return(this.mode&n)===h}makeSymlink(e){this.mode=438|a,this.symlink=e}write(e,t=0,s=e.length,i=0){let o=e.length;if(t+s>o&&(s=o-t),s<=0)return 0;let n=i+s;if(n>this.capacity){let e=Math.max(2*this.capacity,64);for(;e<n;)e*=2;let t=(0,r.bufferAllocUnsafe)(e);this.size>0&&this.buf.copy(t,0,0,this.size),this.buf=t,this.capacity=e}return i>this.size&&this.buf.fill(0,this.size,i),e.copy(this.buf,i,t,t+s),n>this.size&&(this.size=n),this.touch(),s}read(e,t=0,s=e.byteLength,i=0){if(this.atime=new Date,i>=this.size)return 0;let o=s;if(o>e.byteLength&&(o=e.byteLength),o+i>this.size&&(o=this.size-i),o<=0)return 0;let n=e instanceof r.Buffer?e:r.Buffer.from(e.buffer,e.byteOffset,e.byteLength);return this.buf.copy(n,t,i,i+o),o}truncate(e=0){if(e<=0){this.buf=f,this.capacity=0,this.size=0,this.touch();return}if(e<=this.size)this.size=e;else{if(e>this.capacity){let t=Math.max(2*this.capacity,64);for(;t<e;)t*=2;let s=(0,r.bufferAllocUnsafe)(t);this.size>0&&this.buf.copy(s,0,0,this.size),s.fill(0,this.size,e),this.buf=s,this.capacity=t}else this.buf.fill(0,this.size,e);this.size=e}this.touch()}chmod(e){this.mode=this.mode&n|e&~n,this.touch()}chown(e,t){this.uid=e,this.gid=t,this.touch()}touch(){this.mtime=new Date,this.changes.emit(["modify"])}canRead(e=u(),t=c()){return!!(4&this.perm)||t===this.gid&&!!(32&this.perm)||e===this.uid&&!!(256&this.perm)}canWrite(e=u(),t=c()){return!!(2&this.perm)||t===this.gid&&!!(16&this.perm)||e===this.uid&&!!(128&this.perm)}canExecute(e=u(),t=c()){return!!(1&this.perm)||t===this.gid&&!!(8&this.perm)||e===this.uid&&!!(64&this.perm)}del(){this.changes.emit(["delete"])}toJSON(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}}}},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Superblock.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Superblock=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Node.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Link.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/File.js"),l=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),d=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js"),a=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),h=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),u=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js"),c=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/json.js"),f=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/result.js"),m=s("../../node_modules/.pnpm/thingies@2.6.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js"),p=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/watch/FsEvent.js"),y=i.posix?i.posix.sep:i.sep,b=i.posix?i.posix.relative:i.relative,_=i.posix?i.posix.join:i.join,{O_RDONLY:j,O_WRONLY:w,O_RDWR:g,O_CREAT:S,O_EXCL:E,O_TRUNC:v,O_APPEND:O,O_DIRECTORY:k}=a.constants;class T{static fromJSON(e,t,s){let i=new T(s);return i.fromJSON(e,t),i}static fromNestedJSON(e,t,s){let i=new T(s);return i.fromNestedJSON(e,t),i}constructor(e={}){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.maxFiles=1e4,this.openFiles=0,this.changes=new m.FanOut,this.open=(e,t,s,i=!0)=>{let o=this.openFile(e,t,s,i);if(!o)throw(0,u.createError)("ENOENT","open",e);return o.fd},this.writeFile=(e,t,s,i)=>{let o,r="number"==typeof e;o=r?e:this.open((0,u.pathToFilename)(e),s,i);let n=0,l=t.length,d=s&O?void 0:0;try{for(;l>0;){let e=this.write(o,t,n,l,d);n+=e,l-=e,void 0!==d&&(d+=e)}}finally{r||this.close(o)}},this.read=(e,t,s,i,o)=>{if(t.byteLength<i)throw(0,u.createError)("ERR_OUT_OF_RANGE","read",void 0,void 0,RangeError);let r=this.getFileByFdOrThrow(e);if(r.node.isSymlink())throw(0,u.createError)("EPERM","read",r.link.getPath());return r.read(t,Number(s),Number(i),-1===o||"number"!=typeof o?void 0:o)},this.readv=(e,t,s)=>{let i=this.getFileByFdOrThrow(e),o=s??void 0;-1===o&&(o=void 0);let r=0;for(let e of t){let t=i.read(e,0,e.byteLength,o);if(o=void 0,r+=t,t<e.byteLength)break}return r},this.link=(e,t)=>{let s,o;try{s=this.getLinkOrThrow(e,"link")}catch(s){throw s.code&&(s=(0,u.createError)(s.code,"link",e,t)),s}let r=(0,i.dirname)(t);try{o=this.getLinkOrThrow(r,"link")}catch(s){throw s.code&&(s=(0,u.createError)(s.code,"link",e,t)),s}let n=(0,i.basename)(t);if(o.getChild(n))throw(0,u.createError)("EEXIST","link",e,t);let l=s.getNode();l.nlink++;let d=o.createChild(n,l);this.emit(new p.FsEvent(0,d.steps,l,d))},this.unlink=e=>{let t=this.getLinkOrThrow(e,"unlink");if(t.length)throw Error("Dir not empty...");this._emitDeleteRecursive(t),this.deleteLink(t);let s=t.getNode();s.nlink--,s.nlink<=0&&this.deleteNode(s)},this.symlink=(e,t)=>{let s,i=(0,u.filenameToSteps)(t);try{s=this.getLinkParentAsDirOrThrow(i)}catch(s){throw s.code&&(s=(0,u.createError)(s.code,"symlink",e,t)),s}let o=i[i.length-1];if(s.getChild(o))throw(0,u.createError)("EEXIST","symlink",e,t);let r=s.getNode();if(!r.canExecute()||!r.canWrite())throw(0,u.createError)("EACCES","symlink",e,t);let n=s.createChild(o);return n.getNode().makeSymlink(e),this.emit(new p.FsEvent(0,n.steps,n.getNode(),n)),n},this.rename=(e,t)=>{let s,o;try{s=this.getResolvedLinkOrThrow(e)}catch(s){throw s.code&&(s=(0,u.createError)(s.code,"rename",e,t)),s}try{o=this.getLinkParentAsDirOrThrow(t)}catch(s){throw s.code&&(s=(0,u.createError)(s.code,"rename",e,t)),s}let r=s.parent;if(!r)throw(0,u.createError)("EINVAL","rename",e,t);let n=r.getNode(),l=o.getNode();if(!n.canExecute()||!n.canWrite()||!l.canExecute()||!l.canWrite())throw(0,u.createError)("EACCES","rename",e,t);r.deleteChild(s);let d=(0,i.basename)(t),a=s.steps;s.name=d,s.steps=[...o.steps,d],o.setChild(s.getName(),s),this.emit(new p.FsEvent(4,s.steps,s.getNode(),s,a))},this.mkdir=(e,t)=>{let s=(0,u.filenameToSteps)(e);if(!s.length)throw(0,u.createError)("EEXIST","mkdir",e);let i=this.getLinkParentAsDirOrThrow(e,"mkdir"),o=s[s.length-1];if(i.getChild(o))throw(0,u.createError)("EEXIST","mkdir",e);let r=i.getNode();if(!r.canWrite()||!r.canExecute())throw(0,u.createError)("EACCES","mkdir",e);let n=i.createChild(o,this.createNode(a.constants.S_IFDIR|t));this.emit(new p.FsEvent(0,n.steps,n.getNode(),n))},this.mkdirp=(e,t)=>{let s=!1,o=(0,u.filenameToSteps)(e),r=null,n=o.length;for(n=o.length;n>=0&&!(r=this.getResolvedLink(o.slice(0,n)));n--);for(r||(r=this.root,n=0),r=this.getResolvedLinkOrThrow(i.sep+o.slice(0,n).join(i.sep),"mkdir");n<o.length;n++){let i=r.getNode();if(i.isDirectory()){if(!i.canExecute()||!i.canWrite())throw(0,u.createError)("EACCES","mkdir",e)}else throw(0,u.createError)("ENOTDIR","mkdir",e);s=!0,r=r.createChild(o[n],this.createNode(a.constants.S_IFDIR|t)),this.emit(new p.FsEvent(0,r.steps,r.getNode(),r))}return s?e:void 0},this.rmdir=(e,t=!1)=>{let s=this.getLinkAsDirOrThrow(e,"rmdir");if(s.length&&!t)throw(0,u.createError)("ENOTEMPTY","rmdir",e);this._emitDeleteRecursive(s),this.deleteLink(s)},this.rm=(e,t=!1,s=!1)=>{let i;try{i=this.getResolvedLinkOrThrow(e,"stat")}catch(e){if("ENOENT"===e.code&&t)return;throw e}if(i.getNode().isDirectory()&&!s)throw(0,u.createError)("ERR_FS_EISDIR","rm",e);if(!i.parent?.getNode().canWrite())throw(0,u.createError)("EACCES","rm",e);this._emitDeleteRecursive(i),this.deleteLink(i)},this.close=e=>{(0,u.validateFd)(e);let t=this.getFileByFdOrThrow(e,"close");this.closeFile(t)},this.ftruncate=(e,t)=>{let s=this.getFileByFdOrThrow(e,"ftruncate");s.truncate(t),this.emit(new p.FsEvent(2,s.link.steps,s.node,s.link))},this.fchmod=(e,t)=>{let s=this.getFileByFdOrThrow(e,"fchmod");s.chmod(t),this.emit(new p.FsEvent(3,s.link.steps,s.node,s.link))},this.chmod=(e,t)=>{let s=this.getResolvedLinkOrThrow(e,"chmod");s.getNode().chmod(t),this.emit(new p.FsEvent(3,s.steps,s.getNode(),s))},this.lchmod=(e,t)=>{let s=this.getLinkOrThrow(e,"lchmod");s.getNode().chmod(t),this.emit(new p.FsEvent(3,s.steps,s.getNode(),s))},this.fchown=(e,t,s)=>{let i=this.getFileByFdOrThrow(e,"fchown");i.chown(t,s),this.emit(new p.FsEvent(3,i.link.steps,i.node,i.link))},this.chown=(e,t,s)=>{let i=this.getResolvedLinkOrThrow(e,"chown");i.getNode().chown(t,s),this.emit(new p.FsEvent(3,i.steps,i.getNode(),i))},this.lchown=(e,t,s)=>{let i=this.getLinkOrThrow(e,"lchown");i.getNode().chown(t,s),this.emit(new p.FsEvent(3,i.steps,i.getNode(),i))},this.futimes=(e,t,s)=>{let i=this.getFileByFdOrThrow(e,"futimes"),o=i.node;o.atime=new Date(1e3*t),o.mtime=new Date(1e3*s),this.emit(new p.FsEvent(3,i.link.steps,i.node,i.link))},this.utimes=(e,t,s,i=!0)=>{let o=i?this.getResolvedLinkOrThrow(e,"utimes"):this.getLinkOrThrow(e,"lutimes"),r=o.getNode();r.atime=new Date(1e3*t),r.mtime=new Date(1e3*s),this.emit(new p.FsEvent(3,o.steps,r,o))},this.process=e.process??d.default;let t=this.createLink();t.setNode(this.createNode(511|a.constants.S_IFDIR)),t.setChild(".",t),t.getNode().nlink++,t.setChild("..",t),t.getNode().nlink++,this.root=t}emit(e){this.changes.emit(e)}createLink(e,t,s=!1,i){if(!e)return new r.Link(this,void 0,"");if(!t)throw Error("createLink: name cannot be empty");let o=i&&i&a.constants.S_IFMT?i&a.constants.S_IFMT:s?a.constants.S_IFDIR:a.constants.S_IFREG,n=(i??(s?511:438))&~a.constants.S_IFMT|o;return e.createChild(t,this.createNode(n))}deleteLink(e){let t=e.parent;return!!t&&(t.deleteChild(e),!0)}_emitDeleteRecursive(e){if(e.getNode().isDirectory())for(let[t,s]of e.children.entries())s&&"."!==t&&".."!==t&&this._emitDeleteRecursive(s);this.emit(new p.FsEvent(1,e.steps,e.getNode(),e))}newInoNumber(){let e=this.releasedInos.pop();return e||(this.ino=(this.ino+1)%0xffffffff,this.ino)}newFdNumber(){let e=this.releasedFds.pop();return"number"==typeof e?e:T.fd--}createNode(e){let t=this.process.getuid?.()??0,s=this.process.getgid?.()??0,i=new o.Node(this.newInoNumber(),e,t,s);return this.inodes[i.ino]=i,i}deleteNode(e){e.del(),delete this.inodes[e.ino],this.releasedInos.push(e.ino)}walk(e,t=!1,s=!1,o=!1,n){let l,d;e instanceof r.Link?d=y+(l=e.steps).join(y):"string"==typeof e?(l=(0,u.filenameToSteps)(e),d=e):d=y+(l=e).join(y);let a=this.root,h=0,c=this.process.getuid?.()??0,m=this.process.getgid?.()??0;for(;h<l.length;){let e=a.getNode();if(e.isDirectory()){if(o&&!e.canExecute(c,m))return(0,f.Err)((0,u.createStatError)("EACCES",n,d))}else if(h<l.length-1)return(0,f.Err)((0,u.createStatError)("ENOTDIR",n,d));if(!(a=a.getChild(l[h])??null))if(s)return(0,f.Err)((0,u.createStatError)("ENOENT",n,d));else return(0,f.Ok)(null);if((e=a?.getNode()).isSymlink()&&(t||h<l.length-1)){let t=(0,i.isAbsolute)(e.symlink)?e.symlink:_((0,i.dirname)(a.getPath()),e.symlink);l=(0,u.filenameToSteps)(t).concat(l.slice(h+1)),a=this.root,h=0;continue}if(s&&!e.isDirectory()&&h<l.length-1){let e="win32"===this.process.platform?"ENOENT":"ENOTDIR";return(0,f.Err)((0,u.createStatError)(e,n,d))}h++}return(0,f.Ok)(a)}getLink(e){let t=this.walk(e,!1,!1,!1);if(t.ok)return t.value;throw t.err.toError()}getLinkOrThrow(e,t){let s=this.walk(e,!1,!0,!0,t);if(s.ok)return s.value;throw s.err.toError()}getResolvedLink(e){let t=this.walk(e,!0,!1,!1);if(t.ok)return t.value;throw t.err.toError()}getResolvedLinkOrThrow(e,t){let s=this.walk(e,!0,!0,!0,t);if(s.ok)return s.value;throw s.err.toError()}getResolvedLinkResult(e,t){let s=this.walk(e,!0,!0,!0,t);return s.ok?(0,f.Ok)(s.value):s}resolveSymlinks(e){return this.getResolvedLink(e.steps.slice(1))}getLinkAsDirOrThrow(e,t){let s=this.getLinkOrThrow(e,t);if(!s.getNode().isDirectory())throw(0,u.createError)("ENOTDIR",t,e);return s}getLinkParent(e){return this.getLink(e.slice(0,-1))}getLinkParentAsDirOrThrow(e,t){let s=y+(e instanceof Array?e:(0,u.filenameToSteps)(e)).slice(0,-1).join(y),i=this.getLinkOrThrow(s,t);if(!i.getNode().isDirectory())throw(0,u.createError)("ENOTDIR",t,s);return i}getFileByFd(e){return this.fds[String(e)]}getFileByFdOrThrow(e,t){if(!(0,u.isFd)(e))throw TypeError(h.ERRSTR.FD);let s=this.getFileByFd(e);if(!s)throw(0,u.createError)("EBADF",t);return s}_toJSON(e=this.root,t={},s,i){let o=!0,r=e.children;for(let n of(e.getNode().isFile()&&(r=new Map([[e.getName(),e.parent.getChild(e.getName())]]),e=e.parent),r.keys())){if("."===n||".."===n)continue;o=!1;let r=e.getChild(n);if(!r)throw Error("_toJSON: unexpected undefined");let l=r.getNode();if(l.isFile()){let e=r.getPath();s&&(e=b(s,e)),t[e]=i?l.getBuffer():l.getString()}else l.isDirectory()&&this._toJSON(r,t,s,i)}let n=e.getPath();return s&&(n=b(s,n)),n&&o&&(t[n]=null),t}toJSON(e,t={},s=!1,i=!1){let o=[];if(e)for(let t of(Array.isArray(e)||(e=[e]),e)){let e=(0,u.pathToFilename)(t),s=this.getResolvedLink(e);s&&o.push(s)}else o.push(this.root);if(!o.length)return t;for(let e of o)this._toJSON(e,t,s?e.getPath():"",i);return t}fromJSON(e,t=this.process.cwd()){for(let s in e){let o=e[s];if(s=(0,u.resolve)(s,t),"string"==typeof o||o instanceof l.Buffer){let e=(0,i.dirname)(s);this.mkdirp(e,511);let t=(0,u.dataToBuffer)(o);this.writeFile(s,t,h.FLAGS.w,438)}else this.mkdirp(s,511)}}fromNestedJSON(e,t){this.fromJSON((0,c.flattenJSON)(e),t)}reset(){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.openFiles=0,this.root=this.createLink(),this.root.setNode(this.createNode(511|a.constants.S_IFDIR))}mountSync(e,t){this.fromJSON(t,e)}openLink(e,t,s=!0){if(this.openFiles>=this.maxFiles)throw(0,u.createError)("EMFILE","open",e.getPath());let i=e;s&&(i=this.getResolvedLinkOrThrow(e.getPath(),"open"));let o=i.getNode();if(o.isDirectory()){if((t&(j|g|w))!==j)throw(0,u.createError)("EISDIR","open",e.getPath())}else if(t&k)throw(0,u.createError)("ENOTDIR","open",e.getPath());if((t&(j|g|w))!==w&&!o.canRead()||t&(w|g)&&!o.canWrite())throw(0,u.createError)("EACCES","open",e.getPath());let r=new n.File(e,o,t,this.newFdNumber());if(this.fds[r.fd]=r,this.openFiles++,t&v){let e=r.node.getSize()>0;r.truncate(),e&&this.emit(new p.FsEvent(2,r.link.steps,r.node,r.link))}return r}openFile(e,t,s,o=!0){let r,n=(0,u.filenameToSteps)(e);try{if((r=o?this.getResolvedLinkOrThrow(e,"open"):this.getLinkOrThrow(e,"open"))&&t&S&&t&E)throw(0,u.createError)("EEXIST","open",e)}catch(o){if("ENOENT"===o.code&&t&S){let t=(0,i.dirname)(e),o=this.getResolvedLinkOrThrow(t),l=o.getNode();if(!l.isDirectory())throw(0,u.createError)("ENOTDIR","open",e);if(!l.canExecute()||!l.canWrite())throw(0,u.createError)("EACCES","open",e);s??(s=438),r=this.createLink(o,n[n.length-1],!1,s),this.emit(new p.FsEvent(0,r.steps,r.getNode(),r))}else throw o}if(r)return this.openLink(r,t,o);throw(0,u.createError)("ENOENT","open",e)}closeFile(e){this.fds[e.fd]&&(this.openFiles--,delete this.fds[e.fd],this.releasedFds.push(e.fd))}write(e,t,s,i,o){let r=this.getFileByFdOrThrow(e,"write");if(r.node.isSymlink())throw(0,u.createError)("EBADF","write",r.link.getPath());let n=r.write(t,s,i,-1===o||"number"!=typeof o?void 0:o);return n>0&&this.emit(new p.FsEvent(2,r.link.steps,r.node,r.link)),n}}t.Superblock=T,T.fd=0x7fffffff},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/constants.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0})},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/encoding.js"(e,t,s){t.ENCODING_UTF8=void 0,s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js"),t.ENCODING_UTF8="utf8"},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/index.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.resolve=t.pathToFilename=t.createStatError=t.createError=t.validateFd=t.isFd=t.filenameToSteps=t.dataToBuffer=t.Superblock=t.File=t.Link=t.Node=void 0;let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/types.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/json.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/constants.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/result.js"),t);var o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Node.js");Object.defineProperty(t,"Node",{enumerable:!0,get:function(){return o.Node}});var r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Link.js");Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return r.Link}});var n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/File.js");Object.defineProperty(t,"File",{enumerable:!0,get:function(){return n.File}});var l=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Superblock.js");Object.defineProperty(t,"Superblock",{enumerable:!0,get:function(){return l.Superblock}}),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/watch/FsEvent.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/watch/CoreWatcher.js"),t);var d=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js");Object.defineProperty(t,"dataToBuffer",{enumerable:!0,get:function(){return d.dataToBuffer}}),Object.defineProperty(t,"filenameToSteps",{enumerable:!0,get:function(){return d.filenameToSteps}}),Object.defineProperty(t,"isFd",{enumerable:!0,get:function(){return d.isFd}}),Object.defineProperty(t,"validateFd",{enumerable:!0,get:function(){return d.validateFd}}),Object.defineProperty(t,"createError",{enumerable:!0,get:function(){return d.createError}}),Object.defineProperty(t,"createStatError",{enumerable:!0,get:function(){return d.createStatError}}),Object.defineProperty(t,"pathToFilename",{enumerable:!0,get:function(){return d.pathToFilename}}),Object.defineProperty(t,"resolve",{enumerable:!0,get:function(){return d.resolve}})},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/json.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.flattenJSON=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"),r=o.posix?o.posix.join:o.join;t.flattenJSON=e=>{let t={};return!function e(s,o){for(let n in o){let l=o[n],d=r(s,n);"string"==typeof l||l instanceof i.Buffer?t[d]=l:"object"!=typeof l||null===l||l instanceof i.Buffer||!(Object.keys(l).length>0)?t[d]=null:e(d,l)}}("",e),t}},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js"(e,t,s){let i;(i=(()=>{if("u">typeof process)return process;try{return s("process")}catch{return}})()||{}).cwd||(i.cwd=()=>"/"),i.emitWarning||(i.emitWarning=(e,t)=>{console.warn(`${t}${t?": ":""}${e}`)}),i.env||(i.env={}),t.default=i},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/result.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Ok=function(e){return{ok:!0,value:e}},t.Err=function(e){return{ok:!1,err:e}}},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/types.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0})},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.filenameToSteps=t.resolve=t.unixify=t.isWin=void 0,t.isFd=f,t.validateFd=function(e){if(!f(e))throw TypeError(d.ERRSTR.FD)},t.dataToBuffer=function(e,t=l.ENCODING_UTF8){return o.Buffer.isBuffer(e)?e:e instanceof Uint8Array?(0,o.bufferFrom)(e):"buffer"===t?(0,o.bufferFrom)(String(e),"utf8"):(0,o.bufferFrom)(String(e),t)},t.nullCheck=m,t.pathToFilename=function(e){if(e instanceof Uint8Array&&(e=(0,o.bufferFrom)(e)),"string"!=typeof e&&!o.Buffer.isBuffer(e)){try{if(!(e instanceof s("url?5f07").URL))throw TypeError(d.ERRSTR.PATH_STR)}catch(e){throw TypeError(d.ERRSTR.PATH_STR)}e=function(e){if(""!==e.hostname)throw new r.TypeError("ERR_INVALID_FILE_URL_HOST",n.default.platform);let t=e.pathname;for(let e=0;e<t.length;e++)if("%"===t[e]){let s=32|t.codePointAt(e+2);if("2"===t[e+1]&&102===s)throw new r.TypeError("ERR_INVALID_FILE_URL_PATH","must not include encoded / characters")}return decodeURIComponent(t)}(e)}let t=String(e);return m(t),t},t.createError=function(e,t="",s="",i="",o=Error){let r=new o(p(e,t,s,i));return r.code=e,s&&(r.path=s),r},t.createStatError=function(e,t="",s="",i=""){return{code:e,message:p(e,t,s,i),path:s,toError(){let e=Error(this.message);return e.code=this.code,this.path&&(e.path=this.path),e}}};let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js"),l=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/encoding.js"),d=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");t.isWin="win32"===n.default.platform;let a=i.resolve,h=i.posix?i.posix.sep:i.sep,u=(e,s)=>{let i=e[s];return s>0&&("/"===i||t.isWin&&"\\"===i)};t.unixify=(e,s=!0)=>t.isWin?(e=((e,t)=>{if("string"!=typeof e)throw TypeError("expected a string");return e=e.replace(/[\\\/]+/g,"/"),!1!==t&&(e=(e=>{let t=e.length-1;if(t<2)return e;for(;u(e,t);)t--;return e.substr(0,t+1)})(e)),e})(e,s)).replace(/^([a-zA-Z]+:|\.\/)/,""):e;let c=(e,t=n.default.cwd())=>a(t,e);if(t.resolve=c,t.isWin){let e=c;t.resolve=c=(s,i)=>(0,t.unixify)(e(s,i))}function f(e){return e>>>0===e}function m(e,t){if(-1!==(""+e).indexOf("\0")){let e=Error("Path must be a string without null bytes");if(e.code="ENOENT","function"!=typeof t)throw e;return Promise.resolve().then(()=>t(e)),!1}return!0}function p(e,t="",s="",i=""){let o="";switch(s&&(o=` '${s}'`),i&&(o+=` -> '${i}'`),e){case"ENOENT":return`ENOENT: no such file or directory, ${t}${o}`;case"EBADF":return`EBADF: bad file descriptor, ${t}${o}`;case"EINVAL":return`EINVAL: invalid argument, ${t}${o}`;case"EPERM":return`EPERM: operation not permitted, ${t}${o}`;case"EPROTO":return`EPROTO: protocol error, ${t}${o}`;case"EEXIST":return`EEXIST: file already exists, ${t}${o}`;case"ENOTDIR":return`ENOTDIR: not a directory, ${t}${o}`;case"EISDIR":return`EISDIR: illegal operation on a directory, ${t}${o}`;case"EACCES":return`EACCES: permission denied, ${t}${o}`;case"ENOTEMPTY":return`ENOTEMPTY: directory not empty, ${t}${o}`;case"EMFILE":return`EMFILE: too many open files, ${t}${o}`;case"ENOSYS":return`ENOSYS: function not implemented, ${t}${o}`;case"ERR_FS_EISDIR":return`[ERR_FS_EISDIR]: Path is a directory: ${t} returned EISDIR (is a directory) ${s}`;case"ERR_OUT_OF_RANGE":return`[ERR_OUT_OF_RANGE]: value out of range, ${t}${o}`;default:return`${e}: error occurred, ${t}${o}`}}t.filenameToSteps=(e,t)=>{let s=c(e,t).substring(1);return s?s.split(h):[]}},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/watch/CoreWatcher.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.CoreWatcher=t.CoreWatchEvent=void 0;let i=s("../../node_modules/.pnpm/thingies@2.6.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js");class o{constructor(e,t,s,i,o){this.type=e,this.steps=t,this.node=s,this.link=i,this.oldSteps=o}}t.CoreWatchEvent=o,t.CoreWatcher=class{constructor(e,t,s={}){this.changes=new i.FanOut,this.link=s.follow??!0?e.getResolvedLinkOrThrow(t,"watch"):e.getLinkOrThrow(t,"watch"),this.node=this.link.getNode(),this.recursive=!!s.recursive,this.unsub=e.changes.listen(e=>this.onEvent(e))}get closed(){return!this.unsub}onEvent(e){let t=this.link.steps.length;if(e.link===this.link||e.node===this.node&&(2===e.type||3===e.type)){this.changes.emit(new o(e.type,[],e.node,this.link)),1===e.type&&this.close();return}if(4===e.type){let s=e.oldSteps&&this.inScope(e.oldSteps)?e.oldSteps.slice(t):void 0,i=this.inScope(e.steps)?e.steps.slice(t):void 0;s&&i?this.changes.emit(new o(4,i,e.node,e.link,s)):s?this.changes.emit(new o(1,s,e.node,e.link)):i&&this.changes.emit(new o(0,i,e.node,e.link));return}this.inScope(e.steps)&&this.changes.emit(new o(e.type,e.steps.slice(t),e.node,e.link))}inScope(e){let t=this.link.steps;if(e.length<=t.length||!this.recursive&&e.length!==t.length+1)return!1;for(let s=0;s<t.length;s++)if(e[s]!==t[s])return!1;return!0}close(){this.unsub?.(),this.unsub=void 0}}},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/watch/FsEvent.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FsEvent=void 0,t.FsEvent=class{constructor(e,t,s,i,o){this.type=e,this.steps=t,this.node=s,this.link=i,this.oldSteps=o}}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/buffer.js"(e,t,s){t.Buffer=void 0;var i=s("node:buffer?4a79");Object.defineProperty(t,"Buffer",{enumerable:!0,get:function(){return i.Buffer}})},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/events.js"(e,t,s){t.EventEmitter=void 0;var i=s("events");Object.defineProperty(t,"EventEmitter",{enumerable:!0,get:function(){return i.EventEmitter}})},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"(e,t,s){t.bufferFrom=t.bufferAllocUnsafe=t.Buffer=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/buffer.js");function o(e,...t){return new i.Buffer(e,...t)}Object.defineProperty(t,"Buffer",{enumerable:!0,get:function(){return i.Buffer}}),t.bufferAllocUnsafe=i.Buffer.allocUnsafe||o,t.bufferFrom=i.Buffer.from||o},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js"(e,t,s){t.TypeError=t.Error=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/util.js"),o="u"<typeof Symbol?"_kCode":Symbol("code"),r={};function n(e){return class extends e{constructor(e,...s){super(function(e,s){let o;if("string"!=typeof e)throw new t.Error("Error message key must be a string");let n=r[e];if(!n)throw new t.Error(`An invalid error message key was used: ${e}.`);if("function"==typeof n)o=n;else{if(o=i.format,void 0===s||0===s.length)return n;s.unshift(n)}return String(o.apply(null,s))}(e,s)),this.code=e,this[o]=e,this.name=`${super.name} [${this[o]}]`}}}let l="u">typeof globalThis?globalThis:global;function d(e,t){r[e]="function"==typeof t?t:String(t)}l.Error,t.Error=n(l.Error),t.TypeError=n(l.TypeError),n(l.RangeError),d("ERR_DIR_CLOSED","Directory handle was closed"),d("ERR_DIR_CONCURRENT_OPERATION","Cannot do synchronous work on directory handle with concurrent asynchronous operations"),d("ERR_INVALID_FILE_URL_HOST",'File URL host must be "localhost" or empty on %s'),d("ERR_INVALID_FILE_URL_PATH","File URL path %s"),d("ERR_INVALID_OPT_VALUE",(e,t)=>`The value "${String(t)}" is invalid for option "${e}"`),d("ERR_INVALID_OPT_VALUE_ENCODING",e=>`The value "${String(e)}" is invalid for option "encoding"`),d("ERR_INVALID_ARG_VALUE","Unable to open file as blob")},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"(e,t,s){t.basename=t.isAbsolute=t.normalize=t.dirname=t.relative=t.join=t.posix=t.sep=t.resolve=void 0;var i=s("node:path?815c");Object.defineProperty(t,"resolve",{enumerable:!0,get:function(){return i.resolve}}),Object.defineProperty(t,"sep",{enumerable:!0,get:function(){return i.sep}}),Object.defineProperty(t,"posix",{enumerable:!0,get:function(){return i.posix}}),Object.defineProperty(t,"join",{enumerable:!0,get:function(){return i.join}}),Object.defineProperty(t,"relative",{enumerable:!0,get:function(){return i.relative}}),Object.defineProperty(t,"dirname",{enumerable:!0,get:function(){return i.dirname}}),Object.defineProperty(t,"normalize",{enumerable:!0,get:function(){return i.normalize}}),Object.defineProperty(t,"isAbsolute",{enumerable:!0,get:function(){return i.isAbsolute}}),Object.defineProperty(t,"basename",{enumerable:!0,get:function(){return i.basename}})},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/stream.js"(e,t,s){t.Writable=t.Readable=void 0;var i=s("node:stream?be04");Object.defineProperty(t,"Readable",{enumerable:!0,get:function(){return i.Readable}}),Object.defineProperty(t,"Writable",{enumerable:!0,get:function(){return i.Writable}})},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/util.js"(e,t){t.inherits=function(e,t){if(null==e)throw TypeError("The constructor to inherit from is not defined");if(null==t)throw TypeError("The super constructor to inherit from is not defined");e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.inspect=function e(t){if(null===t)return"null";if(void 0===t)return"undefined";if("string"==typeof t)return`'${t}'`;if("number"==typeof t||"boolean"==typeof t)return String(t);if(Array.isArray(t)){let s=t.map(t=>e(t)).join(", ");return`[ ${s} ]`}if("object"==typeof t){let s=Object.entries(t).map(([t,s])=>`${t}: ${e(s)}`).join(", ");return`{ ${s} }`}return String(t)},t.format=function(e,...t){if(0===t.length)return e;let s=e,i=0;for(s=s.replace(/%[sdj%]/g,e=>{if(i>=t.length)return e;let s=t[i++];switch(e){case"%s":return String(s);case"%d":return Number(s).toString();case"%j":try{return JSON.stringify(s)}catch{return"[Circular]"}case"%%":return"%";default:return e}});i<t.length;)s+=" "+String(t[i++]);return s}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/constants.js"(e,t){var s,i;Object.defineProperty(t,"__esModule",{value:!0}),t.FLAGS=t.ERRSTR=t.constants=t.SEP=void 0,t.SEP="/",t.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_SYMLINK:2097152,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4},t.ERRSTR={PATH_STR:"path must be a string, Buffer, or Uint8Array",FD:"fd must be a file descriptor",MODE_INT:"mode must be an int",CB:"callback must be a function",UID:"uid must be an unsigned int",GID:"gid must be an unsigned int",LEN:"len must be an integer",ATIME:"atime must be an integer",MTIME:"mtime must be an integer",PREFIX:"filename prefix is required",BUFFER:"buffer must be an instance of Buffer or StaticBuffer",OFFSET:"offset must be an integer",LENGTH:"length must be an integer",POSITION:"position must be an integer"};let{O_RDONLY:o,O_WRONLY:r,O_RDWR:n,O_CREAT:l,O_EXCL:d,O_TRUNC:a,O_APPEND:h,O_SYNC:u}=t.constants;(i=s||(t.FLAGS=s={}))[i.r=o]="r",i[i["r+"]=n]="r+",i[i.rs=o|u]="rs",i[i.sr=i.rs]="sr",i[i["rs+"]=n|u]="rs+",i[i["sr+"]=i["rs+"]]="sr+",i[i.w=r|l|a]="w",i[i.wx=r|l|a|d]="wx",i[i.xw=i.wx]="xw",i[i["w+"]=n|l|a]="w+",i[i["wx+"]=n|l|a|d]="wx+",i[i["xw+"]=i["wx+"]]="xw+",i[i.a=r|h|l]="a",i[i.ax=r|h|l|d]="ax",i[i.xa=i.ax]="xa",i[i["a+"]=n|h|l]="a+",i[i["ax+"]=n|h|l|d]="ax+",i[i["xa+"]=i["ax+"]]="xa+"},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/AMODE.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0})},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/FLAG.js"(e,t){var s,i;Object.defineProperty(t,"__esModule",{value:!0}),t.FLAG=void 0,(i=s||(t.FLAG=s={}))[i.O_RDONLY=0]="O_RDONLY",i[i.O_WRONLY=1]="O_WRONLY",i[i.O_RDWR=2]="O_RDWR",i[i.O_ACCMODE=3]="O_ACCMODE",i[i.O_CREAT=64]="O_CREAT",i[i.O_EXCL=128]="O_EXCL",i[i.O_NOCTTY=256]="O_NOCTTY",i[i.O_TRUNC=512]="O_TRUNC",i[i.O_APPEND=1024]="O_APPEND",i[i.O_NONBLOCK=2048]="O_NONBLOCK",i[i.O_DSYNC=4096]="O_DSYNC",i[i.FASYNC=8192]="FASYNC",i[i.O_DIRECT=16384]="O_DIRECT",i[i.O_LARGEFILE=0]="O_LARGEFILE",i[i.O_DIRECTORY=65536]="O_DIRECTORY",i[i.O_NOFOLLOW=131072]="O_NOFOLLOW",i[i.O_NOATIME=262144]="O_NOATIME",i[i.O_CLOEXEC=524288]="O_CLOEXEC",i[i.O_SYNC=1052672]="O_SYNC",i[i.O_NDELAY=2048]="O_NDELAY"},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/encoding.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.ENCODING_UTF8=void 0,t.assertEncoding=function(e){if(e&&!i.Buffer.isEncoding(e))throw new o.TypeError("ERR_INVALID_OPT_VALUE_ENCODING",e)},t.strToEncoding=function(e,s){return s&&s!==t.ENCODING_UTF8?"buffer"===s?new i.Buffer(e):new i.Buffer(e).toString(s):e};let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js");t.ENCODING_UTF8="utf8"},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/types/index.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/constants.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/AMODE.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/FLAG.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/path.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/encoding.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/watchIgnore.js"),t)},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/path.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.basename=void 0,t.basename=(e,t)=>{e[e.length-1]===t&&(e=e.slice(0,-1));let s=e.lastIndexOf(t);return -1===s?e:e.slice(s+1)}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/setTimeoutUnref.js"(e,t){t.default=function(e,t,s){let i=setTimeout.apply("u">typeof globalThis?globalThis:global,arguments);return i&&"object"==typeof i&&"function"==typeof i.unref&&i.unref(),i}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/types/index.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0})},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/watchIgnore.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.watchIgnoreToMatcher=t.watchIgnorePatternToMatcher=void 0;let i=s("../../node_modules/.pnpm/glob-to-regex.js@1.2.0_tslib@2.8.1/node_modules/glob-to-regex.js/lib/index.js");t.watchIgnorePatternToMatcher=e=>{if("function"==typeof e)return e;if(e instanceof RegExp)return t=>e.test(t);if("string"==typeof e){let t=(0,i.toRegex)(e);return e=>t.test(e)}throw TypeError(`The "options.ignore" property must be of type string, RegExp, function, or an array thereof. Received ${typeof e}`)},t.watchIgnoreToMatcher=e=>{if(Array.isArray(e)){let s=e.map(t.watchIgnorePatternToMatcher);return e=>s.some(t=>t(e))}return(0,t.watchIgnorePatternToMatcher)(e)}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dir.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Dir=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js");class n{constructor(e,t){this.link=e,this.options=t,this.iteratorInfo=[],this.closed=!1,this.operationQueue=null,this.path=e.getPath(),this.iteratorInfo.push(e.children[Symbol.iterator]())}closeBase(){}readBase(e){let t,s,i,r;do{do{if({done:t,value:s}=e[e.length-1].next(),t)break;[i,r]=s}while("."===i||".."===i);if(!t)return this.options.recursive&&r.children.size&&e.push(r.children[Symbol.iterator]()),o.default.build(r,this.options.encoding);if(e.pop(),0===e.length)break;t=!1}while(!t);return null}close(e){if(void 0===e)return this.closed?Promise.reject(new r.Error("ERR_DIR_CLOSED")):new Promise((e,t)=>{this.close(s=>{s?t(s):e()})});if((0,i.validateCallback)(e),this.closed)return void process.nextTick(e,new r.Error("ERR_DIR_CLOSED"));if(null!==this.operationQueue)return void this.operationQueue.push(()=>{this.close(e)});this.closed=!0;try{this.closeBase(),process.nextTick(e)}catch(t){process.nextTick(e,t)}}closeSync(){if(this.closed)throw new r.Error("ERR_DIR_CLOSED");if(null!==this.operationQueue)throw new r.Error("ERR_DIR_CONCURRENT_OPERATION");this.closed=!0,this.closeBase()}read(e){if(void 0===e)return new Promise((e,t)=>{this.read((s,i)=>{s?t(s):e(i??null)})});if((0,i.validateCallback)(e),this.closed)return void process.nextTick(e,new r.Error("ERR_DIR_CLOSED"));if(null!==this.operationQueue)return void this.operationQueue.push(()=>{this.read(e)});this.operationQueue=[];try{let t=this.readBase(this.iteratorInfo);process.nextTick(()=>{let s=this.operationQueue;for(let e of(this.operationQueue=null,s))e();e(null,t)})}catch(t){process.nextTick(()=>{let s=this.operationQueue;for(let e of(this.operationQueue=null,s))e();e(t)})}}readSync(){if(this.closed)throw new r.Error("ERR_DIR_CLOSED");if(null!==this.operationQueue)throw new r.Error("ERR_DIR_CONCURRENT_OPERATION");return this.readBase(this.iteratorInfo)}[Symbol.asyncIterator](){return{next:async()=>{try{let e=await this.read();if(null!==e)return{done:!1,value:e};return{done:!0,value:void 0}}catch(e){throw e}},[Symbol.asyncIterator](){return this}}}[Symbol.asyncDispose](){return this.close()}[Symbol.dispose](){this.closeSync()}}t.Dir=n},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Dirent=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),{S_IFMT:o,S_IFDIR:r,S_IFREG:n,S_IFBLK:l,S_IFCHR:d,S_IFLNK:a,S_IFIFO:h,S_IFSOCK:u}=i.constants;class c{constructor(){this.name="",this.parentPath="",this.mode=0,this.path=""}static build(e,t){let s=new c,{mode:o}=e.getNode();return s.name=(0,i.strToEncoding)(e.getName(),t),s.mode=o,s.parentPath=e.getParentPath(),s.path=s.parentPath,s}_checkModeProperty(e){return(this.mode&o)===e}isDirectory(){return this._checkModeProperty(r)}isFile(){return this._checkModeProperty(n)}isBlockDevice(){return this._checkModeProperty(l)}isCharacterDevice(){return this._checkModeProperty(d)}isSymbolicLink(){return this._checkModeProperty(a)}isFIFO(){return this._checkModeProperty(h)}isSocket(){return this._checkModeProperty(u)}}t.Dirent=c,t.default=c},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FileHandle.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.FileHandle=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/events.js");class r extends o.EventEmitter{constructor(e,t){super(),this.refs=1,this.closePromise=null,this.position=0,this.readableWebStreamLocked=!1,this.fs=e,this.fd=t}getAsyncId(){return this.fd}appendFile(e,t){return(0,i.promisify)(this.fs,"appendFile")(this.fd,e,t)}chmod(e){return(0,i.promisify)(this.fs,"fchmod")(this.fd,e)}chown(e,t){return(0,i.promisify)(this.fs,"fchown")(this.fd,e,t)}close(){if(-1===this.fd)return Promise.resolve();if(this.closePromise)return this.closePromise;if(this.refs--,0===this.refs){let e=this.fd;this.fd=-1,this.closePromise=(0,i.promisify)(this.fs,"close")(e).finally(()=>{this.closePromise=null})}else this.closePromise=new Promise((e,t)=>{this.closeResolve=e,this.closeReject=t}).finally(()=>{this.closePromise=null,this.closeReject=void 0,this.closeResolve=void 0});return this.emit("close"),this.closePromise}datasync(){return(0,i.promisify)(this.fs,"fdatasync")(this.fd)}createReadStream(e){return this.fs.createReadStream("",{...e,fd:this})}createWriteStream(e){return this.fs.createWriteStream("",{...e,fd:this})}readableWebStream(e={}){let{type:t="bytes",autoClose:s=!1}=e,i=0;if(-1===this.fd)throw Error("The FileHandle is closed");if(this.closePromise)throw Error("The FileHandle is closing");if(this.readableWebStreamLocked)throw Error("An error will be thrown if this method is called more than once or is called after the FileHandle is closed or closing.");this.readableWebStreamLocked=!0,this.ref();let o=()=>{this.readableWebStreamLocked=!1,this.unref(),s&&this.close().catch(()=>{})};return new ReadableStream({type:"bytes"===t?"bytes":void 0,autoAllocateChunkSize:16384,pull:async e=>{try{let t=e.byobRequest?.view;if(!t){let t=new Uint8Array(16384),s=await this.read(t,0,t.length,i);if(0===s.bytesRead){e.close(),o();return}i+=s.bytesRead,e.enqueue(t.slice(0,s.bytesRead));return}let s=await this.read(t,t.byteOffset,t.byteLength,i);if(0===s.bytesRead){e.close(),o();return}i+=s.bytesRead,e.byobRequest.respond(s.bytesRead)}catch(t){e.error(t),o()}},cancel:async()=>{o()}})}async read(e,t,s,o){let r=null!=o?o:this.position,n=await (0,i.promisify)(this.fs,"read",t=>({bytesRead:t,buffer:e}))(this.fd,e,t,s,r);return null==o&&(this.position+=n.bytesRead),n}readv(e,t){return(0,i.promisify)(this.fs,"readv",t=>({bytesRead:t,buffers:e}))(this.fd,e,t)}readFile(e){return(0,i.promisify)(this.fs,"readFile")(this.fd,e)}stat(e){return(0,i.promisify)(this.fs,"fstat")(this.fd,e)}sync(){return(0,i.promisify)(this.fs,"fsync")(this.fd)}truncate(e){return(0,i.promisify)(this.fs,"ftruncate")(this.fd,e)}utimes(e,t){return(0,i.promisify)(this.fs,"futimes")(this.fd,e,t)}async write(e,t,s,o){let r="number"!=typeof o,n=r?this.position:o,l=await (0,i.promisify)(this.fs,"write",t=>({bytesWritten:t,buffer:e}))(this.fd,e,t,s,n);return r&&(this.position+=l.bytesWritten),l}writev(e,t){return(0,i.promisify)(this.fs,"writev",t=>({bytesWritten:t,buffers:e}))(this.fd,e,t)}writeFile(e,t){return(0,i.promisify)(this.fs,"writeFile")(this.fd,e,t)}async [Symbol.asyncDispose](){await this.close()}ref(){this.refs++}unref(){this.refs--,0===this.refs&&(this.fd=-1,this.closeResolve&&(0,i.promisify)(this.fs,"close")(this.fd).then(this.closeResolve,this.closeReject))}}t.FileHandle=r},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FsPromises.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.FsPromises=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),r=e=>{let t=Error("The operation was aborted");return t.name="AbortError",t.code="ABORT_ERR",t.cause=e.reason,t};class n{constructor(e,t,s={}){this.fs=e,this.path=t,this.options=s,this.eventQueue=[],this.resolveQueue=[],this.finished=!1,this.maxQueue=s.maxQueue||2048;let i=s.overflow||"ignore";if("ignore"!==i&&"error"!==i&&"throw"!==i)throw TypeError(`The argument 'options.overflow' must be one of: 'ignore', 'error'. Received '${i}'`);this.overflow="throw"===i?"error":i;let o=s.signal;if(o){if(o.aborted)return void this.finish(r(o));this.onAbort=()=>this.finish(r(o)),o.addEventListener("abort",this.onAbort)}this.startWatching()}startWatching(){let{signal:e,...t}=this.options;try{this.watcher=this.fs.watch(this.path,t,(e,t)=>{this.enqueueEvent({eventType:e,filename:t})})}catch(e){throw this.finish(),e}}enqueueEvent(e){if(!this.finished){if(this.eventQueue.length>=this.maxQueue){if("error"===this.overflow){let e=Error(`Watch queue overflow: more than ${this.maxQueue} events queued`);e.code="ERR_FS_WATCH_QUEUE_OVERFLOW",this.finish(e)}else"u">typeof process&&"function"==typeof process.emitWarning&&process.emitWarning("fs.watch maxQueue exceeded");return}if(this.eventQueue.push(e),this.resolveQueue.length>0){let{resolve:e}=this.resolveQueue.shift();e({value:this.eventQueue.shift(),done:!1})}}}finish(e){if(this.finished)return;this.finished=!0,this.error=e,e&&(this.eventQueue.length=0),this.onAbort&&(this.options.signal.removeEventListener("abort",this.onAbort),this.onAbort=void 0),this.watcher&&(this.watcher.close(),this.watcher=null);let t=e&&this.resolveQueue.length>0;for(;this.resolveQueue.length>0;){let{resolve:t,reject:s}=this.resolveQueue.shift();e?s(e):t({value:void 0,done:!0})}t&&(this.error=void 0)}async next(){if(this.error){let e=this.error;throw this.error=void 0,e}return this.finished?{value:void 0,done:!0}:this.eventQueue.length>0?{value:this.eventQueue.shift(),done:!1}:new Promise((e,t)=>{this.resolveQueue.push({resolve:e,reject:t})})}async return(){return this.finish(),{value:void 0,done:!0}}async throw(e){throw this.finish(e),e}[Symbol.asyncIterator](){return this}}t.FsPromises=class{constructor(e,t){this.fs=e,this.FileHandle=t,this.constants=o.constants,this.cp=(0,i.promisify)(this.fs,"cp"),this.opendir=(0,i.promisify)(this.fs,"opendir"),this.statfs=(0,i.promisify)(this.fs,"statfs"),this.lutimes=(0,i.promisify)(this.fs,"lutimes"),this.glob=(0,i.promisify)(this.fs,"glob"),this.access=(0,i.promisify)(this.fs,"access"),this.chmod=(0,i.promisify)(this.fs,"chmod"),this.chown=(0,i.promisify)(this.fs,"chown"),this.copyFile=(0,i.promisify)(this.fs,"copyFile"),this.lchmod=(0,i.promisify)(this.fs,"lchmod"),this.lchown=(0,i.promisify)(this.fs,"lchown"),this.link=(0,i.promisify)(this.fs,"link"),this.lstat=(0,i.promisify)(this.fs,"lstat"),this.mkdir=(0,i.promisify)(this.fs,"mkdir"),this.mkdtemp=(0,i.promisify)(this.fs,"mkdtemp"),this.readdir=(0,i.promisify)(this.fs,"readdir"),this.readlink=(0,i.promisify)(this.fs,"readlink"),this.realpath=(0,i.promisify)(this.fs,"realpath"),this.rename=(0,i.promisify)(this.fs,"rename"),this.rmdir=(0,i.promisify)(this.fs,"rmdir"),this.rm=(0,i.promisify)(this.fs,"rm"),this.stat=(0,i.promisify)(this.fs,"stat"),this.symlink=(0,i.promisify)(this.fs,"symlink"),this.truncate=(0,i.promisify)(this.fs,"truncate"),this.unlink=(0,i.promisify)(this.fs,"unlink"),this.utimes=(0,i.promisify)(this.fs,"utimes"),this.readFile=(e,t)=>(0,i.promisify)(this.fs,"readFile")(e instanceof this.FileHandle?e.fd:e,t),this.appendFile=(e,t,s)=>(0,i.promisify)(this.fs,"appendFile")(e instanceof this.FileHandle?e.fd:e,t,s),this.open=(e,t="r",s)=>(0,i.promisify)(this.fs,"open",e=>new this.FileHandle(this.fs,e))(e,t,s),this.writeFile=(e,t,s)=>((0,i.isReadableStream)(t)?(0,i.streamToBuffer)(t):Promise.resolve(t)).then(t=>(0,i.promisify)(this.fs,"writeFile")(e instanceof this.FileHandle?e.fd:e,t,s)),this.watch=(e,t)=>new n(this.fs,e,"string"==typeof t?{encoding:t}:t||{})}}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/StatFs.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.StatFs=void 0;class s{static build(e,t=!1){let i=new s,o=t?e=>BigInt(e):e=>e;i.type=o(0x858458f6),i.bsize=o(4096);let r=Object.keys(e.inodes).length,n=1e6-Math.min(2*r,1e6);return i.blocks=o(1e6),i.bfree=o(n),i.bavail=o(n),i.files=o(1e6),i.ffree=o(1e6-r),i}}t.StatFs=s,t.default=s},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Stats.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Stats=void 0;let{S_IFMT:i,S_IFDIR:o,S_IFREG:r,S_IFBLK:n,S_IFCHR:l,S_IFLNK:d,S_IFIFO:a,S_IFSOCK:h}=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js").constants;class u{static build(e,t=!1){let s=new u,{uid:i,gid:o,atime:r,mtime:n,ctime:l}=e,d=t?e=>BigInt(e):e=>e;s.uid=d(i),s.gid=d(o),s.rdev=d(e.rdev),s.blksize=d(4096),s.ino=d(e.ino),s.size=d(e.getSize()),s.blocks=d(1),s.atime=r,s.mtime=n,s.ctime=l,s.birthtime=l,s.atimeMs=d(r.getTime()),s.mtimeMs=d(n.getTime());let a=d(l.getTime());if(s.ctimeMs=a,s.birthtimeMs=a,t){s.atimeNs=BigInt(r.getTime())*BigInt(1e6),s.mtimeNs=BigInt(n.getTime())*BigInt(1e6);let e=BigInt(l.getTime())*BigInt(1e6);s.ctimeNs=e,s.birthtimeNs=e}return s.dev=d(0),s.mode=d(e.mode),s.nlink=d(e.nlink),s}_checkModeProperty(e){return(Number(this.mode)&i)===e}isDirectory(){return this._checkModeProperty(o)}isFile(){return this._checkModeProperty(r)}isBlockDevice(){return this._checkModeProperty(n)}isCharacterDevice(){return this._checkModeProperty(l)}isSymbolicLink(){return this._checkModeProperty(d)}isFIFO(){return this._checkModeProperty(a)}isSocket(){return this._checkModeProperty(h)}}t.Stats=u,t.default=u},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/glob.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.globSync=function(e,t,s={}){let o=d(s.cwd?(0,r.pathToFilename)(s.cwd):process.cwd()),n={cwd:o,exclude:s.exclude,maxdepth:s.maxdepth,withFileTypes:s.withFileTypes||!1},l=[];if(i.posix.isAbsolute(t)){let s=i.posix.dirname(t),o=h(e,s,[i.posix.basename(t)],{...n,cwd:s});l.push(...o.map(e=>i.posix.resolve(s,e)))}else{let s=h(e,o,[t.replace(/^\.\//,"")],n);l.push(...s)}return[...new Set(l)].sort()};let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"),o=s("../../node_modules/.pnpm/glob-to-regex.js@1.2.0_tslib@2.8.1/node_modules/glob-to-regex.js/lib/index.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"),n=i.posix.join,l=i.posix.relative,d=i.posix.resolve;function a(e,t){return(0,o.toRegex)(t).test(e)}function h(e,t,s,i,o=0){let d=[],u=i.maxdepth??1/0,c=i.cwd?(0,r.pathToFilename)(i.cwd):process.cwd();if(o>u)return d;try{for(let r of e.readdirSync(t,{withFileTypes:!0})){let f=n(t,r.name.toString()),m=l(c,f);if(!function(e,t){return!!t&&("function"==typeof t?t(e):(Array.isArray(t)?t:[t]).some(t=>a(e,t)))}(m,i.exclude)&&(s.some(e=>a(m,e))&&d.push(m),r.isDirectory()&&o<u)){let t=h(e,f,s,i,o+1);d.push(...t)}}}catch(e){}return d}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/index.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.fsCommonObjectsList=t.fsSynchronousApiList=t.fsCallbackApiList=t.FsPromises=t.Dir=t.FileHandle=t.StatFs=t.Dirent=t.Stats=t.toUnixTimestamp=t.FSWatcher=t.StatWatcher=t.Volume=void 0;let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");var o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/volume.js");Object.defineProperty(t,"Volume",{enumerable:!0,get:function(){return o.Volume}}),Object.defineProperty(t,"StatWatcher",{enumerable:!0,get:function(){return o.StatWatcher}}),Object.defineProperty(t,"FSWatcher",{enumerable:!0,get:function(){return o.FSWatcher}}),Object.defineProperty(t,"toUnixTimestamp",{enumerable:!0,get:function(){return o.toUnixTimestamp}});var r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Stats.js");Object.defineProperty(t,"Stats",{enumerable:!0,get:function(){return r.default}});var n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js");Object.defineProperty(t,"Dirent",{enumerable:!0,get:function(){return n.default}});var l=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/StatFs.js");Object.defineProperty(t,"StatFs",{enumerable:!0,get:function(){return l.default}});var d=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FileHandle.js");Object.defineProperty(t,"FileHandle",{enumerable:!0,get:function(){return d.FileHandle}});var a=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dir.js");Object.defineProperty(t,"Dir",{enumerable:!0,get:function(){return a.Dir}});var h=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FsPromises.js");Object.defineProperty(t,"FsPromises",{enumerable:!0,get:function(){return h.FsPromises}}),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/options.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/glob.js"),t);var u=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCallbackApiList.js");Object.defineProperty(t,"fsCallbackApiList",{enumerable:!0,get:function(){return u.fsCallbackApiList}});var c=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsSynchronousApiList.js");Object.defineProperty(t,"fsSynchronousApiList",{enumerable:!0,get:function(){return c.fsSynchronousApiList}});var f=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCommonObjectsList.js");Object.defineProperty(t,"fsCommonObjectsList",{enumerable:!0,get:function(){return f.fsCommonObjectsList}})},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCallbackApiList.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.fsCallbackApiList=void 0,t.fsCallbackApiList=["access","appendFile","chmod","chown","close","copyFile","cp","createReadStream","createWriteStream","exists","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","openAsBlob","opendir","read","readv","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","unwatchFile","utimes","lutimes","watch","watchFile","write","writev","writeFile"]},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCommonObjectsList.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.fsCommonObjectsList=void 0,t.fsCommonObjectsList=["F_OK","R_OK","W_OK","X_OK","constants","Stats","StatFs","Dir","Dirent","StatWatcher","FSWatcher","ReadStream","WriteStream"]},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsSynchronousApiList.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.fsSynchronousApiList=void 0,t.fsSynchronousApiList=["accessSync","appendFileSync","chmodSync","chownSync","closeSync","copyFileSync","cpSync","existsSync","fchmodSync","fchownSync","fdatasyncSync","fstatSync","fsyncSync","ftruncateSync","futimesSync","globSync","lchmodSync","lchownSync","linkSync","lstatSync","mkdirSync","mkdtempSync","openSync","opendirSync","readdirSync","readFileSync","readlinkSync","readSync","readvSync","realpathSync","renameSync","rmdirSync","rmSync","statfsSync","statSync","symlinkSync","truncateSync","unlinkSync","utimesSync","lutimesSync","writeFileSync","writeSync","writevSync"]},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/options.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.getWriteFileOptions=t.writeFileDefaults=t.getRealpathOptsAndCb=t.getRealpathOptions=t.getStatfsOptsAndCb=t.getStatfsOptions=t.getStatOptsAndCb=t.getStatOptions=t.getAppendFileOptsAndCb=t.getAppendFileOpts=t.getOpendirOptsAndCb=t.getOpendirOptions=t.getReaddirOptsAndCb=t.getReaddirOptions=t.getReadFileOptions=t.getRmOptsAndCb=t.getRmdirOptions=t.getDefaultOptsAndCb=t.getDefaultOpts=t.optsDefaults=t.getMkdirOptions=void 0,t.getOptions=n,t.optsGenerator=l,t.optsAndCbGenerator=d;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"),r={mode:511,recursive:!1};function n(e,t){let s;if(!t)return e;{let i=typeof t;switch(i){case"string":s=Object.assign({},e,{encoding:t});break;case"object":s=Object.assign({},e,t);break;default:throw TypeError(`Expected options to be either an object or a string, but got ${i} instead`)}}return"buffer"!==s.encoding&&(0,i.assertEncoding)(s.encoding),s}function l(e){return t=>n(e,t)}function d(e){return(t,s)=>"function"==typeof t?[e(),t]:[e(t),(0,o.validateCallback)(s)]}t.getMkdirOptions=e=>"number"==typeof e?Object.assign({},r,{mode:e}):Object.assign({},r,e),t.optsDefaults={encoding:"utf8"},t.getDefaultOpts=l(t.optsDefaults),t.getDefaultOptsAndCb=d(t.getDefaultOpts);let a={recursive:!1};t.getRmdirOptions=e=>Object.assign({},a,e);let h=l(t.optsDefaults);t.getRmOptsAndCb=d(h),t.getReadFileOptions=l({flag:"r"}),t.getReaddirOptions=l({encoding:"utf8",recursive:!1,withFileTypes:!1}),t.getReaddirOptsAndCb=d(t.getReaddirOptions),t.getOpendirOptions=l({encoding:"utf8",bufferSize:32,recursive:!1}),t.getOpendirOptsAndCb=d(t.getOpendirOptions),t.getAppendFileOpts=l({encoding:"utf8",mode:438,flag:i.FLAGS[i.FLAGS.a]}),t.getAppendFileOptsAndCb=d(t.getAppendFileOpts);let u={bigint:!1};t.getStatOptions=(e={})=>Object.assign({},u,e),t.getStatOptsAndCb=(e,s)=>"function"==typeof e?[(0,t.getStatOptions)(),e]:[(0,t.getStatOptions)(e),(0,o.validateCallback)(s)];let c={bigint:!1};t.getStatfsOptions=(e={})=>Object.assign({},c,e),t.getStatfsOptsAndCb=(e,s)=>"function"==typeof e?[(0,t.getStatfsOptions)(),e]:[(0,t.getStatfsOptions)(e),(0,o.validateCallback)(s)];let f=t.optsDefaults;t.getRealpathOptions=l(f),t.getRealpathOptsAndCb=d(t.getRealpathOptions),t.writeFileDefaults={encoding:"utf8",mode:438,flag:i.FLAGS[i.FLAGS.w]},t.getWriteFileOptions=l(t.writeFileDefaults)},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.getWriteSyncArgs=t.getWriteArgs=t.bufToUint8=void 0,t.promisify=function(e,t,s=e=>e){return(...i)=>new Promise((o,r)=>{e[t].bind(e)(...i,(e,t)=>e?r(e):o(s(t)))})},t.validateCallback=l,t.modeToNumber=function e(t,s){let o="number"==typeof t?t:"string"==typeof t?parseInt(t,8):s?e(s):void 0;if("number"!=typeof o||isNaN(o))throw TypeError(i.ERRSTR.MODE_INT);return o},t.nullCheck=d,t.pathToFilename=function(e){if(e instanceof Uint8Array&&(e=(0,r.bufferFrom)(e)),"string"!=typeof e&&!r.Buffer.isBuffer(e)){try{if(!(e instanceof s("url?5f07").URL))throw TypeError(i.ERRSTR.PATH_STR)}catch(e){throw TypeError(i.ERRSTR.PATH_STR)}e=function(e){if(""!==e.hostname)throw new o.TypeError("ERR_INVALID_FILE_URL_HOST",process.platform);let t=e.pathname;for(let e=0;e<t.length;e++)if("%"===t[e]){let s=32|t.codePointAt(e+2);if("2"===t[e+1]&&102===s)throw new o.TypeError("ERR_INVALID_FILE_URL_PATH","must not include encoded / characters")}return decodeURIComponent(t)}(e)}let t=String(e);return d(t),t},t.createError=function(e,t="",s="",i="",o=Error){let r=new o(a(e,t,s,i));return r.code=e,s&&(r.path=s),r},t.createStatError=function(e,t="",s="",i=""){return{code:e,message:a(e,t,s,i),path:s,toError(){let e=Error(this.message);return e.code=this.code,this.path&&(e.path=this.path),e}}},t.genRndStr6=function(){return Math.random().toString(36).slice(2,8).padEnd(6,"0")},t.flagsToNumber=function(e){if("number"==typeof e)return e;if("string"==typeof e){let t=i.FLAGS[e];if(void 0!==t)return t}throw new o.TypeError("ERR_INVALID_OPT_VALUE","flags",e)},t.streamToBuffer=function(e){let t=[];return new Promise((s,i)=>{e.on("data",e=>t.push(e)),e.on("end",()=>s(r.Buffer.concat(t))),e.on("error",i)})},t.bufferToEncoding=function(e,t){return t&&"buffer"!==t?e.toString(t):e},t.isReadableStream=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe&&"function"==typeof e.on&&!0===e.readable};let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/index.js");function l(e){if("function"!=typeof e)throw TypeError(i.ERRSTR.CB);return e}function d(e,t){if(-1!==(""+e).indexOf("\0")){let e=Error("Path must be a string without null bytes");if(e.code="ENOENT","function"!=typeof t)throw e;return queueMicrotask(()=>{t(e)}),!1}return!0}function a(e,t="",s="",i=""){let o="";switch(s&&(o=` '${s}'`),i&&(o+=` -> '${i}'`),e){case"ENOENT":return`ENOENT: no such file or directory, ${t}${o}`;case"EBADF":return`EBADF: bad file descriptor, ${t}${o}`;case"EINVAL":return`EINVAL: invalid argument, ${t}${o}`;case"EPERM":return`EPERM: operation not permitted, ${t}${o}`;case"EPROTO":return`EPROTO: protocol error, ${t}${o}`;case"EEXIST":return`EEXIST: file already exists, ${t}${o}`;case"ENOTDIR":return`ENOTDIR: not a directory, ${t}${o}`;case"EISDIR":return`EISDIR: illegal operation on a directory, ${t}${o}`;case"EACCES":return`EACCES: permission denied, ${t}${o}`;case"ENOTEMPTY":return`ENOTEMPTY: directory not empty, ${t}${o}`;case"EMFILE":return`EMFILE: too many open files, ${t}${o}`;case"ENOSYS":return`ENOSYS: function not implemented, ${t}${o}`;case"ERR_FS_EISDIR":return`[ERR_FS_EISDIR]: Path is a directory: ${t} returned EISDIR (is a directory) ${s}`;case"ERR_OUT_OF_RANGE":return`[ERR_OUT_OF_RANGE]: value out of range, ${t}${o}`;default:return`${e}: error occurred, ${t}${o}`}}t.bufToUint8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.getWriteArgs=(e,t,s,i,o,r)=>{let d,a,h;(0,n.validateFd)(e);let u=0,c=null,f=typeof t,m=typeof s,p=typeof i,y=typeof o;"string"!==f?"function"===m?h=s:"function"===p?(u=0|s,h=i):"function"===y?(u=0|s,d=i,h=o):(u=0|s,d=i,c=o,h=r):"function"===m?h=s:"function"===p?(c=s,h=i):"function"===y&&(c=s,a=i,h=o);let b=(0,n.dataToBuffer)(t,a);return"string"!==f?void 0===d&&(d=b.length):(u=0,d=b.length),[e,"string"===f,b,u,d,c,l(h)]},t.getWriteSyncArgs=(e,t,s,i,o)=>{let r,l,d,a;(0,n.validateFd)(e);let h="string"!=typeof t;h?(l=0|(s||0),d=i,a=o):(a=s,r=i);let u=(0,n.dataToBuffer)(t,r);return h?void 0===d&&(d=u.length):(l=0,d=u.length),[e,u,l||0,d,a]}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/volume.js"(e,t,s){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.FSWatcher=t.StatWatcher=t.Volume=void 0,t.pathToSteps=function(e){return(0,r.filenameToSteps)((0,E.pathToFilename)(e))},t.dataToStr=function(e,t=f.ENCODING_UTF8){return h.Buffer.isBuffer(e)?e.toString(t):e instanceof Uint8Array?(0,h.bufferFrom)(e).toString(t):String(e)},t.toUnixTimestamp=B;let o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/index.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js"),l=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Stats.js"),d=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js"),a=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/StatFs.js"),h=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),u=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/setTimeoutUnref.js"),c=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/stream.js"),f=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),m=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/events.js"),p=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FileHandle.js"),y=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/util.js"),b=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FsPromises.js"),_=s("../../node_modules/.pnpm/@jsonjoy.com+fs-print@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-print/lib/index.js"),j=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/index.js"),w=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),g=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js"),S=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/options.js"),E=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"),v=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dir.js"),O=o.resolve,{O_SYMLINK:k,F_OK:T,R_OK:F,W_OK:x,X_OK:N,COPYFILE_EXCL:A,COPYFILE_FICLONE_FORCE:R}=f.constants,I=o.posix?o.posix.sep:o.sep,C=o.posix?o.posix.relative:o.relative,D=o.posix?o.posix.join:o.join,L=o.posix?o.posix.dirname:o.dirname,P=o.posix?o.posix.normalize:o.normalize;function B(e){if("string"==typeof e&&+e==e)return+e;if(e instanceof Date)return e.getTime()/1e3;if(isFinite(e))return e<0?Date.now()/1e3:e;throw Error("Cannot parse time: "+e)}function M(e){if("number"!=typeof e)throw TypeError(w.ERRSTR.UID)}function U(e){if("number"!=typeof e)throw TypeError(w.ERRSTR.GID)}class W{get promises(){if(null===this.promisesApi)throw Error("Promise is not supported in this environment.");return this.promisesApi}constructor(e=new r.Superblock){this._core=e,this.promisesApi=new b.FsPromises(this,p.FileHandle),this.openSync=(e,t,s=438)=>{let i=(0,E.modeToNumber)(s),o=(0,E.pathToFilename)(e),r=(0,E.flagsToNumber)(t);return this._core.open(o,r,i,!(r&k))},this.open=(e,t,s,i)=>{let o=s,r=i;"function"==typeof s&&(o=438,r=s),o=o||438;let n=(0,E.modeToNumber)(o),l=(0,E.pathToFilename)(e),d=(0,E.flagsToNumber)(t);this.wrapAsync(this._core.open,[l,d,n,!(d&k)],r)},this.closeSync=e=>{this._core.close(e)},this.close=(e,t)=>{(0,r.validateFd)(e);let s=this._core.getFileByFdOrThrow(e,"close");this.wrapAsync(this._core.close,[s.fd],t)},this.readSync=(e,t,s,i,o)=>((0,r.validateFd)(e),this._core.read(e,t,s,i,o)),this.read=(e,t,s,i,o,r)=>{if((0,E.validateCallback)(r),0===i)return queueMicrotask(()=>{r&&r(null,0,t)});Promise.resolve().then(()=>{try{let n=this._core.read(e,t,s,i,o);r(null,n,t)}catch(e){r(e)}})},this.readv=(e,t,s,i)=>{let o=s,r=i;"function"==typeof s&&([o,r]=[null,s]),(0,E.validateCallback)(r),Promise.resolve().then(()=>{try{let s=this._core.readv(e,t,o);r(null,s,t)}catch(e){r(e)}})},this.readvSync=(e,t,s)=>((0,r.validateFd)(e),this._core.readv(e,t,s??null)),this._readfile=(e,t,s)=>{let i,o,n="number"==typeof e&&(0,r.isFd)(e);if(n)o=e;else{let s=(0,E.pathToFilename)(e),i=String(e),r=i.length>1&&i.endsWith("/"),n=this._core.getResolvedLinkOrThrow(s,"open"),l=n.getNode();if(l.isDirectory())throw(0,E.createError)("EISDIR","open",n.getPath());if(r&&l.isFile())throw(0,E.createError)("ENOTDIR","open",i);o=this.openSync(e,t)}try{i=(0,E.bufferToEncoding)(this._core.getFileByFdOrThrow(o).getBuffer(),s)}finally{n||this.closeSync(o)}return i},this.readFileSync=(e,t)=>{let s=(0,S.getReadFileOptions)(t),i=(0,E.flagsToNumber)(s.flag);return this._readfile(e,i,s.encoding)},this.readFile=(e,t,s)=>{let[i,o]=(0,S.optsAndCbGenerator)(S.getReadFileOptions)(t,s),r=(0,E.flagsToNumber)(i.flag);this.wrapAsync(this._readfile,[e,r,i.encoding],o)},this.writeSync=(e,t,s,i,o)=>{let[,r,n,l,d]=(0,E.getWriteSyncArgs)(e,t,s,i,o);return this._write(e,r,n,l,d)},this.write=(e,t,s,i,o,r)=>{let[,n,l,d,a,h,u]=(0,E.getWriteArgs)(e,t,s,i,o,r);Promise.resolve().then(()=>{try{let s=this._write(e,l,d,a,h);n?u(null,s,t):u(null,s,l)}catch(e){u(e)}})},this.writev=(e,t,s,i)=>{let o=s,r=i;"function"==typeof s&&([o,r]=[null,s]),(0,E.validateCallback)(r),Promise.resolve().then(()=>{try{let s=this.writevBase(e,t,o);r(null,s,t)}catch(e){r(e)}})},this.writevSync=(e,t,s)=>((0,r.validateFd)(e),this.writevBase(e,t,s??null)),this.writeFileSync=(e,t,s)=>{let i=(0,S.getWriteFileOptions)(s),o=(0,E.flagsToNumber)(i.flag),n=(0,E.modeToNumber)(i.mode),l=(0,r.dataToBuffer)(t,i.encoding);this._core.writeFile(e,l,o,n)},this.writeFile=(e,t,s,i)=>{let o=s,n=i;"function"==typeof s&&([o,n]=[S.writeFileDefaults,s]);let l=(0,E.validateCallback)(n),d=(0,S.getWriteFileOptions)(o),a=(0,E.flagsToNumber)(d.flag),h=(0,E.modeToNumber)(d.mode),u=(0,r.dataToBuffer)(t,d.encoding);this.wrapAsync(this._core.writeFile,[e,u,a,h],l)},this.copyFileSync=(e,t,s)=>{let i=(0,E.pathToFilename)(e),o=(0,E.pathToFilename)(t);return this._copyFile(i,o,0|(s||0))},this.copyFile=(e,t,s,i)=>{let o,r,n=(0,E.pathToFilename)(e),l=(0,E.pathToFilename)(t);"function"==typeof s?[o,r]=[0,s]:[o,r]=[s,i],(0,E.validateCallback)(r),this.wrapAsync(this._copyFile,[n,l,o],r)},this._cp=(e,t,s)=>{if(s.filter&&!s.filter(e,t))return;let i=s.dereference?this.statSync(e):this.lstatSync(e),o=null;try{o=this.lstatSync(t)}catch(e){if("ENOENT"!==e.code)throw e}if(o&&i.ino===o.ino&&i.dev===o.dev)throw(0,E.createError)("EINVAL","cp",e,t);if(o){if(i.isDirectory()&&!o.isDirectory())throw(0,E.createError)("EISDIR","cp",e,t);if(!i.isDirectory()&&o.isDirectory())throw(0,E.createError)("ENOTDIR","cp",e,t)}if(i.isDirectory()&&this.isSrcSubdir(e,t))throw(0,E.createError)("EINVAL","cp",e,t);{let e=L(t);this.existsSync(e)||this.mkdirSync(e,{recursive:!0})}if(i.isDirectory()){if(!s.recursive)throw(0,E.createError)("EISDIR","cp",e);this.cpDirSync(i,o,e,t,s)}else if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())this.cpFileSync(i,o,e,t,s);else if(i.isSymbolicLink()&&!s.dereference)this.cpSymlinkSync(o,e,t,s);else throw(0,E.createError)("EINVAL","cp",e)},this.linkSync=(e,t)=>{let s=(0,E.pathToFilename)(e),i=(0,E.pathToFilename)(t);this._core.link(s,i)},this.link=(e,t,s)=>{let i=(0,E.pathToFilename)(e),o=(0,E.pathToFilename)(t);this.wrapAsync(this._core.link,[i,o],s)},this.unlinkSync=e=>{let t=(0,E.pathToFilename)(e);this._core.unlink(t)},this.unlink=(e,t)=>{let s=(0,E.pathToFilename)(e);this.wrapAsync(this._core.unlink,[s],t)},this.symlinkSync=(e,t,s)=>{let i=(0,E.pathToFilename)(e),o=(0,E.pathToFilename)(t);this._core.symlink(i,o)},this.symlink=(e,t,s,i)=>{let o=(0,E.validateCallback)("function"==typeof s?s:i),r=(0,E.pathToFilename)(e),n=(0,E.pathToFilename)(t);this.wrapAsync(this._core.symlink,[r,n],o)},this._lstat=(e,t=!1,s=!1)=>{let i;try{i=this._core.getLinkOrThrow(e,"lstat")}catch(e){if("ENOENT"===e.code&&!s)return;throw e}return l.default.build(i.getNode(),t)},this.lstatSync=(e,t)=>{let{throwIfNoEntry:s=!0,bigint:i=!1}=(0,S.getStatOptions)(t);return this._lstat((0,E.pathToFilename)(e),i,s)},this.renameSync=(e,t)=>{let s=(0,E.pathToFilename)(e),i=(0,E.pathToFilename)(t);this._core.rename(s,i)},this.rename=(e,t,s)=>{let i=(0,E.pathToFilename)(e),o=(0,E.pathToFilename)(t);this.wrapAsync(this._core.rename,[i,o],s)},this.existsSync=e=>{try{return this._exists((0,E.pathToFilename)(e)).ok}catch(e){return!1}},this.exists=(e,t)=>{let s=(0,E.pathToFilename)(e);if("function"!=typeof t)throw Error(w.ERRSTR.CB);Promise.resolve().then(()=>{try{t(this._exists(s).ok)}catch(e){t(!1)}})},this.accessSync=(e,t=T)=>{let s=(0,E.pathToFilename)(e);t|=0,this._access(s,t)},this.access=(e,t,s)=>{let i,o=T;"function"!=typeof t?[o,i]=[0|t,(0,E.validateCallback)(s)]:i=t;let r=(0,E.pathToFilename)(e);this.wrapAsync(this._access,[r,o],i)},this.appendFileSync=(e,t,s)=>{let i=(0,S.getAppendFileOpts)(s);(!i.flag||(0,r.isFd)(e))&&(i.flag="a"),this.writeFileSync(e,t,i)},this.appendFile=(e,t,s,i)=>{let[o,n]=(0,S.getAppendFileOptsAndCb)(s,i);(!o.flag||(0,r.isFd)(e))&&(o.flag="a"),this.writeFile(e,t,o,n)},this._readdir=(e,t)=>{(0,r.filenameToSteps)(e);let s=this._core.getResolvedLinkOrThrow(e,"scandir"),i=s.getNode();if(!i.isDirectory())throw(0,E.createError)("ENOTDIR","scandir",e);if(!i.canRead())throw(0,E.createError)("EACCES","scandir",e);let l=[];for(let e of s.children.keys()){let i=s.getChild(e);if(i&&"."!==e&&".."!==e&&(l.push(d.default.build(i,t.encoding)),t.recursive&&i.children.size)){let e={...t,recursive:!0,withFileTypes:!0},s=this._readdir(i.getPath(),e);l.push(...s)}}if(n.isWin||"buffer"===t.encoding||l.sort((e,t)=>e.name<t.name?-1:+(e.name>t.name)),t.withFileTypes)return l;let a=e;return n.isWin&&(a=a.replace(/\\/g,"/")),l.map(e=>{if(t.recursive){let t=D(e.parentPath,e.name.toString());return n.isWin&&(t=t.replace(/\\/g,"/")),t.replace(a+o.posix.sep,"")}return e.name})},this.readdirSync=(e,t)=>{let s=(0,S.getReaddirOptions)(t),i=(0,E.pathToFilename)(e);return this._readdir(i,s)},this.readdir=(e,t,s)=>{let[i,o]=(0,S.getReaddirOptsAndCb)(t,s),r=(0,E.pathToFilename)(e);this.wrapAsync(this._readdir,[r,i],o)},this._readlink=(e,t)=>{let s=this._core.getLinkOrThrow(e,"readlink").getNode();if(!s.isSymlink())throw(0,E.createError)("EINVAL","readlink",e);return(0,f.strToEncoding)(s.symlink,t)},this.readlinkSync=(e,t)=>{let s=(0,S.getDefaultOpts)(t),i=(0,E.pathToFilename)(e);return this._readlink(i,s.encoding)},this.readlink=(e,t,s)=>{let[i,o]=(0,S.getDefaultOptsAndCb)(t,s),r=(0,E.pathToFilename)(e);this.wrapAsync(this._readlink,[r,i.encoding],o)},this._fsync=e=>{this._core.getFileByFdOrThrow(e,"fsync")},this.fsyncSync=e=>{this._fsync(e)},this.fsync=(e,t)=>{this.wrapAsync(this._fsync,[e],t)},this._fdatasync=e=>{this._core.getFileByFdOrThrow(e,"fdatasync")},this.fdatasyncSync=e=>{this._fdatasync(e)},this.fdatasync=(e,t)=>{this.wrapAsync(this._fdatasync,[e],t)},this._ftruncate=(e,t)=>{this._core.ftruncate(e,t)},this.ftruncateSync=(e,t)=>{this._ftruncate(e,t)},this.ftruncate=(e,t,s)=>{let i="number"==typeof t?t:0,o=(0,E.validateCallback)("number"==typeof t?s:t);this.wrapAsync(this._ftruncate,[e,i],o)},this._truncate=(e,t)=>{let s=this.openSync(e,"r+");try{this.ftruncateSync(s,t)}finally{this.closeSync(s)}},this.truncateSync=(e,t)=>{if((0,r.isFd)(e))return this.ftruncateSync(e,t);this._truncate(e,t)},this.truncate=(e,t,s)=>{let i="number"==typeof t?t:0,o=(0,E.validateCallback)("number"==typeof t?s:t);if((0,r.isFd)(e))return this.ftruncate(e,i,o);this.wrapAsync(this._truncate,[e,i],o)},this._futimes=(e,t,s)=>{this._core.futimes(e,t,s)},this.futimesSync=(e,t,s)=>{this._futimes(e,B(t),B(s))},this.futimes=(e,t,s,i)=>{this.wrapAsync(this._futimes,[e,B(t),B(s)],i)},this._utimes=(e,t,s,i=!0)=>{this._core.utimes(e,t,s,i)},this.utimesSync=(e,t,s)=>{this._utimes((0,E.pathToFilename)(e),B(t),B(s),!0)},this.utimes=(e,t,s,i)=>{this.wrapAsync(this._utimes,[(0,E.pathToFilename)(e),B(t),B(s),!0],i)},this.lutimesSync=(e,t,s)=>{this._utimes((0,E.pathToFilename)(e),B(t),B(s),!1)},this.lutimes=(e,t,s,i)=>{this.wrapAsync(this._utimes,[(0,E.pathToFilename)(e),B(t),B(s),!1],i)},this.mkdirSync=(e,t)=>{let s=(0,S.getMkdirOptions)(t),i=(0,E.modeToNumber)(s.mode,511),o=(0,E.pathToFilename)(e);if(s.recursive)return this._core.mkdirp(o,i);this._core.mkdir(o,i)},this.mkdir=(e,t,s)=>{let i=(0,S.getMkdirOptions)(t),o=(0,E.validateCallback)("function"==typeof t?t:s),r=(0,E.modeToNumber)(i.mode,511),n=(0,E.pathToFilename)(e);i.recursive?this.wrapAsync(this._core.mkdirp,[n,r],o):this.wrapAsync(this._core.mkdir,[n,r],o)},this._mkdtemp=(e,t,s=5)=>{let i=e+(0,E.genRndStr6)();try{return this._core.mkdir(i,511),(0,f.strToEncoding)(i,t)}catch(i){if("EEXIST"===i.code)if(s>1)return this._mkdtemp(e,t,s-1);else throw Error("Could not create temp dir.");throw i}},this.mkdtempSync=(e,t)=>{let{encoding:s}=(0,S.getDefaultOpts)(t);if(!e||"string"!=typeof e)throw TypeError("filename prefix is required");return(0,E.nullCheck)(e),this._mkdtemp(e,s)},this.mkdtemp=(e,t,s)=>{let[{encoding:i},o]=(0,S.getDefaultOptsAndCb)(t,s);if(!e||"string"!=typeof e)throw TypeError("filename prefix is required");(0,E.nullCheck)(e)&&this.wrapAsync(this._mkdtemp,[e,i],o)},this.rmdirSync=(e,t)=>{let s=(0,S.getRmdirOptions)(t);this._core.rmdir((0,E.pathToFilename)(e),s.recursive)},this.rmdir=(e,t,s)=>{let i=(0,S.getRmdirOptions)(t),o=(0,E.validateCallback)("function"==typeof t?t:s);this.wrapAsync(this._core.rmdir,[(0,E.pathToFilename)(e),i.recursive],o)},this.rmSync=(e,t)=>{this._core.rm((0,E.pathToFilename)(e),t?.force,t?.recursive)},this.rm=(e,t,s)=>{let[i,o]=(0,S.getRmOptsAndCb)(t,s);this.wrapAsync(this._core.rm,[(0,E.pathToFilename)(e),i?.force,i?.recursive],o)},this._fchmod=(e,t)=>{this._core.fchmod(e,t)},this.fchmodSync=(e,t)=>{this._fchmod(e,(0,E.modeToNumber)(t))},this.fchmod=(e,t,s)=>{this.wrapAsync(this._fchmod,[e,(0,E.modeToNumber)(t)],s)},this._chmod=(e,t,s=!0)=>{s?this._core.chmod(e,t):this._core.lchmod(e,t)},this.chmodSync=(e,t)=>{let s=(0,E.modeToNumber)(t),i=(0,E.pathToFilename)(e);this._chmod(i,s,!0)},this.chmod=(e,t,s)=>{let i=(0,E.modeToNumber)(t),o=(0,E.pathToFilename)(e);this.wrapAsync(this._chmod,[o,i],s)},this._lchmod=(e,t)=>{this._core.lchmod(e,t)},this.lchmodSync=(e,t)=>{let s=(0,E.modeToNumber)(t),i=(0,E.pathToFilename)(e);this._lchmod(i,s)},this.lchmod=(e,t,s)=>{let i=(0,E.modeToNumber)(t),o=(0,E.pathToFilename)(e);this.wrapAsync(this._lchmod,[o,i],s)},this._fchown=(e,t,s)=>{this._core.fchown(e,t,s)},this.fchownSync=(e,t,s)=>{M(t),U(s),this._fchown(e,t,s)},this.fchown=(e,t,s,i)=>{M(t),U(s),this.wrapAsync(this._fchown,[e,t,s],i)},this._chown=(e,t,s)=>{this._core.chown(e,t,s)},this.chownSync=(e,t,s)=>{M(t),U(s),this._chown((0,E.pathToFilename)(e),t,s)},this.chown=(e,t,s,i)=>{M(t),U(s),this.wrapAsync(this._chown,[(0,E.pathToFilename)(e),t,s],i)},this._lchown=(e,t,s)=>{this._core.lchown(e,t,s)},this.lchownSync=(e,t,s)=>{M(t),U(s),this._lchown((0,E.pathToFilename)(e),t,s)},this.lchown=(e,t,s,i)=>{M(t),U(s),this.wrapAsync(this._lchown,[(0,E.pathToFilename)(e),t,s],i)},this.statWatchers={},this.cpSync=(e,t,s)=>{let i=(0,E.pathToFilename)(e),o=(0,E.pathToFilename)(t),r={dereference:s?.dereference??!1,errorOnExist:s?.errorOnExist??!1,filter:s?.filter,force:s?.force??!0,mode:s?.mode??0,preserveTimestamps:s?.preserveTimestamps??!1,recursive:s?.recursive??!1,verbatimSymlinks:s?.verbatimSymlinks??!1};return this._cp(i,o,r)},this.cp=(e,t,s,i)=>{let o,r,n=(0,E.pathToFilename)(e),l=(0,E.pathToFilename)(t);"function"==typeof s?[o,r]=[{},s]:[o,r]=[s||{},i],(0,E.validateCallback)(r);let d={dereference:o?.dereference??!1,errorOnExist:o?.errorOnExist??!1,filter:o?.filter,force:o?.force??!0,mode:o?.mode??0,preserveTimestamps:o?.preserveTimestamps??!1,recursive:o?.recursive??!1,verbatimSymlinks:o?.verbatimSymlinks??!1};this.wrapAsync(this._cp,[n,l,d],r)},this.openAsBlob=async(e,t)=>{let s,i=(0,E.pathToFilename)(e);try{s=this._core.getResolvedLinkOrThrow(i,"open")}catch(e){if(e&&"object"==typeof e&&"ENOENT"===e.code)throw new g.TypeError("ERR_INVALID_ARG_VALUE");throw e}return new Blob([s.getNode().getBuffer()],{type:t?.type||""})},this.glob=(e,...t)=>{let[s,i]=1===t.length?[{},t[0]]:[t[0],t[1]];this.wrapAsync(this._globSync,[e,s||{}],i)},this.globSync=(e,t={})=>this._globSync(e,t),this._globSync=(e,t={})=>{let{globSync:i}=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/glob.js");return i(this,e,t)},this._opendir=(e,t)=>{let s=this._core.getResolvedLinkOrThrow(e,"scandir");if(!s.getNode().isDirectory())throw(0,E.createError)("ENOTDIR","scandir",e);return new v.Dir(s,t)},this.opendirSync=(e,t)=>{let s=(0,S.getOpendirOptions)(t),i=(0,E.pathToFilename)(e);return this._opendir(i,s)},this.opendir=(e,t,s)=>{let[i,o]=(0,S.getOpendirOptsAndCb)(t,s),r=(0,E.pathToFilename)(e);this.wrapAsync(this._opendir,[r,i],o)};let t=this;this.StatWatcher=class extends V{constructor(){super(t)}};let i=H;this.ReadStream=class extends i{constructor(...e){super(t,...e)}};let a=G;this.WriteStream=class extends a{constructor(...e){super(t,...e)}},this.FSWatcher=class extends Y{constructor(){super(t)}};let h=(e,t)=>{let s=this._core.getResolvedLinkOrThrow(e,"realpath");return(0,f.strToEncoding)(s.getPath()||"/",t)},u=(e,s,i)=>{let[o,r]=(0,S.getRealpathOptsAndCb)(s,i),n=(0,E.pathToFilename)(e);t.wrapAsync(h,[n,o.encoding],r)},c=(e,t)=>h((0,E.pathToFilename)(e),(0,S.getRealpathOptions)(t).encoding);this.realpath=u,this.realpath.native=u,this.realpathSync=c,this.realpathSync.native=c}wrapAsync(e,t,s){(0,E.validateCallback)(s),Promise.resolve().then(()=>{let i;try{i=e.apply(this,t)}catch(e){s(e);return}s(null,i)})}reset(){this._core.reset()}toJSON(e,t={},s=!1,i=!1){return this._core.toJSON(e,t,s,i)}fromJSON(e,t){return this._core.fromJSON(e,t)}fromNestedJSON(e,t){return this._core.fromNestedJSON(e,t)}mountSync(e,t){this._core.fromJSON(t,e)}_write(e,t,s,i,o){return this._core.write(e,t,s,i,o)}writevBase(e,t,s){this._core.getFileByFdOrThrow(e);let i=s??void 0;-1===i&&(i=void 0);let o=0;for(let s of t){let t=h.Buffer.from(s.buffer,s.byteOffset,s.byteLength),r=this._core.write(e,t,0,t.byteLength,i??null);if(i=void 0,o+=r,r<t.byteLength)break}return o}_copyFile(e,t,s){let i=this.readFileSync(e);if(s&A&&this.existsSync(t))throw(0,E.createError)("EEXIST","copyFile",e,t);if(s&R)throw(0,E.createError)("ENOSYS","copyFile",e,t);this._core.writeFile(t,i,w.FLAGS.w,438)}isSrcSubdir(e,t){try{let s=P(e.startsWith("/")?e:"/"+e),i=P(t.startsWith("/")?t:"/"+t);if(s===i)return!0;let r=C(s,i);return""===r||!r.startsWith("..")&&!(0,o.isAbsolute)(r)}catch(e){return!1}}cpFileSync(e,t,s,i,o){if(t){if(o.errorOnExist)throw(0,E.createError)("EEXIST","cp",i);if(!o.force)return;this.unlinkSync(i)}this.copyFileSync(s,i,o.mode),o.preserveTimestamps&&this.utimesSync(i,e.atime,e.mtime),this.chmodSync(i,Number(e.mode))}cpDirSync(e,t,s,i,o){for(let e of(t||this.mkdirSync(i),this.readdirSync(s))){let t=D(s,String(e)),r=D(i,String(e));(!o.filter||o.filter(t,r))&&this._cp(t,r,o)}this.chmodSync(i,Number(e.mode))}cpSymlinkSync(e,t,s,i){let r=String(this.readlinkSync(t));i.verbatimSymlinks||(0,o.isAbsolute)(r)||(r=O(L(t),r)),e&&this.unlinkSync(s),this.symlinkSync(r,s)}lstat(e,t,s){let[{throwIfNoEntry:i=!0,bigint:o=!1},r]=(0,S.getStatOptsAndCb)(t,s);this.wrapAsync(this._lstat,[(0,E.pathToFilename)(e),o,i],r)}_stat(e,t=!1,s=!0){let i=this._core.getResolvedLinkResult(e,"stat");return i.ok?(0,r.Ok)(l.default.build(i.value.getNode(),t)):"ENOENT"!==i.err.code||s?i:(0,r.Ok)(void 0)}_statOrThrow(e,t=!1,s=!0){let i=this._stat(e,t,s);if(i.ok)return i.value;throw i.err.toError()}statSync(e,t){let{bigint:s=!0,throwIfNoEntry:i=!0}=(0,S.getStatOptions)(t),o=this._stat((0,E.pathToFilename)(e),s,i);if(o.ok)return o.value;throw o.err.toError()}stat(e,t,s){let[{bigint:i=!1,throwIfNoEntry:o=!0},r]=(0,S.getStatOptsAndCb)(t,s);this.wrapAsync(this._statOrThrow,[(0,E.pathToFilename)(e),i,o],r)}fstatBase(e,t=!1){let s=this._core.getFileByFd(e);if(!s)throw(0,E.createError)("EBADF","fstat");return l.default.build(s.node,t)}fstatSync(e,t){return this.fstatBase(e,(0,S.getStatOptions)(t).bigint)}fstat(e,t,s){let[i,o]=(0,S.getStatOptsAndCb)(t,s);this.wrapAsync(this.fstatBase,[e,i.bigint],o)}_exists(e){let t=this._stat(e);return t.ok?(0,r.Ok)(!0):t}_access(e,t){let s=this._core.getResolvedLinkOrThrow(e,"access").getNode();if(t!==T&&(t&F&&!s.canRead()||t&x&&!s.canWrite()||t&N&&!s.canExecute()))throw(0,E.createError)("EACCES","access",e)}watchFile(e,t,s){let i=(0,E.pathToFilename)(e),o=t,r=s;if("function"==typeof o&&(r=t,o=null),"function"!=typeof r)throw TypeError('The "listener" argument must be of type function. Received '+typeof r);let n=5007,l=!0,d=!1;if(o&&"object"==typeof o){if(void 0!==o.interval){if("number"!=typeof o.interval)throw TypeError('The "options.interval" property must be of type number. Received '+typeof o.interval);if(!Number.isInteger(o.interval)||o.interval<0||o.interval>0xffffffff)throw RangeError(`The value of "options.interval" is out of range. It must be an integer >= 0 && <= 4294967295. Received ${o.interval}`);n=o.interval}"boolean"==typeof o.persistent&&(l=o.persistent),"boolean"==typeof o.bigint&&(d=o.bigint)}let a=this.statWatchers[i];return a||((a=new this.StatWatcher).start(i,l,n,d),this.statWatchers[i]=a),a.addListener("change",r),a}unwatchFile(e,t){let s=(0,E.pathToFilename)(e),i=this.statWatchers[s];i&&("function"==typeof t?i.removeListener("change",t):i.removeAllListeners("change"),0===i.listenerCount("change")&&(i.stop(),delete this.statWatchers[s]))}createReadStream(e,t){return new this.ReadStream(e,t)}createWriteStream(e,t){return new this.WriteStream(e,t)}watch(e,t,s){let i=(0,E.pathToFilename)(e),o=t;"function"==typeof t&&(s=t,o=null);let{persistent:r,recursive:n,encoding:l,signal:d,throwIfNoEntry:a,ignore:h}=(0,S.getDefaultOpts)(o);void 0===r&&(r=!0),void 0===n&&(n=!1);let u=new this.FSWatcher;try{u.start(i,r,n,l,h)}catch(e){if(!1===a&&"ENOENT"===e.code)return u;throw e}if(s&&u.addListener("change",s),d)if(d.aborted)u.close();else{let e=()=>u.close();d.addEventListener("abort",e,{once:!0}),u.once("close",()=>d.removeEventListener("abort",e))}return u}_statfs(e,t=!1){return this._core.getResolvedLinkOrThrow(e,"statfs"),a.default.build(this._core,t)}statfsSync(e,t){let{bigint:s=!1}=(0,S.getStatfsOptions)(t);return this._statfs((0,E.pathToFilename)(e),s)}statfs(e,t,s){let[{bigint:i=!1},o]=(0,S.getStatfsOptsAndCb)(t,s);this.wrapAsync(this._statfs,[(0,E.pathToFilename)(e),i],o)}toTree(e={separator:o.sep}){return(0,_.toTreeSync)(this,e)}toSnapshot(e="/"){return j.toSnapshotSync({fs:this,path:e})}fromSnapshot(e,t="/"){return j.fromSnapshotSync(e,{fs:this,path:t})}toBinarySnapshot(e="/"){return j.toBinarySnapshotSync({fs:this,path:e})}fromBinarySnapshot(e,t="/"){return j.fromBinarySnapshotSync(e,{fs:this,path:t})}toJsonSnapshot(e="/"){let t=j.toJsonSnapshotSync({fs:this,path:e});return h.Buffer.from(t).toString("utf8")}fromJsonSnapshot(e,t="/"){let s=new Uint8Array(h.Buffer.from(e,"utf8"));return j.fromJsonSnapshotSync(s,{fs:this,path:t})}}function J(e){e.emit("stop")}function $(e){let t=new l.default,s=e?BigInt(0):0,i=new Date(0);return t.uid=s,t.gid=s,t.rdev=s,t.blksize=s,t.ino=s,t.size=s,t.blocks=s,t.atime=i,t.mtime=i,t.ctime=i,t.birthtime=i,t.atimeMs=s,t.mtimeMs=s,t.ctimeMs=s,t.birthtimeMs=s,e&&(t.atimeNs=s,t.mtimeNs=s,t.ctimeNs=s,t.birthtimeNs=s),t.dev=s,t.mode=s,t.nlink=s,t}t.Volume=W,W.fromJSON=(e,t,s)=>new W(r.Superblock.fromJSON(e,t,s)),W.fromNestedJSON=(e,t,s)=>new W(r.Superblock.fromNestedJSON(e,t,s));class V extends m.EventEmitter{constructor(e){super(),this.bigint=!1,this.fileExists=!1,this.stopped=!1,this.onInterval=()=>{if(this.stopped)return;let e=this.statSafe();if(e)if(this.fileExists){if(this.hasChanged(e)){let t=this.prev;this.prev=e,this.emit("change",e,t)}}else{this.fileExists=!0;let t=this.prev;this.prev=e,this.emit("change",e,t)}else this.fileExists&&(this.fileExists=!1,this.emit("change",$(this.bigint),this.prev));this.loop()},this.vol=e}loop(){clearTimeout(this.timeoutRef),this.timeoutRef=this.setTimeout(this.onInterval,this.interval)}hasChanged(e){let t=this.prev;return e.mtimeMs!==t.mtimeMs||e.ctimeMs!==t.ctimeMs||e.size!==t.size||e.ino!==t.ino||e.mode!==t.mode||e.uid!==t.uid||e.gid!==t.gid||e.nlink!==t.nlink}statSafe(){try{return this.bigint?this.vol.statSync(this.filename,{bigint:!0}):this.vol.statSync(this.filename)}catch{return null}}start(e,t=!0,s=5007,i=!1){this.filename=(0,E.pathToFilename)(e),this.setTimeout=t?setTimeout.bind("u">typeof globalThis?globalThis:global):u.default,this.interval=s,this.bigint=i;let o=this.statSafe();o?(this.prev=o,this.fileExists=!0):(this.prev=$(i),this.fileExists=!1,queueMicrotask(()=>{this.stopped||this.emit("change",this.prev,this.prev)})),this.loop()}stop(){this.stopped=!0,clearTimeout(this.timeoutRef),queueMicrotask(()=>{J.call(this,this)})}ref(){this.setTimeout=setTimeout.bind("u">typeof globalThis?globalThis:global);let e=this.timeoutRef;return e&&"object"==typeof e&&"function"==typeof e.ref&&e.ref(),this}unref(){this.setTimeout=u.default;let e=this.timeoutRef;return e&&"object"==typeof e&&"function"==typeof e.unref&&e.unref(),this}}function H(e,t,s){if(!(this instanceof H))return new H(e,t,s);if(this._vol=e,void 0===(s=Object.assign({},(0,S.getOptions)(s,{}))).highWaterMark&&(s.highWaterMark=65536),c.Readable.call(this,s),this.path=(0,E.pathToFilename)(t),this._fileHandle=s.fd&&"number"!=typeof s.fd?s.fd:null,this.fd=void 0===s.fd?null:"number"!=typeof s.fd?s.fd.fd:s.fd,this.flags=void 0===s.flags?"r":s.flags,this.mode=void 0===s.mode?438:s.mode,this.start=s.start,this.end=s.end,this.autoClose=void 0===s.autoClose||s.autoClose,this.pos=void 0,this.bytesRead=0,void 0!==this.start){if("number"!=typeof this.start)throw TypeError('"start" option must be a Number');if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError('"end" option must be a Number');if(this.start>this.end)throw Error('"start" option must be <= "end" option');this.pos=this.start}"number"!=typeof this.fd&&this.open(),this.on("end",function(){this.autoClose&&this.destroy&&this.destroy()})}function z(e){this.close()}function G(e,t,s){if(!(this instanceof G))return new G(e,t,s);if(this._vol=e,s=Object.assign({},(0,S.getOptions)(s,{})),c.Writable.call(this,s),this.path=(0,E.pathToFilename)(t),this._fileHandle=s.fd&&"number"!=typeof s.fd?s.fd:null,this.fd=void 0===s.fd?null:"number"!=typeof s.fd?s.fd.fd:s.fd,this.flags=void 0===s.flags?"w":s.flags,this.mode=void 0===s.mode?438:s.mode,this.start=s.start,this.autoClose=void 0===s.autoClose||!!s.autoClose,this.pos=void 0,this.bytesWritten=0,this.pending=!0,void 0!==this.start){if("number"!=typeof this.start)throw TypeError('"start" option must be a Number');if(this.start<0)throw Error('"start" must be >= zero');this.pos=this.start}s.encoding&&this.setDefaultEncoding(s.encoding),"number"!=typeof this.fd&&this.open(),this.once("finish",function(){this.autoClose&&this.close()})}t.StatWatcher=V,(0,y.inherits)(H,c.Readable),t.ReadStream=H,H.prototype.open=function(){var e=this;this._vol.open(this.path,this.flags,this.mode,(t,s)=>{if(t){e.autoClose&&e.destroy&&e.destroy(),e.emit("error",t);return}e.fd=s,e.emit("open",s),e.read()})},H.prototype._read=function(e){if("number"!=typeof this.fd)return this.once("open",function(){this._read(e)});if(!this.destroyed){(!i||i.length-i.used<128)&&(t=this._readableState.highWaterMark,(i=(0,h.bufferAllocUnsafe)(t)).used=0);var t,s=i,o=Math.min(i.length-i.used,e),r=i.used;if(void 0!==this.pos&&(o=Math.min(this.end-this.pos+1,o)),o<=0)return this.push(null);var n=this;this._vol.read(this.fd,i,i.used,o,this.pos,function(e,t){if(e)n.autoClose&&n.destroy&&n.destroy(),n.emit("error",e);else{var i=null;t>0&&(n.bytesRead+=t,i=s.slice(r,r+t)),n.push(i)}}),void 0!==this.pos&&(this.pos+=o),i.used+=o}},H.prototype._destroy=function(e,t){this.close(s=>{t(e||s)})},H.prototype.close=function(e){if(e&&this.once("close",e),this.closed||"number"!=typeof this.fd)return"number"!=typeof this.fd?void this.once("open",z):queueMicrotask(()=>this.emit("close"));"boolean"==typeof this._readableState?.closed?this._readableState.closed=!0:this.closed=!0,this._fileHandle?this._fileHandle.close().then(()=>this.emit("close"),e=>this.emit("error",e)):this._vol.close(this.fd,e=>{e?this.emit("error",e):this.emit("close")}),this.fd=null},(0,y.inherits)(G,c.Writable),t.WriteStream=G,G.prototype.open=function(){this._vol.open(this.path,this.flags,this.mode,(function(e,t){if(e){this.autoClose&&this.destroy&&this.destroy(),this.emit("error",e);return}this.fd=t,this.pending=!1,this.emit("open",t)}).bind(this))},G.prototype._write=function(e,t,s){if(!(e instanceof h.Buffer||e instanceof Uint8Array))return this.emit("error",Error("Invalid data"));if("number"!=typeof this.fd)return this.once("open",function(){this._write(e,t,s)});var i=this;this._vol.write(this.fd,e,0,e.length,this.pos,(e,t)=>{if(e)return i.autoClose&&i.destroy&&i.destroy(),s(e);i.bytesWritten+=t,s()}),void 0!==this.pos&&(this.pos+=e.length)},G.prototype._writev=function(e,t){if("number"!=typeof this.fd)return this.once("open",function(){this._writev(e,t)});let s=this,i=e.length,o=Array(i);for(var r=0,n=0;n<i;n++){var l=e[n].chunk;o[n]=l,r+=l.length}let d=h.Buffer.concat(o);this._vol.write(this.fd,d,0,d.length,this.pos,(e,i)=>{if(e)return s.destroy&&s.destroy(),t(e);s.bytesWritten+=i,t()}),void 0!==this.pos&&(this.pos+=r)},G.prototype.close=function(e){if(e&&this.once("close",e),this.closed||"number"!=typeof this.fd)return"number"!=typeof this.fd?void this.once("open",z):queueMicrotask(()=>this.emit("close"));"boolean"==typeof this._writableState?.closed?this._writableState.closed=!0:this.closed=!0,this._fileHandle?this._fileHandle.close().then(()=>this.emit("close"),e=>this.emit("error",e)):this._vol.close(this.fd,e=>{e?this.emit("error",e):this.emit("close")}),this.fd=null},G.prototype._destroy=H.prototype._destroy,G.prototype.destroySoon=G.prototype.end;class Y extends m.EventEmitter{constructor(e){super(),this._filename="",this._filenameEncoded="",this._recursive=!1,this._encoding=f.ENCODING_UTF8,this._closed=!1,this._onEvent=e=>{switch(e.type){case 0:case 1:this._emit("rename",e.steps);break;case 4:e.oldSteps&&this._emit("rename",e.oldSteps),this._emit("rename",e.steps);break;case 2:case 3:this._emit("change",e.steps)}},this._persist=()=>{this._timer=setTimeout(this._persist,1e6)},this._vol=e}_emit(e,t){let s=t.length?t.join(I):this._watcher.link.getName();this._ignore&&this._ignore(s)||this.emit("change",e,(0,f.strToEncoding)(s,this._encoding))}ref(){return!this._watcher||this._closed||this._timer||this._persist(),this}unref(){return clearTimeout(this._timer),this._timer=void 0,this}start(e,t=!0,s=!1,i=f.ENCODING_UTF8,o){this._filename=(0,E.pathToFilename)(e),this._steps=(0,r.filenameToSteps)(this._filename),this._filenameEncoded=(0,f.strToEncoding)(this._filename),this._recursive=s,this._encoding=i,this._ignore=void 0===o?void 0:(0,f.watchIgnoreToMatcher)(o);try{this._watcher=new r.CoreWatcher(this._vol._core,this._filename,{recursive:s})}catch(t){let e=Error(`watch ${this._filename} ${t.code}`);throw e.code=t.code,e.errno=t.code,e}this._link=this._watcher.link,this._watcher.changes.listen(this._onEvent),t&&this._persist()}close(){clearTimeout(this._timer),this._timer=void 0,this._watcher&&!this._closed&&(this._closed=!0,this._watcher.close(),queueMicrotask(()=>this.emit("close")))}}t.FSWatcher=Y},"../../node_modules/.pnpm/@jsonjoy.com+fs-print@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-print/lib/index.js"(e,t,s){t.toTreeSync=void 0;let i=s("../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/index.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");t.toTreeSync=(e,s={})=>{let r=s.separator||"/",n=s.dir||r;n[n.length-1]!==r&&(n+=r);let l=s.tab||"",d=s.depth??10,a=s.sort??!0,h=" (...)";if(d>0){let s=e.readdirSync(n,{withFileTypes:!0});a&&s.sort((e,t)=>e.isDirectory()&&t.isDirectory()?e.name.toString().localeCompare(t.name.toString()):e.isDirectory()?-1:t.isDirectory()?1:e.name.toString().localeCompare(t.name.toString())),h=(0,i.printTree)(l,s.map(s=>i=>s.isDirectory()?(0,t.toTreeSync)(e,{dir:n+s.name,depth:d-1,tab:i}):s.isSymbolicLink()?""+s.name+" → "+e.readlinkSync(n+s.name):""+s.name))}return(0,o.basename)(n,r)+r+h}},"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/async.js"(e,t,s){t.fromSnapshot=t.toSnapshot=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js"),o=async({fs:e,path:s="/",separator:i="/"})=>{let o=await e.lstat(s);if(o.isDirectory()){let o=await e.readdir(s),r={},n=s.endsWith(i)?s:s+i,l=await Promise.all(o.map(s=>(0,t.toSnapshot)({fs:e,path:`${n}${s}`,separator:i})));for(let e=0;e<o.length;e++)l[e]&&(r[""+o[e]]=l[e]);return[0,{},r]}if(o.isFile()){let t=await e.readFile(s);return[1,{},new Uint8Array(t.buffer,t.byteOffset,t.byteLength)]}return o.isSymbolicLink()?[2,{target:await e.readlink(s,{encoding:"utf8"})}]:null};t.toSnapshot=o;let r=async(e,{fs:s,path:o="/",separator:r="/"})=>{if(e)switch(e[0]){case 0:{o.endsWith(r)||(o+=r);let[,,n]=e;for(let[e,l]of(await s.mkdir(o,{recursive:!0}),Object.entries(n)))(0,i.validateEntryName)(e),await (0,t.fromSnapshot)(l,{fs:s,path:`${o}${e}`,separator:r});break}case 1:{let[,,t]=e;await s.writeFile(o,t);break}case 2:{let[,{target:t}]=e;await s.symlink(t,o)}}};t.fromSnapshot=r},"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/binary.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.fromBinarySnapshot=t.toBinarySnapshot=t.fromBinarySnapshotSync=t.toBinarySnapshotSync=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborEncoder.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborDecoder.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/async.js"),l=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js"),d=new i.CborEncoder(l.writer),a=new o.CborDecoder;t.toBinarySnapshotSync=e=>{let t=(0,r.toSnapshotSync)(e);return d.encode(t)},t.fromBinarySnapshotSync=(e,t)=>{let s=a.decode(e);(0,r.fromSnapshotSync)(s,t)},t.toBinarySnapshot=async e=>{let t=await (0,n.toSnapshot)(e);return d.encode(t)},t.fromBinarySnapshot=async(e,t)=>{let s=a.decode(e);await (0,n.fromSnapshot)(s,t)}},"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/constants.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0})},"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/index.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/constants.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/binary.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/json.js"),t)},"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/json.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.fromJsonSnapshot=t.toJsonSnapshot=t.fromJsonSnapshotSync=t.toJsonSnapshotSync=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/JsonEncoder.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/JsonDecoder.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/async.js"),l=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js"),d=new i.JsonEncoder(l.writer),a=new o.JsonDecoder;t.toJsonSnapshotSync=e=>{let t=(0,r.toSnapshotSync)(e);return d.encode(t)},t.fromJsonSnapshotSync=(e,t)=>{let s=a.read(e);(0,r.fromSnapshotSync)(s,t)},t.toJsonSnapshot=async e=>{let t=await (0,n.toSnapshot)(e);return d.encode(t)},t.fromJsonSnapshot=async(e,t)=>{let s=a.read(e);await (0,n.fromSnapshot)(s,t)}},"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js"(e,t,s){t.validateEntryName=t.writer=void 0,t.writer=new(s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Writer.js")).Writer(32768),t.validateEntryName=e=>{if(!e||"."===e||".."===e||-1!==e.indexOf("/")||-1!==e.indexOf("\\"))throw Error(`Invalid snapshot entry name: ${JSON.stringify(e)}`)}},"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.fromSnapshotSync=t.toSnapshotSync=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js");t.toSnapshotSync=({fs:e,path:s="/",separator:i="/"})=>{let o=e.lstatSync(s);if(o.isDirectory()){let o=e.readdirSync(s),r={},n=s.endsWith(i)?s:s+i;for(let s of o){let o=(0,t.toSnapshotSync)({fs:e,path:`${n}${s}`,separator:i});o&&(r[""+s]=o)}return[0,{},r]}if(o.isFile()){let t=e.readFileSync(s);return[1,{},new Uint8Array(t.buffer,t.byteOffset,t.byteLength)]}return o.isSymbolicLink()?[2,{target:e.readlinkSync(s).toString()}]:null},t.fromSnapshotSync=(e,{fs:s,path:o="/",separator:r="/"})=>{if(e)switch(e[0]){case 0:{o.endsWith(r)||(o+=r);let[,,n]=e;for(let[e,l]of(s.mkdirSync(o,{recursive:!0}),Object.entries(n)))(0,i.validateEntryName)(e),(0,t.fromSnapshotSync)(l,{fs:s,path:`${o}${e}`,separator:r});break}case 1:{let[,,t]=e;s.writeFileSync(o,t);break}case 2:{let[,{target:t}]=e;s.symlinkSync(t,o)}}}},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/JsonPackExtension.js"(e,t){t.JsonPackExtension=void 0,t.JsonPackExtension=class{constructor(e,t){this.tag=e,this.val=t}}},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/JsonPackValue.js"(e,t){t.JsonPackValue=void 0,t.JsonPackValue=class{constructor(e){this.val=e}}},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborDecoder.js"(e,t,s){t.CborDecoder=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborDecoderBase.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/JsonPackValue.js");class r extends i.CborDecoderBase{readAsMap(){let e=this.reader.u8();if(e>>5==5)return this.readMap(31&e);throw 0}readMap(e){let t=this.readMinorLen(e);return t>=0?this.readMapRaw(t):this.readMapIndef()}readMapRaw(e){let t=new Map;for(let s=0;s<e;s++){let e=this.readAny(),s=this.readAny();t.set(e,s)}return t}readMapIndef(){let e=new Map;for(;255!==this.reader.peak();){let t=this.readAny();if(255===this.reader.peak())throw 7;let s=this.readAny();e.set(t,s)}return this.reader.x++,e}skipN(e){for(let t=0;t<e;t++)this.skipAny()}skipAny(){this.skipAnyRaw(this.reader.u8())}skipAnyRaw(e){let t=31&e;switch(e>>5){case 0:case 1:this.skipUNint(t);break;case 2:this.skipBin(t);break;case 3:this.skipStr(t);break;case 4:this.skipArr(t);break;case 5:this.skipObj(t);break;case 7:this.skipTkn(t);break;case 6:this.skipTag(t)}}skipMinorLen(e){if(e<=23)return e;switch(e){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());case 31:return -1;default:throw 1}}skipUNint(e){if(!(e<=23))switch(e){case 24:return this.reader.skip(1);case 25:return this.reader.skip(2);case 26:return this.reader.skip(4);case 27:return this.reader.skip(8);default:throw 1}}skipBin(e){let t=this.skipMinorLen(e);if(t>=0)this.reader.skip(t);else{for(;255!==this.reader.peak();)this.skipBinChunk();this.reader.x++}}skipBinChunk(){let e=this.reader.u8(),t=31&e;if(2!=e>>5)throw 2;if(t>27)throw 3;this.skipBin(t)}skipStr(e){let t=this.skipMinorLen(e);if(t>=0)this.reader.skip(t);else{for(;255!==this.reader.peak();)this.skipStrChunk();this.reader.x++}}skipStrChunk(){let e=this.reader.u8(),t=31&e;if(3!=e>>5)throw 4;if(t>27)throw 5;this.skipStr(t)}skipArr(e){let t=this.skipMinorLen(e);if(t>=0)this.skipN(t);else{for(;255!==this.reader.peak();)this.skipAny();this.reader.x++}}skipObj(e){let t=this.readMinorLen(e);if(t>=0)return this.skipN(2*t);for(;255!==this.reader.peak();){if(this.skipAny(),255===this.reader.peak())throw 7;this.skipAny()}this.reader.x++}skipTag(e){if(0>this.skipMinorLen(e))throw 1;this.skipAny()}skipTkn(e){switch(e){case 24:this.reader.skip(1);return;case 25:this.reader.skip(2);return;case 26:this.reader.skip(4);return;case 27:this.reader.skip(8);return}if(!(e<=23))throw 1}validate(e,t=0,s=e.length){if(this.reader.reset(e),this.reader.x=t,this.skipAny(),this.reader.x-t!==s)throw 8}decodeLevel(e){return this.reader.reset(e),this.readLevel()}readLevel(){let e=this.reader.u8(),t=e>>5,s=31&e;switch(t){case 4:return this.readArrLevel(s);case 5:return this.readObjLevel(s);default:return super.readAnyRaw(e)}}readPrimitiveOrVal(){switch(this.reader.peak()>>5){case 4:case 5:return this.readAsValue();default:return this.readAny()}}readAsValue(){let e=this.reader,t=e.x;this.skipAny();let s=e.x;return new o.JsonPackValue(e.uint8.subarray(t,s))}readObjLevel(e){let t=this.readMinorLen(e);return t>=0?this.readObjRawLevel(t):this.readObjIndefLevel()}readObjRawLevel(e){let t={};for(let s=0;s<e;s++){let e=this.key(),s=this.readPrimitiveOrVal();t[e]=s}return t}readObjIndefLevel(){let e={};for(;255!==this.reader.peak();){let t=this.key();if(255===this.reader.peak())throw 7;let s=this.readPrimitiveOrVal();e[t]=s}return this.reader.x++,e}readArrLevel(e){let t=this.readMinorLen(e);return t>=0?this.readArrRawLevel(t):this.readArrIndefLevel()}readArrRawLevel(e){let t=[];for(let s=0;s<e;s++)t.push(this.readPrimitiveOrVal());return t}readArrIndefLevel(){let e=[];for(;255!==this.reader.peak();)e.push(this.readPrimitiveOrVal());return this.reader.x++,e}readHdr(e){let t=this.reader.u8();if(t>>5!==e)throw 0;let s=31&t;if(s<24)return s;switch(s){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());case 31:return -1}throw 1}readStrHdr(){return this.readHdr(3)}readObjHdr(){return this.readHdr(5)}readArrHdr(){return this.readHdr(4)}findKey(e){let t=this.readObjHdr();for(let s=0;s<t;s++){if(this.key()===e)return this;this.skipAny()}throw 9}findIndex(e){if(e>=this.readArrHdr())throw 10;for(let t=0;t<e;t++)this.skipAny();return this}find(e){for(let t=0;t<e.length;t++){let s=e[t];"string"==typeof s?this.findKey(s):this.findIndex(s)}return this}}t.CborDecoder=r},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborDecoderBase.js"(e,t,s){t.CborDecoderBase=void 0;let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"),o=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/f16.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/JsonPackExtension.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/JsonPackValue.js"),l=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Reader.js"),d=i.__importDefault(s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/sharedCachedUtf8Decoder.js"));t.CborDecoderBase=class{constructor(e=new l.Reader,t=d.default){this.reader=e,this.keyDecoder=t}read(e){return this.reader.reset(e),this.readAny()}decode(e){return this.reader.reset(e),this.readAny()}val(){return this.readAny()}readAny(){let e=this.reader.u8(),t=e>>5,s=31&e;if(t<4)if(t<2)return 0===t?this.readUint(s):this.readNint(s);else return 2===t?this.readBin(s):this.readStr(s);return t<6?4===t?this.readArr(s):this.readObj(s):6===t?this.readTag(s):this.readTkn(s)}readAnyRaw(e){let t=e>>5,s=31&e;if(t<4)if(t<2)return 0===t?this.readUint(s):this.readNint(s);else return 2===t?this.readBin(s):this.readStr(s);return t<6?4===t?this.readArr(s):this.readObj(s):6===t?this.readTag(s):this.readTkn(s)}readMinorLen(e){if(e<24)return e;switch(e){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());case 31:return -1;default:throw 1}}readUint(e){if(e<25)return 24===e?this.reader.u8():e;{if(e<27)return 25===e?this.reader.u16():this.reader.u32();let t=this.reader.u64();return t>0x1fffffffffffff?t:Number(t)}}readNint(e){if(e<25)return 24===e?-this.reader.u8()-1:-e-1;{if(e<27)return 25===e?-this.reader.u16()-1:-this.reader.u32()-1;let t=this.reader.u64();return t>0x1ffffffffffffe?-t-BigInt(1):-Number(t)-1}}readBin(e){let t=this.reader;if(e<=23)return t.buf(e);switch(e){case 24:return t.buf(t.u8());case 25:return t.buf(t.u16());case 26:return t.buf(t.u32());case 27:return t.buf(Number(t.u64()));case 31:{let e=0,t=[];for(;255!==this.reader.peak();){let s=this.readBinChunk();e+=s.length,t.push(s)}this.reader.x++;let s=new Uint8Array(e),i=0,o=t.length;for(let e=0;e<o;e++){let o=t[e];s.set(o,i),i+=o.length}return s}default:throw 1}}readBinChunk(){let e=this.reader.u8(),t=31&e;if(2!=e>>5)throw 2;if(t>27)throw 3;return this.readBin(t)}readAsStr(){let e=this.reader.u8();if(3!=e>>5)throw 11;return this.readStr(31&e)}readStr(e){let t=this.reader;if(e<=23)return t.utf8(e);switch(e){case 24:return t.utf8(t.u8());case 25:return t.utf8(t.u16());case 26:return t.utf8(t.u32());case 27:return t.utf8(Number(t.u64()));case 31:{let e="";for(;255!==t.peak();)e+=this.readStrChunk();return this.reader.x++,e}default:throw 1}}readStrLen(e){if(e<=23)return e;switch(e){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());default:throw 1}}readStrChunk(){let e=this.reader.u8(),t=31&e;if(3!=e>>5)throw 4;if(t>27)throw 5;return this.readStr(t)}readArr(e){let t=this.readMinorLen(e);return t>=0?this.readArrRaw(t):this.readArrIndef()}readArrRaw(e){let t=[];for(let s=0;s<e;s++)t.push(this.readAny());return t}readArrIndef(){let e=[];for(;255!==this.reader.peak();)e.push(this.readAny());return this.reader.x++,e}readObj(e){if(e<28){let t=e;switch(e){case 24:t=this.reader.u8();break;case 25:t=this.reader.u16();break;case 26:t=this.reader.u32();break;case 27:t=Number(this.reader.u64())}let s={};for(let e=0;e<t;e++){let e=this.key();if("__proto__"===e)throw 6;let t=this.readAny();s[e]=t}return s}if(31===e)return this.readObjIndef();throw 1}readObjRaw(e){let t={};for(let s=0;s<e;s++){let e=this.key(),s=this.readAny();t[e]=s}return t}readObjIndef(){let e={};for(;255!==this.reader.peak();){let t=this.key();if(255===this.reader.peak())throw 7;let s=this.readAny();e[t]=s}return this.reader.x++,e}key(){let e=this.reader.u8();if(3!=e>>5)return String(this.readAnyRaw(e));let t=this.readStrLen(31&e);if(t>31)return this.reader.utf8(t);let s=this.keyDecoder.decode(this.reader.uint8,this.reader.x,t);return this.reader.skip(t),s}readTag(e){if(e<=23)return this.readTagRaw(e);switch(e){case 24:return this.readTagRaw(this.reader.u8());case 25:return this.readTagRaw(this.reader.u16());case 26:return this.readTagRaw(this.reader.u32());case 27:return this.readTagRaw(Number(this.reader.u64()));default:throw 1}}readTagRaw(e){return new r.JsonPackExtension(e,this.readAny())}readTkn(e){switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case 24:return new n.JsonPackValue(this.reader.u8());case 25:return this.f16();case 26:return this.reader.f32();case 27:return this.reader.f64()}if(e<=23)return new n.JsonPackValue(e);throw 1}f16(){return(0,o.decodeF16)(this.reader.u16())}}},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborEncoder.js"(e,t,s){t.CborEncoder=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/isFloat32.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/JsonPackExtension.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborEncoderFast.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/JsonPackValue.js");class l extends r.CborEncoderFast{writeUnknown(e){this.writeNull()}writeAny(e){switch(typeof e){case"number":return this.writeNumber(e);case"string":return this.writeStr(e);case"boolean":return this.writer.u8(244+ +e);case"object":if(!e)return this.writer.u8(246);switch(e.constructor){case Object:return this.writeObj(e);case Array:return this.writeArr(e);case Uint8Array:return this.writeBin(e);case Map:return this.writeMap(e);case o.JsonPackExtension:return this.writeTag(e.tag,e.val);case n.JsonPackValue:{let t=e.val;return this.writer.buf(t,t.length)}default:if(e instanceof Uint8Array)return this.writeBin(e);if(Array.isArray(e))return this.writeArr(e);if(e instanceof Map)return this.writeMap(e);return this.writeUnknown(e)}case"undefined":return this.writeUndef();case"bigint":return this.writeBigInt(e);default:return this.writeUnknown(e)}}writeFloat(e){(0,i.isFloat32)(e)?this.writer.u8f32(250,e):this.writer.u8f64(251,e)}writeMap(e){this.writeMapHdr(e.size),e.forEach((e,t)=>{this.writeAny(t),this.writeAny(e)})}writeUndef(){this.writer.u8(247)}}t.CborEncoder=l},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborEncoderFast.js"(e,t,s){t.CborEncoderFast=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Writer.js"),o=Number.isSafeInteger;t.CborEncoderFast=class{constructor(e=new i.Writer){this.writer=e}encode(e){return this.writeAny(e),this.writer.flush()}writeAny(e){switch(typeof e){case"number":return this.writeNumber(e);case"string":return this.writeStr(e);case"boolean":return this.writer.u8(244+ +e);case"object":if(!e)return this.writer.u8(246);if(e.constructor===Array)return this.writeArr(e);return this.writeObj(e)}}writeCbor(){this.writer.u8u16(217,55799)}writeEnd(){this.writer.u8(255)}writeNull(){this.writer.u8(246)}writeBoolean(e){e?this.writer.u8(245):this.writer.u8(244)}writeNumber(e){o(e)?this.writeInteger(e):"bigint"==typeof e?this.writeBigInt(e):this.writeFloat(e)}writeBigInt(e){e>=0?this.writeBigUint(e):this.writeBigSint(e)}writeBigUint(e){if(e<=Number.MAX_SAFE_INTEGER)return this.writeUInteger(Number(e));this.writer.u8u64(27,e)}writeBigSint(e){if(e>=Number.MIN_SAFE_INTEGER)return this.encodeNint(Number(e));let t=-BigInt(1)-e;this.writer.u8u64(59,t)}writeInteger(e){e>=0?this.writeUInteger(e):this.encodeNint(e)}writeUInteger(e){let t=this.writer;t.ensureCapacity(9);let s=t.uint8,i=t.x;e<=23?s[i++]=0+e:e<=255?(s[i++]=24,s[i++]=e):e<=65535?(s[i++]=25,t.view.setUint16(i,e),i+=2):e<=0xffffffff?(s[i++]=26,t.view.setUint32(i,e),i+=4):(s[i++]=27,t.view.setBigUint64(i,BigInt(e)),i+=8),t.x=i}encodeNumber(e){this.writeNumber(e)}encodeInteger(e){this.writeInteger(e)}encodeUint(e){this.writeUInteger(e)}encodeNint(e){let t=-1-e,s=this.writer;s.ensureCapacity(9);let i=s.uint8,o=s.x;t<24?i[o++]=32+t:t<=255?(i[o++]=56,i[o++]=t):t<=65535?(i[o++]=57,s.view.setUint16(o,t),o+=2):t<=0xffffffff?(i[o++]=58,s.view.setUint32(o,t),o+=4):(i[o++]=59,s.view.setBigUint64(o,BigInt(t)),o+=8),s.x=o}writeFloat(e){this.writer.u8f64(251,e)}writeBin(e){let t=e.length;this.writeBinHdr(t),this.writer.buf(e,t)}writeBinHdr(e){let t=this.writer;e<=23?t.u8(64+e):e<=255?t.u16(22528+e):e<=65535?t.u8u16(89,e):e<=0xffffffff?t.u8u32(90,e):t.u8u64(91,e)}writeStr(e){let t=this.writer,s=4*e.length;t.ensureCapacity(5+s);let i=t.uint8,o=t.x;s<=23?t.x++:s<=255?(i[t.x++]=120,o=t.x,t.x++):s<=65535?(i[t.x++]=121,o=t.x,t.x+=2):(i[t.x++]=122,o=t.x,t.x+=4);let r=t.utf8(e);s<=23?i[o]=96+r:s<=255?i[o]=r:s<=65535?t.view.setUint16(o,r):t.view.setUint32(o,r)}writeStrHdr(e){let t=this.writer;e<=23?t.u8(96+e):e<=255?t.u16(30720+e):e<=65535?t.u8u16(121,e):t.u8u32(122,e)}writeAsciiStr(e){this.writeStrHdr(e.length),this.writer.ascii(e)}writeArr(e){let t=e.length;this.writeArrHdr(t);for(let s=0;s<t;s++)this.writeAny(e[s])}writeArrHdr(e){let t=this.writer;e<=23?t.u8(128+e):e<=255?t.u16(38912+e):e<=65535?t.u8u16(153,e):e<=0xffffffff?t.u8u32(154,e):t.u8u64(155,e)}writeObj(e){let t=Object.keys(e),s=t.length;this.writeObjHdr(s);for(let i=0;i<s;i++){let s=t[i];this.writeStr(s),this.writeAny(e[s])}}writeObjHdr(e){let t=this.writer;e<=23?t.u8(160+e):e<=255?t.u16(47104+e):e<=65535?t.u8u16(185,e):e<=0xffffffff?t.u8u32(186,e):t.u8u64(187,e)}writeMapHdr(e){this.writeObjHdr(e)}writeStartMap(){this.writer.u8(191)}writeTag(e,t){this.writeTagHdr(e),this.writeAny(t)}writeTagHdr(e){let t=this.writer;e<=23?t.u8(192+e):e<=255?t.u16(55296+e):e<=65535?t.u8u16(217,e):e<=0xffffffff?t.u8u32(218,e):t.u8u64(219,e)}writeTkn(e){let t=this.writer;e<=23?t.u8(224+e):e<=255&&t.u16(63488+e)}writeStartStr(){this.writer.u8(127)}writeStrChunk(e){throw Error("Not implemented")}writeEndStr(){throw Error("Not implemented")}writeStartBin(){this.writer.u8(95)}writeBinChunk(e){throw Error("Not implemented")}writeEndBin(){throw Error("Not implemented")}writeStartArr(){this.writer.u8(159)}writeArrChunk(e){throw Error("Not implemented")}writeEndArr(){this.writer.u8(255)}writeStartObj(){this.writer.u8(191)}writeObjChunk(e,t){throw Error("Not implemented")}writeEndObj(){this.writer.u8(255)}}},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/JsonDecoder.js"(e,t,s){t.JsonDecoder=t.Y=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/index.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Reader.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/fromBase64Bin.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/util.js"),l=/\\(b|f|n|r|t|"|\/|\\)/g,d=e=>{switch(e){case"\\b":return"\b";case"\\f":return"\f";case"\\n":return"\n";case"\\r":return"\r";case"\\t":return" ";case'\\"':return'"';case"\\/":return"/";case"\\\\":return"\\"}return e},a=(e,t)=>100===e[t]&&97===e[t+1]&&116===e[t+2]&&97===e[t+3]&&58===e[t+4]&&97===e[t+5]&&112===e[t+6]&&112===e[t+7]&&108===e[t+8]&&105===e[t+9]&&99===e[t+10]&&97===e[t+11]&&116===e[t+12]&&105===e[t+13]&&111===e[t+14]&&110===e[t+15]&&47===e[t+16]&&111===e[t+17]&&99===e[t+18]&&116===e[t+19]&&101===e[t+20]&&116===e[t+21]&&45===e[t+22]&&115===e[t+23]&&116===e[t+24]&&114===e[t+25]&&101===e[t+26]&&97===e[t+27]&&109===e[t+28]&&59===e[t+29]&&98===e[t+30]&&97===e[t+31]&&115===e[t+32]&&101===e[t+33]&&54===e[t+34]&&52===e[t+35]&&44===e[t+36],h=String.fromCharCode;t.Y=e=>{let t=e.uint8,s=t.length,i=[],o=e.x,r=0;for(;o<s;){let e=t[o++];if((128&e)==0)if(92===r){switch(e){case 98:e=8;break;case 102:e=12;break;case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 34:e=34;break;case 47:e=47;break;case 92:e=92;break;default:throw Error("Invalid JSON")}r=0}else{if(34===e)break;if(92===(r=e))continue}else{let s=63&t[o++];if((224&e)==192)e=(31&e)<<6|s;else{let r=63&t[o++];if((240&e)==224)e=(31&e)<<12|s<<6|r;else if((248&e)==240){let n=(7&e)<<18|s<<12|r<<6|63&t[o++];if(n>65535){let t=(n-=65536)>>>10&1023|55296;n=56320|1023&n,i.push(t),e=n}else e=n}}}i.push(e)}return e.x=o,h.apply(String,i)},t.JsonDecoder=class{constructor(){this.reader=new o.Reader}read(e){return this.reader.reset(e),this.readAny()}decode(e){return this.reader.reset(e),this.readAny()}readAny(){this.skipWhitespace();let e=this.reader,t=e.x,s=e.uint8,i=s[t];switch(i){case 34:if(100===s[t+1]){let i,o=this.tryReadBin();if(o)return o;if(i=t+2,97===s[i++]&&116===s[i++]&&97===s[i++]&&58===s[i++]&&97===s[i++]&&112===s[i++]&&112===s[i++]&&108===s[i++]&&105===s[i++]&&99===s[i++]&&97===s[i++]&&116===s[i++]&&105===s[i++]&&111===s[i++]&&110===s[i++]&&47===s[i++]&&99===s[i++]&&98===s[i++]&&111===s[i++]&&114===s[i++]&&44===s[i++]&&98===s[i++]&&97===s[i++]&&115===s[i++]&&101===s[i++]&&54===s[i++]&&52===s[i++]&&59===s[i++]&&57===s[i++]&&119===s[i++]&&61===s[i++]&&61===s[i++]&&34===s[i++]){e.x=t+35;return}}return this.readStr();case 91:return this.readArr();case 102:return this.readFalse();case 110:return this.readNull();case 116:return this.readTrue();case 123:return this.readObj();default:if(i>=48&&i<=57||45===i)return this.readNum();throw Error("Invalid JSON")}}skipWhitespace(){let e=this.reader,t=e.uint8,s=e.x;for(;;)switch(t[s]){case 32:case 9:case 10:case 13:s++;continue;default:e.x=s;return}}readNull(){if(0x6e756c6c!==this.reader.u32())throw Error("Invalid JSON");return null}readTrue(){if(0x74727565!==this.reader.u32())throw Error("Invalid JSON");return!0}readFalse(){let e=this.reader;if(102!==e.u8()||0x616c7365!==e.u32())throw Error("Invalid JSON");return!1}readBool(){let e=this.reader;switch(e.uint8[e.x]){case 102:return this.readFalse();case 116:return this.readTrue();default:throw Error("Invalid JSON")}}readNum(){let e=this.reader,t=e.uint8,s=e.x,i=t[s++],o=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o);if(t!=t)throw Error("Invalid JSON");return t}let r=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r);if(t!=t)throw Error("Invalid JSON");return t}let n=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n);if(t!=t)throw Error("Invalid JSON");return t}let l=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l);if(t!=t)throw Error("Invalid JSON");return t}let d=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d);if(t!=t)throw Error("Invalid JSON");return t}let a=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a);if(t!=t)throw Error("Invalid JSON");return t}let u=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u);if(t!=t)throw Error("Invalid JSON");return t}let c=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c);if(t!=t)throw Error("Invalid JSON");return t}let f=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f);if(t!=t)throw Error("Invalid JSON");return t}let m=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m);if(t!=t)throw Error("Invalid JSON");return t}let p=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p);if(t!=t)throw Error("Invalid JSON");return t}let y=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y);if(t!=t)throw Error("Invalid JSON");return t}let b=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b);if(t!=t)throw Error("Invalid JSON");return t}let _=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_);if(t!=t)throw Error("Invalid JSON");return t}let j=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j);if(t!=t)throw Error("Invalid JSON");return t}let w=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w);if(t!=t)throw Error("Invalid JSON");return t}let g=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g);if(t!=t)throw Error("Invalid JSON");return t}let S=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g,S);if(t!=t)throw Error("Invalid JSON");return t}let E=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g,S,E);if(t!=t)throw Error("Invalid JSON");return t}let v=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g,S,E,v);if(t!=t)throw Error("Invalid JSON");return t}let O=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g,S,E,v,O);if(t!=t)throw Error("Invalid JSON");return t}let k=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g,S,E,v,O,k);if(t!=t)throw Error("Invalid JSON");return t}let T=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g,S,E,v,O,k,T);if(t!=t)throw Error("Invalid JSON");return t}let F=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g,S,E,v,O,k,T,F);if(t!=t)throw Error("Invalid JSON");return t}throw Error("Invalid JSON")}readStr(){let e=this.reader,t=e.uint8;if(34!==t[e.x++])throw Error("Invalid JSON");let s=e.x,o=(0,n.findEndingQuote)(t,s),r=(0,i.decodeUtf8)(t,s,o-s);return r=r.replace(l,d),e.x=o+1,r}tryReadBin(){let e=this.reader,t=e.uint8,s=e.x;if(34!==t[s++]||!a(t,s))return;let i=s+=37;s=(0,n.findEndingQuote)(t,s),e.x=i;let o=(0,r.fromBase64Bin)(e.view,i,s-i);return e.x=s+1,o}readBin(){let e=this.reader,t=e.uint8,s=e.x;if(34!==t[s++]||!a(t,s))throw Error("Invalid JSON");let i=s+=37;s=(0,n.findEndingQuote)(t,s),e.x=i;let o=(0,r.fromBase64Bin)(e.view,i,s-i);return e.x=s+1,o}readArr(){let e=this.reader;if(91!==e.u8())throw Error("Invalid JSON");let t=[],s=e.uint8,i=!0;for(;;){this.skipWhitespace();let o=s[e.x];if(93===o)return e.x++,t;if(44===o)e.x++;else if(!i)throw Error("Invalid JSON");this.skipWhitespace(),t.push(this.readAny()),i=!1}}readObj(){let e=this.reader;if(123!==e.u8())throw Error("Invalid JSON");let s={},i=e.uint8,o=!0;for(;;){this.skipWhitespace();let r=i[e.x];if(125===r)return e.x++,s;if(44===r)e.x++;else if(!o)throw Error("Invalid JSON");if(this.skipWhitespace(),34!==(r=i[e.x++]))throw Error("Invalid JSON");let n=(0,t.Y)(e);if("__proto__"===n||(this.skipWhitespace(),58!==e.u8()))throw Error("Invalid JSON");this.skipWhitespace(),s[n]=this.readAny(),o=!1}}}},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/JsonEncoder.js"(e,t,s){t.JsonEncoder=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/toBase64Bin.js");t.JsonEncoder=class{constructor(e){this.writer=e}encode(e){let t=this.writer;return t.reset(),this.writeAny(e),t.flush()}writeUnknown(e){this.writeNull()}writeAny(e){switch(typeof e){case"boolean":return this.writeBoolean(e);case"number":return this.writeNumber(e);case"string":return this.writeStr(e);case"object":if(null===e)return this.writeNull();switch(e.constructor){case Object:return this.writeObj(e);case Array:return this.writeArr(e);case Uint8Array:return this.writeBin(e);default:if(e instanceof Uint8Array)return this.writeBin(e);if(Array.isArray(e))return this.writeArr(e);return this.writeUnknown(e)}case"undefined":return this.writeUndef();default:return this.writeUnknown(e)}}writeNull(){this.writer.u32(0x6e756c6c)}writeUndef(){let e=this.writer;e.ensureCapacity(35);let t=e.view,s=e.x;t.setUint32(s,0x22646174),s+=4,t.setUint32(s,0x613a6170),s+=4,t.setUint32(s,0x706c6963),s+=4,t.setUint32(s,0x6174696f),s+=4,t.setUint32(s,0x6e2f6362),s+=4,t.setUint32(s,0x6f722c62),s+=4,t.setUint32(s,0x61736536),s+=4,t.setUint32(s,0x343b3977),s+=4,t.setUint16(s,15677),s+=2,e.uint8[s++]=34,e.x=s}writeBoolean(e){e?this.writer.u32(0x74727565):this.writer.u8u32(102,0x616c7365)}writeNumber(e){let t=e.toString();this.writer.ascii(t)}writeInteger(e){this.writeNumber((0|e)===e?e:Math.trunc(e))}writeUInteger(e){this.writeInteger(e<0?-e:e)}writeFloat(e){this.writeNumber(e)}writeBin(e){let t=this.writer,s=e.length;t.ensureCapacity(41+(s<<1));let o=t.view,r=t.x;o.setUint32(r,0x22646174),r+=4,o.setUint32(r,0x613a6170),r+=4,o.setUint32(r,0x706c6963),r+=4,o.setUint32(r,0x6174696f),r+=4,o.setUint32(r,0x6e2f6f63),r+=4,o.setUint32(r,0x7465742d),r+=4,o.setUint32(r,0x73747265),r+=4,o.setUint32(r,0x616d3b62),r+=4,o.setUint32(r,0x61736536),r+=4,o.setUint16(r,13356),r+=2,r=(0,i.toBase64Bin)(e,0,s,o,r),t.uint8[r++]=34,t.x=r}writeStr(e){let t=this.writer,s=e.length;if(t.ensureCapacity(4*s+2),s<256){let i=t.x,o=i,r=t.uint8;r[o++]=34;for(let n=0;n<s;n++){let s=e.charCodeAt(n);switch(s){case 34:case 92:r[o++]=92}if(s<32||s>126){t.x=i;let s=JSON.stringify(e);t.ensureCapacity(4*s.length+4),t.utf8(s);return}r[o++]=s}r[o++]=34,t.x=o;return}let i=JSON.stringify(e);t.ensureCapacity(4*i.length+4),t.utf8(i)}writeAsciiStr(e){let t=e.length,s=this.writer;s.ensureCapacity(2*t+2);let i=s.uint8,o=s.x;i[o++]=34;for(let s=0;s<t;s++){let t=e.charCodeAt(s);switch(t){case 34:case 92:i[o++]=92}i[o++]=t}i[o++]=34,s.x=o}writeArr(e){let t=this.writer;t.u8(91);let s=e.length-1;for(let i=0;i<s;i++)this.writeAny(e[i]),t.u8(44);s>=0&&this.writeAny(e[s]),t.u8(93)}writeArrSeparator(){this.writer.u8(44)}writeObj(e){let t=this.writer,s=Object.keys(e),i=s.length;if(!i)return t.u16(31613);t.u8(123);for(let o=0;o<i;o++){let i=s[o],r=e[i];this.writeStr(i),t.u8(58),this.writeAny(r),t.u8(44)}t.uint8[t.x-1]=125}writeObjSeparator(){this.writer.u8(44)}writeObjKeySeparator(){this.writer.u8(58)}writeStartStr(){throw Error("Method not implemented.")}writeStrChunk(e){throw Error("Method not implemented.")}writeEndStr(){throw Error("Method not implemented.")}writeStartBin(){throw Error("Method not implemented.")}writeBinChunk(e){throw Error("Method not implemented.")}writeEndBin(){throw Error("Method not implemented.")}writeStartArr(){this.writer.u8(91)}writeArrChunk(e){throw Error("Method not implemented.")}writeEndArr(){this.writer.u8(93)}writeStartObj(){this.writer.u8(123)}writeObjChunk(e,t){throw Error("Method not implemented.")}writeEndObj(){this.writer.u8(125)}}},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/util.js"(e,t){t.findEndingQuote=void 0,t.findEndingQuote=(e,t)=>{let s=e.length,i=e[t],o=0;for(;t<s&&(34!==i||92===o);)o=92===i&&92===o?0:i,i=e[++t];if(t===s)throw Error("Invalid JSON");return t}},"../../node_modules/.pnpm/glob-to-regex.js@1.2.0_tslib@2.8.1/node_modules/glob-to-regex.js/lib/index.js"(e,t){t.toRegex=void 0;let s=(e,s,i,o)=>{let r=s,n=[],l="",d=1;for(;r<e.length&&d>0;){let t=e[r];if("("===t)d++,l+=t,r++;else if(")"===t){if(0==--d){n.push(l),r++;break}l+=t,r++}else"|"===t&&1===d?(n.push(l),l=""):l+=t,r++}if(0!==d)return;let a="",h=n.length;for(let e=0;e<h;e++)a+=(a?"|":"")+(0,t.toRegex)(n[e],o).source.replace(/^\^/,"").replace(/\$$/,"");switch(i){case"?":return[`(?:${a})?`,r];case"*":return[`(?:${a})*`,r];case"+":return[`(?:${a})+`,r];case"@":return[`(?:${a})`,r];case"!":return[`(?!${a})[^/]*`,r]}};t.toRegex=(e,i)=>{let o="",r=0,n=()=>{r++;let s=[],o="",n=!1;for(;r<e.length;){let t=e[r];if("}"===t){s.push(o),r++,n=!0;break}if(","===t){s.push(o),o="",r++;continue}o+=t,r++}if(!n){let e;return"\\{"+(e=o,/[.^$+{}()|\\]/.test(e)?`\\${e}`:e)}let l=s.map(e=>(0,t.toRegex)(e,i).source.replace(/^\^/,"").replace(/\$$/,"")).join("|");return`(?:${l})`},l=!!i?.extglob;for(;r<e.length;){let t=e[r];if(l&&"("===e[r+1]&&("?"===t||"*"===t||"+"===t||"@"===t||"!"===t)){let n=s(e,r+2,t,i);if(n){o+=n[0],r=n[1];continue}}switch(t){case"*":if("*"===e[r+1]){let t=r+2;for(;"*"===e[t];)t++;"/"===e[t]?(o+="(?:.*/)?",r=t+1):(o+=".*",r=t)}else o+="[^/]*",r++;break;case"?":o+="[^/]",r++;break;case"[":{let t="[";for(++r<e.length&&"!"===e[r]&&(t+="^",r++),r<e.length&&"]"===e[r]&&(t+="]",r++);r<e.length&&"]"!==e[r];){let s=e[r];t+="\\"===s?"\\\\":s,r++}if(r<e.length&&"]"===e[r])t+="]",r++;else{o+="\\[";continue}o+=t;break}case"{":o+=n();break;case"/":o+="/",r++;break;case".":case"^":case"$":case"+":case"(":case")":case"|":case"\\":o+=`\\${t}`,r++;break;default:o+=t,r++}}return RegExp("^"+o+"$",i?.nocase?"i":"")}},"../../node_modules/.pnpm/memfs@4.64.0/node_modules/memfs/lib/index.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.memfs=t.fs=t.vol=t.Volume=void 0,t.createFsFromVolume=a;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/index.js");Object.defineProperty(t,"Volume",{enumerable:!0,get:function(){return i.Volume}});let o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.64.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),{F_OK:r,R_OK:n,W_OK:l,X_OK:d}=o.constants;function a(e){let t={F_OK:r,R_OK:n,W_OK:l,X_OK:d,constants:o.constants,Stats:i.Stats,Dirent:i.Dirent};for(let s of i.fsSynchronousApiList)"function"==typeof e[s]&&(t[s]=e[s].bind(e));for(let s of i.fsCallbackApiList)"function"==typeof e[s]&&(t[s]=e[s].bind(e));return t.StatWatcher=e.StatWatcher,t.FSWatcher=e.FSWatcher,t.WriteStream=e.WriteStream,t.ReadStream=e.ReadStream,t.promises=e.promises,"function"==typeof e.realpath&&(t.realpath=e.realpath.bind(e),"function"==typeof e.realpath.native&&(t.realpath.native=e.realpath.native.bind(e))),"function"==typeof e.realpathSync&&(t.realpathSync=e.realpathSync.bind(e),"function"==typeof e.realpathSync.native&&(t.realpathSync.native=e.realpathSync.native.bind(e))),t._toUnixTimestamp=i.toUnixTimestamp,t.__vol=e,t}t.vol=new i.Volume,t.fs=a(t.vol),t.memfs=(e={},t="/")=>{let s="string"==typeof t?{cwd:t}:t,o=s.cwd??(s.process?void 0:"/"),r=i.Volume.fromNestedJSON(e,o,{process:s.process});return{fs:a(r),vol:r}},e.exports={...e.exports,...t.fs},e.exports.semantic=!0},"../../node_modules/.pnpm/thingies@2.6.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js"(e,t){t.FanOut=void 0,t.FanOut=class{constructor(){this.listeners=new Set}emit(e){this.listeners.forEach(t=>t(e))}listen(e){let t=this.listeners;return t.add(e),()=>t.delete(e)}}},"../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/index.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");i.__exportStar(s("../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/printTree.js"),t),i.__exportStar(s("../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/printBinary.js"),t),i.__exportStar(s("../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/printJson.js"),t)},"../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/printBinary.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.printBinary=void 0,t.printBinary=(e="",t)=>{let s=t[0],i=t[1],o="";return s&&(o+="\n"+e+"← "+s(e+" ")),i&&(o+="\n"+e+"→ "+i(e+" ")),o}},"../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/printJson.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.printJson=void 0,t.printJson=(e="",t,s=2)=>(JSON.stringify(t,null,s)||"nil").split("\n").join("\n"+e)},"../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/printTree.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.printTree=void 0,t.printTree=(e="",t)=>{let s="",i=t.length-1;for(;i>=0&&!t[i];i--);for(let o=0;o<=i;o++){let r=t[o];if(!r)continue;let n=o===i,l=r(e+(n?" ":"│")+" ");s+="\n"+e+(l?n?"└─":"├─":"│")+(l?" "+l:"")}return s}},"../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"(e,t,s){var i=Object.create?function(e,t,s,i){void 0===i&&(i=s);var o=Object.getOwnPropertyDescriptor(t,s);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,i,o)}:function(e,t,s,i){void 0===i&&(i=s),e[i]=t[s]};function o(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||i(t,e,s)}function r(e){return e&&e.__esModule?e:{default:e}}s.d(t,{__exportStar:()=>o,__importDefault:()=>r})}});let t=e("../../node_modules/.pnpm/memfs@4.64.0/node_modules/memfs/lib/index.js");var s=t.Volume,i=t.createFsFromVolume,o=t.fs,r=t.memfs,n=t.semantic,l=t.vol,d=!0;export{s as Volume,i as createFsFromVolume,o as fs,d as __esModule,r as memfs,n as semantic,l as vol};
1
+ import{__webpack_require__ as e}from"./rslib-runtime.js";import"./626.js";e.add({"../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/constants.js"(e,t){t.alphabet=void 0,t.alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/","function"==typeof Buffer&&Buffer.from},"../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/createFromBase64Bin.js"(e,t,s){t.createFromBase64Bin=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/constants.js");t.createFromBase64Bin=(e=i.alphabet,t="=")=>{if(64!==e.length)throw Error("chars must be 64 characters long");let s=0;for(let t=0;t<e.length;t++)s=Math.max(s,e.charCodeAt(t));let o=[];for(let e=0;e<=s;e+=1)o[e]=-1;for(let t=0;t<e.length;t++)o[e.charCodeAt(t)]=t;let r=1===t.length?t.charCodeAt(0):0;return(e,t,s)=>{if(!s)return new Uint8Array(0);let i=0;if(s%4!=0)i=4-s%4,s+=i;else{let o=t+s-1;e.getUint8(o)===r&&(i=1,s>1&&e.getUint8(o-1)===r&&(i=2))}if(s%4!=0)throw Error("Base64 string length must be a multiple of 4");let n=t+s-4*!!i,l=new Uint8Array((s>>2)*3-i),d=0,a=t;for(;a<n;a+=4){let t=e.getUint32(a),s=t>>>24,i=t>>>16&255,r=t>>>8&255,n=255&t,h=o[s],u=o[i],c=o[r],f=o[n];if(h<0||u<0||c<0||f<0)throw Error("INVALID_BASE64_SEQ");l[d]=h<<2|u>>4,l[d+1]=u<<4|c>>2,l[d+2]=c<<6|f,d+=3}if(!i)return l;if(1===i){let t=e.getUint16(n),s=e.getUint8(n+2),i=o[t>>8],r=o[255&t],a=o[s];if(i<0||r<0||a<0)throw Error("INVALID_BASE64_SEQ");return l[d]=i<<2|r>>4,l[d+1]=r<<4|a>>2,l}let h=e.getUint16(n),u=o[h>>8],c=o[255&h];if(u<0||c<0)throw Error("INVALID_BASE64_SEQ");return l[d]=u<<2|c>>4,l}}},"../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/createToBase64Bin.js"(e,t,s){t.createToBase64Bin=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/constants.js");t.createToBase64Bin=(e=i.alphabet,t="=")=>{if(64!==e.length)throw Error("chars must be 64 characters long");let s=e.split("").map(e=>e.charCodeAt(0)),o=[];for(let e of s)for(let t of s){let s=(e<<8)+t;o.push(s)}let r=1===t.length,n=r?t.charCodeAt(0):0,l=r?n<<8|n:0;return(e,t,i,d,a)=>{let h=i%3,u=i-h;for(;t<u;t+=3){let s=e[t],i=e[t+1],r=e[t+2],n=s<<4|i>>4,l=(15&i)<<8|r;d.setInt32(a,(o[n]<<16)+o[l]),a+=4}if(1===h){let t=e[u];r?(d.setInt32(a,(o[t<<4]<<16)+l),a+=4):(d.setInt16(a,o[t<<4]),a+=2)}else if(h){let t=e[u],i=e[u+1],l=t<<4|i>>4,h=(15&i)<<2;r?(d.setInt32(a,(o[l]<<16)+(s[h]<<8)+n),a+=4):(d.setInt16(a,o[l]),a+=2,d.setInt8(a,s[h]),a+=1)}return a}}},"../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/fromBase64Bin.js"(e,t,s){t.fromBase64Bin=void 0,t.fromBase64Bin=(0,s("../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/createFromBase64Bin.js").createFromBase64Bin)()},"../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/toBase64Bin.js"(e,t,s){t.toBase64Bin=void 0,t.toBase64Bin=(0,s("../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/createToBase64Bin.js").createToBase64Bin)()},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Reader.js"(e,t,s){t.Reader=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/index.js");t.Reader=class e{constructor(e=new Uint8Array([]),t=new DataView(e.buffer,e.byteOffset,e.length),s=0,i=e.length){this.uint8=e,this.view=t,this.x=s,this.end=i}reset(e){this.x=0,this.uint8=e,this.view=new DataView(e.buffer,e.byteOffset,e.length)}size(){return this.end-this.x}peek(){return this.view.getUint8(this.x)}peak(){return this.peek()}skip(e){this.x+=e}buf(e=this.size()){let t=this.x,s=t+e,i=this.uint8.subarray(t,s);return this.x=s,i}subarray(e=0,t){let s=this.x,i="number"==typeof t?s+t:this.end;return this.uint8.subarray(s+e,i)}slice(t=0,s){let i=this.x,o="number"==typeof s?i+s:this.end;return new e(this.uint8,this.view,i+t,o)}cut(e=this.size()){let t=this.slice(0,e);return this.skip(e),t}u8(){return this.uint8[this.x++]}i8(){return this.view.getInt8(this.x++)}u16(){let e=this.x,t=(this.uint8[e++]<<8)+this.uint8[e++];return this.x=e,t}i16(){let e=this.view.getInt16(this.x);return this.x+=2,e}u32(){let e=this.view.getUint32(this.x);return this.x+=4,e}i32(){let e=this.view.getInt32(this.x);return this.x+=4,e}u64(){let e=this.view.getBigUint64(this.x);return this.x+=8,e}i64(){let e=this.view.getBigInt64(this.x);return this.x+=8,e}f32(){let e=this.x;return this.x+=4,this.view.getFloat32(e)}f64(){let e=this.x;return this.x+=8,this.view.getFloat64(e)}utf8(e){let t=this.x;return this.x+=e,(0,i.decodeUtf8)(this.uint8,t,e)}ascii(e){let t=this.uint8,s="",i=this.x+e;for(let e=this.x;e<i;e++)s+=String.fromCharCode(t[e]);return this.x=i,s}}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Slice.js"(e,t){t.Slice=void 0,t.Slice=class{constructor(e,t,s,i){this.uint8=e,this.view=t,this.start=s,this.end=i}subarray(){return this.uint8.subarray(this.start,this.end)}}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Writer.js"(e,t,s){t.Writer=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Slice.js"),o=new DataView(new Uint8Array([]).buffer),r="function"==typeof Buffer,n=r?Buffer.prototype.utf8Write:null,l=r?Buffer.from:null,d="u">typeof TextEncoder?new TextEncoder:null;t.Writer=class{constructor(e=65536){this.allocSize=e,this.view=o,this.x0=0,this.x=0,this.uint8=new Uint8Array(e),this.size=e,this.view=new DataView(this.uint8.buffer)}grow(e){let t=this.x0,s=this.x,i=this.uint8,o=new Uint8Array(e),r=new DataView(o.buffer),n=i.subarray(t,s);o.set(n,0),this.x=s-t,this.x0=0,this.uint8=o,this.size=e,this.view=r}ensureCapacity(e){let t=this.size,s=t-this.x;if(s<e){let i=t-this.x0+(e-s);this.grow(i<=this.allocSize?this.allocSize:2*i)}}move(e){this.ensureCapacity(e),this.x+=e}reset(){this.x0=this.x}newBuffer(e){let t=this.uint8=new Uint8Array(e);this.size=e,this.view=new DataView(t.buffer),this.x=this.x0=0}flush(){let e=this.uint8.subarray(this.x0,this.x);return this.x0=this.x,e}flushSlice(){let e=new i.Slice(this.uint8,this.view,this.x0,this.x);return this.x0=this.x,e}u8(e){this.ensureCapacity(1),this.uint8[this.x++]=e}u16(e){this.ensureCapacity(2),this.view.setUint16(this.x,e),this.x+=2}u32(e){this.ensureCapacity(4),this.view.setUint32(this.x,e),this.x+=4}i32(e){this.ensureCapacity(4),this.view.setInt32(this.x,e),this.x+=4}u64(e){this.ensureCapacity(8),this.view.setBigUint64(this.x,BigInt(e)),this.x+=8}f64(e){this.ensureCapacity(8),this.view.setFloat64(this.x,e),this.x+=8}u8u16(e,t){this.ensureCapacity(3);let s=this.x;this.uint8[s++]=e,this.uint8[s++]=t>>>8,this.uint8[s++]=255&t,this.x=s}u8u32(e,t){this.ensureCapacity(5);let s=this.x;this.uint8[s++]=e,this.view.setUint32(s,t),this.x=s+4}u8u64(e,t){this.ensureCapacity(9);let s=this.x;this.uint8[s++]=e,this.view.setBigUint64(s,BigInt(t)),this.x=s+8}u8f32(e,t){this.ensureCapacity(5);let s=this.x;this.uint8[s++]=e,this.view.setFloat32(s,t),this.x=s+4}u8f64(e,t){this.ensureCapacity(9);let s=this.x;this.uint8[s++]=e,this.view.setFloat64(s,t),this.x=s+8}buf(e,t){this.ensureCapacity(t);let s=this.x;this.uint8.set(e,s),this.x=s+t}utf8(e){let t=4*e.length;if(t<168)return this.utf8Native(e);this.ensureCapacity(t);let s=this.size-this.x;if(n){let t=n.call(this.uint8,e,this.x,s);return this.x+=t,t}if(l){let t=this.uint8,i=t.byteOffset+this.x,o=l(t.buffer).subarray(i,i+s).write(e,0,s,"utf8");return this.x+=o,o}if(t>1024&&d){let t=d.encodeInto(e,this.uint8.subarray(this.x,this.x+s)).written;return this.x+=t,t}return this.utf8Native(e)}utf8Native(e){let t=e.length,s=this.uint8,i=this.x,o=0;for(;o<t;){let r=e.charCodeAt(o++);if((0xffffff80&r)==0){s[i++]=r;continue}if((0xfffff800&r)==0)s[i++]=r>>6&31|192;else{if(r>=55296&&r<=56319&&o<t){let t=e.charCodeAt(o);(64512&t)==56320&&(o++,r=((1023&r)<<10)+(1023&t)+65536)}(0xffff0000&r)==0?s[i++]=r>>12&15|224:(s[i++]=r>>18&7|240,s[i++]=r>>12&63|128),s[i++]=r>>6&63|128}s[i++]=63&r|128}let r=i-this.x;return this.x=i,r}ascii(e){let t=e.length;this.ensureCapacity(t);let s=this.uint8,i=this.x,o=0;for(;o<t;)s[i++]=e.charCodeAt(o++);this.x=i}}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/f16.js"(e,t){t.decodeF16=void 0;let s=Math.pow;t.decodeF16=e=>{let t=(31744&e)>>10,i=1023&e;return(e>>15?-1:1)*(t?31===t?i?0/0:1/0:s(2,t-15)*(1+i/1024):i/1024*6103515625e-14)}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/isFloat32.js"(e,t){t.isFloat32=void 0;let s=new DataView(new ArrayBuffer(4));t.isFloat32=e=>(s.setFloat32(0,e),e===s.getFloat32(0))},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/CachedUtf8Decoder.js"(e,t,s){t.CachedUtf8Decoder=void 0;let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs").__importDefault(s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/v10.js")),o=1+Math.round(0xfffffffe*Math.random());class r{constructor(e,t){this.bytes=e,this.value=t}}t.CachedUtf8Decoder=class{constructor(){this.caches=[];for(let e=0;e<31;e++)this.caches.push([])}get(e,t,s){let i=this.caches[s-1],o=i.length;e:for(let r=0;r<o;r++){let o=i[r],n=o.bytes;for(let i=0;i<s;i++)if(n[i]!==e[t+i])continue e;return o.value}return null}store(e,t){let s=this.caches[e.length-1],i=new r(e,t);s.length>=16?s[o^=o<<13,o^=o>>>17,((o^=o<<5)>>>0)%16+0]=i:s.push(i)}decode(e,t,s){if(!s)return"";let o=this.get(e,t,s);if(null!==o)return o;let r=(0,i.default)(e,t,s),n=Uint8Array.prototype.slice.call(e,t,t+s);return this.store(n,r),r}}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeAscii.js"(e,t){t.decodeAsciiMax15=t.decodeAscii=void 0;let s=String.fromCharCode;t.decodeAscii=(e,t,i)=>{let o=[];for(let s=0;s<i;s++){let s=e[t++];if(128&s)return;o.push(s)}return s.apply(String,o)},t.decodeAsciiMax15=(e,t,i)=>{if(i<4)if(i<2)if(0===i)return"";else{let i=e[t++];if((128&i)>1){t-=1;return}return s(i)}else{let o=e[t++],r=e[t++];if((128&o)>0||(128&r)>0){t-=2;return}if(i<3)return s(o,r);let n=e[t++];if((128&n)>0){t-=3;return}return s(o,r,n)}{let o=e[t++],r=e[t++],n=e[t++],l=e[t++];if((128&o)>0||(128&r)>0||(128&n)>0||(128&l)>0){t-=4;return}if(i<6)if(4===i)return s(o,r,n,l);else{let i=e[t++];if((128&i)>0){t-=5;return}return s(o,r,n,l,i)}if(i<8){let d=e[t++],a=e[t++];if((128&d)>0||(128&a)>0){t-=6;return}if(i<7)return s(o,r,n,l,d,a);let h=e[t++];if((128&h)>0){t-=7;return}return s(o,r,n,l,d,a,h)}{let d=e[t++],a=e[t++],h=e[t++],u=e[t++];if((128&d)>0||(128&a)>0||(128&h)>0||(128&u)>0){t-=8;return}if(i<10)if(8===i)return s(o,r,n,l,d,a,h,u);else{let i=e[t++];if((128&i)>0){t-=9;return}return s(o,r,n,l,d,a,h,u,i)}if(i<12){let c=e[t++],f=e[t++];if((128&c)>0||(128&f)>0){t-=10;return}if(i<11)return s(o,r,n,l,d,a,h,u,c,f);let m=e[t++];if((128&m)>0){t-=11;return}return s(o,r,n,l,d,a,h,u,c,f,m)}{let c=e[t++],f=e[t++],m=e[t++],p=e[t++];if((128&c)>0||(128&f)>0||(128&m)>0||(128&p)>0){t-=12;return}if(i<14)if(12===i)return s(o,r,n,l,d,a,h,u,c,f,m,p);else{let i=e[t++];if((128&i)>0){t-=13;return}return s(o,r,n,l,d,a,h,u,c,f,m,p,i)}{let y=e[t++],b=e[t++];if((128&y)>0||(128&b)>0){t-=14;return}if(i<15)return s(o,r,n,l,d,a,h,u,c,f,m,p,y,b);let _=e[t++];if((128&_)>0){t-=15;return}return s(o,r,n,l,d,a,h,u,c,f,m,p,y,b,_)}}}}}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/index.js"(e,t,s){t.decodeUtf8=void 0,t.decodeUtf8=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs").__importDefault(s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/v16.js")).default},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/v10.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0});let s=String.fromCharCode;t.default=(e,t,i)=>{let o=t,r=o+i,n="";for(;o<r;){let t=e[o++];if((128&t)==0){n+=s(t);continue}let i=63&e[o++];if((224&t)==192){n+=s((31&t)<<6|i);continue}let r=63&e[o++];if((240&t)==224){n+=s((31&t)<<12|i<<6|r);continue}if((248&t)==240){let l=(7&t)<<18|i<<12|r<<6|63&e[o++];l>65535?n+=s((l-=65536)>>>10&1023|55296,l=56320|1023&l):n+=s(l)}else n+=s(t)}return n}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/v16.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"),o=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeAscii.js"),r=i.__importDefault(s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/v18.js")),n="u">typeof Buffer,l=n?Buffer.prototype.utf8Slice:null,d=n?Buffer.from:null,a=l?(e,t,s)=>l.call(e,t,t+s):d?(e,t,s)=>d(e).subarray(t,t+s).toString("utf8"):r.default;t.default=(e,t,s)=>{if(s<16)return(0,o.decodeAsciiMax15)(e,t,s)??(0,r.default)(e,t,s);if(s<32)return(0,o.decodeAscii)(e,t,s)??(0,r.default)(e,t,s);return a(e,t,s)}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/v18.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0});let s=String.fromCharCode;t.default=(e,t,i)=>{let o=t,r=o+i,n=[];for(;o<r;){let t=e[o++];if((128&t)!=0){let s=63&e[o++];if((224&t)==192)t=(31&t)<<6|s;else{let i=63&e[o++];if((240&t)==224)t=(31&t)<<12|s<<6|i;else if((248&t)==240){let r=(7&t)<<18|s<<12|i<<6|63&e[o++];if(r>65535){let e=(r-=65536)>>>10&1023|55296;t=56320|1023&r,n.push(e)}else t=r}}}n.push(t)}return s.apply(String,n)}},"../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/sharedCachedUtf8Decoder.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=new(s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/CachedUtf8Decoder.js")).CachedUtf8Decoder},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/File.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.File=void 0;let{O_APPEND:i}=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js").constants;t.File=class{constructor(e,t,s,o){this.link=e,this.node=t,this.flags=s,this.fd=o,this.position=0,this.flags&i&&(this.position=this.getSize())}getString(e="utf8"){return this.node.getString()}setString(e){this.node.setString(e)}getBuffer(){return this.node.getBuffer()}setBuffer(e){this.node.setBuffer(e)}getSize(){return this.node.getSize()}truncate(e){this.node.truncate(e)}seekTo(e){this.position=e}write(e,t=0,s=e.length,i){"number"!=typeof i&&(i=this.position);let o=this.node.write(e,t,s,i);return this.position=i+o,o}read(e,t=0,s=e.byteLength,i){"number"!=typeof i&&(i=this.position);let o=this.node.read(e,t,s,i);return this.position=i+o,o}chmod(e){this.node.chmod(e)}chown(e,t){this.node.chown(e,t)}}},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Link.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),o=s("../../node_modules/.pnpm/thingies@2.6.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js"),{S_IFREG:r}=i.constants;t.Link=class e{get steps(){return this._steps}set steps(e){for(let[t,s]of(this._steps=e,this.children.entries()))"."!==t&&".."!==t&&s?.syncSteps()}constructor(e,t,s){this.changes=new o.FanOut,this.children=new Map,this._steps=[],this.ino=0,this.length=0,this.vol=e,this.parent=t,this.name=s,this.syncSteps()}setNode(e){this.node=e,this.ino=e.ino}getNode(){return this.node}createChild(t,s=this.vol.createNode(438|r)){let i=new e(this.vol,this,t);return i.setNode(s),s.isDirectory()&&(i.children.set(".",i),i.getNode().nlink++),this.setChild(t,i),i}setChild(t,s=new e(this.vol,this,t)){return this.children.set(t,s),s.parent=this,this.length++,s.getNode().isDirectory()&&(s.children.set("..",this),this.getNode().nlink++),this.getNode().mtime=new Date,this.changes.emit(["child:add",s,this]),s}deleteChild(e){e.getNode().isDirectory()&&(e.children.delete(".."),this.getNode().nlink--),this.children.delete(e.getName()),this.length--,this.getNode().mtime=new Date,this.changes.emit(["child:del",e,this])}getChild(e){return this.getNode().atime=new Date,this.children.get(e)}getPath(){return this.steps.join("/")}getParentPath(){return this.steps.slice(0,-1).join("/")||"/"}getName(){return this.steps[this.steps.length-1]}toJSON(){return{steps:this.steps,ino:this.ino,children:Array.from(this.children.keys())}}syncSteps(){this.steps=this.parent?this.parent.steps.concat([this.name]):[this.name]}}},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Node.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Node=void 0;let i=s("../../node_modules/.pnpm/thingies@2.6.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),{S_IFMT:n,S_IFDIR:l,S_IFREG:d,S_IFLNK:a,S_IFCHR:h}=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js").constants,u=()=>o.default.getuid?.()??0,c=()=>o.default.getgid?.()??0,f=(0,r.bufferAllocUnsafe)(0);t.Node=class{constructor(e,t=438,s=u(),o=c()){this.changes=new i.FanOut,this._uid=u(),this._gid=c(),this._atime=new Date,this._mtime=new Date,this._ctime=new Date,this._btime=new Date,this.buf=f,this.capacity=0,this.size=0,this.rdev=0,this._nlink=1,this.mode=t,this.ino=e,this._uid=s,this._gid=o}set ctime(e){this._ctime=e}get ctime(){return this._ctime}set btime(e){this._btime=e}get btime(){return this._btime}set uid(e){this._uid=e,this.ctime=new Date}get uid(){return this._uid}set gid(e){this._gid=e,this.ctime=new Date}get gid(){return this._gid}set atime(e){this._atime=e}get atime(){return this._atime}set mtime(e){this._mtime=e,this.ctime=new Date}get mtime(){return this._mtime}get perm(){return this.mode&~n}set perm(e){this.mode=this.mode&n|e&~n,this.ctime=new Date}set nlink(e){this._nlink=e,this.ctime=new Date}get nlink(){return this._nlink}getString(e="utf8"){return this.atime=new Date,this.getBuffer().toString(e)}setString(e){this._setBuf((0,r.bufferFrom)(e,"utf8"))}getBuffer(){return this.atime=new Date,this.buf||(this.buf=(0,r.bufferAllocUnsafe)(0)),(0,r.bufferFrom)(this.buf.subarray(0,this.size))}setBuffer(e){let t=(0,r.bufferFrom)(e);this._setBuf(t)}_setBuf(e){let t=e.length;this.buf=e,this.capacity=t,this.size=t,this.touch()}getSize(){return this.size}setModeProperty(e){this.mode=e}isFile(){return(this.mode&n)===d}isDirectory(){return(this.mode&n)===l}isSymlink(){return(this.mode&n)===a}isCharacterDevice(){return(this.mode&n)===h}makeSymlink(e){this.mode=438|a,this.symlink=e}write(e,t=0,s=e.length,i=0){let o=e.length;if(t+s>o&&(s=o-t),s<=0)return 0;let n=i+s;if(n>this.capacity){let e=Math.max(2*this.capacity,64);for(;e<n;)e*=2;let t=(0,r.bufferAllocUnsafe)(e);this.size>0&&this.buf.copy(t,0,0,this.size),this.buf=t,this.capacity=e}return i>this.size&&this.buf.fill(0,this.size,i),e.copy(this.buf,i,t,t+s),n>this.size&&(this.size=n),this.touch(),s}read(e,t=0,s=e.byteLength,i=0){if(this.atime=new Date,i>=this.size)return 0;let o=s;if(o>e.byteLength&&(o=e.byteLength),o+i>this.size&&(o=this.size-i),o<=0)return 0;let n=e instanceof r.Buffer?e:r.Buffer.from(e.buffer,e.byteOffset,e.byteLength);return this.buf.copy(n,t,i,i+o),o}truncate(e=0){if(e<=0){this.buf=f,this.capacity=0,this.size=0,this.touch();return}if(e<=this.size)this.size=e;else{if(e>this.capacity){let t=Math.max(2*this.capacity,64);for(;t<e;)t*=2;let s=(0,r.bufferAllocUnsafe)(t);this.size>0&&this.buf.copy(s,0,0,this.size),s.fill(0,this.size,e),this.buf=s,this.capacity=t}else this.buf.fill(0,this.size,e);this.size=e}this.touch()}chmod(e){this.mode=this.mode&n|e&~n,this.touch()}chown(e,t){this.uid=e,this.gid=t,this.touch()}touch(){this.mtime=new Date,this.changes.emit(["modify"])}canRead(e=u(),t=c()){return!!(4&this.perm)||t===this.gid&&!!(32&this.perm)||e===this.uid&&!!(256&this.perm)}canWrite(e=u(),t=c()){return!!(2&this.perm)||t===this.gid&&!!(16&this.perm)||e===this.uid&&!!(128&this.perm)}canExecute(e=u(),t=c()){return!!(1&this.perm)||t===this.gid&&!!(8&this.perm)||e===this.uid&&!!(64&this.perm)}del(){this.changes.emit(["delete"])}toJSON(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),btime:this.btime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}}}},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Superblock.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Superblock=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Node.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Link.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/File.js"),l=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),d=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js"),a=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),h=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),u=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js"),c=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/json.js"),f=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/result.js"),m=s("../../node_modules/.pnpm/thingies@2.6.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js"),p=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/watch/FsEvent.js"),y=i.posix?i.posix.sep:i.sep,b=i.posix?i.posix.relative:i.relative,_=i.posix?i.posix.join:i.join,{O_RDONLY:j,O_WRONLY:w,O_RDWR:g,O_CREAT:S,O_EXCL:E,O_TRUNC:v,O_APPEND:O,O_DIRECTORY:k}=a.constants;class T{static fromJSON(e,t,s){let i=new T(s);return i.fromJSON(e,t),i}static fromNestedJSON(e,t,s){let i=new T(s);return i.fromNestedJSON(e,t),i}constructor(e={}){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.maxFiles=1e4,this.openFiles=0,this.changes=new m.FanOut,this.open=(e,t,s,i=!0)=>{let o=this.openFile(e,t,s,i);if(!o)throw(0,u.createError)("ENOENT","open",e);return o.fd},this.writeFile=(e,t,s,i)=>{let o,r="number"==typeof e;o=r?e:this.open((0,u.pathToFilename)(e),s,i);let n=0,l=t.length,d=s&O?void 0:0;try{for(;l>0;){let e=this.write(o,t,n,l,d);n+=e,l-=e,void 0!==d&&(d+=e)}}finally{r||this.close(o)}},this.read=(e,t,s,i,o)=>{if(t.byteLength<i)throw(0,u.createError)("ERR_OUT_OF_RANGE","read",void 0,void 0,RangeError);let r=this.getFileByFdOrThrow(e);if(r.node.isSymlink())throw(0,u.createError)("EPERM","read",r.link.getPath());return r.read(t,Number(s),Number(i),-1===o||"number"!=typeof o?void 0:o)},this.readv=(e,t,s)=>{let i=this.getFileByFdOrThrow(e),o=s??void 0;-1===o&&(o=void 0);let r=0;for(let e of t){let t=i.read(e,0,e.byteLength,o);if(o=void 0,r+=t,t<e.byteLength)break}return r},this.link=(e,t)=>{let s,o;try{s=this.getLinkOrThrow(e,"link")}catch(s){throw s.code&&(s=(0,u.createError)(s.code,"link",e,t)),s}let r=(0,i.dirname)(t);try{o=this.getLinkOrThrow(r,"link")}catch(s){throw s.code&&(s=(0,u.createError)(s.code,"link",e,t)),s}let n=(0,i.basename)(t);if(o.getChild(n))throw(0,u.createError)("EEXIST","link",e,t);let l=s.getNode();l.nlink++;let d=o.createChild(n,l);this.emit(new p.FsEvent(0,d.steps,l,d))},this.unlink=e=>{let t=this.getLinkOrThrow(e,"unlink");if(t.length)throw Error("Dir not empty...");this._emitDeleteRecursive(t),this.deleteLink(t);let s=t.getNode();s.nlink--,s.nlink<=0&&this.deleteNode(s)},this.symlink=(e,t)=>{let s,i=(0,u.filenameToSteps)(t);try{s=this.getLinkParentAsDirOrThrow(i)}catch(s){throw s.code&&(s=(0,u.createError)(s.code,"symlink",e,t)),s}let o=i[i.length-1];if(s.getChild(o))throw(0,u.createError)("EEXIST","symlink",e,t);let r=s.getNode();if(!r.canExecute()||!r.canWrite())throw(0,u.createError)("EACCES","symlink",e,t);let n=s.createChild(o);return n.getNode().makeSymlink(e),this.emit(new p.FsEvent(0,n.steps,n.getNode(),n)),n},this.rename=(e,t)=>{let s,o;try{s=this.getResolvedLinkOrThrow(e)}catch(s){throw s.code&&(s=(0,u.createError)(s.code,"rename",e,t)),s}try{o=this.getLinkParentAsDirOrThrow(t)}catch(s){throw s.code&&(s=(0,u.createError)(s.code,"rename",e,t)),s}let r=s.parent;if(!r)throw(0,u.createError)("EINVAL","rename",e,t);let n=r.getNode(),l=o.getNode();if(!n.canExecute()||!n.canWrite()||!l.canExecute()||!l.canWrite())throw(0,u.createError)("EACCES","rename",e,t);r.deleteChild(s);let d=(0,i.basename)(t),a=s.steps;s.name=d,s.steps=[...o.steps,d],o.setChild(s.getName(),s),this.emit(new p.FsEvent(4,s.steps,s.getNode(),s,a))},this.mkdir=(e,t)=>{let s=(0,u.filenameToSteps)(e);if(!s.length)throw(0,u.createError)("EEXIST","mkdir",e);let i=this.getLinkParentAsDirOrThrow(e,"mkdir"),o=s[s.length-1];if(i.getChild(o))throw(0,u.createError)("EEXIST","mkdir",e);let r=i.getNode();if(!r.canWrite()||!r.canExecute())throw(0,u.createError)("EACCES","mkdir",e);let n=i.createChild(o,this.createNode(a.constants.S_IFDIR|t));this.emit(new p.FsEvent(0,n.steps,n.getNode(),n))},this.mkdirp=(e,t)=>{let s=!1,o=(0,u.filenameToSteps)(e),r=null,n=o.length;for(n=o.length;n>=0&&!(r=this.getResolvedLink(o.slice(0,n)));n--);for(r||(r=this.root,n=0),r=this.getResolvedLinkOrThrow(i.sep+o.slice(0,n).join(i.sep),"mkdir");n<o.length;n++){let i=r.getNode();if(i.isDirectory()){if(!i.canExecute()||!i.canWrite())throw(0,u.createError)("EACCES","mkdir",e)}else throw(0,u.createError)("ENOTDIR","mkdir",e);s=!0,r=r.createChild(o[n],this.createNode(a.constants.S_IFDIR|t)),this.emit(new p.FsEvent(0,r.steps,r.getNode(),r))}return s?e:void 0},this.rmdir=(e,t=!1)=>{let s=this.getLinkAsDirOrThrow(e,"rmdir");if(s.length&&!t)throw(0,u.createError)("ENOTEMPTY","rmdir",e);this._emitDeleteRecursive(s),this.deleteLink(s)},this.rm=(e,t=!1,s=!1)=>{let i;try{i=this.getResolvedLinkOrThrow(e,"stat")}catch(e){if("ENOENT"===e.code&&t)return;throw e}if(i.getNode().isDirectory()&&!s)throw(0,u.createError)("ERR_FS_EISDIR","rm",e);if(!i.parent?.getNode().canWrite())throw(0,u.createError)("EACCES","rm",e);this._emitDeleteRecursive(i),this.deleteLink(i)},this.close=e=>{(0,u.validateFd)(e);let t=this.getFileByFdOrThrow(e,"close");this.closeFile(t)},this.ftruncate=(e,t)=>{let s=this.getFileByFdOrThrow(e,"ftruncate");s.truncate(t),this.emit(new p.FsEvent(2,s.link.steps,s.node,s.link))},this.fchmod=(e,t)=>{let s=this.getFileByFdOrThrow(e,"fchmod");s.chmod(t),this.emit(new p.FsEvent(3,s.link.steps,s.node,s.link))},this.chmod=(e,t)=>{let s=this.getResolvedLinkOrThrow(e,"chmod");s.getNode().chmod(t),this.emit(new p.FsEvent(3,s.steps,s.getNode(),s))},this.lchmod=(e,t)=>{let s=this.getLinkOrThrow(e,"lchmod");s.getNode().chmod(t),this.emit(new p.FsEvent(3,s.steps,s.getNode(),s))},this.fchown=(e,t,s)=>{let i=this.getFileByFdOrThrow(e,"fchown");i.chown(t,s),this.emit(new p.FsEvent(3,i.link.steps,i.node,i.link))},this.chown=(e,t,s)=>{let i=this.getResolvedLinkOrThrow(e,"chown");i.getNode().chown(t,s),this.emit(new p.FsEvent(3,i.steps,i.getNode(),i))},this.lchown=(e,t,s)=>{let i=this.getLinkOrThrow(e,"lchown");i.getNode().chown(t,s),this.emit(new p.FsEvent(3,i.steps,i.getNode(),i))},this.futimes=(e,t,s)=>{let i=this.getFileByFdOrThrow(e,"futimes"),o=i.node;o.atime=new Date(1e3*t),o.mtime=new Date(1e3*s),this.emit(new p.FsEvent(3,i.link.steps,i.node,i.link))},this.utimes=(e,t,s,i=!0)=>{let o=i?this.getResolvedLinkOrThrow(e,"utimes"):this.getLinkOrThrow(e,"lutimes"),r=o.getNode();r.atime=new Date(1e3*t),r.mtime=new Date(1e3*s),this.emit(new p.FsEvent(3,o.steps,r,o))},this.process=e.process??d.default;let t=this.createLink();t.setNode(this.createNode(511|a.constants.S_IFDIR)),t.setChild(".",t),t.getNode().nlink++,t.setChild("..",t),t.getNode().nlink++,this.root=t}emit(e){this.changes.emit(e)}createLink(e,t,s=!1,i){if(!e)return new r.Link(this,void 0,"");if(!t)throw Error("createLink: name cannot be empty");let o=i&&i&a.constants.S_IFMT?i&a.constants.S_IFMT:s?a.constants.S_IFDIR:a.constants.S_IFREG,n=(i??(s?511:438))&~a.constants.S_IFMT|o;return e.createChild(t,this.createNode(n))}deleteLink(e){let t=e.parent;return!!t&&(t.deleteChild(e),!0)}_emitDeleteRecursive(e){if(e.getNode().isDirectory())for(let[t,s]of e.children.entries())s&&"."!==t&&".."!==t&&this._emitDeleteRecursive(s);this.emit(new p.FsEvent(1,e.steps,e.getNode(),e))}newInoNumber(){let e=this.releasedInos.pop();return e||(this.ino=(this.ino+1)%0xffffffff,this.ino)}newFdNumber(){let e=this.releasedFds.pop();return"number"==typeof e?e:T.fd--}createNode(e){let t=this.process.getuid?.()??0,s=this.process.getgid?.()??0,i=new o.Node(this.newInoNumber(),e,t,s);return this.inodes[i.ino]=i,i}deleteNode(e){e.del(),delete this.inodes[e.ino],this.releasedInos.push(e.ino)}walk(e,t=!1,s=!1,o=!1,n){let l,d;e instanceof r.Link?d=y+(l=e.steps).join(y):"string"==typeof e?(l=(0,u.filenameToSteps)(e),d=e):d=y+(l=e).join(y);let a=this.root,h=0,c=this.process.getuid?.()??0,m=this.process.getgid?.()??0;for(;h<l.length;){let e=a.getNode();if(e.isDirectory()){if(o&&!e.canExecute(c,m))return(0,f.Err)((0,u.createStatError)("EACCES",n,d))}else if(h<l.length-1)return(0,f.Err)((0,u.createStatError)("ENOTDIR",n,d));if(!(a=a.getChild(l[h])??null))if(s)return(0,f.Err)((0,u.createStatError)("ENOENT",n,d));else return(0,f.Ok)(null);if((e=a?.getNode()).isSymlink()&&(t||h<l.length-1)){let t=(0,i.isAbsolute)(e.symlink)?e.symlink:_((0,i.dirname)(a.getPath()),e.symlink);l=(0,u.filenameToSteps)(t).concat(l.slice(h+1)),a=this.root,h=0;continue}if(s&&!e.isDirectory()&&h<l.length-1){let e="win32"===this.process.platform?"ENOENT":"ENOTDIR";return(0,f.Err)((0,u.createStatError)(e,n,d))}h++}return(0,f.Ok)(a)}getLink(e){let t=this.walk(e,!1,!1,!1);if(t.ok)return t.value;throw t.err.toError()}getLinkOrThrow(e,t){let s=this.walk(e,!1,!0,!0,t);if(s.ok)return s.value;throw s.err.toError()}getResolvedLink(e){let t=this.walk(e,!0,!1,!1);if(t.ok)return t.value;throw t.err.toError()}getResolvedLinkOrThrow(e,t){let s=this.walk(e,!0,!0,!0,t);if(s.ok)return s.value;throw s.err.toError()}getResolvedLinkResult(e,t){let s=this.walk(e,!0,!0,!0,t);return s.ok?(0,f.Ok)(s.value):s}resolveSymlinks(e){return this.getResolvedLink(e.steps.slice(1))}getLinkAsDirOrThrow(e,t){let s=this.getLinkOrThrow(e,t);if(!s.getNode().isDirectory())throw(0,u.createError)("ENOTDIR",t,e);return s}getLinkParent(e){return this.getLink(e.slice(0,-1))}getLinkParentAsDirOrThrow(e,t){let s=y+(e instanceof Array?e:(0,u.filenameToSteps)(e)).slice(0,-1).join(y),i=this.getLinkOrThrow(s,t);if(!i.getNode().isDirectory())throw(0,u.createError)("ENOTDIR",t,s);return i}getFileByFd(e){return this.fds[String(e)]}getFileByFdOrThrow(e,t){if(!(0,u.isFd)(e))throw TypeError(h.ERRSTR.FD);let s=this.getFileByFd(e);if(!s)throw(0,u.createError)("EBADF",t);return s}_toJSON(e=this.root,t={},s,i){let o=!0,r=e.children;for(let n of(e.getNode().isFile()&&(r=new Map([[e.getName(),e.parent.getChild(e.getName())]]),e=e.parent),r.keys())){if("."===n||".."===n)continue;o=!1;let r=e.getChild(n);if(!r)throw Error("_toJSON: unexpected undefined");let l=r.getNode();if(l.isFile()){let e=r.getPath();s&&(e=b(s,e)),t[e]=i?l.getBuffer():l.getString()}else l.isDirectory()&&this._toJSON(r,t,s,i)}let n=e.getPath();return s&&(n=b(s,n)),n&&o&&(t[n]=null),t}toJSON(e,t={},s=!1,i=!1){let o=[];if(e)for(let t of(Array.isArray(e)||(e=[e]),e)){let e=(0,u.pathToFilename)(t),s=this.getResolvedLink(e);s&&o.push(s)}else o.push(this.root);if(!o.length)return t;for(let e of o)this._toJSON(e,t,s?e.getPath():"",i);return t}fromJSON(e,t=this.process.cwd()){for(let s in e){let o=e[s];if(s=(0,u.resolve)(s,t),"string"==typeof o||o instanceof l.Buffer){let e=(0,i.dirname)(s);this.mkdirp(e,511);let t=(0,u.dataToBuffer)(o);this.writeFile(s,t,h.FLAGS.w,438)}else this.mkdirp(s,511)}}fromNestedJSON(e,t){this.fromJSON((0,c.flattenJSON)(e),t)}reset(){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.openFiles=0,this.root=this.createLink(),this.root.setNode(this.createNode(511|a.constants.S_IFDIR))}mountSync(e,t){this.fromJSON(t,e)}openLink(e,t,s=!0){if(this.openFiles>=this.maxFiles)throw(0,u.createError)("EMFILE","open",e.getPath());let i=e;s&&(i=this.getResolvedLinkOrThrow(e.getPath(),"open"));let o=i.getNode();if(o.isDirectory()){if((t&(j|g|w))!==j)throw(0,u.createError)("EISDIR","open",e.getPath())}else if(t&k)throw(0,u.createError)("ENOTDIR","open",e.getPath());if((t&(j|g|w))!==w&&!o.canRead()||t&(w|g)&&!o.canWrite())throw(0,u.createError)("EACCES","open",e.getPath());let r=new n.File(e,o,t,this.newFdNumber());if(this.fds[r.fd]=r,this.openFiles++,t&v){let e=r.node.getSize()>0;r.truncate(),e&&this.emit(new p.FsEvent(2,r.link.steps,r.node,r.link))}return r}openFile(e,t,s,o=!0){let r,n=(0,u.filenameToSteps)(e);try{if((r=o?this.getResolvedLinkOrThrow(e,"open"):this.getLinkOrThrow(e,"open"))&&t&S&&t&E)throw(0,u.createError)("EEXIST","open",e)}catch(o){if("ENOENT"===o.code&&t&S){let t=(0,i.dirname)(e),o=this.getResolvedLinkOrThrow(t),l=o.getNode();if(!l.isDirectory())throw(0,u.createError)("ENOTDIR","open",e);if(!l.canExecute()||!l.canWrite())throw(0,u.createError)("EACCES","open",e);s??(s=438),r=this.createLink(o,n[n.length-1],!1,s),this.emit(new p.FsEvent(0,r.steps,r.getNode(),r))}else throw o}if(r)return this.openLink(r,t,o);throw(0,u.createError)("ENOENT","open",e)}closeFile(e){this.fds[e.fd]&&(this.openFiles--,delete this.fds[e.fd],this.releasedFds.push(e.fd))}write(e,t,s,i,o){let r=this.getFileByFdOrThrow(e,"write");if(r.node.isSymlink())throw(0,u.createError)("EBADF","write",r.link.getPath());let n=r.write(t,s,i,-1===o||"number"!=typeof o?void 0:o);return n>0&&this.emit(new p.FsEvent(2,r.link.steps,r.node,r.link)),n}}t.Superblock=T,T.fd=0x7fffffff},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/constants.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0})},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/encoding.js"(e,t,s){t.ENCODING_UTF8=void 0,s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js"),t.ENCODING_UTF8="utf8"},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/index.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.resolve=t.pathToFilename=t.createStatError=t.createError=t.validateFd=t.isFd=t.filenameToSteps=t.dataToBuffer=t.Superblock=t.File=t.Link=t.Node=void 0;let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/types.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/json.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/constants.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/result.js"),t);var o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Node.js");Object.defineProperty(t,"Node",{enumerable:!0,get:function(){return o.Node}});var r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Link.js");Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return r.Link}});var n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/File.js");Object.defineProperty(t,"File",{enumerable:!0,get:function(){return n.File}});var l=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/Superblock.js");Object.defineProperty(t,"Superblock",{enumerable:!0,get:function(){return l.Superblock}}),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/watch/FsEvent.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/watch/CoreWatcher.js"),t);var d=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js");Object.defineProperty(t,"dataToBuffer",{enumerable:!0,get:function(){return d.dataToBuffer}}),Object.defineProperty(t,"filenameToSteps",{enumerable:!0,get:function(){return d.filenameToSteps}}),Object.defineProperty(t,"isFd",{enumerable:!0,get:function(){return d.isFd}}),Object.defineProperty(t,"validateFd",{enumerable:!0,get:function(){return d.validateFd}}),Object.defineProperty(t,"createError",{enumerable:!0,get:function(){return d.createError}}),Object.defineProperty(t,"createStatError",{enumerable:!0,get:function(){return d.createStatError}}),Object.defineProperty(t,"pathToFilename",{enumerable:!0,get:function(){return d.pathToFilename}}),Object.defineProperty(t,"resolve",{enumerable:!0,get:function(){return d.resolve}})},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/json.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.flattenJSON=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"),r=o.posix?o.posix.join:o.join;t.flattenJSON=e=>{let t={};return!function e(s,o){for(let n in o){let l=o[n],d=r(s,n);"string"==typeof l||l instanceof i.Buffer?t[d]=l:"object"!=typeof l||null===l||l instanceof i.Buffer||!(Object.keys(l).length>0)?t[d]=null:e(d,l)}}("",e),t}},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js"(e,t,s){let i;(i=(()=>{if("u">typeof process)return process;try{return s("process")}catch{return}})()||{}).cwd||(i.cwd=()=>"/"),i.emitWarning||(i.emitWarning=(e,t)=>{console.warn(`${t}${t?": ":""}${e}`)}),i.env||(i.env={}),t.default=i},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/result.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Ok=function(e){return{ok:!0,value:e}},t.Err=function(e){return{ok:!1,err:e}}},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/types.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0})},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.filenameToSteps=t.resolve=t.unixify=t.isWin=void 0,t.isFd=f,t.validateFd=function(e){if(!f(e))throw TypeError(d.ERRSTR.FD)},t.dataToBuffer=function(e,t=l.ENCODING_UTF8){return o.Buffer.isBuffer(e)?e:e instanceof Uint8Array?(0,o.bufferFrom)(e):"buffer"===t?(0,o.bufferFrom)(String(e),"utf8"):(0,o.bufferFrom)(String(e),t)},t.nullCheck=m,t.pathToFilename=function(e){if(e instanceof Uint8Array&&(e=(0,o.bufferFrom)(e)),"string"!=typeof e&&!o.Buffer.isBuffer(e)){try{if(!(e instanceof s("url?5f07").URL))throw TypeError(d.ERRSTR.PATH_STR)}catch(e){throw TypeError(d.ERRSTR.PATH_STR)}e=function(e){if(""!==e.hostname)throw new r.TypeError("ERR_INVALID_FILE_URL_HOST",n.default.platform);let s=e.pathname;for(let e=0;e<s.length;e++)if("%"===s[e]){let t=32|s.codePointAt(e+2);if("2"===s[e+1]&&102===t)throw new r.TypeError("ERR_INVALID_FILE_URL_PATH","must not include encoded / characters")}let i=decodeURIComponent(s);return t.isWin?i.replace(/^\/([a-zA-Z]:)/,"$1"):i}(e)}let i=String(e);return m(i),i},t.createError=function(e,t="",s="",i="",o=Error){let r=new o(p(e,t,s,i));return r.code=e,s&&(r.path=s),r},t.createStatError=function(e,t="",s="",i=""){return{code:e,message:p(e,t,s,i),path:s,toError(){let e=Error(this.message);return e.code=this.code,this.path&&(e.path=this.path),e}}};let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/process.js"),l=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/encoding.js"),d=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");t.isWin="win32"===n.default.platform;let a=i.resolve,h=i.posix?i.posix.sep:i.sep,u=(e,s)=>{let i=e[s];return s>0&&("/"===i||t.isWin&&"\\"===i)};t.unixify=(e,s=!0)=>t.isWin?(e=((e,t)=>{if("string"!=typeof e)throw TypeError("expected a string");return e=e.replace(/[\\\/]+/g,"/"),!1!==t&&(e=(e=>{let t=e.length-1;if(t<2)return e;for(;u(e,t);)t--;return e.substr(0,t+1)})(e)),e})(e,s)).replace(/^([a-zA-Z]+:|\.\/)/,""):e;let c=(e,t=n.default.cwd())=>a(t,e);if(t.resolve=c,t.isWin){let e=c;t.resolve=c=(s,i)=>(0,t.unixify)(e(s,i))}function f(e){return e>>>0===e}function m(e,t){if(-1!==(""+e).indexOf("\0")){let e=Error("Path must be a string without null bytes");if(e.code="ENOENT","function"!=typeof t)throw e;return Promise.resolve().then(()=>t(e)),!1}return!0}function p(e,t="",s="",i=""){let o="";switch(s&&(o=` '${s}'`),i&&(o+=` -> '${i}'`),e){case"ENOENT":return`ENOENT: no such file or directory, ${t}${o}`;case"EBADF":return`EBADF: bad file descriptor, ${t}${o}`;case"EINVAL":return`EINVAL: invalid argument, ${t}${o}`;case"EPERM":return`EPERM: operation not permitted, ${t}${o}`;case"EPROTO":return`EPROTO: protocol error, ${t}${o}`;case"EEXIST":return`EEXIST: file already exists, ${t}${o}`;case"ENOTDIR":return`ENOTDIR: not a directory, ${t}${o}`;case"EISDIR":return`EISDIR: illegal operation on a directory, ${t}${o}`;case"EACCES":return`EACCES: permission denied, ${t}${o}`;case"ENOTEMPTY":return`ENOTEMPTY: directory not empty, ${t}${o}`;case"EMFILE":return`EMFILE: too many open files, ${t}${o}`;case"ENOSYS":return`ENOSYS: function not implemented, ${t}${o}`;case"ERR_FS_EISDIR":return`[ERR_FS_EISDIR]: Path is a directory: ${t} returned EISDIR (is a directory) ${s}`;case"ERR_OUT_OF_RANGE":return`[ERR_OUT_OF_RANGE]: value out of range, ${t}${o}`;default:return`${e}: error occurred, ${t}${o}`}}t.filenameToSteps=(e,t)=>{let s=c(e,t).substring(1);return s?s.split(h):[]}},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/watch/CoreWatcher.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.CoreWatcher=t.CoreWatchEvent=void 0;let i=s("../../node_modules/.pnpm/thingies@2.6.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js");class o{constructor(e,t,s,i,o){this.type=e,this.steps=t,this.node=s,this.link=i,this.oldSteps=o}}t.CoreWatchEvent=o,t.CoreWatcher=class{constructor(e,t,s={}){this.changes=new i.FanOut,this.link=s.follow??!0?e.getResolvedLinkOrThrow(t,"watch"):e.getLinkOrThrow(t,"watch"),this.node=this.link.getNode(),this.recursive=!!s.recursive,this.unsub=e.changes.listen(e=>this.onEvent(e))}get closed(){return!this.unsub}onEvent(e){let t=this.link.steps.length;if(e.link===this.link||e.node===this.node&&(2===e.type||3===e.type)){this.changes.emit(new o(e.type,[],e.node,this.link)),1===e.type&&this.close();return}if(4===e.type){let s=e.oldSteps&&this.inScope(e.oldSteps)?e.oldSteps.slice(t):void 0,i=this.inScope(e.steps)?e.steps.slice(t):void 0;s&&i?this.changes.emit(new o(4,i,e.node,e.link,s)):s?this.changes.emit(new o(1,s,e.node,e.link)):i&&this.changes.emit(new o(0,i,e.node,e.link));return}this.inScope(e.steps)&&this.changes.emit(new o(e.type,e.steps.slice(t),e.node,e.link))}inScope(e){let t=this.link.steps;if(e.length<=t.length||!this.recursive&&e.length!==t.length+1)return!1;for(let s=0;s<t.length;s++)if(e[s]!==t[s])return!1;return!0}close(){this.unsub?.(),this.unsub=void 0}}},"../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/watch/FsEvent.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FsEvent=void 0,t.FsEvent=class{constructor(e,t,s,i,o){this.type=e,this.steps=t,this.node=s,this.link=i,this.oldSteps=o}}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/buffer.js"(e,t,s){t.Buffer=void 0;var i=s("node:buffer?4a79");Object.defineProperty(t,"Buffer",{enumerable:!0,get:function(){return i.Buffer}})},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/events.js"(e,t,s){t.EventEmitter=void 0;var i=s("events");Object.defineProperty(t,"EventEmitter",{enumerable:!0,get:function(){return i.EventEmitter}})},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"(e,t,s){t.bufferFrom=t.bufferAllocUnsafe=t.Buffer=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/buffer.js");function o(e,...t){return new i.Buffer(e,...t)}Object.defineProperty(t,"Buffer",{enumerable:!0,get:function(){return i.Buffer}}),t.bufferAllocUnsafe=i.Buffer.allocUnsafe||o,t.bufferFrom=i.Buffer.from||o},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js"(e,t,s){t.TypeError=t.Error=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/util.js"),o="u"<typeof Symbol?"_kCode":Symbol("code"),r={};function n(e){return class extends e{constructor(e,...s){super(function(e,s){let o;if("string"!=typeof e)throw new t.Error("Error message key must be a string");let n=r[e];if(!n)throw new t.Error(`An invalid error message key was used: ${e}.`);if("function"==typeof n)o=n;else{if(o=i.format,void 0===s||0===s.length)return n;s.unshift(n)}return String(o.apply(null,s))}(e,s)),this.code=e,this[o]=e,this.name=`${super.name} [${this[o]}]`}}}let l="u">typeof globalThis?globalThis:global;function d(e,t){r[e]="function"==typeof t?t:String(t)}l.Error,t.Error=n(l.Error),t.TypeError=n(l.TypeError),n(l.RangeError),d("ERR_DIR_CLOSED","Directory handle was closed"),d("ERR_DIR_CONCURRENT_OPERATION","Cannot do synchronous work on directory handle with concurrent asynchronous operations"),d("ERR_INVALID_FILE_URL_HOST",'File URL host must be "localhost" or empty on %s'),d("ERR_INVALID_FILE_URL_PATH","File URL path %s"),d("ERR_INVALID_OPT_VALUE",(e,t)=>`The value "${String(t)}" is invalid for option "${e}"`),d("ERR_INVALID_OPT_VALUE_ENCODING",e=>`The value "${String(e)}" is invalid for option "encoding"`),d("ERR_INVALID_ARG_VALUE","Unable to open file as blob")},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"(e,t,s){t.basename=t.isAbsolute=t.normalize=t.dirname=t.relative=t.join=t.posix=t.sep=t.resolve=void 0;var i=s("node:path?815c");Object.defineProperty(t,"resolve",{enumerable:!0,get:function(){return i.resolve}}),Object.defineProperty(t,"sep",{enumerable:!0,get:function(){return i.sep}}),Object.defineProperty(t,"posix",{enumerable:!0,get:function(){return i.posix}}),Object.defineProperty(t,"join",{enumerable:!0,get:function(){return i.join}}),Object.defineProperty(t,"relative",{enumerable:!0,get:function(){return i.relative}}),Object.defineProperty(t,"dirname",{enumerable:!0,get:function(){return i.dirname}}),Object.defineProperty(t,"normalize",{enumerable:!0,get:function(){return i.normalize}}),Object.defineProperty(t,"isAbsolute",{enumerable:!0,get:function(){return i.isAbsolute}}),Object.defineProperty(t,"basename",{enumerable:!0,get:function(){return i.basename}})},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/stream.js"(e,t,s){t.Writable=t.Readable=void 0;var i=s("node:stream?be04");Object.defineProperty(t,"Readable",{enumerable:!0,get:function(){return i.Readable}}),Object.defineProperty(t,"Writable",{enumerable:!0,get:function(){return i.Writable}})},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/util.js"(e,t){t.inherits=function(e,t){if(null==e)throw TypeError("The constructor to inherit from is not defined");if(null==t)throw TypeError("The super constructor to inherit from is not defined");e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.inspect=function e(t){if(null===t)return"null";if(void 0===t)return"undefined";if("string"==typeof t)return`'${t}'`;if("number"==typeof t||"boolean"==typeof t)return String(t);if(Array.isArray(t)){let s=t.map(t=>e(t)).join(", ");return`[ ${s} ]`}if("object"==typeof t){let s=Object.entries(t).map(([t,s])=>`${t}: ${e(s)}`).join(", ");return`{ ${s} }`}return String(t)},t.format=function(e,...t){if(0===t.length)return e;let s=e,i=0;for(s=s.replace(/%[sdj%]/g,e=>{if(i>=t.length)return e;let s=t[i++];switch(e){case"%s":return String(s);case"%d":return Number(s).toString();case"%j":try{return JSON.stringify(s)}catch{return"[Circular]"}case"%%":return"%";default:return e}});i<t.length;)s+=" "+String(t[i++]);return s}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/constants.js"(e,t){var s,i;Object.defineProperty(t,"__esModule",{value:!0}),t.FLAGS=t.ERRSTR=t.constants=t.SEP=void 0,t.SEP="/",t.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_SYMLINK:2097152,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4},t.ERRSTR={PATH_STR:"path must be a string, Buffer, or Uint8Array",FD:"fd must be a file descriptor",MODE_INT:"mode must be an int",CB:"callback must be a function",UID:"uid must be an unsigned int",GID:"gid must be an unsigned int",LEN:"len must be an integer",ATIME:"atime must be an integer",MTIME:"mtime must be an integer",PREFIX:"filename prefix is required",BUFFER:"buffer must be an instance of Buffer or StaticBuffer",OFFSET:"offset must be an integer",LENGTH:"length must be an integer",POSITION:"position must be an integer"};let{O_RDONLY:o,O_WRONLY:r,O_RDWR:n,O_CREAT:l,O_EXCL:d,O_TRUNC:a,O_APPEND:h,O_SYNC:u}=t.constants;(i=s||(t.FLAGS=s={}))[i.r=o]="r",i[i["r+"]=n]="r+",i[i.rs=o|u]="rs",i[i.sr=i.rs]="sr",i[i["rs+"]=n|u]="rs+",i[i["sr+"]=i["rs+"]]="sr+",i[i.w=r|l|a]="w",i[i.wx=r|l|a|d]="wx",i[i.xw=i.wx]="xw",i[i["w+"]=n|l|a]="w+",i[i["wx+"]=n|l|a|d]="wx+",i[i["xw+"]=i["wx+"]]="xw+",i[i.a=r|h|l]="a",i[i.ax=r|h|l|d]="ax",i[i.xa=i.ax]="xa",i[i["a+"]=n|h|l]="a+",i[i["ax+"]=n|h|l|d]="ax+",i[i["xa+"]=i["ax+"]]="xa+"},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/AMODE.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0})},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/FLAG.js"(e,t){var s,i;Object.defineProperty(t,"__esModule",{value:!0}),t.FLAG=void 0,(i=s||(t.FLAG=s={}))[i.O_RDONLY=0]="O_RDONLY",i[i.O_WRONLY=1]="O_WRONLY",i[i.O_RDWR=2]="O_RDWR",i[i.O_ACCMODE=3]="O_ACCMODE",i[i.O_CREAT=64]="O_CREAT",i[i.O_EXCL=128]="O_EXCL",i[i.O_NOCTTY=256]="O_NOCTTY",i[i.O_TRUNC=512]="O_TRUNC",i[i.O_APPEND=1024]="O_APPEND",i[i.O_NONBLOCK=2048]="O_NONBLOCK",i[i.O_DSYNC=4096]="O_DSYNC",i[i.FASYNC=8192]="FASYNC",i[i.O_DIRECT=16384]="O_DIRECT",i[i.O_LARGEFILE=0]="O_LARGEFILE",i[i.O_DIRECTORY=65536]="O_DIRECTORY",i[i.O_NOFOLLOW=131072]="O_NOFOLLOW",i[i.O_NOATIME=262144]="O_NOATIME",i[i.O_CLOEXEC=524288]="O_CLOEXEC",i[i.O_SYNC=1052672]="O_SYNC",i[i.O_NDELAY=2048]="O_NDELAY"},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/encoding.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.ENCODING_UTF8=void 0,t.assertEncoding=function(e){if(e&&!i.Buffer.isEncoding(e))throw new o.TypeError("ERR_INVALID_OPT_VALUE_ENCODING",e)},t.strToEncoding=function(e,s){return s&&s!==t.ENCODING_UTF8?"buffer"===s?new i.Buffer(e):new i.Buffer(e).toString(s):e};let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js");t.ENCODING_UTF8="utf8"},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/types/index.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/constants.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/AMODE.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/consts/FLAG.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/path.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/encoding.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/watchIgnore.js"),t)},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/path.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.basename=void 0,t.basename=(e,t)=>{e[e.length-1]===t&&(e=e.slice(0,-1));let s=e.lastIndexOf(t);return -1===s?e:e.slice(s+1)}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/setTimeoutUnref.js"(e,t){t.default=function(e,t,s){let i=setTimeout.apply("u">typeof globalThis?globalThis:global,arguments);return i&&"object"==typeof i&&"function"==typeof i.unref&&i.unref(),i}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/types/index.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0})},"../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/watchIgnore.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.watchIgnoreToMatcher=t.watchIgnorePatternToMatcher=void 0;let i=s("../../node_modules/.pnpm/glob-to-regex.js@1.2.0_tslib@2.8.1/node_modules/glob-to-regex.js/lib/index.js");t.watchIgnorePatternToMatcher=e=>{if("function"==typeof e)return e;if(e instanceof RegExp)return t=>e.test(t);if("string"==typeof e){let t=(0,i.toRegex)(e);return e=>t.test(e)}throw TypeError(`The "options.ignore" property must be of type string, RegExp, function, or an array thereof. Received ${typeof e}`)},t.watchIgnoreToMatcher=e=>{if(Array.isArray(e)){let s=e.map(t.watchIgnorePatternToMatcher);return e=>s.some(t=>t(e))}return(0,t.watchIgnorePatternToMatcher)(e)}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dir.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Dir=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js");class n{constructor(e,t){this.link=e,this.options=t,this.iteratorInfo=[],this.closed=!1,this.operationQueue=null,this.path=e.getPath(),this.iteratorInfo.push(e.children[Symbol.iterator]())}closeBase(){}readBase(e){let t,s,i,r;do{do{if({done:t,value:s}=e[e.length-1].next(),t)break;[i,r]=s}while("."===i||".."===i);if(!t)return this.options.recursive&&r.children.size&&e.push(r.children[Symbol.iterator]()),o.default.build(r,this.options.encoding);if(e.pop(),0===e.length)break;t=!1}while(!t);return null}close(e){if(void 0===e)return this.closed?Promise.reject(new r.Error("ERR_DIR_CLOSED")):new Promise((e,t)=>{this.close(s=>{s?t(s):e()})});if((0,i.validateCallback)(e),this.closed)return void process.nextTick(e,new r.Error("ERR_DIR_CLOSED"));if(null!==this.operationQueue)return void this.operationQueue.push(()=>{this.close(e)});this.closed=!0;try{this.closeBase(),process.nextTick(e)}catch(t){process.nextTick(e,t)}}closeSync(){if(this.closed)throw new r.Error("ERR_DIR_CLOSED");if(null!==this.operationQueue)throw new r.Error("ERR_DIR_CONCURRENT_OPERATION");this.closed=!0,this.closeBase()}read(e){if(void 0===e)return new Promise((e,t)=>{this.read((s,i)=>{s?t(s):e(i??null)})});if((0,i.validateCallback)(e),this.closed)return void process.nextTick(e,new r.Error("ERR_DIR_CLOSED"));if(null!==this.operationQueue)return void this.operationQueue.push(()=>{this.read(e)});this.operationQueue=[];try{let t=this.readBase(this.iteratorInfo);process.nextTick(()=>{let s=this.operationQueue;for(let e of(this.operationQueue=null,s))e();e(null,t)})}catch(t){process.nextTick(()=>{let s=this.operationQueue;for(let e of(this.operationQueue=null,s))e();e(t)})}}readSync(){if(this.closed)throw new r.Error("ERR_DIR_CLOSED");if(null!==this.operationQueue)throw new r.Error("ERR_DIR_CONCURRENT_OPERATION");return this.readBase(this.iteratorInfo)}[Symbol.asyncIterator](){return{next:async()=>{try{let e=await this.read();if(null!==e)return{done:!1,value:e};return{done:!0,value:void 0}}catch(e){throw e}},[Symbol.asyncIterator](){return this}}}[Symbol.asyncDispose](){return this.close()}[Symbol.dispose](){this.closeSync()}}t.Dir=n},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Dirent=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),{S_IFMT:o,S_IFDIR:r,S_IFREG:n,S_IFBLK:l,S_IFCHR:d,S_IFLNK:a,S_IFIFO:h,S_IFSOCK:u}=i.constants;class c{constructor(){this.name="",this.parentPath="",this.mode=0,this.path=""}static build(e,t){let s=new c,{mode:o}=e.getNode();return s.name=(0,i.strToEncoding)(e.getName(),t),s.mode=o,s.parentPath=e.getParentPath(),s.path=s.parentPath,s}_checkModeProperty(e){return(this.mode&o)===e}isDirectory(){return this._checkModeProperty(r)}isFile(){return this._checkModeProperty(n)}isBlockDevice(){return this._checkModeProperty(l)}isCharacterDevice(){return this._checkModeProperty(d)}isSymbolicLink(){return this._checkModeProperty(a)}isFIFO(){return this._checkModeProperty(h)}isSocket(){return this._checkModeProperty(u)}}t.Dirent=c,t.default=c},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FileHandle.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.FileHandle=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/events.js");class r extends o.EventEmitter{constructor(e,t){super(),this.refs=1,this.closePromise=null,this.position=0,this.readableWebStreamLocked=!1,this.fs=e,this.fd=t}getAsyncId(){return this.fd}appendFile(e,t){return(0,i.promisify)(this.fs,"appendFile")(this.fd,e,t)}chmod(e){return(0,i.promisify)(this.fs,"fchmod")(this.fd,e)}chown(e,t){return(0,i.promisify)(this.fs,"fchown")(this.fd,e,t)}close(){if(-1===this.fd)return Promise.resolve();if(this.closePromise)return this.closePromise;if(this.refs--,0===this.refs){let e=this.fd;this.fd=-1,this.closePromise=(0,i.promisify)(this.fs,"close")(e).finally(()=>{this.closePromise=null})}else this.closePromise=new Promise((e,t)=>{this.closeResolve=e,this.closeReject=t}).finally(()=>{this.closePromise=null,this.closeReject=void 0,this.closeResolve=void 0});return this.emit("close"),this.closePromise}datasync(){return(0,i.promisify)(this.fs,"fdatasync")(this.fd)}createReadStream(e){return this.fs.createReadStream("",{...e,fd:this})}createWriteStream(e){return this.fs.createWriteStream("",{...e,fd:this})}readableWebStream(e={}){let{type:t="bytes",autoClose:s=!1}=e,i=0;if(-1===this.fd)throw Error("The FileHandle is closed");if(this.closePromise)throw Error("The FileHandle is closing");if(this.readableWebStreamLocked)throw Error("An error will be thrown if this method is called more than once or is called after the FileHandle is closed or closing.");this.readableWebStreamLocked=!0,this.ref();let o=()=>{this.readableWebStreamLocked=!1,this.unref(),s&&this.close().catch(()=>{})};return new ReadableStream({type:"bytes"===t?"bytes":void 0,autoAllocateChunkSize:16384,pull:async e=>{try{let t=e.byobRequest?.view;if(!t){let t=new Uint8Array(16384),s=await this.read(t,0,t.length,i);if(0===s.bytesRead){e.close(),o();return}i+=s.bytesRead,e.enqueue(t.slice(0,s.bytesRead));return}let s=await this.read(t,t.byteOffset,t.byteLength,i);if(0===s.bytesRead){e.close(),o();return}i+=s.bytesRead,e.byobRequest.respond(s.bytesRead)}catch(t){e.error(t),o()}},cancel:async()=>{o()}})}async read(e,t,s,o){let r=null!=o?o:this.position,n=await (0,i.promisify)(this.fs,"read",t=>({bytesRead:t,buffer:e}))(this.fd,e,t,s,r);return null==o&&(this.position+=n.bytesRead),n}readv(e,t){return(0,i.promisify)(this.fs,"readv",t=>({bytesRead:t,buffers:e}))(this.fd,e,t)}readFile(e){return(0,i.promisify)(this.fs,"readFile")(this.fd,e)}stat(e){return(0,i.promisify)(this.fs,"fstat")(this.fd,e)}sync(){return(0,i.promisify)(this.fs,"fsync")(this.fd)}truncate(e){return(0,i.promisify)(this.fs,"ftruncate")(this.fd,e)}utimes(e,t){return(0,i.promisify)(this.fs,"futimes")(this.fd,e,t)}async write(e,t,s,o){let r="number"!=typeof o,n=r?this.position:o,l=await (0,i.promisify)(this.fs,"write",t=>({bytesWritten:t,buffer:e}))(this.fd,e,t,s,n);return r&&(this.position+=l.bytesWritten),l}writev(e,t){return(0,i.promisify)(this.fs,"writev",t=>({bytesWritten:t,buffers:e}))(this.fd,e,t)}writeFile(e,t){return(0,i.promisify)(this.fs,"writeFile")(this.fd,e,t)}async [Symbol.asyncDispose](){await this.close()}ref(){this.refs++}unref(){this.refs--,0===this.refs&&(this.fd=-1,this.closeResolve&&(0,i.promisify)(this.fs,"close")(this.fd).then(this.closeResolve,this.closeReject))}}t.FileHandle=r},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FsPromises.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.FsPromises=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),r=e=>{let t=Error("The operation was aborted");return t.name="AbortError",t.code="ABORT_ERR",t.cause=e.reason,t};class n{constructor(e,t,s={}){this.fs=e,this.path=t,this.options=s,this.eventQueue=[],this.resolveQueue=[],this.finished=!1,this.maxQueue=s.maxQueue||2048;let i=s.overflow||"ignore";if("ignore"!==i&&"error"!==i&&"throw"!==i)throw TypeError(`The argument 'options.overflow' must be one of: 'ignore', 'error'. Received '${i}'`);this.overflow="throw"===i?"error":i;let o=s.signal;if(o){if(o.aborted)return void this.finish(r(o));this.onAbort=()=>this.finish(r(o)),o.addEventListener("abort",this.onAbort)}this.startWatching()}startWatching(){let{signal:e,...t}=this.options;try{this.watcher=this.fs.watch(this.path,t,(e,t)=>{this.enqueueEvent({eventType:e,filename:t})})}catch(e){throw this.finish(),e}}enqueueEvent(e){if(!this.finished){if(this.eventQueue.length>=this.maxQueue){if("error"===this.overflow){let e=Error(`Watch queue overflow: more than ${this.maxQueue} events queued`);e.code="ERR_FS_WATCH_QUEUE_OVERFLOW",this.finish(e)}else"u">typeof process&&"function"==typeof process.emitWarning&&process.emitWarning("fs.watch maxQueue exceeded");return}if(this.eventQueue.push(e),this.resolveQueue.length>0){let{resolve:e}=this.resolveQueue.shift();e({value:this.eventQueue.shift(),done:!1})}}}finish(e){if(this.finished)return;this.finished=!0,this.error=e,e&&(this.eventQueue.length=0),this.onAbort&&(this.options.signal.removeEventListener("abort",this.onAbort),this.onAbort=void 0),this.watcher&&(this.watcher.close(),this.watcher=null);let t=e&&this.resolveQueue.length>0;for(;this.resolveQueue.length>0;){let{resolve:t,reject:s}=this.resolveQueue.shift();e?s(e):t({value:void 0,done:!0})}t&&(this.error=void 0)}async next(){if(this.error){let e=this.error;throw this.error=void 0,e}return this.finished?{value:void 0,done:!0}:this.eventQueue.length>0?{value:this.eventQueue.shift(),done:!1}:new Promise((e,t)=>{this.resolveQueue.push({resolve:e,reject:t})})}async return(){return this.finish(),{value:void 0,done:!0}}async throw(e){throw this.finish(e),e}[Symbol.asyncIterator](){return this}}t.FsPromises=class{constructor(e,t){this.fs=e,this.FileHandle=t,this.constants=o.constants,this.cp=(0,i.promisify)(this.fs,"cp"),this.opendir=(0,i.promisify)(this.fs,"opendir"),this.statfs=(0,i.promisify)(this.fs,"statfs"),this.lutimes=(0,i.promisify)(this.fs,"lutimes"),this.glob=(0,i.promisify)(this.fs,"glob"),this.access=(0,i.promisify)(this.fs,"access"),this.chmod=(0,i.promisify)(this.fs,"chmod"),this.chown=(0,i.promisify)(this.fs,"chown"),this.copyFile=(0,i.promisify)(this.fs,"copyFile"),this.lchmod=(0,i.promisify)(this.fs,"lchmod"),this.lchown=(0,i.promisify)(this.fs,"lchown"),this.link=(0,i.promisify)(this.fs,"link"),this.lstat=(0,i.promisify)(this.fs,"lstat"),this.mkdir=(0,i.promisify)(this.fs,"mkdir"),this.mkdtemp=(0,i.promisify)(this.fs,"mkdtemp"),this.readdir=(0,i.promisify)(this.fs,"readdir"),this.readlink=(0,i.promisify)(this.fs,"readlink"),this.realpath=(0,i.promisify)(this.fs,"realpath"),this.rename=(0,i.promisify)(this.fs,"rename"),this.rmdir=(0,i.promisify)(this.fs,"rmdir"),this.rm=(0,i.promisify)(this.fs,"rm"),this.stat=(0,i.promisify)(this.fs,"stat"),this.symlink=(0,i.promisify)(this.fs,"symlink"),this.truncate=(0,i.promisify)(this.fs,"truncate"),this.unlink=(0,i.promisify)(this.fs,"unlink"),this.utimes=(0,i.promisify)(this.fs,"utimes"),this.readFile=(e,t)=>(0,i.promisify)(this.fs,"readFile")(e instanceof this.FileHandle?e.fd:e,t),this.appendFile=(e,t,s)=>(0,i.promisify)(this.fs,"appendFile")(e instanceof this.FileHandle?e.fd:e,t,s),this.open=(e,t="r",s)=>(0,i.promisify)(this.fs,"open",e=>new this.FileHandle(this.fs,e))(e,t,s),this.writeFile=(e,t,s)=>((0,i.isReadableStream)(t)?(0,i.streamToBuffer)(t):Promise.resolve(t)).then(t=>(0,i.promisify)(this.fs,"writeFile")(e instanceof this.FileHandle?e.fd:e,t,s)),this.watch=(e,t)=>new n(this.fs,e,"string"==typeof t?{encoding:t}:t||{})}}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/StatFs.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.StatFs=void 0;class s{static build(e,t=!1){let i=new s,o=t?e=>BigInt(e):e=>e;i.type=o(0x858458f6),i.bsize=o(4096);let r=Object.keys(e.inodes).length,n=1e6-Math.min(2*r,1e6);return i.blocks=o(1e6),i.bfree=o(n),i.bavail=o(n),i.files=o(1e6),i.ffree=o(1e6-r),i}}t.StatFs=s,t.default=s},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Stats.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Stats=void 0;let{S_IFMT:i,S_IFDIR:o,S_IFREG:r,S_IFBLK:n,S_IFCHR:l,S_IFLNK:d,S_IFIFO:a,S_IFSOCK:h}=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js").constants;class u{static build(e,t=!1){let s=new u,{uid:i,gid:o,atime:r,mtime:n,ctime:l,btime:d}=e,a=t?e=>BigInt(e):e=>e;return s.uid=a(i),s.gid=a(o),s.rdev=a(e.rdev),s.blksize=a(4096),s.ino=a(e.ino),s.size=a(e.getSize()),s.blocks=a(1),s.atime=new Date(r.getTime()),s.mtime=new Date(n.getTime()),s.ctime=new Date(l.getTime()),s.birthtime=new Date(d.getTime()),s.atimeMs=a(r.getTime()),s.mtimeMs=a(n.getTime()),s.ctimeMs=a(l.getTime()),s.birthtimeMs=a(d.getTime()),t&&(s.atimeNs=BigInt(r.getTime())*BigInt(1e6),s.mtimeNs=BigInt(n.getTime())*BigInt(1e6),s.ctimeNs=BigInt(l.getTime())*BigInt(1e6),s.birthtimeNs=BigInt(d.getTime())*BigInt(1e6)),s.dev=a(0),s.mode=a(e.mode),s.nlink=a(e.nlink),s}_checkModeProperty(e){return(Number(this.mode)&i)===e}isDirectory(){return this._checkModeProperty(o)}isFile(){return this._checkModeProperty(r)}isBlockDevice(){return this._checkModeProperty(n)}isCharacterDevice(){return this._checkModeProperty(l)}isSymbolicLink(){return this._checkModeProperty(d)}isFIFO(){return this._checkModeProperty(a)}isSocket(){return this._checkModeProperty(h)}}t.Stats=u,t.default=u},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/glob.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.globSync=function(e,t,s={}){let o=d(s.cwd?(0,r.pathToFilename)(s.cwd):process.cwd()),n={cwd:o,exclude:s.exclude,maxdepth:s.maxdepth,withFileTypes:s.withFileTypes||!1},l=[];if(i.posix.isAbsolute(t)){let s=i.posix.dirname(t),o=h(e,s,[i.posix.basename(t)],{...n,cwd:s});l.push(...o.map(e=>i.posix.resolve(s,e)))}else{let s=h(e,o,[t.replace(/^\.\//,"")],n);l.push(...s)}return[...new Set(l)].sort()};let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"),o=s("../../node_modules/.pnpm/glob-to-regex.js@1.2.0_tslib@2.8.1/node_modules/glob-to-regex.js/lib/index.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"),n=i.posix.join,l=i.posix.relative,d=i.posix.resolve;function a(e,t){return(0,o.toRegex)(t).test(e)}function h(e,t,s,i,o=0){let d=[],u=i.maxdepth??1/0,c=i.cwd?(0,r.pathToFilename)(i.cwd):process.cwd();if(o>u)return d;try{for(let r of e.readdirSync(t,{withFileTypes:!0})){let f=n(t,r.name.toString()),m=l(c,f);if(!function(e,t){return!!t&&("function"==typeof t?t(e):(Array.isArray(t)?t:[t]).some(t=>a(e,t)))}(m,i.exclude)&&(s.some(e=>a(m,e))&&d.push(m),r.isDirectory()&&o<u)){let t=h(e,f,s,i,o+1);d.push(...t)}}}catch(e){}return d}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/index.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.fsCommonObjectsList=t.fsSynchronousApiList=t.fsCallbackApiList=t.FsPromises=t.Dir=t.FileHandle=t.StatFs=t.Dirent=t.Stats=t.toUnixTimestamp=t.FSWatcher=t.StatWatcher=t.Volume=void 0;let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");var o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/volume.js");Object.defineProperty(t,"Volume",{enumerable:!0,get:function(){return o.Volume}}),Object.defineProperty(t,"StatWatcher",{enumerable:!0,get:function(){return o.StatWatcher}}),Object.defineProperty(t,"FSWatcher",{enumerable:!0,get:function(){return o.FSWatcher}}),Object.defineProperty(t,"toUnixTimestamp",{enumerable:!0,get:function(){return o.toUnixTimestamp}});var r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Stats.js");Object.defineProperty(t,"Stats",{enumerable:!0,get:function(){return r.default}});var n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js");Object.defineProperty(t,"Dirent",{enumerable:!0,get:function(){return n.default}});var l=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/StatFs.js");Object.defineProperty(t,"StatFs",{enumerable:!0,get:function(){return l.default}});var d=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FileHandle.js");Object.defineProperty(t,"FileHandle",{enumerable:!0,get:function(){return d.FileHandle}});var a=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dir.js");Object.defineProperty(t,"Dir",{enumerable:!0,get:function(){return a.Dir}});var h=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FsPromises.js");Object.defineProperty(t,"FsPromises",{enumerable:!0,get:function(){return h.FsPromises}}),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/options.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/glob.js"),t);var u=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCallbackApiList.js");Object.defineProperty(t,"fsCallbackApiList",{enumerable:!0,get:function(){return u.fsCallbackApiList}});var c=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsSynchronousApiList.js");Object.defineProperty(t,"fsSynchronousApiList",{enumerable:!0,get:function(){return c.fsSynchronousApiList}});var f=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCommonObjectsList.js");Object.defineProperty(t,"fsCommonObjectsList",{enumerable:!0,get:function(){return f.fsCommonObjectsList}})},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCallbackApiList.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.fsCallbackApiList=void 0,t.fsCallbackApiList=["access","appendFile","chmod","chown","close","copyFile","cp","createReadStream","createWriteStream","exists","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","openAsBlob","opendir","read","readv","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","unwatchFile","utimes","lutimes","watch","watchFile","write","writev","writeFile"]},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsCommonObjectsList.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.fsCommonObjectsList=void 0,t.fsCommonObjectsList=["F_OK","R_OK","W_OK","X_OK","constants","Stats","StatFs","Dir","Dirent","StatWatcher","FSWatcher","ReadStream","WriteStream"]},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/lists/fsSynchronousApiList.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.fsSynchronousApiList=void 0,t.fsSynchronousApiList=["accessSync","appendFileSync","chmodSync","chownSync","closeSync","copyFileSync","cpSync","existsSync","fchmodSync","fchownSync","fdatasyncSync","fstatSync","fsyncSync","ftruncateSync","futimesSync","globSync","lchmodSync","lchownSync","linkSync","lstatSync","mkdirSync","mkdtempSync","openSync","opendirSync","readdirSync","readFileSync","readlinkSync","readSync","readvSync","realpathSync","renameSync","rmdirSync","rmSync","statfsSync","statSync","symlinkSync","truncateSync","unlinkSync","utimesSync","lutimesSync","writeFileSync","writeSync","writevSync"]},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/options.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.getWriteFileOptions=t.writeFileDefaults=t.getRealpathOptsAndCb=t.getRealpathOptions=t.getStatfsOptsAndCb=t.getStatfsOptions=t.getStatOptsAndCb=t.getStatOptions=t.getAppendFileOptsAndCb=t.getAppendFileOpts=t.getOpendirOptsAndCb=t.getOpendirOptions=t.getReaddirOptsAndCb=t.getReaddirOptions=t.getReadFileOptions=t.getRmOptsAndCb=t.getRmdirOptions=t.getDefaultOptsAndCb=t.getDefaultOpts=t.optsDefaults=t.getMkdirOptions=void 0,t.getOptions=n,t.optsGenerator=l,t.optsAndCbGenerator=d;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"),r={mode:511,recursive:!1};function n(e,t){let s;if(!t)return e;{let i=typeof t;switch(i){case"string":s=Object.assign({},e,{encoding:t});break;case"object":s=Object.assign({},e,t);break;default:throw TypeError(`Expected options to be either an object or a string, but got ${i} instead`)}}return"buffer"!==s.encoding&&(0,i.assertEncoding)(s.encoding),s}function l(e){return t=>n(e,t)}function d(e){return(t,s)=>"function"==typeof t?[e(),t]:[e(t),(0,o.validateCallback)(s)]}t.getMkdirOptions=e=>"number"==typeof e?Object.assign({},r,{mode:e}):Object.assign({},r,e),t.optsDefaults={encoding:"utf8"},t.getDefaultOpts=l(t.optsDefaults),t.getDefaultOptsAndCb=d(t.getDefaultOpts);let a={recursive:!1};t.getRmdirOptions=e=>Object.assign({},a,e);let h=l(t.optsDefaults);t.getRmOptsAndCb=d(h),t.getReadFileOptions=l({flag:"r"}),t.getReaddirOptions=l({encoding:"utf8",recursive:!1,withFileTypes:!1}),t.getReaddirOptsAndCb=d(t.getReaddirOptions),t.getOpendirOptions=l({encoding:"utf8",bufferSize:32,recursive:!1}),t.getOpendirOptsAndCb=d(t.getOpendirOptions),t.getAppendFileOpts=l({encoding:"utf8",mode:438,flag:i.FLAGS[i.FLAGS.a]}),t.getAppendFileOptsAndCb=d(t.getAppendFileOpts);let u={bigint:!1};t.getStatOptions=(e={})=>Object.assign({},u,e),t.getStatOptsAndCb=(e,s)=>"function"==typeof e?[(0,t.getStatOptions)(),e]:[(0,t.getStatOptions)(e),(0,o.validateCallback)(s)];let c={bigint:!1};t.getStatfsOptions=(e={})=>Object.assign({},c,e),t.getStatfsOptsAndCb=(e,s)=>"function"==typeof e?[(0,t.getStatfsOptions)(),e]:[(0,t.getStatfsOptions)(e),(0,o.validateCallback)(s)];let f=t.optsDefaults;t.getRealpathOptions=l(f),t.getRealpathOptsAndCb=d(t.getRealpathOptions),t.writeFileDefaults={encoding:"utf8",mode:438,flag:i.FLAGS[i.FLAGS.w]},t.getWriteFileOptions=l(t.writeFileDefaults)},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.getWriteSyncArgs=t.getWriteArgs=t.bufToUint8=void 0,t.promisify=function(e,t,s=e=>e){return(...i)=>new Promise((o,r)=>{e[t].bind(e)(...i,(e,t)=>e?r(e):o(s(t)))})},t.validateCallback=d,t.modeToNumber=function e(t,s){let o="number"==typeof t?t:"string"==typeof t?parseInt(t,8):s?e(s):void 0;if("number"!=typeof o||isNaN(o))throw TypeError(i.ERRSTR.MODE_INT);return o},t.nullCheck=a,t.pathToFilename=function(e){if(e instanceof Uint8Array&&(e=(0,r.bufferFrom)(e)),"string"!=typeof e&&!r.Buffer.isBuffer(e)){try{if(!(e instanceof s("url?5f07").URL))throw TypeError(i.ERRSTR.PATH_STR)}catch(e){throw TypeError(i.ERRSTR.PATH_STR)}e=function(e){if(""!==e.hostname)throw new o.TypeError("ERR_INVALID_FILE_URL_HOST",process.platform);let t=e.pathname;for(let e=0;e<t.length;e++)if("%"===t[e]){let s=32|t.codePointAt(e+2);if("2"===t[e+1]&&102===s)throw new o.TypeError("ERR_INVALID_FILE_URL_PATH","must not include encoded / characters")}let s=decodeURIComponent(t);return l.isWin?s.replace(/^\/([a-zA-Z]:)/,"$1"):s}(e)}let t=String(e);return a(t),t},t.createError=function(e,t="",s="",i="",o=Error){let r=new o(h(e,t,s,i));return r.code=e,s&&(r.path=s),r},t.createStatError=function(e,t="",s="",i=""){return{code:e,message:h(e,t,s,i),path:s,toError(){let e=Error(this.message);return e.code=this.code,this.path&&(e.path=this.path),e}}},t.genRndStr6=function(){return Math.random().toString(36).slice(2,8).padEnd(6,"0")},t.flagsToNumber=function(e){if("number"==typeof e)return e;if("string"==typeof e){let t=i.FLAGS[e];if(void 0!==t)return t}throw new o.TypeError("ERR_INVALID_OPT_VALUE","flags",e)},t.streamToBuffer=function(e){let t=[];return new Promise((s,i)=>{e.on("data",e=>t.push(e)),e.on("end",()=>s(r.Buffer.concat(t))),e.on("error",i)})},t.bufferToEncoding=function(e,t){return t&&"buffer"!==t?e.toString(t):e},t.isReadableStream=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe&&"function"==typeof e.on&&!0===e.readable};let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/index.js"),l=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js");function d(e){if("function"!=typeof e)throw TypeError(i.ERRSTR.CB);return e}function a(e,t){if(-1!==(""+e).indexOf("\0")){let e=Error("Path must be a string without null bytes");if(e.code="ENOENT","function"!=typeof t)throw e;return queueMicrotask(()=>{t(e)}),!1}return!0}function h(e,t="",s="",i=""){let o="";switch(s&&(o=` '${s}'`),i&&(o+=` -> '${i}'`),e){case"ENOENT":return`ENOENT: no such file or directory, ${t}${o}`;case"EBADF":return`EBADF: bad file descriptor, ${t}${o}`;case"EINVAL":return`EINVAL: invalid argument, ${t}${o}`;case"EPERM":return`EPERM: operation not permitted, ${t}${o}`;case"EPROTO":return`EPROTO: protocol error, ${t}${o}`;case"EEXIST":return`EEXIST: file already exists, ${t}${o}`;case"ENOTDIR":return`ENOTDIR: not a directory, ${t}${o}`;case"EISDIR":return`EISDIR: illegal operation on a directory, ${t}${o}`;case"EACCES":return`EACCES: permission denied, ${t}${o}`;case"ENOTEMPTY":return`ENOTEMPTY: directory not empty, ${t}${o}`;case"EMFILE":return`EMFILE: too many open files, ${t}${o}`;case"ENOSYS":return`ENOSYS: function not implemented, ${t}${o}`;case"ERR_FS_EISDIR":return`[ERR_FS_EISDIR]: Path is a directory: ${t} returned EISDIR (is a directory) ${s}`;case"ERR_OUT_OF_RANGE":return`[ERR_OUT_OF_RANGE]: value out of range, ${t}${o}`;default:return`${e}: error occurred, ${t}${o}`}}t.bufToUint8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.getWriteArgs=(e,t,s,i,o,r)=>{let l,a,h;(0,n.validateFd)(e);let u=0,c=null,f=typeof t,m=typeof s,p=typeof i,y=typeof o;"string"!==f?"function"===m?h=s:"function"===p?(u=0|s,h=i):"function"===y?(u=0|s,l=i,h=o):(u=0|s,l=i,c=o,h=r):"function"===m?h=s:"function"===p?(c=s,h=i):"function"===y&&(c=s,a=i,h=o);let b=(0,n.dataToBuffer)(t,a);return"string"!==f?void 0===l&&(l=b.length):(u=0,l=b.length),[e,"string"===f,b,u,l,c,d(h)]},t.getWriteSyncArgs=(e,t,s,i,o)=>{let r,l,d,a;(0,n.validateFd)(e);let h="string"!=typeof t;h?(l=0|(s||0),d=i,a=o):(a=s,r=i);let u=(0,n.dataToBuffer)(t,r);return h?void 0===d&&(d=u.length):(l=0,d=u.length),[e,u,l||0,d,a]}},"../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/volume.js"(e,t,s){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.FSWatcher=t.StatWatcher=t.Volume=void 0,t.pathToSteps=function(e){return(0,r.filenameToSteps)((0,E.pathToFilename)(e))},t.dataToStr=function(e,t=f.ENCODING_UTF8){return h.Buffer.isBuffer(e)?e.toString(t):e instanceof Uint8Array?(0,h.bufferFrom)(e).toString(t):String(e)},t.toUnixTimestamp=B;let o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/index.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-core@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-core/lib/util.js"),l=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Stats.js"),d=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dirent.js"),a=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/StatFs.js"),h=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/buffer.js"),u=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/setTimeoutUnref.js"),c=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/stream.js"),f=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),m=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/events.js"),p=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FileHandle.js"),y=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/util.js"),b=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/FsPromises.js"),_=s("../../node_modules/.pnpm/@jsonjoy.com+fs-print@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-print/lib/index.js"),j=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/index.js"),w=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),g=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/internal/errors.js"),S=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/options.js"),E=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/util.js"),v=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/Dir.js"),O=o.resolve,{O_SYMLINK:k,F_OK:T,R_OK:F,W_OK:x,X_OK:N,COPYFILE_EXCL:A,COPYFILE_FICLONE_FORCE:R}=f.constants,I=o.posix?o.posix.sep:o.sep,C=o.posix?o.posix.relative:o.relative,D=o.posix?o.posix.join:o.join,L=o.posix?o.posix.dirname:o.dirname,P=o.posix?o.posix.normalize:o.normalize;function B(e){if("string"==typeof e&&+e==e)return+e;if(e instanceof Date)return e.getTime()/1e3;if(isFinite(e))return e<0?Date.now()/1e3:e;throw Error("Cannot parse time: "+e)}function M(e){if("number"!=typeof e)throw TypeError(w.ERRSTR.UID)}function U(e){if("number"!=typeof e)throw TypeError(w.ERRSTR.GID)}class W{get promises(){if(null===this.promisesApi)throw Error("Promise is not supported in this environment.");return this.promisesApi}constructor(e=new r.Superblock){this._core=e,this.promisesApi=new b.FsPromises(this,p.FileHandle),this.openSync=(e,t,s=438)=>{let i=(0,E.modeToNumber)(s),o=(0,E.pathToFilename)(e),r=(0,E.flagsToNumber)(t);return this._core.open(o,r,i,!(r&k))},this.open=(e,t,s,i)=>{let o=s,r=i;"function"==typeof s&&(o=438,r=s),o=o||438;let n=(0,E.modeToNumber)(o),l=(0,E.pathToFilename)(e),d=(0,E.flagsToNumber)(t);this.wrapAsync(this._core.open,[l,d,n,!(d&k)],r)},this.closeSync=e=>{this._core.close(e)},this.close=(e,t)=>{(0,r.validateFd)(e);let s=this._core.getFileByFdOrThrow(e,"close");this.wrapAsync(this._core.close,[s.fd],t)},this.readSync=(e,t,s,i,o)=>((0,r.validateFd)(e),this._core.read(e,t,s,i,o)),this.read=(e,t,s,i,o,r)=>{if((0,E.validateCallback)(r),0===i)return queueMicrotask(()=>{r&&r(null,0,t)});Promise.resolve().then(()=>{try{let n=this._core.read(e,t,s,i,o);r(null,n,t)}catch(e){r(e)}})},this.readv=(e,t,s,i)=>{let o=s,r=i;"function"==typeof s&&([o,r]=[null,s]),(0,E.validateCallback)(r),Promise.resolve().then(()=>{try{let s=this._core.readv(e,t,o);r(null,s,t)}catch(e){r(e)}})},this.readvSync=(e,t,s)=>((0,r.validateFd)(e),this._core.readv(e,t,s??null)),this._readfile=(e,t,s)=>{let i,o,n="number"==typeof e&&(0,r.isFd)(e);if(n)o=e;else{let s=(0,E.pathToFilename)(e),i=String(e),r=i.length>1&&i.endsWith("/"),n=this._core.getResolvedLinkOrThrow(s,"open"),l=n.getNode();if(l.isDirectory())throw(0,E.createError)("EISDIR","open",n.getPath());if(r&&l.isFile())throw(0,E.createError)("ENOTDIR","open",i);o=this.openSync(e,t)}try{i=(0,E.bufferToEncoding)(this._core.getFileByFdOrThrow(o).getBuffer(),s)}finally{n||this.closeSync(o)}return i},this.readFileSync=(e,t)=>{let s=(0,S.getReadFileOptions)(t),i=(0,E.flagsToNumber)(s.flag);return this._readfile(e,i,s.encoding)},this.readFile=(e,t,s)=>{let[i,o]=(0,S.optsAndCbGenerator)(S.getReadFileOptions)(t,s),r=(0,E.flagsToNumber)(i.flag);this.wrapAsync(this._readfile,[e,r,i.encoding],o)},this.writeSync=(e,t,s,i,o)=>{let[,r,n,l,d]=(0,E.getWriteSyncArgs)(e,t,s,i,o);return this._write(e,r,n,l,d)},this.write=(e,t,s,i,o,r)=>{let[,n,l,d,a,h,u]=(0,E.getWriteArgs)(e,t,s,i,o,r);Promise.resolve().then(()=>{try{let s=this._write(e,l,d,a,h);n?u(null,s,t):u(null,s,l)}catch(e){u(e)}})},this.writev=(e,t,s,i)=>{let o=s,r=i;"function"==typeof s&&([o,r]=[null,s]),(0,E.validateCallback)(r),Promise.resolve().then(()=>{try{let s=this.writevBase(e,t,o);r(null,s,t)}catch(e){r(e)}})},this.writevSync=(e,t,s)=>((0,r.validateFd)(e),this.writevBase(e,t,s??null)),this.writeFileSync=(e,t,s)=>{let i=(0,S.getWriteFileOptions)(s),o=(0,E.flagsToNumber)(i.flag),n=(0,E.modeToNumber)(i.mode),l=(0,r.dataToBuffer)(t,i.encoding);this._core.writeFile(e,l,o,n)},this.writeFile=(e,t,s,i)=>{let o=s,n=i;"function"==typeof s&&([o,n]=[S.writeFileDefaults,s]);let l=(0,E.validateCallback)(n),d=(0,S.getWriteFileOptions)(o),a=(0,E.flagsToNumber)(d.flag),h=(0,E.modeToNumber)(d.mode),u=(0,r.dataToBuffer)(t,d.encoding);this.wrapAsync(this._core.writeFile,[e,u,a,h],l)},this.copyFileSync=(e,t,s)=>{let i=(0,E.pathToFilename)(e),o=(0,E.pathToFilename)(t);return this._copyFile(i,o,0|(s||0))},this.copyFile=(e,t,s,i)=>{let o,r,n=(0,E.pathToFilename)(e),l=(0,E.pathToFilename)(t);"function"==typeof s?[o,r]=[0,s]:[o,r]=[s,i],(0,E.validateCallback)(r),this.wrapAsync(this._copyFile,[n,l,o],r)},this._cp=(e,t,s)=>{if(s.filter&&!s.filter(e,t))return;let i=s.dereference?this.statSync(e):this.lstatSync(e),o=null;try{o=this.lstatSync(t)}catch(e){if("ENOENT"!==e.code)throw e}if(o&&i.ino===o.ino&&i.dev===o.dev)throw(0,E.createError)("EINVAL","cp",e,t);if(o){if(i.isDirectory()&&!o.isDirectory())throw(0,E.createError)("EISDIR","cp",e,t);if(!i.isDirectory()&&o.isDirectory())throw(0,E.createError)("ENOTDIR","cp",e,t)}if(i.isDirectory()&&this.isSrcSubdir(e,t))throw(0,E.createError)("EINVAL","cp",e,t);{let e=L(t);this.existsSync(e)||this.mkdirSync(e,{recursive:!0})}if(i.isDirectory()){if(!s.recursive)throw(0,E.createError)("EISDIR","cp",e);this.cpDirSync(i,o,e,t,s)}else if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())this.cpFileSync(i,o,e,t,s);else if(i.isSymbolicLink()&&!s.dereference)this.cpSymlinkSync(o,e,t,s);else throw(0,E.createError)("EINVAL","cp",e)},this.linkSync=(e,t)=>{let s=(0,E.pathToFilename)(e),i=(0,E.pathToFilename)(t);this._core.link(s,i)},this.link=(e,t,s)=>{let i=(0,E.pathToFilename)(e),o=(0,E.pathToFilename)(t);this.wrapAsync(this._core.link,[i,o],s)},this.unlinkSync=e=>{let t=(0,E.pathToFilename)(e);this._core.unlink(t)},this.unlink=(e,t)=>{let s=(0,E.pathToFilename)(e);this.wrapAsync(this._core.unlink,[s],t)},this.symlinkSync=(e,t,s)=>{let i=(0,E.pathToFilename)(e),o=(0,E.pathToFilename)(t);this._core.symlink(i,o)},this.symlink=(e,t,s,i)=>{let o=(0,E.validateCallback)("function"==typeof s?s:i),r=(0,E.pathToFilename)(e),n=(0,E.pathToFilename)(t);this.wrapAsync(this._core.symlink,[r,n],o)},this._lstat=(e,t=!1,s=!1)=>{let i;try{i=this._core.getLinkOrThrow(e,"lstat")}catch(e){if("ENOENT"===e.code&&!s)return;throw e}return l.default.build(i.getNode(),t)},this.lstatSync=(e,t)=>{let{throwIfNoEntry:s=!0,bigint:i=!1}=(0,S.getStatOptions)(t);return this._lstat((0,E.pathToFilename)(e),i,s)},this.renameSync=(e,t)=>{let s=(0,E.pathToFilename)(e),i=(0,E.pathToFilename)(t);this._core.rename(s,i)},this.rename=(e,t,s)=>{let i=(0,E.pathToFilename)(e),o=(0,E.pathToFilename)(t);this.wrapAsync(this._core.rename,[i,o],s)},this.existsSync=e=>{try{return this._exists((0,E.pathToFilename)(e)).ok}catch(e){return!1}},this.exists=(e,t)=>{let s=(0,E.pathToFilename)(e);if("function"!=typeof t)throw Error(w.ERRSTR.CB);Promise.resolve().then(()=>{try{t(this._exists(s).ok)}catch(e){t(!1)}})},this.accessSync=(e,t=T)=>{let s=(0,E.pathToFilename)(e);t|=0,this._access(s,t)},this.access=(e,t,s)=>{let i,o=T;"function"!=typeof t?[o,i]=[0|t,(0,E.validateCallback)(s)]:i=t;let r=(0,E.pathToFilename)(e);this.wrapAsync(this._access,[r,o],i)},this.appendFileSync=(e,t,s)=>{let i=(0,S.getAppendFileOpts)(s);(!i.flag||(0,r.isFd)(e))&&(i.flag="a"),this.writeFileSync(e,t,i)},this.appendFile=(e,t,s,i)=>{let[o,n]=(0,S.getAppendFileOptsAndCb)(s,i);(!o.flag||(0,r.isFd)(e))&&(o.flag="a"),this.writeFile(e,t,o,n)},this._readdir=(e,t)=>{(0,r.filenameToSteps)(e);let s=this._core.getResolvedLinkOrThrow(e,"scandir"),i=s.getNode();if(!i.isDirectory())throw(0,E.createError)("ENOTDIR","scandir",e);if(!i.canRead())throw(0,E.createError)("EACCES","scandir",e);let l=[];for(let e of s.children.keys()){let i=s.getChild(e);if(i&&"."!==e&&".."!==e&&(l.push(d.default.build(i,t.encoding)),t.recursive&&i.children.size)){let e={...t,recursive:!0,withFileTypes:!0},s=this._readdir(i.getPath(),e);l.push(...s)}}if(n.isWin||"buffer"===t.encoding||l.sort((e,t)=>e.name<t.name?-1:+(e.name>t.name)),t.withFileTypes)return l;let a=e;return n.isWin&&(a=a.replace(/\\/g,"/")),l.map(e=>{if(t.recursive){let t=D(e.parentPath,e.name.toString());return n.isWin&&(t=t.replace(/\\/g,"/")),t.replace(a+o.posix.sep,"")}return e.name})},this.readdirSync=(e,t)=>{let s=(0,S.getReaddirOptions)(t),i=(0,E.pathToFilename)(e);return this._readdir(i,s)},this.readdir=(e,t,s)=>{let[i,o]=(0,S.getReaddirOptsAndCb)(t,s),r=(0,E.pathToFilename)(e);this.wrapAsync(this._readdir,[r,i],o)},this._readlink=(e,t)=>{let s=this._core.getLinkOrThrow(e,"readlink").getNode();if(!s.isSymlink())throw(0,E.createError)("EINVAL","readlink",e);return(0,f.strToEncoding)(s.symlink,t)},this.readlinkSync=(e,t)=>{let s=(0,S.getDefaultOpts)(t),i=(0,E.pathToFilename)(e);return this._readlink(i,s.encoding)},this.readlink=(e,t,s)=>{let[i,o]=(0,S.getDefaultOptsAndCb)(t,s),r=(0,E.pathToFilename)(e);this.wrapAsync(this._readlink,[r,i.encoding],o)},this._fsync=e=>{this._core.getFileByFdOrThrow(e,"fsync")},this.fsyncSync=e=>{this._fsync(e)},this.fsync=(e,t)=>{this.wrapAsync(this._fsync,[e],t)},this._fdatasync=e=>{this._core.getFileByFdOrThrow(e,"fdatasync")},this.fdatasyncSync=e=>{this._fdatasync(e)},this.fdatasync=(e,t)=>{this.wrapAsync(this._fdatasync,[e],t)},this._ftruncate=(e,t)=>{this._core.ftruncate(e,t)},this.ftruncateSync=(e,t)=>{this._ftruncate(e,t)},this.ftruncate=(e,t,s)=>{let i="number"==typeof t?t:0,o=(0,E.validateCallback)("number"==typeof t?s:t);this.wrapAsync(this._ftruncate,[e,i],o)},this._truncate=(e,t)=>{let s=this.openSync(e,"r+");try{this.ftruncateSync(s,t)}finally{this.closeSync(s)}},this.truncateSync=(e,t)=>{if((0,r.isFd)(e))return this.ftruncateSync(e,t);this._truncate(e,t)},this.truncate=(e,t,s)=>{let i="number"==typeof t?t:0,o=(0,E.validateCallback)("number"==typeof t?s:t);if((0,r.isFd)(e))return this.ftruncate(e,i,o);this.wrapAsync(this._truncate,[e,i],o)},this._futimes=(e,t,s)=>{this._core.futimes(e,t,s)},this.futimesSync=(e,t,s)=>{this._futimes(e,B(t),B(s))},this.futimes=(e,t,s,i)=>{this.wrapAsync(this._futimes,[e,B(t),B(s)],i)},this._utimes=(e,t,s,i=!0)=>{this._core.utimes(e,t,s,i)},this.utimesSync=(e,t,s)=>{this._utimes((0,E.pathToFilename)(e),B(t),B(s),!0)},this.utimes=(e,t,s,i)=>{this.wrapAsync(this._utimes,[(0,E.pathToFilename)(e),B(t),B(s),!0],i)},this.lutimesSync=(e,t,s)=>{this._utimes((0,E.pathToFilename)(e),B(t),B(s),!1)},this.lutimes=(e,t,s,i)=>{this.wrapAsync(this._utimes,[(0,E.pathToFilename)(e),B(t),B(s),!1],i)},this.mkdirSync=(e,t)=>{let s=(0,S.getMkdirOptions)(t),i=(0,E.modeToNumber)(s.mode,511),o=(0,E.pathToFilename)(e);if(s.recursive)return this._core.mkdirp(o,i);this._core.mkdir(o,i)},this.mkdir=(e,t,s)=>{let i=(0,S.getMkdirOptions)(t),o=(0,E.validateCallback)("function"==typeof t?t:s),r=(0,E.modeToNumber)(i.mode,511),n=(0,E.pathToFilename)(e);i.recursive?this.wrapAsync(this._core.mkdirp,[n,r],o):this.wrapAsync(this._core.mkdir,[n,r],o)},this._mkdtemp=(e,t,s=5)=>{let i=e+(0,E.genRndStr6)();try{return this._core.mkdir(i,511),(0,f.strToEncoding)(i,t)}catch(i){if("EEXIST"===i.code)if(s>1)return this._mkdtemp(e,t,s-1);else throw Error("Could not create temp dir.");throw i}},this.mkdtempSync=(e,t)=>{let{encoding:s}=(0,S.getDefaultOpts)(t);if(!e||"string"!=typeof e)throw TypeError("filename prefix is required");return(0,E.nullCheck)(e),this._mkdtemp(e,s)},this.mkdtemp=(e,t,s)=>{let[{encoding:i},o]=(0,S.getDefaultOptsAndCb)(t,s);if(!e||"string"!=typeof e)throw TypeError("filename prefix is required");(0,E.nullCheck)(e)&&this.wrapAsync(this._mkdtemp,[e,i],o)},this.rmdirSync=(e,t)=>{let s=(0,S.getRmdirOptions)(t);this._core.rmdir((0,E.pathToFilename)(e),s.recursive)},this.rmdir=(e,t,s)=>{let i=(0,S.getRmdirOptions)(t),o=(0,E.validateCallback)("function"==typeof t?t:s);this.wrapAsync(this._core.rmdir,[(0,E.pathToFilename)(e),i.recursive],o)},this.rmSync=(e,t)=>{this._core.rm((0,E.pathToFilename)(e),t?.force,t?.recursive)},this.rm=(e,t,s)=>{let[i,o]=(0,S.getRmOptsAndCb)(t,s);this.wrapAsync(this._core.rm,[(0,E.pathToFilename)(e),i?.force,i?.recursive],o)},this._fchmod=(e,t)=>{this._core.fchmod(e,t)},this.fchmodSync=(e,t)=>{this._fchmod(e,(0,E.modeToNumber)(t))},this.fchmod=(e,t,s)=>{this.wrapAsync(this._fchmod,[e,(0,E.modeToNumber)(t)],s)},this._chmod=(e,t,s=!0)=>{s?this._core.chmod(e,t):this._core.lchmod(e,t)},this.chmodSync=(e,t)=>{let s=(0,E.modeToNumber)(t),i=(0,E.pathToFilename)(e);this._chmod(i,s,!0)},this.chmod=(e,t,s)=>{let i=(0,E.modeToNumber)(t),o=(0,E.pathToFilename)(e);this.wrapAsync(this._chmod,[o,i],s)},this._lchmod=(e,t)=>{this._core.lchmod(e,t)},this.lchmodSync=(e,t)=>{let s=(0,E.modeToNumber)(t),i=(0,E.pathToFilename)(e);this._lchmod(i,s)},this.lchmod=(e,t,s)=>{let i=(0,E.modeToNumber)(t),o=(0,E.pathToFilename)(e);this.wrapAsync(this._lchmod,[o,i],s)},this._fchown=(e,t,s)=>{this._core.fchown(e,t,s)},this.fchownSync=(e,t,s)=>{M(t),U(s),this._fchown(e,t,s)},this.fchown=(e,t,s,i)=>{M(t),U(s),this.wrapAsync(this._fchown,[e,t,s],i)},this._chown=(e,t,s)=>{this._core.chown(e,t,s)},this.chownSync=(e,t,s)=>{M(t),U(s),this._chown((0,E.pathToFilename)(e),t,s)},this.chown=(e,t,s,i)=>{M(t),U(s),this.wrapAsync(this._chown,[(0,E.pathToFilename)(e),t,s],i)},this._lchown=(e,t,s)=>{this._core.lchown(e,t,s)},this.lchownSync=(e,t,s)=>{M(t),U(s),this._lchown((0,E.pathToFilename)(e),t,s)},this.lchown=(e,t,s,i)=>{M(t),U(s),this.wrapAsync(this._lchown,[(0,E.pathToFilename)(e),t,s],i)},this.statWatchers={},this.cpSync=(e,t,s)=>{let i=(0,E.pathToFilename)(e),o=(0,E.pathToFilename)(t),r={dereference:s?.dereference??!1,errorOnExist:s?.errorOnExist??!1,filter:s?.filter,force:s?.force??!0,mode:s?.mode??0,preserveTimestamps:s?.preserveTimestamps??!1,recursive:s?.recursive??!1,verbatimSymlinks:s?.verbatimSymlinks??!1};return this._cp(i,o,r)},this.cp=(e,t,s,i)=>{let o,r,n=(0,E.pathToFilename)(e),l=(0,E.pathToFilename)(t);"function"==typeof s?[o,r]=[{},s]:[o,r]=[s||{},i],(0,E.validateCallback)(r);let d={dereference:o?.dereference??!1,errorOnExist:o?.errorOnExist??!1,filter:o?.filter,force:o?.force??!0,mode:o?.mode??0,preserveTimestamps:o?.preserveTimestamps??!1,recursive:o?.recursive??!1,verbatimSymlinks:o?.verbatimSymlinks??!1};this.wrapAsync(this._cp,[n,l,d],r)},this.openAsBlob=async(e,t)=>{let s,i=(0,E.pathToFilename)(e);try{s=this._core.getResolvedLinkOrThrow(i,"open")}catch(e){if(e&&"object"==typeof e&&"ENOENT"===e.code)throw new g.TypeError("ERR_INVALID_ARG_VALUE");throw e}return new Blob([s.getNode().getBuffer()],{type:t?.type||""})},this.glob=(e,...t)=>{let[s,i]=1===t.length?[{},t[0]]:[t[0],t[1]];this.wrapAsync(this._globSync,[e,s||{}],i)},this.globSync=(e,t={})=>this._globSync(e,t),this._globSync=(e,t={})=>{let{globSync:i}=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/glob.js");return i(this,e,t)},this._opendir=(e,t)=>{let s=this._core.getResolvedLinkOrThrow(e,"scandir");if(!s.getNode().isDirectory())throw(0,E.createError)("ENOTDIR","scandir",e);return new v.Dir(s,t)},this.opendirSync=(e,t)=>{let s=(0,S.getOpendirOptions)(t),i=(0,E.pathToFilename)(e);return this._opendir(i,s)},this.opendir=(e,t,s)=>{let[i,o]=(0,S.getOpendirOptsAndCb)(t,s),r=(0,E.pathToFilename)(e);this.wrapAsync(this._opendir,[r,i],o)};let t=this;this.StatWatcher=class extends V{constructor(){super(t)}};let i=H;this.ReadStream=class extends i{constructor(...e){super(t,...e)}};let a=G;this.WriteStream=class extends a{constructor(...e){super(t,...e)}},this.FSWatcher=class extends Y{constructor(){super(t)}};let h=(e,t)=>{let s=this._core.getResolvedLinkOrThrow(e,"realpath");return(0,f.strToEncoding)(s.getPath()||"/",t)},u=(e,s,i)=>{let[o,r]=(0,S.getRealpathOptsAndCb)(s,i),n=(0,E.pathToFilename)(e);t.wrapAsync(h,[n,o.encoding],r)},c=(e,t)=>h((0,E.pathToFilename)(e),(0,S.getRealpathOptions)(t).encoding);this.realpath=u,this.realpath.native=u,this.realpathSync=c,this.realpathSync.native=c}wrapAsync(e,t,s){(0,E.validateCallback)(s),Promise.resolve().then(()=>{let i;try{i=e.apply(this,t)}catch(e){s(e);return}s(null,i)})}reset(){this._core.reset()}toJSON(e,t={},s=!1,i=!1){return this._core.toJSON(e,t,s,i)}fromJSON(e,t){return this._core.fromJSON(e,t)}fromNestedJSON(e,t){return this._core.fromNestedJSON(e,t)}mountSync(e,t){this._core.fromJSON(t,e)}_write(e,t,s,i,o){return this._core.write(e,t,s,i,o)}writevBase(e,t,s){this._core.getFileByFdOrThrow(e);let i=s??void 0;-1===i&&(i=void 0);let o=0;for(let s of t){let t=h.Buffer.from(s.buffer,s.byteOffset,s.byteLength),r=this._core.write(e,t,0,t.byteLength,i??null);if(i=void 0,o+=r,r<t.byteLength)break}return o}_copyFile(e,t,s){let i=this.readFileSync(e);if(s&A&&this.existsSync(t))throw(0,E.createError)("EEXIST","copyFile",e,t);if(s&R)throw(0,E.createError)("ENOSYS","copyFile",e,t);this._core.writeFile(t,i,w.FLAGS.w,438)}isSrcSubdir(e,t){try{let s=P(e.startsWith("/")?e:"/"+e),i=P(t.startsWith("/")?t:"/"+t);if(s===i)return!0;let r=C(s,i);return""===r||!r.startsWith("..")&&!(0,o.isAbsolute)(r)}catch(e){return!1}}cpFileSync(e,t,s,i,o){if(t){if(o.errorOnExist)throw(0,E.createError)("EEXIST","cp",i);if(!o.force)return;this.unlinkSync(i)}this.copyFileSync(s,i,o.mode),o.preserveTimestamps&&this.utimesSync(i,e.atime,e.mtime),this.chmodSync(i,Number(e.mode))}cpDirSync(e,t,s,i,o){for(let e of(t||this.mkdirSync(i),this.readdirSync(s))){let t=D(s,String(e)),r=D(i,String(e));(!o.filter||o.filter(t,r))&&this._cp(t,r,o)}this.chmodSync(i,Number(e.mode))}cpSymlinkSync(e,t,s,i){let r=String(this.readlinkSync(t));i.verbatimSymlinks||(0,o.isAbsolute)(r)||(r=O(L(t),r)),e&&this.unlinkSync(s),this.symlinkSync(r,s)}lstat(e,t,s){let[{throwIfNoEntry:i=!0,bigint:o=!1},r]=(0,S.getStatOptsAndCb)(t,s);this.wrapAsync(this._lstat,[(0,E.pathToFilename)(e),o,i],r)}_stat(e,t=!1,s=!0){let i=this._core.getResolvedLinkResult(e,"stat");return i.ok?(0,r.Ok)(l.default.build(i.value.getNode(),t)):"ENOENT"!==i.err.code||s?i:(0,r.Ok)(void 0)}_statOrThrow(e,t=!1,s=!0){let i=this._stat(e,t,s);if(i.ok)return i.value;throw i.err.toError()}statSync(e,t){let{bigint:s=!0,throwIfNoEntry:i=!0}=(0,S.getStatOptions)(t),o=this._stat((0,E.pathToFilename)(e),s,i);if(o.ok)return o.value;throw o.err.toError()}stat(e,t,s){let[{bigint:i=!1,throwIfNoEntry:o=!0},r]=(0,S.getStatOptsAndCb)(t,s);this.wrapAsync(this._statOrThrow,[(0,E.pathToFilename)(e),i,o],r)}fstatBase(e,t=!1){let s=this._core.getFileByFd(e);if(!s)throw(0,E.createError)("EBADF","fstat");return l.default.build(s.node,t)}fstatSync(e,t){return this.fstatBase(e,(0,S.getStatOptions)(t).bigint)}fstat(e,t,s){let[i,o]=(0,S.getStatOptsAndCb)(t,s);this.wrapAsync(this.fstatBase,[e,i.bigint],o)}_exists(e){let t=this._stat(e);return t.ok?(0,r.Ok)(!0):t}_access(e,t){let s=this._core.getResolvedLinkOrThrow(e,"access").getNode();if(t!==T&&(t&F&&!s.canRead()||t&x&&!s.canWrite()||t&N&&!s.canExecute()))throw(0,E.createError)("EACCES","access",e)}watchFile(e,t,s){let i=(0,E.pathToFilename)(e),o=t,r=s;if("function"==typeof o&&(r=t,o=null),"function"!=typeof r)throw TypeError('The "listener" argument must be of type function. Received '+typeof r);let n=5007,l=!0,d=!1;if(o&&"object"==typeof o){if(void 0!==o.interval){if("number"!=typeof o.interval)throw TypeError('The "options.interval" property must be of type number. Received '+typeof o.interval);if(!Number.isInteger(o.interval)||o.interval<0||o.interval>0xffffffff)throw RangeError(`The value of "options.interval" is out of range. It must be an integer >= 0 && <= 4294967295. Received ${o.interval}`);n=o.interval}"boolean"==typeof o.persistent&&(l=o.persistent),"boolean"==typeof o.bigint&&(d=o.bigint)}let a=this.statWatchers[i];return a||((a=new this.StatWatcher).start(i,l,n,d),this.statWatchers[i]=a),a.addListener("change",r),a}unwatchFile(e,t){let s=(0,E.pathToFilename)(e),i=this.statWatchers[s];i&&("function"==typeof t?i.removeListener("change",t):i.removeAllListeners("change"),0===i.listenerCount("change")&&(i.stop(),delete this.statWatchers[s]))}createReadStream(e,t){return new this.ReadStream(e,t)}createWriteStream(e,t){return new this.WriteStream(e,t)}watch(e,t,s){let i=(0,E.pathToFilename)(e),o=t;"function"==typeof t&&(s=t,o=null);let{persistent:r,recursive:n,encoding:l,signal:d,throwIfNoEntry:a,ignore:h}=(0,S.getDefaultOpts)(o);void 0===r&&(r=!0),void 0===n&&(n=!1);let u=new this.FSWatcher;try{u.start(i,r,n,l,h)}catch(e){if(!1===a&&"ENOENT"===e.code)return u;throw e}if(s&&u.addListener("change",s),d)if(d.aborted)u.close();else{let e=()=>u.close();d.addEventListener("abort",e,{once:!0}),u.once("close",()=>d.removeEventListener("abort",e))}return u}_statfs(e,t=!1){return this._core.getResolvedLinkOrThrow(e,"statfs"),a.default.build(this._core,t)}statfsSync(e,t){let{bigint:s=!1}=(0,S.getStatfsOptions)(t);return this._statfs((0,E.pathToFilename)(e),s)}statfs(e,t,s){let[{bigint:i=!1},o]=(0,S.getStatfsOptsAndCb)(t,s);this.wrapAsync(this._statfs,[(0,E.pathToFilename)(e),i],o)}toTree(e={separator:o.sep}){return(0,_.toTreeSync)(this,e)}toSnapshot(e="/"){return j.toSnapshotSync({fs:this,path:e})}fromSnapshot(e,t="/"){return j.fromSnapshotSync(e,{fs:this,path:t})}toBinarySnapshot(e="/"){return j.toBinarySnapshotSync({fs:this,path:e})}fromBinarySnapshot(e,t="/"){return j.fromBinarySnapshotSync(e,{fs:this,path:t})}toJsonSnapshot(e="/"){let t=j.toJsonSnapshotSync({fs:this,path:e});return h.Buffer.from(t).toString("utf8")}fromJsonSnapshot(e,t="/"){let s=new Uint8Array(h.Buffer.from(e,"utf8"));return j.fromJsonSnapshotSync(s,{fs:this,path:t})}}function J(e){e.emit("stop")}function $(e){let t=new l.default,s=e?BigInt(0):0,i=new Date(0);return t.uid=s,t.gid=s,t.rdev=s,t.blksize=s,t.ino=s,t.size=s,t.blocks=s,t.atime=i,t.mtime=i,t.ctime=i,t.birthtime=i,t.atimeMs=s,t.mtimeMs=s,t.ctimeMs=s,t.birthtimeMs=s,e&&(t.atimeNs=s,t.mtimeNs=s,t.ctimeNs=s,t.birthtimeNs=s),t.dev=s,t.mode=s,t.nlink=s,t}t.Volume=W,W.fromJSON=(e,t,s)=>new W(r.Superblock.fromJSON(e,t,s)),W.fromNestedJSON=(e,t,s)=>new W(r.Superblock.fromNestedJSON(e,t,s));class V extends m.EventEmitter{constructor(e){super(),this.bigint=!1,this.fileExists=!1,this.stopped=!1,this.onInterval=()=>{if(this.stopped)return;let e=this.statSafe();if(e)if(this.fileExists){if(this.hasChanged(e)){let t=this.prev;this.prev=e,this.emit("change",e,t)}}else{this.fileExists=!0;let t=this.prev;this.prev=e,this.emit("change",e,t)}else this.fileExists&&(this.fileExists=!1,this.emit("change",$(this.bigint),this.prev));this.loop()},this.vol=e}loop(){clearTimeout(this.timeoutRef),this.timeoutRef=this.setTimeout(this.onInterval,this.interval)}hasChanged(e){let t=this.prev;return e.mtimeMs!==t.mtimeMs||e.ctimeMs!==t.ctimeMs||e.size!==t.size||e.ino!==t.ino||e.mode!==t.mode||e.uid!==t.uid||e.gid!==t.gid||e.nlink!==t.nlink}statSafe(){try{return this.bigint?this.vol.statSync(this.filename,{bigint:!0}):this.vol.statSync(this.filename)}catch{return null}}start(e,t=!0,s=5007,i=!1){this.filename=(0,E.pathToFilename)(e),this.setTimeout=t?setTimeout.bind("u">typeof globalThis?globalThis:global):u.default,this.interval=s,this.bigint=i;let o=this.statSafe();o?(this.prev=o,this.fileExists=!0):(this.prev=$(i),this.fileExists=!1,queueMicrotask(()=>{this.stopped||this.emit("change",this.prev,this.prev)})),this.loop()}stop(){this.stopped=!0,clearTimeout(this.timeoutRef),queueMicrotask(()=>{J.call(this,this)})}ref(){this.setTimeout=setTimeout.bind("u">typeof globalThis?globalThis:global);let e=this.timeoutRef;return e&&"object"==typeof e&&"function"==typeof e.ref&&e.ref(),this}unref(){this.setTimeout=u.default;let e=this.timeoutRef;return e&&"object"==typeof e&&"function"==typeof e.unref&&e.unref(),this}}function H(e,t,s){if(!(this instanceof H))return new H(e,t,s);if(this._vol=e,void 0===(s=Object.assign({},(0,S.getOptions)(s,{}))).highWaterMark&&(s.highWaterMark=65536),c.Readable.call(this,s),this.path=(0,E.pathToFilename)(t),this._fileHandle=s.fd&&"number"!=typeof s.fd?s.fd:null,this.fd=void 0===s.fd?null:"number"!=typeof s.fd?s.fd.fd:s.fd,this.flags=void 0===s.flags?"r":s.flags,this.mode=void 0===s.mode?438:s.mode,this.start=s.start,this.end=s.end,this.autoClose=void 0===s.autoClose||s.autoClose,this.pos=void 0,this.bytesRead=0,void 0!==this.start){if("number"!=typeof this.start)throw TypeError('"start" option must be a Number');if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError('"end" option must be a Number');if(this.start>this.end)throw Error('"start" option must be <= "end" option');this.pos=this.start}"number"!=typeof this.fd&&this.open(),this.on("end",function(){this.autoClose&&this.destroy&&this.destroy()})}function z(e){this.close()}function G(e,t,s){if(!(this instanceof G))return new G(e,t,s);if(this._vol=e,s=Object.assign({},(0,S.getOptions)(s,{})),c.Writable.call(this,s),this.path=(0,E.pathToFilename)(t),this._fileHandle=s.fd&&"number"!=typeof s.fd?s.fd:null,this.fd=void 0===s.fd?null:"number"!=typeof s.fd?s.fd.fd:s.fd,this.flags=void 0===s.flags?"w":s.flags,this.mode=void 0===s.mode?438:s.mode,this.start=s.start,this.autoClose=void 0===s.autoClose||!!s.autoClose,this.pos=void 0,this.bytesWritten=0,this.pending=!0,void 0!==this.start){if("number"!=typeof this.start)throw TypeError('"start" option must be a Number');if(this.start<0)throw Error('"start" must be >= zero');this.pos=this.start}s.encoding&&this.setDefaultEncoding(s.encoding),"number"!=typeof this.fd&&this.open(),this.once("finish",function(){this.autoClose&&this.close()})}t.StatWatcher=V,(0,y.inherits)(H,c.Readable),t.ReadStream=H,H.prototype.open=function(){var e=this;this._vol.open(this.path,this.flags,this.mode,(t,s)=>{if(t){e.autoClose&&e.destroy&&e.destroy(),e.emit("error",t);return}e.fd=s,e.emit("open",s),e.read()})},H.prototype._read=function(e){if("number"!=typeof this.fd)return this.once("open",function(){this._read(e)});if(!this.destroyed){(!i||i.length-i.used<128)&&(t=this._readableState.highWaterMark,(i=(0,h.bufferAllocUnsafe)(t)).used=0);var t,s=i,o=Math.min(i.length-i.used,e),r=i.used;if(void 0!==this.pos&&(o=Math.min(this.end-this.pos+1,o)),o<=0)return this.push(null);var n=this;this._vol.read(this.fd,i,i.used,o,this.pos,function(e,t){if(e)n.autoClose&&n.destroy&&n.destroy(),n.emit("error",e);else{var i=null;t>0&&(n.bytesRead+=t,i=s.slice(r,r+t)),n.push(i)}}),void 0!==this.pos&&(this.pos+=o),i.used+=o}},H.prototype._destroy=function(e,t){this.close(s=>{t(e||s)})},H.prototype.close=function(e){if(e&&this.once("close",e),this.closed||"number"!=typeof this.fd)return"number"!=typeof this.fd?void this.once("open",z):queueMicrotask(()=>this.emit("close"));"boolean"==typeof this._readableState?.closed?this._readableState.closed=!0:this.closed=!0,this._fileHandle?this._fileHandle.close().then(()=>this.emit("close"),e=>this.emit("error",e)):this._vol.close(this.fd,e=>{e?this.emit("error",e):this.emit("close")}),this.fd=null},(0,y.inherits)(G,c.Writable),t.WriteStream=G,G.prototype.open=function(){this._vol.open(this.path,this.flags,this.mode,(function(e,t){if(e){this.autoClose&&this.destroy&&this.destroy(),this.emit("error",e);return}this.fd=t,this.pending=!1,this.emit("open",t)}).bind(this))},G.prototype._write=function(e,t,s){if(!(e instanceof h.Buffer||e instanceof Uint8Array))return this.emit("error",Error("Invalid data"));if("number"!=typeof this.fd)return this.once("open",function(){this._write(e,t,s)});var i=this;this._vol.write(this.fd,e,0,e.length,this.pos,(e,t)=>{if(e)return i.autoClose&&i.destroy&&i.destroy(),s(e);i.bytesWritten+=t,s()}),void 0!==this.pos&&(this.pos+=e.length)},G.prototype._writev=function(e,t){if("number"!=typeof this.fd)return this.once("open",function(){this._writev(e,t)});let s=this,i=e.length,o=Array(i);for(var r=0,n=0;n<i;n++){var l=e[n].chunk;o[n]=l,r+=l.length}let d=h.Buffer.concat(o);this._vol.write(this.fd,d,0,d.length,this.pos,(e,i)=>{if(e)return s.destroy&&s.destroy(),t(e);s.bytesWritten+=i,t()}),void 0!==this.pos&&(this.pos+=r)},G.prototype.close=function(e){if(e&&this.once("close",e),this.closed||"number"!=typeof this.fd)return"number"!=typeof this.fd?void this.once("open",z):queueMicrotask(()=>this.emit("close"));"boolean"==typeof this._writableState?.closed?this._writableState.closed=!0:this.closed=!0,this._fileHandle?this._fileHandle.close().then(()=>this.emit("close"),e=>this.emit("error",e)):this._vol.close(this.fd,e=>{e?this.emit("error",e):this.emit("close")}),this.fd=null},G.prototype._destroy=H.prototype._destroy,G.prototype.destroySoon=G.prototype.end;class Y extends m.EventEmitter{constructor(e){super(),this._filename="",this._filenameEncoded="",this._recursive=!1,this._encoding=f.ENCODING_UTF8,this._closed=!1,this._onEvent=e=>{switch(e.type){case 0:case 1:this._emit("rename",e.steps);break;case 4:e.oldSteps&&this._emit("rename",e.oldSteps),this._emit("rename",e.steps);break;case 2:case 3:this._emit("change",e.steps)}},this._persist=()=>{this._timer=setTimeout(this._persist,1e6)},this._vol=e}_emit(e,t){let s=t.length?t.join(I):this._watcher.link.getName();this._ignore&&this._ignore(s)||this.emit("change",e,(0,f.strToEncoding)(s,this._encoding))}ref(){return!this._watcher||this._closed||this._timer||this._persist(),this}unref(){return clearTimeout(this._timer),this._timer=void 0,this}start(e,t=!0,s=!1,i=f.ENCODING_UTF8,o){this._filename=(0,E.pathToFilename)(e),this._steps=(0,r.filenameToSteps)(this._filename),this._filenameEncoded=(0,f.strToEncoding)(this._filename),this._recursive=s,this._encoding=i,this._ignore=void 0===o?void 0:(0,f.watchIgnoreToMatcher)(o);try{this._watcher=new r.CoreWatcher(this._vol._core,this._filename,{recursive:s})}catch(t){let e=Error(`watch ${this._filename} ${t.code}`);throw e.code=t.code,e.errno=t.code,e}this._link=this._watcher.link,this._watcher.changes.listen(this._onEvent),t&&this._persist()}close(){clearTimeout(this._timer),this._timer=void 0,this._watcher&&!this._closed&&(this._closed=!0,this._watcher.close(),queueMicrotask(()=>this.emit("close")))}}t.FSWatcher=Y},"../../node_modules/.pnpm/@jsonjoy.com+fs-print@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-print/lib/index.js"(e,t,s){t.toTreeSync=void 0;let i=s("../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/index.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js");t.toTreeSync=(e,s={})=>{let r=s.separator||"/",n=s.dir||r;n[n.length-1]!==r&&(n+=r);let l=s.tab||"",d=s.depth??10,a=s.sort??!0,h=" (...)";if(d>0){let s=e.readdirSync(n,{withFileTypes:!0});a&&s.sort((e,t)=>e.isDirectory()&&t.isDirectory()?e.name.toString().localeCompare(t.name.toString()):e.isDirectory()?-1:t.isDirectory()?1:e.name.toString().localeCompare(t.name.toString())),h=(0,i.printTree)(l,s.map(s=>i=>s.isDirectory()?(0,t.toTreeSync)(e,{dir:n+s.name,depth:d-1,tab:i}):s.isSymbolicLink()?""+s.name+" → "+e.readlinkSync(n+s.name):""+s.name))}return(0,o.basename)(n,r)+r+h}},"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/async.js"(e,t,s){t.fromSnapshot=t.toSnapshot=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js"),o=async({fs:e,path:s="/",separator:i="/"})=>{let o=await e.lstat(s);if(o.isDirectory()){let o=await e.readdir(s),r={},n=s.endsWith(i)?s:s+i,l=await Promise.all(o.map(s=>(0,t.toSnapshot)({fs:e,path:`${n}${s}`,separator:i})));for(let e=0;e<o.length;e++)l[e]&&(r[""+o[e]]=l[e]);return[0,{},r]}if(o.isFile()){let t=await e.readFile(s);return[1,{},new Uint8Array(t.buffer,t.byteOffset,t.byteLength)]}return o.isSymbolicLink()?[2,{target:await e.readlink(s,{encoding:"utf8"})}]:null};t.toSnapshot=o;let r=async(e,{fs:s,path:o="/",separator:r="/"})=>{if(e)switch(e[0]){case 0:{o.endsWith(r)||(o+=r);let[,,n]=e;for(let[e,l]of(await s.mkdir(o,{recursive:!0}),Object.entries(n)))(0,i.validateEntryName)(e),await (0,t.fromSnapshot)(l,{fs:s,path:`${o}${e}`,separator:r});break}case 1:{let[,,t]=e;await s.writeFile(o,t);break}case 2:{let[,{target:t}]=e;await s.symlink(t,o)}}};t.fromSnapshot=r},"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/binary.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.fromBinarySnapshot=t.toBinarySnapshot=t.fromBinarySnapshotSync=t.toBinarySnapshotSync=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborEncoder.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborDecoder.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/async.js"),l=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js"),d=new i.CborEncoder(l.writer),a=new o.CborDecoder;t.toBinarySnapshotSync=e=>{let t=(0,r.toSnapshotSync)(e);return d.encode(t)},t.fromBinarySnapshotSync=(e,t)=>{let s=a.decode(e);(0,r.fromSnapshotSync)(s,t)},t.toBinarySnapshot=async e=>{let t=await (0,n.toSnapshot)(e);return d.encode(t)},t.fromBinarySnapshot=async(e,t)=>{let s=a.decode(e);await (0,n.fromSnapshot)(s,t)}},"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/constants.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0})},"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/index.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/constants.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/binary.js"),t),i.__exportStar(s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/json.js"),t)},"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/json.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.fromJsonSnapshot=t.toJsonSnapshot=t.fromJsonSnapshotSync=t.toJsonSnapshotSync=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/JsonEncoder.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/JsonDecoder.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/async.js"),l=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js"),d=new i.JsonEncoder(l.writer),a=new o.JsonDecoder;t.toJsonSnapshotSync=e=>{let t=(0,r.toSnapshotSync)(e);return d.encode(t)},t.fromJsonSnapshotSync=(e,t)=>{let s=a.read(e);(0,r.fromSnapshotSync)(s,t)},t.toJsonSnapshot=async e=>{let t=await (0,n.toSnapshot)(e);return d.encode(t)},t.fromJsonSnapshot=async(e,t)=>{let s=a.read(e);await (0,n.fromSnapshot)(s,t)}},"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js"(e,t,s){t.validateEntryName=t.writer=void 0,t.writer=new(s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Writer.js")).Writer(32768),t.validateEntryName=e=>{if(!e||"."===e||".."===e||-1!==e.indexOf("/")||-1!==e.indexOf("\\"))throw Error(`Invalid snapshot entry name: ${JSON.stringify(e)}`)}},"../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/sync.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.fromSnapshotSync=t.toSnapshotSync=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-snapshot@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-snapshot/lib/shared.js");t.toSnapshotSync=({fs:e,path:s="/",separator:i="/"})=>{let o=e.lstatSync(s);if(o.isDirectory()){let o=e.readdirSync(s),r={},n=s.endsWith(i)?s:s+i;for(let s of o){let o=(0,t.toSnapshotSync)({fs:e,path:`${n}${s}`,separator:i});o&&(r[""+s]=o)}return[0,{},r]}if(o.isFile()){let t=e.readFileSync(s);return[1,{},new Uint8Array(t.buffer,t.byteOffset,t.byteLength)]}return o.isSymbolicLink()?[2,{target:e.readlinkSync(s).toString()}]:null},t.fromSnapshotSync=(e,{fs:s,path:o="/",separator:r="/"})=>{if(e)switch(e[0]){case 0:{o.endsWith(r)||(o+=r);let[,,n]=e;for(let[e,l]of(s.mkdirSync(o,{recursive:!0}),Object.entries(n)))(0,i.validateEntryName)(e),(0,t.fromSnapshotSync)(l,{fs:s,path:`${o}${e}`,separator:r});break}case 1:{let[,,t]=e;s.writeFileSync(o,t);break}case 2:{let[,{target:t}]=e;s.symlinkSync(t,o)}}}},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/JsonPackExtension.js"(e,t){t.JsonPackExtension=void 0,t.JsonPackExtension=class{constructor(e,t){this.tag=e,this.val=t}}},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/JsonPackValue.js"(e,t){t.JsonPackValue=void 0,t.JsonPackValue=class{constructor(e){this.val=e}}},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborDecoder.js"(e,t,s){t.CborDecoder=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborDecoderBase.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/JsonPackValue.js");class r extends i.CborDecoderBase{readAsMap(){let e=this.reader.u8();if(e>>5==5)return this.readMap(31&e);throw 0}readMap(e){let t=this.readMinorLen(e);return t>=0?this.readMapRaw(t):this.readMapIndef()}readMapRaw(e){let t=new Map;for(let s=0;s<e;s++){let e=this.readAny(),s=this.readAny();t.set(e,s)}return t}readMapIndef(){let e=new Map;for(;255!==this.reader.peak();){let t=this.readAny();if(255===this.reader.peak())throw 7;let s=this.readAny();e.set(t,s)}return this.reader.x++,e}skipN(e){for(let t=0;t<e;t++)this.skipAny()}skipAny(){this.skipAnyRaw(this.reader.u8())}skipAnyRaw(e){let t=31&e;switch(e>>5){case 0:case 1:this.skipUNint(t);break;case 2:this.skipBin(t);break;case 3:this.skipStr(t);break;case 4:this.skipArr(t);break;case 5:this.skipObj(t);break;case 7:this.skipTkn(t);break;case 6:this.skipTag(t)}}skipMinorLen(e){if(e<=23)return e;switch(e){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());case 31:return -1;default:throw 1}}skipUNint(e){if(!(e<=23))switch(e){case 24:return this.reader.skip(1);case 25:return this.reader.skip(2);case 26:return this.reader.skip(4);case 27:return this.reader.skip(8);default:throw 1}}skipBin(e){let t=this.skipMinorLen(e);if(t>=0)this.reader.skip(t);else{for(;255!==this.reader.peak();)this.skipBinChunk();this.reader.x++}}skipBinChunk(){let e=this.reader.u8(),t=31&e;if(2!=e>>5)throw 2;if(t>27)throw 3;this.skipBin(t)}skipStr(e){let t=this.skipMinorLen(e);if(t>=0)this.reader.skip(t);else{for(;255!==this.reader.peak();)this.skipStrChunk();this.reader.x++}}skipStrChunk(){let e=this.reader.u8(),t=31&e;if(3!=e>>5)throw 4;if(t>27)throw 5;this.skipStr(t)}skipArr(e){let t=this.skipMinorLen(e);if(t>=0)this.skipN(t);else{for(;255!==this.reader.peak();)this.skipAny();this.reader.x++}}skipObj(e){let t=this.readMinorLen(e);if(t>=0)return this.skipN(2*t);for(;255!==this.reader.peak();){if(this.skipAny(),255===this.reader.peak())throw 7;this.skipAny()}this.reader.x++}skipTag(e){if(0>this.skipMinorLen(e))throw 1;this.skipAny()}skipTkn(e){switch(e){case 24:this.reader.skip(1);return;case 25:this.reader.skip(2);return;case 26:this.reader.skip(4);return;case 27:this.reader.skip(8);return}if(!(e<=23))throw 1}validate(e,t=0,s=e.length){if(this.reader.reset(e),this.reader.x=t,this.skipAny(),this.reader.x-t!==s)throw 8}decodeLevel(e){return this.reader.reset(e),this.readLevel()}readLevel(){let e=this.reader.u8(),t=e>>5,s=31&e;switch(t){case 4:return this.readArrLevel(s);case 5:return this.readObjLevel(s);default:return super.readAnyRaw(e)}}readPrimitiveOrVal(){switch(this.reader.peak()>>5){case 4:case 5:return this.readAsValue();default:return this.readAny()}}readAsValue(){let e=this.reader,t=e.x;this.skipAny();let s=e.x;return new o.JsonPackValue(e.uint8.subarray(t,s))}readObjLevel(e){let t=this.readMinorLen(e);return t>=0?this.readObjRawLevel(t):this.readObjIndefLevel()}readObjRawLevel(e){let t={};for(let s=0;s<e;s++){let e=this.key(),s=this.readPrimitiveOrVal();t[e]=s}return t}readObjIndefLevel(){let e={};for(;255!==this.reader.peak();){let t=this.key();if(255===this.reader.peak())throw 7;let s=this.readPrimitiveOrVal();e[t]=s}return this.reader.x++,e}readArrLevel(e){let t=this.readMinorLen(e);return t>=0?this.readArrRawLevel(t):this.readArrIndefLevel()}readArrRawLevel(e){let t=[];for(let s=0;s<e;s++)t.push(this.readPrimitiveOrVal());return t}readArrIndefLevel(){let e=[];for(;255!==this.reader.peak();)e.push(this.readPrimitiveOrVal());return this.reader.x++,e}readHdr(e){let t=this.reader.u8();if(t>>5!==e)throw 0;let s=31&t;if(s<24)return s;switch(s){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());case 31:return -1}throw 1}readStrHdr(){return this.readHdr(3)}readObjHdr(){return this.readHdr(5)}readArrHdr(){return this.readHdr(4)}findKey(e){let t=this.readObjHdr();for(let s=0;s<t;s++){if(this.key()===e)return this;this.skipAny()}throw 9}findIndex(e){if(e>=this.readArrHdr())throw 10;for(let t=0;t<e;t++)this.skipAny();return this}find(e){for(let t=0;t<e.length;t++){let s=e[t];"string"==typeof s?this.findKey(s):this.findIndex(s)}return this}}t.CborDecoder=r},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborDecoderBase.js"(e,t,s){t.CborDecoderBase=void 0;let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"),o=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/f16.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/JsonPackExtension.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/JsonPackValue.js"),l=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Reader.js"),d=i.__importDefault(s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/sharedCachedUtf8Decoder.js"));t.CborDecoderBase=class{constructor(e=new l.Reader,t=d.default){this.reader=e,this.keyDecoder=t}read(e){return this.reader.reset(e),this.readAny()}decode(e){return this.reader.reset(e),this.readAny()}val(){return this.readAny()}readAny(){let e=this.reader.u8(),t=e>>5,s=31&e;if(t<4)if(t<2)return 0===t?this.readUint(s):this.readNint(s);else return 2===t?this.readBin(s):this.readStr(s);return t<6?4===t?this.readArr(s):this.readObj(s):6===t?this.readTag(s):this.readTkn(s)}readAnyRaw(e){let t=e>>5,s=31&e;if(t<4)if(t<2)return 0===t?this.readUint(s):this.readNint(s);else return 2===t?this.readBin(s):this.readStr(s);return t<6?4===t?this.readArr(s):this.readObj(s):6===t?this.readTag(s):this.readTkn(s)}readMinorLen(e){if(e<24)return e;switch(e){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());case 31:return -1;default:throw 1}}readUint(e){if(e<25)return 24===e?this.reader.u8():e;{if(e<27)return 25===e?this.reader.u16():this.reader.u32();let t=this.reader.u64();return t>0x1fffffffffffff?t:Number(t)}}readNint(e){if(e<25)return 24===e?-this.reader.u8()-1:-e-1;{if(e<27)return 25===e?-this.reader.u16()-1:-this.reader.u32()-1;let t=this.reader.u64();return t>0x1ffffffffffffe?-t-BigInt(1):-Number(t)-1}}readBin(e){let t=this.reader;if(e<=23)return t.buf(e);switch(e){case 24:return t.buf(t.u8());case 25:return t.buf(t.u16());case 26:return t.buf(t.u32());case 27:return t.buf(Number(t.u64()));case 31:{let e=0,t=[];for(;255!==this.reader.peak();){let s=this.readBinChunk();e+=s.length,t.push(s)}this.reader.x++;let s=new Uint8Array(e),i=0,o=t.length;for(let e=0;e<o;e++){let o=t[e];s.set(o,i),i+=o.length}return s}default:throw 1}}readBinChunk(){let e=this.reader.u8(),t=31&e;if(2!=e>>5)throw 2;if(t>27)throw 3;return this.readBin(t)}readAsStr(){let e=this.reader.u8();if(3!=e>>5)throw 11;return this.readStr(31&e)}readStr(e){let t=this.reader;if(e<=23)return t.utf8(e);switch(e){case 24:return t.utf8(t.u8());case 25:return t.utf8(t.u16());case 26:return t.utf8(t.u32());case 27:return t.utf8(Number(t.u64()));case 31:{let e="";for(;255!==t.peak();)e+=this.readStrChunk();return this.reader.x++,e}default:throw 1}}readStrLen(e){if(e<=23)return e;switch(e){case 24:return this.reader.u8();case 25:return this.reader.u16();case 26:return this.reader.u32();case 27:return Number(this.reader.u64());default:throw 1}}readStrChunk(){let e=this.reader.u8(),t=31&e;if(3!=e>>5)throw 4;if(t>27)throw 5;return this.readStr(t)}readArr(e){let t=this.readMinorLen(e);return t>=0?this.readArrRaw(t):this.readArrIndef()}readArrRaw(e){let t=[];for(let s=0;s<e;s++)t.push(this.readAny());return t}readArrIndef(){let e=[];for(;255!==this.reader.peak();)e.push(this.readAny());return this.reader.x++,e}readObj(e){if(e<28){let t=e;switch(e){case 24:t=this.reader.u8();break;case 25:t=this.reader.u16();break;case 26:t=this.reader.u32();break;case 27:t=Number(this.reader.u64())}let s={};for(let e=0;e<t;e++){let e=this.key();if("__proto__"===e)throw 6;let t=this.readAny();s[e]=t}return s}if(31===e)return this.readObjIndef();throw 1}readObjRaw(e){let t={};for(let s=0;s<e;s++){let e=this.key(),s=this.readAny();t[e]=s}return t}readObjIndef(){let e={};for(;255!==this.reader.peak();){let t=this.key();if(255===this.reader.peak())throw 7;let s=this.readAny();e[t]=s}return this.reader.x++,e}key(){let e=this.reader.u8();if(3!=e>>5)return String(this.readAnyRaw(e));let t=this.readStrLen(31&e);if(t>31)return this.reader.utf8(t);let s=this.keyDecoder.decode(this.reader.uint8,this.reader.x,t);return this.reader.skip(t),s}readTag(e){if(e<=23)return this.readTagRaw(e);switch(e){case 24:return this.readTagRaw(this.reader.u8());case 25:return this.readTagRaw(this.reader.u16());case 26:return this.readTagRaw(this.reader.u32());case 27:return this.readTagRaw(Number(this.reader.u64()));default:throw 1}}readTagRaw(e){return new r.JsonPackExtension(e,this.readAny())}readTkn(e){switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case 24:return new n.JsonPackValue(this.reader.u8());case 25:return this.f16();case 26:return this.reader.f32();case 27:return this.reader.f64()}if(e<=23)return new n.JsonPackValue(e);throw 1}f16(){return(0,o.decodeF16)(this.reader.u16())}}},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborEncoder.js"(e,t,s){t.CborEncoder=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/isFloat32.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/JsonPackExtension.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborEncoderFast.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/JsonPackValue.js");class l extends r.CborEncoderFast{writeUnknown(e){this.writeNull()}writeAny(e){switch(typeof e){case"number":return this.writeNumber(e);case"string":return this.writeStr(e);case"boolean":return this.writer.u8(244+ +e);case"object":if(!e)return this.writer.u8(246);switch(e.constructor){case Object:return this.writeObj(e);case Array:return this.writeArr(e);case Uint8Array:return this.writeBin(e);case Map:return this.writeMap(e);case o.JsonPackExtension:return this.writeTag(e.tag,e.val);case n.JsonPackValue:{let t=e.val;return this.writer.buf(t,t.length)}default:if(e instanceof Uint8Array)return this.writeBin(e);if(Array.isArray(e))return this.writeArr(e);if(e instanceof Map)return this.writeMap(e);return this.writeUnknown(e)}case"undefined":return this.writeUndef();case"bigint":return this.writeBigInt(e);default:return this.writeUnknown(e)}}writeFloat(e){(0,i.isFloat32)(e)?this.writer.u8f32(250,e):this.writer.u8f64(251,e)}writeMap(e){this.writeMapHdr(e.size),e.forEach((e,t)=>{this.writeAny(t),this.writeAny(e)})}writeUndef(){this.writer.u8(247)}}t.CborEncoder=l},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/cbor/CborEncoderFast.js"(e,t,s){t.CborEncoderFast=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Writer.js"),o=Number.isSafeInteger;t.CborEncoderFast=class{constructor(e=new i.Writer){this.writer=e}encode(e){return this.writeAny(e),this.writer.flush()}writeAny(e){switch(typeof e){case"number":return this.writeNumber(e);case"string":return this.writeStr(e);case"boolean":return this.writer.u8(244+ +e);case"object":if(!e)return this.writer.u8(246);if(e.constructor===Array)return this.writeArr(e);return this.writeObj(e)}}writeCbor(){this.writer.u8u16(217,55799)}writeEnd(){this.writer.u8(255)}writeNull(){this.writer.u8(246)}writeBoolean(e){e?this.writer.u8(245):this.writer.u8(244)}writeNumber(e){o(e)?this.writeInteger(e):"bigint"==typeof e?this.writeBigInt(e):this.writeFloat(e)}writeBigInt(e){e>=0?this.writeBigUint(e):this.writeBigSint(e)}writeBigUint(e){if(e<=Number.MAX_SAFE_INTEGER)return this.writeUInteger(Number(e));this.writer.u8u64(27,e)}writeBigSint(e){if(e>=Number.MIN_SAFE_INTEGER)return this.encodeNint(Number(e));let t=-BigInt(1)-e;this.writer.u8u64(59,t)}writeInteger(e){e>=0?this.writeUInteger(e):this.encodeNint(e)}writeUInteger(e){let t=this.writer;t.ensureCapacity(9);let s=t.uint8,i=t.x;e<=23?s[i++]=0+e:e<=255?(s[i++]=24,s[i++]=e):e<=65535?(s[i++]=25,t.view.setUint16(i,e),i+=2):e<=0xffffffff?(s[i++]=26,t.view.setUint32(i,e),i+=4):(s[i++]=27,t.view.setBigUint64(i,BigInt(e)),i+=8),t.x=i}encodeNumber(e){this.writeNumber(e)}encodeInteger(e){this.writeInteger(e)}encodeUint(e){this.writeUInteger(e)}encodeNint(e){let t=-1-e,s=this.writer;s.ensureCapacity(9);let i=s.uint8,o=s.x;t<24?i[o++]=32+t:t<=255?(i[o++]=56,i[o++]=t):t<=65535?(i[o++]=57,s.view.setUint16(o,t),o+=2):t<=0xffffffff?(i[o++]=58,s.view.setUint32(o,t),o+=4):(i[o++]=59,s.view.setBigUint64(o,BigInt(t)),o+=8),s.x=o}writeFloat(e){this.writer.u8f64(251,e)}writeBin(e){let t=e.length;this.writeBinHdr(t),this.writer.buf(e,t)}writeBinHdr(e){let t=this.writer;e<=23?t.u8(64+e):e<=255?t.u16(22528+e):e<=65535?t.u8u16(89,e):e<=0xffffffff?t.u8u32(90,e):t.u8u64(91,e)}writeStr(e){let t=this.writer,s=4*e.length;t.ensureCapacity(5+s);let i=t.uint8,o=t.x;s<=23?t.x++:s<=255?(i[t.x++]=120,o=t.x,t.x++):s<=65535?(i[t.x++]=121,o=t.x,t.x+=2):(i[t.x++]=122,o=t.x,t.x+=4);let r=t.utf8(e);s<=23?i[o]=96+r:s<=255?i[o]=r:s<=65535?t.view.setUint16(o,r):t.view.setUint32(o,r)}writeStrHdr(e){let t=this.writer;e<=23?t.u8(96+e):e<=255?t.u16(30720+e):e<=65535?t.u8u16(121,e):t.u8u32(122,e)}writeAsciiStr(e){this.writeStrHdr(e.length),this.writer.ascii(e)}writeArr(e){let t=e.length;this.writeArrHdr(t);for(let s=0;s<t;s++)this.writeAny(e[s])}writeArrHdr(e){let t=this.writer;e<=23?t.u8(128+e):e<=255?t.u16(38912+e):e<=65535?t.u8u16(153,e):e<=0xffffffff?t.u8u32(154,e):t.u8u64(155,e)}writeObj(e){let t=Object.keys(e),s=t.length;this.writeObjHdr(s);for(let i=0;i<s;i++){let s=t[i];this.writeStr(s),this.writeAny(e[s])}}writeObjHdr(e){let t=this.writer;e<=23?t.u8(160+e):e<=255?t.u16(47104+e):e<=65535?t.u8u16(185,e):e<=0xffffffff?t.u8u32(186,e):t.u8u64(187,e)}writeMapHdr(e){this.writeObjHdr(e)}writeStartMap(){this.writer.u8(191)}writeTag(e,t){this.writeTagHdr(e),this.writeAny(t)}writeTagHdr(e){let t=this.writer;e<=23?t.u8(192+e):e<=255?t.u16(55296+e):e<=65535?t.u8u16(217,e):e<=0xffffffff?t.u8u32(218,e):t.u8u64(219,e)}writeTkn(e){let t=this.writer;e<=23?t.u8(224+e):e<=255&&t.u16(63488+e)}writeStartStr(){this.writer.u8(127)}writeStrChunk(e){throw Error("Not implemented")}writeEndStr(){throw Error("Not implemented")}writeStartBin(){this.writer.u8(95)}writeBinChunk(e){throw Error("Not implemented")}writeEndBin(){throw Error("Not implemented")}writeStartArr(){this.writer.u8(159)}writeArrChunk(e){throw Error("Not implemented")}writeEndArr(){this.writer.u8(255)}writeStartObj(){this.writer.u8(191)}writeObjChunk(e,t){throw Error("Not implemented")}writeEndObj(){this.writer.u8(255)}}},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/JsonDecoder.js"(e,t,s){t.JsonDecoder=t.Y=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/utf8/decodeUtf8/index.js"),o=s("../../node_modules/.pnpm/@jsonjoy.com+buffers@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/buffers/lib/Reader.js"),r=s("../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/fromBase64Bin.js"),n=s("../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/util.js"),l=/\\(b|f|n|r|t|"|\/|\\)/g,d=e=>{switch(e){case"\\b":return"\b";case"\\f":return"\f";case"\\n":return"\n";case"\\r":return"\r";case"\\t":return" ";case'\\"':return'"';case"\\/":return"/";case"\\\\":return"\\"}return e},a=(e,t)=>100===e[t]&&97===e[t+1]&&116===e[t+2]&&97===e[t+3]&&58===e[t+4]&&97===e[t+5]&&112===e[t+6]&&112===e[t+7]&&108===e[t+8]&&105===e[t+9]&&99===e[t+10]&&97===e[t+11]&&116===e[t+12]&&105===e[t+13]&&111===e[t+14]&&110===e[t+15]&&47===e[t+16]&&111===e[t+17]&&99===e[t+18]&&116===e[t+19]&&101===e[t+20]&&116===e[t+21]&&45===e[t+22]&&115===e[t+23]&&116===e[t+24]&&114===e[t+25]&&101===e[t+26]&&97===e[t+27]&&109===e[t+28]&&59===e[t+29]&&98===e[t+30]&&97===e[t+31]&&115===e[t+32]&&101===e[t+33]&&54===e[t+34]&&52===e[t+35]&&44===e[t+36],h=String.fromCharCode;t.Y=e=>{let t=e.uint8,s=t.length,i=[],o=e.x,r=0;for(;o<s;){let e=t[o++];if((128&e)==0)if(92===r){switch(e){case 98:e=8;break;case 102:e=12;break;case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 34:e=34;break;case 47:e=47;break;case 92:e=92;break;default:throw Error("Invalid JSON")}r=0}else{if(34===e)break;if(92===(r=e))continue}else{let s=63&t[o++];if((224&e)==192)e=(31&e)<<6|s;else{let r=63&t[o++];if((240&e)==224)e=(31&e)<<12|s<<6|r;else if((248&e)==240){let n=(7&e)<<18|s<<12|r<<6|63&t[o++];if(n>65535){let t=(n-=65536)>>>10&1023|55296;n=56320|1023&n,i.push(t),e=n}else e=n}}}i.push(e)}return e.x=o,h.apply(String,i)},t.JsonDecoder=class{constructor(){this.reader=new o.Reader}read(e){return this.reader.reset(e),this.readAny()}decode(e){return this.reader.reset(e),this.readAny()}readAny(){this.skipWhitespace();let e=this.reader,t=e.x,s=e.uint8,i=s[t];switch(i){case 34:if(100===s[t+1]){let i,o=this.tryReadBin();if(o)return o;if(i=t+2,97===s[i++]&&116===s[i++]&&97===s[i++]&&58===s[i++]&&97===s[i++]&&112===s[i++]&&112===s[i++]&&108===s[i++]&&105===s[i++]&&99===s[i++]&&97===s[i++]&&116===s[i++]&&105===s[i++]&&111===s[i++]&&110===s[i++]&&47===s[i++]&&99===s[i++]&&98===s[i++]&&111===s[i++]&&114===s[i++]&&44===s[i++]&&98===s[i++]&&97===s[i++]&&115===s[i++]&&101===s[i++]&&54===s[i++]&&52===s[i++]&&59===s[i++]&&57===s[i++]&&119===s[i++]&&61===s[i++]&&61===s[i++]&&34===s[i++]){e.x=t+35;return}}return this.readStr();case 91:return this.readArr();case 102:return this.readFalse();case 110:return this.readNull();case 116:return this.readTrue();case 123:return this.readObj();default:if(i>=48&&i<=57||45===i)return this.readNum();throw Error("Invalid JSON")}}skipWhitespace(){let e=this.reader,t=e.uint8,s=e.x;for(;;)switch(t[s]){case 32:case 9:case 10:case 13:s++;continue;default:e.x=s;return}}readNull(){if(0x6e756c6c!==this.reader.u32())throw Error("Invalid JSON");return null}readTrue(){if(0x74727565!==this.reader.u32())throw Error("Invalid JSON");return!0}readFalse(){let e=this.reader;if(102!==e.u8()||0x616c7365!==e.u32())throw Error("Invalid JSON");return!1}readBool(){let e=this.reader;switch(e.uint8[e.x]){case 102:return this.readFalse();case 116:return this.readTrue();default:throw Error("Invalid JSON")}}readNum(){let e=this.reader,t=e.uint8,s=e.x,i=t[s++],o=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o);if(t!=t)throw Error("Invalid JSON");return t}let r=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r);if(t!=t)throw Error("Invalid JSON");return t}let n=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n);if(t!=t)throw Error("Invalid JSON");return t}let l=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l);if(t!=t)throw Error("Invalid JSON");return t}let d=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d);if(t!=t)throw Error("Invalid JSON");return t}let a=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a);if(t!=t)throw Error("Invalid JSON");return t}let u=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u);if(t!=t)throw Error("Invalid JSON");return t}let c=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c);if(t!=t)throw Error("Invalid JSON");return t}let f=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f);if(t!=t)throw Error("Invalid JSON");return t}let m=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m);if(t!=t)throw Error("Invalid JSON");return t}let p=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p);if(t!=t)throw Error("Invalid JSON");return t}let y=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y);if(t!=t)throw Error("Invalid JSON");return t}let b=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b);if(t!=t)throw Error("Invalid JSON");return t}let _=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_);if(t!=t)throw Error("Invalid JSON");return t}let j=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j);if(t!=t)throw Error("Invalid JSON");return t}let w=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w);if(t!=t)throw Error("Invalid JSON");return t}let g=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g);if(t!=t)throw Error("Invalid JSON");return t}let S=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g,S);if(t!=t)throw Error("Invalid JSON");return t}let E=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g,S,E);if(t!=t)throw Error("Invalid JSON");return t}let v=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g,S,E,v);if(t!=t)throw Error("Invalid JSON");return t}let O=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g,S,E,v,O);if(t!=t)throw Error("Invalid JSON");return t}let k=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g,S,E,v,O,k);if(t!=t)throw Error("Invalid JSON");return t}let T=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g,S,E,v,O,k,T);if(t!=t)throw Error("Invalid JSON");return t}let F=i;if(!(i=t[s++])||(i<45||i>57)&&43!==i&&69!==i&&101!==i){e.x=s-1;let t=+h(o,r,n,l,d,a,u,c,f,m,p,y,b,_,j,w,g,S,E,v,O,k,T,F);if(t!=t)throw Error("Invalid JSON");return t}throw Error("Invalid JSON")}readStr(){let e=this.reader,t=e.uint8;if(34!==t[e.x++])throw Error("Invalid JSON");let s=e.x,o=(0,n.findEndingQuote)(t,s),r=(0,i.decodeUtf8)(t,s,o-s);return r=r.replace(l,d),e.x=o+1,r}tryReadBin(){let e=this.reader,t=e.uint8,s=e.x;if(34!==t[s++]||!a(t,s))return;let i=s+=37;s=(0,n.findEndingQuote)(t,s),e.x=i;let o=(0,r.fromBase64Bin)(e.view,i,s-i);return e.x=s+1,o}readBin(){let e=this.reader,t=e.uint8,s=e.x;if(34!==t[s++]||!a(t,s))throw Error("Invalid JSON");let i=s+=37;s=(0,n.findEndingQuote)(t,s),e.x=i;let o=(0,r.fromBase64Bin)(e.view,i,s-i);return e.x=s+1,o}readArr(){let e=this.reader;if(91!==e.u8())throw Error("Invalid JSON");let t=[],s=e.uint8,i=!0;for(;;){this.skipWhitespace();let o=s[e.x];if(93===o)return e.x++,t;if(44===o)e.x++;else if(!i)throw Error("Invalid JSON");this.skipWhitespace(),t.push(this.readAny()),i=!1}}readObj(){let e=this.reader;if(123!==e.u8())throw Error("Invalid JSON");let s={},i=e.uint8,o=!0;for(;;){this.skipWhitespace();let r=i[e.x];if(125===r)return e.x++,s;if(44===r)e.x++;else if(!o)throw Error("Invalid JSON");if(this.skipWhitespace(),34!==(r=i[e.x++]))throw Error("Invalid JSON");let n=(0,t.Y)(e);if("__proto__"===n||(this.skipWhitespace(),58!==e.u8()))throw Error("Invalid JSON");this.skipWhitespace(),s[n]=this.readAny(),o=!1}}}},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/JsonEncoder.js"(e,t,s){t.JsonEncoder=void 0;let i=s("../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/toBase64Bin.js");t.JsonEncoder=class{constructor(e){this.writer=e}encode(e){let t=this.writer;return t.reset(),this.writeAny(e),t.flush()}writeUnknown(e){this.writeNull()}writeAny(e){switch(typeof e){case"boolean":return this.writeBoolean(e);case"number":return this.writeNumber(e);case"string":return this.writeStr(e);case"object":if(null===e)return this.writeNull();switch(e.constructor){case Object:return this.writeObj(e);case Array:return this.writeArr(e);case Uint8Array:return this.writeBin(e);default:if(e instanceof Uint8Array)return this.writeBin(e);if(Array.isArray(e))return this.writeArr(e);return this.writeUnknown(e)}case"undefined":return this.writeUndef();default:return this.writeUnknown(e)}}writeNull(){this.writer.u32(0x6e756c6c)}writeUndef(){let e=this.writer;e.ensureCapacity(35);let t=e.view,s=e.x;t.setUint32(s,0x22646174),s+=4,t.setUint32(s,0x613a6170),s+=4,t.setUint32(s,0x706c6963),s+=4,t.setUint32(s,0x6174696f),s+=4,t.setUint32(s,0x6e2f6362),s+=4,t.setUint32(s,0x6f722c62),s+=4,t.setUint32(s,0x61736536),s+=4,t.setUint32(s,0x343b3977),s+=4,t.setUint16(s,15677),s+=2,e.uint8[s++]=34,e.x=s}writeBoolean(e){e?this.writer.u32(0x74727565):this.writer.u8u32(102,0x616c7365)}writeNumber(e){let t=e.toString();this.writer.ascii(t)}writeInteger(e){this.writeNumber((0|e)===e?e:Math.trunc(e))}writeUInteger(e){this.writeInteger(e<0?-e:e)}writeFloat(e){this.writeNumber(e)}writeBin(e){let t=this.writer,s=e.length;t.ensureCapacity(41+(s<<1));let o=t.view,r=t.x;o.setUint32(r,0x22646174),r+=4,o.setUint32(r,0x613a6170),r+=4,o.setUint32(r,0x706c6963),r+=4,o.setUint32(r,0x6174696f),r+=4,o.setUint32(r,0x6e2f6f63),r+=4,o.setUint32(r,0x7465742d),r+=4,o.setUint32(r,0x73747265),r+=4,o.setUint32(r,0x616d3b62),r+=4,o.setUint32(r,0x61736536),r+=4,o.setUint16(r,13356),r+=2,r=(0,i.toBase64Bin)(e,0,s,o,r),t.uint8[r++]=34,t.x=r}writeStr(e){let t=this.writer,s=e.length;if(t.ensureCapacity(4*s+2),s<256){let i=t.x,o=i,r=t.uint8;r[o++]=34;for(let n=0;n<s;n++){let s=e.charCodeAt(n);switch(s){case 34:case 92:r[o++]=92}if(s<32||s>126){t.x=i;let s=JSON.stringify(e);t.ensureCapacity(4*s.length+4),t.utf8(s);return}r[o++]=s}r[o++]=34,t.x=o;return}let i=JSON.stringify(e);t.ensureCapacity(4*i.length+4),t.utf8(i)}writeAsciiStr(e){let t=e.length,s=this.writer;s.ensureCapacity(2*t+2);let i=s.uint8,o=s.x;i[o++]=34;for(let s=0;s<t;s++){let t=e.charCodeAt(s);switch(t){case 34:case 92:i[o++]=92}i[o++]=t}i[o++]=34,s.x=o}writeArr(e){let t=this.writer;t.u8(91);let s=e.length-1;for(let i=0;i<s;i++)this.writeAny(e[i]),t.u8(44);s>=0&&this.writeAny(e[s]),t.u8(93)}writeArrSeparator(){this.writer.u8(44)}writeObj(e){let t=this.writer,s=Object.keys(e),i=s.length;if(!i)return t.u16(31613);t.u8(123);for(let o=0;o<i;o++){let i=s[o],r=e[i];this.writeStr(i),t.u8(58),this.writeAny(r),t.u8(44)}t.uint8[t.x-1]=125}writeObjSeparator(){this.writer.u8(44)}writeObjKeySeparator(){this.writer.u8(58)}writeStartStr(){throw Error("Method not implemented.")}writeStrChunk(e){throw Error("Method not implemented.")}writeEndStr(){throw Error("Method not implemented.")}writeStartBin(){throw Error("Method not implemented.")}writeBinChunk(e){throw Error("Method not implemented.")}writeEndBin(){throw Error("Method not implemented.")}writeStartArr(){this.writer.u8(91)}writeArrChunk(e){throw Error("Method not implemented.")}writeEndArr(){this.writer.u8(93)}writeStartObj(){this.writer.u8(123)}writeObjChunk(e,t){throw Error("Method not implemented.")}writeEndObj(){this.writer.u8(125)}}},"../../node_modules/.pnpm/@jsonjoy.com+json-pack@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/json-pack/lib/json/util.js"(e,t){t.findEndingQuote=void 0,t.findEndingQuote=(e,t)=>{let s=e.length,i=e[t],o=0;for(;t<s&&(34!==i||92===o);)o=92===i&&92===o?0:i,i=e[++t];if(t===s)throw Error("Invalid JSON");return t}},"../../node_modules/.pnpm/glob-to-regex.js@1.2.0_tslib@2.8.1/node_modules/glob-to-regex.js/lib/index.js"(e,t){t.toRegex=void 0;let s=(e,s,i,o)=>{let r=s,n=[],l="",d=1;for(;r<e.length&&d>0;){let t=e[r];if("("===t)d++,l+=t,r++;else if(")"===t){if(0==--d){n.push(l),r++;break}l+=t,r++}else"|"===t&&1===d?(n.push(l),l=""):l+=t,r++}if(0!==d)return;let a="",h=n.length;for(let e=0;e<h;e++)a+=(a?"|":"")+(0,t.toRegex)(n[e],o).source.replace(/^\^/,"").replace(/\$$/,"");switch(i){case"?":return[`(?:${a})?`,r];case"*":return[`(?:${a})*`,r];case"+":return[`(?:${a})+`,r];case"@":return[`(?:${a})`,r];case"!":return[`(?!${a})[^/]*`,r]}};t.toRegex=(e,i)=>{let o="",r=0,n=()=>{r++;let s=[],o="",n=!1;for(;r<e.length;){let t=e[r];if("}"===t){s.push(o),r++,n=!0;break}if(","===t){s.push(o),o="",r++;continue}o+=t,r++}if(!n){let e;return"\\{"+(e=o,/[.^$+{}()|\\]/.test(e)?`\\${e}`:e)}let l=s.map(e=>(0,t.toRegex)(e,i).source.replace(/^\^/,"").replace(/\$$/,"")).join("|");return`(?:${l})`},l=!!i?.extglob;for(;r<e.length;){let t=e[r];if(l&&"("===e[r+1]&&("?"===t||"*"===t||"+"===t||"@"===t||"!"===t)){let n=s(e,r+2,t,i);if(n){o+=n[0],r=n[1];continue}}switch(t){case"*":if("*"===e[r+1]){let t=r+2;for(;"*"===e[t];)t++;"/"===e[t]?(o+="(?:.*/)?",r=t+1):(o+=".*",r=t)}else o+="[^/]*",r++;break;case"?":o+="[^/]",r++;break;case"[":{let t="[";for(++r<e.length&&"!"===e[r]&&(t+="^",r++),r<e.length&&"]"===e[r]&&(t+="]",r++);r<e.length&&"]"!==e[r];){let s=e[r];t+="\\"===s?"\\\\":s,r++}if(r<e.length&&"]"===e[r])t+="]",r++;else{o+="\\[";continue}o+=t;break}case"{":o+=n();break;case"/":o+="/",r++;break;case".":case"^":case"$":case"+":case"(":case")":case"|":case"\\":o+=`\\${t}`,r++;break;default:o+=t,r++}}return RegExp("^"+o+"$",i?.nocase?"i":"")}},"../../node_modules/.pnpm/memfs@4.68.0/node_modules/memfs/lib/index.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.memfs=t.fs=t.vol=t.Volume=void 0,t.createFsFromVolume=a;let i=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node/lib/index.js");Object.defineProperty(t,"Volume",{enumerable:!0,get:function(){return i.Volume}});let o=s("../../node_modules/.pnpm/@jsonjoy.com+fs-node-utils@4.68.0_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-utils/lib/index.js"),{F_OK:r,R_OK:n,W_OK:l,X_OK:d}=o.constants;function a(e){let t={F_OK:r,R_OK:n,W_OK:l,X_OK:d,constants:o.constants,Stats:i.Stats,Dirent:i.Dirent};for(let s of i.fsSynchronousApiList)"function"==typeof e[s]&&(t[s]=e[s].bind(e));for(let s of i.fsCallbackApiList)"function"==typeof e[s]&&(t[s]=e[s].bind(e));return t.StatWatcher=e.StatWatcher,t.FSWatcher=e.FSWatcher,t.WriteStream=e.WriteStream,t.ReadStream=e.ReadStream,t.promises=e.promises,"function"==typeof e.realpath&&(t.realpath=e.realpath.bind(e),"function"==typeof e.realpath.native&&(t.realpath.native=e.realpath.native.bind(e))),"function"==typeof e.realpathSync&&(t.realpathSync=e.realpathSync.bind(e),"function"==typeof e.realpathSync.native&&(t.realpathSync.native=e.realpathSync.native.bind(e))),t._toUnixTimestamp=i.toUnixTimestamp,t.__vol=e,t}t.vol=new i.Volume,t.fs=a(t.vol),t.memfs=(e={},t="/")=>{let s="string"==typeof t?{cwd:t}:t,o=s.cwd??(s.process?void 0:"/"),r=i.Volume.fromNestedJSON(e,o,{process:s.process});return{fs:a(r),vol:r}},e.exports={...e.exports,...t.fs},e.exports.semantic=!0},"../../node_modules/.pnpm/thingies@2.6.0_tslib@2.8.1/node_modules/thingies/lib/fanout.js"(e,t){t.FanOut=void 0,t.FanOut=class{constructor(){this.listeners=new Set}emit(e){this.listeners.forEach(t=>t(e))}listen(e){let t=this.listeners;return t.add(e),()=>t.delete(e)}}},"../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/index.js"(e,t,s){Object.defineProperty(t,"__esModule",{value:!0});let i=s("../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs");i.__exportStar(s("../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/printTree.js"),t),i.__exportStar(s("../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/printBinary.js"),t),i.__exportStar(s("../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/printJson.js"),t)},"../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/printBinary.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.printBinary=void 0,t.printBinary=(e="",t)=>{let s=t[0],i=t[1],o="";return s&&(o+="\n"+e+"← "+s(e+" ")),i&&(o+="\n"+e+"→ "+i(e+" ")),o}},"../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/printJson.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.printJson=void 0,t.printJson=(e="",t,s=2)=>(JSON.stringify(t,null,s)||"nil").split("\n").join("\n"+e)},"../../node_modules/.pnpm/tree-dump@1.1.0_tslib@2.8.1/node_modules/tree-dump/lib/printTree.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.printTree=void 0,t.printTree=(e="",t)=>{let s="",i=t.length-1;for(;i>=0&&!t[i];i--);for(let o=0;o<=i;o++){let r=t[o];if(!r)continue;let n=o===i,l=r(e+(n?" ":"│")+" ");s+="\n"+e+(l?n?"└─":"├─":"│")+(l?" "+l:"")}return s}},"../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"(e,t,s){var i=Object.create?function(e,t,s,i){void 0===i&&(i=s);var o=Object.getOwnPropertyDescriptor(t,s);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,i,o)}:function(e,t,s,i){void 0===i&&(i=s),e[i]=t[s]};function o(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||i(t,e,s)}function r(e){return e&&e.__esModule?e:{default:e}}s.d(t,{__exportStar:()=>o,__importDefault:()=>r})}});let t=e("../../node_modules/.pnpm/memfs@4.68.0/node_modules/memfs/lib/index.js");var s=t.Volume,i=t.createFsFromVolume,o=t.fs,r=t.memfs,n=t.semantic,l=t.vol,d=!0;export{s as Volume,i as createFsFromVolume,o as fs,d as __esModule,r as memfs,n as semantic,l as vol};