vari=r(16),n=r(17),s=r(18);functiono(){returnh.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functiona(t,e){if(o()<e)thrownewRangeError("Invalid typed array length");returnh.TYPED_ARRAY_SUPPORT?(t=newUint8Array(e)).__proto__=h.prototype:(null===t&&(t=newh(e)),t.length=e),t}functionh(t,e,r){if(!(h.TYPED_ARRAY_SUPPORT||thisinstanceofh))returnnewh(t,e,r);if("number"==typeoft){if("string"==typeofe)thrownewError("If encoding is specified then the first argument must be a string");returnc(this,t)}returnf(this,t,e,r)}functionf(t,e,r,i){if("number"==typeofe)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&einstanceofArrayBuffer?function(t,e,r,i){if(e.byteLength,r<0||e.byteLength<r)thrownewRangeError("'offset' is out of bounds");if(e.byteLength<r+(i||0))thrownewRangeError("'length' is out of bounds");e=void0===r&&void0===i?newUint8Array(e):void0===i?newUint8Array(e,r):newUint8Array(e,r,i);h.TYPED_ARRAY_SUPPORT?(t=e).__proto__=h.prototype:t=l(t,e);returnt}(t,e,r,i):"string"==typeofe?function(t,e,r){"string"==typeofr&&""!==r||(r="utf8");if(!h.isEncoding(r))thrownewTypeError('"encoding" must be a valid string encoding');vari=0|d(e,r),n=(t=a(t,i)).write(e,r);n!==i&&(t=t.slice(0,n));returnt}(t,e,r):function(t,e){if(h.isBuffer(e)){varr=0|p(e.length);return0===(t=a(t,r)).length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeofArrayBuffer&&e.bufferinstanceofArrayBuffer||"length"ine)return"number"!=typeofe.length||(i=e.length)!=i?a(t,0):l(t,e);if("Buffer"===e.type&&s(e.data))returnl(t,e.data)}vari;thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}functionu(t){if("number"!=typeoft)thrownewTypeError('"size" argument must be a number');if(t<0)thrownewRangeError('"size" argument must not be negative')}functionc(t,e){if(u(e),t=a(t,e<0?0:0|p(e)),!h.TYPED_ARRAY_SUPPORT)for(varr=0;r<e;++r)t[r]=0;returnt}functionl(t,e){varr=e.length<0?0:0|p(e.length);t=a(t,r);for(vari=0;i<r;i+=1)t[i]=255&e[i];returnt}functionp(t){if(t>=o())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return0|t}functiond(t,e){if(h.isBuffer(t))returnt.length;if("undefined"!=typeofArrayBuffer&&"function"==typeofArrayBuffer.isView&&(ArrayBuffer.isView(t)||tinstanceofArrayBuffer))returnt.byteLength;"string"!=typeoft&&(t=""+t);varr=t.length;if(0===r)return0;for(vari=!1;;)switch(e){case"ascii":case"latin1":case"binary":returnr;case"utf8":case"utf-8":casevoid0:returnY(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*r;case"hex":returnr>>>1;case"base64":returnN(t).length;default:if(i)returnY(t).length;e=(""+e).toLowerCase(),i=!0}}functionm(t,e,r){vari=t[e];t[e]=t[r],t[r]=i}functiony(t,e,r,i,n){if(0===t.length)return-1;if("string"==typeofr?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}elseif(r<0){if(!n)return-1;r=0}if("string"==typeofe&&(e=h.from(e,i)),h.isBuffer(e))return0===e.length?-1:g(t,e,r,i,n);if("number"==typeofe)returne&=255,h.TYPED_ARRAY_SUPPORT&&"function"==typeofUint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,i,n);thrownewTypeError("val must be string, number or Buffer")}functiong(t,e,r,i,n){vars,o=1,a=t.length,h=e.length;if(void0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,a/=2,h/=2,r/=2}functionf(t,e){return1===o?t[e]:t.readUInt16BE(e*o)}if(n){varu=-1;for(s=r;s<a;s++)if(f(t,s)===f(e,-1===u?0:s-u)){if(-1===u&&(u=s),s-u+1===h)returnu*o}else-1!==u&&(s-=s-u),u=-1}elsefor(r+h>a&&(r=a-h),s=r;s>=0;s--){for(varc=!0,l=0;l<h;l++)if(f(t,s+l)!==f(e,l)){c=!1;break}if(c)returns}return-1}functionb(t,e,r,i){r=Number(r)||0;varn=t.length-r;i?(i=Number(i))>n&&(i=n):i=n;vars=e.length;if(s%2!=0)thrownewTypeError("Invalidhexs