@vrcalphabet/web-fs 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +131 -0
- package/dist/main.d.ts +387 -0
- package/dist/main.js +3801 -0
- package/dist/main.umd.cjs +12 -0
- package/package.json +38 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
(function(ie,Ee){typeof exports=="object"&&typeof module<"u"?Ee(exports):typeof define=="function"&&define.amd?define(["exports"],Ee):(ie=typeof globalThis<"u"?globalThis:ie||self,Ee(ie.main={}))})(this,(function(ie){"use strict";function Ee(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function bt(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var n=i.default;if(typeof n=="function"){var u=function f(){var y=!1;try{y=this instanceof f}catch{}return y?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};u.prototype=n.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(i).forEach(function(f){var y=Object.getOwnPropertyDescriptor(i,f);Object.defineProperty(u,f,y.get?y:{enumerable:!0,get:function(){return i[f]}})}),u}var Ue={exports:{}},Me={exports:{}},Ct;function vr(){return Ct||(Ct=1,(function(){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(u,f){return u<<f|u>>>32-f},rotr:function(u,f){return u<<32-f|u>>>f},endian:function(u){if(u.constructor==Number)return n.rotl(u,8)&16711935|n.rotl(u,24)&4278255360;for(var f=0;f<u.length;f++)u[f]=n.endian(u[f]);return u},randomBytes:function(u){for(var f=[];u>0;u--)f.push(Math.floor(Math.random()*256));return f},bytesToWords:function(u){for(var f=[],y=0,A=0;y<u.length;y++,A+=8)f[A>>>5]|=u[y]<<24-A%32;return f},wordsToBytes:function(u){for(var f=[],y=0;y<u.length*32;y+=8)f.push(u[y>>>5]>>>24-y%32&255);return f},bytesToHex:function(u){for(var f=[],y=0;y<u.length;y++)f.push((u[y]>>>4).toString(16)),f.push((u[y]&15).toString(16));return f.join("")},hexToBytes:function(u){for(var f=[],y=0;y<u.length;y+=2)f.push(parseInt(u.substr(y,2),16));return f},bytesToBase64:function(u){for(var f=[],y=0;y<u.length;y+=3)for(var A=u[y]<<16|u[y+1]<<8|u[y+2],s=0;s<4;s++)y*8+s*6<=u.length*8?f.push(i.charAt(A>>>6*(3-s)&63)):f.push("=");return f.join("")},base64ToBytes:function(u){u=u.replace(/[^A-Z0-9+\/]/ig,"");for(var f=[],y=0,A=0;y<u.length;A=++y%4)A!=0&&f.push((i.indexOf(u.charAt(y-1))&Math.pow(2,-2*A+8)-1)<<A*2|i.indexOf(u.charAt(y))>>>6-A*2);return f}};Me.exports=n})()),Me.exports}var ke,Ht;function Tt(){if(Ht)return ke;Ht=1;var i={utf8:{stringToBytes:function(n){return i.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(i.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var u=[],f=0;f<n.length;f++)u.push(n.charCodeAt(f)&255);return u},bytesToString:function(n){for(var u=[],f=0;f<n.length;f++)u.push(String.fromCharCode(n[f]));return u.join("")}}};return ke=i,ke}var De,Ft;function Sr(){if(Ft)return De;Ft=1,De=function(u){return u!=null&&(i(u)||n(u)||!!u._isBuffer)};function i(u){return!!u.constructor&&typeof u.constructor.isBuffer=="function"&&u.constructor.isBuffer(u)}function n(u){return typeof u.readFloatLE=="function"&&typeof u.slice=="function"&&i(u.slice(0,0))}return De}var Bt;function br(){return Bt||(Bt=1,(function(){var i=vr(),n=Tt().utf8,u=Sr(),f=Tt().bin,y=function(A,s){A.constructor==String?s&&s.encoding==="binary"?A=f.stringToBytes(A):A=n.stringToBytes(A):u(A)?A=Array.prototype.slice.call(A,0):!Array.isArray(A)&&A.constructor!==Uint8Array&&(A=A.toString());for(var r=i.bytesToWords(A),g=A.length*8,l=1732584193,p=-271733879,h=-1732584194,c=271733878,E=0;E<r.length;E++)r[E]=(r[E]<<8|r[E]>>>24)&16711935|(r[E]<<24|r[E]>>>8)&4278255360;r[g>>>5]|=128<<g%32,r[(g+64>>>9<<4)+14]=g;for(var C=y._ff,B=y._gg,S=y._hh,R=y._ii,E=0;E<r.length;E+=16){var I=l,m=p,F=h,_=c;l=C(l,p,h,c,r[E+0],7,-680876936),c=C(c,l,p,h,r[E+1],12,-389564586),h=C(h,c,l,p,r[E+2],17,606105819),p=C(p,h,c,l,r[E+3],22,-1044525330),l=C(l,p,h,c,r[E+4],7,-176418897),c=C(c,l,p,h,r[E+5],12,1200080426),h=C(h,c,l,p,r[E+6],17,-1473231341),p=C(p,h,c,l,r[E+7],22,-45705983),l=C(l,p,h,c,r[E+8],7,1770035416),c=C(c,l,p,h,r[E+9],12,-1958414417),h=C(h,c,l,p,r[E+10],17,-42063),p=C(p,h,c,l,r[E+11],22,-1990404162),l=C(l,p,h,c,r[E+12],7,1804603682),c=C(c,l,p,h,r[E+13],12,-40341101),h=C(h,c,l,p,r[E+14],17,-1502002290),p=C(p,h,c,l,r[E+15],22,1236535329),l=B(l,p,h,c,r[E+1],5,-165796510),c=B(c,l,p,h,r[E+6],9,-1069501632),h=B(h,c,l,p,r[E+11],14,643717713),p=B(p,h,c,l,r[E+0],20,-373897302),l=B(l,p,h,c,r[E+5],5,-701558691),c=B(c,l,p,h,r[E+10],9,38016083),h=B(h,c,l,p,r[E+15],14,-660478335),p=B(p,h,c,l,r[E+4],20,-405537848),l=B(l,p,h,c,r[E+9],5,568446438),c=B(c,l,p,h,r[E+14],9,-1019803690),h=B(h,c,l,p,r[E+3],14,-187363961),p=B(p,h,c,l,r[E+8],20,1163531501),l=B(l,p,h,c,r[E+13],5,-1444681467),c=B(c,l,p,h,r[E+2],9,-51403784),h=B(h,c,l,p,r[E+7],14,1735328473),p=B(p,h,c,l,r[E+12],20,-1926607734),l=S(l,p,h,c,r[E+5],4,-378558),c=S(c,l,p,h,r[E+8],11,-2022574463),h=S(h,c,l,p,r[E+11],16,1839030562),p=S(p,h,c,l,r[E+14],23,-35309556),l=S(l,p,h,c,r[E+1],4,-1530992060),c=S(c,l,p,h,r[E+4],11,1272893353),h=S(h,c,l,p,r[E+7],16,-155497632),p=S(p,h,c,l,r[E+10],23,-1094730640),l=S(l,p,h,c,r[E+13],4,681279174),c=S(c,l,p,h,r[E+0],11,-358537222),h=S(h,c,l,p,r[E+3],16,-722521979),p=S(p,h,c,l,r[E+6],23,76029189),l=S(l,p,h,c,r[E+9],4,-640364487),c=S(c,l,p,h,r[E+12],11,-421815835),h=S(h,c,l,p,r[E+15],16,530742520),p=S(p,h,c,l,r[E+2],23,-995338651),l=R(l,p,h,c,r[E+0],6,-198630844),c=R(c,l,p,h,r[E+7],10,1126891415),h=R(h,c,l,p,r[E+14],15,-1416354905),p=R(p,h,c,l,r[E+5],21,-57434055),l=R(l,p,h,c,r[E+12],6,1700485571),c=R(c,l,p,h,r[E+3],10,-1894986606),h=R(h,c,l,p,r[E+10],15,-1051523),p=R(p,h,c,l,r[E+1],21,-2054922799),l=R(l,p,h,c,r[E+8],6,1873313359),c=R(c,l,p,h,r[E+15],10,-30611744),h=R(h,c,l,p,r[E+6],15,-1560198380),p=R(p,h,c,l,r[E+13],21,1309151649),l=R(l,p,h,c,r[E+4],6,-145523070),c=R(c,l,p,h,r[E+11],10,-1120210379),h=R(h,c,l,p,r[E+2],15,718787259),p=R(p,h,c,l,r[E+9],21,-343485551),l=l+I>>>0,p=p+m>>>0,h=h+F>>>0,c=c+_>>>0}return i.endian([l,p,h,c])};y._ff=function(A,s,r,g,l,p,h){var c=A+(s&r|~s&g)+(l>>>0)+h;return(c<<p|c>>>32-p)+s},y._gg=function(A,s,r,g,l,p,h){var c=A+(s&g|r&~g)+(l>>>0)+h;return(c<<p|c>>>32-p)+s},y._hh=function(A,s,r,g,l,p,h){var c=A+(s^r^g)+(l>>>0)+h;return(c<<p|c>>>32-p)+s},y._ii=function(A,s,r,g,l,p,h){var c=A+(r^(s|~g))+(l>>>0)+h;return(c<<p|c>>>32-p)+s},y._blocksize=16,y._digestsize=16,Ue.exports=function(A,s){if(A==null)throw new Error("Illegal argument "+A);var r=i.wordsToBytes(y(A,s));return s&&s.asBytes?r:s&&s.asString?f.bytesToString(r):i.bytesToHex(r)}})()),Ue.exports}var Cr=br();const Hr=Ee(Cr);class Pe{_handle;constructor(n){this._handle=n}get name(){return this._handle.name}async _verifyPermission(n){return await this._handle.queryPermission({mode:n})==="granted"||await this._handle.requestPermission({mode:n})==="granted"}}class ye extends Pe{type="file";_handle;constructor(n){super(n),this._handle=n}static async create(n,u="read"){const f=new this(n);if(await f._verifyPermission(u))return f}async info(){const n=await this._handle.getFile();return{name:n.name,size:n.size,mimeType:n.type,lastModified:n.lastModified}}async text(){return(await this._handle.getFile()).text()}async json(){try{return JSON.parse(await this.text())}catch{return}}async blob(){return await this._handle.getFile()}async arrayBuffer(){return(await this.blob()).arrayBuffer()}async hash(n="sha256"){if(n==="md5"){const u=await this.text();return Hr(u)}else{const u=await this.arrayBuffer(),f=await crypto.subtle.digest({sha256:"SHA-256",sha512:"SHA-512"}[n],u);return Array.from(new Uint8Array(f)).map(s=>s.toString(16).padStart(2,"0")).join("")}}async write(n){return this._write({data:n,append:!1})}async append(n){return this._write({data:n,append:!0})}async readStream(){return(await this._handle.getFile()).stream()}async writeStream(n){return await this._handle.createWritable(n)}async _write(n){try{const u=await this._handle.createWritable({keepExistingData:n.append});if(n.append){const f=await this._handle.getFile();u.seek(f.size)}return u.write(n.data),u.close(),!0}catch{return!1}}}const le={},Tr=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};var Ge={},we={},$t;function Fr(){if($t)return we;$t=1,we.byteLength=r,we.toByteArray=l,we.fromByteArray=c;for(var i=[],n=[],u=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,A=f.length;y<A;++y)i[y]=f[y],n[f.charCodeAt(y)]=y;n[45]=62,n[95]=63;function s(E){var C=E.length;if(C%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var B=E.indexOf("=");B===-1&&(B=C);var S=B===C?0:4-B%4;return[B,S]}function r(E){var C=s(E),B=C[0],S=C[1];return(B+S)*3/4-S}function g(E,C,B){return(C+B)*3/4-B}function l(E){var C,B=s(E),S=B[0],R=B[1],I=new u(g(E,S,R)),m=0,F=R>0?S-4:S,_;for(_=0;_<F;_+=4)C=n[E.charCodeAt(_)]<<18|n[E.charCodeAt(_+1)]<<12|n[E.charCodeAt(_+2)]<<6|n[E.charCodeAt(_+3)],I[m++]=C>>16&255,I[m++]=C>>8&255,I[m++]=C&255;return R===2&&(C=n[E.charCodeAt(_)]<<2|n[E.charCodeAt(_+1)]>>4,I[m++]=C&255),R===1&&(C=n[E.charCodeAt(_)]<<10|n[E.charCodeAt(_+1)]<<4|n[E.charCodeAt(_+2)]>>2,I[m++]=C>>8&255,I[m++]=C&255),I}function p(E){return i[E>>18&63]+i[E>>12&63]+i[E>>6&63]+i[E&63]}function h(E,C,B){for(var S,R=[],I=C;I<B;I+=3)S=(E[I]<<16&16711680)+(E[I+1]<<8&65280)+(E[I+2]&255),R.push(p(S));return R.join("")}function c(E){for(var C,B=E.length,S=B%3,R=[],I=16383,m=0,F=B-S;m<F;m+=I)R.push(h(E,m,m+I>F?F:m+I));return S===1?(C=E[B-1],R.push(i[C>>2]+i[C<<4&63]+"==")):S===2&&(C=(E[B-2]<<8)+E[B-1],R.push(i[C>>10]+i[C>>4&63]+i[C<<2&63]+"=")),R.join("")}return we}var Se={};var It;function Br(){return It||(It=1,Se.read=function(i,n,u,f,y){var A,s,r=y*8-f-1,g=(1<<r)-1,l=g>>1,p=-7,h=u?y-1:0,c=u?-1:1,E=i[n+h];for(h+=c,A=E&(1<<-p)-1,E>>=-p,p+=r;p>0;A=A*256+i[n+h],h+=c,p-=8);for(s=A&(1<<-p)-1,A>>=-p,p+=f;p>0;s=s*256+i[n+h],h+=c,p-=8);if(A===0)A=1-l;else{if(A===g)return s?NaN:(E?-1:1)*(1/0);s=s+Math.pow(2,f),A=A-l}return(E?-1:1)*s*Math.pow(2,A-f)},Se.write=function(i,n,u,f,y,A){var s,r,g,l=A*8-y-1,p=(1<<l)-1,h=p>>1,c=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=f?0:A-1,C=f?1:-1,B=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(r=isNaN(n)?1:0,s=p):(s=Math.floor(Math.log(n)/Math.LN2),n*(g=Math.pow(2,-s))<1&&(s--,g*=2),s+h>=1?n+=c/g:n+=c*Math.pow(2,1-h),n*g>=2&&(s++,g/=2),s+h>=p?(r=0,s=p):s+h>=1?(r=(n*g-1)*Math.pow(2,y),s=s+h):(r=n*Math.pow(2,h-1)*Math.pow(2,y),s=0));y>=8;i[u+E]=r&255,E+=C,r/=256,y-=8);for(s=s<<y|r,l+=y;l>0;i[u+E]=s&255,E+=C,s/=256,l-=8);i[u+E-C]|=B*128}),Se}var Lt;function $r(){return Lt||(Lt=1,(function(i){var n=Fr(),u=Br(),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;i.Buffer=r,i.SlowBuffer=I,i.INSPECT_MAX_BYTES=50;var y=2147483647;i.kMaxLength=y,r.TYPED_ARRAY_SUPPORT=A(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function A(){try{var a=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(a,e),a.foo()===42}catch{return!1}}Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}});function s(a){if(a>y)throw new RangeError('The value "'+a+'" is invalid for option "size"');var e=new Uint8Array(a);return Object.setPrototypeOf(e,r.prototype),e}function r(a,e,t){if(typeof a=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(a)}return g(a,e,t)}r.poolSize=8192;function g(a,e,t){if(typeof a=="string")return c(a,e);if(ArrayBuffer.isView(a))return C(a);if(a==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a);if(ue(a,ArrayBuffer)||a&&ue(a.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ue(a,SharedArrayBuffer)||a&&ue(a.buffer,SharedArrayBuffer)))return B(a,e,t);if(typeof a=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=a.valueOf&&a.valueOf();if(o!=null&&o!==a)return r.from(o,e,t);var d=S(a);if(d)return d;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof a[Symbol.toPrimitive]=="function")return r.from(a[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a)}r.from=function(a,e,t){return g(a,e,t)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function l(a){if(typeof a!="number")throw new TypeError('"size" argument must be of type number');if(a<0)throw new RangeError('The value "'+a+'" is invalid for option "size"')}function p(a,e,t){return l(a),a<=0?s(a):e!==void 0?typeof t=="string"?s(a).fill(e,t):s(a).fill(e):s(a)}r.alloc=function(a,e,t){return p(a,e,t)};function h(a){return l(a),s(a<0?0:R(a)|0)}r.allocUnsafe=function(a){return h(a)},r.allocUnsafeSlow=function(a){return h(a)};function c(a,e){if((typeof e!="string"||e==="")&&(e="utf8"),!r.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=m(a,e)|0,o=s(t),d=o.write(a,e);return d!==t&&(o=o.slice(0,d)),o}function E(a){for(var e=a.length<0?0:R(a.length)|0,t=s(e),o=0;o<e;o+=1)t[o]=a[o]&255;return t}function C(a){if(ue(a,Uint8Array)){var e=new Uint8Array(a);return B(e.buffer,e.byteOffset,e.byteLength)}return E(a)}function B(a,e,t){if(e<0||a.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(a.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');var o;return e===void 0&&t===void 0?o=new Uint8Array(a):t===void 0?o=new Uint8Array(a,e):o=new Uint8Array(a,e,t),Object.setPrototypeOf(o,r.prototype),o}function S(a){if(r.isBuffer(a)){var e=R(a.length)|0,t=s(e);return t.length===0||a.copy(t,0,0,e),t}if(a.length!==void 0)return typeof a.length!="number"||oe(a.length)?s(0):E(a);if(a.type==="Buffer"&&Array.isArray(a.data))return E(a.data)}function R(a){if(a>=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return a|0}function I(a){return+a!=a&&(a=0),r.alloc(+a)}r.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==r.prototype},r.compare=function(e,t){if(ue(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),ue(t,Uint8Array)&&(t=r.from(t,t.offset,t.byteLength)),!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var o=e.length,d=t.length,w=0,v=Math.min(o,d);w<v;++w)if(e[w]!==t[w]){o=e[w],d=t[w];break}return o<d?-1:d<o?1:0},r.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return r.alloc(0);var o;if(t===void 0)for(t=0,o=0;o<e.length;++o)t+=e[o].length;var d=r.allocUnsafe(t),w=0;for(o=0;o<e.length;++o){var v=e[o];if(ue(v,Uint8Array))w+v.length>d.length?r.from(v).copy(d,w):Uint8Array.prototype.set.call(d,v,w);else if(r.isBuffer(v))v.copy(d,w);else throw new TypeError('"list" argument must be an Array of Buffers');w+=v.length}return d};function m(a,e){if(r.isBuffer(a))return a.length;if(ArrayBuffer.isView(a)||ue(a,ArrayBuffer))return a.byteLength;if(typeof a!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof a);var t=a.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&t===0)return 0;for(var d=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return k(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return V(a).length;default:if(d)return o?-1:k(a).length;e=(""+e).toLowerCase(),d=!0}}r.byteLength=m;function F(a,e,t){var o=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(a||(a="utf8");;)switch(a){case"hex":return se(this,e,t);case"utf8":case"utf-8":return X(this,e,t);case"ascii":return P(this,e,t);case"latin1":case"binary":return Y(this,e,t);case"base64":return $(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,e,t);default:if(o)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),o=!0}}r.prototype._isBuffer=!0;function _(a,e,t){var o=a[e];a[e]=a[t],a[t]=o}r.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)_(this,t,t+1);return this},r.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},r.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},r.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?X(this,0,e):F.apply(this,arguments)},r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=function(e){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:r.compare(this,e)===0},r.prototype.inspect=function(){var e="",t=i.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},f&&(r.prototype[f]=r.prototype.inspect),r.prototype.compare=function(e,t,o,d,w){if(ue(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),!r.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),o===void 0&&(o=e?e.length:0),d===void 0&&(d=0),w===void 0&&(w=this.length),t<0||o>e.length||d<0||w>this.length)throw new RangeError("out of range index");if(d>=w&&t>=o)return 0;if(d>=w)return-1;if(t>=o)return 1;if(t>>>=0,o>>>=0,d>>>=0,w>>>=0,this===e)return 0;for(var v=w-d,U=o-t,q=Math.min(v,U),G=this.slice(d,w),te=e.slice(t,o),Z=0;Z<q;++Z)if(G[Z]!==te[Z]){v=G[Z],U=te[Z];break}return v<U?-1:U<v?1:0};function L(a,e,t,o,d){if(a.length===0)return-1;if(typeof t=="string"?(o=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,oe(t)&&(t=d?0:a.length-1),t<0&&(t=a.length+t),t>=a.length){if(d)return-1;t=a.length-1}else if(t<0)if(d)t=0;else return-1;if(typeof e=="string"&&(e=r.from(e,o)),r.isBuffer(e))return e.length===0?-1:T(a,e,t,o,d);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?d?Uint8Array.prototype.indexOf.call(a,e,t):Uint8Array.prototype.lastIndexOf.call(a,e,t):T(a,[e],t,o,d);throw new TypeError("val must be string, number or Buffer")}function T(a,e,t,o,d){var w=1,v=a.length,U=e.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(a.length<2||e.length<2)return-1;w=2,v/=2,U/=2,t/=2}function q(_r,xr){return w===1?_r[xr]:_r.readUInt16BE(xr*w)}var G;if(d){var te=-1;for(G=t;G<v;G++)if(q(a,G)===q(e,te===-1?0:G-te)){if(te===-1&&(te=G),G-te+1===U)return te*w}else te!==-1&&(G-=G-te),te=-1}else for(t+U>v&&(t=v-U),G=t;G>=0;G--){for(var Z=!0,Ne=0;Ne<U;Ne++)if(q(a,G+Ne)!==q(e,Ne)){Z=!1;break}if(Z)return G}return-1}r.prototype.includes=function(e,t,o){return this.indexOf(e,t,o)!==-1},r.prototype.indexOf=function(e,t,o){return L(this,e,t,o,!0)},r.prototype.lastIndexOf=function(e,t,o){return L(this,e,t,o,!1)};function O(a,e,t,o){t=Number(t)||0;var d=a.length-t;o?(o=Number(o),o>d&&(o=d)):o=d;var w=e.length;o>w/2&&(o=w/2);for(var v=0;v<o;++v){var U=parseInt(e.substr(v*2,2),16);if(oe(U))return v;a[t+v]=U}return v}function N(a,e,t,o){return J(k(e,a.length-t),a,t,o)}function M(a,e,t,o){return J(ae(e),a,t,o)}function z(a,e,t,o){return J(V(e),a,t,o)}function D(a,e,t,o){return J(fe(e,a.length-t),a,t,o)}r.prototype.write=function(e,t,o,d){if(t===void 0)d="utf8",o=this.length,t=0;else if(o===void 0&&typeof t=="string")d=t,o=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(o)?(o=o>>>0,d===void 0&&(d="utf8")):(d=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var w=this.length-t;if((o===void 0||o>w)&&(o=w),e.length>0&&(o<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");d||(d="utf8");for(var v=!1;;)switch(d){case"hex":return O(this,e,t,o);case"utf8":case"utf-8":return N(this,e,t,o);case"ascii":case"latin1":case"binary":return M(this,e,t,o);case"base64":return z(this,e,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,t,o);default:if(v)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),v=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $(a,e,t){return e===0&&t===a.length?n.fromByteArray(a):n.fromByteArray(a.slice(e,t))}function X(a,e,t){t=Math.min(a.length,t);for(var o=[],d=e;d<t;){var w=a[d],v=null,U=w>239?4:w>223?3:w>191?2:1;if(d+U<=t){var q,G,te,Z;switch(U){case 1:w<128&&(v=w);break;case 2:q=a[d+1],(q&192)===128&&(Z=(w&31)<<6|q&63,Z>127&&(v=Z));break;case 3:q=a[d+1],G=a[d+2],(q&192)===128&&(G&192)===128&&(Z=(w&15)<<12|(q&63)<<6|G&63,Z>2047&&(Z<55296||Z>57343)&&(v=Z));break;case 4:q=a[d+1],G=a[d+2],te=a[d+3],(q&192)===128&&(G&192)===128&&(te&192)===128&&(Z=(w&15)<<18|(q&63)<<12|(G&63)<<6|te&63,Z>65535&&Z<1114112&&(v=Z))}}v===null?(v=65533,U=1):v>65535&&(v-=65536,o.push(v>>>10&1023|55296),v=56320|v&1023),o.push(v),d+=U}return W(o)}var j=4096;function W(a){var e=a.length;if(e<=j)return String.fromCharCode.apply(String,a);for(var t="",o=0;o<e;)t+=String.fromCharCode.apply(String,a.slice(o,o+=j));return t}function P(a,e,t){var o="";t=Math.min(a.length,t);for(var d=e;d<t;++d)o+=String.fromCharCode(a[d]&127);return o}function Y(a,e,t){var o="";t=Math.min(a.length,t);for(var d=e;d<t;++d)o+=String.fromCharCode(a[d]);return o}function se(a,e,t){var o=a.length;(!e||e<0)&&(e=0),(!t||t<0||t>o)&&(t=o);for(var d="",w=e;w<t;++w)d+=ne[a[w]];return d}function ee(a,e,t){for(var o=a.slice(e,t),d="",w=0;w<o.length-1;w+=2)d+=String.fromCharCode(o[w]+o[w+1]*256);return d}r.prototype.slice=function(e,t){var o=this.length;e=~~e,t=t===void 0?o:~~t,e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),t<e&&(t=e);var d=this.subarray(e,t);return Object.setPrototypeOf(d,r.prototype),d};function x(a,e,t){if(a%1!==0||a<0)throw new RangeError("offset is not uint");if(a+e>t)throw new RangeError("Trying to access beyond buffer length")}r.prototype.readUintLE=r.prototype.readUIntLE=function(e,t,o){e=e>>>0,t=t>>>0,o||x(e,t,this.length);for(var d=this[e],w=1,v=0;++v<t&&(w*=256);)d+=this[e+v]*w;return d},r.prototype.readUintBE=r.prototype.readUIntBE=function(e,t,o){e=e>>>0,t=t>>>0,o||x(e,t,this.length);for(var d=this[e+--t],w=1;t>0&&(w*=256);)d+=this[e+--t]*w;return d},r.prototype.readUint8=r.prototype.readUInt8=function(e,t){return e=e>>>0,t||x(e,1,this.length),this[e]},r.prototype.readUint16LE=r.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||x(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUint16BE=r.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||x(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUint32LE=r.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},r.prototype.readUint32BE=r.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||x(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,o){e=e>>>0,t=t>>>0,o||x(e,t,this.length);for(var d=this[e],w=1,v=0;++v<t&&(w*=256);)d+=this[e+v]*w;return w*=128,d>=w&&(d-=Math.pow(2,8*t)),d},r.prototype.readIntBE=function(e,t,o){e=e>>>0,t=t>>>0,o||x(e,t,this.length);for(var d=t,w=1,v=this[e+--d];d>0&&(w*=256);)v+=this[e+--d]*w;return w*=128,v>=w&&(v-=Math.pow(2,8*t)),v},r.prototype.readInt8=function(e,t){return e=e>>>0,t||x(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},r.prototype.readInt16LE=function(e,t){e=e>>>0,t||x(e,2,this.length);var o=this[e]|this[e+1]<<8;return o&32768?o|4294901760:o},r.prototype.readInt16BE=function(e,t){e=e>>>0,t||x(e,2,this.length);var o=this[e+1]|this[e]<<8;return o&32768?o|4294901760:o},r.prototype.readInt32LE=function(e,t){return e=e>>>0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return e=e>>>0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return e=e>>>0,t||x(e,4,this.length),u.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return e=e>>>0,t||x(e,4,this.length),u.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||x(e,8,this.length),u.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||x(e,8,this.length),u.read(this,e,!1,52,8)};function Q(a,e,t,o,d,w){if(!r.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>d||e<w)throw new RangeError('"value" argument is out of bounds');if(t+o>a.length)throw new RangeError("Index out of range")}r.prototype.writeUintLE=r.prototype.writeUIntLE=function(e,t,o,d){if(e=+e,t=t>>>0,o=o>>>0,!d){var w=Math.pow(2,8*o)-1;Q(this,e,t,o,w,0)}var v=1,U=0;for(this[t]=e&255;++U<o&&(v*=256);)this[t+U]=e/v&255;return t+o},r.prototype.writeUintBE=r.prototype.writeUIntBE=function(e,t,o,d){if(e=+e,t=t>>>0,o=o>>>0,!d){var w=Math.pow(2,8*o)-1;Q(this,e,t,o,w,0)}var v=o-1,U=1;for(this[t+v]=e&255;--v>=0&&(U*=256);)this[t+v]=e/U&255;return t+o},r.prototype.writeUint8=r.prototype.writeUInt8=function(e,t,o){return e=+e,t=t>>>0,o||Q(this,e,t,1,255,0),this[t]=e&255,t+1},r.prototype.writeUint16LE=r.prototype.writeUInt16LE=function(e,t,o){return e=+e,t=t>>>0,o||Q(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},r.prototype.writeUint16BE=r.prototype.writeUInt16BE=function(e,t,o){return e=+e,t=t>>>0,o||Q(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},r.prototype.writeUint32LE=r.prototype.writeUInt32LE=function(e,t,o){return e=+e,t=t>>>0,o||Q(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},r.prototype.writeUint32BE=r.prototype.writeUInt32BE=function(e,t,o){return e=+e,t=t>>>0,o||Q(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},r.prototype.writeIntLE=function(e,t,o,d){if(e=+e,t=t>>>0,!d){var w=Math.pow(2,8*o-1);Q(this,e,t,o,w-1,-w)}var v=0,U=1,q=0;for(this[t]=e&255;++v<o&&(U*=256);)e<0&&q===0&&this[t+v-1]!==0&&(q=1),this[t+v]=(e/U>>0)-q&255;return t+o},r.prototype.writeIntBE=function(e,t,o,d){if(e=+e,t=t>>>0,!d){var w=Math.pow(2,8*o-1);Q(this,e,t,o,w-1,-w)}var v=o-1,U=1,q=0;for(this[t+v]=e&255;--v>=0&&(U*=256);)e<0&&q===0&&this[t+v+1]!==0&&(q=1),this[t+v]=(e/U>>0)-q&255;return t+o},r.prototype.writeInt8=function(e,t,o){return e=+e,t=t>>>0,o||Q(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},r.prototype.writeInt16LE=function(e,t,o){return e=+e,t=t>>>0,o||Q(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},r.prototype.writeInt16BE=function(e,t,o){return e=+e,t=t>>>0,o||Q(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},r.prototype.writeInt32LE=function(e,t,o){return e=+e,t=t>>>0,o||Q(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},r.prototype.writeInt32BE=function(e,t,o){return e=+e,t=t>>>0,o||Q(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function ce(a,e,t,o,d,w){if(t+o>a.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function re(a,e,t,o,d){return e=+e,t=t>>>0,d||ce(a,e,t,4),u.write(a,e,t,o,23,4),t+4}r.prototype.writeFloatLE=function(e,t,o){return re(this,e,t,!0,o)},r.prototype.writeFloatBE=function(e,t,o){return re(this,e,t,!1,o)};function b(a,e,t,o,d){return e=+e,t=t>>>0,d||ce(a,e,t,8),u.write(a,e,t,o,52,8),t+8}r.prototype.writeDoubleLE=function(e,t,o){return b(this,e,t,!0,o)},r.prototype.writeDoubleBE=function(e,t,o){return b(this,e,t,!1,o)},r.prototype.copy=function(e,t,o,d){if(!r.isBuffer(e))throw new TypeError("argument should be a Buffer");if(o||(o=0),!d&&d!==0&&(d=this.length),t>=e.length&&(t=e.length),t||(t=0),d>0&&d<o&&(d=o),d===o||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),e.length-t<d-o&&(d=e.length-t+o);var w=d-o;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,o,d):Uint8Array.prototype.set.call(e,this.subarray(o,d),t),w},r.prototype.fill=function(e,t,o,d){if(typeof e=="string"){if(typeof t=="string"?(d=t,t=0,o=this.length):typeof o=="string"&&(d=o,o=this.length),d!==void 0&&typeof d!="string")throw new TypeError("encoding must be a string");if(typeof d=="string"&&!r.isEncoding(d))throw new TypeError("Unknown encoding: "+d);if(e.length===1){var w=e.charCodeAt(0);(d==="utf8"&&w<128||d==="latin1")&&(e=w)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<o)throw new RangeError("Out of range index");if(o<=t)return this;t=t>>>0,o=o===void 0?this.length:o>>>0,e||(e=0);var v;if(typeof e=="number")for(v=t;v<o;++v)this[v]=e;else{var U=r.isBuffer(e)?e:r.from(e,d),q=U.length;if(q===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(v=0;v<o-t;++v)this[v+t]=U[v%q]}return this};var H=/[^+/0-9A-Za-z-_]/g;function K(a){if(a=a.split("=")[0],a=a.trim().replace(H,""),a.length<2)return"";for(;a.length%4!==0;)a=a+"=";return a}function k(a,e){e=e||1/0;for(var t,o=a.length,d=null,w=[],v=0;v<o;++v){if(t=a.charCodeAt(v),t>55295&&t<57344){if(!d){if(t>56319){(e-=3)>-1&&w.push(239,191,189);continue}else if(v+1===o){(e-=3)>-1&&w.push(239,191,189);continue}d=t;continue}if(t<56320){(e-=3)>-1&&w.push(239,191,189),d=t;continue}t=(d-55296<<10|t-56320)+65536}else d&&(e-=3)>-1&&w.push(239,191,189);if(d=null,t<128){if((e-=1)<0)break;w.push(t)}else if(t<2048){if((e-=2)<0)break;w.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;w.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;w.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return w}function ae(a){for(var e=[],t=0;t<a.length;++t)e.push(a.charCodeAt(t)&255);return e}function fe(a,e){for(var t,o,d,w=[],v=0;v<a.length&&!((e-=2)<0);++v)t=a.charCodeAt(v),o=t>>8,d=t%256,w.push(d),w.push(o);return w}function V(a){return n.toByteArray(K(a))}function J(a,e,t,o){for(var d=0;d<o&&!(d+t>=e.length||d>=a.length);++d)e[d+t]=a[d];return d}function ue(a,e){return a instanceof e||a!=null&&a.constructor!=null&&a.constructor.name!=null&&a.constructor.name===e.name}function oe(a){return a!==a}var ne=(function(){for(var a="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var o=t*16,d=0;d<16;++d)e[o+d]=a[t]+a[d];return e})()})(Ge)),Ge}var Ir=$r(),qe;typeof Object.create=="function"?qe=function(n,u){n.super_=u,n.prototype=Object.create(u.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:qe=function(n,u){n.super_=u;var f=function(){};f.prototype=u.prototype,n.prototype=new f,n.prototype.constructor=n};const Ot=qe;var Lr=/%[sdj%]/g;function be(i){if(!Re(i)){for(var n=[],u=0;u<arguments.length;u++)n.push(pe(arguments[u]));return n.join(" ")}for(var u=1,f=arguments,y=f.length,A=String(i).replace(Lr,function(r){if(r==="%%")return"%";if(u>=y)return r;switch(r){case"%s":return String(f[u++]);case"%d":return Number(f[u++]);case"%j":try{return JSON.stringify(f[u++])}catch{return"[Circular]"}default:return r}}),s=f[u];u<y;s=f[++u])me(s)||!de(s)?A+=" "+s:A+=" "+pe(s);return A}function je(i,n){if(he(Tr.process))return function(){return je(i,n).apply(this,arguments)};if(le.noDeprecation===!0)return i;var u=!1;function f(){if(!u){if(le.throwDeprecation)throw new Error(n);le.traceDeprecation?console.trace(n):console.error(n),u=!0}return i.apply(this,arguments)}return f}var Ce={},Ke;function Nt(i){if(he(Ke)&&(Ke=le.env.NODE_DEBUG||""),i=i.toUpperCase(),!Ce[i])if(new RegExp("\\b"+i+"\\b","i").test(Ke)){var n=0;Ce[i]=function(){var u=be.apply(null,arguments);console.error("%s %d: %s",i,n,u)}}else Ce[i]=function(){};return Ce[i]}function pe(i,n){var u={seen:[],stylize:Nr};return arguments.length>=3&&(u.depth=arguments[2]),arguments.length>=4&&(u.colors=arguments[3]),Te(n)?u.showHidden=n:n&&Je(u,n),he(u.showHidden)&&(u.showHidden=!1),he(u.depth)&&(u.depth=2),he(u.colors)&&(u.colors=!1),he(u.customInspect)&&(u.customInspect=!0),u.colors&&(u.stylize=Or),He(u,i,u.depth)}pe.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},pe.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Or(i,n){var u=pe.styles[n];return u?"\x1B["+pe.colors[u][0]+"m"+i+"\x1B["+pe.colors[u][1]+"m":i}function Nr(i,n){return i}function Ur(i){var n={};return i.forEach(function(u,f){n[u]=!0}),n}function He(i,n,u){if(i.customInspect&&n&&ve(n.inspect)&&n.inspect!==pe&&!(n.constructor&&n.constructor.prototype===n)){var f=n.inspect(u,i);return Re(f)||(f=He(i,f,u)),f}var y=Mr(i,n);if(y)return y;var A=Object.keys(n),s=Ur(A);if(i.showHidden&&(A=Object.getOwnPropertyNames(n)),xe(n)&&(A.indexOf("message")>=0||A.indexOf("description")>=0))return ze(n);if(A.length===0){if(ve(n)){var r=n.name?": "+n.name:"";return i.stylize("[Function"+r+"]","special")}if(_e(n))return i.stylize(RegExp.prototype.toString.call(n),"regexp");if(Fe(n))return i.stylize(Date.prototype.toString.call(n),"date");if(xe(n))return ze(n)}var g="",l=!1,p=["{","}"];if(Xe(n)&&(l=!0,p=["[","]"]),ve(n)){var h=n.name?": "+n.name:"";g=" [Function"+h+"]"}if(_e(n)&&(g=" "+RegExp.prototype.toString.call(n)),Fe(n)&&(g=" "+Date.prototype.toUTCString.call(n)),xe(n)&&(g=" "+ze(n)),A.length===0&&(!l||n.length==0))return p[0]+g+p[1];if(u<0)return _e(n)?i.stylize(RegExp.prototype.toString.call(n),"regexp"):i.stylize("[Object]","special");i.seen.push(n);var c;return l?c=kr(i,n,u,s,A):c=A.map(function(E){return We(i,n,u,s,E,l)}),i.seen.pop(),Dr(c,g,p)}function Mr(i,n){if(he(n))return i.stylize("undefined","undefined");if(Re(n)){var u="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return i.stylize(u,"string")}if(Qe(n))return i.stylize(""+n,"number");if(Te(n))return i.stylize(""+n,"boolean");if(me(n))return i.stylize("null","null")}function ze(i){return"["+Error.prototype.toString.call(i)+"]"}function kr(i,n,u,f,y){for(var A=[],s=0,r=n.length;s<r;++s)Gt(n,String(s))?A.push(We(i,n,u,f,String(s),!0)):A.push("");return y.forEach(function(g){g.match(/^\d+$/)||A.push(We(i,n,u,f,g,!0))}),A}function We(i,n,u,f,y,A){var s,r,g;if(g=Object.getOwnPropertyDescriptor(n,y)||{value:n[y]},g.get?g.set?r=i.stylize("[Getter/Setter]","special"):r=i.stylize("[Getter]","special"):g.set&&(r=i.stylize("[Setter]","special")),Gt(f,y)||(s="["+y+"]"),r||(i.seen.indexOf(g.value)<0?(me(u)?r=He(i,g.value,null):r=He(i,g.value,u-1),r.indexOf(`
|
|
2
|
+
`)>-1&&(A?r=r.split(`
|
|
3
|
+
`).map(function(l){return" "+l}).join(`
|
|
4
|
+
`).substr(2):r=`
|
|
5
|
+
`+r.split(`
|
|
6
|
+
`).map(function(l){return" "+l}).join(`
|
|
7
|
+
`))):r=i.stylize("[Circular]","special")),he(s)){if(A&&y.match(/^\d+$/))return r;s=JSON.stringify(""+y),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=i.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=i.stylize(s,"string"))}return s+": "+r}function Dr(i,n,u){var f=i.reduce(function(y,A){return A.indexOf(`
|
|
8
|
+
`)>=0,y+A.replace(/\u001b\[\d\d?m/g,"").length+1},0);return f>60?u[0]+(n===""?"":n+`
|
|
9
|
+
`)+" "+i.join(`,
|
|
10
|
+
`)+" "+u[1]:u[0]+n+" "+i.join(", ")+" "+u[1]}function Xe(i){return Array.isArray(i)}function Te(i){return typeof i=="boolean"}function me(i){return i===null}function Ut(i){return i==null}function Qe(i){return typeof i=="number"}function Re(i){return typeof i=="string"}function Mt(i){return typeof i=="symbol"}function he(i){return i===void 0}function _e(i){return de(i)&&Ze(i)==="[object RegExp]"}function de(i){return typeof i=="object"&&i!==null}function Fe(i){return de(i)&&Ze(i)==="[object Date]"}function xe(i){return de(i)&&(Ze(i)==="[object Error]"||i instanceof Error)}function ve(i){return typeof i=="function"}function kt(i){return i===null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||typeof i=="symbol"||typeof i>"u"}function Dt(i){return Ir.Buffer.isBuffer(i)}function Ze(i){return Object.prototype.toString.call(i)}function Ye(i){return i<10?"0"+i.toString(10):i.toString(10)}var Pr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Gr(){var i=new Date,n=[Ye(i.getHours()),Ye(i.getMinutes()),Ye(i.getSeconds())].join(":");return[i.getDate(),Pr[i.getMonth()],n].join(" ")}function Pt(){console.log("%s - %s",Gr(),be.apply(null,arguments))}function Je(i,n){if(!n||!de(n))return i;for(var u=Object.keys(n),f=u.length;f--;)i[u[f]]=n[u[f]];return i}function Gt(i,n){return Object.prototype.hasOwnProperty.call(i,n)}const qt=bt(Object.freeze(Object.defineProperty({__proto__:null,_extend:Je,debuglog:Nt,default:{inherits:Ot,_extend:Je,log:Pt,isBuffer:Dt,isPrimitive:kt,isFunction:ve,isError:xe,isDate:Fe,isObject:de,isRegExp:_e,isUndefined:he,isSymbol:Mt,isString:Re,isNumber:Qe,isNullOrUndefined:Ut,isNull:me,isBoolean:Te,isArray:Xe,inspect:pe,deprecate:je,format:be,debuglog:Nt},deprecate:je,format:be,inherits:Ot,inspect:pe,isArray:Xe,isBoolean:Te,isBuffer:Dt,isDate:Fe,isError:xe,isFunction:ve,isNull:me,isNullOrUndefined:Ut,isNumber:Qe,isObject:de,isPrimitive:kt,isRegExp:_e,isString:Re,isSymbol:Mt,isUndefined:he,log:Pt},Symbol.toStringTag,{value:"Module"})));var Ve={},jt;function et(){return jt||(jt=1,(function(i){i.isInteger=n=>typeof n=="number"?Number.isInteger(n):typeof n=="string"&&n.trim()!==""?Number.isInteger(Number(n)):!1,i.find=(n,u)=>n.nodes.find(f=>f.type===u),i.exceedsLimit=(n,u,f=1,y)=>y===!1||!i.isInteger(n)||!i.isInteger(u)?!1:(Number(u)-Number(n))/Number(f)>=y,i.escapeNode=(n,u=0,f)=>{const y=n.nodes[u];y&&(f&&y.type===f||y.type==="open"||y.type==="close")&&y.escaped!==!0&&(y.value="\\"+y.value,y.escaped=!0)},i.encloseBrace=n=>n.type!=="brace"?!1:n.commas>>0+n.ranges>>0===0?(n.invalid=!0,!0):!1,i.isInvalidBrace=n=>n.type!=="brace"?!1:n.invalid===!0||n.dollar?!0:n.commas>>0+n.ranges>>0===0||n.open!==!0||n.close!==!0?(n.invalid=!0,!0):!1,i.isOpenOrClose=n=>n.type==="open"||n.type==="close"?!0:n.open===!0||n.close===!0,i.reduce=n=>n.reduce((u,f)=>(f.type==="text"&&u.push(f.value),f.type==="range"&&(f.type="text"),u),[]),i.flatten=(...n)=>{const u=[],f=y=>{for(let A=0;A<y.length;A++){const s=y[A];if(Array.isArray(s)){f(s);continue}s!==void 0&&u.push(s)}return u};return f(n),u}})(Ve)),Ve}var tt,Kt;function rt(){if(Kt)return tt;Kt=1;const i=et();return tt=(n,u={})=>{const f=(y,A={})=>{const s=u.escapeInvalid&&i.isInvalidBrace(A),r=y.invalid===!0&&u.escapeInvalid===!0;let g="";if(y.value)return(s||r)&&i.isOpenOrClose(y)?"\\"+y.value:y.value;if(y.value)return y.value;if(y.nodes)for(const l of y.nodes)g+=f(l);return g};return f(n)},tt}var nt,zt;function qr(){return zt||(zt=1,nt=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}),nt}var it,Wt;function jr(){if(Wt)return it;Wt=1;const i=qr(),n=(S,R,I)=>{if(i(S)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(R===void 0||S===R)return String(S);if(i(R)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let m={relaxZeros:!0,...I};typeof m.strictZeros=="boolean"&&(m.relaxZeros=m.strictZeros===!1);let F=String(m.relaxZeros),_=String(m.shorthand),L=String(m.capture),T=String(m.wrap),O=S+":"+R+"="+F+_+L+T;if(n.cache.hasOwnProperty(O))return n.cache[O].result;let N=Math.min(S,R),M=Math.max(S,R);if(Math.abs(N-M)===1){let j=S+"|"+R;return m.capture?`(${j})`:m.wrap===!1?j:`(?:${j})`}let z=C(S)||C(R),D={min:S,max:R,a:N,b:M},$=[],X=[];if(z&&(D.isPadded=z,D.maxLen=String(D.max).length),N<0){let j=M<0?Math.abs(M):1;X=A(j,Math.abs(N),D,m),N=D.a=0}return M>=0&&($=A(N,M,D,m)),D.negatives=X,D.positives=$,D.result=u(X,$),m.capture===!0?D.result=`(${D.result})`:m.wrap!==!1&&$.length+X.length>1&&(D.result=`(?:${D.result})`),n.cache[O]=D,D.result};function u(S,R,I){let m=s(S,R,"-",!1)||[],F=s(R,S,"",!1)||[],_=s(S,R,"-?",!0)||[];return m.concat(_).concat(F).join("|")}function f(S,R){let I=1,m=1,F=p(S,I),_=new Set([R]);for(;S<=F&&F<=R;)_.add(F),I+=1,F=p(S,I);for(F=h(R+1,m)-1;S<F&&F<=R;)_.add(F),m+=1,F=h(R+1,m)-1;return _=[..._],_.sort(g),_}function y(S,R,I){if(S===R)return{pattern:S,count:[],digits:0};let m=r(S,R),F=m.length,_="",L=0;for(let T=0;T<F;T++){let[O,N]=m[T];O===N?_+=O:O!=="0"||N!=="9"?_+=E(O,N):L++}return L&&(_+=I.shorthand===!0?"\\d":"[0-9]"),{pattern:_,count:[L],digits:F}}function A(S,R,I,m){let F=f(S,R),_=[],L=S,T;for(let O=0;O<F.length;O++){let N=F[O],M=y(String(L),String(N),m),z="";if(!I.isPadded&&T&&T.pattern===M.pattern){T.count.length>1&&T.count.pop(),T.count.push(M.count[0]),T.string=T.pattern+c(T.count),L=N+1;continue}I.isPadded&&(z=B(N,I,m)),M.string=z+M.pattern+c(M.count),_.push(M),L=N+1,T=M}return _}function s(S,R,I,m,F){let _=[];for(let L of S){let{string:T}=L;!m&&!l(R,"string",T)&&_.push(I+T),m&&l(R,"string",T)&&_.push(I+T)}return _}function r(S,R){let I=[];for(let m=0;m<S.length;m++)I.push([S[m],R[m]]);return I}function g(S,R){return S>R?1:R>S?-1:0}function l(S,R,I){return S.some(m=>m[R]===I)}function p(S,R){return Number(String(S).slice(0,-R)+"9".repeat(R))}function h(S,R){return S-S%Math.pow(10,R)}function c(S){let[R=0,I=""]=S;return I||R>1?`{${R+(I?","+I:"")}}`:""}function E(S,R,I){return`[${S}${R-S===1?"":"-"}${R}]`}function C(S){return/^-?(0+)\d/.test(S)}function B(S,R,I){if(!R.isPadded)return S;let m=Math.abs(R.maxLen-String(S).length),F=I.relaxZeros!==!1;switch(m){case 0:return"";case 1:return F?"0?":"0";case 2:return F?"0{0,2}":"00";default:return F?`0{0,${m}}`:`0{${m}}`}}return n.cache={},n.clearCache=()=>n.cache={},it=n,it}var ut,Xt;function Qt(){if(Xt)return ut;Xt=1;const i=qt,n=jr(),u=m=>m!==null&&typeof m=="object"&&!Array.isArray(m),f=m=>F=>m===!0?Number(F):String(F),y=m=>typeof m=="number"||typeof m=="string"&&m!=="",A=m=>Number.isInteger(+m),s=m=>{let F=`${m}`,_=-1;if(F[0]==="-"&&(F=F.slice(1)),F==="0")return!1;for(;F[++_]==="0";);return _>0},r=(m,F,_)=>typeof m=="string"||typeof F=="string"?!0:_.stringify===!0,g=(m,F,_)=>{if(F>0){let L=m[0]==="-"?"-":"";L&&(m=m.slice(1)),m=L+m.padStart(L?F-1:F,"0")}return _===!1?String(m):m},l=(m,F)=>{let _=m[0]==="-"?"-":"";for(_&&(m=m.slice(1),F--);m.length<F;)m="0"+m;return _?"-"+m:m},p=(m,F,_)=>{m.negatives.sort((M,z)=>M<z?-1:M>z?1:0),m.positives.sort((M,z)=>M<z?-1:M>z?1:0);let L=F.capture?"":"?:",T="",O="",N;return m.positives.length&&(T=m.positives.map(M=>l(String(M),_)).join("|")),m.negatives.length&&(O=`-(${L}${m.negatives.map(M=>l(String(M),_)).join("|")})`),T&&O?N=`${T}|${O}`:N=T||O,F.wrap?`(${L}${N})`:N},h=(m,F,_,L)=>{if(_)return n(m,F,{wrap:!1,...L});let T=String.fromCharCode(m);if(m===F)return T;let O=String.fromCharCode(F);return`[${T}-${O}]`},c=(m,F,_)=>{if(Array.isArray(m)){let L=_.wrap===!0,T=_.capture?"":"?:";return L?`(${T}${m.join("|")})`:m.join("|")}return n(m,F,_)},E=(...m)=>new RangeError("Invalid range arguments: "+i.inspect(...m)),C=(m,F,_)=>{if(_.strictRanges===!0)throw E([m,F]);return[]},B=(m,F)=>{if(F.strictRanges===!0)throw new TypeError(`Expected step "${m}" to be a number`);return[]},S=(m,F,_=1,L={})=>{let T=Number(m),O=Number(F);if(!Number.isInteger(T)||!Number.isInteger(O)){if(L.strictRanges===!0)throw E([m,F]);return[]}T===0&&(T=0),O===0&&(O=0);let N=T>O,M=String(m),z=String(F),D=String(_);_=Math.max(Math.abs(_),1);let $=s(M)||s(z)||s(D),X=$?Math.max(M.length,z.length,D.length):0,j=$===!1&&r(m,F,L)===!1,W=L.transform||f(j);if(L.toRegex&&_===1)return h(l(m,X),l(F,X),!0,L);let P={negatives:[],positives:[]},Y=x=>P[x<0?"negatives":"positives"].push(Math.abs(x)),se=[],ee=0;for(;N?T>=O:T<=O;)L.toRegex===!0&&_>1?Y(T):se.push(g(W(T,ee),X,j)),T=N?T-_:T+_,ee++;return L.toRegex===!0?_>1?p(P,L,X):c(se,null,{wrap:!1,...L}):se},R=(m,F,_=1,L={})=>{if(!A(m)&&m.length>1||!A(F)&&F.length>1)return C(m,F,L);let T=L.transform||(j=>String.fromCharCode(j)),O=`${m}`.charCodeAt(0),N=`${F}`.charCodeAt(0),M=O>N,z=Math.min(O,N),D=Math.max(O,N);if(L.toRegex&&_===1)return h(z,D,!1,L);let $=[],X=0;for(;M?O>=N:O<=N;)$.push(T(O,X)),O=M?O-_:O+_,X++;return L.toRegex===!0?c($,null,{wrap:!1,options:L}):$},I=(m,F,_,L={})=>{if(F==null&&y(m))return[m];if(!y(m)||!y(F))return C(m,F,L);if(typeof _=="function")return I(m,F,1,{transform:_});if(u(_))return I(m,F,0,_);let T={...L};return T.capture===!0&&(T.wrap=!0),_=_||T.step||1,A(_)?A(m)&&A(F)?S(m,F,_,T):R(m,F,Math.max(Math.abs(_),1),T):_!=null&&!u(_)?B(_,T):I(m,F,1,_)};return ut=I,ut}var at,Zt;function Kr(){if(Zt)return at;Zt=1;const i=Qt(),n=et();return at=(f,y={})=>{const A=(s,r={})=>{const g=n.isInvalidBrace(r),l=s.invalid===!0&&y.escapeInvalid===!0,p=g===!0||l===!0,h=y.escapeInvalid===!0?"\\":"";let c="";if(s.isOpen===!0)return h+s.value;if(s.isClose===!0)return console.log("node.isClose",h,s.value),h+s.value;if(s.type==="open")return p?h+s.value:"(";if(s.type==="close")return p?h+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":p?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){const E=n.reduce(s.nodes),C=i(...E,{...y,wrap:!1,toRegex:!0,strictZeros:!0});if(C.length!==0)return E.length>1&&C.length>1?`(${C})`:C}if(s.nodes)for(const E of s.nodes)c+=A(E,s);return c};return A(f)},at}var ot,Yt;function zr(){if(Yt)return ot;Yt=1;const i=Qt(),n=rt(),u=et(),f=(A="",s="",r=!1)=>{const g=[];if(A=[].concat(A),s=[].concat(s),!s.length)return A;if(!A.length)return r?u.flatten(s).map(l=>`{${l}}`):s;for(const l of A)if(Array.isArray(l))for(const p of l)g.push(f(p,s,r));else for(let p of s)r===!0&&typeof p=="string"&&(p=`{${p}}`),g.push(Array.isArray(p)?f(l,p,r):l+p);return u.flatten(g)};return ot=(A,s={})=>{const r=s.rangeLimit===void 0?1e3:s.rangeLimit,g=(l,p={})=>{l.queue=[];let h=p,c=p.queue;for(;h.type!=="brace"&&h.type!=="root"&&h.parent;)h=h.parent,c=h.queue;if(l.invalid||l.dollar){c.push(f(c.pop(),n(l,s)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){c.push(f(c.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){const S=u.reduce(l.nodes);if(u.exceedsLimit(...S,s.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let R=i(...S,s);R.length===0&&(R=n(l,s)),c.push(f(c.pop(),R)),l.nodes=[];return}const E=u.encloseBrace(l);let C=l.queue,B=l;for(;B.type!=="brace"&&B.type!=="root"&&B.parent;)B=B.parent,C=B.queue;for(let S=0;S<l.nodes.length;S++){const R=l.nodes[S];if(R.type==="comma"&&l.type==="brace"){S===1&&C.push(""),C.push("");continue}if(R.type==="close"){c.push(f(c.pop(),C,E));continue}if(R.value&&R.type!=="open"){C.push(f(C.pop(),R.value));continue}R.nodes&&g(R,l)}return C};return u.flatten(g(A))},ot}var st,Jt;function Wr(){return Jt||(Jt=1,st={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
11
|
+
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}),st}var ct,Vt;function Xr(){if(Vt)return ct;Vt=1;const i=rt(),{MAX_LENGTH:n,CHAR_BACKSLASH:u,CHAR_BACKTICK:f,CHAR_COMMA:y,CHAR_DOT:A,CHAR_LEFT_PARENTHESES:s,CHAR_RIGHT_PARENTHESES:r,CHAR_LEFT_CURLY_BRACE:g,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:c,CHAR_SINGLE_QUOTE:E,CHAR_NO_BREAK_SPACE:C,CHAR_ZERO_WIDTH_NOBREAK_SPACE:B}=Wr();return ct=(R,I={})=>{if(typeof R!="string")throw new TypeError("Expected a string");const m=I||{},F=typeof m.maxLength=="number"?Math.min(n,m.maxLength):n;if(R.length>F)throw new SyntaxError(`Input length (${R.length}), exceeds max characters (${F})`);const _={type:"root",input:R,nodes:[]},L=[_];let T=_,O=_,N=0;const M=R.length;let z=0,D=0,$;const X=()=>R[z++],j=W=>{if(W.type==="text"&&O.type==="dot"&&(O.type="text"),O&&O.type==="text"&&W.type==="text"){O.value+=W.value;return}return T.nodes.push(W),W.parent=T,W.prev=O,O=W,W};for(j({type:"bos"});z<M;)if(T=L[L.length-1],$=X(),!($===B||$===C)){if($===u){j({type:"text",value:(I.keepEscaping?$:"")+X()});continue}if($===h){j({type:"text",value:"\\"+$});continue}if($===p){N++;let W;for(;z<M&&(W=X());){if($+=W,W===p){N++;continue}if(W===u){$+=X();continue}if(W===h&&(N--,N===0))break}j({type:"text",value:$});continue}if($===s){T=j({type:"paren",nodes:[]}),L.push(T),j({type:"text",value:$});continue}if($===r){if(T.type!=="paren"){j({type:"text",value:$});continue}T=L.pop(),j({type:"text",value:$}),T=L[L.length-1];continue}if($===c||$===E||$===f){const W=$;let P;for(I.keepQuotes!==!0&&($="");z<M&&(P=X());){if(P===u){$+=P+X();continue}if(P===W){I.keepQuotes===!0&&($+=P);break}$+=P}j({type:"text",value:$});continue}if($===g){D++;const P={type:"brace",open:!0,close:!1,dollar:O.value&&O.value.slice(-1)==="$"||T.dollar===!0,depth:D,commas:0,ranges:0,nodes:[]};T=j(P),L.push(T),j({type:"open",value:$});continue}if($===l){if(T.type!=="brace"){j({type:"text",value:$});continue}const W="close";T=L.pop(),T.close=!0,j({type:W,value:$}),D--,T=L[L.length-1];continue}if($===y&&D>0){if(T.ranges>0){T.ranges=0;const W=T.nodes.shift();T.nodes=[W,{type:"text",value:i(T)}]}j({type:"comma",value:$}),T.commas++;continue}if($===A&&D>0&&T.commas===0){const W=T.nodes;if(D===0||W.length===0){j({type:"text",value:$});continue}if(O.type==="dot"){if(T.range=[],O.value+=$,O.type="range",T.nodes.length!==3&&T.nodes.length!==5){T.invalid=!0,T.ranges=0,O.type="text";continue}T.ranges++,T.args=[];continue}if(O.type==="range"){W.pop();const P=W[W.length-1];P.value+=O.value+$,O=P,T.ranges--;continue}j({type:"dot",value:$});continue}j({type:"text",value:$})}do if(T=L.pop(),T.type!=="root"){T.nodes.forEach(Y=>{Y.nodes||(Y.type==="open"&&(Y.isOpen=!0),Y.type==="close"&&(Y.isClose=!0),Y.nodes||(Y.type="text"),Y.invalid=!0)});const W=L[L.length-1],P=W.nodes.indexOf(T);W.nodes.splice(P,1,...T.nodes)}while(L.length>0);return j({type:"eos"}),_},ct}var lt,er;function Qr(){if(er)return lt;er=1;const i=rt(),n=Kr(),u=zr(),f=Xr(),y=(A,s={})=>{let r=[];if(Array.isArray(A))for(const g of A){const l=y.create(g,s);Array.isArray(l)?r.push(...l):r.push(l)}else r=[].concat(y.create(A,s));return s&&s.expand===!0&&s.nodupes===!0&&(r=[...new Set(r)]),r};return y.parse=(A,s={})=>f(A,s),y.stringify=(A,s={})=>i(typeof A=="string"?y.parse(A,s):A,s),y.compile=(A,s={})=>(typeof A=="string"&&(A=y.parse(A,s)),n(A,s)),y.expand=(A,s={})=>{typeof A=="string"&&(A=y.parse(A,s));let r=u(A,s);return s.noempty===!0&&(r=r.filter(Boolean)),s.nodupes===!0&&(r=[...new Set(r)]),r},y.create=(A,s={})=>A===""||A.length<3?[A]:s.expand!==!0?y.compile(A,s):y.expand(A,s),lt=y,lt}function tr(i,n){for(var u=0,f=i.length-1;f>=0;f--){var y=i[f];y==="."?i.splice(f,1):y===".."?(i.splice(f,1),u++):u&&(i.splice(f,1),u--)}if(n)for(;u--;u)i.unshift("..");return i}var Zr=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,ft=function(i){return Zr.exec(i).slice(1)};function Be(){for(var i="",n=!1,u=arguments.length-1;u>=-1&&!n;u--){var f=u>=0?arguments[u]:"/";if(typeof f!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!f)continue;i=f+"/"+i,n=f.charAt(0)==="/"}return i=tr(yt(i.split("/"),function(y){return!!y}),!n).join("/"),(n?"/":"")+i||"."}function pt(i){var n=ht(i),u=Jr(i,-1)==="/";return i=tr(yt(i.split("/"),function(f){return!!f}),!n).join("/"),!i&&!n&&(i="."),i&&u&&(i+="/"),(n?"/":"")+i}function ht(i){return i.charAt(0)==="/"}function rr(){var i=Array.prototype.slice.call(arguments,0);return pt(yt(i,function(n,u){if(typeof n!="string")throw new TypeError("Arguments to path.join must be strings");return n}).join("/"))}function nr(i,n){i=Be(i).substr(1),n=Be(n).substr(1);function u(l){for(var p=0;p<l.length&&l[p]==="";p++);for(var h=l.length-1;h>=0&&l[h]==="";h--);return p>h?[]:l.slice(p,h-p+1)}for(var f=u(i.split("/")),y=u(n.split("/")),A=Math.min(f.length,y.length),s=A,r=0;r<A;r++)if(f[r]!==y[r]){s=r;break}for(var g=[],r=s;r<f.length;r++)g.push("..");return g=g.concat(y.slice(s)),g.join("/")}var ir="/",ur=":";function ar(i){var n=ft(i),u=n[0],f=n[1];return!u&&!f?".":(f&&(f=f.substr(0,f.length-1)),u+f)}function or(i,n){var u=ft(i)[2];return n&&u.substr(-1*n.length)===n&&(u=u.substr(0,u.length-n.length)),u}function sr(i){return ft(i)[3]}const Yr={extname:sr,basename:or,dirname:ar,sep:ir,delimiter:ur,relative:nr,join:rr,isAbsolute:ht,normalize:pt,resolve:Be};function yt(i,n){if(i.filter)return i.filter(n);for(var u=[],f=0;f<i.length;f++)n(i[f],f,i)&&u.push(i[f]);return u}var Jr="ab".substr(-1)==="b"?function(i,n,u){return i.substr(n,u)}:function(i,n,u){return n<0&&(n=i.length+n),i.substr(n,u)};const gt=bt(Object.freeze(Object.defineProperty({__proto__:null,basename:or,default:Yr,delimiter:ur,dirname:ar,extname:sr,isAbsolute:ht,join:rr,normalize:pt,relative:nr,resolve:Be,sep:ir},Symbol.toStringTag,{value:"Module"})));var dt={},At,cr;function $e(){if(cr)return At;cr=1;const i=gt,n="\\\\/",u=`[^${n}]`,f="\\.",y="\\+",A="\\?",s="\\/",r="(?=.)",g="[^/]",l=`(?:${s}|$)`,p=`(?:^|${s})`,h=`${f}{1,2}${l}`,c=`(?!${f})`,E=`(?!${p}${h})`,C=`(?!${f}{0,1}${l})`,B=`(?!${h})`,S=`[^.${s}]`,R=`${g}*?`,I={DOT_LITERAL:f,PLUS_LITERAL:y,QMARK_LITERAL:A,SLASH_LITERAL:s,ONE_CHAR:r,QMARK:g,END_ANCHOR:l,DOTS_SLASH:h,NO_DOT:c,NO_DOTS:E,NO_DOT_SLASH:C,NO_DOTS_SLASH:B,QMARK_NO_DOT:S,STAR:R,START_ANCHOR:p},m={...I,SLASH_LITERAL:`[${n}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${f}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${f})`,NO_DOTS:`(?!(?:^|[${n}])${f}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${f}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${f}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},F={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return At={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:F,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:i.sep,extglobChars(_){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${_.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(_){return _===!0?m:I}},At}var lr;function Ie(){return lr||(lr=1,(function(i){const n=gt,u=le.platform==="win32",{REGEX_BACKSLASH:f,REGEX_REMOVE_BACKSLASH:y,REGEX_SPECIAL_CHARS:A,REGEX_SPECIAL_CHARS_GLOBAL:s}=$e();i.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),i.hasRegexChars=r=>A.test(r),i.isRegexChar=r=>r.length===1&&i.hasRegexChars(r),i.escapeRegex=r=>r.replace(s,"\\$1"),i.toPosixSlashes=r=>r.replace(f,"/"),i.removeBackslashes=r=>r.replace(y,g=>g==="\\"?"":g),i.supportsLookbehinds=()=>{const r=le.version.slice(1).split(".").map(Number);return r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10},i.isWindows=r=>r&&typeof r.windows=="boolean"?r.windows:u===!0||n.sep==="\\",i.escapeLast=(r,g,l)=>{const p=r.lastIndexOf(g,l);return p===-1?r:r[p-1]==="\\"?i.escapeLast(r,g,p-1):`${r.slice(0,p)}\\${r.slice(p)}`},i.removePrefix=(r,g={})=>{let l=r;return l.startsWith("./")&&(l=l.slice(2),g.prefix="./"),l},i.wrapOutput=(r,g={},l={})=>{const p=l.contains?"":"^",h=l.contains?"":"$";let c=`${p}(?:${r})${h}`;return g.negated===!0&&(c=`(?:^(?!${c}).*$)`),c}})(dt)),dt}var Et,fr;function Vr(){if(fr)return Et;fr=1;const i=Ie(),{CHAR_ASTERISK:n,CHAR_AT:u,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:y,CHAR_DOT:A,CHAR_EXCLAMATION_MARK:s,CHAR_FORWARD_SLASH:r,CHAR_LEFT_CURLY_BRACE:g,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:h,CHAR_QUESTION_MARK:c,CHAR_RIGHT_CURLY_BRACE:E,CHAR_RIGHT_PARENTHESES:C,CHAR_RIGHT_SQUARE_BRACKET:B}=$e(),S=m=>m===r||m===f,R=m=>{m.isPrefix!==!0&&(m.depth=m.isGlobstar?1/0:1)};return Et=(m,F)=>{const _=F||{},L=m.length-1,T=_.parts===!0||_.scanToEnd===!0,O=[],N=[],M=[];let z=m,D=-1,$=0,X=0,j=!1,W=!1,P=!1,Y=!1,se=!1,ee=!1,x=!1,Q=!1,ce=!1,re=!1,b=0,H,K,k={value:"",depth:0,isGlob:!1};const ae=()=>D>=L,fe=()=>z.charCodeAt(D+1),V=()=>(H=K,z.charCodeAt(++D));for(;D<L;){K=V();let a;if(K===f){x=k.backslashes=!0,K=V(),K===g&&(ee=!0);continue}if(ee===!0||K===g){for(b++;ae()!==!0&&(K=V());){if(K===f){x=k.backslashes=!0,V();continue}if(K===g){b++;continue}if(ee!==!0&&K===A&&(K=V())===A){if(j=k.isBrace=!0,P=k.isGlob=!0,re=!0,T===!0)continue;break}if(ee!==!0&&K===y){if(j=k.isBrace=!0,P=k.isGlob=!0,re=!0,T===!0)continue;break}if(K===E&&(b--,b===0)){ee=!1,j=k.isBrace=!0,re=!0;break}}if(T===!0)continue;break}if(K===r){if(O.push(D),N.push(k),k={value:"",depth:0,isGlob:!1},re===!0)continue;if(H===A&&D===$+1){$+=2;continue}X=D+1;continue}if(_.noext!==!0&&(K===h||K===u||K===n||K===c||K===s)===!0&&fe()===l){if(P=k.isGlob=!0,Y=k.isExtglob=!0,re=!0,K===s&&D===$&&(ce=!0),T===!0){for(;ae()!==!0&&(K=V());){if(K===f){x=k.backslashes=!0,K=V();continue}if(K===C){P=k.isGlob=!0,re=!0;break}}continue}break}if(K===n){if(H===n&&(se=k.isGlobstar=!0),P=k.isGlob=!0,re=!0,T===!0)continue;break}if(K===c){if(P=k.isGlob=!0,re=!0,T===!0)continue;break}if(K===p){for(;ae()!==!0&&(a=V());){if(a===f){x=k.backslashes=!0,V();continue}if(a===B){W=k.isBracket=!0,P=k.isGlob=!0,re=!0;break}}if(T===!0)continue;break}if(_.nonegate!==!0&&K===s&&D===$){Q=k.negated=!0,$++;continue}if(_.noparen!==!0&&K===l){if(P=k.isGlob=!0,T===!0){for(;ae()!==!0&&(K=V());){if(K===l){x=k.backslashes=!0,K=V();continue}if(K===C){re=!0;break}}continue}break}if(P===!0){if(re=!0,T===!0)continue;break}}_.noext===!0&&(Y=!1,P=!1);let J=z,ue="",oe="";$>0&&(ue=z.slice(0,$),z=z.slice($),X-=$),J&&P===!0&&X>0?(J=z.slice(0,X),oe=z.slice(X)):P===!0?(J="",oe=z):J=z,J&&J!==""&&J!=="/"&&J!==z&&S(J.charCodeAt(J.length-1))&&(J=J.slice(0,-1)),_.unescape===!0&&(oe&&(oe=i.removeBackslashes(oe)),J&&x===!0&&(J=i.removeBackslashes(J)));const ne={prefix:ue,input:m,start:$,base:J,glob:oe,isBrace:j,isBracket:W,isGlob:P,isExtglob:Y,isGlobstar:se,negated:Q,negatedExtglob:ce};if(_.tokens===!0&&(ne.maxDepth=0,S(K)||N.push(k),ne.tokens=N),_.parts===!0||_.tokens===!0){let a;for(let e=0;e<O.length;e++){const t=a?a+1:$,o=O[e],d=m.slice(t,o);_.tokens&&(e===0&&$!==0?(N[e].isPrefix=!0,N[e].value=ue):N[e].value=d,R(N[e]),ne.maxDepth+=N[e].depth),(e!==0||d!=="")&&M.push(d),a=o}if(a&&a+1<m.length){const e=m.slice(a+1);M.push(e),_.tokens&&(N[N.length-1].value=e,R(N[N.length-1]),ne.maxDepth+=N[N.length-1].depth)}ne.slashes=O,ne.parts=M}return ne},Et}var wt,pr;function en(){if(pr)return wt;pr=1;const i=$e(),n=Ie(),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:y,REGEX_SPECIAL_CHARS_BACKREF:A,REPLACEMENTS:s}=i,r=(p,h)=>{if(typeof h.expandRange=="function")return h.expandRange(...p,h);p.sort();const c=`[${p.join("-")}]`;try{new RegExp(c)}catch{return p.map(C=>n.escapeRegex(C)).join("..")}return c},g=(p,h)=>`Missing ${p}: "${h}" - use "\\\\${h}" to match literal characters`,l=(p,h)=>{if(typeof p!="string")throw new TypeError("Expected a string");p=s[p]||p;const c={...h},E=typeof c.maxLength=="number"?Math.min(u,c.maxLength):u;let C=p.length;if(C>E)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${E}`);const B={type:"bos",value:"",output:c.prepend||""},S=[B],R=c.capture?"":"?:",I=n.isWindows(h),m=i.globChars(I),F=i.extglobChars(m),{DOT_LITERAL:_,PLUS_LITERAL:L,SLASH_LITERAL:T,ONE_CHAR:O,DOTS_SLASH:N,NO_DOT:M,NO_DOT_SLASH:z,NO_DOTS_SLASH:D,QMARK:$,QMARK_NO_DOT:X,STAR:j,START_ANCHOR:W}=m,P=o=>`(${R}(?:(?!${W}${o.dot?N:_}).)*?)`,Y=c.dot?"":M,se=c.dot?$:X;let ee=c.bash===!0?P(c):j;c.capture&&(ee=`(${ee})`),typeof c.noext=="boolean"&&(c.noextglob=c.noext);const x={input:p,index:-1,start:0,dot:c.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:S};p=n.removePrefix(p,x),C=p.length;const Q=[],ce=[],re=[];let b=B,H;const K=()=>x.index===C-1,k=x.peek=(o=1)=>p[x.index+o],ae=x.advance=()=>p[++x.index]||"",fe=()=>p.slice(x.index+1),V=(o="",d=0)=>{x.consumed+=o,x.index+=d},J=o=>{x.output+=o.output!=null?o.output:o.value,V(o.value)},ue=()=>{let o=1;for(;k()==="!"&&(k(2)!=="("||k(3)==="?");)ae(),x.start++,o++;return o%2===0?!1:(x.negated=!0,x.start++,!0)},oe=o=>{x[o]++,re.push(o)},ne=o=>{x[o]--,re.pop()},a=o=>{if(b.type==="globstar"){const d=x.braces>0&&(o.type==="comma"||o.type==="brace"),w=o.extglob===!0||Q.length&&(o.type==="pipe"||o.type==="paren");o.type!=="slash"&&o.type!=="paren"&&!d&&!w&&(x.output=x.output.slice(0,-b.output.length),b.type="star",b.value="*",b.output=ee,x.output+=b.output)}if(Q.length&&o.type!=="paren"&&(Q[Q.length-1].inner+=o.value),(o.value||o.output)&&J(o),b&&b.type==="text"&&o.type==="text"){b.value+=o.value,b.output=(b.output||"")+o.value;return}o.prev=b,S.push(o),b=o},e=(o,d)=>{const w={...F[d],conditions:1,inner:""};w.prev=b,w.parens=x.parens,w.output=x.output;const v=(c.capture?"(":"")+w.open;oe("parens"),a({type:o,value:d,output:x.output?"":O}),a({type:"paren",extglob:!0,value:ae(),output:v}),Q.push(w)},t=o=>{let d=o.close+(c.capture?")":""),w;if(o.type==="negate"){let v=ee;if(o.inner&&o.inner.length>1&&o.inner.includes("/")&&(v=P(c)),(v!==ee||K()||/^\)+$/.test(fe()))&&(d=o.close=`)$))${v}`),o.inner.includes("*")&&(w=fe())&&/^\.[^\\/.]+$/.test(w)){const U=l(w,{...h,fastpaths:!1}).output;d=o.close=`)${U})${v})`}o.prev.type==="bos"&&(x.negatedExtglob=!0)}a({type:"paren",extglob:!0,value:H,output:d}),ne("parens")};if(c.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(p)){let o=!1,d=p.replace(A,(w,v,U,q,G,te)=>q==="\\"?(o=!0,w):q==="?"?v?v+q+(G?$.repeat(G.length):""):te===0?se+(G?$.repeat(G.length):""):$.repeat(U.length):q==="."?_.repeat(U.length):q==="*"?v?v+q+(G?ee:""):ee:v?w:`\\${w}`);return o===!0&&(c.unescape===!0?d=d.replace(/\\/g,""):d=d.replace(/\\+/g,w=>w.length%2===0?"\\\\":w?"\\":"")),d===p&&c.contains===!0?(x.output=p,x):(x.output=n.wrapOutput(d,x,h),x)}for(;!K();){if(H=ae(),H==="\0")continue;if(H==="\\"){const w=k();if(w==="/"&&c.bash!==!0||w==="."||w===";")continue;if(!w){H+="\\",a({type:"text",value:H});continue}const v=/^\\+/.exec(fe());let U=0;if(v&&v[0].length>2&&(U=v[0].length,x.index+=U,U%2!==0&&(H+="\\")),c.unescape===!0?H=ae():H+=ae(),x.brackets===0){a({type:"text",value:H});continue}}if(x.brackets>0&&(H!=="]"||b.value==="["||b.value==="[^")){if(c.posix!==!1&&H===":"){const w=b.value.slice(1);if(w.includes("[")&&(b.posix=!0,w.includes(":"))){const v=b.value.lastIndexOf("["),U=b.value.slice(0,v),q=b.value.slice(v+2),G=f[q];if(G){b.value=U+G,x.backtrack=!0,ae(),!B.output&&S.indexOf(b)===1&&(B.output=O);continue}}}(H==="["&&k()!==":"||H==="-"&&k()==="]")&&(H=`\\${H}`),H==="]"&&(b.value==="["||b.value==="[^")&&(H=`\\${H}`),c.posix===!0&&H==="!"&&b.value==="["&&(H="^"),b.value+=H,J({value:H});continue}if(x.quotes===1&&H!=='"'){H=n.escapeRegex(H),b.value+=H,J({value:H});continue}if(H==='"'){x.quotes=x.quotes===1?0:1,c.keepQuotes===!0&&a({type:"text",value:H});continue}if(H==="("){oe("parens"),a({type:"paren",value:H});continue}if(H===")"){if(x.parens===0&&c.strictBrackets===!0)throw new SyntaxError(g("opening","("));const w=Q[Q.length-1];if(w&&x.parens===w.parens+1){t(Q.pop());continue}a({type:"paren",value:H,output:x.parens?")":"\\)"}),ne("parens");continue}if(H==="["){if(c.nobracket===!0||!fe().includes("]")){if(c.nobracket!==!0&&c.strictBrackets===!0)throw new SyntaxError(g("closing","]"));H=`\\${H}`}else oe("brackets");a({type:"bracket",value:H});continue}if(H==="]"){if(c.nobracket===!0||b&&b.type==="bracket"&&b.value.length===1){a({type:"text",value:H,output:`\\${H}`});continue}if(x.brackets===0){if(c.strictBrackets===!0)throw new SyntaxError(g("opening","["));a({type:"text",value:H,output:`\\${H}`});continue}ne("brackets");const w=b.value.slice(1);if(b.posix!==!0&&w[0]==="^"&&!w.includes("/")&&(H=`/${H}`),b.value+=H,J({value:H}),c.literalBrackets===!1||n.hasRegexChars(w))continue;const v=n.escapeRegex(b.value);if(x.output=x.output.slice(0,-b.value.length),c.literalBrackets===!0){x.output+=v,b.value=v;continue}b.value=`(${R}${v}|${b.value})`,x.output+=b.value;continue}if(H==="{"&&c.nobrace!==!0){oe("braces");const w={type:"brace",value:H,output:"(",outputIndex:x.output.length,tokensIndex:x.tokens.length};ce.push(w),a(w);continue}if(H==="}"){const w=ce[ce.length-1];if(c.nobrace===!0||!w){a({type:"text",value:H,output:H});continue}let v=")";if(w.dots===!0){const U=S.slice(),q=[];for(let G=U.length-1;G>=0&&(S.pop(),U[G].type!=="brace");G--)U[G].type!=="dots"&&q.unshift(U[G].value);v=r(q,c),x.backtrack=!0}if(w.comma!==!0&&w.dots!==!0){const U=x.output.slice(0,w.outputIndex),q=x.tokens.slice(w.tokensIndex);w.value=w.output="\\{",H=v="\\}",x.output=U;for(const G of q)x.output+=G.output||G.value}a({type:"brace",value:H,output:v}),ne("braces"),ce.pop();continue}if(H==="|"){Q.length>0&&Q[Q.length-1].conditions++,a({type:"text",value:H});continue}if(H===","){let w=H;const v=ce[ce.length-1];v&&re[re.length-1]==="braces"&&(v.comma=!0,w="|"),a({type:"comma",value:H,output:w});continue}if(H==="/"){if(b.type==="dot"&&x.index===x.start+1){x.start=x.index+1,x.consumed="",x.output="",S.pop(),b=B;continue}a({type:"slash",value:H,output:T});continue}if(H==="."){if(x.braces>0&&b.type==="dot"){b.value==="."&&(b.output=_);const w=ce[ce.length-1];b.type="dots",b.output+=H,b.value+=H,w.dots=!0;continue}if(x.braces+x.parens===0&&b.type!=="bos"&&b.type!=="slash"){a({type:"text",value:H,output:_});continue}a({type:"dot",value:H,output:_});continue}if(H==="?"){if(!(b&&b.value==="(")&&c.noextglob!==!0&&k()==="("&&k(2)!=="?"){e("qmark",H);continue}if(b&&b.type==="paren"){const v=k();let U=H;if(v==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(b.value==="("&&!/[!=<:]/.test(v)||v==="<"&&!/<([!=]|\w+>)/.test(fe()))&&(U=`\\${H}`),a({type:"text",value:H,output:U});continue}if(c.dot!==!0&&(b.type==="slash"||b.type==="bos")){a({type:"qmark",value:H,output:X});continue}a({type:"qmark",value:H,output:$});continue}if(H==="!"){if(c.noextglob!==!0&&k()==="("&&(k(2)!=="?"||!/[!=<:]/.test(k(3)))){e("negate",H);continue}if(c.nonegate!==!0&&x.index===0){ue();continue}}if(H==="+"){if(c.noextglob!==!0&&k()==="("&&k(2)!=="?"){e("plus",H);continue}if(b&&b.value==="("||c.regex===!1){a({type:"plus",value:H,output:L});continue}if(b&&(b.type==="bracket"||b.type==="paren"||b.type==="brace")||x.parens>0){a({type:"plus",value:H});continue}a({type:"plus",value:L});continue}if(H==="@"){if(c.noextglob!==!0&&k()==="("&&k(2)!=="?"){a({type:"at",extglob:!0,value:H,output:""});continue}a({type:"text",value:H});continue}if(H!=="*"){(H==="$"||H==="^")&&(H=`\\${H}`);const w=y.exec(fe());w&&(H+=w[0],x.index+=w[0].length),a({type:"text",value:H});continue}if(b&&(b.type==="globstar"||b.star===!0)){b.type="star",b.star=!0,b.value+=H,b.output=ee,x.backtrack=!0,x.globstar=!0,V(H);continue}let o=fe();if(c.noextglob!==!0&&/^\([^?]/.test(o)){e("star",H);continue}if(b.type==="star"){if(c.noglobstar===!0){V(H);continue}const w=b.prev,v=w.prev,U=w.type==="slash"||w.type==="bos",q=v&&(v.type==="star"||v.type==="globstar");if(c.bash===!0&&(!U||o[0]&&o[0]!=="/")){a({type:"star",value:H,output:""});continue}const G=x.braces>0&&(w.type==="comma"||w.type==="brace"),te=Q.length&&(w.type==="pipe"||w.type==="paren");if(!U&&w.type!=="paren"&&!G&&!te){a({type:"star",value:H,output:""});continue}for(;o.slice(0,3)==="/**";){const Z=p[x.index+4];if(Z&&Z!=="/")break;o=o.slice(3),V("/**",3)}if(w.type==="bos"&&K()){b.type="globstar",b.value+=H,b.output=P(c),x.output=b.output,x.globstar=!0,V(H);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&!q&&K()){x.output=x.output.slice(0,-(w.output+b.output).length),w.output=`(?:${w.output}`,b.type="globstar",b.output=P(c)+(c.strictSlashes?")":"|$)"),b.value+=H,x.globstar=!0,x.output+=w.output+b.output,V(H);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&o[0]==="/"){const Z=o[1]!==void 0?"|$":"";x.output=x.output.slice(0,-(w.output+b.output).length),w.output=`(?:${w.output}`,b.type="globstar",b.output=`${P(c)}${T}|${T}${Z})`,b.value+=H,x.output+=w.output+b.output,x.globstar=!0,V(H+ae()),a({type:"slash",value:"/",output:""});continue}if(w.type==="bos"&&o[0]==="/"){b.type="globstar",b.value+=H,b.output=`(?:^|${T}|${P(c)}${T})`,x.output=b.output,x.globstar=!0,V(H+ae()),a({type:"slash",value:"/",output:""});continue}x.output=x.output.slice(0,-b.output.length),b.type="globstar",b.output=P(c),b.value+=H,x.output+=b.output,x.globstar=!0,V(H);continue}const d={type:"star",value:H,output:ee};if(c.bash===!0){d.output=".*?",(b.type==="bos"||b.type==="slash")&&(d.output=Y+d.output),a(d);continue}if(b&&(b.type==="bracket"||b.type==="paren")&&c.regex===!0){d.output=H,a(d);continue}(x.index===x.start||b.type==="slash"||b.type==="dot")&&(b.type==="dot"?(x.output+=z,b.output+=z):c.dot===!0?(x.output+=D,b.output+=D):(x.output+=Y,b.output+=Y),k()!=="*"&&(x.output+=O,b.output+=O)),a(d)}for(;x.brackets>0;){if(c.strictBrackets===!0)throw new SyntaxError(g("closing","]"));x.output=n.escapeLast(x.output,"["),ne("brackets")}for(;x.parens>0;){if(c.strictBrackets===!0)throw new SyntaxError(g("closing",")"));x.output=n.escapeLast(x.output,"("),ne("parens")}for(;x.braces>0;){if(c.strictBrackets===!0)throw new SyntaxError(g("closing","}"));x.output=n.escapeLast(x.output,"{"),ne("braces")}if(c.strictSlashes!==!0&&(b.type==="star"||b.type==="bracket")&&a({type:"maybe_slash",value:"",output:`${T}?`}),x.backtrack===!0){x.output="";for(const o of x.tokens)x.output+=o.output!=null?o.output:o.value,o.suffix&&(x.output+=o.suffix)}return x};return l.fastpaths=(p,h)=>{const c={...h},E=typeof c.maxLength=="number"?Math.min(u,c.maxLength):u,C=p.length;if(C>E)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${E}`);p=s[p]||p;const B=n.isWindows(h),{DOT_LITERAL:S,SLASH_LITERAL:R,ONE_CHAR:I,DOTS_SLASH:m,NO_DOT:F,NO_DOTS:_,NO_DOTS_SLASH:L,STAR:T,START_ANCHOR:O}=i.globChars(B),N=c.dot?_:F,M=c.dot?L:F,z=c.capture?"":"?:",D={negated:!1,prefix:""};let $=c.bash===!0?".*?":T;c.capture&&($=`(${$})`);const X=Y=>Y.noglobstar===!0?$:`(${z}(?:(?!${O}${Y.dot?m:S}).)*?)`,j=Y=>{switch(Y){case"*":return`${N}${I}${$}`;case".*":return`${S}${I}${$}`;case"*.*":return`${N}${$}${S}${I}${$}`;case"*/*":return`${N}${$}${R}${I}${M}${$}`;case"**":return N+X(c);case"**/*":return`(?:${N}${X(c)}${R})?${M}${I}${$}`;case"**/*.*":return`(?:${N}${X(c)}${R})?${M}${$}${S}${I}${$}`;case"**/.*":return`(?:${N}${X(c)}${R})?${S}${I}${$}`;default:{const se=/^(.*?)\.(\w+)$/.exec(Y);if(!se)return;const ee=j(se[1]);return ee?ee+S+se[2]:void 0}}},W=n.removePrefix(p,D);let P=j(W);return P&&c.strictSlashes!==!0&&(P+=`${R}?`),P},wt=l,wt}var mt,hr;function tn(){if(hr)return mt;hr=1;const i=gt,n=Vr(),u=en(),f=Ie(),y=$e(),A=r=>r&&typeof r=="object"&&!Array.isArray(r),s=(r,g,l=!1)=>{if(Array.isArray(r)){const R=r.map(m=>s(m,g,l));return m=>{for(const F of R){const _=F(m);if(_)return _}return!1}}const p=A(r)&&r.tokens&&r.input;if(r===""||typeof r!="string"&&!p)throw new TypeError("Expected pattern to be a non-empty string");const h=g||{},c=f.isWindows(g),E=p?s.compileRe(r,g):s.makeRe(r,g,!1,!0),C=E.state;delete E.state;let B=()=>!1;if(h.ignore){const R={...g,ignore:null,onMatch:null,onResult:null};B=s(h.ignore,R,l)}const S=(R,I=!1)=>{const{isMatch:m,match:F,output:_}=s.test(R,E,g,{glob:r,posix:c}),L={glob:r,state:C,regex:E,posix:c,input:R,output:_,match:F,isMatch:m};return typeof h.onResult=="function"&&h.onResult(L),m===!1?(L.isMatch=!1,I?L:!1):B(R)?(typeof h.onIgnore=="function"&&h.onIgnore(L),L.isMatch=!1,I?L:!1):(typeof h.onMatch=="function"&&h.onMatch(L),I?L:!0)};return l&&(S.state=C),S};return s.test=(r,g,l,{glob:p,posix:h}={})=>{if(typeof r!="string")throw new TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};const c=l||{},E=c.format||(h?f.toPosixSlashes:null);let C=r===p,B=C&&E?E(r):r;return C===!1&&(B=E?E(r):r,C=B===p),(C===!1||c.capture===!0)&&(c.matchBase===!0||c.basename===!0?C=s.matchBase(r,g,l,h):C=g.exec(B)),{isMatch:!!C,match:C,output:B}},s.matchBase=(r,g,l,p=f.isWindows(l))=>(g instanceof RegExp?g:s.makeRe(g,l)).test(i.basename(r)),s.isMatch=(r,g,l)=>s(g,l)(r),s.parse=(r,g)=>Array.isArray(r)?r.map(l=>s.parse(l,g)):u(r,{...g,fastpaths:!1}),s.scan=(r,g)=>n(r,g),s.compileRe=(r,g,l=!1,p=!1)=>{if(l===!0)return r.output;const h=g||{},c=h.contains?"":"^",E=h.contains?"":"$";let C=`${c}(?:${r.output})${E}`;r&&r.negated===!0&&(C=`^(?!${C}).*$`);const B=s.toRegex(C,g);return p===!0&&(B.state=r),B},s.makeRe=(r,g={},l=!1,p=!1)=>{if(!r||typeof r!="string")throw new TypeError("Expected a non-empty string");let h={negated:!1,fastpaths:!0};return g.fastpaths!==!1&&(r[0]==="."||r[0]==="*")&&(h.output=u.fastpaths(r,g)),h.output||(h=u(r,g)),s.compileRe(h,g,l,p)},s.toRegex=(r,g)=>{try{const l=g||{};return new RegExp(r,l.flags||(l.nocase?"i":""))}catch(l){if(g&&g.debug===!0)throw l;return/$^/}},s.constants=y,mt=s,mt}var Rt,yr;function rn(){return yr||(yr=1,Rt=tn()),Rt}var _t,gr;function nn(){if(gr)return _t;gr=1;const i=qt,n=Qr(),u=rn(),f=Ie(),y=r=>r===""||r==="./",A=r=>{const g=r.indexOf("{");return g>-1&&r.indexOf("}",g)>-1},s=(r,g,l)=>{g=[].concat(g),r=[].concat(r);let p=new Set,h=new Set,c=new Set,E=0,C=R=>{c.add(R.output),l&&l.onResult&&l.onResult(R)};for(let R=0;R<g.length;R++){let I=u(String(g[R]),{...l,onResult:C},!0),m=I.state.negated||I.state.negatedExtglob;m&&E++;for(let F of r){let _=I(F,!0);(m?!_.isMatch:_.isMatch)&&(m?p.add(_.output):(p.delete(_.output),h.add(_.output)))}}let S=(E===g.length?[...c]:[...h]).filter(R=>!p.has(R));if(l&&S.length===0){if(l.failglob===!0)throw new Error(`No matches found for "${g.join(", ")}"`);if(l.nonull===!0||l.nullglob===!0)return l.unescape?g.map(R=>R.replace(/\\/g,"")):g}return S};return s.match=s,s.matcher=(r,g)=>u(r,g),s.isMatch=(r,g,l)=>u(g,l)(r),s.any=s.isMatch,s.not=(r,g,l={})=>{g=[].concat(g).map(String);let p=new Set,h=[],c=C=>{l.onResult&&l.onResult(C),h.push(C.output)},E=new Set(s(r,g,{...l,onResult:c}));for(let C of h)E.has(C)||p.add(C);return[...p]},s.contains=(r,g,l)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${i.inspect(r)}"`);if(Array.isArray(g))return g.some(p=>s.contains(r,p,l));if(typeof g=="string"){if(y(r)||y(g))return!1;if(r.includes(g)||r.startsWith("./")&&r.slice(2).includes(g))return!0}return s.isMatch(r,g,{...l,contains:!0})},s.matchKeys=(r,g,l)=>{if(!f.isObject(r))throw new TypeError("Expected the first argument to be an object");let p=s(Object.keys(r),g,l),h={};for(let c of p)h[c]=r[c];return h},s.some=(r,g,l)=>{let p=[].concat(r);for(let h of[].concat(g)){let c=u(String(h),l);if(p.some(E=>c(E)))return!0}return!1},s.every=(r,g,l)=>{let p=[].concat(r);for(let h of[].concat(g)){let c=u(String(h),l);if(!p.every(E=>c(E)))return!1}return!0},s.all=(r,g,l)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${i.inspect(r)}"`);return[].concat(g).every(p=>u(p,l)(r))},s.capture=(r,g,l)=>{let p=f.isWindows(l),c=u.makeRe(String(r),{...l,capture:!0}).exec(p?f.toPosixSlashes(g):g);if(c)return c.slice(1).map(E=>E===void 0?"":E)},s.makeRe=(...r)=>u.makeRe(...r),s.scan=(...r)=>u.scan(...r),s.parse=(r,g)=>{let l=[];for(let p of[].concat(r||[]))for(let h of n(String(p),g))l.push(u.parse(h,g));return l},s.braces=(r,g)=>{if(typeof r!="string")throw new TypeError("Expected a string");return g&&g.nobrace===!0||!A(r)?[r]:n(r,g)},s.braceExpand=(r,g)=>{if(typeof r!="string")throw new TypeError("Expected a string");return s.braces(r,{...g,expand:!0})},s.hasBraces=A,_t=s,_t}var un=nn();const dr=Ee(un);function Le(i,n){return i&&n?"all":!i&&!n?"none":i?"file":"dir"}class Ae extends Pe{type="directory";_handle;constructor(n){super(n),this._handle=n}static async create(n,u="read"){const f=new this(n);if(await f._verifyPermission(u))return f}async file(n,u){try{const f=le.resolve(n).split(le.sep).slice(1),y=f.pop();if(y==="")return;const s=await(await this._dirByPath(f,u?.create)).getFileHandle(y,{create:u?.create});return await ye.create(s,u?.mode)}catch{return}}async dir(n,u){try{const f=le.resolve(n).split(le.sep).slice(1);if(f.length===1&&f[0]==="")return;const y=await this._dirByPath(f,u?.create);return await Ae.create(y,u?.mode)}catch{return}}async glob(n){if(n==="")return[];const u=n.split("/"),y=(await this._glob(u)).map(A=>ye.create(A));return(await Promise.all(y)).filter(A=>A!==void 0)}async _glob(n,u=0,f=this._handle,y=""){const A=[],s=await Array.fromAsync(f.values()),r=n[u],g=u===n.length-1,l=this._filterEntry("dir",s),p=this._filterEntry("file",s);if(g)return p.filter(c=>dr.isMatch(y+c.name,n.join("/")));if(r==="**"){const h=await this._glob(n,n.length-1,f,y);A.push(...h);for(const c of l){const E=await this._glob(n,u,c,`${y}${c.name}/`);A.push(...E)}}else{const h=l.filter(c=>dr.isMatch(c.name,n[u]));for(const c of h){const E=await this._glob(n,u+1,c,`${y}${c.name}/`);A.push(...E)}}return A}async createFile(n,u){return await this.file(n,{...u,create:!0})}async createDir(n,u){return await this.dir(n,{...u,create:!0})}async remove(n){try{const u=le.resolve(n).split(le.sep).slice(1);return u.pop()===""?!1:(await(await this._dirByPath(u)).removeEntry(n,{recursive:!0}),!0)}catch{return!1}}async names({file:n=!0,dir:u=!0,depth:f=1}={}){if(!n&&!u)return[];const y=await this._tree(Le(n,u),f);return this._flat(y).map(A=>A.name)}async list({file:n=!0,dir:u=!0,depth:f=1}={}){if(!n&&!u)return[];const y=await this._tree(Le(n,u),f),A=this._flat(y).map(s=>s.kind==="file"?ye.create(s):Ae.create(s));return(await Promise.all(A)).filter(s=>!!s)}async tree({file:n=!0,dir:u=!0,depth:f=1}={}){const y=await this._tree(Le(n,u),f);return{handle:this._handle,children:y}}async treeString({file:n=!0,dir:u=!0,depth:f=1}={}){return(await this._toString(Le(n,u),f)).join(`
|
|
12
|
+
`)}async _tree(n,u,f=1,y=this._handle){if(n==="none")return[];const A=await Array.fromAsync(y.values()),s=this._filterEntry(n,A),r=[];for(const g of s)if(g.kind==="file"||f===u)r.push({handle:g,children:void 0});else{const l=await this._tree(n,u,f+1,g);r.push({handle:g,children:l})}return r}_flat(n){const u=[];for(const{handle:f,children:y}of n)u.push(f),y&&u.push(...this._flat(y));return u}async _toString(n,u,f=1,y=this._handle){if(n==="none")return[`${y.name}/`];const A=await Array.fromAsync(y.values()),s=this._filterEntry(n,A),r=s.length-1,g=[];g.push(`${y.name}/`);for(const[l,p]of s.entries()){let h=l<r?"├─":"└─";if(p.kind==="file")g.push(`${h} ${p.name}`);else if(f===u)g.push(`${h} ${p.name}/`);else{const c=await this._toString(n,u,f+1,p);g.push(...c.map((E,C)=>{let B;return l===r?B=C===0?"└─":" ":B=C===0?"├─":"│ ",`${B} ${E}`}))}}return g}_filterEntry(n,u){return n==="none"?[]:u.filter(y=>n==="all"?!0:n==="file"?y.kind==="file":y.kind==="directory")}async _dirByPath(n,u=!1){let f=this._handle;for(const y of n)f=await f.getDirectoryHandle(y,{create:u});return f}}function Oe(i){return new Promise((n,u)=>{i.oncomplete=i.onsuccess=()=>n(i.result),i.onabort=i.onerror=()=>u(i.error)})}function xt(i,n){let u;const f=()=>{if(u)return u;const y=indexedDB.open(i);return y.onupgradeneeded=()=>y.result.createObjectStore(n),u=Oe(y),u.then(A=>{A.onclose=()=>u=void 0},()=>{}),u};return(y,A)=>f().then(s=>A(s.transaction(n,y).objectStore(n)))}let vt;function St(){return vt||(vt=xt("keyval-store","keyval")),vt}function Ar(i,n=St()){return n("readonly",u=>Oe(u.get(i)))}function Er(i,n,u=St()){return u("readwrite",f=>(f.put(n,i),Oe(f.transaction)))}function wr(i,n=St()){return n("readwrite",u=>(u.delete(i),Oe(u.transaction)))}class ge{static fileStore=xt("web-fs-file","keyval");static directoryStore=xt("web-fs-directory","keyval");constructor(){}static getFile(n){return Ar(n,this.fileStore)}static async setFile(n,u){await Er(n,u,this.fileStore)}static async delFile(n){await wr(n,this.fileStore)}static getDirectory(n){return Ar(n,this.directoryStore)}static async setDirectory(n,u){await Er(n,u,this.directoryStore)}static async delDirectory(n){await wr(n,this.directoryStore)}}class mr{_handles;constructor(n){this._handles=n}static async create(n,u="read"){const f=await Promise.all(n.map(A=>ye.create(A,u)));return f.includes(void 0)?void 0:new this(f)}file(n){return this._handles.find(u=>u.name===n)}names(){return this._handles.map(n=>n.name)}list(){return this._handles}get length(){return this._handles.length}*[Symbol.iterator](){yield*this._handles}}function an(){return globalThis.isSecureContext&&"showOpenFilePicker"in globalThis&&"showDirectoryPicker"in globalThis}async function on(i={}){try{if(i.persistence===!0){const u=await ge.getFile(i.id);if(u)return await ye.create(u[0],i.mode)}const n=await Rr(i,!1);return i.persistence===!0&&ge.setFile(i.id,n),await ye.create(n[0],i.mode)}catch{return}}async function sn(i={}){try{if(i.persistence===!0){const u=await ge.getFile(i.id);if(u)return await mr.create(u,i.mode)}const n=await Rr(i,!0);return i.persistence===!0&&ge.setFile(i.id,n),await mr.create(n,i.mode)}catch{return}}async function cn(i={}){try{if(i.persistence===!0){const u=await ge.getDirectory(i.id);if(u)return await Ae.create(u,i.mode)}const n=await globalThis.showDirectoryPicker({id:`web-fs_${i.id}`,startIn:i.startIn});return i.persistence===!0&&ge.setDirectory(i.id,n),await Ae.create(n,i.mode)}catch{return}}async function ln(i,n={}){try{return await ye.create(i,n.mode)}catch{return}}async function fn(i,n={}){try{return await Ae.create(i,n.mode)}catch{return}}async function pn(i){await ge.delFile(i)}async function hn(i){await ge.delDirectory(i)}function Rr(i,n){return globalThis.showOpenFilePicker({id:`web-fs_${i.id}`,excludeAcceptAllOption:!i.acceptAllExtensions,startIn:i.startIn,multiple:n,types:i.types?.map(({description:u,accept:f})=>({description:u,accept:{"*/*":f}}))})}ie.WebFsDirectoryHandle=Ae,ie.WebFsFileHandle=ye,ie.WebFsHandle=Pe,ie.mountDirectory=fn,ie.mountFile=ln,ie.pickDirectory=cn,ie.pickFile=on,ie.pickFiles=sn,ie.supportsWebFs=an,ie.unmountDirectory=hn,ie.unmountFile=pn,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vrcalphabet/web-fs",
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public"
|
|
5
|
+
},
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"main": "dist/main.js",
|
|
12
|
+
"types": "dist/main.d.ts",
|
|
13
|
+
"scripts": {
|
|
14
|
+
"dev": "vite",
|
|
15
|
+
"build": "tsc && vite build",
|
|
16
|
+
"graph": "madge --image graph.png src/main.ts",
|
|
17
|
+
"format": "prettier --write \"src/**/*.ts\" --log-level warn",
|
|
18
|
+
"docs": "npx typedoc"
|
|
19
|
+
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/md5": "^2.3.6",
|
|
23
|
+
"@types/micromatch": "^4.0.10",
|
|
24
|
+
"@types/node": "^25.0.10",
|
|
25
|
+
"@types/wicg-file-system-access": "^2023.10.7",
|
|
26
|
+
"madge": "^8.0.0",
|
|
27
|
+
"typedoc": "^0.28.16",
|
|
28
|
+
"typescript": "^5.9.3",
|
|
29
|
+
"vite": "^7.3.1",
|
|
30
|
+
"vite-plugin-dts": "^4.5.4",
|
|
31
|
+
"vite-plugin-node-polyfills": "^0.2.0"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"idb-keyval": "^6.2.2",
|
|
35
|
+
"md5": "^2.3.0",
|
|
36
|
+
"micromatch": "^4.0.8"
|
|
37
|
+
}
|
|
38
|
+
}
|