functionA(A,Q){for(varE=0;Q.length>E;E++){constB=Q[E];if("string"!=typeofB&&!Array.isArray(B))for(constQinB)if("default"!==Q&&!(QinA)){constE=Object.getOwnPropertyDescriptor(B,Q);E&&Object.defineProperty(A,Q,E.get?E:{enumerable:!0,get:()=>B[Q]})}}returnObject.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}functionQ(A){returnA&&"object"==typeofA&&"function"==typeofA.pipe&&"function"==typeofA.on}functionE(A){returnkQ&&AinstanceofkQ||A&&"object"==typeofA&&("function"==typeofA.stream||"function"==typeofA.arrayBuffer)&&/^(Blob|File)$/.test(A[Symbol.toStringTag])}functionB(A){if("string"==typeofA){if(A=newURL(A),!/^https?:/.test(A.origin||A.protocol))thrownewyQ("Invalid URL protocol: the URL must start with `http:` or `https:`.");returnA}if(!A||"object"!=typeofA)thrownewyQ("Invalid URL: The URL argument must be a non-null object.");if(!/^https?:/.test(A.origin||A.protocol))thrownewyQ("Invalid URL protocol: the URL must start with `http:` or `https:`.");if(!(AinstanceofURL)){if(null!=A.port&&""!==A.port&&!Number.isFinite(parseInt(A.port)))thrownewyQ("Invalid URL: port must be a valid integer or a string representation of an integer.");if(null!=A.path&&"string"!=typeofA.path)thrownewyQ("Invalid URL path: the path must be a string or null/undefined.");if(null!=A.pathname&&"string"!=typeofA.pathname)thrownewyQ("Invalid URL pathname: the pathname must be a string or null/undefined.");if(null!=A.hostname&&"string"!=typeofA.hostname)thrownewyQ("Invalid URL hostname: the hostname must be a string or null/undefined.");if(null!=A.origin&&"string"!=typeofA.origin)thrownewyQ("Invalid URL origin: the origin must be a string or null/undefined.");letQ=null!=A.origin?A.origin:`${A.protocol}//${A.hostname}:${null!=A.port?A.port:"https:"===A.protocol?443:80}`,E=null!=A.path?A.path:`${A.pathname||""}${A.search||""}`;Q.endsWith("/")&&(Q=Q.substring(0,Q.length-1)),E&&!E.startsWith("/")&&(E="/"+E),A=newURL(Q+E)}returnA}functiong(A){return!A||!(!A.destroyed&&!A[FQ])}functionI(A){constQ=A&&A._readableState;returng(A)&&Q&&!Q.endEmitted}functionC(A){returnAinstanceofUint8Array||Buffer.isBuffer(A)}functione(){HQ=Date.now();letA=VQ.length,Q=0;for(;A>Q;){constE=VQ[Q];0===E.state?E.state=HQ+E.delay:E.state>0&&HQ>=E.state&&(E.state=-1,E.callback(E.opaque)),-1===E.state?(E.state=-2,Q!==A-1?VQ[Q]=VQ.pop():VQ.pop(),A-=1):Q+=1}VQ.length>0&&t()}functiont(){mQ&&mQ.refresh?mQ.refresh():(clearTimeout(mQ),mQ=setTimeout(e,1e3),mQ.unref&&mQ.unref())}functioni(){functionA(A){if("string"==typeofA&&(A=Buffer.from(A)),!Buffer.isBuffer(A))thrownewTypeError("The needle has to be a String or a Buffer.");constQ=A.length;if(0===Q)throwError("The needle cannot be an empty String/Buffer.");if(Q>256)throwError("The needle cannot have a length bigger than 256.");this.maxMatches=1/0,this.matches=0,this._occ=Array(256).fill(Q),this._lookbehind_size=0,this._needle=A,this._bufpos=0,this._lookbehind=Buffer.alloc(Q);for(varE=0;Q-1>E;++E)this._occ[A[E]]=Q-1-E}returnxQ?WQ:(xQ=1,(0,CA.inherits)(A,eA.EventEmitter),A.prototype.reset=function(){this._lookbehind_size=0,this.matches=0,this._bufpos=0},A.prototype.push=function(A,Q){Buffer.isBuffer(A)||(A=Buffer.from(A,"binary"));constE=A.length;letB;for(this._bufpos=Q||0;B!==E&&this.maxMatches>this.matches;)B=this._sbmh_feed(A);returnB},A.prototype._sbmh_feed=function(A){constQ=A.length,E=this._needle,B=E.length,g=E[B-1];letI,C=-this._lookbehind_size;if(0>C){for(;0>C&&Q-B>=C;){if(I=this._sbmh_lookup_char(A,C+B-1),I===g&&this._sbmh_memcmp(A,C,B-1))returnthis._lookbehind_size=0,++this.matches,this.emit("info",!0),this._bufpos=C+B;C+=this._occ[I]}if(0>C)for(;0>C&&!this._sbmh_memcmp(A,C,Q-C);)++C;if(0>C){constE=this._lookbehind_size+C;returnE>0&&this.emit("info",!1,this._lookbehind,0,E),this._lookbehind.copy(this._lookbehind,0,E,this._lookbehind_size-E),this._lookbehind_size-=E,A.copy(this._lookbehind,this._lookbehind_size),this._lookbehind_size+=Q,this._bufpos=Q,Q}this.emit("info",!1,this._lookbehind,0,this._lookbehind_size),this._lookbehind_si