import{bM as ii,bN as si}from"./D3yeoG_9.js";var pe={},Ae={exports:{}},je={},Se={},pt;function oi(){if(pt)return Se;pt=1,Se.byteLength=s,Se.toByteArray=m,Se.fromByteArray=w;for(var n=[],f=[],u=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,y=a.length;c0)throw new Error("Invalid string. Length must be a multiple of 4");var b=S.indexOf("=");b===-1&&(b=B);var P=b===B?0:4-b%4;return[b,P]}function s(S){var B=l(S),b=B[0],P=B[1];return(b+P)*3/4-P}function E(S,B,b){return(B+b)*3/4-b}function m(S){var B,b=l(S),P=b[0],g=b[1],T=new u(E(S,P,g)),R=0,L=g>0?P-4:P,U;for(U=0;U>16&255,T[R++]=B>>8&255,T[R++]=B&255;return g===2&&(B=f[S.charCodeAt(U)]<<2|f[S.charCodeAt(U+1)]>>4,T[R++]=B&255),g===1&&(B=f[S.charCodeAt(U)]<<10|f[S.charCodeAt(U+1)]<<4|f[S.charCodeAt(U+2)]>>2,T[R++]=B>>8&255,T[R++]=B&255),T}function o(S){return n[S>>18&63]+n[S>>12&63]+n[S>>6&63]+n[S&63]}function h(S,B,b){for(var P,g=[],T=B;TL?L:R+T));return P===1?(B=S[b-1],g.push(n[B>>2]+n[B<<4&63]+"==")):P===2&&(B=(S[b-2]<<8)+S[b-1],g.push(n[B>>10]+n[B>>4&63]+n[B<<2&63]+"=")),g.join("")}return Se}var ve={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var dt;function ai(){return dt||(dt=1,ve.read=function(n,f,u,a,c){var y,l,s=c*8-a-1,E=(1<>1,o=-7,h=u?c-1:0,w=u?-1:1,S=n[f+h];for(h+=w,y=S&(1<<-o)-1,S>>=-o,o+=s;o>0;y=y*256+n[f+h],h+=w,o-=8);for(l=y&(1<<-o)-1,y>>=-o,o+=a;o>0;l=l*256+n[f+h],h+=w,o-=8);if(y===0)y=1-m;else{if(y===E)return l?NaN:(S?-1:1)*(1/0);l=l+Math.pow(2,a),y=y-m}return(S?-1:1)*l*Math.pow(2,y-a)},ve.write=function(n,f,u,a,c,y){var l,s,E,m=y*8-c-1,o=(1<>1,w=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=a?0:y-1,B=a?1:-1,b=f<0||f===0&&1/f<0?1:0;for(f=Math.abs(f),isNaN(f)||f===1/0?(s=isNaN(f)?1:0,l=o):(l=Math.floor(Math.log(f)/Math.LN2),f*(E=Math.pow(2,-l))<1&&(l--,E*=2),l+h>=1?f+=w/E:f+=w*Math.pow(2,1-h),f*E>=2&&(l++,E/=2),l+h>=o?(s=0,l=o):l+h>=1?(s=(f*E-1)*Math.pow(2,c),l=l+h):(s=f*Math.pow(2,h-1)*Math.pow(2,c),l=0));c>=8;n[u+S]=s&255,S+=B,s/=256,c-=8);for(l=l<0;n[u+S]=l&255,S+=B,l/=256,m-=8);n[u+S-B]|=b*128}),ve}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var mt;function $e(){return mt||(mt=1,(function(n){const f=oi(),u=ai(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=s,n.SlowBuffer=T,n.INSPECT_MAX_BYTES=50;const c=2147483647;n.kMaxLength=c,s.TYPED_ARRAY_SUPPORT=y(),!s.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 y(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function l(t){if(t>c)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return E(t,e,r)}s.poolSize=8192;function E(t,e,r){if(typeof t=="string")return w(t,e);if(ArrayBuffer.isView(t))return B(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(he(t,ArrayBuffer)||t&&he(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he(t,SharedArrayBuffer)||t&&he(t.buffer,SharedArrayBuffer)))return b(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return s.from(i,e,r);const p=P(t);if(p)return p;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}s.from=function(t,e,r){return E(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function m(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function o(t,e,r){return m(t),t<=0?l(t):e!==void 0?typeof r=="string"?l(t).fill(e,r):l(t).fill(e):l(t)}s.alloc=function(t,e,r){return o(t,e,r)};function h(t){return m(t),l(t<0?0:g(t)|0)}s.allocUnsafe=function(t){return h(t)},s.allocUnsafeSlow=function(t){return h(t)};function w(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=R(t,e)|0;let i=l(r);const p=i.write(t,e);return p!==r&&(i=i.slice(0,p)),i}function S(t){const e=t.length<0?0:g(t.length)|0,r=l(e);for(let i=0;i=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return t|0}function T(t){return+t!=t&&(t=0),s.alloc(+t)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,r){if(he(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),he(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let i=e.length,p=r.length;for(let A=0,N=Math.min(i,p);Ap.length?(s.isBuffer(N)||(N=s.from(N)),N.copy(p,A)):Uint8Array.prototype.set.call(p,N,A);else if(s.isBuffer(N))N.copy(p,A);else throw new TypeError('"list" argument must be an Array of Buffers');A+=N.length}return p};function R(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||he(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let p=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return fe(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ht(t).length;default:if(p)return i?-1:fe(t).length;e=(""+e).toLowerCase(),p=!0}}s.byteLength=R;function L(t,e,r){let i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return C(this,e,r);case"latin1":case"binary":return d(this,e,r);case"base64":return H(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}s.prototype._isBuffer=!0;function U(t,e,r){const i=t[e];t[e]=t[r],t[r]=i}s.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(e+=" ... "),""},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,r,i,p,A){if(he(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),i===void 0&&(i=e?e.length:0),p===void 0&&(p=0),A===void 0&&(A=this.length),r<0||i>e.length||p<0||A>this.length)throw new RangeError("out of range index");if(p>=A&&r>=i)return 0;if(p>=A)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,p>>>=0,A>>>=0,this===e)return 0;let N=A-p,Z=i-r;const te=Math.min(N,Z),re=this.slice(p,A),ne=e.slice(r,i);for(let ee=0;ee2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,qe(r)&&(r=p?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(p)return-1;r=t.length-1}else if(r<0)if(p)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,i)),s.isBuffer(e))return e.length===0?-1:G(t,e,r,i,p);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?p?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):G(t,[e],r,i,p);throw new TypeError("val must be string, number or Buffer")}function G(t,e,r,i,p){let A=1,N=t.length,Z=e.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||e.length<2)return-1;A=2,N/=2,Z/=2,r/=2}function te(ne,ee){return A===1?ne[ee]:ne.readUInt16BE(ee*A)}let re;if(p){let ne=-1;for(re=r;reN&&(r=N-Z),re=r;re>=0;re--){let ne=!0;for(let ee=0;eep&&(i=p)):i=p;const A=e.length;i>A/2&&(i=A/2);let N;for(N=0;N>>0,isFinite(i)?(i=i>>>0,p===void 0&&(p="utf8")):(p=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const A=this.length-r;if((i===void 0||i>A)&&(i=A),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");p||(p="utf8");let N=!1;for(;;)switch(p){case"hex":return O(this,e,r,i);case"utf8":case"utf-8":return M(this,e,r,i);case"ascii":case"latin1":case"binary":return W(this,e,r,i);case"base64":return Y(this,e,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,r,i);default:if(N)throw new TypeError("Unknown encoding: "+p);p=(""+p).toLowerCase(),N=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(t,e,r){return e===0&&r===t.length?f.fromByteArray(t):f.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);const i=[];let p=e;for(;p239?4:A>223?3:A>191?2:1;if(p+Z<=r){let te,re,ne,ee;switch(Z){case 1:A<128&&(N=A);break;case 2:te=t[p+1],(te&192)===128&&(ee=(A&31)<<6|te&63,ee>127&&(N=ee));break;case 3:te=t[p+1],re=t[p+2],(te&192)===128&&(re&192)===128&&(ee=(A&15)<<12|(te&63)<<6|re&63,ee>2047&&(ee<55296||ee>57343)&&(N=ee));break;case 4:te=t[p+1],re=t[p+2],ne=t[p+3],(te&192)===128&&(re&192)===128&&(ne&192)===128&&(ee=(A&15)<<18|(te&63)<<12|(re&63)<<6|ne&63,ee>65535&&ee<1114112&&(N=ee))}}N===null?(N=65533,Z=1):N>65535&&(N-=65536,i.push(N>>>10&1023|55296),N=56320|N&1023),i.push(N),p+=Z}return q(i)}const v=4096;function q(t){const e=t.length;if(e<=v)return String.fromCharCode.apply(String,t);let r="",i=0;for(;ii)&&(r=i);let p="";for(let A=e;Ai&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),rr)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||D(e,r,this.length);let p=this[e],A=1,N=0;for(;++N>>0,r=r>>>0,i||D(e,r,this.length);let p=this[e+--r],A=1;for(;r>0&&(A*=256);)p+=this[e+--r]*A;return p},s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||D(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||D(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||D(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||D(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=me(function(e){e=e>>>0,X(e,"offset");const r=this[e],i=this[e+7];(r===void 0||i===void 0)&&z(e,this.length-8);const p=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,A=this[++e]+this[++e]*2**8+this[++e]*2**16+i*2**24;return BigInt(p)+(BigInt(A)<>>0,X(e,"offset");const r=this[e],i=this[e+7];(r===void 0||i===void 0)&&z(e,this.length-8);const p=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],A=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i;return(BigInt(p)<>>0,r=r>>>0,i||D(e,r,this.length);let p=this[e],A=1,N=0;for(;++N=A&&(p-=Math.pow(2,8*r)),p},s.prototype.readIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||D(e,r,this.length);let p=r,A=1,N=this[e+--p];for(;p>0&&(A*=256);)N+=this[e+--p]*A;return A*=128,N>=A&&(N-=Math.pow(2,8*r)),N},s.prototype.readInt8=function(e,r){return e=e>>>0,r||D(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,r){e=e>>>0,r||D(e,2,this.length);const i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i},s.prototype.readInt16BE=function(e,r){e=e>>>0,r||D(e,2,this.length);const i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i},s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=me(function(e){e=e>>>0,X(e,"offset");const r=this[e],i=this[e+7];(r===void 0||i===void 0)&&z(e,this.length-8);const p=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(i<<24);return(BigInt(p)<>>0,X(e,"offset");const r=this[e],i=this[e+7];(r===void 0||i===void 0)&&z(e,this.length-8);const p=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(p)<>>0,r||D(e,4,this.length),u.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||D(e,4,this.length),u.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||D(e,8,this.length),u.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||D(e,8,this.length),u.read(this,e,!1,52,8)};function k(t,e,r,i,p,A){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>p||et.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,i,p){if(e=+e,r=r>>>0,i=i>>>0,!p){const Z=Math.pow(2,8*i)-1;k(this,e,r,i,Z,0)}let A=1,N=0;for(this[r]=e&255;++N>>0,i=i>>>0,!p){const Z=Math.pow(2,8*i)-1;k(this,e,r,i,Z,0)}let A=i-1,N=1;for(this[r+A]=e&255;--A>=0&&(N*=256);)this[r+A]=e/N&255;return r+i},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,i){return e=+e,r=r>>>0,i||k(this,e,r,1,255,0),this[r]=e&255,r+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||k(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||k(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||k(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||k(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function V(t,e,r,i,p){$(e,i,p,t,r,7);let A=Number(e&BigInt(4294967295));t[r++]=A,A=A>>8,t[r++]=A,A=A>>8,t[r++]=A,A=A>>8,t[r++]=A;let N=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=N,N=N>>8,t[r++]=N,N=N>>8,t[r++]=N,N=N>>8,t[r++]=N,r}function K(t,e,r,i,p){$(e,i,p,t,r,7);let A=Number(e&BigInt(4294967295));t[r+7]=A,A=A>>8,t[r+6]=A,A=A>>8,t[r+5]=A,A=A>>8,t[r+4]=A;let N=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=N,N=N>>8,t[r+2]=N,N=N>>8,t[r+1]=N,N=N>>8,t[r]=N,r+8}s.prototype.writeBigUInt64LE=me(function(e,r=0){return V(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=me(function(e,r=0){return K(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,r,i,p){if(e=+e,r=r>>>0,!p){const te=Math.pow(2,8*i-1);k(this,e,r,i,te-1,-te)}let A=0,N=1,Z=0;for(this[r]=e&255;++A>0)-Z&255;return r+i},s.prototype.writeIntBE=function(e,r,i,p){if(e=+e,r=r>>>0,!p){const te=Math.pow(2,8*i-1);k(this,e,r,i,te-1,-te)}let A=i-1,N=1,Z=0;for(this[r+A]=e&255;--A>=0&&(N*=256);)e<0&&Z===0&&this[r+A+1]!==0&&(Z=1),this[r+A]=(e/N>>0)-Z&255;return r+i},s.prototype.writeInt8=function(e,r,i){return e=+e,r=r>>>0,i||k(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1},s.prototype.writeInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||k(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2},s.prototype.writeInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||k(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2},s.prototype.writeInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||k(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4},s.prototype.writeInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||k(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4},s.prototype.writeBigInt64LE=me(function(e,r=0){return V(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=me(function(e,r=0){return K(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function J(t,e,r,i,p,A){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Q(t,e,r,i,p){return e=+e,r=r>>>0,p||J(t,e,r,4),u.write(t,e,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,r,i){return Q(this,e,r,!0,i)},s.prototype.writeFloatBE=function(e,r,i){return Q(this,e,r,!1,i)};function ae(t,e,r,i,p){return e=+e,r=r>>>0,p||J(t,e,r,8),u.write(t,e,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,i){return ae(this,e,r,!0,i)},s.prototype.writeDoubleBE=function(e,r,i){return ae(this,e,r,!1,i)},s.prototype.copy=function(e,r,i,p){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),!p&&p!==0&&(p=this.length),r>=e.length&&(r=e.length),r||(r=0),p>0&&p=this.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("sourceEnd out of bounds");p>this.length&&(p=this.length),e.length-r>>0,i=i===void 0?this.length:i>>>0,e||(e=0);let A;if(typeof e=="number")for(A=r;A2**32?p=de(String(r)):typeof r=="bigint"&&(p=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(p=de(p)),p+="n"),i+=` It must be ${e}. Received ${p}`,i},RangeError);function de(t){let e="",r=t.length;const i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function we(t,e,r){X(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&z(e,t.length-(r+1))}function $(t,e,r,i,p,A){if(t>r||t= 0${N} and < 2${N} ** ${(A+1)*8}${N}`:Z=`>= -(2${N} ** ${(A+1)*8-1}${N}) and < 2 ** ${(A+1)*8-1}${N}`,new ue.ERR_OUT_OF_RANGE("value",Z,t)}we(i,p,A)}function X(t,e){if(typeof t!="number")throw new ue.ERR_INVALID_ARG_TYPE(e,"number",t)}function z(t,e,r){throw Math.floor(t)!==t?(X(t,r),new ue.ERR_OUT_OF_RANGE("offset","an integer",t)):e<0?new ue.ERR_BUFFER_OUT_OF_BOUNDS:new ue.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,t)}const ie=/[^+/0-9A-Za-z-_]/g;function oe(t){if(t=t.split("=")[0],t=t.trim().replace(ie,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function fe(t,e){e=e||1/0;let r;const i=t.length;let p=null;const A=[];for(let N=0;N55295&&r<57344){if(!p){if(r>56319){(e-=3)>-1&&A.push(239,191,189);continue}else if(N+1===i){(e-=3)>-1&&A.push(239,191,189);continue}p=r;continue}if(r<56320){(e-=3)>-1&&A.push(239,191,189),p=r;continue}r=(p-55296<<10|r-56320)+65536}else p&&(e-=3)>-1&&A.push(239,191,189);if(p=null,r<128){if((e-=1)<0)break;A.push(r)}else if(r<2048){if((e-=2)<0)break;A.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;A.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;A.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return A}function ei(t){const e=[];for(let r=0;r>8,p=r%256,A.push(p),A.push(i);return A}function ht(t){return f.toByteArray(oe(t))}function be(t,e,r,i){let p;for(p=0;p=e.length||p>=t.length);++p)e[p+r]=t[p];return p}function he(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function qe(t){return t!==t}const ti=(function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const i=r*16;for(let p=0;p<16;++p)e[i+p]=t[r]+t[p]}return e})();function me(t){return typeof BigInt>"u"?ni:t}function ni(){throw new Error("BigInt not supported")}})(je)),je}/*! safe-buffer. MIT License. Feross Aboukhadijeh */var yt;function Re(){return yt||(yt=1,(function(n,f){var u=$e(),a=u.Buffer;function c(l,s){for(var E in l)s[E]=l[E]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?n.exports=u:(c(u,f),f.Buffer=y);function y(l,s,E){return a(l,s,E)}y.prototype=Object.create(a.prototype),c(a,y),y.from=function(l,s,E){if(typeof l=="number")throw new TypeError("Argument must not be a number");return a(l,s,E)},y.alloc=function(l,s,E){if(typeof l!="number")throw new TypeError("Argument must be a number");var m=a(l);return s!==void 0?typeof E=="string"?m.fill(s,E):m.fill(s):m.fill(0),m},y.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return a(l)},y.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return u.SlowBuffer(l)}})(Ae,Ae.exports)),Ae.exports}const ui={},fi=Object.freeze(Object.defineProperty({__proto__:null,default:ui},Symbol.toStringTag,{value:"Module"})),Ee=ii(fi);var Ce={},Ue,Et;function ci(){return Et||(Et=1,Ue=function(f){return f&&typeof f=="object"&&typeof f.copy=="function"&&typeof f.fill=="function"&&typeof f.readUInt8=="function"}),Ue}var Te={exports:{}},gt;function li(){return gt||(gt=1,typeof Object.create=="function"?Te.exports=function(f,u){f.super_=u,f.prototype=Object.create(u.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}})}:Te.exports=function(f,u){f.super_=u;var a=function(){};a.prototype=u.prototype,f.prototype=new a,f.prototype.constructor=f}),Te.exports}var wt;function xe(){return wt||(wt=1,(function(n){var f={},u=/%[sdj%]/g;n.format=function(d){if(!L(d)){for(var I=[],F=0;F=k)return J;switch(J){case"%s":return String(D[F++]);case"%d":return Number(D[F++]);case"%j":try{return JSON.stringify(D[F++])}catch{return"[Circular]"}default:return J}}),K=D[F];F=3&&(F.depth=arguments[2]),arguments.length>=4&&(F.colors=arguments[3]),P(I)?F.showHidden=I:I&&n._extend(F,I),_(F.showHidden)&&(F.showHidden=!1),_(F.depth)&&(F.depth=2),_(F.colors)&&(F.colors=!1),_(F.customInspect)&&(F.customInspect=!0),F.colors&&(F.stylize=l),m(F,d,F.depth)}n.inspect=y,y.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]},y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function l(d,I){var F=y.styles[I];return F?"\x1B["+y.colors[F][0]+"m"+d+"\x1B["+y.colors[F][1]+"m":d}function s(d,I){return d}function E(d){var I={};return d.forEach(function(F,D){I[F]=!0}),I}function m(d,I,F){if(d.customInspect&&I&&Y(I.inspect)&&I.inspect!==n.inspect&&!(I.constructor&&I.constructor.prototype===I)){var D=I.inspect(F,d);return L(D)||(D=m(d,D,F)),D}var k=o(d,I);if(k)return k;var V=Object.keys(I),K=E(V);if(d.showHidden&&(V=Object.getOwnPropertyNames(I)),W(I)&&(V.indexOf("message")>=0||V.indexOf("description")>=0))return h(I);if(V.length===0){if(Y(I)){var J=I.name?": "+I.name:"";return d.stylize("[Function"+J+"]","special")}if(G(I))return d.stylize(RegExp.prototype.toString.call(I),"regexp");if(M(I))return d.stylize(Date.prototype.toString.call(I),"date");if(W(I))return h(I)}var Q="",ae=!1,ue=["{","}"];if(b(I)&&(ae=!0,ue=["[","]"]),Y(I)){var ye=I.name?": "+I.name:"";Q=" [Function"+ye+"]"}if(G(I)&&(Q=" "+RegExp.prototype.toString.call(I)),M(I)&&(Q=" "+Date.prototype.toUTCString.call(I)),W(I)&&(Q=" "+h(I)),V.length===0&&(!ae||I.length==0))return ue[0]+Q+ue[1];if(F<0)return G(I)?d.stylize(RegExp.prototype.toString.call(I),"regexp"):d.stylize("[Object]","special");d.seen.push(I);var de;return ae?de=w(d,I,F,K,V):de=V.map(function(we){return S(d,I,F,K,we,ae)}),d.seen.pop(),B(de,Q,ue)}function o(d,I){if(_(I))return d.stylize("undefined","undefined");if(L(I)){var F="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return d.stylize(F,"string")}if(R(I))return d.stylize(""+I,"number");if(P(I))return d.stylize(""+I,"boolean");if(g(I))return d.stylize("null","null")}function h(d){return"["+Error.prototype.toString.call(d)+"]"}function w(d,I,F,D,k){for(var V=[],K=0,J=I.length;K-1&&(V?J=J.split(` `).map(function(ae){return" "+ae}).join(` `).substr(2):J=` `+J.split(` `).map(function(ae){return" "+ae}).join(` `))):J=d.stylize("[Circular]","special")),_(K)){if(V&&k.match(/^\d+$/))return J;K=JSON.stringify(""+k),K.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(K=K.substr(1,K.length-2),K=d.stylize(K,"name")):(K=K.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),K=d.stylize(K,"string"))}return K+": "+J}function B(d,I,F){var D=d.reduce(function(k,V){return V.indexOf(` `)>=0,k+V.replace(/\u001b\[\d\d?m/g,"").length+1},0);return D>60?F[0]+(I===""?"":I+` `)+" "+d.join(`, `)+" "+F[1]:F[0]+I+" "+d.join(", ")+" "+F[1]}function b(d){return Array.isArray(d)}n.isArray=b;function P(d){return typeof d=="boolean"}n.isBoolean=P;function g(d){return d===null}n.isNull=g;function T(d){return d==null}n.isNullOrUndefined=T;function R(d){return typeof d=="number"}n.isNumber=R;function L(d){return typeof d=="string"}n.isString=L;function U(d){return typeof d=="symbol"}n.isSymbol=U;function _(d){return d===void 0}n.isUndefined=_;function G(d){return O(d)&&H(d)==="[object RegExp]"}n.isRegExp=G;function O(d){return typeof d=="object"&&d!==null}n.isObject=O;function M(d){return O(d)&&H(d)==="[object Date]"}n.isDate=M;function W(d){return O(d)&&(H(d)==="[object Error]"||d instanceof Error)}n.isError=W;function Y(d){return typeof d=="function"}n.isFunction=Y;function j(d){return d===null||typeof d=="boolean"||typeof d=="number"||typeof d=="string"||typeof d=="symbol"||typeof d>"u"}n.isPrimitive=j,n.isBuffer=ci();function H(d){return Object.prototype.toString.call(d)}function x(d){return d<10?"0"+d.toString(10):d.toString(10)}var v=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function q(){var d=new Date,I=[x(d.getHours()),x(d.getMinutes()),x(d.getSeconds())].join(":");return[d.getDate(),v[d.getMonth()],I].join(" ")}n.log=function(){console.log("%s - %s",q(),n.format.apply(n,arguments))},n.inherits=li(),n._extend=function(d,I){if(!I||!O(I))return d;for(var F=Object.keys(I),D=F.length;D--;)d[F[D]]=I[F[D]];return d};function C(d,I){return Object.prototype.hasOwnProperty.call(d,I)}})(Ce)),Ce}var De,St;function Gn(){if(St)return De;St=1;var n=Re().Buffer,f=Ee,u=xe();function a(c){if(this.buffer=null,this.writable=!0,this.readable=!0,!c)return this.buffer=n.alloc(0),this;if(typeof c.pipe=="function")return this.buffer=n.alloc(0),c.pipe(this),this;if(c.length||typeof c=="object")return this.buffer=c,this.writable=!1,process.nextTick((function(){this.emit("end",c),this.readable=!1,this.emit("close")}).bind(this)),this;throw new TypeError("Unexpected data type ("+typeof c+")")}return u.inherits(a,f),a.prototype.write=function(y){this.buffer=n.concat([this.buffer,n.from(y)]),this.emit("data",y)},a.prototype.end=function(y){y&&this.write(y),this.emit("end",y),this.emit("close"),this.writable=!1,this.readable=!1},De=a,De}var Ge,Rt;function hi(){if(Rt)return Ge;Rt=1;var n=$e().Buffer,f=$e().SlowBuffer;Ge=u;function u(y,l){if(!n.isBuffer(y)||!n.isBuffer(l)||y.length!==l.length)return!1;for(var s=0,E=0;E=u;return T&&--g,g}function S(B,b){B=o(B);var P=f(b),g=B.length;if(g!==P*2)throw new TypeError('"'+b+'" signatures must be "'+P*2+'" bytes, saw "'+g+'"');var T=w(B,0,P),R=w(B,P,B.length),L=P-T,U=P-R,_=2+L+1+1+U,G=_0)return l(o);if(w==="number"&&isFinite(o))return h.long?E(o):s(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))};function l(o){if(o=String(o),!(o.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(h){var w=parseFloat(h[1]),S=(h[2]||"ms").toLowerCase();switch(S){case"years":case"year":case"yrs":case"yr":case"y":return w*y;case"weeks":case"week":case"w":return w*c;case"days":case"day":case"d":return w*a;case"hours":case"hour":case"hrs":case"hr":case"h":return w*u;case"minutes":case"minute":case"mins":case"min":case"m":return w*f;case"seconds":case"second":case"secs":case"sec":case"s":return w*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return w;default:return}}}}function s(o){var h=Math.abs(o);return h>=a?Math.round(o/a)+"d":h>=u?Math.round(o/u)+"h":h>=f?Math.round(o/f)+"m":h>=n?Math.round(o/n)+"s":o+"ms"}function E(o){var h=Math.abs(o);return h>=a?m(o,h,a,"day"):h>=u?m(o,h,u,"hour"):h>=f?m(o,h,f,"minute"):h>=n?m(o,h,n,"second"):o+" ms"}function m(o,h,w,S){var B=h>=w*1.5;return Math.round(o/w)+" "+S+(B?"s":"")}return Ze}var Qe,Ft;function Kn(){if(Ft)return Qe;Ft=1;var n=Ei();return Qe=function(f,u){var a=u||Math.floor(Date.now()/1e3);if(typeof f=="string"){var c=n(f);return typeof c>"u"?void 0:Math.floor(a+c/1e3)}else return typeof f=="number"?a+f:void 0},Qe}var Be={exports:{}},er,Pt;function Ne(){if(Pt)return er;Pt=1;const n="2.0.0",f=256,u=Number.MAX_SAFE_INTEGER||9007199254740991,a=16,c=f-6;return er={MAX_LENGTH:f,MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:c,MAX_SAFE_INTEGER:u,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:n,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},er}var rr,qt;function Oe(){if(qt)return rr;qt=1;var n={};return rr=typeof process=="object"&&n&&n.NODE_DEBUG&&/\bsemver\b/i.test(n.NODE_DEBUG)?(...u)=>console.error("SEMVER",...u):()=>{},rr}var jt;function Ie(){return jt||(jt=1,(function(n,f){const{MAX_SAFE_COMPONENT_LENGTH:u,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:c}=Ne(),y=Oe();f=n.exports={};const l=f.re=[],s=f.safeRe=[],E=f.src=[],m=f.safeSrc=[],o=f.t={};let h=0;const w="[a-zA-Z0-9-]",S=[["\\s",1],["\\d",c],[w,a]],B=P=>{for(const[g,T]of S)P=P.split(`${g}*`).join(`${g}{0,${T}}`).split(`${g}+`).join(`${g}{1,${T}}`);return P},b=(P,g,T)=>{const R=B(g),L=h++;y(P,L,g),o[P]=L,E[L]=g,m[L]=R,l[L]=new RegExp(g,T?"g":void 0),s[L]=new RegExp(R,T?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${w}*`),b("MAINVERSION",`(${E[o.NUMERICIDENTIFIER]})\\.(${E[o.NUMERICIDENTIFIER]})\\.(${E[o.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${E[o.NUMERICIDENTIFIERLOOSE]})\\.(${E[o.NUMERICIDENTIFIERLOOSE]})\\.(${E[o.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${E[o.NONNUMERICIDENTIFIER]}|${E[o.NUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${E[o.NONNUMERICIDENTIFIER]}|${E[o.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASE",`(?:-(${E[o.PRERELEASEIDENTIFIER]}(?:\\.${E[o.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${E[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${E[o.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${w}+`),b("BUILD",`(?:\\+(${E[o.BUILDIDENTIFIER]}(?:\\.${E[o.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${E[o.MAINVERSION]}${E[o.PRERELEASE]}?${E[o.BUILD]}?`),b("FULL",`^${E[o.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${E[o.MAINVERSIONLOOSE]}${E[o.PRERELEASELOOSE]}?${E[o.BUILD]}?`),b("LOOSE",`^${E[o.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${E[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${E[o.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${E[o.XRANGEIDENTIFIER]})(?:\\.(${E[o.XRANGEIDENTIFIER]})(?:\\.(${E[o.XRANGEIDENTIFIER]})(?:${E[o.PRERELEASE]})?${E[o.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${E[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${E[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${E[o.XRANGEIDENTIFIERLOOSE]})(?:${E[o.PRERELEASELOOSE]})?${E[o.BUILD]}?)?)?`),b("XRANGE",`^${E[o.GTLT]}\\s*${E[o.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${E[o.GTLT]}\\s*${E[o.XRANGEPLAINLOOSE]}$`),b("COERCEPLAIN",`(^|[^\\d])(\\d{1,${u}})(?:\\.(\\d{1,${u}}))?(?:\\.(\\d{1,${u}}))?`),b("COERCE",`${E[o.COERCEPLAIN]}(?:$|[^\\d])`),b("COERCEFULL",E[o.COERCEPLAIN]+`(?:${E[o.PRERELEASE]})?(?:${E[o.BUILD]})?(?:$|[^\\d])`),b("COERCERTL",E[o.COERCE],!0),b("COERCERTLFULL",E[o.COERCEFULL],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${E[o.LONETILDE]}\\s+`,!0),f.tildeTrimReplace="$1~",b("TILDE",`^${E[o.LONETILDE]}${E[o.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${E[o.LONETILDE]}${E[o.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${E[o.LONECARET]}\\s+`,!0),f.caretTrimReplace="$1^",b("CARET",`^${E[o.LONECARET]}${E[o.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${E[o.LONECARET]}${E[o.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${E[o.GTLT]}\\s*(${E[o.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${E[o.GTLT]}\\s*(${E[o.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${E[o.GTLT]}\\s*(${E[o.LOOSEPLAIN]}|${E[o.XRANGEPLAIN]})`,!0),f.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${E[o.XRANGEPLAIN]})\\s+-\\s+(${E[o.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${E[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${E[o.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Be,Be.exports)),Be.exports}var tr,Ct;function st(){if(Ct)return tr;Ct=1;const n=Object.freeze({loose:!0}),f=Object.freeze({});return tr=a=>a?typeof a!="object"?n:a:f,tr}var nr,Ut;function Jn(){if(Ut)return nr;Ut=1;const n=/^[0-9]+$/,f=(a,c)=>{const y=n.test(a),l=n.test(c);return y&&l&&(a=+a,c=+c),a===c?0:y&&!l?-1:l&&!y?1:af(c,a)},nr}var ir,Dt;function se(){if(Dt)return ir;Dt=1;const n=Oe(),{MAX_LENGTH:f,MAX_SAFE_INTEGER:u}=Ne(),{safeRe:a,t:c}=Ie(),y=st(),{compareIdentifiers:l}=Jn();class s{constructor(m,o){if(o=y(o),m instanceof s){if(m.loose===!!o.loose&&m.includePrerelease===!!o.includePrerelease)return m;m=m.version}else if(typeof m!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof m}".`);if(m.length>f)throw new TypeError(`version is longer than ${f} characters`);n("SemVer",m,o),this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease;const h=m.trim().match(o.loose?a[c.LOOSE]:a[c.FULL]);if(!h)throw new TypeError(`Invalid Version: ${m}`);if(this.raw=m,this.major=+h[1],this.minor=+h[2],this.patch=+h[3],this.major>u||this.major<0)throw new TypeError("Invalid major version");if(this.minor>u||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>u||this.patch<0)throw new TypeError("Invalid patch version");h[4]?this.prerelease=h[4].split(".").map(w=>{if(/^[0-9]+$/.test(w)){const S=+w;if(S>=0&&S=0;)typeof this.prerelease[S]=="number"&&(this.prerelease[S]++,S=-2);if(S===-1){if(o===this.prerelease.join(".")&&h===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(w)}}if(o){let S=[o,w];h===!1&&(S=[o]),l(this.prerelease[0],o)===0?isNaN(this.prerelease[1])&&(this.prerelease=S):this.prerelease=S}break}default:throw new Error(`invalid increment argument: ${m}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return ir=s,ir}var sr,Gt;function ge(){if(Gt)return sr;Gt=1;const n=se();return sr=(u,a,c=!1)=>{if(u instanceof n)return u;try{return new n(u,a)}catch(y){if(!c)return null;throw y}},sr}var or,kt;function gi(){if(kt)return or;kt=1;const n=ge();return or=(u,a)=>{const c=n(u,a);return c?c.version:null},or}var ar,Mt;function wi(){if(Mt)return ar;Mt=1;const n=ge();return ar=(u,a)=>{const c=n(u.trim().replace(/^[=v]+/,""),a);return c?c.version:null},ar}var ur,Vt;function Si(){if(Vt)return ur;Vt=1;const n=se();return ur=(u,a,c,y,l)=>{typeof c=="string"&&(l=y,y=c,c=void 0);try{return new n(u instanceof n?u.version:u,c).inc(a,y,l).version}catch{return null}},ur}var fr,Ht;function Ri(){if(Ht)return fr;Ht=1;const n=ge();return fr=(u,a)=>{const c=n(u,null,!0),y=n(a,null,!0),l=c.compare(y);if(l===0)return null;const s=l>0,E=s?c:y,m=s?y:c,o=!!E.prerelease.length;if(!!m.prerelease.length&&!o){if(!m.patch&&!m.minor)return"major";if(m.compareMain(E)===0)return m.minor&&!m.patch?"minor":"patch"}const w=o?"pre":"";return c.major!==y.major?w+"major":c.minor!==y.minor?w+"minor":c.patch!==y.patch?w+"patch":"prerelease"},fr}var cr,Xt;function Ii(){if(Xt)return cr;Xt=1;const n=se();return cr=(u,a)=>new n(u,a).major,cr}var lr,Kt;function bi(){if(Kt)return lr;Kt=1;const n=se();return lr=(u,a)=>new n(u,a).minor,lr}var hr,Jt;function Ai(){if(Jt)return hr;Jt=1;const n=se();return hr=(u,a)=>new n(u,a).patch,hr}var pr,zt;function vi(){if(zt)return pr;zt=1;const n=ge();return pr=(u,a)=>{const c=n(u,a);return c&&c.prerelease.length?c.prerelease:null},pr}var dr,Wt;function ce(){if(Wt)return dr;Wt=1;const n=se();return dr=(u,a,c)=>new n(u,c).compare(new n(a,c)),dr}var mr,Yt;function Ti(){if(Yt)return mr;Yt=1;const n=ce();return mr=(u,a,c)=>n(a,u,c),mr}var yr,Zt;function Bi(){if(Zt)return yr;Zt=1;const n=ce();return yr=(u,a)=>n(u,a,!0),yr}var Er,Qt;function ot(){if(Qt)return Er;Qt=1;const n=se();return Er=(u,a,c)=>{const y=new n(u,c),l=new n(a,c);return y.compare(l)||y.compareBuild(l)},Er}var gr,en;function $i(){if(en)return gr;en=1;const n=ot();return gr=(u,a)=>u.sort((c,y)=>n(c,y,a)),gr}var wr,rn;function xi(){if(rn)return wr;rn=1;const n=ot();return wr=(u,a)=>u.sort((c,y)=>n(y,c,a)),wr}var Sr,tn;function _e(){if(tn)return Sr;tn=1;const n=ce();return Sr=(u,a,c)=>n(u,a,c)>0,Sr}var Rr,nn;function at(){if(nn)return Rr;nn=1;const n=ce();return Rr=(u,a,c)=>n(u,a,c)<0,Rr}var Ir,sn;function zn(){if(sn)return Ir;sn=1;const n=ce();return Ir=(u,a,c)=>n(u,a,c)===0,Ir}var br,on;function Wn(){if(on)return br;on=1;const n=ce();return br=(u,a,c)=>n(u,a,c)!==0,br}var Ar,an;function ut(){if(an)return Ar;an=1;const n=ce();return Ar=(u,a,c)=>n(u,a,c)>=0,Ar}var vr,un;function ft(){if(un)return vr;un=1;const n=ce();return vr=(u,a,c)=>n(u,a,c)<=0,vr}var Tr,fn;function Yn(){if(fn)return Tr;fn=1;const n=zn(),f=Wn(),u=_e(),a=ut(),c=at(),y=ft();return Tr=(s,E,m,o)=>{switch(E){case"===":return typeof s=="object"&&(s=s.version),typeof m=="object"&&(m=m.version),s===m;case"!==":return typeof s=="object"&&(s=s.version),typeof m=="object"&&(m=m.version),s!==m;case"":case"=":case"==":return n(s,m,o);case"!=":return f(s,m,o);case">":return u(s,m,o);case">=":return a(s,m,o);case"<":return c(s,m,o);case"<=":return y(s,m,o);default:throw new TypeError(`Invalid operator: ${E}`)}},Tr}var Br,cn;function Li(){if(cn)return Br;cn=1;const n=se(),f=ge(),{safeRe:u,t:a}=Ie();return Br=(y,l)=>{if(y instanceof n)return y;if(typeof y=="number"&&(y=String(y)),typeof y!="string")return null;l=l||{};let s=null;if(!l.rtl)s=y.match(l.includePrerelease?u[a.COERCEFULL]:u[a.COERCE]);else{const S=l.includePrerelease?u[a.COERCERTLFULL]:u[a.COERCERTL];let B;for(;(B=S.exec(y))&&(!s||s.index+s[0].length!==y.length);)(!s||B.index+B[0].length!==s.index+s[0].length)&&(s=B),S.lastIndex=B.index+B[1].length+B[2].length;S.lastIndex=-1}if(s===null)return null;const E=s[2],m=s[3]||"0",o=s[4]||"0",h=l.includePrerelease&&s[5]?`-${s[5]}`:"",w=l.includePrerelease&&s[6]?`+${s[6]}`:"";return f(`${E}.${m}.${o}${h}${w}`,l)},Br}var $r,ln;function Ni(){if(ln)return $r;ln=1;class n{constructor(){this.max=1e3,this.map=new Map}get(u){const a=this.map.get(u);if(a!==void 0)return this.map.delete(u),this.map.set(u,a),a}delete(u){return this.map.delete(u)}set(u,a){if(!this.delete(u)&&a!==void 0){if(this.map.size>=this.max){const y=this.map.keys().next().value;this.delete(y)}this.map.set(u,a)}return this}}return $r=n,$r}var xr,hn;function le(){if(hn)return xr;hn=1;const n=/\s+/g;class f{constructor(v,q){if(q=c(q),v instanceof f)return v.loose===!!q.loose&&v.includePrerelease===!!q.includePrerelease?v:new f(v.raw,q);if(v instanceof y)return this.raw=v.value,this.set=[[v]],this.formatted=void 0,this;if(this.options=q,this.loose=!!q.loose,this.includePrerelease=!!q.includePrerelease,this.raw=v.trim().replace(n," "),this.set=this.raw.split("||").map(C=>this.parseRange(C.trim())).filter(C=>C.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const C=this.set[0];if(this.set=this.set.filter(d=>!b(d[0])),this.set.length===0)this.set=[C];else if(this.set.length>1){for(const d of this.set)if(d.length===1&&P(d[0])){this.set=[d];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let v=0;v0&&(this.formatted+="||");const q=this.set[v];for(let C=0;C0&&(this.formatted+=" "),this.formatted+=q[C].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(v){const C=((this.options.includePrerelease&&S)|(this.options.loose&&B))+":"+v,d=a.get(C);if(d)return d;const I=this.options.loose,F=I?E[m.HYPHENRANGELOOSE]:E[m.HYPHENRANGE];v=v.replace(F,j(this.options.includePrerelease)),l("hyphen replace",v),v=v.replace(E[m.COMPARATORTRIM],o),l("comparator trim",v),v=v.replace(E[m.TILDETRIM],h),l("tilde trim",v),v=v.replace(E[m.CARETTRIM],w),l("caret trim",v);let D=v.split(" ").map(J=>T(J,this.options)).join(" ").split(/\s+/).map(J=>Y(J,this.options));I&&(D=D.filter(J=>(l("loose invalid filter",J,this.options),!!J.match(E[m.COMPARATORLOOSE])))),l("range list",D);const k=new Map,V=D.map(J=>new y(J,this.options));for(const J of V){if(b(J))return[J];k.set(J.value,J)}k.size>1&&k.has("")&&k.delete("");const K=[...k.values()];return a.set(C,K),K}intersects(v,q){if(!(v instanceof f))throw new TypeError("a Range is required");return this.set.some(C=>g(C,q)&&v.set.some(d=>g(d,q)&&C.every(I=>d.every(F=>I.intersects(F,q)))))}test(v){if(!v)return!1;if(typeof v=="string")try{v=new s(v,this.options)}catch{return!1}for(let q=0;qx.value==="<0.0.0-0",P=x=>x.value==="",g=(x,v)=>{let q=!0;const C=x.slice();let d=C.pop();for(;q&&C.length;)q=C.every(I=>d.intersects(I,v)),d=C.pop();return q},T=(x,v)=>(l("comp",x,v),x=_(x,v),l("caret",x),x=L(x,v),l("tildes",x),x=O(x,v),l("xrange",x),x=W(x,v),l("stars",x),x),R=x=>!x||x.toLowerCase()==="x"||x==="*",L=(x,v)=>x.trim().split(/\s+/).map(q=>U(q,v)).join(" "),U=(x,v)=>{const q=v.loose?E[m.TILDELOOSE]:E[m.TILDE];return x.replace(q,(C,d,I,F,D)=>{l("tilde",x,C,d,I,F,D);let k;return R(d)?k="":R(I)?k=`>=${d}.0.0 <${+d+1}.0.0-0`:R(F)?k=`>=${d}.${I}.0 <${d}.${+I+1}.0-0`:D?(l("replaceTilde pr",D),k=`>=${d}.${I}.${F}-${D} <${d}.${+I+1}.0-0`):k=`>=${d}.${I}.${F} <${d}.${+I+1}.0-0`,l("tilde return",k),k})},_=(x,v)=>x.trim().split(/\s+/).map(q=>G(q,v)).join(" "),G=(x,v)=>{l("caret",x,v);const q=v.loose?E[m.CARETLOOSE]:E[m.CARET],C=v.includePrerelease?"-0":"";return x.replace(q,(d,I,F,D,k)=>{l("caret",x,d,I,F,D,k);let V;return R(I)?V="":R(F)?V=`>=${I}.0.0${C} <${+I+1}.0.0-0`:R(D)?I==="0"?V=`>=${I}.${F}.0${C} <${I}.${+F+1}.0-0`:V=`>=${I}.${F}.0${C} <${+I+1}.0.0-0`:k?(l("replaceCaret pr",k),I==="0"?F==="0"?V=`>=${I}.${F}.${D}-${k} <${I}.${F}.${+D+1}-0`:V=`>=${I}.${F}.${D}-${k} <${I}.${+F+1}.0-0`:V=`>=${I}.${F}.${D}-${k} <${+I+1}.0.0-0`):(l("no pr"),I==="0"?F==="0"?V=`>=${I}.${F}.${D}${C} <${I}.${F}.${+D+1}-0`:V=`>=${I}.${F}.${D}${C} <${I}.${+F+1}.0-0`:V=`>=${I}.${F}.${D} <${+I+1}.0.0-0`),l("caret return",V),V})},O=(x,v)=>(l("replaceXRanges",x,v),x.split(/\s+/).map(q=>M(q,v)).join(" ")),M=(x,v)=>{x=x.trim();const q=v.loose?E[m.XRANGELOOSE]:E[m.XRANGE];return x.replace(q,(C,d,I,F,D,k)=>{l("xRange",x,C,d,I,F,D,k);const V=R(I),K=V||R(F),J=K||R(D),Q=J;return d==="="&&Q&&(d=""),k=v.includePrerelease?"-0":"",V?d===">"||d==="<"?C="<0.0.0-0":C="*":d&&Q?(K&&(F=0),D=0,d===">"?(d=">=",K?(I=+I+1,F=0,D=0):(F=+F+1,D=0)):d==="<="&&(d="<",K?I=+I+1:F=+F+1),d==="<"&&(k="-0"),C=`${d+I}.${F}.${D}${k}`):K?C=`>=${I}.0.0${k} <${+I+1}.0.0-0`:J&&(C=`>=${I}.${F}.0${k} <${I}.${+F+1}.0-0`),l("xRange return",C),C})},W=(x,v)=>(l("replaceStars",x,v),x.trim().replace(E[m.STAR],"")),Y=(x,v)=>(l("replaceGTE0",x,v),x.trim().replace(E[v.includePrerelease?m.GTE0PRE:m.GTE0],"")),j=x=>(v,q,C,d,I,F,D,k,V,K,J,Q)=>(R(C)?q="":R(d)?q=`>=${C}.0.0${x?"-0":""}`:R(I)?q=`>=${C}.${d}.0${x?"-0":""}`:F?q=`>=${q}`:q=`>=${q}${x?"-0":""}`,R(V)?k="":R(K)?k=`<${+V+1}.0.0-0`:R(J)?k=`<${V}.${+K+1}.0-0`:Q?k=`<=${V}.${K}.${J}-${Q}`:x?k=`<${V}.${K}.${+J+1}-0`:k=`<=${k}`,`${q} ${k}`.trim()),H=(x,v,q)=>{for(let C=0;C0){const d=x[C].semver;if(d.major===v.major&&d.minor===v.minor&&d.patch===v.patch)return!0}return!1}return!0};return xr}var Lr,pn;function Fe(){if(pn)return Lr;pn=1;const n=Symbol("SemVer ANY");class f{static get ANY(){return n}constructor(o,h){if(h=u(h),o instanceof f){if(o.loose===!!h.loose)return o;o=o.value}o=o.trim().split(/\s+/).join(" "),l("comparator",o,h),this.options=h,this.loose=!!h.loose,this.parse(o),this.semver===n?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(o){const h=this.options.loose?a[c.COMPARATORLOOSE]:a[c.COMPARATOR],w=o.match(h);if(!w)throw new TypeError(`Invalid comparator: ${o}`);this.operator=w[1]!==void 0?w[1]:"",this.operator==="="&&(this.operator=""),w[2]?this.semver=new s(w[2],this.options.loose):this.semver=n}toString(){return this.value}test(o){if(l("Comparator.test",o,this.options.loose),this.semver===n||o===n)return!0;if(typeof o=="string")try{o=new s(o,this.options)}catch{return!1}return y(o,this.operator,this.semver,this.options)}intersects(o,h){if(!(o instanceof f))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new E(o.value,h).test(this.value):o.operator===""?o.value===""?!0:new E(this.value,h).test(o.semver):(h=u(h),h.includePrerelease&&(this.value==="<0.0.0-0"||o.value==="<0.0.0-0")||!h.includePrerelease&&(this.value.startsWith("<0.0.0")||o.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&o.operator.startsWith(">")||this.operator.startsWith("<")&&o.operator.startsWith("<")||this.semver.version===o.semver.version&&this.operator.includes("=")&&o.operator.includes("=")||y(this.semver,"<",o.semver,h)&&this.operator.startsWith(">")&&o.operator.startsWith("<")||y(this.semver,">",o.semver,h)&&this.operator.startsWith("<")&&o.operator.startsWith(">")))}}Lr=f;const u=st(),{safeRe:a,t:c}=Ie(),y=Yn(),l=Oe(),s=se(),E=le();return Lr}var Nr,dn;function Pe(){if(dn)return Nr;dn=1;const n=le();return Nr=(u,a,c)=>{try{a=new n(a,c)}catch{return!1}return a.test(u)},Nr}var Or,mn;function Oi(){if(mn)return Or;mn=1;const n=le();return Or=(u,a)=>new n(u,a).set.map(c=>c.map(y=>y.value).join(" ").trim().split(" ")),Or}var _r,yn;function _i(){if(yn)return _r;yn=1;const n=se(),f=le();return _r=(a,c,y)=>{let l=null,s=null,E=null;try{E=new f(c,y)}catch{return null}return a.forEach(m=>{E.test(m)&&(!l||s.compare(m)===-1)&&(l=m,s=new n(l,y))}),l},_r}var Fr,En;function Fi(){if(En)return Fr;En=1;const n=se(),f=le();return Fr=(a,c,y)=>{let l=null,s=null,E=null;try{E=new f(c,y)}catch{return null}return a.forEach(m=>{E.test(m)&&(!l||s.compare(m)===1)&&(l=m,s=new n(l,y))}),l},Fr}var Pr,gn;function Pi(){if(gn)return Pr;gn=1;const n=se(),f=le(),u=_e();return Pr=(c,y)=>{c=new f(c,y);let l=new n("0.0.0");if(c.test(l)||(l=new n("0.0.0-0"),c.test(l)))return l;l=null;for(let s=0;s{const h=new n(o.semver.version);switch(o.operator){case">":h.prerelease.length===0?h.patch++:h.prerelease.push(0),h.raw=h.format();case"":case">=":(!m||u(h,m))&&(m=h);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),m&&(!l||u(l,m))&&(l=m)}return l&&c.test(l)?l:null},Pr}var qr,wn;function qi(){if(wn)return qr;wn=1;const n=le();return qr=(u,a)=>{try{return new n(u,a).range||"*"}catch{return null}},qr}var jr,Sn;function ct(){if(Sn)return jr;Sn=1;const n=se(),f=Fe(),{ANY:u}=f,a=le(),c=Pe(),y=_e(),l=at(),s=ft(),E=ut();return jr=(o,h,w,S)=>{o=new n(o,S),h=new a(h,S);let B,b,P,g,T;switch(w){case">":B=y,b=s,P=l,g=">",T=">=";break;case"<":B=l,b=E,P=y,g="<",T="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(c(o,h,S))return!1;for(let R=0;R{G.semver===u&&(G=new f(">=0.0.0")),U=U||G,_=_||G,B(G.semver,U.semver,S)?U=G:P(G.semver,_.semver,S)&&(_=G)}),U.operator===g||U.operator===T||(!_.operator||_.operator===g)&&b(o,_.semver))return!1;if(_.operator===T&&P(o,_.semver))return!1}return!0},jr}var Cr,Rn;function ji(){if(Rn)return Cr;Rn=1;const n=ct();return Cr=(u,a,c)=>n(u,a,">",c),Cr}var Ur,In;function Ci(){if(In)return Ur;In=1;const n=ct();return Ur=(u,a,c)=>n(u,a,"<",c),Ur}var Dr,bn;function Ui(){if(bn)return Dr;bn=1;const n=le();return Dr=(u,a,c)=>(u=new n(u,c),a=new n(a,c),u.intersects(a,c)),Dr}var Gr,An;function Di(){if(An)return Gr;An=1;const n=Pe(),f=ce();return Gr=(u,a,c)=>{const y=[];let l=null,s=null;const E=u.sort((w,S)=>f(w,S,c));for(const w of E)n(w,a,c)?(s=w,l||(l=w)):(s&&y.push([l,s]),s=null,l=null);l&&y.push([l,null]);const m=[];for(const[w,S]of y)w===S?m.push(w):!S&&w===E[0]?m.push("*"):S?w===E[0]?m.push(`<=${S}`):m.push(`${w} - ${S}`):m.push(`>=${w}`);const o=m.join(" || "),h=typeof a.raw=="string"?a.raw:String(a);return o.length{if(h===w)return!0;h=new n(h,S),w=new n(w,S);let B=!1;e:for(const b of h.set){for(const P of w.set){const g=E(b,P,S);if(B=B||g!==null,g)continue e}if(B)return!1}return!0},l=[new f(">=0.0.0-0")],s=[new f(">=0.0.0")],E=(h,w,S)=>{if(h===w)return!0;if(h.length===1&&h[0].semver===u){if(w.length===1&&w[0].semver===u)return!0;S.includePrerelease?h=l:h=s}if(w.length===1&&w[0].semver===u){if(S.includePrerelease)return!0;w=s}const B=new Set;let b,P;for(const O of h)O.operator===">"||O.operator===">="?b=m(b,O,S):O.operator==="<"||O.operator==="<="?P=o(P,O,S):B.add(O.semver);if(B.size>1)return null;let g;if(b&&P){if(g=c(b.semver,P.semver,S),g>0)return null;if(g===0&&(b.operator!==">="||P.operator!=="<="))return null}for(const O of B){if(b&&!a(O,String(b),S)||P&&!a(O,String(P),S))return null;for(const M of w)if(!a(O,String(M),S))return!1;return!0}let T,R,L,U,_=P&&!S.includePrerelease&&P.semver.prerelease.length?P.semver:!1,G=b&&!S.includePrerelease&&b.semver.prerelease.length?b.semver:!1;_&&_.prerelease.length===1&&P.operator==="<"&&_.prerelease[0]===0&&(_=!1);for(const O of w){if(U=U||O.operator===">"||O.operator===">=",L=L||O.operator==="<"||O.operator==="<=",b){if(G&&O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===G.major&&O.semver.minor===G.minor&&O.semver.patch===G.patch&&(G=!1),O.operator===">"||O.operator===">="){if(T=m(b,O,S),T===O&&T!==b)return!1}else if(b.operator===">="&&!a(b.semver,String(O),S))return!1}if(P){if(_&&O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===_.major&&O.semver.minor===_.minor&&O.semver.patch===_.patch&&(_=!1),O.operator==="<"||O.operator==="<="){if(R=o(P,O,S),R===O&&R!==P)return!1}else if(P.operator==="<="&&!a(P.semver,String(O),S))return!1}if(!O.operator&&(P||b)&&g!==0)return!1}return!(b&&L&&!P&&g!==0||P&&U&&!b&&g!==0||G||_)},m=(h,w,S)=>{if(!h)return w;const B=c(h.semver,w.semver,S);return B>0?h:B<0||w.operator===">"&&h.operator===">="?w:h},o=(h,w,S)=>{if(!h)return w;const B=c(h.semver,w.semver,S);return B<0?h:B>0||w.operator==="<"&&h.operator==="<="?w:h};return kr=y,kr}var Mr,Tn;function lt(){if(Tn)return Mr;Tn=1;const n=Ie(),f=Ne(),u=se(),a=Jn(),c=ge(),y=gi(),l=wi(),s=Si(),E=Ri(),m=Ii(),o=bi(),h=Ai(),w=vi(),S=ce(),B=Ti(),b=Bi(),P=ot(),g=$i(),T=xi(),R=_e(),L=at(),U=zn(),_=Wn(),G=ut(),O=ft(),M=Yn(),W=Li(),Y=Fe(),j=le(),H=Pe(),x=Oi(),v=_i(),q=Fi(),C=Pi(),d=qi(),I=ct(),F=ji(),D=Ci(),k=Ui(),V=Di(),K=Gi();return Mr={parse:c,valid:y,clean:l,inc:s,diff:E,major:m,minor:o,patch:h,prerelease:w,compare:S,rcompare:B,compareLoose:b,compareBuild:P,sort:g,rsort:T,gt:R,lt:L,eq:U,neq:_,gte:G,lte:O,cmp:M,coerce:W,Comparator:Y,Range:j,satisfies:H,toComparators:x,maxSatisfying:v,minSatisfying:q,minVersion:C,validRange:d,outside:I,gtr:F,ltr:D,intersects:k,simplifyRange:V,subset:K,SemVer:u,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:f.SEMVER_SPEC_VERSION,RELEASE_TYPES:f.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers},Mr}var Vr,Bn;function ki(){return Bn||(Bn=1,Vr=lt().satisfies(process.version,">=15.7.0")),Vr}var Hr,$n;function Mi(){return $n||($n=1,Hr=lt().satisfies(process.version,">=16.9.0")),Hr}var Xr,xn;function Zn(){if(xn)return Xr;xn=1;const n=ki(),f=Mi(),u={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},a={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};return Xr=function(c,y){if(!c||!y)return;const l=y.asymmetricKeyType;if(!l)return;const s=u[l];if(!s)throw new Error(`Unknown key type "${l}".`);if(!s.includes(c))throw new Error(`"alg" parameter for "${l}" key type must be one of: ${s.join(", ")}.`);if(n)switch(l){case"ec":const E=y.asymmetricKeyDetails.namedCurve,m=a[c];if(E!==m)throw new Error(`"alg" parameter "${c}" requires curve "${m}".`);break;case"rsa-pss":if(f){const o=parseInt(c.slice(-3),10),{hashAlgorithm:h,mgf1HashAlgorithm:w,saltLength:S}=y.asymmetricKeyDetails;if(h!==`sha${o}`||w!==h)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${c}.`);if(S!==void 0&&S>o>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${c}.`)}break}},Xr}var Kr,Ln;function Qn(){if(Ln)return Kr;Ln=1;var n=lt();return Kr=n.satisfies(process.version,"^6.12.0 || >=8.0.0"),Kr}var Jr,Nn;function Vi(){if(Nn)return Jr;Nn=1;const n=Le(),f=Hn(),u=Xn(),a=Vn(),c=Kn(),y=Zn(),l=Qn(),s=it(),{KeyObject:E,createSecretKey:m,createPublicKey:o}=Ee,h=["RS256","RS384","RS512"],w=["ES256","ES384","ES512"],S=["RS256","RS384","RS512"],B=["HS256","HS384","HS512"];return l&&(h.splice(h.length,0,"PS256","PS384","PS512"),S.splice(S.length,0,"PS256","PS384","PS512")),Jr=function(b,P,g,T){typeof g=="function"&&!T&&(T=g,g={}),g||(g={}),g=Object.assign({},g);let R;if(T?R=T:R=function(M,W){if(M)throw M;return W},g.clockTimestamp&&typeof g.clockTimestamp!="number")return R(new n("clockTimestamp must be a number"));if(g.nonce!==void 0&&(typeof g.nonce!="string"||g.nonce.trim()===""))return R(new n("nonce must be a non-empty string"));if(g.allowInvalidAsymmetricKeyTypes!==void 0&&typeof g.allowInvalidAsymmetricKeyTypes!="boolean")return R(new n("allowInvalidAsymmetricKeyTypes must be a boolean"));const L=g.clockTimestamp||Math.floor(Date.now()/1e3);if(!b)return R(new n("jwt must be provided"));if(typeof b!="string")return R(new n("jwt must be a string"));const U=b.split(".");if(U.length!==3)return R(new n("jwt malformed"));let _;try{_=a(b,{complete:!0})}catch(M){return R(M)}if(!_)return R(new n("invalid token"));const G=_.header;let O;if(typeof P=="function"){if(!T)return R(new n("verify must be called asynchronous if secret or public key is provided as a callback"));O=P}else O=function(M,W){return W(null,P)};return O(G,function(M,W){if(M)return R(new n("error in secret or public key callback: "+M.message));const Y=U[2].trim()!=="";if(!Y&&W)return R(new n("jwt signature is required"));if(Y&&!W)return R(new n("secret or public key must be provided"));if(!Y&&!g.algorithms)return R(new n('please specify "none" in "algorithms" to verify unsigned tokens'));if(W!=null&&!(W instanceof E))try{W=o(W)}catch{try{W=m(typeof W=="string"?Buffer.from(W):W)}catch{return R(new n("secretOrPublicKey is not valid key material"))}}if(g.algorithms||(W.type==="secret"?g.algorithms=B:["rsa","rsa-pss"].includes(W.asymmetricKeyType)?g.algorithms=S:W.asymmetricKeyType==="ec"?g.algorithms=w:g.algorithms=h),g.algorithms.indexOf(_.header.alg)===-1)return R(new n("invalid algorithm"));if(G.alg.startsWith("HS")&&W.type!=="secret")return R(new n(`secretOrPublicKey must be a symmetric key when using ${G.alg}`));if(/^(?:RS|PS|ES)/.test(G.alg)&&W.type!=="public")return R(new n(`secretOrPublicKey must be an asymmetric key when using ${G.alg}`));if(!g.allowInvalidAsymmetricKeyTypes)try{y(G.alg,W)}catch(x){return R(x)}let j;try{j=s.verify(b,_.header.alg,W)}catch(x){return R(x)}if(!j)return R(new n("invalid signature"));const H=_.payload;if(typeof H.nbf<"u"&&!g.ignoreNotBefore){if(typeof H.nbf!="number")return R(new n("invalid nbf value"));if(H.nbf>L+(g.clockTolerance||0))return R(new f("jwt not active",new Date(H.nbf*1e3)))}if(typeof H.exp<"u"&&!g.ignoreExpiration){if(typeof H.exp!="number")return R(new n("invalid exp value"));if(L>=H.exp+(g.clockTolerance||0))return R(new u("jwt expired",new Date(H.exp*1e3)))}if(g.audience){const x=Array.isArray(g.audience)?g.audience:[g.audience];if(!(Array.isArray(H.aud)?H.aud:[H.aud]).some(function(C){return x.some(function(d){return d instanceof RegExp?d.test(C):d===C})}))return R(new n("jwt audience invalid. expected: "+x.join(" or ")))}if(g.issuer&&(typeof g.issuer=="string"&&H.iss!==g.issuer||Array.isArray(g.issuer)&&g.issuer.indexOf(H.iss)===-1))return R(new n("jwt issuer invalid. expected: "+g.issuer));if(g.subject&&H.sub!==g.subject)return R(new n("jwt subject invalid. expected: "+g.subject));if(g.jwtid&&H.jti!==g.jwtid)return R(new n("jwt jwtid invalid. expected: "+g.jwtid));if(g.nonce&&H.nonce!==g.nonce)return R(new n("jwt nonce invalid. expected: "+g.nonce));if(g.maxAge){if(typeof H.iat!="number")return R(new n("iat required when maxAge is specified"));const x=c(g.maxAge,H.iat);if(typeof x>"u")return R(new n('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(L>=x+(g.clockTolerance||0))return R(new u("maxAge exceeded",new Date(x*1e3)))}if(g.complete===!0){const x=_.signature;return R(null,{header:G,payload:H,signature:x})}return R(null,H)})},Jr}var zr,On;function Hi(){if(On)return zr;On=1;var n=1/0,f=9007199254740991,u=17976931348623157e292,a=NaN,c="[object Arguments]",y="[object Function]",l="[object GeneratorFunction]",s="[object String]",E="[object Symbol]",m=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,w=/^0o[0-7]+$/i,S=/^(?:0|[1-9]\d*)$/,B=parseInt;function b($,X){for(var z=-1,ie=$?$.length:0,oe=Array(ie);++z-1&&$%1==0&&$-1:!!oe&&g($,X,z)>-1}function C($){return F($)&&G.call($,"callee")&&(!M.call($,"callee")||O.call($)==c)}var d=Array.isArray;function I($){return $!=null&&k($.length)&&!D($)}function F($){return K($)&&I($)}function D($){var X=V($)?O.call($):"";return X==y||X==l}function k($){return typeof $=="number"&&$>-1&&$%1==0&&$<=f}function V($){var X=typeof $;return!!$&&(X=="object"||X=="function")}function K($){return!!$&&typeof $=="object"}function J($){return typeof $=="string"||!d($)&&K($)&&O.call($)==s}function Q($){return typeof $=="symbol"||K($)&&O.call($)==E}function ae($){if(!$)return $===0?$:0;if($=ye($),$===n||$===-n){var X=$<0?-1:1;return X*u}return $===$?$:0}function ue($){var X=ae($),z=X%1;return X===X?z?X-z:X:0}function ye($){if(typeof $=="number")return $;if(Q($))return a;if(V($)){var X=typeof $.valueOf=="function"?$.valueOf():$;$=V(X)?X+"":X}if(typeof $!="string")return $===0?$:+$;$=$.replace(m,"");var z=h.test($);return z||w.test($)?B($.slice(2),z?2:8):o.test($)?a:+$}function de($){return I($)?j($):H($)}function we($){return $?L($,de($)):[]}return zr=q,zr}var Wr,_n;function Xi(){if(_n)return Wr;_n=1;var n="[object Boolean]",f=Object.prototype,u=f.toString;function a(y){return y===!0||y===!1||c(y)&&u.call(y)==n}function c(y){return!!y&&typeof y=="object"}return Wr=a,Wr}var Yr,Fn;function Ki(){if(Fn)return Yr;Fn=1;var n=1/0,f=17976931348623157e292,u=NaN,a="[object Symbol]",c=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,E=parseInt,m=Object.prototype,o=m.toString;function h(T){return typeof T=="number"&&T==P(T)}function w(T){var R=typeof T;return!!T&&(R=="object"||R=="function")}function S(T){return!!T&&typeof T=="object"}function B(T){return typeof T=="symbol"||S(T)&&o.call(T)==a}function b(T){if(!T)return T===0?T:0;if(T=g(T),T===n||T===-n){var R=T<0?-1:1;return R*f}return T===T?T:0}function P(T){var R=b(T),L=R%1;return R===R?L?R-L:R:0}function g(T){if(typeof T=="number")return T;if(B(T))return u;if(w(T)){var R=typeof T.valueOf=="function"?T.valueOf():T;T=w(R)?R+"":R}if(typeof T!="string")return T===0?T:+T;T=T.replace(c,"");var L=l.test(T);return L||s.test(T)?E(T.slice(2),L?2:8):y.test(T)?u:+T}return Yr=h,Yr}var Zr,Pn;function Ji(){if(Pn)return Zr;Pn=1;var n="[object Number]",f=Object.prototype,u=f.toString;function a(y){return!!y&&typeof y=="object"}function c(y){return typeof y=="number"||a(y)&&u.call(y)==n}return Zr=c,Zr}var Qr,qn;function zi(){if(qn)return Qr;qn=1;var n="[object Object]";function f(w){var S=!1;if(w!=null&&typeof w.toString!="function")try{S=!!(w+"")}catch{}return S}function u(w,S){return function(B){return w(S(B))}}var a=Function.prototype,c=Object.prototype,y=a.toString,l=c.hasOwnProperty,s=y.call(Object),E=c.toString,m=u(Object.getPrototypeOf,Object);function o(w){return!!w&&typeof w=="object"}function h(w){if(!o(w)||E.call(w)!=n||f(w))return!1;var S=m(w);if(S===null)return!0;var B=l.call(S,"constructor")&&S.constructor;return typeof B=="function"&&B instanceof B&&y.call(B)==s}return Qr=h,Qr}var et,jn;function Wi(){if(jn)return et;jn=1;var n="[object String]",f=Object.prototype,u=f.toString,a=Array.isArray;function c(l){return!!l&&typeof l=="object"}function y(l){return typeof l=="string"||!a(l)&&c(l)&&u.call(l)==n}return et=y,et}var rt,Cn;function Yi(){if(Cn)return rt;Cn=1;var n="Expected a function",f=1/0,u=17976931348623157e292,a=NaN,c="[object Symbol]",y=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,E=/^0o[0-7]+$/i,m=parseInt,o=Object.prototype,h=o.toString;function w(L,U){var _;if(typeof U!="function")throw new TypeError(n);return L=T(L),function(){return--L>0&&(_=U.apply(this,arguments)),L<=1&&(U=void 0),_}}function S(L){return w(2,L)}function B(L){var U=typeof L;return!!L&&(U=="object"||U=="function")}function b(L){return!!L&&typeof L=="object"}function P(L){return typeof L=="symbol"||b(L)&&h.call(L)==c}function g(L){if(!L)return L===0?L:0;if(L=R(L),L===f||L===-f){var U=L<0?-1:1;return U*u}return L===L?L:0}function T(L){var U=g(L),_=U%1;return U===U?_?U-_:U:0}function R(L){if(typeof L=="number")return L;if(P(L))return a;if(B(L)){var U=typeof L.valueOf=="function"?L.valueOf():L;L=B(U)?U+"":U}if(typeof L!="string")return L===0?L:+L;L=L.replace(y,"");var _=s.test(L);return _||E.test(L)?m(L.slice(2),_?2:8):l.test(L)?a:+L}return rt=S,rt}var tt,Un;function Zi(){if(Un)return tt;Un=1;const n=Kn(),f=Qn(),u=Zn(),a=it(),c=Hi(),y=Xi(),l=Ki(),s=Ji(),E=zi(),m=Wi(),o=Yi(),{KeyObject:h,createSecretKey:w,createPrivateKey:S}=Ee,B=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];f&&B.splice(3,0,"PS256","PS384","PS512");const b={expiresIn:{isValid:function(_){return l(_)||m(_)&&_},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(_){return l(_)||m(_)&&_},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(_){return m(_)||Array.isArray(_)},message:'"audience" must be a string or array'},algorithm:{isValid:c.bind(null,B),message:'"algorithm" must be a valid string enum value'},header:{isValid:E,message:'"header" must be an object'},encoding:{isValid:m,message:'"encoding" must be a string'},issuer:{isValid:m,message:'"issuer" must be a string'},subject:{isValid:m,message:'"subject" must be a string'},jwtid:{isValid:m,message:'"jwtid" must be a string'},noTimestamp:{isValid:y,message:'"noTimestamp" must be a boolean'},keyid:{isValid:m,message:'"keyid" must be a string'},mutatePayload:{isValid:y,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:y,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:y,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},P={iat:{isValid:s,message:'"iat" should be a number of seconds'},exp:{isValid:s,message:'"exp" should be a number of seconds'},nbf:{isValid:s,message:'"nbf" should be a number of seconds'}};function g(_,G,O,M){if(!E(O))throw new Error('Expected "'+M+'" to be a plain object.');Object.keys(O).forEach(function(W){const Y=_[W];if(!Y){if(!G)throw new Error('"'+W+'" is not allowed in "'+M+'"');return}if(!Y.isValid(O[W]))throw new Error(Y.message)})}function T(_){return g(b,!1,_,"options")}function R(_){return g(P,!0,_,"payload")}const L={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},U=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];return tt=function(_,G,O,M){typeof O=="function"?(M=O,O={}):O=O||{};const W=typeof _=="object"&&!Buffer.isBuffer(_),Y=Object.assign({alg:O.algorithm||"HS256",typ:W?"JWT":void 0,kid:O.keyid},O.header);function j(v){if(M)return M(v);throw v}if(!G&&O.algorithm!=="none")return j(new Error("secretOrPrivateKey must have a value"));if(G!=null&&!(G instanceof h))try{G=S(G)}catch{try{G=w(typeof G=="string"?Buffer.from(G):G)}catch{return j(new Error("secretOrPrivateKey is not valid key material"))}}if(Y.alg.startsWith("HS")&&G.type!=="secret")return j(new Error(`secretOrPrivateKey must be a symmetric key when using ${Y.alg}`));if(/^(?:RS|PS|ES)/.test(Y.alg)){if(G.type!=="private")return j(new Error(`secretOrPrivateKey must be an asymmetric key when using ${Y.alg}`));if(!O.allowInsecureKeySizes&&!Y.alg.startsWith("ES")&&G.asymmetricKeyDetails!==void 0&&G.asymmetricKeyDetails.modulusLength<2048)return j(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${Y.alg}`))}if(typeof _>"u")return j(new Error("payload is required"));if(W){try{R(_)}catch(v){return j(v)}O.mutatePayload||(_=Object.assign({},_))}else{const v=U.filter(function(q){return typeof O[q]<"u"});if(v.length>0)return j(new Error("invalid "+v.join(",")+" option for "+typeof _+" payload"))}if(typeof _.exp<"u"&&typeof O.expiresIn<"u")return j(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(typeof _.nbf<"u"&&typeof O.notBefore<"u")return j(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{T(O)}catch(v){return j(v)}if(!O.allowInvalidAsymmetricKeyTypes)try{u(Y.alg,G)}catch(v){return j(v)}const H=_.iat||Math.floor(Date.now()/1e3);if(O.noTimestamp?delete _.iat:W&&(_.iat=H),typeof O.notBefore<"u"){try{_.nbf=n(O.notBefore,H)}catch(v){return j(v)}if(typeof _.nbf>"u")return j(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(typeof O.expiresIn<"u"&&typeof _=="object"){try{_.exp=n(O.expiresIn,H)}catch(v){return j(v)}if(typeof _.exp>"u")return j(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(L).forEach(function(v){const q=L[v];if(typeof O[v]<"u"){if(typeof _[q]<"u")return j(new Error('Bad "options.'+v+'" option. The payload already has an "'+q+'" property.'));_[q]=O[v]}});const x=O.encoding||"utf8";if(typeof M=="function")M=M&&o(M),a.createSign({header:Y,privateKey:G,payload:_,encoding:x}).once("error",M).once("done",function(v){if(!O.allowInsecureKeySizes&&/^(?:RS|PS)/.test(Y.alg)&&v.length<256)return M(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${Y.alg}`));M(null,v)});else{let v=a.sign({header:Y,payload:_,secret:G,encoding:x});if(!O.allowInsecureKeySizes&&/^(?:RS|PS)/.test(Y.alg)&&v.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${Y.alg}`);return v}},tt}var nt,Dn;function Qi(){return Dn||(Dn=1,nt={decode:Vn(),verify:Vi(),sign:Zi(),JsonWebTokenError:Le(),NotBeforeError:Hn(),TokenExpiredError:Xn()}),nt}Qi();async function ts(n){return!1}export{ts as verify}; //# sourceMappingURL=BiLUtyS1.js.map