import{E as xr,g as dr,m as Le,d as Ee}from"./index-Dixv1Mqn.js";import{e as en}from"./events-B42VzzV1.js";import{r as tn,i as J}from"./inherits_browser-DmlooEhV.js";const Wn=Object.freeze(Object.defineProperty({__proto__:null,EventEmitter:xr,default:xr},Symbol.toStringTag,{value:"Module"})),Ya=dr(Wn);var ar={exports:{}},rn=en.EventEmitter,Yt,Er;function zn(){if(Er)return Yt;Er=1;function e(R,A){var w=Object.keys(R);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(R);A&&(s=s.filter(function(p){return Object.getOwnPropertyDescriptor(R,p).enumerable})),w.push.apply(w,s)}return w}function t(R){for(var A=1;A0?this.tail.next=s:this.head=s,this.tail=s,++this.length}},{key:"unshift",value:function(w){var s={data:w,next:this.head};this.length===0&&(this.tail=s),this.head=s,++this.length}},{key:"shift",value:function(){if(this.length!==0){var w=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,w}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(w){if(this.length===0)return"";for(var s=this.head,p=""+s.data;s=s.next;)p+=w+s.data;return p}},{key:"concat",value:function(w){if(this.length===0)return b.alloc(0);for(var s=b.allocUnsafe(w>>>0),p=this.head,y=0;p;)v(p.data,s,y),y+=p.data.length,p=p.next;return s}},{key:"consume",value:function(w,s){var p;return wS.length?S.length:w;if(T===S.length?y+=S:y+=S.slice(0,w),w-=T,w===0){T===S.length?(++p,s.next?this.head=s.next:this.head=this.tail=null):(this.head=s,s.data=S.slice(T));break}++p}return this.length-=p,y}},{key:"_getBuffer",value:function(w){var s=b.allocUnsafe(w),p=this.head,y=1;for(p.data.copy(s),w-=p.data.length;p=p.next;){var S=p.data,T=w>S.length?S.length:w;if(S.copy(s,s.length-w,0,T),w-=T,w===0){T===S.length?(++y,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=S.slice(T));break}++y}return this.length-=y,s}},{key:m,value:function(w,s){return u(this,t(t({},s),{},{depth:0,customInspect:!1}))}}]),R}(),Yt}function Gn(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(or,this,e)):process.nextTick(or,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(f){!t&&f?r._writableState?r._writableState.errorEmitted?process.nextTick(We,r):(r._writableState.errorEmitted=!0,process.nextTick(mr,r,f)):process.nextTick(mr,r,f):t?(process.nextTick(We,r),t(f)):process.nextTick(We,r)}),this)}function mr(e,t){or(e,t),We(e)}function We(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Vn(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function or(e,t){e.emit("error",t)}function Kn(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}var nn={destroy:Gn,undestroy:Vn,errorOrDestroy:Kn},pe={};function Yn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var an={};function X(e,t,r){r||(r=Error);function n(f,l,c){return typeof t=="string"?t:t(f,l,c)}var i=function(f){Yn(l,f);function l(c,d,b){return f.call(this,n(c,d,b))||this}return l}(r);i.prototype.name=r.name,i.prototype.code=e,an[e]=i}function Sr(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function Xn(e,t,r){return e.substr(0,t.length)===t}function Jn(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function Qn(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}X("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);X("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&Xn(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(Jn(e," argument"))i="The ".concat(e," ").concat(n," ").concat(Sr(t,"type"));else{var f=Qn(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(f," ").concat(n," ").concat(Sr(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);X("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");X("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});X("ERR_STREAM_PREMATURE_CLOSE","Premature close");X("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});X("ERR_MULTIPLE_CALLBACK","Callback called multiple times");X("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");X("ERR_STREAM_WRITE_AFTER_END","write after end");X("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);X("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);X("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");pe.codes=an;var Zn=pe.codes.ERR_INVALID_OPT_VALUE;function ei(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function ti(e,t,r,n){var i=ei(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var f=n?r:"highWaterMark";throw new Zn(f,i)}return Math.floor(i)}return e.objectMode?16:16*1024}var on={getHighWaterMark:ti},ri=ni;function ni(e,t){if(Xt("noDeprecation"))return e;var r=!1;function n(){if(!r){if(Xt("throwDeprecation"))throw new Error(t);Xt("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function Xt(e){try{if(!Ee.localStorage)return!1}catch{return!1}var t=Ee.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var Jt,Rr;function fn(){if(Rr)return Jt;Rr=1,Jt=D;function e(_){var h=this;this.next=null,this.entry=null,this.finish=function(){ne(h,_)}}var t;D.WritableState=B;var r={deprecate:ri},n=rn,i=Le.Buffer,f=(typeof Ee<"u"?Ee:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function l(_){return i.from(_)}function c(_){return i.isBuffer(_)||_ instanceof f}var d=nn,b=on,E=b.getHighWaterMark,u=pe.codes,m=u.ERR_INVALID_ARG_TYPE,v=u.ERR_METHOD_NOT_IMPLEMENTED,R=u.ERR_MULTIPLE_CALLBACK,A=u.ERR_STREAM_CANNOT_PIPE,w=u.ERR_STREAM_DESTROYED,s=u.ERR_STREAM_NULL_VALUES,p=u.ERR_STREAM_WRITE_AFTER_END,y=u.ERR_UNKNOWN_ENCODING,S=d.errorOrDestroy;J(D,n);function T(){}function B(_,h,x){t=t||me(),_=_||{},typeof x!="boolean"&&(x=h instanceof t),this.objectMode=!!_.objectMode,x&&(this.objectMode=this.objectMode||!!_.writableObjectMode),this.highWaterMark=E(this,_,"writableHighWaterMark",x),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var k=_.decodeStrings===!1;this.decodeStrings=!k,this.defaultEncoding=_.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(L){le(h,L)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=_.emitClose!==!1,this.autoDestroy=!!_.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}B.prototype.getBuffer=function(){for(var h=this.bufferedRequest,x=[];h;)x.push(h),h=h.next;return x},function(){try{Object.defineProperty(B.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var O;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(D,Symbol.hasInstance,{value:function(h){return O.call(this,h)?!0:this!==D?!1:h&&h._writableState instanceof B}})):O=function(h){return h instanceof this};function D(_){t=t||me();var h=this instanceof t;if(!h&&!O.call(D,this))return new D(_);this._writableState=new B(_,this,h),this.writable=!0,_&&(typeof _.write=="function"&&(this._write=_.write),typeof _.writev=="function"&&(this._writev=_.writev),typeof _.destroy=="function"&&(this._destroy=_.destroy),typeof _.final=="function"&&(this._final=_.final)),n.call(this)}D.prototype.pipe=function(){S(this,new A)};function M(_,h){var x=new p;S(_,x),process.nextTick(h,x)}function F(_,h,x,k){var L;return x===null?L=new s:typeof x!="string"&&!h.objectMode&&(L=new m("chunk",["string","Buffer"],x)),L?(S(_,L),process.nextTick(k,L),!1):!0}D.prototype.write=function(_,h,x){var k=this._writableState,L=!1,a=!k.objectMode&&c(_);return a&&!i.isBuffer(_)&&(_=l(_)),typeof h=="function"&&(x=h,h=null),a?h="buffer":h||(h=k.defaultEncoding),typeof x!="function"&&(x=T),k.ending?M(this,x):(a||F(this,k,_,x))&&(k.pendingcb++,L=Z(this,k,a,_,h,x)),L},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){var _=this._writableState;_.corked&&(_.corked--,!_.writing&&!_.corked&&!_.bufferProcessing&&_.bufferedRequest&&Y(this,_))},D.prototype.setDefaultEncoding=function(h){if(typeof h=="string"&&(h=h.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((h+"").toLowerCase())>-1))throw new y(h);return this._writableState.defaultEncoding=h,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function W(_,h,x){return!_.objectMode&&_.decodeStrings!==!1&&typeof h=="string"&&(h=i.from(h,x)),h}Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Z(_,h,x,k,L,a){if(!x){var o=W(h,k,L);k!==o&&(x=!0,L="buffer",k=o)}var g=h.objectMode?1:k.length;h.length+=g;var C=h.length */var Ar;function ii(){return Ar||(Ar=1,function(e,t){var r=Le,n=r.Buffer;function i(l,c){for(var d in l)c[d]=l[d]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=f);function f(l,c,d){return n(l,c,d)}f.prototype=Object.create(n.prototype),i(n,f),f.from=function(l,c,d){if(typeof l=="number")throw new TypeError("Argument must not be a number");return n(l,c,d)},f.alloc=function(l,c,d){if(typeof l!="number")throw new TypeError("Argument must be a number");var b=n(l);return c!==void 0?typeof d=="string"?b.fill(c,d):b.fill(c):b.fill(0),b},f.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return n(l)},f.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(l)}}(qe,qe.exports)),qe.exports}var Cr;function Br(){if(Cr)return Zt;Cr=1;var e=ii().Buffer,t=e.isEncoding||function(s){switch(s=""+s,s&&s.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(s){if(!s)return"utf8";for(var p;;)switch(s){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return s;default:if(p)return;s=(""+s).toLowerCase(),p=!0}}function n(s){var p=r(s);if(typeof p!="string"&&(e.isEncoding===t||!t(s)))throw new Error("Unknown encoding: "+s);return p||s}Zt.StringDecoder=i;function i(s){this.encoding=n(s);var p;switch(this.encoding){case"utf16le":this.text=u,this.end=m,p=4;break;case"utf8":this.fillLast=d,p=4;break;case"base64":this.text=v,this.end=R,p=3;break;default:this.write=A,this.end=w;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(p)}i.prototype.write=function(s){if(s.length===0)return"";var p,y;if(this.lastNeed){if(p=this.fillLast(s),p===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y>5===6?2:s>>4===14?3:s>>3===30?4:s>>6===2?-1:-2}function l(s,p,y){var S=p.length-1;if(S=0?(T>0&&(s.lastNeed=T-1),T):--S=0?(T>0&&(s.lastNeed=T-2),T):--S=0?(T>0&&(T===2?T=0:s.lastNeed=T-3),T):0))}function c(s,p,y){if((p[0]&192)!==128)return s.lastNeed=0,"�";if(s.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return s.lastNeed=1,"�";if(s.lastNeed>2&&p.length>2&&(p[2]&192)!==128)return s.lastNeed=2,"�"}}function d(s){var p=this.lastTotal-this.lastNeed,y=c(this,s);if(y!==void 0)return y;if(this.lastNeed<=s.length)return s.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);s.copy(this.lastChar,p,0,s.length),this.lastNeed-=s.length}function b(s,p){var y=l(this,s,p);if(!this.lastNeed)return s.toString("utf8",p);this.lastTotal=y;var S=s.length-(y-this.lastNeed);return s.copy(this.lastChar,0,S),s.toString("utf8",p,S)}function E(s){var p=s&&s.length?this.write(s):"";return this.lastNeed?p+"�":p}function u(s,p){if((s.length-p)%2===0){var y=s.toString("utf16le",p);if(y){var S=y.charCodeAt(y.length-1);if(S>=55296&&S<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=s[s.length-2],this.lastChar[1]=s[s.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=s[s.length-1],s.toString("utf16le",p,s.length-1)}function m(s){var p=s&&s.length?this.write(s):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,y)}return p}function v(s,p){var y=(s.length-p)%3;return y===0?s.toString("base64",p):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=s[s.length-1]:(this.lastChar[0]=s[s.length-2],this.lastChar[1]=s[s.length-1]),s.toString("base64",p,s.length-y))}function R(s){var p=s&&s.length?this.write(s):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function A(s){return s.toString(this.encoding)}function w(s){return s&&s.length?this.write(s):""}return Zt}var kr=pe.codes.ERR_STREAM_PREMATURE_CLOSE;function ai(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i0)if(typeof o!="string"&&!N.objectMode&&Object.getPrototypeOf(o)!==n.prototype&&(o=f(o)),C)N.endEmitted?T(a,new s):W(a,N,o,!0);else if(N.ended)T(a,new A);else{if(N.destroyed)return!1;N.reading=!1,N.decoder&&!g?(o=N.decoder.write(o),N.objectMode||o.length!==0?W(a,N,o,!1):Y(a,N)):W(a,N,o,!1)}else C||(N.reading=!1,Y(a,N))}return!N.ended&&(N.length=q?a=q:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a}function G(a,o){return a<=0||o.length===0&&o.ended?0:o.objectMode?1:a!==a?o.flowing&&o.length?o.buffer.head.data.length:o.length:(a>o.highWaterMark&&(o.highWaterMark=z(a)),a<=o.length?a:o.ended?o.length:(o.needReadable=!0,0))}M.prototype.read=function(a){d("read",a),a=parseInt(a,10);var o=this._readableState,g=a;if(a!==0&&(o.emittedReadable=!1),a===0&&o.needReadable&&((o.highWaterMark!==0?o.length>=o.highWaterMark:o.length>0)||o.ended))return d("read: emitReadable",o.length,o.ended),o.length===0&&o.ended?x(this):K(this),null;if(a=G(a,o),a===0&&o.ended)return o.length===0&&x(this),null;var C=o.needReadable;d("need readable",C),(o.length===0||o.length-a0?U=h(a,o):U=null,U===null?(o.needReadable=o.length<=o.highWaterMark,a=0):(o.length-=a,o.awaitDrain=0),o.length===0&&(o.ended||(o.needReadable=!0),g!==a&&o.ended&&x(this)),U!==null&&this.emit("data",U),U};function le(a,o){if(d("onEofChunk"),!o.ended){if(o.decoder){var g=o.decoder.end();g&&g.length&&(o.buffer.push(g),o.length+=o.objectMode?1:g.length)}o.ended=!0,o.sync?K(a):(o.needReadable=!1,o.emittedReadable||(o.emittedReadable=!0,ee(a)))}}function K(a){var o=a._readableState;d("emitReadable",o.needReadable,o.emittedReadable),o.needReadable=!1,o.emittedReadable||(d("emitReadable",o.flowing),o.emittedReadable=!0,process.nextTick(ee,a))}function ee(a){var o=a._readableState;d("emitReadable_",o.destroyed,o.length,o.ended),!o.destroyed&&(o.length||o.ended)&&(a.emit("readable"),o.emittedReadable=!1),o.needReadable=!o.flowing&&!o.ended&&o.length<=o.highWaterMark,_(a)}function Y(a,o){o.readingMore||(o.readingMore=!0,process.nextTick(te,a,o))}function te(a,o){for(;!o.reading&&!o.ended&&(o.length1&&L(C.pipes,a)!==-1)&&!Ce&&(d("false write response, pause",C.awaitDrain),C.awaitDrain++),g.pause())}function ye(ae){d("onerror",ae),_e(),a.removeListener("error",ye),t(a,"error")===0&&T(a,ae)}O(a,"error",ye);function we(){a.removeListener("finish",xe),_e()}a.once("close",we);function xe(){d("onfinish"),a.removeListener("close",we),_e()}a.once("finish",xe);function _e(){d("unpipe"),g.unpipe(a)}return a.emit("pipe",g),C.flowing||(d("pipe resume"),g.resume()),a};function ue(a){return function(){var g=a._readableState;d("pipeOnDrain",g.awaitDrain),g.awaitDrain&&g.awaitDrain--,g.awaitDrain===0&&t(a,"data")&&(g.flowing=!0,_(a))}}M.prototype.unpipe=function(a){var o=this._readableState,g={hasUnpiped:!1};if(o.pipesCount===0)return this;if(o.pipesCount===1)return a&&a!==o.pipes?this:(a||(a=o.pipes),o.pipes=null,o.pipesCount=0,o.flowing=!1,a&&a.emit("unpipe",this,g),this);if(!a){var C=o.pipes,U=o.pipesCount;o.pipes=null,o.pipesCount=0,o.flowing=!1;for(var N=0;N0,C.flowing!==!1&&this.resume()):a==="readable"&&!C.endEmitted&&!C.readableListening&&(C.readableListening=C.needReadable=!0,C.flowing=!1,C.emittedReadable=!1,d("on readable",C.length,C.reading),C.length?K(this):C.reading||process.nextTick(V,this)),g},M.prototype.addListener=M.prototype.on,M.prototype.removeListener=function(a,o){var g=r.prototype.removeListener.call(this,a,o);return a==="readable"&&process.nextTick(re,this),g},M.prototype.removeAllListeners=function(a){var o=r.prototype.removeAllListeners.apply(this,arguments);return(a==="readable"||a===void 0)&&process.nextTick(re,this),o};function re(a){var o=a._readableState;o.readableListening=a.listenerCount("readable")>0,o.resumeScheduled&&!o.paused?o.flowing=!0:a.listenerCount("data")>0&&a.resume()}function V(a){d("readable nexttick read 0"),a.read(0)}M.prototype.resume=function(){var a=this._readableState;return a.flowing||(d("resume"),a.flowing=!a.readableListening,he(this,a)),a.paused=!1,this};function he(a,o){o.resumeScheduled||(o.resumeScheduled=!0,process.nextTick(ne,a,o))}function ne(a,o){d("resume",o.reading),o.reading||a.read(0),o.resumeScheduled=!1,a.emit("resume"),_(a),o.flowing&&!o.reading&&a.read(0)}M.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function _(a){var o=a._readableState;for(d("flow",o.flowing);o.flowing&&a.read()!==null;);}M.prototype.wrap=function(a){var o=this,g=this._readableState,C=!1;a.on("end",function(){if(d("wrapped end"),g.decoder&&!g.ended){var P=g.decoder.end();P&&P.length&&o.push(P)}o.push(null)}),a.on("data",function(P){if(d("wrapped data"),g.decoder&&(P=g.decoder.write(P)),!(g.objectMode&&P==null)&&!(!g.objectMode&&(!P||!P.length))){var ie=o.push(P);ie||(C=!0,a.pause())}});for(var U in a)this[U]===void 0&&typeof a[U]=="function"&&(this[U]=function(ie){return function(){return a[ie].apply(a,arguments)}}(U));for(var N=0;N=o.length?(o.decoder?g=o.buffer.join(""):o.buffer.length===1?g=o.buffer.first():g=o.buffer.concat(o.length),o.buffer.clear()):g=o.buffer.consume(a,o.decoder),g}function x(a){var o=a._readableState;d("endReadable",o.endEmitted),o.endEmitted||(o.ended=!0,process.nextTick(k,o,a))}function k(a,o){if(d("endReadableNT",a.endEmitted,a.length),!a.endEmitted&&a.length===0&&(a.endEmitted=!0,o.readable=!1,o.emit("end"),a.autoDestroy)){var g=o._writableState;(!g||g.autoDestroy&&g.finished)&&o.destroy()}}typeof Symbol=="function"&&(M.from=function(a,o){return S===void 0&&(S=li()),S(M,a,o)});function L(a,o){for(var g=0,C=a.length;g0;return xi(l,d,b,function(E){i||(i=E),E&&f.forEach(Or),!d&&(f.forEach(Or),n(i))})});return t.reduce(Ei)}var Ri=Si;(function(e,t){t=e.exports=ln(),t.Stream=t,t.Readable=t,t.Writable=fn(),t.Duplex=me(),t.Transform=un,t.PassThrough=bi,t.finished=pr,t.pipeline=Ri})(ar,ar.exports);var cn=ar.exports;const{Transform:Ti}=cn;var Ai=e=>class dn extends Ti{constructor(r,n,i,f,l){super(l),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=f,this._options=l,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let f=null;try{this.update(r,n)}catch(l){f=l}i(f)}_flush(r){let n=null;try{this.push(this.digest())}catch(i){n=i}r(n)}update(r,n){if(!Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(r)||(r=Buffer.from(r,n)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(n=n.toString(r)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new dn(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const{Transform:Ci}=cn;var Bi=e=>class pn extends Ci{constructor(r,n,i,f){super(f),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._options=f,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let f=null;try{this.update(r,n)}catch(l){f=l}i(f)}_flush(){}_read(r){this.push(this.squeeze(r))}update(r,n){if(!Buffer.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(r)||(r=Buffer.from(r,n)),this._state.absorb(r),this}squeeze(r,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let i=this._state.squeeze(r);return n!==void 0&&(i=i.toString(n)),i}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new pn(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const ki=Ai,Mi=Bi;var Di=function(e){const t=ki(e),r=Mi(e);return function(n,i){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new t(1152,448,null,224,i);case"keccak256":return new t(1088,512,null,256,i);case"keccak384":return new t(832,768,null,384,i);case"keccak512":return new t(576,1024,null,512,i);case"sha3-224":return new t(1152,448,6,224,i);case"sha3-256":return new t(1088,512,6,256,i);case"sha3-384":return new t(832,768,6,384,i);case"sha3-512":return new t(576,1024,6,512,i);case"shake128":return new r(1344,256,31,i);case"shake256":return new r(1088,512,31,i);default:throw new Error("Invald algorithm: "+n)}}},bn={};const Ir=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];bn.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],n=e[1]^e[11]^e[21]^e[31]^e[41],i=e[2]^e[12]^e[22]^e[32]^e[42],f=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],b=e[7]^e[17]^e[27]^e[37]^e[47],E=e[8]^e[18]^e[28]^e[38]^e[48],u=e[9]^e[19]^e[29]^e[39]^e[49];let m=E^(i<<1|f>>>31),v=u^(f<<1|i>>>31);const R=e[0]^m,A=e[1]^v,w=e[10]^m,s=e[11]^v,p=e[20]^m,y=e[21]^v,S=e[30]^m,T=e[31]^v,B=e[40]^m,O=e[41]^v;m=r^(l<<1|c>>>31),v=n^(c<<1|l>>>31);const D=e[2]^m,M=e[3]^v,F=e[12]^m,W=e[13]^v,Z=e[22]^m,q=e[23]^v,z=e[32]^m,G=e[33]^v,le=e[42]^m,K=e[43]^v;m=i^(d<<1|b>>>31),v=f^(b<<1|d>>>31);const ee=e[4]^m,Y=e[5]^v,te=e[14]^m,ue=e[15]^v,re=e[24]^m,V=e[25]^v,he=e[34]^m,ne=e[35]^v,_=e[44]^m,h=e[45]^v;m=l^(E<<1|u>>>31),v=c^(u<<1|E>>>31);const x=e[6]^m,k=e[7]^v,L=e[16]^m,a=e[17]^v,o=e[26]^m,g=e[27]^v,C=e[36]^m,U=e[37]^v,N=e[46]^m,P=e[47]^v;m=d^(r<<1|n>>>31),v=b^(n<<1|r>>>31);const ie=e[8]^m,ce=e[9]^v,Ce=e[18]^m,He=e[19]^v,Be=e[28]^m,ye=e[29]^v,we=e[38]^m,xe=e[39]^v,_e=e[48]^m,ae=e[49]^v,Q=R,et=A,tt=s<<4|w>>>28,rt=w<<4|s>>>28,nt=p<<3|y>>>29,it=y<<3|p>>>29,at=T<<9|S>>>23,ot=S<<9|T>>>23,ft=B<<18|O>>>14,st=O<<18|B>>>14,lt=D<<1|M>>>31,ut=M<<1|D>>>31,ht=W<<12|F>>>20,_t=F<<12|W>>>20,ct=Z<<10|q>>>22,dt=q<<10|Z>>>22,pt=G<<13|z>>>19,bt=z<<13|G>>>19,vt=le<<2|K>>>30,gt=K<<2|le>>>30,yt=Y<<30|ee>>>2,wt=ee<<30|Y>>>2,xt=te<<6|ue>>>26,Et=ue<<6|te>>>26,mt=V<<11|re>>>21,St=re<<11|V>>>21,Rt=he<<15|ne>>>17,Tt=ne<<15|he>>>17,At=h<<29|_>>>3,Ct=_<<29|h>>>3,Bt=x<<28|k>>>4,kt=k<<28|x>>>4,Mt=a<<23|L>>>9,Dt=L<<23|a>>>9,Nt=o<<25|g>>>7,Lt=g<<25|o>>>7,Pt=C<<21|U>>>11,Ot=U<<21|C>>>11,It=P<<24|N>>>8,$t=N<<24|P>>>8,Ft=ie<<27|ce>>>5,Ut=ce<<27|ie>>>5,Ht=Ce<<20|He>>>12,qt=He<<20|Ce>>>12,jt=ye<<7|Be>>>25,Wt=Be<<7|ye>>>25,zt=we<<8|xe>>>24,Gt=xe<<8|we>>>24,Vt=_e<<14|ae>>>18,Kt=ae<<14|_e>>>18;e[0]=Q^~ht&mt,e[1]=et^~_t&St,e[10]=Bt^~Ht&nt,e[11]=kt^~qt&it,e[20]=lt^~xt&Nt,e[21]=ut^~Et&Lt,e[30]=Ft^~tt&ct,e[31]=Ut^~rt&dt,e[40]=yt^~Mt&jt,e[41]=wt^~Dt&Wt,e[2]=ht^~mt&Pt,e[3]=_t^~St&Ot,e[12]=Ht^~nt&pt,e[13]=qt^~it&bt,e[22]=xt^~Nt&zt,e[23]=Et^~Lt&Gt,e[32]=tt^~ct&Rt,e[33]=rt^~dt&Tt,e[42]=Mt^~jt&at,e[43]=Dt^~Wt&ot,e[4]=mt^~Pt&Vt,e[5]=St^~Ot&Kt,e[14]=nt^~pt&At,e[15]=it^~bt&Ct,e[24]=Nt^~zt&ft,e[25]=Lt^~Gt&st,e[34]=ct^~Rt&It,e[35]=dt^~Tt&$t,e[44]=jt^~at&vt,e[45]=Wt^~ot>,e[6]=Pt^~Vt&Q,e[7]=Ot^~Kt&et,e[16]=pt^~At&Bt,e[17]=bt^~Ct&kt,e[26]=zt^~ft<,e[27]=Gt^~st&ut,e[36]=Rt^~It&Ft,e[37]=Tt^~$t&Ut,e[46]=at^~vt&yt,e[47]=ot^~gt&wt,e[8]=Vt^~Q&ht,e[9]=Kt^~et&_t,e[18]=At^~Bt&Ht,e[19]=Ct^~kt&qt,e[28]=ft^~lt&xt,e[29]=st^~ut&Et,e[38]=It^~Ft&tt,e[39]=$t^~Ut&rt,e[48]=vt^~yt&Mt,e[49]=gt^~wt&Dt,e[0]^=Ir[t*2],e[1]^=Ir[t*2+1]}};const Ge=bn;function Te(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}Te.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};Te.prototype.absorb=function(e){for(let t=0;t>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(Ge.p1600(this.state),this.count=0);return t};Te.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};var Ni=Te,Xa=Di(Ni),vn={exports:{}},fr={exports:{}};(function(e,t){var r=Le,n=r.Buffer;function i(l,c){for(var d in l)c[d]=l[d]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=f);function f(l,c,d){return n(l,c,d)}i(n,f),f.from=function(l,c,d){if(typeof l=="number")throw new TypeError("Argument must not be a number");return n(l,c,d)},f.alloc=function(l,c,d){if(typeof l!="number")throw new TypeError("Argument must be a number");var b=n(l);return c!==void 0?typeof d=="string"?b.fill(c,d):b.fill(c):b.fill(0),b},f.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return n(l)},f.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(l)}})(fr,fr.exports);var be=fr.exports,gn=be.Buffer;function Xe(e,t){this._block=gn.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Xe.prototype.update=function(e,t){typeof e=="string"&&(t=t||"utf8",e=gn.from(e,t));for(var r=this._block,n=this._blockSize,i=e.length,f=this._len,l=0;l=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(r&4294967295)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var f=this._hash();return e?f.toString(e):f};Xe.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Ae=Xe,Li=J,yn=Ae,Pi=be.Buffer,Oi=[1518500249,1859775393,-1894007588,-899497514],Ii=new Array(80);function Pe(){this.init(),this._w=Ii,yn.call(this,64,56)}Li(Pe,yn);Pe.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function $i(e){return e<<5|e>>>27}function Fi(e){return e<<30|e>>>2}function Ui(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}Pe.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,f=this._d|0,l=this._e|0,c=0;c<16;++c)t[c]=e.readInt32BE(c*4);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var d=0;d<80;++d){var b=~~(d/20),E=$i(r)+Ui(b,n,i,f)+l+t[d]+Oi[b]|0;l=f,f=i,i=Fi(n),n=r,r=E}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=f+this._d|0,this._e=l+this._e|0};Pe.prototype._hash=function(){var e=Pi.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var Hi=Pe,qi=J,wn=Ae,ji=be.Buffer,Wi=[1518500249,1859775393,-1894007588,-899497514],zi=new Array(80);function Oe(){this.init(),this._w=zi,wn.call(this,64,56)}qi(Oe,wn);Oe.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Gi(e){return e<<1|e>>>31}function Vi(e){return e<<5|e>>>27}function Ki(e){return e<<30|e>>>2}function Yi(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}Oe.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,f=this._d|0,l=this._e|0,c=0;c<16;++c)t[c]=e.readInt32BE(c*4);for(;c<80;++c)t[c]=Gi(t[c-3]^t[c-8]^t[c-14]^t[c-16]);for(var d=0;d<80;++d){var b=~~(d/20),E=Vi(r)+Yi(b,n,i,f)+l+t[d]+Wi[b]|0;l=f,f=i,i=Ki(n),n=r,r=E}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=f+this._d|0,this._e=l+this._e|0};Oe.prototype._hash=function(){var e=ji.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var Xi=Oe,Ji=J,xn=Ae,Qi=be.Buffer,Zi=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],ea=new Array(64);function Ie(){this.init(),this._w=ea,xn.call(this,64,56)}Ji(Ie,xn);Ie.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ta(e,t,r){return r^e&(t^r)}function ra(e,t,r){return e&t|r&(e|t)}function na(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function ia(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function aa(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function oa(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}Ie.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,f=this._d|0,l=this._e|0,c=this._f|0,d=this._g|0,b=this._h|0,E=0;E<16;++E)t[E]=e.readInt32BE(E*4);for(;E<64;++E)t[E]=oa(t[E-2])+t[E-7]+aa(t[E-15])+t[E-16]|0;for(var u=0;u<64;++u){var m=b+ia(l)+ta(l,c,d)+Zi[u]+t[u]|0,v=na(r)+ra(r,n,i)|0;b=d,d=c,c=l,l=f+m|0,f=i,i=n,n=r,r=m+v|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=f+this._d|0,this._e=l+this._e|0,this._f=c+this._f|0,this._g=d+this._g|0,this._h=b+this._h|0};Ie.prototype._hash=function(){var e=Qi.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var En=Ie,fa=J,sa=En,la=Ae,ua=be.Buffer,ha=new Array(64);function Je(){this.init(),this._w=ha,la.call(this,64,56)}fa(Je,sa);Je.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Je.prototype._hash=function(){var e=ua.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var _a=Je,ca=J,mn=Ae,da=be.Buffer,$r=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],pa=new Array(160);function $e(){this.init(),this._w=pa,mn.call(this,128,112)}ca($e,mn);$e.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Fr(e,t,r){return r^e&(t^r)}function Ur(e,t,r){return e&t|r&(e|t)}function Hr(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function qr(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function ba(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function va(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function ga(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function ya(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function j(e,t){return e>>>0>>0?1:0}$e.prototype._update=function(e){for(var t=this._w,r=this._ah|0,n=this._bh|0,i=this._ch|0,f=this._dh|0,l=this._eh|0,c=this._fh|0,d=this._gh|0,b=this._hh|0,E=this._al|0,u=this._bl|0,m=this._cl|0,v=this._dl|0,R=this._el|0,A=this._fl|0,w=this._gl|0,s=this._hl|0,p=0;p<32;p+=2)t[p]=e.readInt32BE(p*4),t[p+1]=e.readInt32BE(p*4+4);for(;p<160;p+=2){var y=t[p-30],S=t[p-15*2+1],T=ba(y,S),B=va(S,y);y=t[p-2*2],S=t[p-2*2+1];var O=ga(y,S),D=ya(S,y),M=t[p-7*2],F=t[p-7*2+1],W=t[p-16*2],Z=t[p-16*2+1],q=B+F|0,z=T+M+j(q,B)|0;q=q+D|0,z=z+O+j(q,D)|0,q=q+Z|0,z=z+W+j(q,Z)|0,t[p]=z,t[p+1]=q}for(var G=0;G<160;G+=2){z=t[G],q=t[G+1];var le=Ur(r,n,i),K=Ur(E,u,m),ee=Hr(r,E),Y=Hr(E,r),te=qr(l,R),ue=qr(R,l),re=$r[G],V=$r[G+1],he=Fr(l,c,d),ne=Fr(R,A,w),_=s+ue|0,h=b+te+j(_,s)|0;_=_+ne|0,h=h+he+j(_,ne)|0,_=_+V|0,h=h+re+j(_,V)|0,_=_+q|0,h=h+z+j(_,q)|0;var x=Y+K|0,k=ee+le+j(x,Y)|0;b=d,s=w,d=c,w=A,c=l,A=R,R=v+_|0,l=f+h+j(R,v)|0,f=i,v=m,i=n,m=u,n=r,u=E,E=_+x|0,r=h+k+j(E,_)|0}this._al=this._al+E|0,this._bl=this._bl+u|0,this._cl=this._cl+m|0,this._dl=this._dl+v|0,this._el=this._el+R|0,this._fl=this._fl+A|0,this._gl=this._gl+w|0,this._hl=this._hl+s|0,this._ah=this._ah+r+j(this._al,E)|0,this._bh=this._bh+n+j(this._bl,u)|0,this._ch=this._ch+i+j(this._cl,m)|0,this._dh=this._dh+f+j(this._dl,v)|0,this._eh=this._eh+l+j(this._el,R)|0,this._fh=this._fh+c+j(this._fl,A)|0,this._gh=this._gh+d+j(this._gl,w)|0,this._hh=this._hh+b+j(this._hl,s)|0};$e.prototype._hash=function(){var e=da.allocUnsafe(64);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var Sn=$e,wa=J,xa=Sn,Ea=Ae,ma=be.Buffer,Sa=new Array(160);function Qe(){this.init(),this._w=Sa,Ea.call(this,128,112)}wa(Qe,xa);Qe.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Qe.prototype._hash=function(){var e=ma.allocUnsafe(48);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var Ra=Qe,ve=vn.exports=function(t){t=t.toLowerCase();var r=ve[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r};ve.sha=Hi;ve.sha1=Xi;ve.sha224=_a;ve.sha256=En;ve.sha384=Ra;ve.sha512=Sn;var Ja=vn.exports,Fe,$,Rn,Tn,de,jr,An,sr,br,lr,ur,Cn,Ne={},Bn=[],Ta=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ze=Array.isArray;function oe(e,t){for(var r in t)e[r]=t[r];return e}function kn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function hr(e,t,r){var n,i,f,l={};for(f in t)f=="key"?n=t[f]:f=="ref"?i=t[f]:l[f]=t[f];if(arguments.length>2&&(l.children=arguments.length>3?Fe.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(f in e.defaultProps)l[f]===void 0&&(l[f]=e.defaultProps[f]);return ke(e,l,n,i,null)}function ke(e,t,r,n,i){var f={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++Rn,__i:-1,__u:0};return i==null&&$.vnode!=null&&$.vnode(f),f}function Aa(){return{current:null}}function Ue(e){return e.children}function Me(e,t){this.props=e,this.context=t}function Se(e,t){if(t==null)return e.__?Se(e.__,e.__i+1):null;for(var r;tt&&de.sort(sr));Ve.__r=0}function Dn(e,t,r,n,i,f,l,c,d,b,E){var u,m,v,R,A,w=n&&n.__k||Bn,s=t.length;for(r.__d=d,Ca(r,t,w),d=r.__d,u=0;u0?ke(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,f=null,(c=i.__i=Ba(i,r,l,E))!==-1&&(E--,(f=r[c])&&(f.__u|=131072)),f==null||f.__v===null?(c==-1&&u--,typeof i.type!="function"&&(i.__u|=65536)):c!==l&&(c==l-1?u--:c==l+1?u++:(c>l?u--:u++,i.__u|=65536))):i=e.__k[n]=null;if(E)for(n=0;n(d!=null&&!(131072&d.__u)?1:0))for(;l>=0||c=0){if((d=t[l])&&!(131072&d.__u)&&i==d.key&&f===d.type)return l;l--}if(c2&&(c.children=arguments.length>3?Fe.call(arguments,2):r),ke(e.type,c,n||e.key,i||e.ref,null)}function Na(e,t){var r={__c:t="__cC"+Cn++,__:e,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,f;return this.getChildContext||(i=new Set,(f={})[t]=this,this.getChildContext=function(){return f},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&i.forEach(function(c){c.__e=!0,_r(c)})},this.sub=function(l){i.add(l);var c=l.componentWillUnmount;l.componentWillUnmount=function(){i&&i.delete(l),c&&c.call(l)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Fe=Bn.slice,$={__e:function(e,t,r,n){for(var i,f,l;t=t.__;)if((i=t.__c)&&!i.__)try{if((f=i.constructor)&&f.getDerivedStateFromError!=null&&(i.setState(f.getDerivedStateFromError(e)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),l=i.__d),l)return i.__E=i}catch(c){e=c}throw e}},Rn=0,Tn=function(e){return e!=null&&e.constructor==null},Me.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=oe({},this.state),typeof e=="function"&&(e=e(oe({},r),this.props)),e&&oe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),_r(this))},Me.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_r(this))},Me.prototype.render=Ue,de=[],An=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,sr=function(e,t){return e.__v.__b-t.__v.__b},Ve.__r=0,br=0,lr=zr(!1),ur=zr(!0),Cn=0;const La=Object.freeze(Object.defineProperty({__proto__:null,Component:Me,Fragment:Ue,cloneElement:Da,createContext:Na,createElement:hr,createRef:Aa,h:hr,hydrate:$n,get isValidElement(){return Tn},get options(){return $},render:In,toChildArray:Ln},Symbol.toStringTag,{value:"Module"})),Qa=dr(La);var se,I,ir,Gr,Re=0,Fn=[],H=$,Vr=H.__b,Kr=H.__r,Yr=H.diffed,Xr=H.__c,Jr=H.unmount,Qr=H.__;function ge(e,t){H.__h&&H.__h(I,e,Re||t),Re=0;var r=I.__H||(I.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Un(e){return Re=1,Hn(jn,e)}function Hn(e,t,r){var n=ge(se++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):jn(void 0,t),function(c){var d=n.__N?n.__N[0]:n.__[0],b=n.t(d,c);d!==b&&(n.__N=[b,n.__[1]],n.__c.setState({}))}],n.__c=I,!I.u)){var i=function(c,d,b){if(!n.__c.__H)return!0;var E=n.__c.__H.__.filter(function(m){return!!m.__c});if(E.every(function(m){return!m.__N}))return!f||f.call(this,c,d,b);var u=!1;return E.forEach(function(m){if(m.__N){var v=m.__[0];m.__=m.__N,m.__N=void 0,v!==m.__[0]&&(u=!0)}}),!(!u&&n.__c.props===c)&&(!f||f.call(this,c,d,b))};I.u=!0;var f=I.shouldComponentUpdate,l=I.componentWillUpdate;I.componentWillUpdate=function(c,d,b){if(this.__e){var E=f;f=void 0,i(c,d,b),f=E}l&&l.call(this,c,d,b)},I.shouldComponentUpdate=i}return n.__N||n.__}function Pa(e,t){var r=ge(se++,3);!H.__s&&wr(r.__H,t)&&(r.__=e,r.i=t,I.__H.__h.push(r))}function qn(e,t){var r=ge(se++,4);!H.__s&&wr(r.__H,t)&&(r.__=e,r.i=t,I.__h.push(r))}function Oa(e){return Re=5,yr(function(){return{current:e}},[])}function Ia(e,t,r){Re=6,qn(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},r==null?r:r.concat(e))}function yr(e,t){var r=ge(se++,7);return wr(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function $a(e,t){return Re=8,yr(function(){return e},t)}function Fa(e){var t=I.context[e.__c],r=ge(se++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(I)),t.props.value):e.__}function Ua(e,t){H.useDebugValue&&H.useDebugValue(t?t(e):e)}function Ha(e){var t=ge(se++,10),r=Un();return t.__=e,I.componentDidCatch||(I.componentDidCatch=function(n,i){t.__&&t.__(n,i),r[1](n)}),[r[0],function(){r[1](void 0)}]}function qa(){var e=ge(se++,11);if(!e.__){for(var t=I.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function ja(){for(var e;e=Fn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ze),e.__H.__h.forEach(cr),e.__H.__h=[]}catch(t){e.__H.__h=[],H.__e(t,e.__v)}}H.__b=function(e){I=null,Vr&&Vr(e)},H.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Qr&&Qr(e,t)},H.__r=function(e){Kr&&Kr(e),se=0;var t=(I=e.__c).__H;t&&(ir===I?(t.__h=[],I.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.i=r.__N=void 0})):(t.__h.forEach(ze),t.__h.forEach(cr),t.__h=[],se=0)),ir=I},H.diffed=function(e){Yr&&Yr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Fn.push(t)!==1&&Gr===H.requestAnimationFrame||((Gr=H.requestAnimationFrame)||Wa)(ja)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.i=void 0})),ir=I=null},H.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ze),r.__h=r.__h.filter(function(n){return!n.__||cr(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],H.__e(n,r.__v)}}),Xr&&Xr(e,t)},H.unmount=function(e){Jr&&Jr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ze(n)}catch(i){t=i}}),r.__H=void 0,t&&H.__e(t,r.__v))};var Zr=typeof requestAnimationFrame=="function";function Wa(e){var t,r=function(){clearTimeout(n),Zr&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Zr&&(t=requestAnimationFrame(r))}function ze(e){var t=I,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),I=t}function cr(e){var t=I;e.__c=e.__(),I=t}function wr(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function jn(e,t){return typeof t=="function"?t(e):t}const za=Object.freeze(Object.defineProperty({__proto__:null,useCallback:$a,useContext:Fa,useDebugValue:Ua,useEffect:Pa,useErrorBoundary:Ha,useId:qa,useImperativeHandle:Ia,useLayoutEffect:qn,useMemo:yr,useReducer:Hn,useRef:Oa,useState:Un},Symbol.toStringTag,{value:"Module"})),Za=dr(za);export{Za as a,Ya as b,Xa as j,Qa as r,Ja as s};