@smartledger/bsv 7.8.0 → 7.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/README.md +38 -38
- package/bsv-anchor.min.js +1 -1
- package/bsv-didweb.min.js +1 -1
- package/bsv-gdaf.min.js +41 -41
- package/bsv-ltp.min.js +41 -41
- package/bsv-mnemonic.min.js +1 -1
- package/bsv-shamir.min.js +1 -1
- package/bsv-smartcontract.min.js +2 -2
- package/bsv-statuslist.min.js +25 -25
- package/bsv-vcjwt.min.js +1 -1
- package/bsv.bundle.js +40 -40
- package/bsv.min.js +40 -40
- package/docs/MODULE_REFERENCE_COMPLETE.md +27 -27
- package/docs/advanced/UTXO_MANAGER_GUIDE.md +1 -1
- package/docs/getting-started/INSTALLATION.md +23 -23
- package/docs/getting-started/QUICK_START.md +7 -7
- package/docs/migration/FROM_BSV_1_5_6.md +5 -5
- package/package.json +1 -1
- package/version.js +1 -1
package/bsv-vcjwt.min.js
CHANGED
|
@@ -8,7 +8,7 @@ Use Chrome, Firefox or Internet Explorer 11`)}var _m=Se().Buffer,ma=globalThis.c
|
|
|
8
8
|
`))):v=t.stylize("[Circular]","special")),Wr(f)){if(o&&n.match(/^\d+$/))return v;f=JSON.stringify(""+n),f.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(f=f.slice(1,-1),f=t.stylize(f,"name")):(f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),f=t.stylize(f,"string"))}return f+": "+v}function e2(t,e,r){var i=0,n=t.reduce(function(o,f){return i++,f.indexOf(`
|
|
9
9
|
`)>=0&&i++,o+f.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(e===""?"":e+`
|
|
10
10
|
`)+" "+t.join(`,
|
|
11
|
-
`)+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}Te.types=Bc();function kc(t){return Array.isArray(t)}Te.isArray=kc;function os(t){return typeof t=="boolean"}Te.isBoolean=os;function za(t){return t===null}Te.isNull=za;function t2(t){return t==null}Te.isNullOrUndefined=t2;function Ic(t){return typeof t=="number"}Te.isNumber=Ic;function Za(t){return typeof t=="string"}Te.isString=Za;function r2(t){return typeof t=="symbol"}Te.isSymbol=r2;function Wr(t){return t===void 0}Te.isUndefined=Wr;function xn(t){return Bi(t)&&fs(t)==="[object RegExp]"}Te.isRegExp=xn;Te.types.isRegExp=xn;function Bi(t){return typeof t=="object"&&t!==null}Te.isObject=Bi;function $a(t){return Bi(t)&&fs(t)==="[object Date]"}Te.isDate=$a;Te.types.isDate=$a;function Mn(t){return Bi(t)&&(fs(t)==="[object Error]"||t instanceof Error)}Te.isError=Mn;Te.types.isNativeError=Mn;function Ga(t){return typeof t=="function"}Te.isFunction=Ga;function i2(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}Te.isPrimitive=i2;Te.isBuffer=Rc();function fs(t){return Object.prototype.toString.call(t)}function ns(t){return t<10?"0"+t.toString(10):t.toString(10)}var n2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function a2(){var t=new Date,e=[ns(t.getHours()),ns(t.getMinutes()),ns(t.getSeconds())].join(":");return[t.getDate(),n2[t.getMonth()],e].join(" ")}Te.log=function(){console.log("%s - %s",a2(),Te.format.apply(Te,arguments))};Te.inherits=G();Te._extend=function(t,e){if(!e||!Bi(e))return t;for(var r=Object.keys(e),i=r.length;i--;)t[r[i]]=e[r[i]];return t};function Cc(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Hr=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Te.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(Hr&&e[Hr]){var r=e[Hr];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,Hr,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,o=new Promise(function(w,S){i=w,n=S}),f=[],v=0;v<arguments.length;v++)f.push(arguments[v]);f.push(function(w,S){w?n(w):i(S)});try{e.apply(this,f)}catch(w){n(w)}return o}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Hr&&Object.defineProperty(r,Hr,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,qc(e))};Te.promisify.custom=Hr;function o2(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}function f2(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);var n=r.pop();if(typeof n!="function")throw new TypeError("The last argument must be of type Function");var o=this,f=function(){return n.apply(o,arguments)};t.apply(this,r).then(function(v){M.default.nextTick(f.bind(null,null,v))},function(v){M.default.nextTick(o2.bind(null,v,f))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,qc(t)),e}Te.callbackify=f2});var Nc=B((S5,Lc)=>{"use strict";b();function Oc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Dc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Oc(Object(r),!0).forEach(function(i){s2(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Oc(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function s2(t,e,r){return e=Uc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u2(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pc(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Uc(i.key),i)}}function h2(t,e,r){return e&&Pc(t.prototype,e),r&&Pc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Uc(t){var e=l2(t,"string");return typeof e=="symbol"?e:String(e)}function l2(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var c2=rt(),Ja=c2.Buffer,d2=En(),ss=d2.inspect,p2=ss&&ss.custom||"inspect";function v2(t,e,r){Ja.prototype.copy.call(t,e,r)}Lc.exports=(function(){function t(){u2(this,t),this.head=null,this.tail=null,this.length=0}return h2(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return Ja.alloc(0);for(var i=Ja.allocUnsafe(r>>>0),n=this.head,o=0;n;)v2(n.data,i,o),o+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,o=i.data;for(r-=o.length;i=i.next;){var f=i.data,v=r>f.length?f.length:r;if(v===f.length?o+=f:o+=f.slice(0,r),r-=v,r===0){v===f.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=f.slice(v));break}++n}return this.length-=n,o}},{key:"_getBuffer",value:function(r){var i=Ja.allocUnsafe(r),n=this.head,o=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var f=n.data,v=r>f.length?f.length:r;if(f.copy(i,i.length-r,0,v),r-=v,r===0){v===f.length?(++o,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=f.slice(v));break}++o}return this.length-=o,i}},{key:p2,value:function(r,i){return ss(this,Dc(Dc({},i),{},{depth:0,customInspect:!1}))}}]),t})()});var hs=B((A5,jc)=>{"use strict";b();function y2(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,M.default.nextTick(us,this,t)):M.default.nextTick(us,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(o){!e&&o?r._writableState?r._writableState.errorEmitted?M.default.nextTick(Ya,r):(r._writableState.errorEmitted=!0,M.default.nextTick(Fc,r,o)):M.default.nextTick(Fc,r,o):e?(M.default.nextTick(Ya,r),e(o)):M.default.nextTick(Ya,r)}),this)}function Fc(t,e){us(t,e),Ya(t)}function Ya(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function g2(){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 us(t,e){t.emit("error",e)}function m2(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}jc.exports={destroy:y2,undestroy:g2,errorOrDestroy:m2}});var Kr=B((q5,Kc)=>{"use strict";b();function b2(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Wc={};function lt(t,e,r){r||(r=Error);function i(o,f,v){return typeof e=="string"?e:e(o,f,v)}var n=(function(o){b2(f,o);function f(v,w,S){return o.call(this,i(v,w,S))||this}return f})(r);n.prototype.name=r.name,n.prototype.code=t,Wc[t]=n}function Hc(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(i){return String(i)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:r===2?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}else return"of ".concat(e," ").concat(String(t))}function w2(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function _2(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function x2(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}lt("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);lt("ERR_INVALID_ARG_TYPE",function(t,e,r){var i;typeof e=="string"&&w2(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";var n;if(_2(t," argument"))n="The ".concat(t," ").concat(i," ").concat(Hc(e,"type"));else{var o=x2(t,".")?"property":"argument";n='The "'.concat(t,'" ').concat(o," ").concat(i," ").concat(Hc(e,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);lt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");lt("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});lt("ERR_STREAM_PREMATURE_CLOSE","Premature close");lt("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});lt("ERR_MULTIPLE_CALLBACK","Callback called multiple times");lt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");lt("ERR_STREAM_WRITE_AFTER_END","write after end");lt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);lt("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);lt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Kc.exports.codes=Wc});var ls=B((k5,Gc)=>{"use strict";b();var M2=Kr().codes.ERR_INVALID_OPT_VALUE;function E2(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function S2(t,e,r,i){var n=E2(e,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var o=i?r:"highWaterMark";throw new M2(o,n)}return Math.floor(n)}return t.objectMode?16:16*1024}Gc.exports={getHighWaterMark:S2}});var ds=B((C5,Vc)=>{b();Vc.exports=B2;function B2(t,e){if(cs("noDeprecation"))return t;var r=!1;function i(){if(!r){if(cs("throwDeprecation"))throw new Error(e);cs("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return i}function cs(t){try{if(!globalThis.localStorage)return!1}catch{return!1}var e=globalThis.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}});var ys=B((D5,Xc)=>{"use strict";b();Xc.exports=Ne;function zc(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Q2(e,t)}}var Ai;Ne.WritableState=Bn;var A2={deprecate:ds()},Zc=Rf(),Qa=rt().Buffer,R2=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function q2(t){return Qa.from(t)}function T2(t){return Qa.isBuffer(t)||t instanceof R2}var vs=hs(),k2=ls(),I2=k2.getHighWaterMark,fr=Kr().codes,C2=fr.ERR_INVALID_ARG_TYPE,O2=fr.ERR_METHOD_NOT_IMPLEMENTED,D2=fr.ERR_MULTIPLE_CALLBACK,P2=fr.ERR_STREAM_CANNOT_PIPE,U2=fr.ERR_STREAM_DESTROYED,L2=fr.ERR_STREAM_NULL_VALUES,N2=fr.ERR_STREAM_WRITE_AFTER_END,F2=fr.ERR_UNKNOWN_ENCODING,Ri=vs.errorOrDestroy;G()(Ne,Zc);function j2(){}function Bn(t,e,r){Ai=Ai||Gr(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ai),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=I2(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){z2(e,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new zc(this)}Bn.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Bn.prototype,"buffer",{get:A2.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Xa;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Xa=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ne,Symbol.hasInstance,{value:function(e){return Xa.call(this,e)?!0:this!==Ne?!1:e&&e._writableState instanceof Bn}})):Xa=function(e){return e instanceof this};function Ne(t){Ai=Ai||Gr();var e=this instanceof Ai;if(!e&&!Xa.call(Ne,this))return new Ne(t);this._writableState=new Bn(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Zc.call(this)}Ne.prototype.pipe=function(){Ri(this,new P2)};function H2(t,e){var r=new N2;Ri(t,r),M.default.nextTick(e,r)}function W2(t,e,r,i){var n;return r===null?n=new L2:typeof r!="string"&&!e.objectMode&&(n=new C2("chunk",["string","Buffer"],r)),n?(Ri(t,n),M.default.nextTick(i,n),!1):!0}Ne.prototype.write=function(t,e,r){var i=this._writableState,n=!1,o=!i.objectMode&&T2(t);return o&&!Qa.isBuffer(t)&&(t=q2(t)),typeof e=="function"&&(r=e,e=null),o?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=j2),i.ending?H2(this,r):(o||W2(this,i,t,r))&&(i.pendingcb++,n=G2(this,i,o,t,e,r)),n};Ne.prototype.cork=function(){this._writableState.corked++};Ne.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Jc(this,t))};Ne.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new F2(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ne.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function K2(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Qa.from(e,r)),e}Object.defineProperty(Ne.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function G2(t,e,r,i,n,o){if(!r){var f=K2(e,i,n);i!==f&&(r=!0,n="buffer",i=f)}var v=e.objectMode?1:i.length;e.length+=v;var w=e.length<e.highWaterMark;if(w||(e.needDrain=!0),e.writing||e.corked){var S=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null},S?S.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ps(t,e,!1,v,i,n,o);return w}function ps(t,e,r,i,n,o,f){e.writelen=i,e.writecb=f,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new U2("write")):r?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=!1}function V2(t,e,r,i,n){--e.pendingcb,r?(M.default.nextTick(n,i),M.default.nextTick(Sn,t,e),t._writableState.errorEmitted=!0,Ri(t,i)):(n(i),t._writableState.errorEmitted=!0,Ri(t,i),Sn(t,e))}function $2(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function z2(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new D2;if($2(r),e)V2(t,r,i,e,n);else{var o=Yc(r)||t.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Jc(t,r),i?M.default.nextTick($c,t,r,o,n):$c(t,r,o,n)}}function $c(t,e,r,i){r||Z2(t,e),e.pendingcb--,i(),Sn(t,e)}function Z2(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Jc(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),o=e.corkedRequestsFree;o.entry=r;for(var f=0,v=!0;r;)n[f]=r,r.isBuf||(v=!1),r=r.next,f+=1;n.allBuffers=v,ps(t,e,!0,e.length,n,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new zc(e),e.bufferedRequestCount=0}else{for(;r;){var w=r.chunk,S=r.encoding,A=r.callback,q=e.objectMode?1:w.length;if(ps(t,e,!1,q,w,S,A),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}Ne.prototype._write=function(t,e,r){r(new O2("_write()"))};Ne.prototype._writev=null;Ne.prototype.end=function(t,e,r){var i=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||X2(this,i,r),this};Object.defineProperty(Ne.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Yc(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function J2(t,e){t._final(function(r){e.pendingcb--,r&&Ri(t,r),e.prefinished=!0,t.emit("prefinish"),Sn(t,e)})}function Y2(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,M.default.nextTick(J2,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Sn(t,e){var r=Yc(e);if(r&&(Y2(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}function X2(t,e,r){e.ending=!0,Sn(t,e),r&&(e.finished?M.default.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Q2(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(Ne.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});Ne.prototype.destroy=vs.destroy;Ne.prototype._undestroy=vs.undestroy;Ne.prototype._destroy=function(t,e){e(t)}});var Gr=B((U5,ed)=>{"use strict";b();var e_=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};ed.exports=Pt;var Qc=bs(),ms=ys();G()(Pt,Qc);for(gs=e_(ms.prototype),eo=0;eo<gs.length;eo++)to=gs[eo],Pt.prototype[to]||(Pt.prototype[to]=ms.prototype[to]);var gs,to,eo;function Pt(t){if(!(this instanceof Pt))return new Pt(t);Qc.call(this,t),ms.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",t_)))}Object.defineProperty(Pt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Pt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Pt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function t_(){this._writableState.ended||M.default.nextTick(r_,this)}function r_(t){t.end()}Object.defineProperty(Pt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var id=B((ws,rd)=>{b();var ro=rt(),Gt=ro.Buffer;function td(t,e){for(var r in t)e[r]=t[r]}Gt.from&&Gt.alloc&&Gt.allocUnsafe&&Gt.allocUnsafeSlow?rd.exports=ro:(td(ro,ws),ws.Buffer=qi);function qi(t,e,r){return Gt(t,e,r)}td(Gt,qi);qi.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Gt(t,e,r)};qi.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Gt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};qi.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Gt(t)};qi.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ro.SlowBuffer(t)}});var Ti=B(ad=>{"use strict";b();var xs=id().Buffer,nd=xs.isEncoding||function(t){switch(t=""+t,t&&t.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 i_(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function n_(t){var e=i_(t);if(typeof e!="string"&&(xs.isEncoding===nd||!nd(t)))throw new Error("Unknown encoding: "+t);return e||t}ad.StringDecoder=An;function An(t){this.encoding=n_(t);var e;switch(this.encoding){case"utf16le":this.text=h_,this.end=l_,e=4;break;case"utf8":this.fillLast=f_,e=4;break;case"base64":this.text=c_,this.end=d_,e=3;break;default:this.write=p_,this.end=v_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=xs.allocUnsafe(e)}An.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};An.prototype.end=u_;An.prototype.text=s_;An.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function _s(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function a_(t,e,r){var i=e.length-1;if(i<r)return 0;var n=_s(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=_s(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=_s(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function o_(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function f_(t){var e=this.lastTotal-this.lastNeed,r=o_(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function s_(t,e){var r=a_(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function u_(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function h_(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l_(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c_(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function d_(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function p_(t){return t.toString(this.encoding)}function v_(t){return t&&t.length?this.write(t):""}});var io=B((H5,sd)=>{"use strict";b();var od=Kr().codes.ERR_STREAM_PREMATURE_CLOSE;function y_(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];t.apply(this,i)}}}function g_(){}function m_(t){return t.setHeader&&typeof t.abort=="function"}function fd(t,e,r){if(typeof e=="function")return fd(t,null,e);e||(e={}),r=y_(r||g_);var i=e.readable||e.readable!==!1&&t.readable,n=e.writable||e.writable!==!1&&t.writable,o=function(){t.writable||v()},f=t._writableState&&t._writableState.finished,v=function(){n=!1,f=!0,i||r.call(t)},w=t._readableState&&t._readableState.endEmitted,S=function(){i=!1,w=!0,n||r.call(t)},A=function(P){r.call(t,P)},q=function(){var P;if(i&&!w)return(!t._readableState||!t._readableState.ended)&&(P=new od),r.call(t,P);if(n&&!f)return(!t._writableState||!t._writableState.ended)&&(P=new od),r.call(t,P)},T=function(){t.req.on("finish",v)};return m_(t)?(t.on("complete",v),t.on("abort",q),t.req?T():t.on("request",T)):n&&!t._writableState&&(t.on("end",o),t.on("close",o)),t.on("end",S),t.on("finish",v),e.error!==!1&&t.on("error",A),t.on("close",q),function(){t.removeListener("complete",v),t.removeListener("abort",q),t.removeListener("request",T),t.req&&t.req.removeListener("finish",v),t.removeListener("end",o),t.removeListener("close",o),t.removeListener("finish",v),t.removeListener("end",S),t.removeListener("error",A),t.removeListener("close",q)}}sd.exports=fd});var hd=B((K5,ud)=>{"use strict";b();var no;function sr(t,e,r){return e=b_(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b_(t){var e=w_(t,"string");return typeof e=="symbol"?e:String(e)}function w_(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var __=io(),ur=Symbol("lastResolve"),Vr=Symbol("lastReject"),Rn=Symbol("error"),ao=Symbol("ended"),$r=Symbol("lastPromise"),Ms=Symbol("handlePromise"),zr=Symbol("stream");function hr(t,e){return{value:t,done:e}}function x_(t){var e=t[ur];if(e!==null){var r=t[zr].read();r!==null&&(t[$r]=null,t[ur]=null,t[Vr]=null,e(hr(r,!1)))}}function M_(t){M.default.nextTick(x_,t)}function E_(t,e){return function(r,i){t.then(function(){if(e[ao]){r(hr(void 0,!0));return}e[Ms](r,i)},i)}}var S_=Object.getPrototypeOf(function(){}),B_=Object.setPrototypeOf((no={get stream(){return this[zr]},next:function(){var e=this,r=this[Rn];if(r!==null)return Promise.reject(r);if(this[ao])return Promise.resolve(hr(void 0,!0));if(this[zr].destroyed)return new Promise(function(f,v){M.default.nextTick(function(){e[Rn]?v(e[Rn]):f(hr(void 0,!0))})});var i=this[$r],n;if(i)n=new Promise(E_(i,this));else{var o=this[zr].read();if(o!==null)return Promise.resolve(hr(o,!1));n=new Promise(this[Ms])}return this[$r]=n,n}},sr(no,Symbol.asyncIterator,function(){return this}),sr(no,"return",function(){var e=this;return new Promise(function(r,i){e[zr].destroy(null,function(n){if(n){i(n);return}r(hr(void 0,!0))})})}),no),S_),A_=function(e){var r,i=Object.create(B_,(r={},sr(r,zr,{value:e,writable:!0}),sr(r,ur,{value:null,writable:!0}),sr(r,Vr,{value:null,writable:!0}),sr(r,Rn,{value:null,writable:!0}),sr(r,ao,{value:e._readableState.endEmitted,writable:!0}),sr(r,Ms,{value:function(o,f){var v=i[zr].read();v?(i[$r]=null,i[ur]=null,i[Vr]=null,o(hr(v,!1))):(i[ur]=o,i[Vr]=f)},writable:!0}),r));return i[$r]=null,__(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=i[Vr];o!==null&&(i[$r]=null,i[ur]=null,i[Vr]=null,o(n)),i[Rn]=n;return}var f=i[ur];f!==null&&(i[$r]=null,i[ur]=null,i[Vr]=null,f(hr(void 0,!0))),i[ao]=!0}),e.on("readable",M_.bind(null,i)),i};ud.exports=A_});var cd=B((V5,ld)=>{b();ld.exports=function(){throw new Error("Readable.from is not available in the browser")}});var bs=B((Z5,xd)=>{"use strict";b();xd.exports=ke;var ki;ke.ReadableState=yd;var z5=gi().EventEmitter,vd=function(e,r){return e.listeners(r).length},Tn=Rf(),oo=rt().Buffer,R_=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function q_(t){return oo.from(t)}function T_(t){return oo.isBuffer(t)||t instanceof R_}var Es=En(),Ae;Es&&Es.debuglog?Ae=Es.debuglog("stream"):Ae=function(){};var k_=Nc(),ks=hs(),I_=ls(),C_=I_.getHighWaterMark,fo=Kr().codes,O_=fo.ERR_INVALID_ARG_TYPE,D_=fo.ERR_STREAM_PUSH_AFTER_EOF,P_=fo.ERR_METHOD_NOT_IMPLEMENTED,U_=fo.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ii,Ss,Bs;G()(ke,Tn);var qn=ks.errorOrDestroy,As=["error","close","destroy","pause","resume"];function L_(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function yd(t,e,r){ki=ki||Gr(),t=t||{},typeof r!="boolean"&&(r=e instanceof ki),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=C_(this,t,"readableHighWaterMark",r),this.buffer=new k_,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ii||(Ii=Ti().StringDecoder),this.decoder=new Ii(t.encoding),this.encoding=t.encoding)}function ke(t){if(ki=ki||Gr(),!(this instanceof ke))return new ke(t);var e=this instanceof ki;this._readableState=new yd(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Tn.call(this)}Object.defineProperty(ke.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});ke.prototype.destroy=ks.destroy;ke.prototype._undestroy=ks.undestroy;ke.prototype._destroy=function(t,e){e(t)};ke.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=oo.from(t,e),e=""),i=!0),gd(this,t,e,!1,i)};ke.prototype.unshift=function(t){return gd(this,t,null,!0,!1)};function gd(t,e,r,i,n){Ae("readableAddChunk",e);var o=t._readableState;if(e===null)o.reading=!1,j_(t,o);else{var f;if(n||(f=N_(o,e)),f)qn(t,f);else if(o.objectMode||e&&e.length>0)if(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==oo.prototype&&(e=q_(e)),i)o.endEmitted?qn(t,new U_):Rs(t,o,e,!0);else if(o.ended)qn(t,new D_);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||e.length!==0?Rs(t,o,e,!1):Ts(t,o)):Rs(t,o,e,!1)}else i||(o.reading=!1,Ts(t,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function Rs(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&so(t)),Ts(t,e)}function N_(t,e){var r;return!T_(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new O_("chunk",["string","Buffer","Uint8Array"],e)),r}ke.prototype.isPaused=function(){return this._readableState.flowing===!1};ke.prototype.setEncoding=function(t){Ii||(Ii=Ti().StringDecoder);var e=new Ii(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var dd=1073741824;function F_(t){return t>=dd?t=dd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function pd(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=F_(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}ke.prototype.read=function(t){Ae("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Ae("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?qs(this):so(this),null;if(t=pd(t,e),t===0&&e.ended)return e.length===0&&qs(this),null;var i=e.needReadable;Ae("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,Ae("length less than watermark",i)),e.ended||e.reading?(i=!1,Ae("reading or ended",i)):i&&(Ae("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=pd(r,e)));var n;return t>0?n=wd(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&qs(this)),n!==null&&this.emit("data",n),n};function j_(t,e){if(Ae("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?so(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,md(t)))}}function so(t){var e=t._readableState;Ae("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Ae("emitReadable",e.flowing),e.emittedReadable=!0,M.default.nextTick(md,t))}function md(t){var e=t._readableState;Ae("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Is(t)}function Ts(t,e){e.readingMore||(e.readingMore=!0,M.default.nextTick(H_,t,e))}function H_(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(Ae("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}ke.prototype._read=function(t){qn(this,new P_("_read()"))};ke.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,Ae("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==M.default.stdout&&t!==M.default.stderr,o=n?v:H;i.endEmitted?M.default.nextTick(o):r.once("end",o),t.on("unpipe",f);function f(Ee,F){Ae("onunpipe"),Ee===r&&F&&F.hasUnpiped===!1&&(F.hasUnpiped=!0,A())}function v(){Ae("onend"),t.end()}var w=W_(r);t.on("drain",w);var S=!1;function A(){Ae("cleanup"),t.removeListener("close",C),t.removeListener("finish",P),t.removeListener("drain",w),t.removeListener("error",T),t.removeListener("unpipe",f),r.removeListener("end",v),r.removeListener("end",H),r.removeListener("data",q),S=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&w()}r.on("data",q);function q(Ee){Ae("ondata");var F=t.write(Ee);Ae("dest.write",F),F===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&_d(i.pipes,t)!==-1)&&!S&&(Ae("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function T(Ee){Ae("onerror",Ee),H(),t.removeListener("error",T),vd(t,"error")===0&&qn(t,Ee)}L_(t,"error",T);function C(){t.removeListener("finish",P),H()}t.once("close",C);function P(){Ae("onfinish"),t.removeListener("close",C),H()}t.once("finish",P);function H(){Ae("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(Ae("pipe resume"),r.resume()),t};function W_(t){return function(){var r=t._readableState;Ae("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&vd(t,"data")&&(r.flowing=!0,Is(t))}}ke.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var f=_d(e.pipes,t);return f===-1?this:(e.pipes.splice(f,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};ke.prototype.on=function(t,e){var r=Tn.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,Ae("on readable",i.length,i.reading),i.length?so(this):i.reading||M.default.nextTick(K_,this)),r};ke.prototype.addListener=ke.prototype.on;ke.prototype.removeListener=function(t,e){var r=Tn.prototype.removeListener.call(this,t,e);return t==="readable"&&M.default.nextTick(bd,this),r};ke.prototype.removeAllListeners=function(t){var e=Tn.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&M.default.nextTick(bd,this),e};function bd(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function K_(t){Ae("readable nexttick read 0"),t.read(0)}ke.prototype.resume=function(){var t=this._readableState;return t.flowing||(Ae("resume"),t.flowing=!t.readableListening,G_(this,t)),t.paused=!1,this};function G_(t,e){e.resumeScheduled||(e.resumeScheduled=!0,M.default.nextTick(V_,t,e))}function V_(t,e){Ae("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Is(t),e.flowing&&!e.reading&&t.read(0)}ke.prototype.pause=function(){return Ae("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ae("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Is(t){var e=t._readableState;for(Ae("flow",e.flowing);e.flowing&&t.read()!==null;);}ke.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(Ae("wrapped end"),r.decoder&&!r.ended){var f=r.decoder.end();f&&f.length&&e.push(f)}e.push(null)}),t.on("data",function(f){if(Ae("wrapped data"),r.decoder&&(f=r.decoder.write(f)),!(r.objectMode&&f==null)&&!(!r.objectMode&&(!f||!f.length))){var v=e.push(f);v||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(v){return function(){return t[v].apply(t,arguments)}})(n));for(var o=0;o<As.length;o++)t.on(As[o],this.emit.bind(this,As[o]));return this._read=function(f){Ae("wrapped _read",f),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&(ke.prototype[Symbol.asyncIterator]=function(){return Ss===void 0&&(Ss=hd()),Ss(this)});Object.defineProperty(ke.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(ke.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(ke.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});ke._fromList=wd;Object.defineProperty(ke.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function wd(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function qs(t){var e=t._readableState;Ae("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,M.default.nextTick($_,e,t))}function $_(t,e){if(Ae("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(ke.from=function(t,e){return Bs===void 0&&(Bs=cd()),Bs(ke,t,e)});function _d(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Cs=B((Y5,Ed)=>{"use strict";b();Ed.exports=Vt;var uo=Kr().codes,z_=uo.ERR_METHOD_NOT_IMPLEMENTED,Z_=uo.ERR_MULTIPLE_CALLBACK,J_=uo.ERR_TRANSFORM_ALREADY_TRANSFORMING,Y_=uo.ERR_TRANSFORM_WITH_LENGTH_0,ho=Gr();G()(Vt,ho);function X_(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new Z_);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Vt(t){if(!(this instanceof Vt))return new Vt(t);ho.call(this,t),this._transformState={afterTransform:X_.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Q_)}function Q_(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Md(t,e,r)}):Md(this,null,null)}Vt.prototype.push=function(t,e){return this._transformState.needTransform=!1,ho.prototype.push.call(this,t,e)};Vt.prototype._transform=function(t,e,r){r(new z_("_transform()"))};Vt.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Vt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Vt.prototype._destroy=function(t,e){ho.prototype._destroy.call(this,t,function(r){e(r)})};function Md(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Y_;if(t._transformState.transforming)throw new J_;return t.push(null)}});var Ad=B((Q5,Bd)=>{"use strict";b();Bd.exports=kn;var Sd=Cs();G()(kn,Sd);function kn(t){if(!(this instanceof kn))return new kn(t);Sd.call(this,t)}kn.prototype._transform=function(t,e,r){r(null,t)}});var Id=B((tB,kd)=>{"use strict";b();var Os;function e6(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Td=Kr().codes,t6=Td.ERR_MISSING_ARGS,r6=Td.ERR_STREAM_DESTROYED;function Rd(t){if(t)throw t}function i6(t){return t.setHeader&&typeof t.abort=="function"}function n6(t,e,r,i){i=e6(i);var n=!1;t.on("close",function(){n=!0}),Os===void 0&&(Os=io()),Os(t,{readable:e,writable:r},function(f){if(f)return i(f);n=!0,i()});var o=!1;return function(f){if(!n&&!o){if(o=!0,i6(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(f||new r6("pipe"))}}}function qd(t){t()}function a6(t,e){return t.pipe(e)}function o6(t){return!t.length||typeof t[t.length-1]!="function"?Rd:t.pop()}function f6(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=o6(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new t6("streams");var n,o=e.map(function(f,v){var w=v<e.length-1,S=v>0;return n6(f,w,S,function(A){n||(n=A),A&&o.forEach(qd),!w&&(o.forEach(qd),i(n))})});return e.reduce(a6)}kd.exports=f6});var Ps=B((iB,Cd)=>{b();Cd.exports=ct;var Ds=gi().EventEmitter,s6=G();s6(ct,Ds);ct.Readable=bs();ct.Writable=ys();ct.Duplex=Gr();ct.Transform=Cs();ct.PassThrough=Ad();ct.finished=io();ct.pipeline=Id();ct.Stream=ct;function ct(){Ds.call(this)}ct.prototype.pipe=function(t,e){var r=this;function i(A){t.writable&&t.write(A)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",f),r.on("close",v));var o=!1;function f(){o||(o=!0,t.end())}function v(){o||(o=!0,typeof t.destroy=="function"&&t.destroy())}function w(A){if(S(),Ds.listenerCount(this,"error")===0)throw A}r.on("error",w),t.on("error",w);function S(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",f),r.removeListener("close",v),r.removeListener("error",w),t.removeListener("error",w),r.removeListener("end",S),r.removeListener("close",S),t.removeListener("close",S)}return r.on("end",S),r.on("close",S),t.on("close",S),t.emit("pipe",r),t}});var Pd=B((aB,Dd)=>{"use strict";b();var Ut=Se().Buffer,Od=Ps().Transform,u6=G();function lr(t){Od.call(this),this._block=Ut.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}u6(lr,Od);lr.prototype._transform=function(t,e,r){var i=null;try{this.update(t,e)}catch(n){i=n}r(i)};lr.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)};var h6=typeof Uint8Array<"u",l6=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Ut.prototype instanceof Uint8Array||Ut.TYPED_ARRAY_SUPPORT);function c6(t,e){if(t instanceof Ut)return t;if(typeof t=="string")return Ut.from(t,e);if(l6&&ArrayBuffer.isView(t)){if(t.byteLength===0)return Ut.alloc(0);var r=Ut.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}if(h6&&t instanceof Uint8Array||Ut.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return Ut.from(t);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}lr.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");t=c6(t,e);for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)r[n++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)r[this._blockOffset++]=t[i++];for(var o=0,f=t.length*8;f>0;++o)this._length[o]+=f,f=this._length[o]/4294967296|0,f>0&&(this._length[o]-=4294967296*f);return this};lr.prototype._update=function(){throw new Error("_update is not implemented")};lr.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e};lr.prototype._digest=function(){throw new Error("_digest is not implemented")};Dd.exports=lr});var po=B((fB,Ld)=>{"use strict";b();var d6=G(),Ud=Pd(),p6=Se().Buffer,v6=new Array(16);function lo(){Ud.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}d6(lo,Ud);lo.prototype._update=function(){for(var t=v6,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);var r=this._a,i=this._b,n=this._c,o=this._d;r=Ye(r,i,n,o,t[0],3614090360,7),o=Ye(o,r,i,n,t[1],3905402710,12),n=Ye(n,o,r,i,t[2],606105819,17),i=Ye(i,n,o,r,t[3],3250441966,22),r=Ye(r,i,n,o,t[4],4118548399,7),o=Ye(o,r,i,n,t[5],1200080426,12),n=Ye(n,o,r,i,t[6],2821735955,17),i=Ye(i,n,o,r,t[7],4249261313,22),r=Ye(r,i,n,o,t[8],1770035416,7),o=Ye(o,r,i,n,t[9],2336552879,12),n=Ye(n,o,r,i,t[10],4294925233,17),i=Ye(i,n,o,r,t[11],2304563134,22),r=Ye(r,i,n,o,t[12],1804603682,7),o=Ye(o,r,i,n,t[13],4254626195,12),n=Ye(n,o,r,i,t[14],2792965006,17),i=Ye(i,n,o,r,t[15],1236535329,22),r=Xe(r,i,n,o,t[1],4129170786,5),o=Xe(o,r,i,n,t[6],3225465664,9),n=Xe(n,o,r,i,t[11],643717713,14),i=Xe(i,n,o,r,t[0],3921069994,20),r=Xe(r,i,n,o,t[5],3593408605,5),o=Xe(o,r,i,n,t[10],38016083,9),n=Xe(n,o,r,i,t[15],3634488961,14),i=Xe(i,n,o,r,t[4],3889429448,20),r=Xe(r,i,n,o,t[9],568446438,5),o=Xe(o,r,i,n,t[14],3275163606,9),n=Xe(n,o,r,i,t[3],4107603335,14),i=Xe(i,n,o,r,t[8],1163531501,20),r=Xe(r,i,n,o,t[13],2850285829,5),o=Xe(o,r,i,n,t[2],4243563512,9),n=Xe(n,o,r,i,t[7],1735328473,14),i=Xe(i,n,o,r,t[12],2368359562,20),r=Qe(r,i,n,o,t[5],4294588738,4),o=Qe(o,r,i,n,t[8],2272392833,11),n=Qe(n,o,r,i,t[11],1839030562,16),i=Qe(i,n,o,r,t[14],4259657740,23),r=Qe(r,i,n,o,t[1],2763975236,4),o=Qe(o,r,i,n,t[4],1272893353,11),n=Qe(n,o,r,i,t[7],4139469664,16),i=Qe(i,n,o,r,t[10],3200236656,23),r=Qe(r,i,n,o,t[13],681279174,4),o=Qe(o,r,i,n,t[0],3936430074,11),n=Qe(n,o,r,i,t[3],3572445317,16),i=Qe(i,n,o,r,t[6],76029189,23),r=Qe(r,i,n,o,t[9],3654602809,4),o=Qe(o,r,i,n,t[12],3873151461,11),n=Qe(n,o,r,i,t[15],530742520,16),i=Qe(i,n,o,r,t[2],3299628645,23),r=et(r,i,n,o,t[0],4096336452,6),o=et(o,r,i,n,t[7],1126891415,10),n=et(n,o,r,i,t[14],2878612391,15),i=et(i,n,o,r,t[5],4237533241,21),r=et(r,i,n,o,t[12],1700485571,6),o=et(o,r,i,n,t[3],2399980690,10),n=et(n,o,r,i,t[10],4293915773,15),i=et(i,n,o,r,t[1],2240044497,21),r=et(r,i,n,o,t[8],1873313359,6),o=et(o,r,i,n,t[15],4264355552,10),n=et(n,o,r,i,t[6],2734768916,15),i=et(i,n,o,r,t[13],1309151649,21),r=et(r,i,n,o,t[4],4149444226,6),o=et(o,r,i,n,t[11],3174756917,10),n=et(n,o,r,i,t[2],718787259,15),i=et(i,n,o,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+o|0};lo.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=p6.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t};function co(t,e){return t<<e|t>>>32-e}function Ye(t,e,r,i,n,o,f){return co(t+(e&r|~e&i)+n+o|0,f)+e|0}function Xe(t,e,r,i,n,o,f){return co(t+(e&i|r&~i)+n+o|0,f)+e|0}function Qe(t,e,r,i,n,o,f){return co(t+(e^r^i)+n+o|0,f)+e|0}function et(t,e,r,i,n,o,f){return co(t+(r^(e|~i))+n+o|0,f)+e|0}Ld.exports=lo});var Fd=B((uB,Nd)=>{b();var y6={}.toString;Nd.exports=Array.isArray||function(t){return y6.call(t)=="[object Array]"}});var Hd=B((lB,jd)=>{"use strict";b();var g6=Lr(),m6=jr(),b6=m6("TypedArray.prototype.buffer",!0),w6=es();jd.exports=b6||function(e){if(!w6(e))throw new g6("Not a Typed Array");return e.buffer}});var In=B((dB,Kd)=>{"use strict";b();var _t=Se().Buffer,_6=Fd(),x6=Hd(),M6=ArrayBuffer.isView||function(e){try{return x6(e),!0}catch{return!1}},E6=typeof Uint8Array<"u",Wd=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",S6=Wd&&(_t.prototype instanceof Uint8Array||_t.TYPED_ARRAY_SUPPORT);Kd.exports=function(e,r){if(_t.isBuffer(e))return e.constructor&&!("isBuffer"in e)?_t.from(e):e;if(typeof e=="string")return _t.from(e,r);if(Wd&&M6(e)){if(e.byteLength===0)return _t.alloc(0);if(S6){var i=_t.from(e.buffer,e.byteOffset,e.byteLength);if(i.byteLength===e.byteLength)return i}var n=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),o=_t.from(n);if(o.length===e.byteLength)return o}if(E6&&e instanceof Uint8Array)return _t.from(e);var f=_6(e);if(f)for(var v=0;v<e.length;v+=1){var w=e[v];if(typeof w!="number"||w<0||w>255||~~w!==w)throw new RangeError("Array items must be numbers in the range 0-255.")}if(f||_t.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return _t.from(e);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var zd=B((vB,$d)=>{"use strict";b();var B6=Se().Buffer,A6=In(),Vd=typeof Uint8Array<"u",R6=Vd&&typeof ArrayBuffer<"u",Gd=R6&&ArrayBuffer.isView;$d.exports=function(t,e){if(typeof t=="string"||B6.isBuffer(t)||Vd&&t instanceof Uint8Array||Gd&&Gd(t))return A6(t,e);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var Cn=B((gB,Us)=>{"use strict";b();typeof M.default>"u"||!M.default.version||M.default.version.indexOf("v0.")===0||M.default.version.indexOf("v1.")===0&&M.default.version.indexOf("v1.8.")!==0?Us.exports={nextTick:q6}:Us.exports=M.default;function q6(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,o,f;switch(n){case 0:case 1:return M.default.nextTick(t);case 2:return M.default.nextTick(function(){t.call(null,e)});case 3:return M.default.nextTick(function(){t.call(null,e,r)});case 4:return M.default.nextTick(function(){t.call(null,e,r,i)});default:for(o=new Array(n-1),f=0;f<o.length;)o[f++]=arguments[f];return M.default.nextTick(function(){t.apply(null,o)})}}});var Jd=B((bB,Zd)=>{b();var T6={}.toString;Zd.exports=Array.isArray||function(t){return T6.call(t)=="[object Array]"}});var Ls=B((_B,Yd)=>{b();Yd.exports=gi().EventEmitter});var yo=B((Ns,Qd)=>{b();var vo=rt(),$t=vo.Buffer;function Xd(t,e){for(var r in t)e[r]=t[r]}$t.from&&$t.alloc&&$t.allocUnsafe&&$t.allocUnsafeSlow?Qd.exports=vo:(Xd(vo,Ns),Ns.Buffer=Ci);function Ci(t,e,r){return $t(t,e,r)}Xd($t,Ci);Ci.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return $t(t,e,r)};Ci.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=$t(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Ci.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return $t(t)};Ci.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return vo.SlowBuffer(t)}});var Oi=B(tt=>{b();function k6(t){return Array.isArray?Array.isArray(t):go(t)==="[object Array]"}tt.isArray=k6;function I6(t){return typeof t=="boolean"}tt.isBoolean=I6;function C6(t){return t===null}tt.isNull=C6;function O6(t){return t==null}tt.isNullOrUndefined=O6;function D6(t){return typeof t=="number"}tt.isNumber=D6;function P6(t){return typeof t=="string"}tt.isString=P6;function U6(t){return typeof t=="symbol"}tt.isSymbol=U6;function L6(t){return t===void 0}tt.isUndefined=L6;function N6(t){return go(t)==="[object RegExp]"}tt.isRegExp=N6;function F6(t){return typeof t=="object"&&t!==null}tt.isObject=F6;function j6(t){return go(t)==="[object Date]"}tt.isDate=j6;function H6(t){return go(t)==="[object Error]"||t instanceof Error}tt.isError=H6;function W6(t){return typeof t=="function"}tt.isFunction=W6;function K6(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}tt.isPrimitive=K6;tt.isBuffer=rt().Buffer.isBuffer;function go(t){return Object.prototype.toString.call(t)}});var tp=B((BB,Fs)=>{"use strict";b();function G6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var ep=yo().Buffer,On=En();function V6(t,e,r){t.copy(e,r)}Fs.exports=(function(){function t(){G6(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},t.prototype.concat=function(r){if(this.length===0)return ep.alloc(0);for(var i=ep.allocUnsafe(r>>>0),n=this.head,o=0;n;)V6(n.data,i,o),o+=n.data.length,n=n.next;return i},t})();On&&On.inspect&&On.inspect.custom&&(Fs.exports.prototype[On.inspect.custom]=function(){var t=On.inspect({length:this.length});return this.constructor.name+" "+t})});var js=B((RB,rp)=>{"use strict";b();var mo=Cn();function $6(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,mo.nextTick(bo,this,t)):mo.nextTick(bo,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(o){!e&&o?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,mo.nextTick(bo,r,o)):mo.nextTick(bo,r,o):e&&e(o)}),this)}function z6(){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 bo(t,e){t.emit("error",e)}rp.exports={destroy:$6,undestroy:z6}});var Ws=B((TB,hp)=>{"use strict";b();var Zr=Cn();hp.exports=We;function np(t){var e=this;this.next=null,this.entry=null,this.finish=function(){cx(e,t)}}var Z6=!M.default.browser&&["v0.10","v0.9."].indexOf(M.default.version.slice(0,5))>-1?setImmediate:Zr.nextTick,Di;We.WritableState=Pn;var ap=Object.create(Oi());ap.inherits=G();var J6={deprecate:ds()},op=Ls(),_o=yo().Buffer,Y6=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function X6(t){return _o.from(t)}function Q6(t){return _o.isBuffer(t)||t instanceof Y6}var fp=js();ap.inherits(We,op);function ex(){}function Pn(t,e){Di=Di||Jr(),t=t||{};var r=e instanceof Di;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,n=t.writableHighWaterMark,o=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=t.decodeStrings===!1;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(v){fx(e,v)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new np(this)}Pn.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Pn.prototype,"buffer",{get:J6.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var wo;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(wo=Function.prototype[Symbol.hasInstance],Object.defineProperty(We,Symbol.hasInstance,{value:function(t){return wo.call(this,t)?!0:this!==We?!1:t&&t._writableState instanceof Pn}})):wo=function(t){return t instanceof this};function We(t){if(Di=Di||Jr(),!wo.call(We,this)&&!(this instanceof Di))return new We(t);this._writableState=new Pn(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),op.call(this)}We.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function tx(t,e){var r=new Error("write after end");t.emit("error",r),Zr.nextTick(e,r)}function rx(t,e,r,i){var n=!0,o=!1;return r===null?o=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),Zr.nextTick(i,o),n=!1),n}We.prototype.write=function(t,e,r){var i=this._writableState,n=!1,o=!i.objectMode&&Q6(t);return o&&!_o.isBuffer(t)&&(t=X6(t)),typeof e=="function"&&(r=e,e=null),o?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=ex),i.ended?tx(this,r):(o||rx(this,i,t,r))&&(i.pendingcb++,n=nx(this,i,o,t,e,r)),n};We.prototype.cork=function(){var t=this._writableState;t.corked++};We.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&sp(this,t))};We.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function ix(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=_o.from(e,r)),e}Object.defineProperty(We.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function nx(t,e,r,i,n,o){if(!r){var f=ix(e,i,n);i!==f&&(r=!0,n="buffer",i=f)}var v=e.objectMode?1:i.length;e.length+=v;var w=e.length<e.highWaterMark;if(w||(e.needDrain=!0),e.writing||e.corked){var S=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null},S?S.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Hs(t,e,!1,v,i,n,o);return w}function Hs(t,e,r,i,n,o,f){e.writelen=i,e.writecb=f,e.writing=!0,e.sync=!0,r?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=!1}function ax(t,e,r,i,n){--e.pendingcb,r?(Zr.nextTick(n,i),Zr.nextTick(Dn,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Dn(t,e))}function ox(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function fx(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(ox(r),e)ax(t,r,i,e,n);else{var o=up(r);!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&sp(t,r),i?Z6(ip,t,r,o,n):ip(t,r,o,n)}}function ip(t,e,r,i){r||sx(t,e),e.pendingcb--,i(),Dn(t,e)}function sx(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function sp(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),o=e.corkedRequestsFree;o.entry=r;for(var f=0,v=!0;r;)n[f]=r,r.isBuf||(v=!1),r=r.next,f+=1;n.allBuffers=v,Hs(t,e,!0,e.length,n,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new np(e),e.bufferedRequestCount=0}else{for(;r;){var w=r.chunk,S=r.encoding,A=r.callback,q=e.objectMode?1:w.length;if(Hs(t,e,!1,q,w,S,A),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}We.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};We.prototype._writev=null;We.prototype.end=function(t,e,r){var i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||lx(this,i,r)};function up(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function ux(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Dn(t,e)})}function hx(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Zr.nextTick(ux,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Dn(t,e){var r=up(e);return r&&(hx(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function lx(t,e,r){e.ending=!0,Dn(t,e),r&&(e.finished?Zr.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function cx(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(We.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});We.prototype.destroy=fp.destroy;We.prototype._undestroy=fp.undestroy;We.prototype._destroy=function(t,e){this.end(),e(t)}});var Jr=B((IB,pp)=>{"use strict";b();var lp=Cn(),dx=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};pp.exports=zt;var cp=Object.create(Oi());cp.inherits=G();var dp=Vs(),Gs=Ws();cp.inherits(zt,dp);for(Ks=dx(Gs.prototype),xo=0;xo<Ks.length;xo++)Mo=Ks[xo],zt.prototype[Mo]||(zt.prototype[Mo]=Gs.prototype[Mo]);var Ks,Mo,xo;function zt(t){if(!(this instanceof zt))return new zt(t);dp.call(this,t),Gs.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",px)}Object.defineProperty(zt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function px(){this.allowHalfOpen||this._writableState.ended||lp.nextTick(vx,this)}function vx(t){t.end()}Object.defineProperty(zt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});zt.prototype._destroy=function(t,e){this.push(null),this.end(),lp.nextTick(e,t)}});var Vs=B((DB,Bp)=>{"use strict";b();var Ui=Cn();Bp.exports=Pe;var yx=Jd(),Un;Pe.ReadableState=_p;var OB=gi().EventEmitter,mp=function(t,e){return t.listeners(e).length},Ys=Ls(),Ln=yo().Buffer,gx=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function mx(t){return Ln.from(t)}function bx(t){return Ln.isBuffer(t)||t instanceof gx}var bp=Object.create(Oi());bp.inherits=G();var $s=En(),Ie=void 0;$s&&$s.debuglog?Ie=$s.debuglog("stream"):Ie=function(){};var wx=tp(),wp=js(),Pi;bp.inherits(Pe,Ys);var zs=["error","close","destroy","pause","resume"];function _x(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):yx(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function _p(t,e){Un=Un||Jr(),t=t||{};var r=e instanceof Un;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,n=t.readableHighWaterMark,o=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new wx,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Pi||(Pi=Ti().StringDecoder),this.decoder=new Pi(t.encoding),this.encoding=t.encoding)}function Pe(t){if(Un=Un||Jr(),!(this instanceof Pe))return new Pe(t);this._readableState=new _p(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Ys.call(this)}Object.defineProperty(Pe.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Pe.prototype.destroy=wp.destroy;Pe.prototype._undestroy=wp.undestroy;Pe.prototype._destroy=function(t,e){this.push(null),e(t)};Pe.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Ln.from(t,e),e=""),i=!0),xp(this,t,e,!1,i)};Pe.prototype.unshift=function(t){return xp(this,t,null,!0,!1)};function xp(t,e,r,i,n){var o=t._readableState;if(e===null)o.reading=!1,Sx(t,o);else{var f;n||(f=xx(o,e)),f?t.emit("error",f):o.objectMode||e&&e.length>0?(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==Ln.prototype&&(e=mx(e)),i?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):Zs(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||e.length!==0?Zs(t,o,e,!1):Mp(t,o)):Zs(t,o,e,!1))):i||(o.reading=!1)}return Mx(o)}function Zs(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Eo(t)),Mp(t,e)}function xx(t,e){var r;return!bx(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function Mx(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}Pe.prototype.isPaused=function(){return this._readableState.flowing===!1};Pe.prototype.setEncoding=function(t){return Pi||(Pi=Ti().StringDecoder),this._readableState.decoder=new Pi(t),this._readableState.encoding=t,this};var vp=8388608;function Ex(t){return t>=vp?t=vp:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function yp(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=Ex(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Pe.prototype.read=function(t){Ie("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Ie("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Js(this):Eo(this),null;if(t=yp(t,e),t===0&&e.ended)return e.length===0&&Js(this),null;var i=e.needReadable;Ie("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,Ie("length less than watermark",i)),e.ended||e.reading?(i=!1,Ie("reading or ended",i)):i&&(Ie("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=yp(r,e)));var n;return t>0?n=Ep(t,e):n=null,n===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Js(this)),n!==null&&this.emit("data",n),n};function Sx(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,Eo(t)}}function Eo(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Ie("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Ui.nextTick(gp,t):gp(t))}function gp(t){Ie("emit readable"),t.emit("readable"),Xs(t)}function Mp(t,e){e.readingMore||(e.readingMore=!0,Ui.nextTick(Bx,t,e))}function Bx(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Ie("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}Pe.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};Pe.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,Ie("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==M.default.stdout&&t!==M.default.stderr,o=n?v:Ee;i.endEmitted?Ui.nextTick(o):r.once("end",o),t.on("unpipe",f);function f(F,K){Ie("onunpipe"),F===r&&K&&K.hasUnpiped===!1&&(K.hasUnpiped=!0,A())}function v(){Ie("onend"),t.end()}var w=Ax(r);t.on("drain",w);var S=!1;function A(){Ie("cleanup"),t.removeListener("close",P),t.removeListener("finish",H),t.removeListener("drain",w),t.removeListener("error",C),t.removeListener("unpipe",f),r.removeListener("end",v),r.removeListener("end",Ee),r.removeListener("data",T),S=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&w()}var q=!1;r.on("data",T);function T(F){Ie("ondata"),q=!1;var K=t.write(F);K===!1&&!q&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Sp(i.pipes,t)!==-1)&&!S&&(Ie("false write response, pause",i.awaitDrain),i.awaitDrain++,q=!0),r.pause())}function C(F){Ie("onerror",F),Ee(),t.removeListener("error",C),mp(t,"error")===0&&t.emit("error",F)}_x(t,"error",C);function P(){t.removeListener("finish",H),Ee()}t.once("close",P);function H(){Ie("onfinish"),t.removeListener("close",P),Ee()}t.once("finish",H);function Ee(){Ie("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(Ie("pipe resume"),r.resume()),t};function Ax(t){return function(){var e=t._readableState;Ie("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&mp(t,"data")&&(e.flowing=!0,Xs(t))}}Pe.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var f=Sp(e.pipes,t);return f===-1?this:(e.pipes.splice(f,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Pe.prototype.on=function(t,e){var r=Ys.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&Eo(this):Ui.nextTick(Rx,this))}return r};Pe.prototype.addListener=Pe.prototype.on;function Rx(t){Ie("readable nexttick read 0"),t.read(0)}Pe.prototype.resume=function(){var t=this._readableState;return t.flowing||(Ie("resume"),t.flowing=!0,qx(this,t)),this};function qx(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ui.nextTick(Tx,t,e))}function Tx(t,e){e.reading||(Ie("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Xs(t),e.flowing&&!e.reading&&t.read(0)}Pe.prototype.pause=function(){return Ie("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ie("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Xs(t){var e=t._readableState;for(Ie("flow",e.flowing);e.flowing&&t.read()!==null;);}Pe.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(Ie("wrapped end"),r.decoder&&!r.ended){var f=r.decoder.end();f&&f.length&&e.push(f)}e.push(null)}),t.on("data",function(f){if(Ie("wrapped data"),r.decoder&&(f=r.decoder.write(f)),!(r.objectMode&&f==null)&&!(!r.objectMode&&(!f||!f.length))){var v=e.push(f);v||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(f){return function(){return t[f].apply(t,arguments)}})(n));for(var o=0;o<zs.length;o++)t.on(zs[o],this.emit.bind(this,zs[o]));return this._read=function(f){Ie("wrapped _read",f),i&&(i=!1,t.resume())},this};Object.defineProperty(Pe.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Pe._fromList=Ep;function Ep(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=kx(t,e.buffer,e.decoder),r}function kx(t,e,r){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?i=e.shift():i=r?Ix(t,e):Cx(t,e),i}function Ix(t,e){var r=e.head,i=1,n=r.data;for(t-=n.length;r=r.next;){var o=r.data,f=t>o.length?o.length:t;if(f===o.length?n+=o:n+=o.slice(0,t),t-=f,t===0){f===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(f));break}++i}return e.length-=i,n}function Cx(t,e){var r=Ln.allocUnsafe(t),i=e.head,n=1;for(i.data.copy(r),t-=i.data.length;i=i.next;){var o=i.data,f=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,f),t-=f,t===0){f===o.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=o.slice(f));break}++n}return e.length-=n,r}function Js(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Ui.nextTick(Ox,e,t))}function Ox(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Sp(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Qs=B((UB,qp)=>{"use strict";b();qp.exports=Zt;var So=Jr(),Rp=Object.create(Oi());Rp.inherits=G();Rp.inherits(Zt,So);function Dx(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Zt(t){if(!(this instanceof Zt))return new Zt(t);So.call(this,t),this._transformState={afterTransform:Dx.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Px)}function Px(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){Ap(t,e,r)}):Ap(this,null,null)}Zt.prototype.push=function(t,e){return this._transformState.needTransform=!1,So.prototype.push.call(this,t,e)};Zt.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};Zt.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Zt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Zt.prototype._destroy=function(t,e){var r=this;So.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function Ap(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var Cp=B((NB,Ip)=>{"use strict";b();Ip.exports=Nn;var Tp=Qs(),kp=Object.create(Oi());kp.inherits=G();kp.inherits(Nn,Tp);function Nn(t){if(!(this instanceof Nn))return new Nn(t);Tp.call(this,t)}Nn.prototype._transform=function(t,e,r){r(null,t)}});var Dp=B((Lt,Op)=>{b();Lt=Op.exports=Vs();Lt.Stream=Lt;Lt.Readable=Lt;Lt.Writable=Ws();Lt.Duplex=Jr();Lt.Transform=Qs();Lt.PassThrough=Cp()});var Lp=B((HB,Up)=>{"use strict";b();var Ux=Se().Buffer,Lx=zd(),Pp=Dp().Transform,Nx=G();function cr(t){Pp.call(this),this._block=Ux.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Nx(cr,Pp);cr.prototype._transform=function(t,e,r){var i=null;try{this.update(t,e)}catch(n){i=n}r(i)};cr.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)};cr.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");for(var r=Lx(t,e),i=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)i[o]=r[n],o+=1,n+=1;this._update(),this._blockOffset=0}for(;n<r.length;)i[this._blockOffset]=r[n],this._blockOffset+=1,n+=1;for(var f=0,v=r.length*8;v>0;++f)this._length[f]+=v,v=this._length[f]/4294967296|0,v>0&&(this._length[f]-=4294967296*v);return this};cr.prototype._update=function(){throw new Error("_update is not implemented")};cr.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e};cr.prototype._digest=function(){throw new Error("_digest is not implemented")};Up.exports=cr});var Ao=B((KB,Gp)=>{"use strict";b();var eu=rt().Buffer,Fx=G(),Kp=Lp(),jx=new Array(16),Fn=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],jn=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],Hn=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],Wn=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],Kn=[0,1518500249,1859775393,2400959708,2840853838],Gn=[1352829926,1548603684,1836072691,2053994217,0];function Yr(t,e){return t<<e|t>>>32-e}function Np(t,e,r,i,n,o,f,v){return Yr(t+(e^r^i)+o+f|0,v)+n|0}function Fp(t,e,r,i,n,o,f,v){return Yr(t+(e&r|~e&i)+o+f|0,v)+n|0}function jp(t,e,r,i,n,o,f,v){return Yr(t+((e|~r)^i)+o+f|0,v)+n|0}function Hp(t,e,r,i,n,o,f,v){return Yr(t+(e&i|r&~i)+o+f|0,v)+n|0}function Wp(t,e,r,i,n,o,f,v){return Yr(t+(e^(r|~i))+o+f|0,v)+n|0}function Bo(){Kp.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}Fx(Bo,Kp);Bo.prototype._update=function(){for(var t=jx,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);for(var r=this._a|0,i=this._b|0,n=this._c|0,o=this._d|0,f=this._e|0,v=this._a|0,w=this._b|0,S=this._c|0,A=this._d|0,q=this._e|0,T=0;T<80;T+=1){var C,P;T<16?(C=Np(r,i,n,o,f,t[Fn[T]],Kn[0],Hn[T]),P=Wp(v,w,S,A,q,t[jn[T]],Gn[0],Wn[T])):T<32?(C=Fp(r,i,n,o,f,t[Fn[T]],Kn[1],Hn[T]),P=Hp(v,w,S,A,q,t[jn[T]],Gn[1],Wn[T])):T<48?(C=jp(r,i,n,o,f,t[Fn[T]],Kn[2],Hn[T]),P=jp(v,w,S,A,q,t[jn[T]],Gn[2],Wn[T])):T<64?(C=Hp(r,i,n,o,f,t[Fn[T]],Kn[3],Hn[T]),P=Fp(v,w,S,A,q,t[jn[T]],Gn[3],Wn[T])):(C=Wp(r,i,n,o,f,t[Fn[T]],Kn[4],Hn[T]),P=Np(v,w,S,A,q,t[jn[T]],Gn[4],Wn[T])),r=f,f=o,o=Yr(n,10),n=i,i=C,v=q,q=A,A=Yr(S,10),S=w,w=P}var H=this._b+n+A|0;this._b=this._c+o+q|0,this._c=this._d+f+v|0,this._d=this._e+r+w|0,this._e=this._a+i+S|0,this._a=H};Bo.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=eu.alloc?eu.alloc(20):new eu(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t};Gp.exports=Bo});var Xr=B((VB,Vp)=>{"use strict";b();var Hx=Se().Buffer,Wx=In();function Ro(t,e){this._block=Hx.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}Ro.prototype.update=function(t,e){t=Wx(t,e||"utf8");for(var r=this._block,i=this._blockSize,n=t.length,o=this._len,f=0;f<n;){for(var v=o%i,w=Math.min(n-f,i-v),S=0;S<w;S++)r[v+S]=t[f+S];o+=w,f+=w,o%i===0&&this._update(r)}return this._len+=n,this};Ro.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=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 i=(r&4294967295)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o};Ro.prototype._update=function(){throw new Error("_update must be implemented by subclass")};Vp.exports=Ro});var Zp=B((zB,zp)=>{"use strict";b();var Kx=G(),$p=Xr(),Gx=Se().Buffer,Vx=[1518500249,1859775393,-1894007588,-899497514],$x=new Array(80);function Vn(){this.init(),this._w=$x,$p.call(this,64,56)}Kx(Vn,$p);Vn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function zx(t){return t<<5|t>>>27}function Zx(t){return t<<30|t>>>2}function Jx(t,e,r,i){return t===0?e&r|~e&i:t===2?e&r|e&i|r&i:e^r^i}Vn.prototype._update=function(t){for(var e=this._w,r=this._a|0,i=this._b|0,n=this._c|0,o=this._d|0,f=this._e|0,v=0;v<16;++v)e[v]=t.readInt32BE(v*4);for(;v<80;++v)e[v]=e[v-3]^e[v-8]^e[v-14]^e[v-16];for(var w=0;w<80;++w){var S=~~(w/20),A=zx(r)+Jx(S,i,n,o)+f+e[w]+Vx[S]|0;f=o,o=n,n=Zx(i),i=r,r=A}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=f+this._e|0};Vn.prototype._hash=function(){var t=Gx.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};zp.exports=Vn});var Xp=B((JB,Yp)=>{"use strict";b();var Yx=G(),Jp=Xr(),Xx=Se().Buffer,Qx=[1518500249,1859775393,-1894007588,-899497514],e3=new Array(80);function $n(){this.init(),this._w=e3,Jp.call(this,64,56)}Yx($n,Jp);$n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function t3(t){return t<<1|t>>>31}function r3(t){return t<<5|t>>>27}function i3(t){return t<<30|t>>>2}function n3(t,e,r,i){return t===0?e&r|~e&i:t===2?e&r|e&i|r&i:e^r^i}$n.prototype._update=function(t){for(var e=this._w,r=this._a|0,i=this._b|0,n=this._c|0,o=this._d|0,f=this._e|0,v=0;v<16;++v)e[v]=t.readInt32BE(v*4);for(;v<80;++v)e[v]=t3(e[v-3]^e[v-8]^e[v-14]^e[v-16]);for(var w=0;w<80;++w){var S=~~(w/20),A=r3(r)+n3(S,i,n,o)+f+e[w]+Qx[S]|0;f=o,o=n,n=i3(i),i=r,r=A}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=f+this._e|0};$n.prototype._hash=function(){var t=Xx.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};Yp.exports=$n});var tu=B((XB,ev)=>{"use strict";b();var a3=G(),Qp=Xr(),o3=Se().Buffer,f3=[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],s3=new Array(64);function zn(){this.init(),this._w=s3,Qp.call(this,64,56)}a3(zn,Qp);zn.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 u3(t,e,r){return r^t&(e^r)}function h3(t,e,r){return t&e|r&(t|e)}function l3(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function c3(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function d3(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function p3(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}zn.prototype._update=function(t){for(var e=this._w,r=this._a|0,i=this._b|0,n=this._c|0,o=this._d|0,f=this._e|0,v=this._f|0,w=this._g|0,S=this._h|0,A=0;A<16;++A)e[A]=t.readInt32BE(A*4);for(;A<64;++A)e[A]=p3(e[A-2])+e[A-7]+d3(e[A-15])+e[A-16]|0;for(var q=0;q<64;++q){var T=S+c3(f)+u3(f,v,w)+f3[q]+e[q]|0,C=l3(r)+h3(r,i,n)|0;S=w,w=v,v=f,f=o+T|0,o=n,n=i,i=r,r=T+C|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=f+this._e|0,this._f=v+this._f|0,this._g=w+this._g|0,this._h=S+this._h|0};zn.prototype._hash=function(){var t=o3.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t};ev.exports=zn});var rv=B((eA,tv)=>{"use strict";b();var v3=G(),y3=tu(),g3=Xr(),m3=Se().Buffer,b3=new Array(64);function qo(){this.init(),this._w=b3,g3.call(this,64,56)}v3(qo,y3);qo.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};qo.prototype._hash=function(){var t=m3.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t};tv.exports=qo});var ru=B((rA,uv)=>{"use strict";b();var w3=G(),sv=Xr(),_3=Se().Buffer,iv=[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],x3=new Array(160);function Zn(){this.init(),this._w=x3,sv.call(this,128,112)}w3(Zn,sv);Zn.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 nv(t,e,r){return r^t&(e^r)}function av(t,e,r){return t&e|r&(t|e)}function ov(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function fv(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function M3(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function E3(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function S3(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function B3(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function Ze(t,e){return t>>>0<e>>>0?1:0}Zn.prototype._update=function(t){for(var e=this._w,r=this._ah|0,i=this._bh|0,n=this._ch|0,o=this._dh|0,f=this._eh|0,v=this._fh|0,w=this._gh|0,S=this._hh|0,A=this._al|0,q=this._bl|0,T=this._cl|0,C=this._dl|0,P=this._el|0,H=this._fl|0,Ee=this._gl|0,F=this._hl|0,K=0;K<32;K+=2)e[K]=t.readInt32BE(K*4),e[K+1]=t.readInt32BE(K*4+4);for(;K<160;K+=2){var Fe=e[K-30],je=e[K-30+1],nr=M3(Fe,je),Ve=E3(je,Fe);Fe=e[K-4],je=e[K-4+1];var Tt=S3(Fe,je),De=B3(je,Fe),st=e[K-14],E=e[K-14+1],h=e[K-32],g=e[K-32+1],c=Ve+E|0,a=nr+st+Ze(c,Ve)|0;c=c+De|0,a=a+Tt+Ze(c,De)|0,c=c+g|0,a=a+h+Ze(c,g)|0,e[K]=a,e[K+1]=c}for(var u=0;u<160;u+=2){a=e[u],c=e[u+1];var d=av(r,i,n),y=av(A,q,T),p=ov(r,A),s=ov(A,r),m=fv(f,P),_=fv(P,f),l=iv[u],x=iv[u+1],I=nv(f,v,w),D=nv(P,H,Ee),O=F+_|0,L=S+m+Ze(O,F)|0;O=O+D|0,L=L+I+Ze(O,D)|0,O=O+x|0,L=L+l+Ze(O,x)|0,O=O+c|0,L=L+a+Ze(O,c)|0;var U=s+y|0,N=p+d+Ze(U,s)|0;S=w,F=Ee,w=v,Ee=H,v=f,H=P,P=C+O|0,f=o+L+Ze(P,C)|0,o=n,C=T,n=i,T=q,i=r,q=A,A=O+U|0,r=L+N+Ze(A,O)|0}this._al=this._al+A|0,this._bl=this._bl+q|0,this._cl=this._cl+T|0,this._dl=this._dl+C|0,this._el=this._el+P|0,this._fl=this._fl+H|0,this._gl=this._gl+Ee|0,this._hl=this._hl+F|0,this._ah=this._ah+r+Ze(this._al,A)|0,this._bh=this._bh+i+Ze(this._bl,q)|0,this._ch=this._ch+n+Ze(this._cl,T)|0,this._dh=this._dh+o+Ze(this._dl,C)|0,this._eh=this._eh+f+Ze(this._el,P)|0,this._fh=this._fh+v+Ze(this._fl,H)|0,this._gh=this._gh+w+Ze(this._gl,Ee)|0,this._hh=this._hh+S+Ze(this._hl,F)|0};Zn.prototype._hash=function(){var t=_3.allocUnsafe(64);function e(r,i,n){t.writeInt32BE(r,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t};uv.exports=Zn});var lv=B((nA,hv)=>{"use strict";b();var A3=G(),R3=ru(),q3=Xr(),T3=Se().Buffer,k3=new Array(160);function To(){this.init(),this._w=k3,q3.call(this,128,112)}A3(To,R3);To.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};To.prototype._hash=function(){var t=T3.allocUnsafe(48);function e(r,i,n){t.writeInt32BE(r,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t};hv.exports=To});var ko=B((oA,Jt)=>{"use strict";b();Jt.exports=function(e){var r=e.toLowerCase(),i=Jt.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i};Jt.exports.sha=Zp();Jt.exports.sha1=Xp();Jt.exports.sha224=rv();Jt.exports.sha256=tu();Jt.exports.sha384=lv();Jt.exports.sha512=ru()});var Yt=B((sA,dv)=>{"use strict";b();var I3=Se().Buffer,cv=Ps().Transform,C3=Ti().StringDecoder,O3=G(),D3=In();function xt(t){cv.call(this),this.hashMode=typeof t=="string",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}O3(xt,cv);xt.prototype.update=function(t,e,r){var i=D3(t,e),n=this._update(i);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)};xt.prototype.setAutoPadding=function(){};xt.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};xt.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};xt.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};xt.prototype._transform=function(t,e,r){var i;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(n){i=n}finally{r(i)}};xt.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(r){e=r}t(e)};xt.prototype._finalOrDigest=function(t){var e=this.__final()||I3.alloc(0);return t&&(e=this._toString(e,t,!0)),e};xt.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new C3(e),this._encoding=e),this._encoding!==e)throw new Error("can\u2019t switch encodings");var i=this._decoder.write(t);return r&&(i+=this._decoder.end()),i};dv.exports=xt});var Jn=B((hA,vv)=>{"use strict";b();var P3=G(),U3=po(),L3=Ao(),N3=ko(),pv=Yt();function Io(t){pv.call(this,"digest"),this._hash=t}P3(Io,pv);Io.prototype._update=function(t){this._hash.update(t)};Io.prototype._final=function(){return this._hash.digest()};vv.exports=function(e){return e=e.toLowerCase(),e==="md5"?new U3:e==="rmd160"||e==="ripemd160"?new L3:new Io(N3(e))}});var mv=B((cA,gv)=>{"use strict";b();var F3=G(),Qr=Se().Buffer,yv=Yt(),j3=Qr.alloc(128),Li=64;function Co(t,e){yv.call(this,"digest"),typeof e=="string"&&(e=Qr.from(e)),this._alg=t,this._key=e,e.length>Li?e=t(e):e.length<Li&&(e=Qr.concat([e,j3],Li));for(var r=this._ipad=Qr.allocUnsafe(Li),i=this._opad=Qr.allocUnsafe(Li),n=0;n<Li;n++)r[n]=e[n]^54,i[n]=e[n]^92;this._hash=[r]}F3(Co,yv);Co.prototype._update=function(t){this._hash.push(t)};Co.prototype._final=function(){var t=this._alg(Qr.concat(this._hash));return this._alg(Qr.concat([this._opad,t]))};gv.exports=Co});var iu=B((pA,bv)=>{b();var H3=po();bv.exports=function(t){return new H3().update(t).digest()}});var xv=B((yA,_v)=>{"use strict";b();var W3=G(),K3=mv(),wv=Yt(),Yn=Se().Buffer,G3=iu(),nu=Ao(),au=ko(),V3=Yn.alloc(128);function Xn(t,e){wv.call(this,"digest"),typeof e=="string"&&(e=Yn.from(e));var r=t==="sha512"||t==="sha384"?128:64;if(this._alg=t,this._key=e,e.length>r){var i=t==="rmd160"?new nu:au(t);e=i.update(e).digest()}else e.length<r&&(e=Yn.concat([e,V3],r));for(var n=this._ipad=Yn.allocUnsafe(r),o=this._opad=Yn.allocUnsafe(r),f=0;f<r;f++)n[f]=e[f]^54,o[f]=e[f]^92;this._hash=t==="rmd160"?new nu:au(t),this._hash.update(n)}W3(Xn,wv);Xn.prototype._update=function(t){this._hash.update(t)};Xn.prototype._final=function(){var t=this._hash.digest(),e=this._alg==="rmd160"?new nu:au(this._alg);return e.update(this._opad).update(t).digest()};_v.exports=function(e,r){return e=e.toLowerCase(),e==="rmd160"||e==="ripemd160"?new Xn("rmd160",r):e==="md5"?new K3(G3,r):new Xn(e,r)}});var Oo=B((mA,Mv)=>{"use strict";b();Mv.exports={}});var ou=B((wA,Ev)=>{"use strict";b();var $3=isFinite,z3=Math.pow(2,30)-1;Ev.exports=function(t,e){if(typeof t!="number")throw new TypeError("Iterations not a number");if(t<0||!$3(t))throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>z3||e!==e)throw new TypeError("Bad key length")}});var fu=B((xA,Bv)=>{"use strict";b();var Do;globalThis.process&&globalThis.process.browser?Do="utf-8":globalThis.process&&globalThis.process.version?(Sv=parseInt(M.default.version.split(".")[0].slice(1),10),Do=Sv>=6?"utf-8":"binary"):Do="utf-8";var Sv;Bv.exports=Do});var su=B((EA,qv)=>{"use strict";b();var Z3=Se().Buffer,J3=In(),Rv=typeof Uint8Array<"u",Y3=Rv&&typeof ArrayBuffer<"u",Av=Y3&&ArrayBuffer.isView;qv.exports=function(t,e,r){if(typeof t=="string"||Z3.isBuffer(t)||Rv&&t instanceof Uint8Array||Av&&Av(t))return J3(t,e);throw new TypeError(r+" must be a string, a Buffer, a Uint8Array, or a DataView")}});var uu=B((BA,Cv)=>{"use strict";b();var X3=iu(),Q3=Ao(),e8=ko(),ei=Se().Buffer,t8=ou(),Tv=fu(),kv=su(),r8=ei.alloc(128),Po={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},i8={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function n8(t){return new Q3().update(t).digest()}function a8(t){function e(r){return e8(t).update(r).digest()}return t==="rmd160"||t==="ripemd160"?n8:t==="md5"?X3:e}function Iv(t,e,r){var i=a8(t),n=t==="sha512"||t==="sha384"?128:64;e.length>n?e=i(e):e.length<n&&(e=ei.concat([e,r8],n));for(var o=ei.allocUnsafe(n+Po[t]),f=ei.allocUnsafe(n+Po[t]),v=0;v<n;v++)o[v]=e[v]^54,f[v]=e[v]^92;var w=ei.allocUnsafe(n+r+4);o.copy(w,0,0,n),this.ipad1=w,this.ipad2=o,this.opad=f,this.alg=t,this.blocksize=n,this.hash=i,this.size=Po[t]}Iv.prototype.run=function(t,e){t.copy(e,this.blocksize);var r=this.hash(e);return r.copy(this.opad,this.blocksize),this.hash(this.opad)};function o8(t,e,r,i,n){t8(r,i),t=kv(t,Tv,"Password"),e=kv(e,Tv,"Salt");var o=(n||"sha1").toLowerCase(),f=i8[o]||o,v=Po[f];if(typeof v!="number"||!v)throw new TypeError("Digest algorithm not supported: "+n);var w=new Iv(f,t,e.length),S=ei.allocUnsafe(i),A=ei.allocUnsafe(e.length+4);e.copy(A,0,0,e.length);for(var q=0,T=v,C=Math.ceil(i/T),P=1;P<=C;P++){A.writeUInt32BE(P,e.length);for(var H=w.run(A,w.ipad1),Ee=H,F=1;F<r;F++){Ee=w.run(Ee,w.ipad2);for(var K=0;K<T;K++)H[K]^=Ee[K]}H.copy(S,q),q+=T}return S}Cv.exports=o8});var Fv=B((RA,Nv)=>{"use strict";b();var Uv=Se().Buffer,f8=ou(),Ov=fu(),Dv=uu(),Pv=su(),Uo,Qn=globalThis.crypto&&globalThis.crypto.subtle,s8={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},hu=[],ti;function lu(){return ti||(globalThis.process&&globalThis.process.nextTick?ti=globalThis.process.nextTick:globalThis.queueMicrotask?ti=globalThis.queueMicrotask:globalThis.setImmediate?ti=globalThis.setImmediate:ti=globalThis.setTimeout,ti)}function Lv(t,e,r,i,n){return Qn.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(o){return Qn.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:n}},o,i<<3)}).then(function(o){return Uv.from(o)})}function u8(t){if(globalThis.process&&!globalThis.process.browser||!Qn||!Qn.importKey||!Qn.deriveBits)return Promise.resolve(!1);if(hu[t]!==void 0)return hu[t];Uo=Uo||Uv.alloc(8);var e=Lv(Uo,Uo,10,128,t).then(function(){return!0},function(){return!1});return hu[t]=e,e}function h8(t,e){t.then(function(r){lu()(function(){e(null,r)})},function(r){lu()(function(){e(r)})})}Nv.exports=function(t,e,r,i,n,o){if(typeof n=="function"&&(o=n,n=void 0),f8(r,i),t=Pv(t,Ov,"Password"),e=Pv(e,Ov,"Salt"),typeof o!="function")throw new Error("No callback provided to pbkdf2");n=n||"sha1";var f=s8[n.toLowerCase()];if(!f||typeof globalThis.Promise!="function"){lu()(function(){var v;try{v=Dv(t,e,r,i,n)}catch(w){o(w);return}o(null,v)});return}h8(u8(f).then(function(v){return v?Lv(t,e,r,i,f):Dv(t,e,r,i,n)}),o)}});var du=B(cu=>{"use strict";b();cu.pbkdf2=Fv();cu.pbkdf2Sync=uu()});var pu=B(dt=>{"use strict";b();dt.readUInt32BE=function(e,r){var i=e[0+r]<<24|e[1+r]<<16|e[2+r]<<8|e[3+r];return i>>>0};dt.writeUInt32BE=function(e,r,i){e[0+i]=r>>>24,e[1+i]=r>>>16&255,e[2+i]=r>>>8&255,e[3+i]=r&255};dt.ip=function(e,r,i,n){for(var o=0,f=0,v=6;v>=0;v-=2){for(var w=0;w<=24;w+=8)o<<=1,o|=r>>>w+v&1;for(var w=0;w<=24;w+=8)o<<=1,o|=e>>>w+v&1}for(var v=6;v>=0;v-=2){for(var w=1;w<=25;w+=8)f<<=1,f|=r>>>w+v&1;for(var w=1;w<=25;w+=8)f<<=1,f|=e>>>w+v&1}i[n+0]=o>>>0,i[n+1]=f>>>0};dt.rip=function(e,r,i,n){for(var o=0,f=0,v=0;v<4;v++)for(var w=24;w>=0;w-=8)o<<=1,o|=r>>>w+v&1,o<<=1,o|=e>>>w+v&1;for(var v=4;v<8;v++)for(var w=24;w>=0;w-=8)f<<=1,f|=r>>>w+v&1,f<<=1,f|=e>>>w+v&1;i[n+0]=o>>>0,i[n+1]=f>>>0};dt.pc1=function(e,r,i,n){for(var o=0,f=0,v=7;v>=5;v--){for(var w=0;w<=24;w+=8)o<<=1,o|=r>>w+v&1;for(var w=0;w<=24;w+=8)o<<=1,o|=e>>w+v&1}for(var w=0;w<=24;w+=8)o<<=1,o|=r>>w+v&1;for(var v=1;v<=3;v++){for(var w=0;w<=24;w+=8)f<<=1,f|=r>>w+v&1;for(var w=0;w<=24;w+=8)f<<=1,f|=e>>w+v&1}for(var w=0;w<=24;w+=8)f<<=1,f|=e>>w+v&1;i[n+0]=o>>>0,i[n+1]=f>>>0};dt.r28shl=function(e,r){return e<<r&268435455|e>>>28-r};var Lo=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];dt.pc2=function(e,r,i,n){for(var o=0,f=0,v=Lo.length>>>1,w=0;w<v;w++)o<<=1,o|=e>>>Lo[w]&1;for(var w=v;w<Lo.length;w++)f<<=1,f|=r>>>Lo[w]&1;i[n+0]=o>>>0,i[n+1]=f>>>0};dt.expand=function(e,r,i){var n=0,o=0;n=(e&1)<<5|e>>>27;for(var f=23;f>=15;f-=4)n<<=6,n|=e>>>f&63;for(var f=11;f>=3;f-=4)o|=e>>>f&63,o<<=6;o|=(e&31)<<1|e>>>31,r[i+0]=n>>>0,r[i+1]=o>>>0};var jv=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];dt.substitute=function(e,r){for(var i=0,n=0;n<4;n++){var o=e>>>18-n*6&63,f=jv[n*64+o];i<<=4,i|=f}for(var n=0;n<4;n++){var o=r>>>18-n*6&63,f=jv[256+n*64+o];i<<=4,i|=f}return i>>>0};var Hv=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];dt.permute=function(e){for(var r=0,i=0;i<Hv.length;i++)r<<=1,r|=e>>>Hv[i]&1;return r>>>0};dt.padSplit=function(e,r,i){for(var n=e.toString(2);n.length<r;)n="0"+n;for(var o=[],f=0;f<r;f+=i)o.push(n.slice(f,f+i));return o.join(" ")}});var Ni=B((OA,Kv)=>{b();Kv.exports=Wv;function Wv(t,e){if(!t)throw new Error(e||"Assertion failed")}Wv.equal=function(e,r,i){if(e!=r)throw new Error(i||"Assertion failed: "+e+" != "+r)}});var No=B((PA,Gv)=>{"use strict";b();var l8=Ni();function pt(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=t.padding!==!1}Gv.exports=pt;pt.prototype._init=function(){};pt.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)};pt.prototype._buffer=function(e,r){for(var i=Math.min(this.buffer.length-this.bufferOff,e.length-r),n=0;n<i;n++)this.buffer[this.bufferOff+n]=e[r+n];return this.bufferOff+=i,i};pt.prototype._flushBuffer=function(e,r){return this._update(this.buffer,0,e,r),this.bufferOff=0,this.blockSize};pt.prototype._updateEncrypt=function(e){var r=0,i=0,n=(this.bufferOff+e.length)/this.blockSize|0,o=new Array(n*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(e,r),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(o,i)));for(var f=e.length-(e.length-r)%this.blockSize;r<f;r+=this.blockSize)this._update(e,r,o,i),i+=this.blockSize;for(;r<e.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=e[r];return o};pt.prototype._updateDecrypt=function(e){for(var r=0,i=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,o=new Array(n*this.blockSize);n>0;n--)r+=this._buffer(e,r),i+=this._flushBuffer(o,i);return r+=this._buffer(e,r),o};pt.prototype.final=function(e){var r;e&&(r=this.update(e));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),r?r.concat(i):i};pt.prototype._pad=function(e,r){if(r===0)return!1;for(;r<e.length;)e[r++]=0;return!0};pt.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e};pt.prototype._unpad=function(e){return e};pt.prototype._finalDecrypt=function(){l8.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}});var vu=B((LA,zv)=>{"use strict";b();var Vv=Ni(),c8=G(),Ge=pu(),$v=No();function d8(){this.tmp=new Array(2),this.keys=null}function Nt(t){$v.call(this,t);var e=new d8;this._desState=e,this.deriveKeys(e,t.key)}c8(Nt,$v);zv.exports=Nt;Nt.create=function(e){return new Nt(e)};var p8=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Nt.prototype.deriveKeys=function(e,r){e.keys=new Array(32),Vv.equal(r.length,this.blockSize,"Invalid key length");var i=Ge.readUInt32BE(r,0),n=Ge.readUInt32BE(r,4);Ge.pc1(i,n,e.tmp,0),i=e.tmp[0],n=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var f=p8[o>>>1];i=Ge.r28shl(i,f),n=Ge.r28shl(n,f),Ge.pc2(i,n,e.keys,o)}};Nt.prototype._update=function(e,r,i,n){var o=this._desState,f=Ge.readUInt32BE(e,r),v=Ge.readUInt32BE(e,r+4);Ge.ip(f,v,o.tmp,0),f=o.tmp[0],v=o.tmp[1],this.type==="encrypt"?this._encrypt(o,f,v,o.tmp,0):this._decrypt(o,f,v,o.tmp,0),f=o.tmp[0],v=o.tmp[1],Ge.writeUInt32BE(i,f,n),Ge.writeUInt32BE(i,v,n+4)};Nt.prototype._pad=function(e,r){if(this.padding===!1)return!1;for(var i=e.length-r,n=r;n<e.length;n++)e[n]=i;return!0};Nt.prototype._unpad=function(e){if(this.padding===!1)return e;for(var r=e[e.length-1],i=e.length-r;i<e.length;i++)Vv.equal(e[i],r);return e.slice(0,e.length-r)};Nt.prototype._encrypt=function(e,r,i,n,o){for(var f=r,v=i,w=0;w<e.keys.length;w+=2){var S=e.keys[w],A=e.keys[w+1];Ge.expand(v,e.tmp,0),S^=e.tmp[0],A^=e.tmp[1];var q=Ge.substitute(S,A),T=Ge.permute(q),C=v;v=(f^T)>>>0,f=C}Ge.rip(v,f,n,o)};Nt.prototype._decrypt=function(e,r,i,n,o){for(var f=i,v=r,w=e.keys.length-2;w>=0;w-=2){var S=e.keys[w],A=e.keys[w+1];Ge.expand(f,e.tmp,0),S^=e.tmp[0],A^=e.tmp[1];var q=Ge.substitute(S,A),T=Ge.permute(q),C=f;f=(v^T)>>>0,v=C}Ge.rip(f,v,n,o)}});var Jv=B(Zv=>{"use strict";b();var v8=Ni(),y8=G(),Fo={};function g8(t){v8.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}function m8(t){function e(o){t.call(this,o),this._cbcInit()}y8(e,t);for(var r=Object.keys(Fo),i=0;i<r.length;i++){var n=r[i];e.prototype[n]=Fo[n]}return e.create=function(f){return new e(f)},e}Zv.instantiate=m8;Fo._cbcInit=function(){var e=new g8(this.options.iv);this._cbcState=e};Fo._update=function(e,r,i,n){var o=this._cbcState,f=this.constructor.super_.prototype,v=o.iv;if(this.type==="encrypt"){for(var w=0;w<this.blockSize;w++)v[w]^=e[r+w];f._update.call(this,v,0,i,n);for(var w=0;w<this.blockSize;w++)v[w]=i[n+w]}else{f._update.call(this,e,r,i,n);for(var w=0;w<this.blockSize;w++)i[n+w]^=v[w];for(var w=0;w<this.blockSize;w++)v[w]=e[r+w]}}});var Qv=B((HA,Xv)=>{"use strict";b();var b8=Ni(),w8=G(),Yv=No(),dr=vu();function _8(t,e){b8.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),i=e.slice(8,16),n=e.slice(16,24);t==="encrypt"?this.ciphers=[dr.create({type:"encrypt",key:r}),dr.create({type:"decrypt",key:i}),dr.create({type:"encrypt",key:n})]:this.ciphers=[dr.create({type:"decrypt",key:n}),dr.create({type:"encrypt",key:i}),dr.create({type:"decrypt",key:r})]}function ri(t){Yv.call(this,t);var e=new _8(this.type,this.options.key);this._edeState=e}w8(ri,Yv);Xv.exports=ri;ri.create=function(e){return new ri(e)};ri.prototype._update=function(e,r,i,n){var o=this._edeState;o.ciphers[0]._update(e,r,i,n),o.ciphers[1]._update(i,n,i,n),o.ciphers[2]._update(i,n,i,n)};ri.prototype._pad=dr.prototype._pad;ri.prototype._unpad=dr.prototype._unpad});var ey=B(Fi=>{"use strict";b();Fi.utils=pu();Fi.Cipher=No();Fi.DES=vu();Fi.CBC=Jv();Fi.EDE=Qv()});var iy=B((VA,ry)=>{b();var ty=Yt(),Xt=ey(),x8=G(),ii=Se().Buffer,ea={"des-ede3-cbc":Xt.CBC.instantiate(Xt.EDE),"des-ede3":Xt.EDE,"des-ede-cbc":Xt.CBC.instantiate(Xt.EDE),"des-ede":Xt.EDE,"des-cbc":Xt.CBC.instantiate(Xt.DES),"des-ecb":Xt.DES};ea.des=ea["des-cbc"];ea.des3=ea["des-ede3-cbc"];ry.exports=jo;x8(jo,ty);function jo(t){ty.call(this);var e=t.mode.toLowerCase(),r=ea[e],i;t.decrypt?i="decrypt":i="encrypt";var n=t.key;ii.isBuffer(n)||(n=ii.from(n)),(e==="des-ede"||e==="des-ede-cbc")&&(n=ii.concat([n,n.slice(0,8)]));var o=t.iv;ii.isBuffer(o)||(o=ii.from(o)),this._des=r.create({key:n,iv:o,type:i})}jo.prototype._update=function(t){return ii.from(this._des.update(t))};jo.prototype._final=function(){return ii.from(this._des.final())}});var ny=B(yu=>{b();yu.encrypt=function(t,e){return t._cipher.encryptBlock(e)};yu.decrypt=function(t,e){return t._cipher.decryptBlock(e)}});var ji=B((JA,ay)=>{b();ay.exports=function(e,r){for(var i=Math.min(e.length,r.length),n=new R.Buffer(i),o=0;o<i;++o)n[o]=e[o]^r[o];return n}});var fy=B(gu=>{b();var oy=ji();gu.encrypt=function(t,e){var r=oy(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev};gu.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return oy(i,r)}});var hy=B(uy=>{b();var ta=Se().Buffer,M8=ji();function sy(t,e,r){var i=e.length,n=M8(e,t._cache);return t._cache=t._cache.slice(i),t._prev=ta.concat([t._prev,r?e:n]),n}uy.encrypt=function(t,e,r){for(var i=ta.allocUnsafe(0),n;e.length;)if(t._cache.length===0&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=ta.allocUnsafe(0)),t._cache.length<=e.length)n=t._cache.length,i=ta.concat([i,sy(t,e.slice(0,n),r)]),e=e.slice(n);else{i=ta.concat([i,sy(t,e,r)]);break}return i}});var cy=B(ly=>{b();var mu=Se().Buffer;function E8(t,e,r){var i=t._cipher.encryptBlock(t._prev),n=i[0]^e;return t._prev=mu.concat([t._prev.slice(1),mu.from([r?e:n])]),n}ly.encrypt=function(t,e,r){for(var i=e.length,n=mu.allocUnsafe(i),o=-1;++o<i;)n[o]=E8(t,e[o],r);return n}});var py=B(dy=>{b();var Ho=Se().Buffer;function S8(t,e,r){for(var i,n=-1,o=8,f=0,v,w;++n<o;)i=t._cipher.encryptBlock(t._prev),v=e&1<<7-n?128:0,w=i[0]^v,f+=(w&128)>>n%8,t._prev=B8(t._prev,r?v:w);return f}function B8(t,e){var r=t.length,i=-1,n=Ho.allocUnsafe(t.length);for(t=Ho.concat([t,Ho.from([e])]);++i<r;)n[i]=t[i]<<1|t[i+1]>>7;return n}dy.encrypt=function(t,e,r){for(var i=e.length,n=Ho.allocUnsafe(i),o=-1;++o<i;)n[o]=S8(t,e[o],r);return n}});var yy=B(vy=>{b();var A8=ji();function R8(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}vy.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=R.Buffer.concat([t._cache,R8(t)]);var r=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),A8(e,r)}});var bu=B((s7,gy)=>{b();function q8(t){for(var e=t.length,r;e--;)if(r=t.readUInt8(e),r===255)t.writeUInt8(0,e);else{r++,t.writeUInt8(r,e);break}}gy.exports=q8});var _u=B(by=>{b();var T8=ji(),my=Se().Buffer,k8=bu();function I8(t){var e=t._cipher.encryptBlockRaw(t._prev);return k8(t._prev),e}var wu=16;by.encrypt=function(t,e){var r=Math.ceil(e.length/wu),i=t._cache.length;t._cache=my.concat([t._cache,my.allocUnsafe(r*wu)]);for(var n=0;n<r;n++){var o=I8(t),f=i+n*wu;t._cache.writeUInt32BE(o[0],f+0),t._cache.writeUInt32BE(o[1],f+4),t._cache.writeUInt32BE(o[2],f+8),t._cache.writeUInt32BE(o[3],f+12)}var v=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),T8(e,v)}});var xu=B((c7,C8)=>{C8.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var Ko=B((d7,wy)=>{b();var O8={ECB:ny(),CBC:fy(),CFB:hy(),CFB8:cy(),CFB1:py(),OFB:yy(),CTR:_u(),GCM:_u()},Wo=xu();for(Mu in Wo)Wo[Mu].module=O8[Wo[Mu].mode];var Mu;wy.exports=Wo});var ra=B((v7,xy)=>{b();var Go=Se().Buffer;function Su(t){Go.isBuffer(t)||(t=Go.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i<e;i++)r[i]=t.readUInt32BE(i*4);return r}function Eu(t){for(var e=0;e<t.length;t++)t[e]=0}function _y(t,e,r,i,n){for(var o=r[0],f=r[1],v=r[2],w=r[3],S=t[0]^e[0],A=t[1]^e[1],q=t[2]^e[2],T=t[3]^e[3],C,P,H,Ee,F=4,K=1;K<n;K++)C=o[S>>>24]^f[A>>>16&255]^v[q>>>8&255]^w[T&255]^e[F++],P=o[A>>>24]^f[q>>>16&255]^v[T>>>8&255]^w[S&255]^e[F++],H=o[q>>>24]^f[T>>>16&255]^v[S>>>8&255]^w[A&255]^e[F++],Ee=o[T>>>24]^f[S>>>16&255]^v[A>>>8&255]^w[q&255]^e[F++],S=C,A=P,q=H,T=Ee;return C=(i[S>>>24]<<24|i[A>>>16&255]<<16|i[q>>>8&255]<<8|i[T&255])^e[F++],P=(i[A>>>24]<<24|i[q>>>16&255]<<16|i[T>>>8&255]<<8|i[S&255])^e[F++],H=(i[q>>>24]<<24|i[T>>>16&255]<<16|i[S>>>8&255]<<8|i[A&255])^e[F++],Ee=(i[T>>>24]<<24|i[S>>>16&255]<<16|i[A>>>8&255]<<8|i[q&255])^e[F++],C=C>>>0,P=P>>>0,H=H>>>0,Ee=Ee>>>0,[C,P,H,Ee]}var D8=[0,1,2,4,8,16,32,64,128,27,54],Ke=(function(){for(var t=new Array(256),e=0;e<256;e++)e<128?t[e]=e<<1:t[e]=e<<1^283;for(var r=[],i=[],n=[[],[],[],[]],o=[[],[],[],[]],f=0,v=0,w=0;w<256;++w){var S=v^v<<1^v<<2^v<<3^v<<4;S=S>>>8^S&255^99,r[f]=S,i[S]=f;var A=t[f],q=t[A],T=t[q],C=t[S]*257^S*16843008;n[0][f]=C<<24|C>>>8,n[1][f]=C<<16|C>>>16,n[2][f]=C<<8|C>>>24,n[3][f]=C,C=T*16843009^q*65537^A*257^f*16843008,o[0][S]=C<<24|C>>>8,o[1][S]=C<<16|C>>>16,o[2][S]=C<<8|C>>>24,o[3][S]=C,f===0?f=v=1:(f=A^t[t[t[T^A]]],v^=t[t[v]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:o}})();function vt(t){this._key=Su(t),this._reset()}vt.blockSize=16;vt.keySize=256/8;vt.prototype.blockSize=vt.blockSize;vt.prototype.keySize=vt.keySize;vt.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,i=(r+1)*4,n=[],o=0;o<e;o++)n[o]=t[o];for(o=e;o<i;o++){var f=n[o-1];o%e===0?(f=f<<8|f>>>24,f=Ke.SBOX[f>>>24]<<24|Ke.SBOX[f>>>16&255]<<16|Ke.SBOX[f>>>8&255]<<8|Ke.SBOX[f&255],f^=D8[o/e|0]<<24):e>6&&o%e===4&&(f=Ke.SBOX[f>>>24]<<24|Ke.SBOX[f>>>16&255]<<16|Ke.SBOX[f>>>8&255]<<8|Ke.SBOX[f&255]),n[o]=n[o-e]^f}for(var v=[],w=0;w<i;w++){var S=i-w,A=n[S-(w%4?0:4)];w<4||S<=4?v[w]=A:v[w]=Ke.INV_SUB_MIX[0][Ke.SBOX[A>>>24]]^Ke.INV_SUB_MIX[1][Ke.SBOX[A>>>16&255]]^Ke.INV_SUB_MIX[2][Ke.SBOX[A>>>8&255]]^Ke.INV_SUB_MIX[3][Ke.SBOX[A&255]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=v};vt.prototype.encryptBlockRaw=function(t){return t=Su(t),_y(t,this._keySchedule,Ke.SUB_MIX,Ke.SBOX,this._nRounds)};vt.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=Go.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r};vt.prototype.decryptBlock=function(t){t=Su(t);var e=t[1];t[1]=t[3],t[3]=e;var r=_y(t,this._invKeySchedule,Ke.INV_SUB_MIX,Ke.INV_SBOX,this._nRounds),i=Go.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i};vt.prototype.scrub=function(){Eu(this._keySchedule),Eu(this._invKeySchedule),Eu(this._key)};xy.exports.AES=vt});var Sy=B((g7,Ey)=>{b();var Hi=Se().Buffer,P8=Hi.alloc(16,0);function U8(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function My(t){var e=Hi.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function ia(t){this.h=t,this.state=Hi.alloc(16,0),this.cache=Hi.allocUnsafe(0)}ia.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()};ia.prototype._multiply=function(){for(var t=U8(this.h),e=[0,0,0,0],r,i,n,o=-1;++o<128;){for(i=(this.state[~~(o/8)]&1<<7-o%8)!==0,i&&(e[0]^=t[0],e[1]^=t[1],e[2]^=t[2],e[3]^=t[3]),n=(t[3]&1)!==0,r=3;r>0;r--)t[r]=t[r]>>>1|(t[r-1]&1)<<31;t[0]=t[0]>>>1,n&&(t[0]=t[0]^225<<24)}this.state=My(e)};ia.prototype.update=function(t){this.cache=Hi.concat([this.cache,t]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};ia.prototype.final=function(t,e){return this.cache.length&&this.ghash(Hi.concat([this.cache,P8],16)),this.ghash(My([0,t,0,e])),this.state};Ey.exports=ia});var Bu=B((b7,Ry)=>{b();var L8=ra(),at=Se().Buffer,By=Yt(),N8=G(),Ay=Sy(),F8=ji(),j8=bu();function H8(t,e){var r=0;t.length!==e.length&&r++;for(var i=Math.min(t.length,e.length),n=0;n<i;++n)r+=t[n]^e[n];return r}function W8(t,e,r){if(e.length===12)return t._finID=at.concat([e,at.from([0,0,0,1])]),at.concat([e,at.from([0,0,0,2])]);var i=new Ay(r),n=e.length,o=n%16;i.update(e),o&&(o=16-o,i.update(at.alloc(o,0))),i.update(at.alloc(8,0));var f=n*8,v=at.alloc(8);v.writeUIntBE(f,0,8),i.update(v),t._finID=i.state;var w=at.from(t._finID);return j8(w),w}function ni(t,e,r,i){By.call(this);var n=at.alloc(4,0);this._cipher=new L8.AES(e);var o=this._cipher.encryptBlock(n);this._ghash=new Ay(o),r=W8(this,r,o),this._prev=at.from(r),this._cache=at.allocUnsafe(0),this._secCache=at.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}N8(ni,By);ni.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=at.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r};ni.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=F8(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&H8(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()};ni.prototype.getAuthTag=function(){if(this._decrypt||!at.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};ni.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e};ni.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length};Ry.exports=ni});var Ru=B((_7,Ty)=>{b();var K8=ra(),Au=Se().Buffer,qy=Yt(),G8=G();function Vo(t,e,r,i){qy.call(this),this._cipher=new K8.AES(e),this._prev=Au.from(r),this._cache=Au.allocUnsafe(0),this._secCache=Au.allocUnsafe(0),this._decrypt=i,this._mode=t}G8(Vo,qy);Vo.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)};Vo.prototype._final=function(){this._cipher.scrub()};Ty.exports=Vo});var na=B((M7,ky)=>{b();var ai=Se().Buffer,V8=po();function $8(t,e,r,i){if(ai.isBuffer(t)||(t=ai.from(t,"binary")),e&&(ai.isBuffer(e)||(e=ai.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=r/8,o=ai.alloc(n),f=ai.alloc(i||0),v=ai.alloc(0);n>0||i>0;){var w=new V8;w.update(v),w.update(t),e&&w.update(e),v=w.digest();var S=0;if(n>0){var A=o.length-n;S=Math.min(n,v.length),v.copy(o,A,0,S),n-=S}if(S<v.length&&i>0){var q=f.length-i,T=Math.min(i,v.length-S);v.copy(f,q,S,S+T),i-=T}}return v.fill(0),{key:o,iv:f}}ky.exports=$8});var Dy=B(qu=>{b();var Iy=Ko(),z8=Bu(),Qt=Se().Buffer,Z8=Ru(),Cy=Yt(),J8=ra(),Y8=na(),X8=G();function aa(t,e,r){Cy.call(this),this._cache=new $o,this._cipher=new J8.AES(e),this._prev=Qt.from(r),this._mode=t,this._autopadding=!0}X8(aa,Cy);aa.prototype._update=function(t){this._cache.add(t);for(var e,r,i=[];e=this._cache.get();)r=this._mode.encrypt(this,e),i.push(r);return Qt.concat(i)};var Q8=Qt.alloc(16,16);aa.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(Q8))throw this._cipher.scrub(),new Error("data not multiple of block length")};aa.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function $o(){this.cache=Qt.allocUnsafe(0)}$o.prototype.add=function(t){this.cache=Qt.concat([this.cache,t])};$o.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null};$o.prototype.flush=function(){for(var t=16-this.cache.length,e=Qt.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return Qt.concat([this.cache,e])};function Oy(t,e,r){var i=Iy[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof e=="string"&&(e=Qt.from(e)),e.length!==i.key/8)throw new TypeError("invalid key length "+e.length);if(typeof r=="string"&&(r=Qt.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);return i.type==="stream"?new Z8(i.module,e,r):i.type==="auth"?new z8(i.module,e,r):new aa(i.module,e,r)}function e4(t,e){var r=Iy[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=Y8(e,!1,r.key,r.iv);return Oy(t,i.key,i.iv)}qu.createCipheriv=Oy;qu.createCipher=e4});var Ny=B(Tu=>{b();var t4=Bu(),Wi=Se().Buffer,Py=Ko(),r4=Ru(),Uy=Yt(),i4=ra(),n4=na(),a4=G();function oa(t,e,r){Uy.call(this),this._cache=new zo,this._last=void 0,this._cipher=new i4.AES(e),this._prev=Wi.from(r),this._mode=t,this._autopadding=!0}a4(oa,Uy);oa.prototype._update=function(t){this._cache.add(t);for(var e,r,i=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),i.push(r);return Wi.concat(i)};oa.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return o4(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")};oa.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function zo(){this.cache=Wi.allocUnsafe(0)}zo.prototype.add=function(t){this.cache=Wi.concat([this.cache,t])};zo.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};zo.prototype.flush=function(){if(this.cache.length)return this.cache};function o4(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var r=-1;++r<e;)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(e!==16)return t.slice(0,16-e)}function Ly(t,e,r){var i=Py[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof r=="string"&&(r=Wi.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if(typeof e=="string"&&(e=Wi.from(e)),e.length!==i.key/8)throw new TypeError("invalid key length "+e.length);return i.type==="stream"?new r4(i.module,e,r,!0):i.type==="auth"?new t4(i.module,e,r,!0):new oa(i.module,e,r)}function f4(t,e){var r=Py[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=n4(e,!1,r.key,r.iv);return Ly(t,i.key,i.iv)}Tu.createDecipher=f4;Tu.createDecipheriv=Ly});var Zo=B(Mt=>{b();var Fy=Dy(),jy=Ny(),s4=xu();function u4(){return Object.keys(s4)}Mt.createCipher=Mt.Cipher=Fy.createCipher;Mt.createCipheriv=Mt.Cipheriv=Fy.createCipheriv;Mt.createDecipher=Mt.Decipher=jy.createDecipher;Mt.createDecipheriv=Mt.Decipheriv=jy.createDecipheriv;Mt.listCiphers=Mt.getCiphers=u4});var Hy=B(er=>{b();er["des-ecb"]={key:8,iv:0};er["des-cbc"]=er.des={key:8,iv:8};er["des-ede3-cbc"]=er.des3={key:24,iv:8};er["des-ede3"]={key:24,iv:0};er["des-ede-cbc"]={key:16,iv:8};er["des-ede"]={key:16,iv:0}});var $y=B(Et=>{b();var Wy=iy(),ku=Zo(),pr=Ko(),tr=Hy(),Ky=na();function h4(t,e){t=t.toLowerCase();var r,i;if(pr[t])r=pr[t].key,i=pr[t].iv;else if(tr[t])r=tr[t].key*8,i=tr[t].iv;else throw new TypeError("invalid suite type");var n=Ky(e,!1,r,i);return Gy(t,n.key,n.iv)}function l4(t,e){t=t.toLowerCase();var r,i;if(pr[t])r=pr[t].key,i=pr[t].iv;else if(tr[t])r=tr[t].key*8,i=tr[t].iv;else throw new TypeError("invalid suite type");var n=Ky(e,!1,r,i);return Vy(t,n.key,n.iv)}function Gy(t,e,r){if(t=t.toLowerCase(),pr[t])return ku.createCipheriv(t,e,r);if(tr[t])return new Wy({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function Vy(t,e,r){if(t=t.toLowerCase(),pr[t])return ku.createDecipheriv(t,e,r);if(tr[t])return new Wy({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}function c4(){return Object.keys(tr).concat(ku.getCiphers())}Et.createCipher=Et.Cipher=h4;Et.createCipheriv=Et.Cipheriv=Gy;Et.createDecipher=Et.Decipher=l4;Et.createDecipheriv=Et.Decipheriv=Vy;Et.listCiphers=Et.getCiphers=c4});var vr=B((zy,Iu)=>{b();(function(t,e){"use strict";function r(E,h){if(!E)throw new Error(h||"Assertion failed")}function i(E,h){E.super_=h;var g=function(){};g.prototype=h.prototype,E.prototype=new g,E.prototype.constructor=E}function n(E,h,g){if(n.isBN(E))return E;this.negative=0,this.words=null,this.length=0,this.red=null,E!==null&&((h==="le"||h==="be")&&(g=h,h=10),this._init(E||0,h||10,g||"be"))}typeof t=="object"?t.exports=n:e.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=rt().Buffer}catch{}n.isBN=function(h){return h instanceof n?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===n.wordSize&&Array.isArray(h.words)},n.max=function(h,g){return h.cmp(g)>0?h:g},n.min=function(h,g){return h.cmp(g)<0?h:g},n.prototype._init=function(h,g,c){if(typeof h=="number")return this._initNumber(h,g,c);if(typeof h=="object")return this._initArray(h,g,c);g==="hex"&&(g=16),r(g===(g|0)&&g>=2&&g<=36),h=h.toString().replace(/\s+/g,"");var a=0;h[0]==="-"&&(a++,this.negative=1),a<h.length&&(g===16?this._parseHex(h,a,c):(this._parseBase(h,g,a),c==="le"&&this._initArray(this.toArray(),g,c)))},n.prototype._initNumber=function(h,g,c){h<0&&(this.negative=1,h=-h),h<67108864?(this.words=[h&67108863],this.length=1):h<4503599627370496?(this.words=[h&67108863,h/67108864&67108863],this.length=2):(r(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3),c==="le"&&this._initArray(this.toArray(),g,c)},n.prototype._initArray=function(h,g,c){if(r(typeof h.length=="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var u,d,y=0;if(c==="be")for(a=h.length-1,u=0;a>=0;a-=3)d=h[a]|h[a-1]<<8|h[a-2]<<16,this.words[u]|=d<<y&67108863,this.words[u+1]=d>>>26-y&67108863,y+=24,y>=26&&(y-=26,u++);else if(c==="le")for(a=0,u=0;a<h.length;a+=3)d=h[a]|h[a+1]<<8|h[a+2]<<16,this.words[u]|=d<<y&67108863,this.words[u+1]=d>>>26-y&67108863,y+=24,y>=26&&(y-=26,u++);return this.strip()};function f(E,h){var g=E.charCodeAt(h);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function v(E,h,g){var c=f(E,g);return g-1>=h&&(c|=f(E,g-1)<<4),c}n.prototype._parseHex=function(h,g,c){this.length=Math.ceil((h.length-g)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var u=0,d=0,y;if(c==="be")for(a=h.length-1;a>=g;a-=2)y=v(h,g,a)<<u,this.words[d]|=y&67108863,u>=18?(u-=18,d+=1,this.words[d]|=y>>>26):u+=8;else{var p=h.length-g;for(a=p%2===0?g+1:g;a<h.length;a+=2)y=v(h,g,a)<<u,this.words[d]|=y&67108863,u>=18?(u-=18,d+=1,this.words[d]|=y>>>26):u+=8}this.strip()};function w(E,h,g,c){for(var a=0,u=Math.min(E.length,g),d=h;d<u;d++){var y=E.charCodeAt(d)-48;a*=c,y>=49?a+=y-49+10:y>=17?a+=y-17+10:a+=y}return a}n.prototype._parseBase=function(h,g,c){this.words=[0],this.length=1;for(var a=0,u=1;u<=67108863;u*=g)a++;a--,u=u/g|0;for(var d=h.length-c,y=d%a,p=Math.min(d,d-y)+c,s=0,m=c;m<p;m+=a)s=w(h,m,m+a,g),this.imuln(u),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(y!==0){var _=1;for(s=w(h,m,h.length,g),m=0;m<y;m++)_*=g;this.imuln(_),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},n.prototype.copy=function(h){h.words=new Array(this.length);for(var g=0;g<this.length;g++)h.words[g]=this.words[g];h.length=this.length,h.negative=this.negative,h.red=this.red},n.prototype.clone=function(){var h=new n(null);return this.copy(h),h},n.prototype._expand=function(h){for(;this.length<h;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],q=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(h,g){h=h||10,g=g|0||1;var c;if(h===16||h==="hex"){c="";for(var a=0,u=0,d=0;d<this.length;d++){var y=this.words[d],p=((y<<a|u)&16777215).toString(16);u=y>>>24-a&16777215,a+=2,a>=26&&(a-=26,d--),u!==0||d!==this.length-1?c=S[6-p.length]+p+c:c=p+c}for(u!==0&&(c=u.toString(16)+c);c.length%g!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}if(h===(h|0)&&h>=2&&h<=36){var s=A[h],m=q[h];c="";var _=this.clone();for(_.negative=0;!_.isZero();){var l=_.modn(m).toString(h);_=_.idivn(m),_.isZero()?c=l+c:c=S[s-l.length]+l+c}for(this.isZero()&&(c="0"+c);c.length%g!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(h,g){return r(typeof o<"u"),this.toArrayLike(o,h,g)},n.prototype.toArray=function(h,g){return this.toArrayLike(Array,h,g)},n.prototype.toArrayLike=function(h,g,c){var a=this.byteLength(),u=c||Math.max(1,a);r(a<=u,"byte array longer than desired length"),r(u>0,"Requested array length <= 0"),this.strip();var d=g==="le",y=new h(u),p,s,m=this.clone();if(d){for(s=0;!m.isZero();s++)p=m.andln(255),m.iushrn(8),y[s]=p;for(;s<u;s++)y[s]=0}else{for(s=0;s<u-a;s++)y[s]=0;for(s=0;!m.isZero();s++)p=m.andln(255),m.iushrn(8),y[u-s-1]=p}return y},Math.clz32?n.prototype._countBits=function(h){return 32-Math.clz32(h)}:n.prototype._countBits=function(h){var g=h,c=0;return g>=4096&&(c+=13,g>>>=13),g>=64&&(c+=7,g>>>=7),g>=8&&(c+=4,g>>>=4),g>=2&&(c+=2,g>>>=2),c+g},n.prototype._zeroBits=function(h){if(h===0)return 26;var g=h,c=0;return(g&8191)===0&&(c+=13,g>>>=13),(g&127)===0&&(c+=7,g>>>=7),(g&15)===0&&(c+=4,g>>>=4),(g&3)===0&&(c+=2,g>>>=2),(g&1)===0&&c++,c},n.prototype.bitLength=function(){var h=this.words[this.length-1],g=this._countBits(h);return(this.length-1)*26+g};function T(E){for(var h=new Array(E.bitLength()),g=0;g<h.length;g++){var c=g/26|0,a=g%26;h[g]=(E.words[c]&1<<a)>>>a}return h}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,g=0;g<this.length;g++){var c=this._zeroBits(this.words[g]);if(h+=c,c!==26)break}return h},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(h){return this.negative!==0?this.abs().inotn(h).iaddn(1):this.clone()},n.prototype.fromTwos=function(h){return this.testn(h-1)?this.notn(h).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(h){for(;this.length<h.length;)this.words[this.length++]=0;for(var g=0;g<h.length;g++)this.words[g]=this.words[g]|h.words[g];return this.strip()},n.prototype.ior=function(h){return r((this.negative|h.negative)===0),this.iuor(h)},n.prototype.or=function(h){return this.length>h.length?this.clone().ior(h):h.clone().ior(this)},n.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},n.prototype.iuand=function(h){var g;this.length>h.length?g=h:g=this;for(var c=0;c<g.length;c++)this.words[c]=this.words[c]&h.words[c];return this.length=g.length,this.strip()},n.prototype.iand=function(h){return r((this.negative|h.negative)===0),this.iuand(h)},n.prototype.and=function(h){return this.length>h.length?this.clone().iand(h):h.clone().iand(this)},n.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},n.prototype.iuxor=function(h){var g,c;this.length>h.length?(g=this,c=h):(g=h,c=this);for(var a=0;a<c.length;a++)this.words[a]=g.words[a]^c.words[a];if(this!==g)for(;a<g.length;a++)this.words[a]=g.words[a];return this.length=g.length,this.strip()},n.prototype.ixor=function(h){return r((this.negative|h.negative)===0),this.iuxor(h)},n.prototype.xor=function(h){return this.length>h.length?this.clone().ixor(h):h.clone().ixor(this)},n.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},n.prototype.inotn=function(h){r(typeof h=="number"&&h>=0);var g=Math.ceil(h/26)|0,c=h%26;this._expand(g),c>0&&g--;for(var a=0;a<g;a++)this.words[a]=~this.words[a]&67108863;return c>0&&(this.words[a]=~this.words[a]&67108863>>26-c),this.strip()},n.prototype.notn=function(h){return this.clone().inotn(h)},n.prototype.setn=function(h,g){r(typeof h=="number"&&h>=0);var c=h/26|0,a=h%26;return this._expand(c+1),g?this.words[c]=this.words[c]|1<<a:this.words[c]=this.words[c]&~(1<<a),this.strip()},n.prototype.iadd=function(h){var g;if(this.negative!==0&&h.negative===0)return this.negative=0,g=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,g=this.isub(h),h.negative=1,g._normSign();var c,a;this.length>h.length?(c=this,a=h):(c=h,a=this);for(var u=0,d=0;d<a.length;d++)g=(c.words[d]|0)+(a.words[d]|0)+u,this.words[d]=g&67108863,u=g>>>26;for(;u!==0&&d<c.length;d++)g=(c.words[d]|0)+u,this.words[d]=g&67108863,u=g>>>26;if(this.length=c.length,u!==0)this.words[this.length]=u,this.length++;else if(c!==this)for(;d<c.length;d++)this.words[d]=c.words[d];return this},n.prototype.add=function(h){var g;return h.negative!==0&&this.negative===0?(h.negative=0,g=this.sub(h),h.negative^=1,g):h.negative===0&&this.negative!==0?(this.negative=0,g=h.sub(this),this.negative=1,g):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},n.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var g=this.iadd(h);return h.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var c=this.cmp(h);if(c===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,u;c>0?(a=this,u=h):(a=h,u=this);for(var d=0,y=0;y<u.length;y++)g=(a.words[y]|0)-(u.words[y]|0)+d,d=g>>26,this.words[y]=g&67108863;for(;d!==0&&y<a.length;y++)g=(a.words[y]|0)+d,d=g>>26,this.words[y]=g&67108863;if(d===0&&y<a.length&&a!==this)for(;y<a.length;y++)this.words[y]=a.words[y];return this.length=Math.max(this.length,y),a!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(h){return this.clone().isub(h)};function C(E,h,g){g.negative=h.negative^E.negative;var c=E.length+h.length|0;g.length=c,c=c-1|0;var a=E.words[0]|0,u=h.words[0]|0,d=a*u,y=d&67108863,p=d/67108864|0;g.words[0]=y;for(var s=1;s<c;s++){for(var m=p>>>26,_=p&67108863,l=Math.min(s,h.length-1),x=Math.max(0,s-E.length+1);x<=l;x++){var I=s-x|0;a=E.words[I]|0,u=h.words[x]|0,d=a*u+_,m+=d/67108864|0,_=d&67108863}g.words[s]=_|0,p=m|0}return p!==0?g.words[s]=p|0:g.length--,g.strip()}var P=function(h,g,c){var a=h.words,u=g.words,d=c.words,y=0,p,s,m,_=a[0]|0,l=_&8191,x=_>>>13,I=a[1]|0,D=I&8191,O=I>>>13,L=a[2]|0,U=L&8191,N=L>>>13,bt=a[3]|0,j=bt&8191,W=bt>>>13,Yi=a[4]|0,V=Yi&8191,$=Yi>>>13,Xi=a[5]|0,z=Xi&8191,Z=Xi>>>13,Qi=a[6]|0,J=Qi&8191,Y=Qi>>>13,en=a[7]|0,X=en&8191,Q=en>>>13,tn=a[8]|0,ee=tn&8191,te=tn>>>13,rn=a[9]|0,re=rn&8191,ie=rn>>>13,nn=u[0]|0,ne=nn&8191,ae=nn>>>13,an=u[1]|0,oe=an&8191,fe=an>>>13,on=u[2]|0,se=on&8191,ue=on>>>13,fn=u[3]|0,he=fn&8191,le=fn>>>13,sn=u[4]|0,ce=sn&8191,de=sn>>>13,un=u[5]|0,pe=un&8191,ve=un>>>13,hn=u[6]|0,ye=hn&8191,ge=hn>>>13,ln=u[7]|0,me=ln&8191,be=ln>>>13,cn=u[8]|0,we=cn&8191,_e=cn>>>13,dn=u[9]|0,xe=dn&8191,Me=dn>>>13;c.negative=h.negative^g.negative,c.length=19,p=Math.imul(l,ne),s=Math.imul(l,ae),s=s+Math.imul(x,ne)|0,m=Math.imul(x,ae);var hi=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(hi>>>26)|0,hi&=67108863,p=Math.imul(D,ne),s=Math.imul(D,ae),s=s+Math.imul(O,ne)|0,m=Math.imul(O,ae),p=p+Math.imul(l,oe)|0,s=s+Math.imul(l,fe)|0,s=s+Math.imul(x,oe)|0,m=m+Math.imul(x,fe)|0;var Ue=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,p=Math.imul(U,ne),s=Math.imul(U,ae),s=s+Math.imul(N,ne)|0,m=Math.imul(N,ae),p=p+Math.imul(D,oe)|0,s=s+Math.imul(D,fe)|0,s=s+Math.imul(O,oe)|0,m=m+Math.imul(O,fe)|0,p=p+Math.imul(l,se)|0,s=s+Math.imul(l,ue)|0,s=s+Math.imul(x,se)|0,m=m+Math.imul(x,ue)|0;var Le=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Le>>>26)|0,Le&=67108863,p=Math.imul(j,ne),s=Math.imul(j,ae),s=s+Math.imul(W,ne)|0,m=Math.imul(W,ae),p=p+Math.imul(U,oe)|0,s=s+Math.imul(U,fe)|0,s=s+Math.imul(N,oe)|0,m=m+Math.imul(N,fe)|0,p=p+Math.imul(D,se)|0,s=s+Math.imul(D,ue)|0,s=s+Math.imul(O,se)|0,m=m+Math.imul(O,ue)|0,p=p+Math.imul(l,he)|0,s=s+Math.imul(l,le)|0,s=s+Math.imul(x,he)|0,m=m+Math.imul(x,le)|0;var gr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(gr>>>26)|0,gr&=67108863,p=Math.imul(V,ne),s=Math.imul(V,ae),s=s+Math.imul($,ne)|0,m=Math.imul($,ae),p=p+Math.imul(j,oe)|0,s=s+Math.imul(j,fe)|0,s=s+Math.imul(W,oe)|0,m=m+Math.imul(W,fe)|0,p=p+Math.imul(U,se)|0,s=s+Math.imul(U,ue)|0,s=s+Math.imul(N,se)|0,m=m+Math.imul(N,ue)|0,p=p+Math.imul(D,he)|0,s=s+Math.imul(D,le)|0,s=s+Math.imul(O,he)|0,m=m+Math.imul(O,le)|0,p=p+Math.imul(l,ce)|0,s=s+Math.imul(l,de)|0,s=s+Math.imul(x,ce)|0,m=m+Math.imul(x,de)|0;var mr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(mr>>>26)|0,mr&=67108863,p=Math.imul(z,ne),s=Math.imul(z,ae),s=s+Math.imul(Z,ne)|0,m=Math.imul(Z,ae),p=p+Math.imul(V,oe)|0,s=s+Math.imul(V,fe)|0,s=s+Math.imul($,oe)|0,m=m+Math.imul($,fe)|0,p=p+Math.imul(j,se)|0,s=s+Math.imul(j,ue)|0,s=s+Math.imul(W,se)|0,m=m+Math.imul(W,ue)|0,p=p+Math.imul(U,he)|0,s=s+Math.imul(U,le)|0,s=s+Math.imul(N,he)|0,m=m+Math.imul(N,le)|0,p=p+Math.imul(D,ce)|0,s=s+Math.imul(D,de)|0,s=s+Math.imul(O,ce)|0,m=m+Math.imul(O,de)|0,p=p+Math.imul(l,pe)|0,s=s+Math.imul(l,ve)|0,s=s+Math.imul(x,pe)|0,m=m+Math.imul(x,ve)|0;var br=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(br>>>26)|0,br&=67108863,p=Math.imul(J,ne),s=Math.imul(J,ae),s=s+Math.imul(Y,ne)|0,m=Math.imul(Y,ae),p=p+Math.imul(z,oe)|0,s=s+Math.imul(z,fe)|0,s=s+Math.imul(Z,oe)|0,m=m+Math.imul(Z,fe)|0,p=p+Math.imul(V,se)|0,s=s+Math.imul(V,ue)|0,s=s+Math.imul($,se)|0,m=m+Math.imul($,ue)|0,p=p+Math.imul(j,he)|0,s=s+Math.imul(j,le)|0,s=s+Math.imul(W,he)|0,m=m+Math.imul(W,le)|0,p=p+Math.imul(U,ce)|0,s=s+Math.imul(U,de)|0,s=s+Math.imul(N,ce)|0,m=m+Math.imul(N,de)|0,p=p+Math.imul(D,pe)|0,s=s+Math.imul(D,ve)|0,s=s+Math.imul(O,pe)|0,m=m+Math.imul(O,ve)|0,p=p+Math.imul(l,ye)|0,s=s+Math.imul(l,ge)|0,s=s+Math.imul(x,ye)|0,m=m+Math.imul(x,ge)|0;var wr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(wr>>>26)|0,wr&=67108863,p=Math.imul(X,ne),s=Math.imul(X,ae),s=s+Math.imul(Q,ne)|0,m=Math.imul(Q,ae),p=p+Math.imul(J,oe)|0,s=s+Math.imul(J,fe)|0,s=s+Math.imul(Y,oe)|0,m=m+Math.imul(Y,fe)|0,p=p+Math.imul(z,se)|0,s=s+Math.imul(z,ue)|0,s=s+Math.imul(Z,se)|0,m=m+Math.imul(Z,ue)|0,p=p+Math.imul(V,he)|0,s=s+Math.imul(V,le)|0,s=s+Math.imul($,he)|0,m=m+Math.imul($,le)|0,p=p+Math.imul(j,ce)|0,s=s+Math.imul(j,de)|0,s=s+Math.imul(W,ce)|0,m=m+Math.imul(W,de)|0,p=p+Math.imul(U,pe)|0,s=s+Math.imul(U,ve)|0,s=s+Math.imul(N,pe)|0,m=m+Math.imul(N,ve)|0,p=p+Math.imul(D,ye)|0,s=s+Math.imul(D,ge)|0,s=s+Math.imul(O,ye)|0,m=m+Math.imul(O,ge)|0,p=p+Math.imul(l,me)|0,s=s+Math.imul(l,be)|0,s=s+Math.imul(x,me)|0,m=m+Math.imul(x,be)|0;var _r=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(_r>>>26)|0,_r&=67108863,p=Math.imul(ee,ne),s=Math.imul(ee,ae),s=s+Math.imul(te,ne)|0,m=Math.imul(te,ae),p=p+Math.imul(X,oe)|0,s=s+Math.imul(X,fe)|0,s=s+Math.imul(Q,oe)|0,m=m+Math.imul(Q,fe)|0,p=p+Math.imul(J,se)|0,s=s+Math.imul(J,ue)|0,s=s+Math.imul(Y,se)|0,m=m+Math.imul(Y,ue)|0,p=p+Math.imul(z,he)|0,s=s+Math.imul(z,le)|0,s=s+Math.imul(Z,he)|0,m=m+Math.imul(Z,le)|0,p=p+Math.imul(V,ce)|0,s=s+Math.imul(V,de)|0,s=s+Math.imul($,ce)|0,m=m+Math.imul($,de)|0,p=p+Math.imul(j,pe)|0,s=s+Math.imul(j,ve)|0,s=s+Math.imul(W,pe)|0,m=m+Math.imul(W,ve)|0,p=p+Math.imul(U,ye)|0,s=s+Math.imul(U,ge)|0,s=s+Math.imul(N,ye)|0,m=m+Math.imul(N,ge)|0,p=p+Math.imul(D,me)|0,s=s+Math.imul(D,be)|0,s=s+Math.imul(O,me)|0,m=m+Math.imul(O,be)|0,p=p+Math.imul(l,we)|0,s=s+Math.imul(l,_e)|0,s=s+Math.imul(x,we)|0,m=m+Math.imul(x,_e)|0;var xr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(xr>>>26)|0,xr&=67108863,p=Math.imul(re,ne),s=Math.imul(re,ae),s=s+Math.imul(ie,ne)|0,m=Math.imul(ie,ae),p=p+Math.imul(ee,oe)|0,s=s+Math.imul(ee,fe)|0,s=s+Math.imul(te,oe)|0,m=m+Math.imul(te,fe)|0,p=p+Math.imul(X,se)|0,s=s+Math.imul(X,ue)|0,s=s+Math.imul(Q,se)|0,m=m+Math.imul(Q,ue)|0,p=p+Math.imul(J,he)|0,s=s+Math.imul(J,le)|0,s=s+Math.imul(Y,he)|0,m=m+Math.imul(Y,le)|0,p=p+Math.imul(z,ce)|0,s=s+Math.imul(z,de)|0,s=s+Math.imul(Z,ce)|0,m=m+Math.imul(Z,de)|0,p=p+Math.imul(V,pe)|0,s=s+Math.imul(V,ve)|0,s=s+Math.imul($,pe)|0,m=m+Math.imul($,ve)|0,p=p+Math.imul(j,ye)|0,s=s+Math.imul(j,ge)|0,s=s+Math.imul(W,ye)|0,m=m+Math.imul(W,ge)|0,p=p+Math.imul(U,me)|0,s=s+Math.imul(U,be)|0,s=s+Math.imul(N,me)|0,m=m+Math.imul(N,be)|0,p=p+Math.imul(D,we)|0,s=s+Math.imul(D,_e)|0,s=s+Math.imul(O,we)|0,m=m+Math.imul(O,_e)|0,p=p+Math.imul(l,xe)|0,s=s+Math.imul(l,Me)|0,s=s+Math.imul(x,xe)|0,m=m+Math.imul(x,Me)|0;var Mr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,p=Math.imul(re,oe),s=Math.imul(re,fe),s=s+Math.imul(ie,oe)|0,m=Math.imul(ie,fe),p=p+Math.imul(ee,se)|0,s=s+Math.imul(ee,ue)|0,s=s+Math.imul(te,se)|0,m=m+Math.imul(te,ue)|0,p=p+Math.imul(X,he)|0,s=s+Math.imul(X,le)|0,s=s+Math.imul(Q,he)|0,m=m+Math.imul(Q,le)|0,p=p+Math.imul(J,ce)|0,s=s+Math.imul(J,de)|0,s=s+Math.imul(Y,ce)|0,m=m+Math.imul(Y,de)|0,p=p+Math.imul(z,pe)|0,s=s+Math.imul(z,ve)|0,s=s+Math.imul(Z,pe)|0,m=m+Math.imul(Z,ve)|0,p=p+Math.imul(V,ye)|0,s=s+Math.imul(V,ge)|0,s=s+Math.imul($,ye)|0,m=m+Math.imul($,ge)|0,p=p+Math.imul(j,me)|0,s=s+Math.imul(j,be)|0,s=s+Math.imul(W,me)|0,m=m+Math.imul(W,be)|0,p=p+Math.imul(U,we)|0,s=s+Math.imul(U,_e)|0,s=s+Math.imul(N,we)|0,m=m+Math.imul(N,_e)|0,p=p+Math.imul(D,xe)|0,s=s+Math.imul(D,Me)|0,s=s+Math.imul(O,xe)|0,m=m+Math.imul(O,Me)|0;var Er=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Er>>>26)|0,Er&=67108863,p=Math.imul(re,se),s=Math.imul(re,ue),s=s+Math.imul(ie,se)|0,m=Math.imul(ie,ue),p=p+Math.imul(ee,he)|0,s=s+Math.imul(ee,le)|0,s=s+Math.imul(te,he)|0,m=m+Math.imul(te,le)|0,p=p+Math.imul(X,ce)|0,s=s+Math.imul(X,de)|0,s=s+Math.imul(Q,ce)|0,m=m+Math.imul(Q,de)|0,p=p+Math.imul(J,pe)|0,s=s+Math.imul(J,ve)|0,s=s+Math.imul(Y,pe)|0,m=m+Math.imul(Y,ve)|0,p=p+Math.imul(z,ye)|0,s=s+Math.imul(z,ge)|0,s=s+Math.imul(Z,ye)|0,m=m+Math.imul(Z,ge)|0,p=p+Math.imul(V,me)|0,s=s+Math.imul(V,be)|0,s=s+Math.imul($,me)|0,m=m+Math.imul($,be)|0,p=p+Math.imul(j,we)|0,s=s+Math.imul(j,_e)|0,s=s+Math.imul(W,we)|0,m=m+Math.imul(W,_e)|0,p=p+Math.imul(U,xe)|0,s=s+Math.imul(U,Me)|0,s=s+Math.imul(N,xe)|0,m=m+Math.imul(N,Me)|0;var Sr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,p=Math.imul(re,he),s=Math.imul(re,le),s=s+Math.imul(ie,he)|0,m=Math.imul(ie,le),p=p+Math.imul(ee,ce)|0,s=s+Math.imul(ee,de)|0,s=s+Math.imul(te,ce)|0,m=m+Math.imul(te,de)|0,p=p+Math.imul(X,pe)|0,s=s+Math.imul(X,ve)|0,s=s+Math.imul(Q,pe)|0,m=m+Math.imul(Q,ve)|0,p=p+Math.imul(J,ye)|0,s=s+Math.imul(J,ge)|0,s=s+Math.imul(Y,ye)|0,m=m+Math.imul(Y,ge)|0,p=p+Math.imul(z,me)|0,s=s+Math.imul(z,be)|0,s=s+Math.imul(Z,me)|0,m=m+Math.imul(Z,be)|0,p=p+Math.imul(V,we)|0,s=s+Math.imul(V,_e)|0,s=s+Math.imul($,we)|0,m=m+Math.imul($,_e)|0,p=p+Math.imul(j,xe)|0,s=s+Math.imul(j,Me)|0,s=s+Math.imul(W,xe)|0,m=m+Math.imul(W,Me)|0;var Br=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Br>>>26)|0,Br&=67108863,p=Math.imul(re,ce),s=Math.imul(re,de),s=s+Math.imul(ie,ce)|0,m=Math.imul(ie,de),p=p+Math.imul(ee,pe)|0,s=s+Math.imul(ee,ve)|0,s=s+Math.imul(te,pe)|0,m=m+Math.imul(te,ve)|0,p=p+Math.imul(X,ye)|0,s=s+Math.imul(X,ge)|0,s=s+Math.imul(Q,ye)|0,m=m+Math.imul(Q,ge)|0,p=p+Math.imul(J,me)|0,s=s+Math.imul(J,be)|0,s=s+Math.imul(Y,me)|0,m=m+Math.imul(Y,be)|0,p=p+Math.imul(z,we)|0,s=s+Math.imul(z,_e)|0,s=s+Math.imul(Z,we)|0,m=m+Math.imul(Z,_e)|0,p=p+Math.imul(V,xe)|0,s=s+Math.imul(V,Me)|0,s=s+Math.imul($,xe)|0,m=m+Math.imul($,Me)|0;var Ar=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,p=Math.imul(re,pe),s=Math.imul(re,ve),s=s+Math.imul(ie,pe)|0,m=Math.imul(ie,ve),p=p+Math.imul(ee,ye)|0,s=s+Math.imul(ee,ge)|0,s=s+Math.imul(te,ye)|0,m=m+Math.imul(te,ge)|0,p=p+Math.imul(X,me)|0,s=s+Math.imul(X,be)|0,s=s+Math.imul(Q,me)|0,m=m+Math.imul(Q,be)|0,p=p+Math.imul(J,we)|0,s=s+Math.imul(J,_e)|0,s=s+Math.imul(Y,we)|0,m=m+Math.imul(Y,_e)|0,p=p+Math.imul(z,xe)|0,s=s+Math.imul(z,Me)|0,s=s+Math.imul(Z,xe)|0,m=m+Math.imul(Z,Me)|0;var Rr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,p=Math.imul(re,ye),s=Math.imul(re,ge),s=s+Math.imul(ie,ye)|0,m=Math.imul(ie,ge),p=p+Math.imul(ee,me)|0,s=s+Math.imul(ee,be)|0,s=s+Math.imul(te,me)|0,m=m+Math.imul(te,be)|0,p=p+Math.imul(X,we)|0,s=s+Math.imul(X,_e)|0,s=s+Math.imul(Q,we)|0,m=m+Math.imul(Q,_e)|0,p=p+Math.imul(J,xe)|0,s=s+Math.imul(J,Me)|0,s=s+Math.imul(Y,xe)|0,m=m+Math.imul(Y,Me)|0;var qr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(qr>>>26)|0,qr&=67108863,p=Math.imul(re,me),s=Math.imul(re,be),s=s+Math.imul(ie,me)|0,m=Math.imul(ie,be),p=p+Math.imul(ee,we)|0,s=s+Math.imul(ee,_e)|0,s=s+Math.imul(te,we)|0,m=m+Math.imul(te,_e)|0,p=p+Math.imul(X,xe)|0,s=s+Math.imul(X,Me)|0,s=s+Math.imul(Q,xe)|0,m=m+Math.imul(Q,Me)|0;var Tr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,p=Math.imul(re,we),s=Math.imul(re,_e),s=s+Math.imul(ie,we)|0,m=Math.imul(ie,_e),p=p+Math.imul(ee,xe)|0,s=s+Math.imul(ee,Me)|0,s=s+Math.imul(te,xe)|0,m=m+Math.imul(te,Me)|0;var kr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(kr>>>26)|0,kr&=67108863,p=Math.imul(re,xe),s=Math.imul(re,Me),s=s+Math.imul(ie,xe)|0,m=Math.imul(ie,Me);var Ir=(y+p|0)+((s&8191)<<13)|0;return y=(m+(s>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,d[0]=hi,d[1]=Ue,d[2]=Le,d[3]=gr,d[4]=mr,d[5]=br,d[6]=wr,d[7]=_r,d[8]=xr,d[9]=Mr,d[10]=Er,d[11]=Sr,d[12]=Br,d[13]=Ar,d[14]=Rr,d[15]=qr,d[16]=Tr,d[17]=kr,d[18]=Ir,y!==0&&(d[19]=y,c.length++),c};Math.imul||(P=C);function H(E,h,g){g.negative=h.negative^E.negative,g.length=E.length+h.length;for(var c=0,a=0,u=0;u<g.length-1;u++){var d=a;a=0;for(var y=c&67108863,p=Math.min(u,h.length-1),s=Math.max(0,u-E.length+1);s<=p;s++){var m=u-s,_=E.words[m]|0,l=h.words[s]|0,x=_*l,I=x&67108863;d=d+(x/67108864|0)|0,I=I+y|0,y=I&67108863,d=d+(I>>>26)|0,a+=d>>>26,d&=67108863}g.words[u]=y,c=d,d=a}return c!==0?g.words[u]=c:g.length--,g.strip()}function Ee(E,h,g){var c=new F;return c.mulp(E,h,g)}n.prototype.mulTo=function(h,g){var c,a=this.length+h.length;return this.length===10&&h.length===10?c=P(this,h,g):a<63?c=C(this,h,g):a<1024?c=H(this,h,g):c=Ee(this,h,g),c};function F(E,h){this.x=E,this.y=h}F.prototype.makeRBT=function(h){for(var g=new Array(h),c=n.prototype._countBits(h)-1,a=0;a<h;a++)g[a]=this.revBin(a,c,h);return g},F.prototype.revBin=function(h,g,c){if(h===0||h===c-1)return h;for(var a=0,u=0;u<g;u++)a|=(h&1)<<g-u-1,h>>=1;return a},F.prototype.permute=function(h,g,c,a,u,d){for(var y=0;y<d;y++)a[y]=g[h[y]],u[y]=c[h[y]]},F.prototype.transform=function(h,g,c,a,u,d){this.permute(d,h,g,c,a,u);for(var y=1;y<u;y<<=1)for(var p=y<<1,s=Math.cos(2*Math.PI/p),m=Math.sin(2*Math.PI/p),_=0;_<u;_+=p)for(var l=s,x=m,I=0;I<y;I++){var D=c[_+I],O=a[_+I],L=c[_+I+y],U=a[_+I+y],N=l*L-x*U;U=l*U+x*L,L=N,c[_+I]=D+L,a[_+I]=O+U,c[_+I+y]=D-L,a[_+I+y]=O-U,I!==p&&(N=s*l-m*x,x=s*x+m*l,l=N)}},F.prototype.guessLen13b=function(h,g){var c=Math.max(g,h)|1,a=c&1,u=0;for(c=c/2|0;c;c=c>>>1)u++;return 1<<u+1+a},F.prototype.conjugate=function(h,g,c){if(!(c<=1))for(var a=0;a<c/2;a++){var u=h[a];h[a]=h[c-a-1],h[c-a-1]=u,u=g[a],g[a]=-g[c-a-1],g[c-a-1]=-u}},F.prototype.normalize13b=function(h,g){for(var c=0,a=0;a<g/2;a++){var u=Math.round(h[2*a+1]/g)*8192+Math.round(h[2*a]/g)+c;h[a]=u&67108863,u<67108864?c=0:c=u/67108864|0}return h},F.prototype.convert13b=function(h,g,c,a){for(var u=0,d=0;d<g;d++)u=u+(h[d]|0),c[2*d]=u&8191,u=u>>>13,c[2*d+1]=u&8191,u=u>>>13;for(d=2*g;d<a;++d)c[d]=0;r(u===0),r((u&-8192)===0)},F.prototype.stub=function(h){for(var g=new Array(h),c=0;c<h;c++)g[c]=0;return g},F.prototype.mulp=function(h,g,c){var a=2*this.guessLen13b(h.length,g.length),u=this.makeRBT(a),d=this.stub(a),y=new Array(a),p=new Array(a),s=new Array(a),m=new Array(a),_=new Array(a),l=new Array(a),x=c.words;x.length=a,this.convert13b(h.words,h.length,y,a),this.convert13b(g.words,g.length,m,a),this.transform(y,d,p,s,a,u),this.transform(m,d,_,l,a,u);for(var I=0;I<a;I++){var D=p[I]*_[I]-s[I]*l[I];s[I]=p[I]*l[I]+s[I]*_[I],p[I]=D}return this.conjugate(p,s,a),this.transform(p,s,x,d,a,u),this.conjugate(x,d,a),this.normalize13b(x,a),c.negative=h.negative^g.negative,c.length=h.length+g.length,c.strip()},n.prototype.mul=function(h){var g=new n(null);return g.words=new Array(this.length+h.length),this.mulTo(h,g)},n.prototype.mulf=function(h){var g=new n(null);return g.words=new Array(this.length+h.length),Ee(this,h,g)},n.prototype.imul=function(h){return this.clone().mulTo(h,this)},n.prototype.imuln=function(h){r(typeof h=="number"),r(h<67108864);for(var g=0,c=0;c<this.length;c++){var a=(this.words[c]|0)*h,u=(a&67108863)+(g&67108863);g>>=26,g+=a/67108864|0,g+=u>>>26,this.words[c]=u&67108863}return g!==0&&(this.words[c]=g,this.length++),this.length=h===0?1:this.length,this},n.prototype.muln=function(h){return this.clone().imuln(h)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(h){var g=T(h);if(g.length===0)return new n(1);for(var c=this,a=0;a<g.length&&g[a]===0;a++,c=c.sqr());if(++a<g.length)for(var u=c.sqr();a<g.length;a++,u=u.sqr())g[a]!==0&&(c=c.mul(u));return c},n.prototype.iushln=function(h){r(typeof h=="number"&&h>=0);var g=h%26,c=(h-g)/26,a=67108863>>>26-g<<26-g,u;if(g!==0){var d=0;for(u=0;u<this.length;u++){var y=this.words[u]&a,p=(this.words[u]|0)-y<<g;this.words[u]=p|d,d=y>>>26-g}d&&(this.words[u]=d,this.length++)}if(c!==0){for(u=this.length-1;u>=0;u--)this.words[u+c]=this.words[u];for(u=0;u<c;u++)this.words[u]=0;this.length+=c}return this.strip()},n.prototype.ishln=function(h){return r(this.negative===0),this.iushln(h)},n.prototype.iushrn=function(h,g,c){r(typeof h=="number"&&h>=0);var a;g?a=(g-g%26)/26:a=0;var u=h%26,d=Math.min((h-u)/26,this.length),y=67108863^67108863>>>u<<u,p=c;if(a-=d,a=Math.max(0,a),p){for(var s=0;s<d;s++)p.words[s]=this.words[s];p.length=d}if(d!==0)if(this.length>d)for(this.length-=d,s=0;s<this.length;s++)this.words[s]=this.words[s+d];else this.words[0]=0,this.length=1;var m=0;for(s=this.length-1;s>=0&&(m!==0||s>=a);s--){var _=this.words[s]|0;this.words[s]=m<<26-u|_>>>u,m=_&y}return p&&m!==0&&(p.words[p.length++]=m),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(h,g,c){return r(this.negative===0),this.iushrn(h,g,c)},n.prototype.shln=function(h){return this.clone().ishln(h)},n.prototype.ushln=function(h){return this.clone().iushln(h)},n.prototype.shrn=function(h){return this.clone().ishrn(h)},n.prototype.ushrn=function(h){return this.clone().iushrn(h)},n.prototype.testn=function(h){r(typeof h=="number"&&h>=0);var g=h%26,c=(h-g)/26,a=1<<g;if(this.length<=c)return!1;var u=this.words[c];return!!(u&a)},n.prototype.imaskn=function(h){r(typeof h=="number"&&h>=0);var g=h%26,c=(h-g)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=c)return this;if(g!==0&&c++,this.length=Math.min(c,this.length),g!==0){var a=67108863^67108863>>>g<<g;this.words[this.length-1]&=a}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.maskn=function(h){return this.clone().imaskn(h)},n.prototype.iaddn=function(h){return r(typeof h=="number"),r(h<67108864),h<0?this.isubn(-h):this.negative!==0?this.length===1&&(this.words[0]|0)<h?(this.words[0]=h-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(h),this.negative=1,this):this._iaddn(h)},n.prototype._iaddn=function(h){this.words[0]+=h;for(var g=0;g<this.length&&this.words[g]>=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},n.prototype.isubn=function(h){if(r(typeof h=="number"),r(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g<this.length&&this.words[g]<0;g++)this.words[g]+=67108864,this.words[g+1]-=1;return this.strip()},n.prototype.addn=function(h){return this.clone().iaddn(h)},n.prototype.subn=function(h){return this.clone().isubn(h)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(h,g,c){var a=h.length+c,u;this._expand(a);var d,y=0;for(u=0;u<h.length;u++){d=(this.words[u+c]|0)+y;var p=(h.words[u]|0)*g;d-=p&67108863,y=(d>>26)-(p/67108864|0),this.words[u+c]=d&67108863}for(;u<this.length-c;u++)d=(this.words[u+c]|0)+y,y=d>>26,this.words[u+c]=d&67108863;if(y===0)return this.strip();for(r(y===-1),y=0,u=0;u<this.length;u++)d=-(this.words[u]|0)+y,y=d>>26,this.words[u]=d&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(h,g){var c=this.length-h.length,a=this.clone(),u=h,d=u.words[u.length-1]|0,y=this._countBits(d);c=26-y,c!==0&&(u=u.ushln(c),a.iushln(c),d=u.words[u.length-1]|0);var p=a.length-u.length,s;if(g!=="mod"){s=new n(null),s.length=p+1,s.words=new Array(s.length);for(var m=0;m<s.length;m++)s.words[m]=0}var _=a.clone()._ishlnsubmul(u,1,p);_.negative===0&&(a=_,s&&(s.words[p]=1));for(var l=p-1;l>=0;l--){var x=(a.words[u.length+l]|0)*67108864+(a.words[u.length+l-1]|0);for(x=Math.min(x/d|0,67108863),a._ishlnsubmul(u,x,l);a.negative!==0;)x--,a.negative=0,a._ishlnsubmul(u,1,l),a.isZero()||(a.negative^=1);s&&(s.words[l]=x)}return s&&s.strip(),a.strip(),g!=="div"&&c!==0&&a.iushrn(c),{div:s||null,mod:a}},n.prototype.divmod=function(h,g,c){if(r(!h.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var a,u,d;return this.negative!==0&&h.negative===0?(d=this.neg().divmod(h,g),g!=="mod"&&(a=d.div.neg()),g!=="div"&&(u=d.mod.neg(),c&&u.negative!==0&&u.iadd(h)),{div:a,mod:u}):this.negative===0&&h.negative!==0?(d=this.divmod(h.neg(),g),g!=="mod"&&(a=d.div.neg()),{div:a,mod:d.mod}):(this.negative&h.negative)!==0?(d=this.neg().divmod(h.neg(),g),g!=="div"&&(u=d.mod.neg(),c&&u.negative!==0&&u.isub(h)),{div:d.div,mod:u}):h.length>this.length||this.cmp(h)<0?{div:new n(0),mod:this}:h.length===1?g==="div"?{div:this.divn(h.words[0]),mod:null}:g==="mod"?{div:null,mod:new n(this.modn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new n(this.modn(h.words[0]))}:this._wordDiv(h,g)},n.prototype.div=function(h){return this.divmod(h,"div",!1).div},n.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},n.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},n.prototype.divRound=function(h){var g=this.divmod(h);if(g.mod.isZero())return g.div;var c=g.div.negative!==0?g.mod.isub(h):g.mod,a=h.ushrn(1),u=h.andln(1),d=c.cmp(a);return d<0||u===1&&d===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},n.prototype.modn=function(h){r(h<=67108863);for(var g=(1<<26)%h,c=0,a=this.length-1;a>=0;a--)c=(g*c+(this.words[a]|0))%h;return c},n.prototype.idivn=function(h){r(h<=67108863);for(var g=0,c=this.length-1;c>=0;c--){var a=(this.words[c]|0)+g*67108864;this.words[c]=a/h|0,g=a%h}return this.strip()},n.prototype.divn=function(h){return this.clone().idivn(h)},n.prototype.egcd=function(h){r(h.negative===0),r(!h.isZero());var g=this,c=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var a=new n(1),u=new n(0),d=new n(0),y=new n(1),p=0;g.isEven()&&c.isEven();)g.iushrn(1),c.iushrn(1),++p;for(var s=c.clone(),m=g.clone();!g.isZero();){for(var _=0,l=1;(g.words[0]&l)===0&&_<26;++_,l<<=1);if(_>0)for(g.iushrn(_);_-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(s),u.isub(m)),a.iushrn(1),u.iushrn(1);for(var x=0,I=1;(c.words[0]&I)===0&&x<26;++x,I<<=1);if(x>0)for(c.iushrn(x);x-- >0;)(d.isOdd()||y.isOdd())&&(d.iadd(s),y.isub(m)),d.iushrn(1),y.iushrn(1);g.cmp(c)>=0?(g.isub(c),a.isub(d),u.isub(y)):(c.isub(g),d.isub(a),y.isub(u))}return{a:d,b:y,gcd:c.iushln(p)}},n.prototype._invmp=function(h){r(h.negative===0),r(!h.isZero());var g=this,c=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var a=new n(1),u=new n(0),d=c.clone();g.cmpn(1)>0&&c.cmpn(1)>0;){for(var y=0,p=1;(g.words[0]&p)===0&&y<26;++y,p<<=1);if(y>0)for(g.iushrn(y);y-- >0;)a.isOdd()&&a.iadd(d),a.iushrn(1);for(var s=0,m=1;(c.words[0]&m)===0&&s<26;++s,m<<=1);if(s>0)for(c.iushrn(s);s-- >0;)u.isOdd()&&u.iadd(d),u.iushrn(1);g.cmp(c)>=0?(g.isub(c),a.isub(u)):(c.isub(g),u.isub(a))}var _;return g.cmpn(1)===0?_=a:_=u,_.cmpn(0)<0&&_.iadd(h),_},n.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var g=this.clone(),c=h.clone();g.negative=0,c.negative=0;for(var a=0;g.isEven()&&c.isEven();a++)g.iushrn(1),c.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;c.isEven();)c.iushrn(1);var u=g.cmp(c);if(u<0){var d=g;g=c,c=d}else if(u===0||c.cmpn(1)===0)break;g.isub(c)}while(!0);return c.iushln(a)},n.prototype.invm=function(h){return this.egcd(h).a.umod(h)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(h){return this.words[0]&h},n.prototype.bincn=function(h){r(typeof h=="number");var g=h%26,c=(h-g)/26,a=1<<g;if(this.length<=c)return this._expand(c+1),this.words[c]|=a,this;for(var u=a,d=c;u!==0&&d<this.length;d++){var y=this.words[d]|0;y+=u,u=y>>>26,y&=67108863,this.words[d]=y}return u!==0&&(this.words[d]=u,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(h){var g=h<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this.strip();var c;if(this.length>1)c=1;else{g&&(h=-h),r(h<=67108863,"Number is too big");var a=this.words[0]|0;c=a===h?0:a<h?-1:1}return this.negative!==0?-c|0:c},n.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var g=this.ucmp(h);return this.negative!==0?-g|0:g},n.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var g=0,c=this.length-1;c>=0;c--){var a=this.words[c]|0,u=h.words[c]|0;if(a!==u){a<u?g=-1:a>u&&(g=1);break}}return g},n.prototype.gtn=function(h){return this.cmpn(h)===1},n.prototype.gt=function(h){return this.cmp(h)===1},n.prototype.gten=function(h){return this.cmpn(h)>=0},n.prototype.gte=function(h){return this.cmp(h)>=0},n.prototype.ltn=function(h){return this.cmpn(h)===-1},n.prototype.lt=function(h){return this.cmp(h)===-1},n.prototype.lten=function(h){return this.cmpn(h)<=0},n.prototype.lte=function(h){return this.cmp(h)<=0},n.prototype.eqn=function(h){return this.cmpn(h)===0},n.prototype.eq=function(h){return this.cmp(h)===0},n.red=function(h){return new De(h)},n.prototype.toRed=function(h){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(h){return this.red=h,this},n.prototype.forceRed=function(h){return r(!this.red,"Already a number in reduction context"),this._forceRed(h)},n.prototype.redAdd=function(h){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},n.prototype.redIAdd=function(h){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},n.prototype.redSub=function(h){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},n.prototype.redISub=function(h){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},n.prototype.redShl=function(h){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},n.prototype.redMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},n.prototype.redIMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(h){return r(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var K={k256:null,p224:null,p192:null,p25519:null};function Fe(E,h){this.name=E,this.p=new n(h,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Fe.prototype._tmp=function(){var h=new n(null);return h.words=new Array(Math.ceil(this.n/13)),h},Fe.prototype.ireduce=function(h){var g=h,c;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),c=g.bitLength();while(c>this.n);var a=c<this.n?-1:g.ucmp(this.p);return a===0?(g.words[0]=0,g.length=1):a>0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},Fe.prototype.split=function(h,g){h.iushrn(this.n,0,g)},Fe.prototype.imulK=function(h){return h.imul(this.k)};function je(){Fe.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(je,Fe),je.prototype.split=function(h,g){for(var c=4194303,a=Math.min(h.length,9),u=0;u<a;u++)g.words[u]=h.words[u];if(g.length=a,h.length<=9){h.words[0]=0,h.length=1;return}var d=h.words[9];for(g.words[g.length++]=d&c,u=10;u<h.length;u++){var y=h.words[u]|0;h.words[u-10]=(y&c)<<4|d>>>22,d=y}d>>>=22,h.words[u-10]=d,d===0&&h.length>10?h.length-=10:h.length-=9},je.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var g=0,c=0;c<h.length;c++){var a=h.words[c]|0;g+=a*977,h.words[c]=g&67108863,g=a*64+(g/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function nr(){Fe.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(nr,Fe);function Ve(){Fe.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(Ve,Fe);function Tt(){Fe.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(Tt,Fe),Tt.prototype.imulK=function(h){for(var g=0,c=0;c<h.length;c++){var a=(h.words[c]|0)*19+g,u=a&67108863;a>>>=26,h.words[c]=u,g=a}return g!==0&&(h.words[h.length++]=g),h},n._prime=function(h){if(K[h])return K[h];var g;if(h==="k256")g=new je;else if(h==="p224")g=new nr;else if(h==="p192")g=new Ve;else if(h==="p25519")g=new Tt;else throw new Error("Unknown prime "+h);return K[h]=g,g};function De(E){if(typeof E=="string"){var h=n._prime(E);this.m=h.p,this.prime=h}else r(E.gtn(1),"modulus must be greater than 1"),this.m=E,this.prime=null}De.prototype._verify1=function(h){r(h.negative===0,"red works only with positives"),r(h.red,"red works only with red numbers")},De.prototype._verify2=function(h,g){r((h.negative|g.negative)===0,"red works only with positives"),r(h.red&&h.red===g.red,"red works only with red numbers")},De.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):h.umod(this.m)._forceRed(this)},De.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},De.prototype.add=function(h,g){this._verify2(h,g);var c=h.add(g);return c.cmp(this.m)>=0&&c.isub(this.m),c._forceRed(this)},De.prototype.iadd=function(h,g){this._verify2(h,g);var c=h.iadd(g);return c.cmp(this.m)>=0&&c.isub(this.m),c},De.prototype.sub=function(h,g){this._verify2(h,g);var c=h.sub(g);return c.cmpn(0)<0&&c.iadd(this.m),c._forceRed(this)},De.prototype.isub=function(h,g){this._verify2(h,g);var c=h.isub(g);return c.cmpn(0)<0&&c.iadd(this.m),c},De.prototype.shl=function(h,g){return this._verify1(h),this.imod(h.ushln(g))},De.prototype.imul=function(h,g){return this._verify2(h,g),this.imod(h.imul(g))},De.prototype.mul=function(h,g){return this._verify2(h,g),this.imod(h.mul(g))},De.prototype.isqr=function(h){return this.imul(h,h.clone())},De.prototype.sqr=function(h){return this.mul(h,h)},De.prototype.sqrt=function(h){if(h.isZero())return h.clone();var g=this.m.andln(3);if(r(g%2===1),g===3){var c=this.m.add(new n(1)).iushrn(2);return this.pow(h,c)}for(var a=this.m.subn(1),u=0;!a.isZero()&&a.andln(1)===0;)u++,a.iushrn(1);r(!a.isZero());var d=new n(1).toRed(this),y=d.redNeg(),p=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new n(2*s*s).toRed(this);this.pow(s,p).cmp(y)!==0;)s.redIAdd(y);for(var m=this.pow(s,a),_=this.pow(h,a.addn(1).iushrn(1)),l=this.pow(h,a),x=u;l.cmp(d)!==0;){for(var I=l,D=0;I.cmp(d)!==0;D++)I=I.redSqr();r(D<x);var O=this.pow(m,new n(1).iushln(x-D-1));_=_.redMul(O),m=O.redSqr(),l=l.redMul(m),x=D}return _},De.prototype.invm=function(h){var g=h._invmp(this.m);return g.negative!==0?(g.negative=0,this.imod(g).redNeg()):this.imod(g)},De.prototype.pow=function(h,g){if(g.isZero())return new n(1).toRed(this);if(g.cmpn(1)===0)return h.clone();var c=4,a=new Array(1<<c);a[0]=new n(1).toRed(this),a[1]=h;for(var u=2;u<a.length;u++)a[u]=this.mul(a[u-1],h);var d=a[0],y=0,p=0,s=g.bitLength()%26;for(s===0&&(s=26),u=g.length-1;u>=0;u--){for(var m=g.words[u],_=s-1;_>=0;_--){var l=m>>_&1;if(d!==a[0]&&(d=this.sqr(d)),l===0&&y===0){p=0;continue}y<<=1,y|=l,p++,!(p!==c&&(u!==0||_!==0))&&(d=this.mul(d,a[y]),p=0,y=0)}s=26}return d},De.prototype.convertTo=function(h){var g=h.umod(this.m);return g===h?g.clone():g},De.prototype.convertFrom=function(h){var g=h.clone();return g.red=null,g},n.mont=function(h){return new st(h)};function st(E){De.call(this,E),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(st,De),st.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},st.prototype.convertFrom=function(h){var g=this.imod(h.mul(this.rinv));return g.red=null,g},st.prototype.imul=function(h,g){if(h.isZero()||g.isZero())return h.words[0]=0,h.length=1,h;var c=h.imul(g),a=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=c.isub(a).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},st.prototype.mul=function(h,g){if(h.isZero()||g.isZero())return new n(0)._forceRed(this);var c=h.mul(g),a=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=c.isub(a).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},st.prototype.invm=function(h){var g=this.imod(h._invmp(this.m).mul(this.r2));return g._forceRed(this)}})(typeof Iu>"u"||Iu,zy)});var Zy=B((P7,Du)=>{b();var Cu;Du.exports=function(e){return Cu||(Cu=new yr(null)),Cu.generate(e)};function yr(t){this.rand=t}Du.exports.Rand=yr;yr.prototype.generate=function(e){return this._rand(e)};yr.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var r=new Uint8Array(e),i=0;i<r.length;i++)r[i]=this.rand.getByte();return r};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?yr.prototype._rand=function(e){var r=new Uint8Array(e);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?yr.prototype._rand=function(e){var r=new Uint8Array(e);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(yr.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(Ou=Pu(),typeof Ou.randomBytes!="function")throw new Error("Not supported");yr.prototype._rand=function(e){return Ou.randomBytes(e)}}catch{}var Ou});var Uu=B((L7,Jy)=>{b();var oi=vr(),d4=Zy();function fi(t){this.rand=t||new d4.Rand}Jy.exports=fi;fi.create=function(e){return new fi(e)};fi.prototype._randbelow=function(e){var r=e.bitLength(),i=Math.ceil(r/8);do var n=new oi(this.rand.generate(i));while(n.cmp(e)>=0);return n};fi.prototype._randrange=function(e,r){var i=r.sub(e);return e.add(this._randbelow(i))};fi.prototype.test=function(e,r,i){var n=e.bitLength(),o=oi.mont(e),f=new oi(1).toRed(o);r||(r=Math.max(1,n/48|0));for(var v=e.subn(1),w=0;!v.testn(w);w++);for(var S=e.shrn(w),A=v.toRed(o),q=!0;r>0;r--){var T=this._randrange(new oi(2),v);i&&i(T);var C=T.toRed(o).redPow(S);if(!(C.cmp(f)===0||C.cmp(A)===0)){for(var P=1;P<w;P++){if(C=C.redSqr(),C.cmp(f)===0)return!1;if(C.cmp(A)===0)break}if(P===w)return!1}}return q};fi.prototype.getDivisor=function(e,r){var i=e.bitLength(),n=oi.mont(e),o=new oi(1).toRed(n);r||(r=Math.max(1,i/48|0));for(var f=e.subn(1),v=0;!f.testn(v);v++);for(var w=e.shrn(v),S=f.toRed(n);r>0;r--){var A=this._randrange(new oi(2),f),q=e.gcd(A);if(q.cmpn(1)!==0)return q;var T=A.toRed(n).redPow(w);if(!(T.cmp(o)===0||T.cmp(S)===0)){for(var C=1;C<v;C++){if(T=T.redSqr(),T.cmp(o)===0)return T.fromRed().subn(1).gcd(e);if(T.cmp(S)===0)break}if(C===v)return T=T.redSqr(),T.fromRed().subn(1).gcd(e)}}return!1}});var Wu=B((K7,Qy)=>{b();var p4=Ur();Qy.exports=Hu;Hu.simpleSieve=Fu;Hu.fermatTest=ju;var Je=vr(),v4=new Je(24),y4=Uu(),Yy=new y4,g4=new Je(1),Nu=new Je(2),m4=new Je(5),F7=new Je(16),j7=new Je(8),b4=new Je(10),w4=new Je(3),H7=new Je(7),_4=new Je(11),Xy=new Je(4),W7=new Je(12),Lu=null;function x4(){if(Lu!==null)return Lu;var t=1048576,e=[];e[0]=2;for(var r=1,i=3;i<t;i+=2){for(var n=Math.ceil(Math.sqrt(i)),o=0;o<r&&e[o]<=n&&i%e[o]!==0;o++);r!==o&&e[o]<=n||(e[r++]=i)}return Lu=e,e}function Fu(t){for(var e=x4(),r=0;r<e.length;r++)if(t.modn(e[r])===0)return t.cmpn(e[r])===0;return!0}function ju(t){var e=Je.mont(t);return Nu.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)===0}function Hu(t,e){if(t<16)return e===2||e===5?new Je([140,123]):new Je([140,39]);e=new Je(e);for(var r,i;;){for(r=new Je(p4(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(g4),r.testn(1)||r.iadd(Nu),e.cmp(Nu)){if(!e.cmp(m4))for(;r.mod(b4).cmp(w4);)r.iadd(Xy)}else for(;r.mod(v4).cmp(_4);)r.iadd(Xy);if(i=r.shrn(1),Fu(i)&&Fu(r)&&ju(i)&&ju(r)&&Yy.test(i)&&Yy.test(r))return r}}});var e1=B((V7,M4)=>{M4.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var n1=B(($7,i1)=>{b();var yt=vr(),E4=Uu(),t1=new E4,S4=new yt(24),B4=new yt(11),A4=new yt(10),R4=new yt(3),q4=new yt(7),r1=Wu(),T4=Ur();i1.exports=rr;function k4(t,e){return e=e||"utf8",R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),this._pub=new yt(t),this}function I4(t,e){return e=e||"utf8",R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),this._priv=new yt(t),this}var Jo={};function C4(t,e){var r=e.toString("hex"),i=[r,t.toString(16)].join("_");if(i in Jo)return Jo[i];var n=0;if(t.isEven()||!r1.simpleSieve||!r1.fermatTest(t)||!t1.test(t))return n+=1,r==="02"||r==="05"?n+=8:n+=4,Jo[i]=n,n;t1.test(t.shrn(1))||(n+=2);var o;switch(r){case"02":t.mod(S4).cmp(B4)&&(n+=8);break;case"05":o=t.mod(A4),o.cmp(R4)&&o.cmp(q4)&&(n+=8);break;default:n+=4}return Jo[i]=n,n}function rr(t,e,r){this.setGenerator(e),this.__prime=new yt(t),this._prime=yt.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=k4,this.setPrivateKey=I4):this._primeCode=8}Object.defineProperty(rr.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=C4(this.__prime,this.__gen)),this._primeCode}});rr.prototype.generateKeys=function(){return this._priv||(this._priv=new yt(T4(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};rr.prototype.computeSecret=function(t){t=new yt(t),t=t.toRed(this._prime);var e=t.redPow(this._priv).fromRed(),r=new R.Buffer(e.toArray()),i=this.getPrime();if(r.length<i.length){var n=new R.Buffer(i.length-r.length);n.fill(0),r=R.Buffer.concat([n,r])}return r};rr.prototype.getPublicKey=function(e){return Yo(this._pub,e)};rr.prototype.getPrivateKey=function(e){return Yo(this._priv,e)};rr.prototype.getPrime=function(t){return Yo(this.__prime,t)};rr.prototype.getGenerator=function(t){return Yo(this._gen,t)};rr.prototype.setGenerator=function(t,e){return e=e||"utf8",R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),this.__gen=t,this._gen=new yt(t),this};function Yo(t,e){var r=new R.Buffer(t.toArray());return e?r.toString(e):r}});var f1=B(Ki=>{b();var O4=Wu(),a1=e1(),Ku=n1();function D4(t){var e=new R.Buffer(a1[t].prime,"hex"),r=new R.Buffer(a1[t].gen,"hex");return new Ku(e,r)}var P4={binary:!0,hex:!0,base64:!0};function o1(t,e,r,i){return R.Buffer.isBuffer(e)||P4[e]===void 0?o1(t,"binary",e,r):(e=e||"binary",i=i||"binary",r=r||new R.Buffer([2]),R.Buffer.isBuffer(r)||(r=new R.Buffer(r,i)),typeof t=="number"?new Ku(O4(t,r),r,!0):(R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),new Ku(t,r,!0)))}Ki.DiffieHellmanGroup=Ki.createDiffieHellmanGroup=Ki.getDiffieHellman=D4;Ki.createDiffieHellman=Ki.DiffieHellman=o1});var s1=B((exports,module)=>{b();var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;r++)if(t[r]===e)return r;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},defineProp=(function(){try{return Object.defineProperty({},"_",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch{return function(e,r,i){e[r]=i}}})(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,i=r.eval,n=r.execScript;!i&&n&&(n.call(r,"null"),i=r.eval),forEach(Object_keys(t),function(v){r[v]=t[v]}),forEach(globals,function(v){t[v]&&(r[v]=t[v])});var o=Object_keys(r),f=i.call(r,this.code);return forEach(Object_keys(r),function(v){(v in t||indexOf(o,v)===-1)&&(t[v]=r[v])}),forEach(globals,function(v){v in t||defineProp(t,v,r[v])}),document.body.removeChild(e),f};Script.prototype.runInThisContext=function(){return eval(this.code)};Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),r=this.runInContext(e);return t&&forEach(Object_keys(e),function(i){t[i]=e[i]}),r};forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var r=Script(e);return r[t].apply(r,[].slice.call(arguments,1))}});exports.isContext=function(t){return t instanceof Context};exports.createScript=function(t){return exports.Script(t)};exports.createContext=Script.createContext=function(t){var e=new Context;return typeof t=="object"&&forEach(Object_keys(t),function(r){e[r]=t[r]}),e}});var l1=B(h1=>{b();var u1=Vi(),U4=G(),L4=h1;L4.define=function(e,r){return new Gi(e,r)};function Gi(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}Gi.prototype._createNamed=function(e){var r;try{r=s1().runInThisContext("(function "+this.name+`(entity) {
|
|
11
|
+
`)+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}Te.types=Bc();function kc(t){return Array.isArray(t)}Te.isArray=kc;function os(t){return typeof t=="boolean"}Te.isBoolean=os;function za(t){return t===null}Te.isNull=za;function t2(t){return t==null}Te.isNullOrUndefined=t2;function Ic(t){return typeof t=="number"}Te.isNumber=Ic;function Za(t){return typeof t=="string"}Te.isString=Za;function r2(t){return typeof t=="symbol"}Te.isSymbol=r2;function Wr(t){return t===void 0}Te.isUndefined=Wr;function xn(t){return Bi(t)&&fs(t)==="[object RegExp]"}Te.isRegExp=xn;Te.types.isRegExp=xn;function Bi(t){return typeof t=="object"&&t!==null}Te.isObject=Bi;function $a(t){return Bi(t)&&fs(t)==="[object Date]"}Te.isDate=$a;Te.types.isDate=$a;function Mn(t){return Bi(t)&&(fs(t)==="[object Error]"||t instanceof Error)}Te.isError=Mn;Te.types.isNativeError=Mn;function Ga(t){return typeof t=="function"}Te.isFunction=Ga;function i2(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}Te.isPrimitive=i2;Te.isBuffer=Rc();function fs(t){return Object.prototype.toString.call(t)}function ns(t){return t<10?"0"+t.toString(10):t.toString(10)}var n2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function a2(){var t=new Date,e=[ns(t.getHours()),ns(t.getMinutes()),ns(t.getSeconds())].join(":");return[t.getDate(),n2[t.getMonth()],e].join(" ")}Te.log=function(){console.log("%s - %s",a2(),Te.format.apply(Te,arguments))};Te.inherits=G();Te._extend=function(t,e){if(!e||!Bi(e))return t;for(var r=Object.keys(e),i=r.length;i--;)t[r[i]]=e[r[i]];return t};function Cc(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Hr=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Te.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(Hr&&e[Hr]){var r=e[Hr];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,Hr,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,o=new Promise(function(w,S){i=w,n=S}),f=[],v=0;v<arguments.length;v++)f.push(arguments[v]);f.push(function(w,S){w?n(w):i(S)});try{e.apply(this,f)}catch(w){n(w)}return o}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Hr&&Object.defineProperty(r,Hr,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,qc(e))};Te.promisify.custom=Hr;function o2(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}function f2(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);var n=r.pop();if(typeof n!="function")throw new TypeError("The last argument must be of type Function");var o=this,f=function(){return n.apply(o,arguments)};t.apply(this,r).then(function(v){M.default.nextTick(f.bind(null,null,v))},function(v){M.default.nextTick(o2.bind(null,v,f))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,qc(t)),e}Te.callbackify=f2});var Nc=B((S5,Lc)=>{"use strict";b();function Oc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Dc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Oc(Object(r),!0).forEach(function(i){s2(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Oc(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function s2(t,e,r){return e=Uc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u2(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pc(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Uc(i.key),i)}}function h2(t,e,r){return e&&Pc(t.prototype,e),r&&Pc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Uc(t){var e=l2(t,"string");return typeof e=="symbol"?e:String(e)}function l2(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var c2=rt(),Ja=c2.Buffer,d2=En(),ss=d2.inspect,p2=ss&&ss.custom||"inspect";function v2(t,e,r){Ja.prototype.copy.call(t,e,r)}Lc.exports=(function(){function t(){u2(this,t),this.head=null,this.tail=null,this.length=0}return h2(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return Ja.alloc(0);for(var i=Ja.allocUnsafe(r>>>0),n=this.head,o=0;n;)v2(n.data,i,o),o+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,o=i.data;for(r-=o.length;i=i.next;){var f=i.data,v=r>f.length?f.length:r;if(v===f.length?o+=f:o+=f.slice(0,r),r-=v,r===0){v===f.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=f.slice(v));break}++n}return this.length-=n,o}},{key:"_getBuffer",value:function(r){var i=Ja.allocUnsafe(r),n=this.head,o=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var f=n.data,v=r>f.length?f.length:r;if(f.copy(i,i.length-r,0,v),r-=v,r===0){v===f.length?(++o,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=f.slice(v));break}++o}return this.length-=o,i}},{key:p2,value:function(r,i){return ss(this,Dc(Dc({},i),{},{depth:0,customInspect:!1}))}}]),t})()});var hs=B((A5,jc)=>{"use strict";b();function y2(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,M.default.nextTick(us,this,t)):M.default.nextTick(us,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(o){!e&&o?r._writableState?r._writableState.errorEmitted?M.default.nextTick(Ya,r):(r._writableState.errorEmitted=!0,M.default.nextTick(Fc,r,o)):M.default.nextTick(Fc,r,o):e?(M.default.nextTick(Ya,r),e(o)):M.default.nextTick(Ya,r)}),this)}function Fc(t,e){us(t,e),Ya(t)}function Ya(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function g2(){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 us(t,e){t.emit("error",e)}function m2(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}jc.exports={destroy:y2,undestroy:g2,errorOrDestroy:m2}});var Kr=B((q5,Kc)=>{"use strict";b();function b2(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Wc={};function lt(t,e,r){r||(r=Error);function i(o,f,v){return typeof e=="string"?e:e(o,f,v)}var n=(function(o){b2(f,o);function f(v,w,S){return o.call(this,i(v,w,S))||this}return f})(r);n.prototype.name=r.name,n.prototype.code=t,Wc[t]=n}function Hc(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(i){return String(i)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:r===2?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}else return"of ".concat(e," ").concat(String(t))}function w2(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function _2(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function x2(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}lt("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);lt("ERR_INVALID_ARG_TYPE",function(t,e,r){var i;typeof e=="string"&&w2(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";var n;if(_2(t," argument"))n="The ".concat(t," ").concat(i," ").concat(Hc(e,"type"));else{var o=x2(t,".")?"property":"argument";n='The "'.concat(t,'" ').concat(o," ").concat(i," ").concat(Hc(e,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);lt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");lt("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});lt("ERR_STREAM_PREMATURE_CLOSE","Premature close");lt("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});lt("ERR_MULTIPLE_CALLBACK","Callback called multiple times");lt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");lt("ERR_STREAM_WRITE_AFTER_END","write after end");lt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);lt("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);lt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Kc.exports.codes=Wc});var ls=B((k5,Gc)=>{"use strict";b();var M2=Kr().codes.ERR_INVALID_OPT_VALUE;function E2(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function S2(t,e,r,i){var n=E2(e,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var o=i?r:"highWaterMark";throw new M2(o,n)}return Math.floor(n)}return t.objectMode?16:16*1024}Gc.exports={getHighWaterMark:S2}});var ds=B((C5,Vc)=>{b();Vc.exports=B2;function B2(t,e){if(cs("noDeprecation"))return t;var r=!1;function i(){if(!r){if(cs("throwDeprecation"))throw new Error(e);cs("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return i}function cs(t){try{if(!globalThis.localStorage)return!1}catch{return!1}var e=globalThis.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}});var ys=B((D5,Xc)=>{"use strict";b();Xc.exports=Ne;function zc(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Q2(e,t)}}var Ai;Ne.WritableState=Bn;var A2={deprecate:ds()},Zc=Rf(),Qa=rt().Buffer,R2=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function q2(t){return Qa.from(t)}function T2(t){return Qa.isBuffer(t)||t instanceof R2}var vs=hs(),k2=ls(),I2=k2.getHighWaterMark,fr=Kr().codes,C2=fr.ERR_INVALID_ARG_TYPE,O2=fr.ERR_METHOD_NOT_IMPLEMENTED,D2=fr.ERR_MULTIPLE_CALLBACK,P2=fr.ERR_STREAM_CANNOT_PIPE,U2=fr.ERR_STREAM_DESTROYED,L2=fr.ERR_STREAM_NULL_VALUES,N2=fr.ERR_STREAM_WRITE_AFTER_END,F2=fr.ERR_UNKNOWN_ENCODING,Ri=vs.errorOrDestroy;G()(Ne,Zc);function j2(){}function Bn(t,e,r){Ai=Ai||Gr(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ai),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=I2(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){z2(e,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new zc(this)}Bn.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Bn.prototype,"buffer",{get:A2.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Xa;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Xa=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ne,Symbol.hasInstance,{value:function(e){return Xa.call(this,e)?!0:this!==Ne?!1:e&&e._writableState instanceof Bn}})):Xa=function(e){return e instanceof this};function Ne(t){Ai=Ai||Gr();var e=this instanceof Ai;if(!e&&!Xa.call(Ne,this))return new Ne(t);this._writableState=new Bn(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Zc.call(this)}Ne.prototype.pipe=function(){Ri(this,new P2)};function H2(t,e){var r=new N2;Ri(t,r),M.default.nextTick(e,r)}function W2(t,e,r,i){var n;return r===null?n=new L2:typeof r!="string"&&!e.objectMode&&(n=new C2("chunk",["string","Buffer"],r)),n?(Ri(t,n),M.default.nextTick(i,n),!1):!0}Ne.prototype.write=function(t,e,r){var i=this._writableState,n=!1,o=!i.objectMode&&T2(t);return o&&!Qa.isBuffer(t)&&(t=q2(t)),typeof e=="function"&&(r=e,e=null),o?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=j2),i.ending?H2(this,r):(o||W2(this,i,t,r))&&(i.pendingcb++,n=G2(this,i,o,t,e,r)),n};Ne.prototype.cork=function(){this._writableState.corked++};Ne.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Jc(this,t))};Ne.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new F2(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ne.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function K2(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Qa.from(e,r)),e}Object.defineProperty(Ne.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function G2(t,e,r,i,n,o){if(!r){var f=K2(e,i,n);i!==f&&(r=!0,n="buffer",i=f)}var v=e.objectMode?1:i.length;e.length+=v;var w=e.length<e.highWaterMark;if(w||(e.needDrain=!0),e.writing||e.corked){var S=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null},S?S.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ps(t,e,!1,v,i,n,o);return w}function ps(t,e,r,i,n,o,f){e.writelen=i,e.writecb=f,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new U2("write")):r?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=!1}function V2(t,e,r,i,n){--e.pendingcb,r?(M.default.nextTick(n,i),M.default.nextTick(Sn,t,e),t._writableState.errorEmitted=!0,Ri(t,i)):(n(i),t._writableState.errorEmitted=!0,Ri(t,i),Sn(t,e))}function $2(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function z2(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new D2;if($2(r),e)V2(t,r,i,e,n);else{var o=Yc(r)||t.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Jc(t,r),i?M.default.nextTick($c,t,r,o,n):$c(t,r,o,n)}}function $c(t,e,r,i){r||Z2(t,e),e.pendingcb--,i(),Sn(t,e)}function Z2(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Jc(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),o=e.corkedRequestsFree;o.entry=r;for(var f=0,v=!0;r;)n[f]=r,r.isBuf||(v=!1),r=r.next,f+=1;n.allBuffers=v,ps(t,e,!0,e.length,n,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new zc(e),e.bufferedRequestCount=0}else{for(;r;){var w=r.chunk,S=r.encoding,A=r.callback,q=e.objectMode?1:w.length;if(ps(t,e,!1,q,w,S,A),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}Ne.prototype._write=function(t,e,r){r(new O2("_write()"))};Ne.prototype._writev=null;Ne.prototype.end=function(t,e,r){var i=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||X2(this,i,r),this};Object.defineProperty(Ne.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Yc(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function J2(t,e){t._final(function(r){e.pendingcb--,r&&Ri(t,r),e.prefinished=!0,t.emit("prefinish"),Sn(t,e)})}function Y2(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,M.default.nextTick(J2,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Sn(t,e){var r=Yc(e);if(r&&(Y2(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}function X2(t,e,r){e.ending=!0,Sn(t,e),r&&(e.finished?M.default.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Q2(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(Ne.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});Ne.prototype.destroy=vs.destroy;Ne.prototype._undestroy=vs.undestroy;Ne.prototype._destroy=function(t,e){e(t)}});var Gr=B((U5,ed)=>{"use strict";b();var e_=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};ed.exports=Pt;var Qc=bs(),ms=ys();G()(Pt,Qc);for(gs=e_(ms.prototype),eo=0;eo<gs.length;eo++)to=gs[eo],Pt.prototype[to]||(Pt.prototype[to]=ms.prototype[to]);var gs,to,eo;function Pt(t){if(!(this instanceof Pt))return new Pt(t);Qc.call(this,t),ms.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",t_)))}Object.defineProperty(Pt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Pt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Pt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function t_(){this._writableState.ended||M.default.nextTick(r_,this)}function r_(t){t.end()}Object.defineProperty(Pt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var id=B((ws,rd)=>{b();var ro=rt(),Gt=ro.Buffer;function td(t,e){for(var r in t)e[r]=t[r]}Gt.from&&Gt.alloc&&Gt.allocUnsafe&&Gt.allocUnsafeSlow?rd.exports=ro:(td(ro,ws),ws.Buffer=qi);function qi(t,e,r){return Gt(t,e,r)}td(Gt,qi);qi.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Gt(t,e,r)};qi.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Gt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};qi.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Gt(t)};qi.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ro.SlowBuffer(t)}});var Ti=B(ad=>{"use strict";b();var xs=id().Buffer,nd=xs.isEncoding||function(t){switch(t=""+t,t&&t.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 i_(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function n_(t){var e=i_(t);if(typeof e!="string"&&(xs.isEncoding===nd||!nd(t)))throw new Error("Unknown encoding: "+t);return e||t}ad.StringDecoder=An;function An(t){this.encoding=n_(t);var e;switch(this.encoding){case"utf16le":this.text=h_,this.end=l_,e=4;break;case"utf8":this.fillLast=f_,e=4;break;case"base64":this.text=c_,this.end=d_,e=3;break;default:this.write=p_,this.end=v_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=xs.allocUnsafe(e)}An.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};An.prototype.end=u_;An.prototype.text=s_;An.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function _s(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function a_(t,e,r){var i=e.length-1;if(i<r)return 0;var n=_s(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=_s(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=_s(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function o_(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function f_(t){var e=this.lastTotal-this.lastNeed,r=o_(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function s_(t,e){var r=a_(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function u_(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function h_(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l_(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c_(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function d_(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function p_(t){return t.toString(this.encoding)}function v_(t){return t&&t.length?this.write(t):""}});var io=B((H5,sd)=>{"use strict";b();var od=Kr().codes.ERR_STREAM_PREMATURE_CLOSE;function y_(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];t.apply(this,i)}}}function g_(){}function m_(t){return t.setHeader&&typeof t.abort=="function"}function fd(t,e,r){if(typeof e=="function")return fd(t,null,e);e||(e={}),r=y_(r||g_);var i=e.readable||e.readable!==!1&&t.readable,n=e.writable||e.writable!==!1&&t.writable,o=function(){t.writable||v()},f=t._writableState&&t._writableState.finished,v=function(){n=!1,f=!0,i||r.call(t)},w=t._readableState&&t._readableState.endEmitted,S=function(){i=!1,w=!0,n||r.call(t)},A=function(P){r.call(t,P)},q=function(){var P;if(i&&!w)return(!t._readableState||!t._readableState.ended)&&(P=new od),r.call(t,P);if(n&&!f)return(!t._writableState||!t._writableState.ended)&&(P=new od),r.call(t,P)},T=function(){t.req.on("finish",v)};return m_(t)?(t.on("complete",v),t.on("abort",q),t.req?T():t.on("request",T)):n&&!t._writableState&&(t.on("end",o),t.on("close",o)),t.on("end",S),t.on("finish",v),e.error!==!1&&t.on("error",A),t.on("close",q),function(){t.removeListener("complete",v),t.removeListener("abort",q),t.removeListener("request",T),t.req&&t.req.removeListener("finish",v),t.removeListener("end",o),t.removeListener("close",o),t.removeListener("finish",v),t.removeListener("end",S),t.removeListener("error",A),t.removeListener("close",q)}}sd.exports=fd});var hd=B((K5,ud)=>{"use strict";b();var no;function sr(t,e,r){return e=b_(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b_(t){var e=w_(t,"string");return typeof e=="symbol"?e:String(e)}function w_(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var __=io(),ur=Symbol("lastResolve"),Vr=Symbol("lastReject"),Rn=Symbol("error"),ao=Symbol("ended"),$r=Symbol("lastPromise"),Ms=Symbol("handlePromise"),zr=Symbol("stream");function hr(t,e){return{value:t,done:e}}function x_(t){var e=t[ur];if(e!==null){var r=t[zr].read();r!==null&&(t[$r]=null,t[ur]=null,t[Vr]=null,e(hr(r,!1)))}}function M_(t){M.default.nextTick(x_,t)}function E_(t,e){return function(r,i){t.then(function(){if(e[ao]){r(hr(void 0,!0));return}e[Ms](r,i)},i)}}var S_=Object.getPrototypeOf(function(){}),B_=Object.setPrototypeOf((no={get stream(){return this[zr]},next:function(){var e=this,r=this[Rn];if(r!==null)return Promise.reject(r);if(this[ao])return Promise.resolve(hr(void 0,!0));if(this[zr].destroyed)return new Promise(function(f,v){M.default.nextTick(function(){e[Rn]?v(e[Rn]):f(hr(void 0,!0))})});var i=this[$r],n;if(i)n=new Promise(E_(i,this));else{var o=this[zr].read();if(o!==null)return Promise.resolve(hr(o,!1));n=new Promise(this[Ms])}return this[$r]=n,n}},sr(no,Symbol.asyncIterator,function(){return this}),sr(no,"return",function(){var e=this;return new Promise(function(r,i){e[zr].destroy(null,function(n){if(n){i(n);return}r(hr(void 0,!0))})})}),no),S_),A_=function(e){var r,i=Object.create(B_,(r={},sr(r,zr,{value:e,writable:!0}),sr(r,ur,{value:null,writable:!0}),sr(r,Vr,{value:null,writable:!0}),sr(r,Rn,{value:null,writable:!0}),sr(r,ao,{value:e._readableState.endEmitted,writable:!0}),sr(r,Ms,{value:function(o,f){var v=i[zr].read();v?(i[$r]=null,i[ur]=null,i[Vr]=null,o(hr(v,!1))):(i[ur]=o,i[Vr]=f)},writable:!0}),r));return i[$r]=null,__(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=i[Vr];o!==null&&(i[$r]=null,i[ur]=null,i[Vr]=null,o(n)),i[Rn]=n;return}var f=i[ur];f!==null&&(i[$r]=null,i[ur]=null,i[Vr]=null,f(hr(void 0,!0))),i[ao]=!0}),e.on("readable",M_.bind(null,i)),i};ud.exports=A_});var cd=B((V5,ld)=>{b();ld.exports=function(){throw new Error("Readable.from is not available in the browser")}});var bs=B((Z5,xd)=>{"use strict";b();xd.exports=ke;var ki;ke.ReadableState=yd;var z5=gi().EventEmitter,vd=function(e,r){return e.listeners(r).length},Tn=Rf(),oo=rt().Buffer,R_=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function q_(t){return oo.from(t)}function T_(t){return oo.isBuffer(t)||t instanceof R_}var Es=En(),Ae;Es&&Es.debuglog?Ae=Es.debuglog("stream"):Ae=function(){};var k_=Nc(),ks=hs(),I_=ls(),C_=I_.getHighWaterMark,fo=Kr().codes,O_=fo.ERR_INVALID_ARG_TYPE,D_=fo.ERR_STREAM_PUSH_AFTER_EOF,P_=fo.ERR_METHOD_NOT_IMPLEMENTED,U_=fo.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ii,Ss,Bs;G()(ke,Tn);var qn=ks.errorOrDestroy,As=["error","close","destroy","pause","resume"];function L_(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function yd(t,e,r){ki=ki||Gr(),t=t||{},typeof r!="boolean"&&(r=e instanceof ki),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=C_(this,t,"readableHighWaterMark",r),this.buffer=new k_,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ii||(Ii=Ti().StringDecoder),this.decoder=new Ii(t.encoding),this.encoding=t.encoding)}function ke(t){if(ki=ki||Gr(),!(this instanceof ke))return new ke(t);var e=this instanceof ki;this._readableState=new yd(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Tn.call(this)}Object.defineProperty(ke.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});ke.prototype.destroy=ks.destroy;ke.prototype._undestroy=ks.undestroy;ke.prototype._destroy=function(t,e){e(t)};ke.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=oo.from(t,e),e=""),i=!0),gd(this,t,e,!1,i)};ke.prototype.unshift=function(t){return gd(this,t,null,!0,!1)};function gd(t,e,r,i,n){Ae("readableAddChunk",e);var o=t._readableState;if(e===null)o.reading=!1,j_(t,o);else{var f;if(n||(f=N_(o,e)),f)qn(t,f);else if(o.objectMode||e&&e.length>0)if(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==oo.prototype&&(e=q_(e)),i)o.endEmitted?qn(t,new U_):Rs(t,o,e,!0);else if(o.ended)qn(t,new D_);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||e.length!==0?Rs(t,o,e,!1):Ts(t,o)):Rs(t,o,e,!1)}else i||(o.reading=!1,Ts(t,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function Rs(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&so(t)),Ts(t,e)}function N_(t,e){var r;return!T_(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new O_("chunk",["string","Buffer","Uint8Array"],e)),r}ke.prototype.isPaused=function(){return this._readableState.flowing===!1};ke.prototype.setEncoding=function(t){Ii||(Ii=Ti().StringDecoder);var e=new Ii(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var dd=1073741824;function F_(t){return t>=dd?t=dd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function pd(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=F_(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}ke.prototype.read=function(t){Ae("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Ae("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?qs(this):so(this),null;if(t=pd(t,e),t===0&&e.ended)return e.length===0&&qs(this),null;var i=e.needReadable;Ae("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,Ae("length less than watermark",i)),e.ended||e.reading?(i=!1,Ae("reading or ended",i)):i&&(Ae("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=pd(r,e)));var n;return t>0?n=wd(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&qs(this)),n!==null&&this.emit("data",n),n};function j_(t,e){if(Ae("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?so(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,md(t)))}}function so(t){var e=t._readableState;Ae("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Ae("emitReadable",e.flowing),e.emittedReadable=!0,M.default.nextTick(md,t))}function md(t){var e=t._readableState;Ae("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Is(t)}function Ts(t,e){e.readingMore||(e.readingMore=!0,M.default.nextTick(H_,t,e))}function H_(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(Ae("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}ke.prototype._read=function(t){qn(this,new P_("_read()"))};ke.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,Ae("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==M.default.stdout&&t!==M.default.stderr,o=n?v:H;i.endEmitted?M.default.nextTick(o):r.once("end",o),t.on("unpipe",f);function f(Ee,F){Ae("onunpipe"),Ee===r&&F&&F.hasUnpiped===!1&&(F.hasUnpiped=!0,A())}function v(){Ae("onend"),t.end()}var w=W_(r);t.on("drain",w);var S=!1;function A(){Ae("cleanup"),t.removeListener("close",C),t.removeListener("finish",P),t.removeListener("drain",w),t.removeListener("error",T),t.removeListener("unpipe",f),r.removeListener("end",v),r.removeListener("end",H),r.removeListener("data",q),S=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&w()}r.on("data",q);function q(Ee){Ae("ondata");var F=t.write(Ee);Ae("dest.write",F),F===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&_d(i.pipes,t)!==-1)&&!S&&(Ae("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function T(Ee){Ae("onerror",Ee),H(),t.removeListener("error",T),vd(t,"error")===0&&qn(t,Ee)}L_(t,"error",T);function C(){t.removeListener("finish",P),H()}t.once("close",C);function P(){Ae("onfinish"),t.removeListener("close",C),H()}t.once("finish",P);function H(){Ae("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(Ae("pipe resume"),r.resume()),t};function W_(t){return function(){var r=t._readableState;Ae("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&vd(t,"data")&&(r.flowing=!0,Is(t))}}ke.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var f=_d(e.pipes,t);return f===-1?this:(e.pipes.splice(f,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};ke.prototype.on=function(t,e){var r=Tn.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,Ae("on readable",i.length,i.reading),i.length?so(this):i.reading||M.default.nextTick(K_,this)),r};ke.prototype.addListener=ke.prototype.on;ke.prototype.removeListener=function(t,e){var r=Tn.prototype.removeListener.call(this,t,e);return t==="readable"&&M.default.nextTick(bd,this),r};ke.prototype.removeAllListeners=function(t){var e=Tn.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&M.default.nextTick(bd,this),e};function bd(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function K_(t){Ae("readable nexttick read 0"),t.read(0)}ke.prototype.resume=function(){var t=this._readableState;return t.flowing||(Ae("resume"),t.flowing=!t.readableListening,G_(this,t)),t.paused=!1,this};function G_(t,e){e.resumeScheduled||(e.resumeScheduled=!0,M.default.nextTick(V_,t,e))}function V_(t,e){Ae("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Is(t),e.flowing&&!e.reading&&t.read(0)}ke.prototype.pause=function(){return Ae("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ae("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Is(t){var e=t._readableState;for(Ae("flow",e.flowing);e.flowing&&t.read()!==null;);}ke.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(Ae("wrapped end"),r.decoder&&!r.ended){var f=r.decoder.end();f&&f.length&&e.push(f)}e.push(null)}),t.on("data",function(f){if(Ae("wrapped data"),r.decoder&&(f=r.decoder.write(f)),!(r.objectMode&&f==null)&&!(!r.objectMode&&(!f||!f.length))){var v=e.push(f);v||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(v){return function(){return t[v].apply(t,arguments)}})(n));for(var o=0;o<As.length;o++)t.on(As[o],this.emit.bind(this,As[o]));return this._read=function(f){Ae("wrapped _read",f),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&(ke.prototype[Symbol.asyncIterator]=function(){return Ss===void 0&&(Ss=hd()),Ss(this)});Object.defineProperty(ke.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(ke.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(ke.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});ke._fromList=wd;Object.defineProperty(ke.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function wd(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function qs(t){var e=t._readableState;Ae("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,M.default.nextTick($_,e,t))}function $_(t,e){if(Ae("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(ke.from=function(t,e){return Bs===void 0&&(Bs=cd()),Bs(ke,t,e)});function _d(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Cs=B((Y5,Ed)=>{"use strict";b();Ed.exports=Vt;var uo=Kr().codes,z_=uo.ERR_METHOD_NOT_IMPLEMENTED,Z_=uo.ERR_MULTIPLE_CALLBACK,J_=uo.ERR_TRANSFORM_ALREADY_TRANSFORMING,Y_=uo.ERR_TRANSFORM_WITH_LENGTH_0,ho=Gr();G()(Vt,ho);function X_(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new Z_);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Vt(t){if(!(this instanceof Vt))return new Vt(t);ho.call(this,t),this._transformState={afterTransform:X_.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Q_)}function Q_(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Md(t,e,r)}):Md(this,null,null)}Vt.prototype.push=function(t,e){return this._transformState.needTransform=!1,ho.prototype.push.call(this,t,e)};Vt.prototype._transform=function(t,e,r){r(new z_("_transform()"))};Vt.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Vt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Vt.prototype._destroy=function(t,e){ho.prototype._destroy.call(this,t,function(r){e(r)})};function Md(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Y_;if(t._transformState.transforming)throw new J_;return t.push(null)}});var Ad=B((Q5,Bd)=>{"use strict";b();Bd.exports=kn;var Sd=Cs();G()(kn,Sd);function kn(t){if(!(this instanceof kn))return new kn(t);Sd.call(this,t)}kn.prototype._transform=function(t,e,r){r(null,t)}});var Id=B((tB,kd)=>{"use strict";b();var Os;function e6(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Td=Kr().codes,t6=Td.ERR_MISSING_ARGS,r6=Td.ERR_STREAM_DESTROYED;function Rd(t){if(t)throw t}function i6(t){return t.setHeader&&typeof t.abort=="function"}function n6(t,e,r,i){i=e6(i);var n=!1;t.on("close",function(){n=!0}),Os===void 0&&(Os=io()),Os(t,{readable:e,writable:r},function(f){if(f)return i(f);n=!0,i()});var o=!1;return function(f){if(!n&&!o){if(o=!0,i6(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(f||new r6("pipe"))}}}function qd(t){t()}function a6(t,e){return t.pipe(e)}function o6(t){return!t.length||typeof t[t.length-1]!="function"?Rd:t.pop()}function f6(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=o6(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new t6("streams");var n,o=e.map(function(f,v){var w=v<e.length-1,S=v>0;return n6(f,w,S,function(A){n||(n=A),A&&o.forEach(qd),!w&&(o.forEach(qd),i(n))})});return e.reduce(a6)}kd.exports=f6});var Ps=B((iB,Cd)=>{b();Cd.exports=ct;var Ds=gi().EventEmitter,s6=G();s6(ct,Ds);ct.Readable=bs();ct.Writable=ys();ct.Duplex=Gr();ct.Transform=Cs();ct.PassThrough=Ad();ct.finished=io();ct.pipeline=Id();ct.Stream=ct;function ct(){Ds.call(this)}ct.prototype.pipe=function(t,e){var r=this;function i(A){t.writable&&t.write(A)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",f),r.on("close",v));var o=!1;function f(){o||(o=!0,t.end())}function v(){o||(o=!0,typeof t.destroy=="function"&&t.destroy())}function w(A){if(S(),Ds.listenerCount(this,"error")===0)throw A}r.on("error",w),t.on("error",w);function S(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",f),r.removeListener("close",v),r.removeListener("error",w),t.removeListener("error",w),r.removeListener("end",S),r.removeListener("close",S),t.removeListener("close",S)}return r.on("end",S),r.on("close",S),t.on("close",S),t.emit("pipe",r),t}});var Pd=B((aB,Dd)=>{"use strict";b();var Ut=Se().Buffer,Od=Ps().Transform,u6=G();function lr(t){Od.call(this),this._block=Ut.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}u6(lr,Od);lr.prototype._transform=function(t,e,r){var i=null;try{this.update(t,e)}catch(n){i=n}r(i)};lr.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)};var h6=typeof Uint8Array<"u",l6=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Ut.prototype instanceof Uint8Array||Ut.TYPED_ARRAY_SUPPORT);function c6(t,e){if(t instanceof Ut)return t;if(typeof t=="string")return Ut.from(t,e);if(l6&&ArrayBuffer.isView(t)){if(t.byteLength===0)return Ut.alloc(0);var r=Ut.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}if(h6&&t instanceof Uint8Array||Ut.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return Ut.from(t);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}lr.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");t=c6(t,e);for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)r[n++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)r[this._blockOffset++]=t[i++];for(var o=0,f=t.length*8;f>0;++o)this._length[o]+=f,f=this._length[o]/4294967296|0,f>0&&(this._length[o]-=4294967296*f);return this};lr.prototype._update=function(){throw new Error("_update is not implemented")};lr.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e};lr.prototype._digest=function(){throw new Error("_digest is not implemented")};Dd.exports=lr});var po=B((fB,Ld)=>{"use strict";b();var d6=G(),Ud=Pd(),p6=Se().Buffer,v6=new Array(16);function lo(){Ud.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}d6(lo,Ud);lo.prototype._update=function(){for(var t=v6,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);var r=this._a,i=this._b,n=this._c,o=this._d;r=Ye(r,i,n,o,t[0],3614090360,7),o=Ye(o,r,i,n,t[1],3905402710,12),n=Ye(n,o,r,i,t[2],606105819,17),i=Ye(i,n,o,r,t[3],3250441966,22),r=Ye(r,i,n,o,t[4],4118548399,7),o=Ye(o,r,i,n,t[5],1200080426,12),n=Ye(n,o,r,i,t[6],2821735955,17),i=Ye(i,n,o,r,t[7],4249261313,22),r=Ye(r,i,n,o,t[8],1770035416,7),o=Ye(o,r,i,n,t[9],2336552879,12),n=Ye(n,o,r,i,t[10],4294925233,17),i=Ye(i,n,o,r,t[11],2304563134,22),r=Ye(r,i,n,o,t[12],1804603682,7),o=Ye(o,r,i,n,t[13],4254626195,12),n=Ye(n,o,r,i,t[14],2792965006,17),i=Ye(i,n,o,r,t[15],1236535329,22),r=Xe(r,i,n,o,t[1],4129170786,5),o=Xe(o,r,i,n,t[6],3225465664,9),n=Xe(n,o,r,i,t[11],643717713,14),i=Xe(i,n,o,r,t[0],3921069994,20),r=Xe(r,i,n,o,t[5],3593408605,5),o=Xe(o,r,i,n,t[10],38016083,9),n=Xe(n,o,r,i,t[15],3634488961,14),i=Xe(i,n,o,r,t[4],3889429448,20),r=Xe(r,i,n,o,t[9],568446438,5),o=Xe(o,r,i,n,t[14],3275163606,9),n=Xe(n,o,r,i,t[3],4107603335,14),i=Xe(i,n,o,r,t[8],1163531501,20),r=Xe(r,i,n,o,t[13],2850285829,5),o=Xe(o,r,i,n,t[2],4243563512,9),n=Xe(n,o,r,i,t[7],1735328473,14),i=Xe(i,n,o,r,t[12],2368359562,20),r=Qe(r,i,n,o,t[5],4294588738,4),o=Qe(o,r,i,n,t[8],2272392833,11),n=Qe(n,o,r,i,t[11],1839030562,16),i=Qe(i,n,o,r,t[14],4259657740,23),r=Qe(r,i,n,o,t[1],2763975236,4),o=Qe(o,r,i,n,t[4],1272893353,11),n=Qe(n,o,r,i,t[7],4139469664,16),i=Qe(i,n,o,r,t[10],3200236656,23),r=Qe(r,i,n,o,t[13],681279174,4),o=Qe(o,r,i,n,t[0],3936430074,11),n=Qe(n,o,r,i,t[3],3572445317,16),i=Qe(i,n,o,r,t[6],76029189,23),r=Qe(r,i,n,o,t[9],3654602809,4),o=Qe(o,r,i,n,t[12],3873151461,11),n=Qe(n,o,r,i,t[15],530742520,16),i=Qe(i,n,o,r,t[2],3299628645,23),r=et(r,i,n,o,t[0],4096336452,6),o=et(o,r,i,n,t[7],1126891415,10),n=et(n,o,r,i,t[14],2878612391,15),i=et(i,n,o,r,t[5],4237533241,21),r=et(r,i,n,o,t[12],1700485571,6),o=et(o,r,i,n,t[3],2399980690,10),n=et(n,o,r,i,t[10],4293915773,15),i=et(i,n,o,r,t[1],2240044497,21),r=et(r,i,n,o,t[8],1873313359,6),o=et(o,r,i,n,t[15],4264355552,10),n=et(n,o,r,i,t[6],2734768916,15),i=et(i,n,o,r,t[13],1309151649,21),r=et(r,i,n,o,t[4],4149444226,6),o=et(o,r,i,n,t[11],3174756917,10),n=et(n,o,r,i,t[2],718787259,15),i=et(i,n,o,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+o|0};lo.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=p6.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t};function co(t,e){return t<<e|t>>>32-e}function Ye(t,e,r,i,n,o,f){return co(t+(e&r|~e&i)+n+o|0,f)+e|0}function Xe(t,e,r,i,n,o,f){return co(t+(e&i|r&~i)+n+o|0,f)+e|0}function Qe(t,e,r,i,n,o,f){return co(t+(e^r^i)+n+o|0,f)+e|0}function et(t,e,r,i,n,o,f){return co(t+(r^(e|~i))+n+o|0,f)+e|0}Ld.exports=lo});var Fd=B((uB,Nd)=>{b();var y6={}.toString;Nd.exports=Array.isArray||function(t){return y6.call(t)=="[object Array]"}});var Hd=B((lB,jd)=>{"use strict";b();var g6=Lr(),m6=jr(),b6=m6("TypedArray.prototype.buffer",!0),w6=es();jd.exports=b6||function(e){if(!w6(e))throw new g6("Not a Typed Array");return e.buffer}});var In=B((dB,Kd)=>{"use strict";b();var _t=Se().Buffer,_6=Fd(),x6=Hd(),M6=ArrayBuffer.isView||function(e){try{return x6(e),!0}catch{return!1}},E6=typeof Uint8Array<"u",Wd=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",S6=Wd&&(_t.prototype instanceof Uint8Array||_t.TYPED_ARRAY_SUPPORT);Kd.exports=function(e,r){if(_t.isBuffer(e))return e.constructor&&!("isBuffer"in e)?_t.from(e):e;if(typeof e=="string")return _t.from(e,r);if(Wd&&M6(e)){if(e.byteLength===0)return _t.alloc(0);if(S6){var i=_t.from(e.buffer,e.byteOffset,e.byteLength);if(i.byteLength===e.byteLength)return i}var n=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),o=_t.from(n);if(o.length===e.byteLength)return o}if(E6&&e instanceof Uint8Array)return _t.from(e);var f=_6(e);if(f)for(var v=0;v<e.length;v+=1){var w=e[v];if(typeof w!="number"||w<0||w>255||~~w!==w)throw new RangeError("Array items must be numbers in the range 0-255.")}if(f||_t.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return _t.from(e);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var zd=B((vB,$d)=>{"use strict";b();var B6=Se().Buffer,A6=In(),Vd=typeof Uint8Array<"u",R6=Vd&&typeof ArrayBuffer<"u",Gd=R6&&ArrayBuffer.isView;$d.exports=function(t,e){if(typeof t=="string"||B6.isBuffer(t)||Vd&&t instanceof Uint8Array||Gd&&Gd(t))return A6(t,e);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var Cn=B((gB,Us)=>{"use strict";b();typeof M.default>"u"||!M.default.version||M.default.version.indexOf("v0.")===0||M.default.version.indexOf("v1.")===0&&M.default.version.indexOf("v1.8.")!==0?Us.exports={nextTick:q6}:Us.exports=M.default;function q6(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,o,f;switch(n){case 0:case 1:return M.default.nextTick(t);case 2:return M.default.nextTick(function(){t.call(null,e)});case 3:return M.default.nextTick(function(){t.call(null,e,r)});case 4:return M.default.nextTick(function(){t.call(null,e,r,i)});default:for(o=new Array(n-1),f=0;f<o.length;)o[f++]=arguments[f];return M.default.nextTick(function(){t.apply(null,o)})}}});var Jd=B((bB,Zd)=>{b();var T6={}.toString;Zd.exports=Array.isArray||function(t){return T6.call(t)=="[object Array]"}});var Ls=B((_B,Yd)=>{b();Yd.exports=gi().EventEmitter});var yo=B((Ns,Qd)=>{b();var vo=rt(),$t=vo.Buffer;function Xd(t,e){for(var r in t)e[r]=t[r]}$t.from&&$t.alloc&&$t.allocUnsafe&&$t.allocUnsafeSlow?Qd.exports=vo:(Xd(vo,Ns),Ns.Buffer=Ci);function Ci(t,e,r){return $t(t,e,r)}Xd($t,Ci);Ci.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return $t(t,e,r)};Ci.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=$t(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Ci.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return $t(t)};Ci.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return vo.SlowBuffer(t)}});var Oi=B(tt=>{b();function k6(t){return Array.isArray?Array.isArray(t):go(t)==="[object Array]"}tt.isArray=k6;function I6(t){return typeof t=="boolean"}tt.isBoolean=I6;function C6(t){return t===null}tt.isNull=C6;function O6(t){return t==null}tt.isNullOrUndefined=O6;function D6(t){return typeof t=="number"}tt.isNumber=D6;function P6(t){return typeof t=="string"}tt.isString=P6;function U6(t){return typeof t=="symbol"}tt.isSymbol=U6;function L6(t){return t===void 0}tt.isUndefined=L6;function N6(t){return go(t)==="[object RegExp]"}tt.isRegExp=N6;function F6(t){return typeof t=="object"&&t!==null}tt.isObject=F6;function j6(t){return go(t)==="[object Date]"}tt.isDate=j6;function H6(t){return go(t)==="[object Error]"||t instanceof Error}tt.isError=H6;function W6(t){return typeof t=="function"}tt.isFunction=W6;function K6(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}tt.isPrimitive=K6;tt.isBuffer=rt().Buffer.isBuffer;function go(t){return Object.prototype.toString.call(t)}});var tp=B((BB,Fs)=>{"use strict";b();function G6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var ep=yo().Buffer,On=En();function V6(t,e,r){t.copy(e,r)}Fs.exports=(function(){function t(){G6(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},t.prototype.concat=function(r){if(this.length===0)return ep.alloc(0);for(var i=ep.allocUnsafe(r>>>0),n=this.head,o=0;n;)V6(n.data,i,o),o+=n.data.length,n=n.next;return i},t})();On&&On.inspect&&On.inspect.custom&&(Fs.exports.prototype[On.inspect.custom]=function(){var t=On.inspect({length:this.length});return this.constructor.name+" "+t})});var js=B((RB,rp)=>{"use strict";b();var mo=Cn();function $6(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,mo.nextTick(bo,this,t)):mo.nextTick(bo,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(o){!e&&o?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,mo.nextTick(bo,r,o)):mo.nextTick(bo,r,o):e&&e(o)}),this)}function z6(){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 bo(t,e){t.emit("error",e)}rp.exports={destroy:$6,undestroy:z6}});var Ws=B((TB,hp)=>{"use strict";b();var Zr=Cn();hp.exports=We;function np(t){var e=this;this.next=null,this.entry=null,this.finish=function(){cx(e,t)}}var Z6=!M.default.browser&&["v0.10","v0.9."].indexOf(M.default.version.slice(0,5))>-1?setImmediate:Zr.nextTick,Di;We.WritableState=Pn;var ap=Object.create(Oi());ap.inherits=G();var J6={deprecate:ds()},op=Ls(),_o=yo().Buffer,Y6=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function X6(t){return _o.from(t)}function Q6(t){return _o.isBuffer(t)||t instanceof Y6}var fp=js();ap.inherits(We,op);function ex(){}function Pn(t,e){Di=Di||Jr(),t=t||{};var r=e instanceof Di;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,n=t.writableHighWaterMark,o=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=t.decodeStrings===!1;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(v){fx(e,v)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new np(this)}Pn.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Pn.prototype,"buffer",{get:J6.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var wo;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(wo=Function.prototype[Symbol.hasInstance],Object.defineProperty(We,Symbol.hasInstance,{value:function(t){return wo.call(this,t)?!0:this!==We?!1:t&&t._writableState instanceof Pn}})):wo=function(t){return t instanceof this};function We(t){if(Di=Di||Jr(),!wo.call(We,this)&&!(this instanceof Di))return new We(t);this._writableState=new Pn(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),op.call(this)}We.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function tx(t,e){var r=new Error("write after end");t.emit("error",r),Zr.nextTick(e,r)}function rx(t,e,r,i){var n=!0,o=!1;return r===null?o=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),Zr.nextTick(i,o),n=!1),n}We.prototype.write=function(t,e,r){var i=this._writableState,n=!1,o=!i.objectMode&&Q6(t);return o&&!_o.isBuffer(t)&&(t=X6(t)),typeof e=="function"&&(r=e,e=null),o?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=ex),i.ended?tx(this,r):(o||rx(this,i,t,r))&&(i.pendingcb++,n=nx(this,i,o,t,e,r)),n};We.prototype.cork=function(){var t=this._writableState;t.corked++};We.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&sp(this,t))};We.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function ix(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=_o.from(e,r)),e}Object.defineProperty(We.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function nx(t,e,r,i,n,o){if(!r){var f=ix(e,i,n);i!==f&&(r=!0,n="buffer",i=f)}var v=e.objectMode?1:i.length;e.length+=v;var w=e.length<e.highWaterMark;if(w||(e.needDrain=!0),e.writing||e.corked){var S=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null},S?S.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Hs(t,e,!1,v,i,n,o);return w}function Hs(t,e,r,i,n,o,f){e.writelen=i,e.writecb=f,e.writing=!0,e.sync=!0,r?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=!1}function ax(t,e,r,i,n){--e.pendingcb,r?(Zr.nextTick(n,i),Zr.nextTick(Dn,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Dn(t,e))}function ox(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function fx(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(ox(r),e)ax(t,r,i,e,n);else{var o=up(r);!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&sp(t,r),i?Z6(ip,t,r,o,n):ip(t,r,o,n)}}function ip(t,e,r,i){r||sx(t,e),e.pendingcb--,i(),Dn(t,e)}function sx(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function sp(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),o=e.corkedRequestsFree;o.entry=r;for(var f=0,v=!0;r;)n[f]=r,r.isBuf||(v=!1),r=r.next,f+=1;n.allBuffers=v,Hs(t,e,!0,e.length,n,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new np(e),e.bufferedRequestCount=0}else{for(;r;){var w=r.chunk,S=r.encoding,A=r.callback,q=e.objectMode?1:w.length;if(Hs(t,e,!1,q,w,S,A),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}We.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};We.prototype._writev=null;We.prototype.end=function(t,e,r){var i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||lx(this,i,r)};function up(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function ux(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Dn(t,e)})}function hx(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Zr.nextTick(ux,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Dn(t,e){var r=up(e);return r&&(hx(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function lx(t,e,r){e.ending=!0,Dn(t,e),r&&(e.finished?Zr.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function cx(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(We.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});We.prototype.destroy=fp.destroy;We.prototype._undestroy=fp.undestroy;We.prototype._destroy=function(t,e){this.end(),e(t)}});var Jr=B((IB,pp)=>{"use strict";b();var lp=Cn(),dx=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};pp.exports=zt;var cp=Object.create(Oi());cp.inherits=G();var dp=Vs(),Gs=Ws();cp.inherits(zt,dp);for(Ks=dx(Gs.prototype),xo=0;xo<Ks.length;xo++)Mo=Ks[xo],zt.prototype[Mo]||(zt.prototype[Mo]=Gs.prototype[Mo]);var Ks,Mo,xo;function zt(t){if(!(this instanceof zt))return new zt(t);dp.call(this,t),Gs.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",px)}Object.defineProperty(zt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function px(){this.allowHalfOpen||this._writableState.ended||lp.nextTick(vx,this)}function vx(t){t.end()}Object.defineProperty(zt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});zt.prototype._destroy=function(t,e){this.push(null),this.end(),lp.nextTick(e,t)}});var Vs=B((DB,Bp)=>{"use strict";b();var Ui=Cn();Bp.exports=Pe;var yx=Jd(),Un;Pe.ReadableState=_p;var OB=gi().EventEmitter,mp=function(t,e){return t.listeners(e).length},Ys=Ls(),Ln=yo().Buffer,gx=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function mx(t){return Ln.from(t)}function bx(t){return Ln.isBuffer(t)||t instanceof gx}var bp=Object.create(Oi());bp.inherits=G();var $s=En(),Ie=void 0;$s&&$s.debuglog?Ie=$s.debuglog("stream"):Ie=function(){};var wx=tp(),wp=js(),Pi;bp.inherits(Pe,Ys);var zs=["error","close","destroy","pause","resume"];function _x(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):yx(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function _p(t,e){Un=Un||Jr(),t=t||{};var r=e instanceof Un;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,n=t.readableHighWaterMark,o=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new wx,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Pi||(Pi=Ti().StringDecoder),this.decoder=new Pi(t.encoding),this.encoding=t.encoding)}function Pe(t){if(Un=Un||Jr(),!(this instanceof Pe))return new Pe(t);this._readableState=new _p(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Ys.call(this)}Object.defineProperty(Pe.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Pe.prototype.destroy=wp.destroy;Pe.prototype._undestroy=wp.undestroy;Pe.prototype._destroy=function(t,e){this.push(null),e(t)};Pe.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Ln.from(t,e),e=""),i=!0),xp(this,t,e,!1,i)};Pe.prototype.unshift=function(t){return xp(this,t,null,!0,!1)};function xp(t,e,r,i,n){var o=t._readableState;if(e===null)o.reading=!1,Sx(t,o);else{var f;n||(f=xx(o,e)),f?t.emit("error",f):o.objectMode||e&&e.length>0?(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==Ln.prototype&&(e=mx(e)),i?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):Zs(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||e.length!==0?Zs(t,o,e,!1):Mp(t,o)):Zs(t,o,e,!1))):i||(o.reading=!1)}return Mx(o)}function Zs(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Eo(t)),Mp(t,e)}function xx(t,e){var r;return!bx(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function Mx(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}Pe.prototype.isPaused=function(){return this._readableState.flowing===!1};Pe.prototype.setEncoding=function(t){return Pi||(Pi=Ti().StringDecoder),this._readableState.decoder=new Pi(t),this._readableState.encoding=t,this};var vp=8388608;function Ex(t){return t>=vp?t=vp:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function yp(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=Ex(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Pe.prototype.read=function(t){Ie("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Ie("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Js(this):Eo(this),null;if(t=yp(t,e),t===0&&e.ended)return e.length===0&&Js(this),null;var i=e.needReadable;Ie("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,Ie("length less than watermark",i)),e.ended||e.reading?(i=!1,Ie("reading or ended",i)):i&&(Ie("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=yp(r,e)));var n;return t>0?n=Ep(t,e):n=null,n===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Js(this)),n!==null&&this.emit("data",n),n};function Sx(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,Eo(t)}}function Eo(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Ie("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Ui.nextTick(gp,t):gp(t))}function gp(t){Ie("emit readable"),t.emit("readable"),Xs(t)}function Mp(t,e){e.readingMore||(e.readingMore=!0,Ui.nextTick(Bx,t,e))}function Bx(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Ie("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}Pe.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};Pe.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,Ie("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==M.default.stdout&&t!==M.default.stderr,o=n?v:Ee;i.endEmitted?Ui.nextTick(o):r.once("end",o),t.on("unpipe",f);function f(F,K){Ie("onunpipe"),F===r&&K&&K.hasUnpiped===!1&&(K.hasUnpiped=!0,A())}function v(){Ie("onend"),t.end()}var w=Ax(r);t.on("drain",w);var S=!1;function A(){Ie("cleanup"),t.removeListener("close",P),t.removeListener("finish",H),t.removeListener("drain",w),t.removeListener("error",C),t.removeListener("unpipe",f),r.removeListener("end",v),r.removeListener("end",Ee),r.removeListener("data",T),S=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&w()}var q=!1;r.on("data",T);function T(F){Ie("ondata"),q=!1;var K=t.write(F);K===!1&&!q&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Sp(i.pipes,t)!==-1)&&!S&&(Ie("false write response, pause",i.awaitDrain),i.awaitDrain++,q=!0),r.pause())}function C(F){Ie("onerror",F),Ee(),t.removeListener("error",C),mp(t,"error")===0&&t.emit("error",F)}_x(t,"error",C);function P(){t.removeListener("finish",H),Ee()}t.once("close",P);function H(){Ie("onfinish"),t.removeListener("close",P),Ee()}t.once("finish",H);function Ee(){Ie("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(Ie("pipe resume"),r.resume()),t};function Ax(t){return function(){var e=t._readableState;Ie("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&mp(t,"data")&&(e.flowing=!0,Xs(t))}}Pe.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var f=Sp(e.pipes,t);return f===-1?this:(e.pipes.splice(f,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Pe.prototype.on=function(t,e){var r=Ys.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&Eo(this):Ui.nextTick(Rx,this))}return r};Pe.prototype.addListener=Pe.prototype.on;function Rx(t){Ie("readable nexttick read 0"),t.read(0)}Pe.prototype.resume=function(){var t=this._readableState;return t.flowing||(Ie("resume"),t.flowing=!0,qx(this,t)),this};function qx(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ui.nextTick(Tx,t,e))}function Tx(t,e){e.reading||(Ie("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Xs(t),e.flowing&&!e.reading&&t.read(0)}Pe.prototype.pause=function(){return Ie("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ie("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Xs(t){var e=t._readableState;for(Ie("flow",e.flowing);e.flowing&&t.read()!==null;);}Pe.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(Ie("wrapped end"),r.decoder&&!r.ended){var f=r.decoder.end();f&&f.length&&e.push(f)}e.push(null)}),t.on("data",function(f){if(Ie("wrapped data"),r.decoder&&(f=r.decoder.write(f)),!(r.objectMode&&f==null)&&!(!r.objectMode&&(!f||!f.length))){var v=e.push(f);v||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(f){return function(){return t[f].apply(t,arguments)}})(n));for(var o=0;o<zs.length;o++)t.on(zs[o],this.emit.bind(this,zs[o]));return this._read=function(f){Ie("wrapped _read",f),i&&(i=!1,t.resume())},this};Object.defineProperty(Pe.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Pe._fromList=Ep;function Ep(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=kx(t,e.buffer,e.decoder),r}function kx(t,e,r){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?i=e.shift():i=r?Ix(t,e):Cx(t,e),i}function Ix(t,e){var r=e.head,i=1,n=r.data;for(t-=n.length;r=r.next;){var o=r.data,f=t>o.length?o.length:t;if(f===o.length?n+=o:n+=o.slice(0,t),t-=f,t===0){f===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(f));break}++i}return e.length-=i,n}function Cx(t,e){var r=Ln.allocUnsafe(t),i=e.head,n=1;for(i.data.copy(r),t-=i.data.length;i=i.next;){var o=i.data,f=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,f),t-=f,t===0){f===o.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=o.slice(f));break}++n}return e.length-=n,r}function Js(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Ui.nextTick(Ox,e,t))}function Ox(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Sp(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Qs=B((UB,qp)=>{"use strict";b();qp.exports=Zt;var So=Jr(),Rp=Object.create(Oi());Rp.inherits=G();Rp.inherits(Zt,So);function Dx(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Zt(t){if(!(this instanceof Zt))return new Zt(t);So.call(this,t),this._transformState={afterTransform:Dx.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Px)}function Px(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){Ap(t,e,r)}):Ap(this,null,null)}Zt.prototype.push=function(t,e){return this._transformState.needTransform=!1,So.prototype.push.call(this,t,e)};Zt.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};Zt.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Zt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Zt.prototype._destroy=function(t,e){var r=this;So.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function Ap(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var Cp=B((NB,Ip)=>{"use strict";b();Ip.exports=Nn;var Tp=Qs(),kp=Object.create(Oi());kp.inherits=G();kp.inherits(Nn,Tp);function Nn(t){if(!(this instanceof Nn))return new Nn(t);Tp.call(this,t)}Nn.prototype._transform=function(t,e,r){r(null,t)}});var Dp=B((Lt,Op)=>{b();Lt=Op.exports=Vs();Lt.Stream=Lt;Lt.Readable=Lt;Lt.Writable=Ws();Lt.Duplex=Jr();Lt.Transform=Qs();Lt.PassThrough=Cp()});var Lp=B((HB,Up)=>{"use strict";b();var Ux=Se().Buffer,Lx=zd(),Pp=Dp().Transform,Nx=G();function cr(t){Pp.call(this),this._block=Ux.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Nx(cr,Pp);cr.prototype._transform=function(t,e,r){var i=null;try{this.update(t,e)}catch(n){i=n}r(i)};cr.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)};cr.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");for(var r=Lx(t,e),i=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)i[o]=r[n],o+=1,n+=1;this._update(),this._blockOffset=0}for(;n<r.length;)i[this._blockOffset]=r[n],this._blockOffset+=1,n+=1;for(var f=0,v=r.length*8;v>0;++f)this._length[f]+=v,v=this._length[f]/4294967296|0,v>0&&(this._length[f]-=4294967296*v);return this};cr.prototype._update=function(){throw new Error("_update is not implemented")};cr.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e};cr.prototype._digest=function(){throw new Error("_digest is not implemented")};Up.exports=cr});var Ao=B((KB,Gp)=>{"use strict";b();var eu=rt().Buffer,Fx=G(),Kp=Lp(),jx=new Array(16),Fn=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],jn=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],Hn=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],Wn=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],Kn=[0,1518500249,1859775393,2400959708,2840853838],Gn=[1352829926,1548603684,1836072691,2053994217,0];function Yr(t,e){return t<<e|t>>>32-e}function Np(t,e,r,i,n,o,f,v){return Yr(t+(e^r^i)+o+f|0,v)+n|0}function Fp(t,e,r,i,n,o,f,v){return Yr(t+(e&r|~e&i)+o+f|0,v)+n|0}function jp(t,e,r,i,n,o,f,v){return Yr(t+((e|~r)^i)+o+f|0,v)+n|0}function Hp(t,e,r,i,n,o,f,v){return Yr(t+(e&i|r&~i)+o+f|0,v)+n|0}function Wp(t,e,r,i,n,o,f,v){return Yr(t+(e^(r|~i))+o+f|0,v)+n|0}function Bo(){Kp.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}Fx(Bo,Kp);Bo.prototype._update=function(){for(var t=jx,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);for(var r=this._a|0,i=this._b|0,n=this._c|0,o=this._d|0,f=this._e|0,v=this._a|0,w=this._b|0,S=this._c|0,A=this._d|0,q=this._e|0,T=0;T<80;T+=1){var C,P;T<16?(C=Np(r,i,n,o,f,t[Fn[T]],Kn[0],Hn[T]),P=Wp(v,w,S,A,q,t[jn[T]],Gn[0],Wn[T])):T<32?(C=Fp(r,i,n,o,f,t[Fn[T]],Kn[1],Hn[T]),P=Hp(v,w,S,A,q,t[jn[T]],Gn[1],Wn[T])):T<48?(C=jp(r,i,n,o,f,t[Fn[T]],Kn[2],Hn[T]),P=jp(v,w,S,A,q,t[jn[T]],Gn[2],Wn[T])):T<64?(C=Hp(r,i,n,o,f,t[Fn[T]],Kn[3],Hn[T]),P=Fp(v,w,S,A,q,t[jn[T]],Gn[3],Wn[T])):(C=Wp(r,i,n,o,f,t[Fn[T]],Kn[4],Hn[T]),P=Np(v,w,S,A,q,t[jn[T]],Gn[4],Wn[T])),r=f,f=o,o=Yr(n,10),n=i,i=C,v=q,q=A,A=Yr(S,10),S=w,w=P}var H=this._b+n+A|0;this._b=this._c+o+q|0,this._c=this._d+f+v|0,this._d=this._e+r+w|0,this._e=this._a+i+S|0,this._a=H};Bo.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=eu.alloc?eu.alloc(20):new eu(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t};Gp.exports=Bo});var Xr=B((VB,Vp)=>{"use strict";b();var Hx=Se().Buffer,Wx=In();function Ro(t,e){this._block=Hx.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}Ro.prototype.update=function(t,e){t=Wx(t,e||"utf8");for(var r=this._block,i=this._blockSize,n=t.length,o=this._len,f=0;f<n;){for(var v=o%i,w=Math.min(n-f,i-v),S=0;S<w;S++)r[v+S]=t[f+S];o+=w,f+=w,o%i===0&&this._update(r)}return this._len+=n,this};Ro.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=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 i=(r&4294967295)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o};Ro.prototype._update=function(){throw new Error("_update must be implemented by subclass")};Vp.exports=Ro});var Zp=B((zB,zp)=>{"use strict";b();var Kx=G(),$p=Xr(),Gx=Se().Buffer,Vx=[1518500249,1859775393,-1894007588,-899497514],$x=new Array(80);function Vn(){this.init(),this._w=$x,$p.call(this,64,56)}Kx(Vn,$p);Vn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function zx(t){return t<<5|t>>>27}function Zx(t){return t<<30|t>>>2}function Jx(t,e,r,i){return t===0?e&r|~e&i:t===2?e&r|e&i|r&i:e^r^i}Vn.prototype._update=function(t){for(var e=this._w,r=this._a|0,i=this._b|0,n=this._c|0,o=this._d|0,f=this._e|0,v=0;v<16;++v)e[v]=t.readInt32BE(v*4);for(;v<80;++v)e[v]=e[v-3]^e[v-8]^e[v-14]^e[v-16];for(var w=0;w<80;++w){var S=~~(w/20),A=zx(r)+Jx(S,i,n,o)+f+e[w]+Vx[S]|0;f=o,o=n,n=Zx(i),i=r,r=A}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=f+this._e|0};Vn.prototype._hash=function(){var t=Gx.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};zp.exports=Vn});var Xp=B((JB,Yp)=>{"use strict";b();var Yx=G(),Jp=Xr(),Xx=Se().Buffer,Qx=[1518500249,1859775393,-1894007588,-899497514],e3=new Array(80);function $n(){this.init(),this._w=e3,Jp.call(this,64,56)}Yx($n,Jp);$n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function t3(t){return t<<1|t>>>31}function r3(t){return t<<5|t>>>27}function i3(t){return t<<30|t>>>2}function n3(t,e,r,i){return t===0?e&r|~e&i:t===2?e&r|e&i|r&i:e^r^i}$n.prototype._update=function(t){for(var e=this._w,r=this._a|0,i=this._b|0,n=this._c|0,o=this._d|0,f=this._e|0,v=0;v<16;++v)e[v]=t.readInt32BE(v*4);for(;v<80;++v)e[v]=t3(e[v-3]^e[v-8]^e[v-14]^e[v-16]);for(var w=0;w<80;++w){var S=~~(w/20),A=r3(r)+n3(S,i,n,o)+f+e[w]+Qx[S]|0;f=o,o=n,n=i3(i),i=r,r=A}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=f+this._e|0};$n.prototype._hash=function(){var t=Xx.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};Yp.exports=$n});var tu=B((XB,ev)=>{"use strict";b();var a3=G(),Qp=Xr(),o3=Se().Buffer,f3=[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],s3=new Array(64);function zn(){this.init(),this._w=s3,Qp.call(this,64,56)}a3(zn,Qp);zn.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 u3(t,e,r){return r^t&(e^r)}function h3(t,e,r){return t&e|r&(t|e)}function l3(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function c3(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function d3(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function p3(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}zn.prototype._update=function(t){for(var e=this._w,r=this._a|0,i=this._b|0,n=this._c|0,o=this._d|0,f=this._e|0,v=this._f|0,w=this._g|0,S=this._h|0,A=0;A<16;++A)e[A]=t.readInt32BE(A*4);for(;A<64;++A)e[A]=p3(e[A-2])+e[A-7]+d3(e[A-15])+e[A-16]|0;for(var q=0;q<64;++q){var T=S+c3(f)+u3(f,v,w)+f3[q]+e[q]|0,C=l3(r)+h3(r,i,n)|0;S=w,w=v,v=f,f=o+T|0,o=n,n=i,i=r,r=T+C|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=f+this._e|0,this._f=v+this._f|0,this._g=w+this._g|0,this._h=S+this._h|0};zn.prototype._hash=function(){var t=o3.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t};ev.exports=zn});var rv=B((eA,tv)=>{"use strict";b();var v3=G(),y3=tu(),g3=Xr(),m3=Se().Buffer,b3=new Array(64);function qo(){this.init(),this._w=b3,g3.call(this,64,56)}v3(qo,y3);qo.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};qo.prototype._hash=function(){var t=m3.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t};tv.exports=qo});var ru=B((rA,uv)=>{"use strict";b();var w3=G(),sv=Xr(),_3=Se().Buffer,iv=[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],x3=new Array(160);function Zn(){this.init(),this._w=x3,sv.call(this,128,112)}w3(Zn,sv);Zn.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 nv(t,e,r){return r^t&(e^r)}function av(t,e,r){return t&e|r&(t|e)}function ov(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function fv(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function M3(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function E3(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function S3(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function B3(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function Ze(t,e){return t>>>0<e>>>0?1:0}Zn.prototype._update=function(t){for(var e=this._w,r=this._ah|0,i=this._bh|0,n=this._ch|0,o=this._dh|0,f=this._eh|0,v=this._fh|0,w=this._gh|0,S=this._hh|0,A=this._al|0,q=this._bl|0,T=this._cl|0,C=this._dl|0,P=this._el|0,H=this._fl|0,Ee=this._gl|0,F=this._hl|0,K=0;K<32;K+=2)e[K]=t.readInt32BE(K*4),e[K+1]=t.readInt32BE(K*4+4);for(;K<160;K+=2){var Fe=e[K-30],je=e[K-30+1],nr=M3(Fe,je),Ve=E3(je,Fe);Fe=e[K-4],je=e[K-4+1];var Tt=S3(Fe,je),De=B3(je,Fe),st=e[K-14],E=e[K-14+1],h=e[K-32],g=e[K-32+1],c=Ve+E|0,a=nr+st+Ze(c,Ve)|0;c=c+De|0,a=a+Tt+Ze(c,De)|0,c=c+g|0,a=a+h+Ze(c,g)|0,e[K]=a,e[K+1]=c}for(var u=0;u<160;u+=2){a=e[u],c=e[u+1];var d=av(r,i,n),y=av(A,q,T),p=ov(r,A),s=ov(A,r),m=fv(f,P),_=fv(P,f),l=iv[u],x=iv[u+1],I=nv(f,v,w),D=nv(P,H,Ee),O=F+_|0,L=S+m+Ze(O,F)|0;O=O+D|0,L=L+I+Ze(O,D)|0,O=O+x|0,L=L+l+Ze(O,x)|0,O=O+c|0,L=L+a+Ze(O,c)|0;var U=s+y|0,N=p+d+Ze(U,s)|0;S=w,F=Ee,w=v,Ee=H,v=f,H=P,P=C+O|0,f=o+L+Ze(P,C)|0,o=n,C=T,n=i,T=q,i=r,q=A,A=O+U|0,r=L+N+Ze(A,O)|0}this._al=this._al+A|0,this._bl=this._bl+q|0,this._cl=this._cl+T|0,this._dl=this._dl+C|0,this._el=this._el+P|0,this._fl=this._fl+H|0,this._gl=this._gl+Ee|0,this._hl=this._hl+F|0,this._ah=this._ah+r+Ze(this._al,A)|0,this._bh=this._bh+i+Ze(this._bl,q)|0,this._ch=this._ch+n+Ze(this._cl,T)|0,this._dh=this._dh+o+Ze(this._dl,C)|0,this._eh=this._eh+f+Ze(this._el,P)|0,this._fh=this._fh+v+Ze(this._fl,H)|0,this._gh=this._gh+w+Ze(this._gl,Ee)|0,this._hh=this._hh+S+Ze(this._hl,F)|0};Zn.prototype._hash=function(){var t=_3.allocUnsafe(64);function e(r,i,n){t.writeInt32BE(r,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t};uv.exports=Zn});var lv=B((nA,hv)=>{"use strict";b();var A3=G(),R3=ru(),q3=Xr(),T3=Se().Buffer,k3=new Array(160);function To(){this.init(),this._w=k3,q3.call(this,128,112)}A3(To,R3);To.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};To.prototype._hash=function(){var t=T3.allocUnsafe(48);function e(r,i,n){t.writeInt32BE(r,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t};hv.exports=To});var ko=B((oA,Jt)=>{"use strict";b();Jt.exports=function(e){var r=e.toLowerCase(),i=Jt.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i};Jt.exports.sha=Zp();Jt.exports.sha1=Xp();Jt.exports.sha224=rv();Jt.exports.sha256=tu();Jt.exports.sha384=lv();Jt.exports.sha512=ru()});var Yt=B((sA,dv)=>{"use strict";b();var I3=Se().Buffer,cv=Ps().Transform,C3=Ti().StringDecoder,O3=G(),D3=In();function xt(t){cv.call(this),this.hashMode=typeof t=="string",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}O3(xt,cv);xt.prototype.update=function(t,e,r){var i=D3(t,e),n=this._update(i);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)};xt.prototype.setAutoPadding=function(){};xt.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};xt.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};xt.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};xt.prototype._transform=function(t,e,r){var i;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(n){i=n}finally{r(i)}};xt.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(r){e=r}t(e)};xt.prototype._finalOrDigest=function(t){var e=this.__final()||I3.alloc(0);return t&&(e=this._toString(e,t,!0)),e};xt.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new C3(e),this._encoding=e),this._encoding!==e)throw new Error("can\u2019t switch encodings");var i=this._decoder.write(t);return r&&(i+=this._decoder.end()),i};dv.exports=xt});var Jn=B((hA,vv)=>{"use strict";b();var P3=G(),U3=po(),L3=Ao(),N3=ko(),pv=Yt();function Io(t){pv.call(this,"digest"),this._hash=t}P3(Io,pv);Io.prototype._update=function(t){this._hash.update(t)};Io.prototype._final=function(){return this._hash.digest()};vv.exports=function(e){return e=e.toLowerCase(),e==="md5"?new U3:e==="rmd160"||e==="ripemd160"?new L3:new Io(N3(e))}});var mv=B((cA,gv)=>{"use strict";b();var F3=G(),Qr=Se().Buffer,yv=Yt(),j3=Qr.alloc(128),Li=64;function Co(t,e){yv.call(this,"digest"),typeof e=="string"&&(e=Qr.from(e)),this._alg=t,this._key=e,e.length>Li?e=t(e):e.length<Li&&(e=Qr.concat([e,j3],Li));for(var r=this._ipad=Qr.allocUnsafe(Li),i=this._opad=Qr.allocUnsafe(Li),n=0;n<Li;n++)r[n]=e[n]^54,i[n]=e[n]^92;this._hash=[r]}F3(Co,yv);Co.prototype._update=function(t){this._hash.push(t)};Co.prototype._final=function(){var t=this._alg(Qr.concat(this._hash));return this._alg(Qr.concat([this._opad,t]))};gv.exports=Co});var iu=B((pA,bv)=>{b();var H3=po();bv.exports=function(t){return new H3().update(t).digest()}});var xv=B((yA,_v)=>{"use strict";b();var W3=G(),K3=mv(),wv=Yt(),Yn=Se().Buffer,G3=iu(),nu=Ao(),au=ko(),V3=Yn.alloc(128);function Xn(t,e){wv.call(this,"digest"),typeof e=="string"&&(e=Yn.from(e));var r=t==="sha512"||t==="sha384"?128:64;if(this._alg=t,this._key=e,e.length>r){var i=t==="rmd160"?new nu:au(t);e=i.update(e).digest()}else e.length<r&&(e=Yn.concat([e,V3],r));for(var n=this._ipad=Yn.allocUnsafe(r),o=this._opad=Yn.allocUnsafe(r),f=0;f<r;f++)n[f]=e[f]^54,o[f]=e[f]^92;this._hash=t==="rmd160"?new nu:au(t),this._hash.update(n)}W3(Xn,wv);Xn.prototype._update=function(t){this._hash.update(t)};Xn.prototype._final=function(){var t=this._hash.digest(),e=this._alg==="rmd160"?new nu:au(this._alg);return e.update(this._opad).update(t).digest()};_v.exports=function(e,r){return e=e.toLowerCase(),e==="rmd160"||e==="ripemd160"?new Xn("rmd160",r):e==="md5"?new K3(G3,r):new Xn(e,r)}});var Oo=B((mA,Mv)=>{"use strict";b();Mv.exports={}});var ou=B((wA,Ev)=>{"use strict";b();var $3=isFinite,z3=Math.pow(2,30)-1;Ev.exports=function(t,e){if(typeof t!="number")throw new TypeError("Iterations not a number");if(t<0||!$3(t))throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>z3||e!==e)throw new TypeError("Bad key length")}});var fu=B((xA,Bv)=>{"use strict";b();var Do;globalThis.process&&globalThis.process.browser?Do="utf-8":globalThis.process&&globalThis.process.version?(Sv=parseInt(M.default.version.split(".")[0].slice(1),10),Do=Sv>=6?"utf-8":"binary"):Do="utf-8";var Sv;Bv.exports=Do});var su=B((EA,qv)=>{"use strict";b();var Z3=Se().Buffer,J3=In(),Rv=typeof Uint8Array<"u",Y3=Rv&&typeof ArrayBuffer<"u",Av=Y3&&ArrayBuffer.isView;qv.exports=function(t,e,r){if(typeof t=="string"||Z3.isBuffer(t)||Rv&&t instanceof Uint8Array||Av&&Av(t))return J3(t,e);throw new TypeError(r+" must be a string, a Buffer, a Uint8Array, or a DataView")}});var uu=B((BA,Cv)=>{"use strict";b();var X3=iu(),Q3=Ao(),e8=ko(),ei=Se().Buffer,t8=ou(),Tv=fu(),kv=su(),r8=ei.alloc(128),Po={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},i8={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function n8(t){return new Q3().update(t).digest()}function a8(t){function e(r){return e8(t).update(r).digest()}return t==="rmd160"||t==="ripemd160"?n8:t==="md5"?X3:e}function Iv(t,e,r){var i=a8(t),n=t==="sha512"||t==="sha384"?128:64;e.length>n?e=i(e):e.length<n&&(e=ei.concat([e,r8],n));for(var o=ei.allocUnsafe(n+Po[t]),f=ei.allocUnsafe(n+Po[t]),v=0;v<n;v++)o[v]=e[v]^54,f[v]=e[v]^92;var w=ei.allocUnsafe(n+r+4);o.copy(w,0,0,n),this.ipad1=w,this.ipad2=o,this.opad=f,this.alg=t,this.blocksize=n,this.hash=i,this.size=Po[t]}Iv.prototype.run=function(t,e){t.copy(e,this.blocksize);var r=this.hash(e);return r.copy(this.opad,this.blocksize),this.hash(this.opad)};function o8(t,e,r,i,n){t8(r,i),t=kv(t,Tv,"Password"),e=kv(e,Tv,"Salt");var o=(n||"sha1").toLowerCase(),f=i8[o]||o,v=Po[f];if(typeof v!="number"||!v)throw new TypeError("Digest algorithm not supported: "+n);var w=new Iv(f,t,e.length),S=ei.allocUnsafe(i),A=ei.allocUnsafe(e.length+4);e.copy(A,0,0,e.length);for(var q=0,T=v,C=Math.ceil(i/T),P=1;P<=C;P++){A.writeUInt32BE(P,e.length);for(var H=w.run(A,w.ipad1),Ee=H,F=1;F<r;F++){Ee=w.run(Ee,w.ipad2);for(var K=0;K<T;K++)H[K]^=Ee[K]}H.copy(S,q),q+=T}return S}Cv.exports=o8});var Fv=B((RA,Nv)=>{"use strict";b();var Uv=Se().Buffer,f8=ou(),Ov=fu(),Dv=uu(),Pv=su(),Uo,Qn=globalThis.crypto&&globalThis.crypto.subtle,s8={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},hu=[],ti;function lu(){return ti||(globalThis.process&&globalThis.process.nextTick?ti=globalThis.process.nextTick:globalThis.queueMicrotask?ti=globalThis.queueMicrotask:globalThis.setImmediate?ti=globalThis.setImmediate:ti=globalThis.setTimeout,ti)}function Lv(t,e,r,i,n){return Qn.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(o){return Qn.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:n}},o,i<<3)}).then(function(o){return Uv.from(o)})}function u8(t){if(globalThis.process&&!globalThis.process.browser||!Qn||!Qn.importKey||!Qn.deriveBits)return Promise.resolve(!1);if(hu[t]!==void 0)return hu[t];Uo=Uo||Uv.alloc(8);var e=Lv(Uo,Uo,10,128,t).then(function(){return!0},function(){return!1});return hu[t]=e,e}function h8(t,e){t.then(function(r){lu()(function(){e(null,r)})},function(r){lu()(function(){e(r)})})}Nv.exports=function(t,e,r,i,n,o){if(typeof n=="function"&&(o=n,n=void 0),f8(r,i),t=Pv(t,Ov,"Password"),e=Pv(e,Ov,"Salt"),typeof o!="function")throw new Error("No callback provided to pbkdf2");n=n||"sha1";var f=s8[n.toLowerCase()];if(!f||typeof globalThis.Promise!="function"){lu()(function(){var v;try{v=Dv(t,e,r,i,n)}catch(w){o(w);return}o(null,v)});return}h8(u8(f).then(function(v){return v?Lv(t,e,r,i,f):Dv(t,e,r,i,n)}),o)}});var du=B(cu=>{"use strict";b();cu.pbkdf2=Fv();cu.pbkdf2Sync=uu()});var pu=B(dt=>{"use strict";b();dt.readUInt32BE=function(e,r){var i=e[0+r]<<24|e[1+r]<<16|e[2+r]<<8|e[3+r];return i>>>0};dt.writeUInt32BE=function(e,r,i){e[0+i]=r>>>24,e[1+i]=r>>>16&255,e[2+i]=r>>>8&255,e[3+i]=r&255};dt.ip=function(e,r,i,n){for(var o=0,f=0,v=6;v>=0;v-=2){for(var w=0;w<=24;w+=8)o<<=1,o|=r>>>w+v&1;for(var w=0;w<=24;w+=8)o<<=1,o|=e>>>w+v&1}for(var v=6;v>=0;v-=2){for(var w=1;w<=25;w+=8)f<<=1,f|=r>>>w+v&1;for(var w=1;w<=25;w+=8)f<<=1,f|=e>>>w+v&1}i[n+0]=o>>>0,i[n+1]=f>>>0};dt.rip=function(e,r,i,n){for(var o=0,f=0,v=0;v<4;v++)for(var w=24;w>=0;w-=8)o<<=1,o|=r>>>w+v&1,o<<=1,o|=e>>>w+v&1;for(var v=4;v<8;v++)for(var w=24;w>=0;w-=8)f<<=1,f|=r>>>w+v&1,f<<=1,f|=e>>>w+v&1;i[n+0]=o>>>0,i[n+1]=f>>>0};dt.pc1=function(e,r,i,n){for(var o=0,f=0,v=7;v>=5;v--){for(var w=0;w<=24;w+=8)o<<=1,o|=r>>w+v&1;for(var w=0;w<=24;w+=8)o<<=1,o|=e>>w+v&1}for(var w=0;w<=24;w+=8)o<<=1,o|=r>>w+v&1;for(var v=1;v<=3;v++){for(var w=0;w<=24;w+=8)f<<=1,f|=r>>w+v&1;for(var w=0;w<=24;w+=8)f<<=1,f|=e>>w+v&1}for(var w=0;w<=24;w+=8)f<<=1,f|=e>>w+v&1;i[n+0]=o>>>0,i[n+1]=f>>>0};dt.r28shl=function(e,r){return e<<r&268435455|e>>>28-r};var Lo=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];dt.pc2=function(e,r,i,n){for(var o=0,f=0,v=Lo.length>>>1,w=0;w<v;w++)o<<=1,o|=e>>>Lo[w]&1;for(var w=v;w<Lo.length;w++)f<<=1,f|=r>>>Lo[w]&1;i[n+0]=o>>>0,i[n+1]=f>>>0};dt.expand=function(e,r,i){var n=0,o=0;n=(e&1)<<5|e>>>27;for(var f=23;f>=15;f-=4)n<<=6,n|=e>>>f&63;for(var f=11;f>=3;f-=4)o|=e>>>f&63,o<<=6;o|=(e&31)<<1|e>>>31,r[i+0]=n>>>0,r[i+1]=o>>>0};var jv=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];dt.substitute=function(e,r){for(var i=0,n=0;n<4;n++){var o=e>>>18-n*6&63,f=jv[n*64+o];i<<=4,i|=f}for(var n=0;n<4;n++){var o=r>>>18-n*6&63,f=jv[256+n*64+o];i<<=4,i|=f}return i>>>0};var Hv=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];dt.permute=function(e){for(var r=0,i=0;i<Hv.length;i++)r<<=1,r|=e>>>Hv[i]&1;return r>>>0};dt.padSplit=function(e,r,i){for(var n=e.toString(2);n.length<r;)n="0"+n;for(var o=[],f=0;f<r;f+=i)o.push(n.slice(f,f+i));return o.join(" ")}});var Ni=B((OA,Kv)=>{b();Kv.exports=Wv;function Wv(t,e){if(!t)throw new Error(e||"Assertion failed")}Wv.equal=function(e,r,i){if(e!=r)throw new Error(i||"Assertion failed: "+e+" != "+r)}});var No=B((PA,Gv)=>{"use strict";b();var l8=Ni();function pt(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=t.padding!==!1}Gv.exports=pt;pt.prototype._init=function(){};pt.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)};pt.prototype._buffer=function(e,r){for(var i=Math.min(this.buffer.length-this.bufferOff,e.length-r),n=0;n<i;n++)this.buffer[this.bufferOff+n]=e[r+n];return this.bufferOff+=i,i};pt.prototype._flushBuffer=function(e,r){return this._update(this.buffer,0,e,r),this.bufferOff=0,this.blockSize};pt.prototype._updateEncrypt=function(e){var r=0,i=0,n=(this.bufferOff+e.length)/this.blockSize|0,o=new Array(n*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(e,r),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(o,i)));for(var f=e.length-(e.length-r)%this.blockSize;r<f;r+=this.blockSize)this._update(e,r,o,i),i+=this.blockSize;for(;r<e.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=e[r];return o};pt.prototype._updateDecrypt=function(e){for(var r=0,i=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,o=new Array(n*this.blockSize);n>0;n--)r+=this._buffer(e,r),i+=this._flushBuffer(o,i);return r+=this._buffer(e,r),o};pt.prototype.final=function(e){var r;e&&(r=this.update(e));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),r?r.concat(i):i};pt.prototype._pad=function(e,r){if(r===0)return!1;for(;r<e.length;)e[r++]=0;return!0};pt.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e};pt.prototype._unpad=function(e){return e};pt.prototype._finalDecrypt=function(){l8.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}});var vu=B((LA,zv)=>{"use strict";b();var Vv=Ni(),c8=G(),Ge=pu(),$v=No();function d8(){this.tmp=new Array(2),this.keys=null}function Nt(t){$v.call(this,t);var e=new d8;this._desState=e,this.deriveKeys(e,t.key)}c8(Nt,$v);zv.exports=Nt;Nt.create=function(e){return new Nt(e)};var p8=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Nt.prototype.deriveKeys=function(e,r){e.keys=new Array(32),Vv.equal(r.length,this.blockSize,"Invalid key length");var i=Ge.readUInt32BE(r,0),n=Ge.readUInt32BE(r,4);Ge.pc1(i,n,e.tmp,0),i=e.tmp[0],n=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var f=p8[o>>>1];i=Ge.r28shl(i,f),n=Ge.r28shl(n,f),Ge.pc2(i,n,e.keys,o)}};Nt.prototype._update=function(e,r,i,n){var o=this._desState,f=Ge.readUInt32BE(e,r),v=Ge.readUInt32BE(e,r+4);Ge.ip(f,v,o.tmp,0),f=o.tmp[0],v=o.tmp[1],this.type==="encrypt"?this._encrypt(o,f,v,o.tmp,0):this._decrypt(o,f,v,o.tmp,0),f=o.tmp[0],v=o.tmp[1],Ge.writeUInt32BE(i,f,n),Ge.writeUInt32BE(i,v,n+4)};Nt.prototype._pad=function(e,r){if(this.padding===!1)return!1;for(var i=e.length-r,n=r;n<e.length;n++)e[n]=i;return!0};Nt.prototype._unpad=function(e){if(this.padding===!1)return e;for(var r=e[e.length-1],i=e.length-r;i<e.length;i++)Vv.equal(e[i],r);return e.slice(0,e.length-r)};Nt.prototype._encrypt=function(e,r,i,n,o){for(var f=r,v=i,w=0;w<e.keys.length;w+=2){var S=e.keys[w],A=e.keys[w+1];Ge.expand(v,e.tmp,0),S^=e.tmp[0],A^=e.tmp[1];var q=Ge.substitute(S,A),T=Ge.permute(q),C=v;v=(f^T)>>>0,f=C}Ge.rip(v,f,n,o)};Nt.prototype._decrypt=function(e,r,i,n,o){for(var f=i,v=r,w=e.keys.length-2;w>=0;w-=2){var S=e.keys[w],A=e.keys[w+1];Ge.expand(f,e.tmp,0),S^=e.tmp[0],A^=e.tmp[1];var q=Ge.substitute(S,A),T=Ge.permute(q),C=f;f=(v^T)>>>0,v=C}Ge.rip(f,v,n,o)}});var Jv=B(Zv=>{"use strict";b();var v8=Ni(),y8=G(),Fo={};function g8(t){v8.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}function m8(t){function e(o){t.call(this,o),this._cbcInit()}y8(e,t);for(var r=Object.keys(Fo),i=0;i<r.length;i++){var n=r[i];e.prototype[n]=Fo[n]}return e.create=function(f){return new e(f)},e}Zv.instantiate=m8;Fo._cbcInit=function(){var e=new g8(this.options.iv);this._cbcState=e};Fo._update=function(e,r,i,n){var o=this._cbcState,f=this.constructor.super_.prototype,v=o.iv;if(this.type==="encrypt"){for(var w=0;w<this.blockSize;w++)v[w]^=e[r+w];f._update.call(this,v,0,i,n);for(var w=0;w<this.blockSize;w++)v[w]=i[n+w]}else{f._update.call(this,e,r,i,n);for(var w=0;w<this.blockSize;w++)i[n+w]^=v[w];for(var w=0;w<this.blockSize;w++)v[w]=e[r+w]}}});var Qv=B((HA,Xv)=>{"use strict";b();var b8=Ni(),w8=G(),Yv=No(),dr=vu();function _8(t,e){b8.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),i=e.slice(8,16),n=e.slice(16,24);t==="encrypt"?this.ciphers=[dr.create({type:"encrypt",key:r}),dr.create({type:"decrypt",key:i}),dr.create({type:"encrypt",key:n})]:this.ciphers=[dr.create({type:"decrypt",key:n}),dr.create({type:"encrypt",key:i}),dr.create({type:"decrypt",key:r})]}function ri(t){Yv.call(this,t);var e=new _8(this.type,this.options.key);this._edeState=e}w8(ri,Yv);Xv.exports=ri;ri.create=function(e){return new ri(e)};ri.prototype._update=function(e,r,i,n){var o=this._edeState;o.ciphers[0]._update(e,r,i,n),o.ciphers[1]._update(i,n,i,n),o.ciphers[2]._update(i,n,i,n)};ri.prototype._pad=dr.prototype._pad;ri.prototype._unpad=dr.prototype._unpad});var ey=B(Fi=>{"use strict";b();Fi.utils=pu();Fi.Cipher=No();Fi.DES=vu();Fi.CBC=Jv();Fi.EDE=Qv()});var iy=B((VA,ry)=>{b();var ty=Yt(),Xt=ey(),x8=G(),ii=Se().Buffer,ea={"des-ede3-cbc":Xt.CBC.instantiate(Xt.EDE),"des-ede3":Xt.EDE,"des-ede-cbc":Xt.CBC.instantiate(Xt.EDE),"des-ede":Xt.EDE,"des-cbc":Xt.CBC.instantiate(Xt.DES),"des-ecb":Xt.DES};ea.des=ea["des-cbc"];ea.des3=ea["des-ede3-cbc"];ry.exports=jo;x8(jo,ty);function jo(t){ty.call(this);var e=t.mode.toLowerCase(),r=ea[e],i;t.decrypt?i="decrypt":i="encrypt";var n=t.key;ii.isBuffer(n)||(n=ii.from(n)),(e==="des-ede"||e==="des-ede-cbc")&&(n=ii.concat([n,n.slice(0,8)]));var o=t.iv;ii.isBuffer(o)||(o=ii.from(o)),this._des=r.create({key:n,iv:o,type:i})}jo.prototype._update=function(t){return ii.from(this._des.update(t))};jo.prototype._final=function(){return ii.from(this._des.final())}});var ny=B(yu=>{b();yu.encrypt=function(t,e){return t._cipher.encryptBlock(e)};yu.decrypt=function(t,e){return t._cipher.decryptBlock(e)}});var ji=B((JA,ay)=>{b();ay.exports=function(e,r){for(var i=Math.min(e.length,r.length),n=new R.Buffer(i),o=0;o<i;++o)n[o]=e[o]^r[o];return n}});var fy=B(gu=>{b();var oy=ji();gu.encrypt=function(t,e){var r=oy(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev};gu.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return oy(i,r)}});var hy=B(uy=>{b();var ta=Se().Buffer,M8=ji();function sy(t,e,r){var i=e.length,n=M8(e,t._cache);return t._cache=t._cache.slice(i),t._prev=ta.concat([t._prev,r?e:n]),n}uy.encrypt=function(t,e,r){for(var i=ta.allocUnsafe(0),n;e.length;)if(t._cache.length===0&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=ta.allocUnsafe(0)),t._cache.length<=e.length)n=t._cache.length,i=ta.concat([i,sy(t,e.slice(0,n),r)]),e=e.slice(n);else{i=ta.concat([i,sy(t,e,r)]);break}return i}});var cy=B(ly=>{b();var mu=Se().Buffer;function E8(t,e,r){var i=t._cipher.encryptBlock(t._prev),n=i[0]^e;return t._prev=mu.concat([t._prev.slice(1),mu.from([r?e:n])]),n}ly.encrypt=function(t,e,r){for(var i=e.length,n=mu.allocUnsafe(i),o=-1;++o<i;)n[o]=E8(t,e[o],r);return n}});var py=B(dy=>{b();var Ho=Se().Buffer;function S8(t,e,r){for(var i,n=-1,o=8,f=0,v,w;++n<o;)i=t._cipher.encryptBlock(t._prev),v=e&1<<7-n?128:0,w=i[0]^v,f+=(w&128)>>n%8,t._prev=B8(t._prev,r?v:w);return f}function B8(t,e){var r=t.length,i=-1,n=Ho.allocUnsafe(t.length);for(t=Ho.concat([t,Ho.from([e])]);++i<r;)n[i]=t[i]<<1|t[i+1]>>7;return n}dy.encrypt=function(t,e,r){for(var i=e.length,n=Ho.allocUnsafe(i),o=-1;++o<i;)n[o]=S8(t,e[o],r);return n}});var yy=B(vy=>{b();var A8=ji();function R8(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}vy.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=R.Buffer.concat([t._cache,R8(t)]);var r=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),A8(e,r)}});var bu=B((s7,gy)=>{b();function q8(t){for(var e=t.length,r;e--;)if(r=t.readUInt8(e),r===255)t.writeUInt8(0,e);else{r++,t.writeUInt8(r,e);break}}gy.exports=q8});var _u=B(by=>{b();var T8=ji(),my=Se().Buffer,k8=bu();function I8(t){var e=t._cipher.encryptBlockRaw(t._prev);return k8(t._prev),e}var wu=16;by.encrypt=function(t,e){var r=Math.ceil(e.length/wu),i=t._cache.length;t._cache=my.concat([t._cache,my.allocUnsafe(r*wu)]);for(var n=0;n<r;n++){var o=I8(t),f=i+n*wu;t._cache.writeUInt32BE(o[0],f+0),t._cache.writeUInt32BE(o[1],f+4),t._cache.writeUInt32BE(o[2],f+8),t._cache.writeUInt32BE(o[3],f+12)}var v=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),T8(e,v)}});var xu=B((c7,C8)=>{C8.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var Ko=B((d7,wy)=>{b();var O8={ECB:ny(),CBC:fy(),CFB:hy(),CFB8:cy(),CFB1:py(),OFB:yy(),CTR:_u(),GCM:_u()},Wo=xu();for(Mu in Wo)Wo[Mu].module=O8[Wo[Mu].mode];var Mu;wy.exports=Wo});var ra=B((v7,xy)=>{b();var Go=Se().Buffer;function Su(t){Go.isBuffer(t)||(t=Go.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i<e;i++)r[i]=t.readUInt32BE(i*4);return r}function Eu(t){for(var e=0;e<t.length;t++)t[e]=0}function _y(t,e,r,i,n){for(var o=r[0],f=r[1],v=r[2],w=r[3],S=t[0]^e[0],A=t[1]^e[1],q=t[2]^e[2],T=t[3]^e[3],C,P,H,Ee,F=4,K=1;K<n;K++)C=o[S>>>24]^f[A>>>16&255]^v[q>>>8&255]^w[T&255]^e[F++],P=o[A>>>24]^f[q>>>16&255]^v[T>>>8&255]^w[S&255]^e[F++],H=o[q>>>24]^f[T>>>16&255]^v[S>>>8&255]^w[A&255]^e[F++],Ee=o[T>>>24]^f[S>>>16&255]^v[A>>>8&255]^w[q&255]^e[F++],S=C,A=P,q=H,T=Ee;return C=(i[S>>>24]<<24|i[A>>>16&255]<<16|i[q>>>8&255]<<8|i[T&255])^e[F++],P=(i[A>>>24]<<24|i[q>>>16&255]<<16|i[T>>>8&255]<<8|i[S&255])^e[F++],H=(i[q>>>24]<<24|i[T>>>16&255]<<16|i[S>>>8&255]<<8|i[A&255])^e[F++],Ee=(i[T>>>24]<<24|i[S>>>16&255]<<16|i[A>>>8&255]<<8|i[q&255])^e[F++],C=C>>>0,P=P>>>0,H=H>>>0,Ee=Ee>>>0,[C,P,H,Ee]}var D8=[0,1,2,4,8,16,32,64,128,27,54],Ke=(function(){for(var t=new Array(256),e=0;e<256;e++)e<128?t[e]=e<<1:t[e]=e<<1^283;for(var r=[],i=[],n=[[],[],[],[]],o=[[],[],[],[]],f=0,v=0,w=0;w<256;++w){var S=v^v<<1^v<<2^v<<3^v<<4;S=S>>>8^S&255^99,r[f]=S,i[S]=f;var A=t[f],q=t[A],T=t[q],C=t[S]*257^S*16843008;n[0][f]=C<<24|C>>>8,n[1][f]=C<<16|C>>>16,n[2][f]=C<<8|C>>>24,n[3][f]=C,C=T*16843009^q*65537^A*257^f*16843008,o[0][S]=C<<24|C>>>8,o[1][S]=C<<16|C>>>16,o[2][S]=C<<8|C>>>24,o[3][S]=C,f===0?f=v=1:(f=A^t[t[t[T^A]]],v^=t[t[v]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:o}})();function vt(t){this._key=Su(t),this._reset()}vt.blockSize=16;vt.keySize=256/8;vt.prototype.blockSize=vt.blockSize;vt.prototype.keySize=vt.keySize;vt.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,i=(r+1)*4,n=[],o=0;o<e;o++)n[o]=t[o];for(o=e;o<i;o++){var f=n[o-1];o%e===0?(f=f<<8|f>>>24,f=Ke.SBOX[f>>>24]<<24|Ke.SBOX[f>>>16&255]<<16|Ke.SBOX[f>>>8&255]<<8|Ke.SBOX[f&255],f^=D8[o/e|0]<<24):e>6&&o%e===4&&(f=Ke.SBOX[f>>>24]<<24|Ke.SBOX[f>>>16&255]<<16|Ke.SBOX[f>>>8&255]<<8|Ke.SBOX[f&255]),n[o]=n[o-e]^f}for(var v=[],w=0;w<i;w++){var S=i-w,A=n[S-(w%4?0:4)];w<4||S<=4?v[w]=A:v[w]=Ke.INV_SUB_MIX[0][Ke.SBOX[A>>>24]]^Ke.INV_SUB_MIX[1][Ke.SBOX[A>>>16&255]]^Ke.INV_SUB_MIX[2][Ke.SBOX[A>>>8&255]]^Ke.INV_SUB_MIX[3][Ke.SBOX[A&255]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=v};vt.prototype.encryptBlockRaw=function(t){return t=Su(t),_y(t,this._keySchedule,Ke.SUB_MIX,Ke.SBOX,this._nRounds)};vt.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=Go.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r};vt.prototype.decryptBlock=function(t){t=Su(t);var e=t[1];t[1]=t[3],t[3]=e;var r=_y(t,this._invKeySchedule,Ke.INV_SUB_MIX,Ke.INV_SBOX,this._nRounds),i=Go.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i};vt.prototype.scrub=function(){Eu(this._keySchedule),Eu(this._invKeySchedule),Eu(this._key)};xy.exports.AES=vt});var Sy=B((g7,Ey)=>{b();var Hi=Se().Buffer,P8=Hi.alloc(16,0);function U8(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function My(t){var e=Hi.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function ia(t){this.h=t,this.state=Hi.alloc(16,0),this.cache=Hi.allocUnsafe(0)}ia.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()};ia.prototype._multiply=function(){for(var t=U8(this.h),e=[0,0,0,0],r,i,n,o=-1;++o<128;){for(i=(this.state[~~(o/8)]&1<<7-o%8)!==0,i&&(e[0]^=t[0],e[1]^=t[1],e[2]^=t[2],e[3]^=t[3]),n=(t[3]&1)!==0,r=3;r>0;r--)t[r]=t[r]>>>1|(t[r-1]&1)<<31;t[0]=t[0]>>>1,n&&(t[0]=t[0]^225<<24)}this.state=My(e)};ia.prototype.update=function(t){this.cache=Hi.concat([this.cache,t]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};ia.prototype.final=function(t,e){return this.cache.length&&this.ghash(Hi.concat([this.cache,P8],16)),this.ghash(My([0,t,0,e])),this.state};Ey.exports=ia});var Bu=B((b7,Ry)=>{b();var L8=ra(),at=Se().Buffer,By=Yt(),N8=G(),Ay=Sy(),F8=ji(),j8=bu();function H8(t,e){var r=0;t.length!==e.length&&r++;for(var i=Math.min(t.length,e.length),n=0;n<i;++n)r+=t[n]^e[n];return r}function W8(t,e,r){if(e.length===12)return t._finID=at.concat([e,at.from([0,0,0,1])]),at.concat([e,at.from([0,0,0,2])]);var i=new Ay(r),n=e.length,o=n%16;i.update(e),o&&(o=16-o,i.update(at.alloc(o,0))),i.update(at.alloc(8,0));var f=n*8,v=at.alloc(8);v.writeUIntBE(f,0,8),i.update(v),t._finID=i.state;var w=at.from(t._finID);return j8(w),w}function ni(t,e,r,i){By.call(this);var n=at.alloc(4,0);this._cipher=new L8.AES(e);var o=this._cipher.encryptBlock(n);this._ghash=new Ay(o),r=W8(this,r,o),this._prev=at.from(r),this._cache=at.allocUnsafe(0),this._secCache=at.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}N8(ni,By);ni.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=at.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r};ni.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=F8(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&H8(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()};ni.prototype.getAuthTag=function(){if(this._decrypt||!at.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};ni.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e};ni.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length};Ry.exports=ni});var Ru=B((_7,Ty)=>{b();var K8=ra(),Au=Se().Buffer,qy=Yt(),G8=G();function Vo(t,e,r,i){qy.call(this),this._cipher=new K8.AES(e),this._prev=Au.from(r),this._cache=Au.allocUnsafe(0),this._secCache=Au.allocUnsafe(0),this._decrypt=i,this._mode=t}G8(Vo,qy);Vo.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)};Vo.prototype._final=function(){this._cipher.scrub()};Ty.exports=Vo});var na=B((M7,ky)=>{b();var ai=Se().Buffer,V8=po();function $8(t,e,r,i){if(ai.isBuffer(t)||(t=ai.from(t,"binary")),e&&(ai.isBuffer(e)||(e=ai.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=r/8,o=ai.alloc(n),f=ai.alloc(i||0),v=ai.alloc(0);n>0||i>0;){var w=new V8;w.update(v),w.update(t),e&&w.update(e),v=w.digest();var S=0;if(n>0){var A=o.length-n;S=Math.min(n,v.length),v.copy(o,A,0,S),n-=S}if(S<v.length&&i>0){var q=f.length-i,T=Math.min(i,v.length-S);v.copy(f,q,S,S+T),i-=T}}return v.fill(0),{key:o,iv:f}}ky.exports=$8});var Dy=B(qu=>{b();var Iy=Ko(),z8=Bu(),Qt=Se().Buffer,Z8=Ru(),Cy=Yt(),J8=ra(),Y8=na(),X8=G();function aa(t,e,r){Cy.call(this),this._cache=new $o,this._cipher=new J8.AES(e),this._prev=Qt.from(r),this._mode=t,this._autopadding=!0}X8(aa,Cy);aa.prototype._update=function(t){this._cache.add(t);for(var e,r,i=[];e=this._cache.get();)r=this._mode.encrypt(this,e),i.push(r);return Qt.concat(i)};var Q8=Qt.alloc(16,16);aa.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(Q8))throw this._cipher.scrub(),new Error("data not multiple of block length")};aa.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function $o(){this.cache=Qt.allocUnsafe(0)}$o.prototype.add=function(t){this.cache=Qt.concat([this.cache,t])};$o.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null};$o.prototype.flush=function(){for(var t=16-this.cache.length,e=Qt.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return Qt.concat([this.cache,e])};function Oy(t,e,r){var i=Iy[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof e=="string"&&(e=Qt.from(e)),e.length!==i.key/8)throw new TypeError("invalid key length "+e.length);if(typeof r=="string"&&(r=Qt.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);return i.type==="stream"?new Z8(i.module,e,r):i.type==="auth"?new z8(i.module,e,r):new aa(i.module,e,r)}function e4(t,e){var r=Iy[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=Y8(e,!1,r.key,r.iv);return Oy(t,i.key,i.iv)}qu.createCipheriv=Oy;qu.createCipher=e4});var Ny=B(Tu=>{b();var t4=Bu(),Wi=Se().Buffer,Py=Ko(),r4=Ru(),Uy=Yt(),i4=ra(),n4=na(),a4=G();function oa(t,e,r){Uy.call(this),this._cache=new zo,this._last=void 0,this._cipher=new i4.AES(e),this._prev=Wi.from(r),this._mode=t,this._autopadding=!0}a4(oa,Uy);oa.prototype._update=function(t){this._cache.add(t);for(var e,r,i=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),i.push(r);return Wi.concat(i)};oa.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return o4(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")};oa.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function zo(){this.cache=Wi.allocUnsafe(0)}zo.prototype.add=function(t){this.cache=Wi.concat([this.cache,t])};zo.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};zo.prototype.flush=function(){if(this.cache.length)return this.cache};function o4(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var r=-1;++r<e;)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(e!==16)return t.slice(0,16-e)}function Ly(t,e,r){var i=Py[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof r=="string"&&(r=Wi.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if(typeof e=="string"&&(e=Wi.from(e)),e.length!==i.key/8)throw new TypeError("invalid key length "+e.length);return i.type==="stream"?new r4(i.module,e,r,!0):i.type==="auth"?new t4(i.module,e,r,!0):new oa(i.module,e,r)}function f4(t,e){var r=Py[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=n4(e,!1,r.key,r.iv);return Ly(t,i.key,i.iv)}Tu.createDecipher=f4;Tu.createDecipheriv=Ly});var Zo=B(Mt=>{b();var Fy=Dy(),jy=Ny(),s4=xu();function u4(){return Object.keys(s4)}Mt.createCipher=Mt.Cipher=Fy.createCipher;Mt.createCipheriv=Mt.Cipheriv=Fy.createCipheriv;Mt.createDecipher=Mt.Decipher=jy.createDecipher;Mt.createDecipheriv=Mt.Decipheriv=jy.createDecipheriv;Mt.listCiphers=Mt.getCiphers=u4});var Hy=B(er=>{b();er["des-ecb"]={key:8,iv:0};er["des-cbc"]=er.des={key:8,iv:8};er["des-ede3-cbc"]=er.des3={key:24,iv:8};er["des-ede3"]={key:24,iv:0};er["des-ede-cbc"]={key:16,iv:8};er["des-ede"]={key:16,iv:0}});var $y=B(Et=>{b();var Wy=iy(),ku=Zo(),pr=Ko(),tr=Hy(),Ky=na();function h4(t,e){t=t.toLowerCase();var r,i;if(pr[t])r=pr[t].key,i=pr[t].iv;else if(tr[t])r=tr[t].key*8,i=tr[t].iv;else throw new TypeError("invalid suite type");var n=Ky(e,!1,r,i);return Gy(t,n.key,n.iv)}function l4(t,e){t=t.toLowerCase();var r,i;if(pr[t])r=pr[t].key,i=pr[t].iv;else if(tr[t])r=tr[t].key*8,i=tr[t].iv;else throw new TypeError("invalid suite type");var n=Ky(e,!1,r,i);return Vy(t,n.key,n.iv)}function Gy(t,e,r){if(t=t.toLowerCase(),pr[t])return ku.createCipheriv(t,e,r);if(tr[t])return new Wy({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function Vy(t,e,r){if(t=t.toLowerCase(),pr[t])return ku.createDecipheriv(t,e,r);if(tr[t])return new Wy({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}function c4(){return Object.keys(tr).concat(ku.getCiphers())}Et.createCipher=Et.Cipher=h4;Et.createCipheriv=Et.Cipheriv=Gy;Et.createDecipher=Et.Decipher=l4;Et.createDecipheriv=Et.Decipheriv=Vy;Et.listCiphers=Et.getCiphers=c4});var vr=B((zy,Iu)=>{b();(function(t,e){"use strict";function r(E,h){if(!E)throw new Error(h||"Assertion failed")}function i(E,h){E.super_=h;var g=function(){};g.prototype=h.prototype,E.prototype=new g,E.prototype.constructor=E}function n(E,h,g){if(n.isBN(E))return E;this.negative=0,this.words=null,this.length=0,this.red=null,E!==null&&((h==="le"||h==="be")&&(g=h,h=10),this._init(E||0,h||10,g||"be"))}typeof t=="object"?t.exports=n:e.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=rt().Buffer}catch{}n.isBN=function(h){return h instanceof n?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===n.wordSize&&Array.isArray(h.words)},n.max=function(h,g){return h.cmp(g)>0?h:g},n.min=function(h,g){return h.cmp(g)<0?h:g},n.prototype._init=function(h,g,c){if(typeof h=="number")return this._initNumber(h,g,c);if(typeof h=="object")return this._initArray(h,g,c);g==="hex"&&(g=16),r(g===(g|0)&&g>=2&&g<=36),h=h.toString().replace(/\s+/g,"");var a=0;h[0]==="-"&&(a++,this.negative=1),a<h.length&&(g===16?this._parseHex(h,a,c):(this._parseBase(h,g,a),c==="le"&&this._initArray(this.toArray(),g,c)))},n.prototype._initNumber=function(h,g,c){h<0&&(this.negative=1,h=-h),h<67108864?(this.words=[h&67108863],this.length=1):h<4503599627370496?(this.words=[h&67108863,h/67108864&67108863],this.length=2):(r(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3),c==="le"&&this._initArray(this.toArray(),g,c)},n.prototype._initArray=function(h,g,c){if(r(typeof h.length=="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var u,d,y=0;if(c==="be")for(a=h.length-1,u=0;a>=0;a-=3)d=h[a]|h[a-1]<<8|h[a-2]<<16,this.words[u]|=d<<y&67108863,this.words[u+1]=d>>>26-y&67108863,y+=24,y>=26&&(y-=26,u++);else if(c==="le")for(a=0,u=0;a<h.length;a+=3)d=h[a]|h[a+1]<<8|h[a+2]<<16,this.words[u]|=d<<y&67108863,this.words[u+1]=d>>>26-y&67108863,y+=24,y>=26&&(y-=26,u++);return this.strip()};function f(E,h){var g=E.charCodeAt(h);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function v(E,h,g){var c=f(E,g);return g-1>=h&&(c|=f(E,g-1)<<4),c}n.prototype._parseHex=function(h,g,c){this.length=Math.ceil((h.length-g)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var u=0,d=0,y;if(c==="be")for(a=h.length-1;a>=g;a-=2)y=v(h,g,a)<<u,this.words[d]|=y&67108863,u>=18?(u-=18,d+=1,this.words[d]|=y>>>26):u+=8;else{var p=h.length-g;for(a=p%2===0?g+1:g;a<h.length;a+=2)y=v(h,g,a)<<u,this.words[d]|=y&67108863,u>=18?(u-=18,d+=1,this.words[d]|=y>>>26):u+=8}this.strip()};function w(E,h,g,c){for(var a=0,u=Math.min(E.length,g),d=h;d<u;d++){var y=E.charCodeAt(d)-48;a*=c,y>=49?a+=y-49+10:y>=17?a+=y-17+10:a+=y}return a}n.prototype._parseBase=function(h,g,c){this.words=[0],this.length=1;for(var a=0,u=1;u<=67108863;u*=g)a++;a--,u=u/g|0;for(var d=h.length-c,y=d%a,p=Math.min(d,d-y)+c,s=0,m=c;m<p;m+=a)s=w(h,m,m+a,g),this.imuln(u),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(y!==0){var _=1;for(s=w(h,m,h.length,g),m=0;m<y;m++)_*=g;this.imuln(_),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},n.prototype.copy=function(h){h.words=new Array(this.length);for(var g=0;g<this.length;g++)h.words[g]=this.words[g];h.length=this.length,h.negative=this.negative,h.red=this.red},n.prototype.clone=function(){var h=new n(null);return this.copy(h),h},n.prototype._expand=function(h){for(;this.length<h;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],q=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(h,g){h=h||10,g=g|0||1;var c;if(h===16||h==="hex"){c="";for(var a=0,u=0,d=0;d<this.length;d++){var y=this.words[d],p=((y<<a|u)&16777215).toString(16);u=y>>>24-a&16777215,a+=2,a>=26&&(a-=26,d--),u!==0||d!==this.length-1?c=S[6-p.length]+p+c:c=p+c}for(u!==0&&(c=u.toString(16)+c);c.length%g!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}if(h===(h|0)&&h>=2&&h<=36){var s=A[h],m=q[h];c="";var _=this.clone();for(_.negative=0;!_.isZero();){var l=_.modn(m).toString(h);_=_.idivn(m),_.isZero()?c=l+c:c=S[s-l.length]+l+c}for(this.isZero()&&(c="0"+c);c.length%g!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(h,g){return r(typeof o<"u"),this.toArrayLike(o,h,g)},n.prototype.toArray=function(h,g){return this.toArrayLike(Array,h,g)},n.prototype.toArrayLike=function(h,g,c){var a=this.byteLength(),u=c||Math.max(1,a);r(a<=u,"byte array longer than desired length"),r(u>0,"Requested array length <= 0"),this.strip();var d=g==="le",y=new h(u),p,s,m=this.clone();if(d){for(s=0;!m.isZero();s++)p=m.andln(255),m.iushrn(8),y[s]=p;for(;s<u;s++)y[s]=0}else{for(s=0;s<u-a;s++)y[s]=0;for(s=0;!m.isZero();s++)p=m.andln(255),m.iushrn(8),y[u-s-1]=p}return y},Math.clz32?n.prototype._countBits=function(h){return 32-Math.clz32(h)}:n.prototype._countBits=function(h){var g=h,c=0;return g>=4096&&(c+=13,g>>>=13),g>=64&&(c+=7,g>>>=7),g>=8&&(c+=4,g>>>=4),g>=2&&(c+=2,g>>>=2),c+g},n.prototype._zeroBits=function(h){if(h===0)return 26;var g=h,c=0;return(g&8191)===0&&(c+=13,g>>>=13),(g&127)===0&&(c+=7,g>>>=7),(g&15)===0&&(c+=4,g>>>=4),(g&3)===0&&(c+=2,g>>>=2),(g&1)===0&&c++,c},n.prototype.bitLength=function(){var h=this.words[this.length-1],g=this._countBits(h);return(this.length-1)*26+g};function T(E){for(var h=new Array(E.bitLength()),g=0;g<h.length;g++){var c=g/26|0,a=g%26;h[g]=(E.words[c]&1<<a)>>>a}return h}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,g=0;g<this.length;g++){var c=this._zeroBits(this.words[g]);if(h+=c,c!==26)break}return h},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(h){return this.negative!==0?this.abs().inotn(h).iaddn(1):this.clone()},n.prototype.fromTwos=function(h){return this.testn(h-1)?this.notn(h).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(h){for(;this.length<h.length;)this.words[this.length++]=0;for(var g=0;g<h.length;g++)this.words[g]=this.words[g]|h.words[g];return this.strip()},n.prototype.ior=function(h){return r((this.negative|h.negative)===0),this.iuor(h)},n.prototype.or=function(h){return this.length>h.length?this.clone().ior(h):h.clone().ior(this)},n.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},n.prototype.iuand=function(h){var g;this.length>h.length?g=h:g=this;for(var c=0;c<g.length;c++)this.words[c]=this.words[c]&h.words[c];return this.length=g.length,this.strip()},n.prototype.iand=function(h){return r((this.negative|h.negative)===0),this.iuand(h)},n.prototype.and=function(h){return this.length>h.length?this.clone().iand(h):h.clone().iand(this)},n.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},n.prototype.iuxor=function(h){var g,c;this.length>h.length?(g=this,c=h):(g=h,c=this);for(var a=0;a<c.length;a++)this.words[a]=g.words[a]^c.words[a];if(this!==g)for(;a<g.length;a++)this.words[a]=g.words[a];return this.length=g.length,this.strip()},n.prototype.ixor=function(h){return r((this.negative|h.negative)===0),this.iuxor(h)},n.prototype.xor=function(h){return this.length>h.length?this.clone().ixor(h):h.clone().ixor(this)},n.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},n.prototype.inotn=function(h){r(typeof h=="number"&&h>=0);var g=Math.ceil(h/26)|0,c=h%26;this._expand(g),c>0&&g--;for(var a=0;a<g;a++)this.words[a]=~this.words[a]&67108863;for(c>0&&(this.words[a]=~this.words[a]&67108863>>26-c,a++);a<this.length;a++)this.words[a]=0;return this.strip()},n.prototype.notn=function(h){return this.clone().inotn(h)},n.prototype.setn=function(h,g){r(typeof h=="number"&&h>=0);var c=h/26|0,a=h%26;return this._expand(c+1),g?this.words[c]=this.words[c]|1<<a:this.words[c]=this.words[c]&~(1<<a),this.strip()},n.prototype.iadd=function(h){var g;if(this.negative!==0&&h.negative===0)return this.negative=0,g=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,g=this.isub(h),h.negative=1,g._normSign();var c,a;this.length>h.length?(c=this,a=h):(c=h,a=this);for(var u=0,d=0;d<a.length;d++)g=(c.words[d]|0)+(a.words[d]|0)+u,this.words[d]=g&67108863,u=g>>>26;for(;u!==0&&d<c.length;d++)g=(c.words[d]|0)+u,this.words[d]=g&67108863,u=g>>>26;if(this.length=c.length,u!==0)this.words[this.length]=u,this.length++;else if(c!==this)for(;d<c.length;d++)this.words[d]=c.words[d];return this},n.prototype.add=function(h){var g;return h.negative!==0&&this.negative===0?(h.negative=0,g=this.sub(h),h.negative^=1,g):h.negative===0&&this.negative!==0?(this.negative=0,g=h.sub(this),this.negative=1,g):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},n.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var g=this.iadd(h);return h.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var c=this.cmp(h);if(c===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,u;c>0?(a=this,u=h):(a=h,u=this);for(var d=0,y=0;y<u.length;y++)g=(a.words[y]|0)-(u.words[y]|0)+d,d=g>>26,this.words[y]=g&67108863;for(;d!==0&&y<a.length;y++)g=(a.words[y]|0)+d,d=g>>26,this.words[y]=g&67108863;if(d===0&&y<a.length&&a!==this)for(;y<a.length;y++)this.words[y]=a.words[y];return this.length=Math.max(this.length,y),a!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(h){return this.clone().isub(h)};function C(E,h,g){g.negative=h.negative^E.negative;var c=E.length+h.length|0;g.length=c,c=c-1|0;var a=E.words[0]|0,u=h.words[0]|0,d=a*u,y=d&67108863,p=d/67108864|0;g.words[0]=y;for(var s=1;s<c;s++){for(var m=p>>>26,_=p&67108863,l=Math.min(s,h.length-1),x=Math.max(0,s-E.length+1);x<=l;x++){var I=s-x|0;a=E.words[I]|0,u=h.words[x]|0,d=a*u+_,m+=d/67108864|0,_=d&67108863}g.words[s]=_|0,p=m|0}return p!==0?g.words[s]=p|0:g.length--,g.strip()}var P=function(h,g,c){var a=h.words,u=g.words,d=c.words,y=0,p,s,m,_=a[0]|0,l=_&8191,x=_>>>13,I=a[1]|0,D=I&8191,O=I>>>13,L=a[2]|0,U=L&8191,N=L>>>13,bt=a[3]|0,j=bt&8191,W=bt>>>13,Yi=a[4]|0,V=Yi&8191,$=Yi>>>13,Xi=a[5]|0,z=Xi&8191,Z=Xi>>>13,Qi=a[6]|0,J=Qi&8191,Y=Qi>>>13,en=a[7]|0,X=en&8191,Q=en>>>13,tn=a[8]|0,ee=tn&8191,te=tn>>>13,rn=a[9]|0,re=rn&8191,ie=rn>>>13,nn=u[0]|0,ne=nn&8191,ae=nn>>>13,an=u[1]|0,oe=an&8191,fe=an>>>13,on=u[2]|0,se=on&8191,ue=on>>>13,fn=u[3]|0,he=fn&8191,le=fn>>>13,sn=u[4]|0,ce=sn&8191,de=sn>>>13,un=u[5]|0,pe=un&8191,ve=un>>>13,hn=u[6]|0,ye=hn&8191,ge=hn>>>13,ln=u[7]|0,me=ln&8191,be=ln>>>13,cn=u[8]|0,we=cn&8191,_e=cn>>>13,dn=u[9]|0,xe=dn&8191,Me=dn>>>13;c.negative=h.negative^g.negative,c.length=19,p=Math.imul(l,ne),s=Math.imul(l,ae),s=s+Math.imul(x,ne)|0,m=Math.imul(x,ae);var hi=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(hi>>>26)|0,hi&=67108863,p=Math.imul(D,ne),s=Math.imul(D,ae),s=s+Math.imul(O,ne)|0,m=Math.imul(O,ae),p=p+Math.imul(l,oe)|0,s=s+Math.imul(l,fe)|0,s=s+Math.imul(x,oe)|0,m=m+Math.imul(x,fe)|0;var Ue=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,p=Math.imul(U,ne),s=Math.imul(U,ae),s=s+Math.imul(N,ne)|0,m=Math.imul(N,ae),p=p+Math.imul(D,oe)|0,s=s+Math.imul(D,fe)|0,s=s+Math.imul(O,oe)|0,m=m+Math.imul(O,fe)|0,p=p+Math.imul(l,se)|0,s=s+Math.imul(l,ue)|0,s=s+Math.imul(x,se)|0,m=m+Math.imul(x,ue)|0;var Le=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Le>>>26)|0,Le&=67108863,p=Math.imul(j,ne),s=Math.imul(j,ae),s=s+Math.imul(W,ne)|0,m=Math.imul(W,ae),p=p+Math.imul(U,oe)|0,s=s+Math.imul(U,fe)|0,s=s+Math.imul(N,oe)|0,m=m+Math.imul(N,fe)|0,p=p+Math.imul(D,se)|0,s=s+Math.imul(D,ue)|0,s=s+Math.imul(O,se)|0,m=m+Math.imul(O,ue)|0,p=p+Math.imul(l,he)|0,s=s+Math.imul(l,le)|0,s=s+Math.imul(x,he)|0,m=m+Math.imul(x,le)|0;var gr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(gr>>>26)|0,gr&=67108863,p=Math.imul(V,ne),s=Math.imul(V,ae),s=s+Math.imul($,ne)|0,m=Math.imul($,ae),p=p+Math.imul(j,oe)|0,s=s+Math.imul(j,fe)|0,s=s+Math.imul(W,oe)|0,m=m+Math.imul(W,fe)|0,p=p+Math.imul(U,se)|0,s=s+Math.imul(U,ue)|0,s=s+Math.imul(N,se)|0,m=m+Math.imul(N,ue)|0,p=p+Math.imul(D,he)|0,s=s+Math.imul(D,le)|0,s=s+Math.imul(O,he)|0,m=m+Math.imul(O,le)|0,p=p+Math.imul(l,ce)|0,s=s+Math.imul(l,de)|0,s=s+Math.imul(x,ce)|0,m=m+Math.imul(x,de)|0;var mr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(mr>>>26)|0,mr&=67108863,p=Math.imul(z,ne),s=Math.imul(z,ae),s=s+Math.imul(Z,ne)|0,m=Math.imul(Z,ae),p=p+Math.imul(V,oe)|0,s=s+Math.imul(V,fe)|0,s=s+Math.imul($,oe)|0,m=m+Math.imul($,fe)|0,p=p+Math.imul(j,se)|0,s=s+Math.imul(j,ue)|0,s=s+Math.imul(W,se)|0,m=m+Math.imul(W,ue)|0,p=p+Math.imul(U,he)|0,s=s+Math.imul(U,le)|0,s=s+Math.imul(N,he)|0,m=m+Math.imul(N,le)|0,p=p+Math.imul(D,ce)|0,s=s+Math.imul(D,de)|0,s=s+Math.imul(O,ce)|0,m=m+Math.imul(O,de)|0,p=p+Math.imul(l,pe)|0,s=s+Math.imul(l,ve)|0,s=s+Math.imul(x,pe)|0,m=m+Math.imul(x,ve)|0;var br=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(br>>>26)|0,br&=67108863,p=Math.imul(J,ne),s=Math.imul(J,ae),s=s+Math.imul(Y,ne)|0,m=Math.imul(Y,ae),p=p+Math.imul(z,oe)|0,s=s+Math.imul(z,fe)|0,s=s+Math.imul(Z,oe)|0,m=m+Math.imul(Z,fe)|0,p=p+Math.imul(V,se)|0,s=s+Math.imul(V,ue)|0,s=s+Math.imul($,se)|0,m=m+Math.imul($,ue)|0,p=p+Math.imul(j,he)|0,s=s+Math.imul(j,le)|0,s=s+Math.imul(W,he)|0,m=m+Math.imul(W,le)|0,p=p+Math.imul(U,ce)|0,s=s+Math.imul(U,de)|0,s=s+Math.imul(N,ce)|0,m=m+Math.imul(N,de)|0,p=p+Math.imul(D,pe)|0,s=s+Math.imul(D,ve)|0,s=s+Math.imul(O,pe)|0,m=m+Math.imul(O,ve)|0,p=p+Math.imul(l,ye)|0,s=s+Math.imul(l,ge)|0,s=s+Math.imul(x,ye)|0,m=m+Math.imul(x,ge)|0;var wr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(wr>>>26)|0,wr&=67108863,p=Math.imul(X,ne),s=Math.imul(X,ae),s=s+Math.imul(Q,ne)|0,m=Math.imul(Q,ae),p=p+Math.imul(J,oe)|0,s=s+Math.imul(J,fe)|0,s=s+Math.imul(Y,oe)|0,m=m+Math.imul(Y,fe)|0,p=p+Math.imul(z,se)|0,s=s+Math.imul(z,ue)|0,s=s+Math.imul(Z,se)|0,m=m+Math.imul(Z,ue)|0,p=p+Math.imul(V,he)|0,s=s+Math.imul(V,le)|0,s=s+Math.imul($,he)|0,m=m+Math.imul($,le)|0,p=p+Math.imul(j,ce)|0,s=s+Math.imul(j,de)|0,s=s+Math.imul(W,ce)|0,m=m+Math.imul(W,de)|0,p=p+Math.imul(U,pe)|0,s=s+Math.imul(U,ve)|0,s=s+Math.imul(N,pe)|0,m=m+Math.imul(N,ve)|0,p=p+Math.imul(D,ye)|0,s=s+Math.imul(D,ge)|0,s=s+Math.imul(O,ye)|0,m=m+Math.imul(O,ge)|0,p=p+Math.imul(l,me)|0,s=s+Math.imul(l,be)|0,s=s+Math.imul(x,me)|0,m=m+Math.imul(x,be)|0;var _r=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(_r>>>26)|0,_r&=67108863,p=Math.imul(ee,ne),s=Math.imul(ee,ae),s=s+Math.imul(te,ne)|0,m=Math.imul(te,ae),p=p+Math.imul(X,oe)|0,s=s+Math.imul(X,fe)|0,s=s+Math.imul(Q,oe)|0,m=m+Math.imul(Q,fe)|0,p=p+Math.imul(J,se)|0,s=s+Math.imul(J,ue)|0,s=s+Math.imul(Y,se)|0,m=m+Math.imul(Y,ue)|0,p=p+Math.imul(z,he)|0,s=s+Math.imul(z,le)|0,s=s+Math.imul(Z,he)|0,m=m+Math.imul(Z,le)|0,p=p+Math.imul(V,ce)|0,s=s+Math.imul(V,de)|0,s=s+Math.imul($,ce)|0,m=m+Math.imul($,de)|0,p=p+Math.imul(j,pe)|0,s=s+Math.imul(j,ve)|0,s=s+Math.imul(W,pe)|0,m=m+Math.imul(W,ve)|0,p=p+Math.imul(U,ye)|0,s=s+Math.imul(U,ge)|0,s=s+Math.imul(N,ye)|0,m=m+Math.imul(N,ge)|0,p=p+Math.imul(D,me)|0,s=s+Math.imul(D,be)|0,s=s+Math.imul(O,me)|0,m=m+Math.imul(O,be)|0,p=p+Math.imul(l,we)|0,s=s+Math.imul(l,_e)|0,s=s+Math.imul(x,we)|0,m=m+Math.imul(x,_e)|0;var xr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(xr>>>26)|0,xr&=67108863,p=Math.imul(re,ne),s=Math.imul(re,ae),s=s+Math.imul(ie,ne)|0,m=Math.imul(ie,ae),p=p+Math.imul(ee,oe)|0,s=s+Math.imul(ee,fe)|0,s=s+Math.imul(te,oe)|0,m=m+Math.imul(te,fe)|0,p=p+Math.imul(X,se)|0,s=s+Math.imul(X,ue)|0,s=s+Math.imul(Q,se)|0,m=m+Math.imul(Q,ue)|0,p=p+Math.imul(J,he)|0,s=s+Math.imul(J,le)|0,s=s+Math.imul(Y,he)|0,m=m+Math.imul(Y,le)|0,p=p+Math.imul(z,ce)|0,s=s+Math.imul(z,de)|0,s=s+Math.imul(Z,ce)|0,m=m+Math.imul(Z,de)|0,p=p+Math.imul(V,pe)|0,s=s+Math.imul(V,ve)|0,s=s+Math.imul($,pe)|0,m=m+Math.imul($,ve)|0,p=p+Math.imul(j,ye)|0,s=s+Math.imul(j,ge)|0,s=s+Math.imul(W,ye)|0,m=m+Math.imul(W,ge)|0,p=p+Math.imul(U,me)|0,s=s+Math.imul(U,be)|0,s=s+Math.imul(N,me)|0,m=m+Math.imul(N,be)|0,p=p+Math.imul(D,we)|0,s=s+Math.imul(D,_e)|0,s=s+Math.imul(O,we)|0,m=m+Math.imul(O,_e)|0,p=p+Math.imul(l,xe)|0,s=s+Math.imul(l,Me)|0,s=s+Math.imul(x,xe)|0,m=m+Math.imul(x,Me)|0;var Mr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,p=Math.imul(re,oe),s=Math.imul(re,fe),s=s+Math.imul(ie,oe)|0,m=Math.imul(ie,fe),p=p+Math.imul(ee,se)|0,s=s+Math.imul(ee,ue)|0,s=s+Math.imul(te,se)|0,m=m+Math.imul(te,ue)|0,p=p+Math.imul(X,he)|0,s=s+Math.imul(X,le)|0,s=s+Math.imul(Q,he)|0,m=m+Math.imul(Q,le)|0,p=p+Math.imul(J,ce)|0,s=s+Math.imul(J,de)|0,s=s+Math.imul(Y,ce)|0,m=m+Math.imul(Y,de)|0,p=p+Math.imul(z,pe)|0,s=s+Math.imul(z,ve)|0,s=s+Math.imul(Z,pe)|0,m=m+Math.imul(Z,ve)|0,p=p+Math.imul(V,ye)|0,s=s+Math.imul(V,ge)|0,s=s+Math.imul($,ye)|0,m=m+Math.imul($,ge)|0,p=p+Math.imul(j,me)|0,s=s+Math.imul(j,be)|0,s=s+Math.imul(W,me)|0,m=m+Math.imul(W,be)|0,p=p+Math.imul(U,we)|0,s=s+Math.imul(U,_e)|0,s=s+Math.imul(N,we)|0,m=m+Math.imul(N,_e)|0,p=p+Math.imul(D,xe)|0,s=s+Math.imul(D,Me)|0,s=s+Math.imul(O,xe)|0,m=m+Math.imul(O,Me)|0;var Er=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Er>>>26)|0,Er&=67108863,p=Math.imul(re,se),s=Math.imul(re,ue),s=s+Math.imul(ie,se)|0,m=Math.imul(ie,ue),p=p+Math.imul(ee,he)|0,s=s+Math.imul(ee,le)|0,s=s+Math.imul(te,he)|0,m=m+Math.imul(te,le)|0,p=p+Math.imul(X,ce)|0,s=s+Math.imul(X,de)|0,s=s+Math.imul(Q,ce)|0,m=m+Math.imul(Q,de)|0,p=p+Math.imul(J,pe)|0,s=s+Math.imul(J,ve)|0,s=s+Math.imul(Y,pe)|0,m=m+Math.imul(Y,ve)|0,p=p+Math.imul(z,ye)|0,s=s+Math.imul(z,ge)|0,s=s+Math.imul(Z,ye)|0,m=m+Math.imul(Z,ge)|0,p=p+Math.imul(V,me)|0,s=s+Math.imul(V,be)|0,s=s+Math.imul($,me)|0,m=m+Math.imul($,be)|0,p=p+Math.imul(j,we)|0,s=s+Math.imul(j,_e)|0,s=s+Math.imul(W,we)|0,m=m+Math.imul(W,_e)|0,p=p+Math.imul(U,xe)|0,s=s+Math.imul(U,Me)|0,s=s+Math.imul(N,xe)|0,m=m+Math.imul(N,Me)|0;var Sr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,p=Math.imul(re,he),s=Math.imul(re,le),s=s+Math.imul(ie,he)|0,m=Math.imul(ie,le),p=p+Math.imul(ee,ce)|0,s=s+Math.imul(ee,de)|0,s=s+Math.imul(te,ce)|0,m=m+Math.imul(te,de)|0,p=p+Math.imul(X,pe)|0,s=s+Math.imul(X,ve)|0,s=s+Math.imul(Q,pe)|0,m=m+Math.imul(Q,ve)|0,p=p+Math.imul(J,ye)|0,s=s+Math.imul(J,ge)|0,s=s+Math.imul(Y,ye)|0,m=m+Math.imul(Y,ge)|0,p=p+Math.imul(z,me)|0,s=s+Math.imul(z,be)|0,s=s+Math.imul(Z,me)|0,m=m+Math.imul(Z,be)|0,p=p+Math.imul(V,we)|0,s=s+Math.imul(V,_e)|0,s=s+Math.imul($,we)|0,m=m+Math.imul($,_e)|0,p=p+Math.imul(j,xe)|0,s=s+Math.imul(j,Me)|0,s=s+Math.imul(W,xe)|0,m=m+Math.imul(W,Me)|0;var Br=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Br>>>26)|0,Br&=67108863,p=Math.imul(re,ce),s=Math.imul(re,de),s=s+Math.imul(ie,ce)|0,m=Math.imul(ie,de),p=p+Math.imul(ee,pe)|0,s=s+Math.imul(ee,ve)|0,s=s+Math.imul(te,pe)|0,m=m+Math.imul(te,ve)|0,p=p+Math.imul(X,ye)|0,s=s+Math.imul(X,ge)|0,s=s+Math.imul(Q,ye)|0,m=m+Math.imul(Q,ge)|0,p=p+Math.imul(J,me)|0,s=s+Math.imul(J,be)|0,s=s+Math.imul(Y,me)|0,m=m+Math.imul(Y,be)|0,p=p+Math.imul(z,we)|0,s=s+Math.imul(z,_e)|0,s=s+Math.imul(Z,we)|0,m=m+Math.imul(Z,_e)|0,p=p+Math.imul(V,xe)|0,s=s+Math.imul(V,Me)|0,s=s+Math.imul($,xe)|0,m=m+Math.imul($,Me)|0;var Ar=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,p=Math.imul(re,pe),s=Math.imul(re,ve),s=s+Math.imul(ie,pe)|0,m=Math.imul(ie,ve),p=p+Math.imul(ee,ye)|0,s=s+Math.imul(ee,ge)|0,s=s+Math.imul(te,ye)|0,m=m+Math.imul(te,ge)|0,p=p+Math.imul(X,me)|0,s=s+Math.imul(X,be)|0,s=s+Math.imul(Q,me)|0,m=m+Math.imul(Q,be)|0,p=p+Math.imul(J,we)|0,s=s+Math.imul(J,_e)|0,s=s+Math.imul(Y,we)|0,m=m+Math.imul(Y,_e)|0,p=p+Math.imul(z,xe)|0,s=s+Math.imul(z,Me)|0,s=s+Math.imul(Z,xe)|0,m=m+Math.imul(Z,Me)|0;var Rr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,p=Math.imul(re,ye),s=Math.imul(re,ge),s=s+Math.imul(ie,ye)|0,m=Math.imul(ie,ge),p=p+Math.imul(ee,me)|0,s=s+Math.imul(ee,be)|0,s=s+Math.imul(te,me)|0,m=m+Math.imul(te,be)|0,p=p+Math.imul(X,we)|0,s=s+Math.imul(X,_e)|0,s=s+Math.imul(Q,we)|0,m=m+Math.imul(Q,_e)|0,p=p+Math.imul(J,xe)|0,s=s+Math.imul(J,Me)|0,s=s+Math.imul(Y,xe)|0,m=m+Math.imul(Y,Me)|0;var qr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(qr>>>26)|0,qr&=67108863,p=Math.imul(re,me),s=Math.imul(re,be),s=s+Math.imul(ie,me)|0,m=Math.imul(ie,be),p=p+Math.imul(ee,we)|0,s=s+Math.imul(ee,_e)|0,s=s+Math.imul(te,we)|0,m=m+Math.imul(te,_e)|0,p=p+Math.imul(X,xe)|0,s=s+Math.imul(X,Me)|0,s=s+Math.imul(Q,xe)|0,m=m+Math.imul(Q,Me)|0;var Tr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,p=Math.imul(re,we),s=Math.imul(re,_e),s=s+Math.imul(ie,we)|0,m=Math.imul(ie,_e),p=p+Math.imul(ee,xe)|0,s=s+Math.imul(ee,Me)|0,s=s+Math.imul(te,xe)|0,m=m+Math.imul(te,Me)|0;var kr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(kr>>>26)|0,kr&=67108863,p=Math.imul(re,xe),s=Math.imul(re,Me),s=s+Math.imul(ie,xe)|0,m=Math.imul(ie,Me);var Ir=(y+p|0)+((s&8191)<<13)|0;return y=(m+(s>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,d[0]=hi,d[1]=Ue,d[2]=Le,d[3]=gr,d[4]=mr,d[5]=br,d[6]=wr,d[7]=_r,d[8]=xr,d[9]=Mr,d[10]=Er,d[11]=Sr,d[12]=Br,d[13]=Ar,d[14]=Rr,d[15]=qr,d[16]=Tr,d[17]=kr,d[18]=Ir,y!==0&&(d[19]=y,c.length++),c};Math.imul||(P=C);function H(E,h,g){g.negative=h.negative^E.negative,g.length=E.length+h.length;for(var c=0,a=0,u=0;u<g.length-1;u++){var d=a;a=0;for(var y=c&67108863,p=Math.min(u,h.length-1),s=Math.max(0,u-E.length+1);s<=p;s++){var m=u-s,_=E.words[m]|0,l=h.words[s]|0,x=_*l,I=x&67108863;d=d+(x/67108864|0)|0,I=I+y|0,y=I&67108863,d=d+(I>>>26)|0,a+=d>>>26,d&=67108863}g.words[u]=y,c=d,d=a}return c!==0?g.words[u]=c:g.length--,g.strip()}function Ee(E,h,g){var c=new F;return c.mulp(E,h,g)}n.prototype.mulTo=function(h,g){var c,a=this.length+h.length;return this.length===10&&h.length===10?c=P(this,h,g):a<63?c=C(this,h,g):a<1024?c=H(this,h,g):c=Ee(this,h,g),c};function F(E,h){this.x=E,this.y=h}F.prototype.makeRBT=function(h){for(var g=new Array(h),c=n.prototype._countBits(h)-1,a=0;a<h;a++)g[a]=this.revBin(a,c,h);return g},F.prototype.revBin=function(h,g,c){if(h===0||h===c-1)return h;for(var a=0,u=0;u<g;u++)a|=(h&1)<<g-u-1,h>>=1;return a},F.prototype.permute=function(h,g,c,a,u,d){for(var y=0;y<d;y++)a[y]=g[h[y]],u[y]=c[h[y]]},F.prototype.transform=function(h,g,c,a,u,d){this.permute(d,h,g,c,a,u);for(var y=1;y<u;y<<=1)for(var p=y<<1,s=Math.cos(2*Math.PI/p),m=Math.sin(2*Math.PI/p),_=0;_<u;_+=p)for(var l=s,x=m,I=0;I<y;I++){var D=c[_+I],O=a[_+I],L=c[_+I+y],U=a[_+I+y],N=l*L-x*U;U=l*U+x*L,L=N,c[_+I]=D+L,a[_+I]=O+U,c[_+I+y]=D-L,a[_+I+y]=O-U,I!==p&&(N=s*l-m*x,x=s*x+m*l,l=N)}},F.prototype.guessLen13b=function(h,g){var c=Math.max(g,h)|1,a=c&1,u=0;for(c=c/2|0;c;c=c>>>1)u++;return 1<<u+1+a},F.prototype.conjugate=function(h,g,c){if(!(c<=1))for(var a=0;a<c/2;a++){var u=h[a];h[a]=h[c-a-1],h[c-a-1]=u,u=g[a],g[a]=-g[c-a-1],g[c-a-1]=-u}},F.prototype.normalize13b=function(h,g){for(var c=0,a=0;a<g/2;a++){var u=Math.round(h[2*a+1]/g)*8192+Math.round(h[2*a]/g)+c;h[a]=u&67108863,u<67108864?c=0:c=u/67108864|0}return h},F.prototype.convert13b=function(h,g,c,a){for(var u=0,d=0;d<g;d++)u=u+(h[d]|0),c[2*d]=u&8191,u=u>>>13,c[2*d+1]=u&8191,u=u>>>13;for(d=2*g;d<a;++d)c[d]=0;r(u===0),r((u&-8192)===0)},F.prototype.stub=function(h){for(var g=new Array(h),c=0;c<h;c++)g[c]=0;return g},F.prototype.mulp=function(h,g,c){var a=2*this.guessLen13b(h.length,g.length),u=this.makeRBT(a),d=this.stub(a),y=new Array(a),p=new Array(a),s=new Array(a),m=new Array(a),_=new Array(a),l=new Array(a),x=c.words;x.length=a,this.convert13b(h.words,h.length,y,a),this.convert13b(g.words,g.length,m,a),this.transform(y,d,p,s,a,u),this.transform(m,d,_,l,a,u);for(var I=0;I<a;I++){var D=p[I]*_[I]-s[I]*l[I];s[I]=p[I]*l[I]+s[I]*_[I],p[I]=D}return this.conjugate(p,s,a),this.transform(p,s,x,d,a,u),this.conjugate(x,d,a),this.normalize13b(x,a),c.negative=h.negative^g.negative,c.length=h.length+g.length,c.strip()},n.prototype.mul=function(h){var g=new n(null);return g.words=new Array(this.length+h.length),this.mulTo(h,g)},n.prototype.mulf=function(h){var g=new n(null);return g.words=new Array(this.length+h.length),Ee(this,h,g)},n.prototype.imul=function(h){return this.clone().mulTo(h,this)},n.prototype.imuln=function(h){r(typeof h=="number"),r(h<67108864);for(var g=0,c=0;c<this.length;c++){var a=(this.words[c]|0)*h,u=(a&67108863)+(g&67108863);g>>=26,g+=a/67108864|0,g+=u>>>26,this.words[c]=u&67108863}return g!==0&&(this.words[c]=g,this.length++),h===0&&(this.length=1,this._normSign()),this},n.prototype.muln=function(h){return this.clone().imuln(h)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(h){var g=T(h);if(g.length===0)return new n(1);for(var c=this,a=0;a<g.length&&g[a]===0;a++,c=c.sqr());if(++a<g.length)for(var u=c.sqr();a<g.length;a++,u=u.sqr())g[a]!==0&&(c=c.mul(u));return c},n.prototype.iushln=function(h){r(typeof h=="number"&&h>=0);var g=h%26,c=(h-g)/26,a=67108863>>>26-g<<26-g,u;if(g!==0){var d=0;for(u=0;u<this.length;u++){var y=this.words[u]&a,p=(this.words[u]|0)-y<<g;this.words[u]=p|d,d=y>>>26-g}d&&(this.words[u]=d,this.length++)}if(c!==0){for(u=this.length-1;u>=0;u--)this.words[u+c]=this.words[u];for(u=0;u<c;u++)this.words[u]=0;this.length+=c}return this.strip()},n.prototype.ishln=function(h){return r(this.negative===0),this.iushln(h)},n.prototype.iushrn=function(h,g,c){r(typeof h=="number"&&h>=0);var a;g?a=(g-g%26)/26:a=0;var u=h%26,d=Math.min((h-u)/26,this.length),y=67108863^67108863>>>u<<u,p=c;if(a-=d,a=Math.max(0,a),p){for(var s=0;s<d;s++)p.words[s]=this.words[s];p.length=d}if(d!==0)if(this.length>d)for(this.length-=d,s=0;s<this.length;s++)this.words[s]=this.words[s+d];else this.words[0]=0,this.length=1;var m=0;for(s=this.length-1;s>=0&&(m!==0||s>=a);s--){var _=this.words[s]|0;this.words[s]=m<<26-u|_>>>u,m=_&y}return p&&m!==0&&(p.words[p.length++]=m),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(h,g,c){return r(this.negative===0),this.iushrn(h,g,c)},n.prototype.shln=function(h){return this.clone().ishln(h)},n.prototype.ushln=function(h){return this.clone().iushln(h)},n.prototype.shrn=function(h){return this.clone().ishrn(h)},n.prototype.ushrn=function(h){return this.clone().iushrn(h)},n.prototype.testn=function(h){r(typeof h=="number"&&h>=0);var g=h%26,c=(h-g)/26,a=1<<g;if(this.length<=c)return!1;var u=this.words[c];return!!(u&a)},n.prototype.imaskn=function(h){r(typeof h=="number"&&h>=0);var g=h%26,c=(h-g)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=c)return this;if(g!==0&&c++,this.length=Math.min(c,this.length),g!==0){var a=67108863^67108863>>>g<<g;this.words[this.length-1]&=a}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.maskn=function(h){return this.clone().imaskn(h)},n.prototype.iaddn=function(h){return r(typeof h=="number"),r(h<67108864),h<0?this.isubn(-h):this.negative!==0?this.length===1&&(this.words[0]|0)<h?(this.words[0]=h-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(h),this.negative=1,this):this._iaddn(h)},n.prototype._iaddn=function(h){this.words[0]+=h;for(var g=0;g<this.length&&this.words[g]>=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},n.prototype.isubn=function(h){if(r(typeof h=="number"),r(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g<this.length&&this.words[g]<0;g++)this.words[g]+=67108864,this.words[g+1]-=1;return this.strip()},n.prototype.addn=function(h){return this.clone().iaddn(h)},n.prototype.subn=function(h){return this.clone().isubn(h)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(h,g,c){var a=h.length+c,u;this._expand(a);var d,y=0;for(u=0;u<h.length;u++){d=(this.words[u+c]|0)+y;var p=(h.words[u]|0)*g;d-=p&67108863,y=(d>>26)-(p/67108864|0),this.words[u+c]=d&67108863}for(;u<this.length-c;u++)d=(this.words[u+c]|0)+y,y=d>>26,this.words[u+c]=d&67108863;if(y===0)return this.strip();for(r(y===-1),y=0,u=0;u<this.length;u++)d=-(this.words[u]|0)+y,y=d>>26,this.words[u]=d&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(h,g){var c=this.length-h.length,a=this.clone(),u=h,d=u.words[u.length-1]|0,y=this._countBits(d);c=26-y,c!==0&&(u=u.ushln(c),a.iushln(c),d=u.words[u.length-1]|0);var p=a.length-u.length,s;if(g!=="mod"){s=new n(null),s.length=p+1,s.words=new Array(s.length);for(var m=0;m<s.length;m++)s.words[m]=0}var _=a.clone()._ishlnsubmul(u,1,p);_.negative===0&&(a=_,s&&(s.words[p]=1));for(var l=p-1;l>=0;l--){var x=(a.words[u.length+l]|0)*67108864+(a.words[u.length+l-1]|0);for(x=Math.min(x/d|0,67108863),a._ishlnsubmul(u,x,l);a.negative!==0;)x--,a.negative=0,a._ishlnsubmul(u,1,l),a.isZero()||(a.negative^=1);s&&(s.words[l]=x)}return s&&s.strip(),a.strip(),g!=="div"&&c!==0&&a.iushrn(c),{div:s||null,mod:a}},n.prototype.divmod=function(h,g,c){if(r(!h.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var a,u,d;return this.negative!==0&&h.negative===0?(d=this.neg().divmod(h,g),g!=="mod"&&(a=d.div.neg()),g!=="div"&&(u=d.mod.neg(),c&&u.negative!==0&&u.iadd(h)),{div:a,mod:u}):this.negative===0&&h.negative!==0?(d=this.divmod(h.neg(),g),g!=="mod"&&(a=d.div.neg()),{div:a,mod:d.mod}):(this.negative&h.negative)!==0?(d=this.neg().divmod(h.neg(),g),g!=="div"&&(u=d.mod.neg(),c&&u.negative!==0&&u.isub(h)),{div:d.div,mod:u}):h.length>this.length||this.cmp(h)<0?{div:new n(0),mod:this}:h.length===1?g==="div"?{div:this.divn(h.words[0]),mod:null}:g==="mod"?{div:null,mod:new n(this.modn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new n(this.modn(h.words[0]))}:this._wordDiv(h,g)},n.prototype.div=function(h){return this.divmod(h,"div",!1).div},n.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},n.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},n.prototype.divRound=function(h){var g=this.divmod(h);if(g.mod.isZero())return g.div;var c=g.mod.abs(),a=h.abs().iushrn(1),u=h.words[0]&1,d=c.cmp(a);if(d<0||u===1&&d===0)return g.div;var y=new n(1);return y.negative=this.negative^h.negative,g.div.iadd(y)},n.prototype.modn=function(h){r(h<=67108863);for(var g=(1<<26)%h,c=0,a=this.length-1;a>=0;a--)c=(g*c+(this.words[a]|0))%h;return c},n.prototype.idivn=function(h){r(h<=67108863);for(var g=0,c=this.length-1;c>=0;c--){var a=(this.words[c]|0)+g*67108864;this.words[c]=a/h|0,g=a%h}return this.strip()},n.prototype.divn=function(h){return this.clone().idivn(h)},n.prototype.egcd=function(h){r(h.negative===0),r(!h.isZero());var g=this,c=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var a=new n(1),u=new n(0),d=new n(0),y=new n(1),p=0;g.isEven()&&c.isEven();)g.iushrn(1),c.iushrn(1),++p;for(var s=c.clone(),m=g.clone();!g.isZero();){for(var _=0,l=1;(g.words[0]&l)===0&&_<26;++_,l<<=1);if(_>0)for(g.iushrn(_);_-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(s),u.isub(m)),a.iushrn(1),u.iushrn(1);for(var x=0,I=1;(c.words[0]&I)===0&&x<26;++x,I<<=1);if(x>0)for(c.iushrn(x);x-- >0;)(d.isOdd()||y.isOdd())&&(d.iadd(s),y.isub(m)),d.iushrn(1),y.iushrn(1);g.cmp(c)>=0?(g.isub(c),a.isub(d),u.isub(y)):(c.isub(g),d.isub(a),y.isub(u))}return{a:d,b:y,gcd:c.iushln(p)}},n.prototype._invmp=function(h){r(h.negative===0),r(!h.isZero());var g=this,c=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var a=new n(1),u=new n(0),d=c.clone();g.cmpn(1)>0&&c.cmpn(1)>0;){for(var y=0,p=1;(g.words[0]&p)===0&&y<26;++y,p<<=1);if(y>0)for(g.iushrn(y);y-- >0;)a.isOdd()&&a.iadd(d),a.iushrn(1);for(var s=0,m=1;(c.words[0]&m)===0&&s<26;++s,m<<=1);if(s>0)for(c.iushrn(s);s-- >0;)u.isOdd()&&u.iadd(d),u.iushrn(1);g.cmp(c)>=0?(g.isub(c),a.isub(u)):(c.isub(g),u.isub(a))}var _;return g.cmpn(1)===0?_=a:_=u,_.cmpn(0)<0&&_.iadd(h),_},n.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var g=this.clone(),c=h.clone();g.negative=0,c.negative=0;for(var a=0;g.isEven()&&c.isEven();a++)g.iushrn(1),c.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;c.isEven();)c.iushrn(1);var u=g.cmp(c);if(u<0){var d=g;g=c,c=d}else if(u===0||c.cmpn(1)===0)break;g.isub(c)}while(!0);return c.iushln(a)},n.prototype.invm=function(h){return this.egcd(h).a.umod(h)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(h){return this.words[0]&h},n.prototype.bincn=function(h){r(typeof h=="number");var g=h%26,c=(h-g)/26,a=1<<g;if(this.length<=c)return this._expand(c+1),this.words[c]|=a,this;for(var u=a,d=c;u!==0&&d<this.length;d++){var y=this.words[d]|0;y+=u,u=y>>>26,y&=67108863,this.words[d]=y}return u!==0&&(this.words[d]=u,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(h){var g=h<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this.strip();var c;if(this.length>1)c=1;else{g&&(h=-h),r(h<=67108863,"Number is too big");var a=this.words[0]|0;c=a===h?0:a<h?-1:1}return this.negative!==0?-c|0:c},n.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var g=this.ucmp(h);return this.negative!==0?-g|0:g},n.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var g=0,c=this.length-1;c>=0;c--){var a=this.words[c]|0,u=h.words[c]|0;if(a!==u){a<u?g=-1:a>u&&(g=1);break}}return g},n.prototype.gtn=function(h){return this.cmpn(h)===1},n.prototype.gt=function(h){return this.cmp(h)===1},n.prototype.gten=function(h){return this.cmpn(h)>=0},n.prototype.gte=function(h){return this.cmp(h)>=0},n.prototype.ltn=function(h){return this.cmpn(h)===-1},n.prototype.lt=function(h){return this.cmp(h)===-1},n.prototype.lten=function(h){return this.cmpn(h)<=0},n.prototype.lte=function(h){return this.cmp(h)<=0},n.prototype.eqn=function(h){return this.cmpn(h)===0},n.prototype.eq=function(h){return this.cmp(h)===0},n.red=function(h){return new De(h)},n.prototype.toRed=function(h){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(h){return this.red=h,this},n.prototype.forceRed=function(h){return r(!this.red,"Already a number in reduction context"),this._forceRed(h)},n.prototype.redAdd=function(h){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},n.prototype.redIAdd=function(h){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},n.prototype.redSub=function(h){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},n.prototype.redISub=function(h){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},n.prototype.redShl=function(h){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},n.prototype.redMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},n.prototype.redIMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(h){return r(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var K={k256:null,p224:null,p192:null,p25519:null};function Fe(E,h){this.name=E,this.p=new n(h,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Fe.prototype._tmp=function(){var h=new n(null);return h.words=new Array(Math.ceil(this.n/13)),h},Fe.prototype.ireduce=function(h){var g=h,c;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),c=g.bitLength();while(c>this.n);var a=c<this.n?-1:g.ucmp(this.p);return a===0?(g.words[0]=0,g.length=1):a>0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},Fe.prototype.split=function(h,g){h.iushrn(this.n,0,g)},Fe.prototype.imulK=function(h){return h.imul(this.k)};function je(){Fe.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(je,Fe),je.prototype.split=function(h,g){for(var c=4194303,a=Math.min(h.length,9),u=0;u<a;u++)g.words[u]=h.words[u];if(g.length=a,h.length<=9){h.words[0]=0,h.length=1;return}var d=h.words[9];for(g.words[g.length++]=d&c,u=10;u<h.length;u++){var y=h.words[u]|0;h.words[u-10]=(y&c)<<4|d>>>22,d=y}d>>>=22,h.words[u-10]=d,d===0&&h.length>10?h.length-=10:h.length-=9},je.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var g=0,c=0;c<h.length;c++){var a=h.words[c]|0;g+=a*977,h.words[c]=g&67108863,g=a*64+(g/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function nr(){Fe.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(nr,Fe);function Ve(){Fe.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(Ve,Fe);function Tt(){Fe.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(Tt,Fe),Tt.prototype.imulK=function(h){for(var g=0,c=0;c<h.length;c++){var a=(h.words[c]|0)*19+g,u=a&67108863;a>>>=26,h.words[c]=u,g=a}return g!==0&&(h.words[h.length++]=g),h},n._prime=function(h){if(K[h])return K[h];var g;if(h==="k256")g=new je;else if(h==="p224")g=new nr;else if(h==="p192")g=new Ve;else if(h==="p25519")g=new Tt;else throw new Error("Unknown prime "+h);return K[h]=g,g};function De(E){if(typeof E=="string"){var h=n._prime(E);this.m=h.p,this.prime=h}else r(E.gtn(1),"modulus must be greater than 1"),this.m=E,this.prime=null}De.prototype._verify1=function(h){r(h.negative===0,"red works only with positives"),r(h.red,"red works only with red numbers")},De.prototype._verify2=function(h,g){r((h.negative|g.negative)===0,"red works only with positives"),r(h.red&&h.red===g.red,"red works only with red numbers")},De.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):h.umod(this.m)._forceRed(this)},De.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},De.prototype.add=function(h,g){this._verify2(h,g);var c=h.add(g);return c.cmp(this.m)>=0&&c.isub(this.m),c._forceRed(this)},De.prototype.iadd=function(h,g){this._verify2(h,g);var c=h.iadd(g);return c.cmp(this.m)>=0&&c.isub(this.m),c},De.prototype.sub=function(h,g){this._verify2(h,g);var c=h.sub(g);return c.cmpn(0)<0&&c.iadd(this.m),c._forceRed(this)},De.prototype.isub=function(h,g){this._verify2(h,g);var c=h.isub(g);return c.cmpn(0)<0&&c.iadd(this.m),c},De.prototype.shl=function(h,g){return this._verify1(h),this.imod(h.ushln(g))},De.prototype.imul=function(h,g){return this._verify2(h,g),this.imod(h.imul(g))},De.prototype.mul=function(h,g){return this._verify2(h,g),this.imod(h.mul(g))},De.prototype.isqr=function(h){return this.imul(h,h.clone())},De.prototype.sqr=function(h){return this.mul(h,h)},De.prototype.sqrt=function(h){if(h.isZero())return h.clone();var g=this.m.andln(3);if(r(g%2===1),g===3){var c=this.m.add(new n(1)).iushrn(2);return this.pow(h,c)}for(var a=this.m.subn(1),u=0;!a.isZero()&&a.andln(1)===0;)u++,a.iushrn(1);r(!a.isZero());var d=new n(1).toRed(this),y=d.redNeg(),p=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new n(2*s*s).toRed(this);this.pow(s,p).cmp(y)!==0;)s.redIAdd(y);for(var m=this.pow(s,a),_=this.pow(h,a.addn(1).iushrn(1)),l=this.pow(h,a),x=u;l.cmp(d)!==0;){for(var I=l,D=0;I.cmp(d)!==0;D++)I=I.redSqr();r(D<x);var O=this.pow(m,new n(1).iushln(x-D-1));_=_.redMul(O),m=O.redSqr(),l=l.redMul(m),x=D}return _},De.prototype.invm=function(h){var g=h._invmp(this.m);return g.negative!==0?(g.negative=0,this.imod(g).redNeg()):this.imod(g)},De.prototype.pow=function(h,g){if(g.isZero())return new n(1).toRed(this);if(g.cmpn(1)===0)return h.clone();var c=4,a=new Array(1<<c);a[0]=new n(1).toRed(this),a[1]=h;for(var u=2;u<a.length;u++)a[u]=this.mul(a[u-1],h);var d=a[0],y=0,p=0,s=g.bitLength()%26;for(s===0&&(s=26),u=g.length-1;u>=0;u--){for(var m=g.words[u],_=s-1;_>=0;_--){var l=m>>_&1;if(d!==a[0]&&(d=this.sqr(d)),l===0&&y===0){p=0;continue}y<<=1,y|=l,p++,!(p!==c&&(u!==0||_!==0))&&(d=this.mul(d,a[y]),p=0,y=0)}s=26}return d},De.prototype.convertTo=function(h){var g=h.umod(this.m);return g===h?g.clone():g},De.prototype.convertFrom=function(h){var g=h.clone();return g.red=null,g},n.mont=function(h){return new st(h)};function st(E){De.call(this,E),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(st,De),st.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},st.prototype.convertFrom=function(h){var g=this.imod(h.mul(this.rinv));return g.red=null,g},st.prototype.imul=function(h,g){if(h.isZero()||g.isZero())return h.words[0]=0,h.length=1,h;var c=h.imul(g),a=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=c.isub(a).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},st.prototype.mul=function(h,g){if(h.isZero()||g.isZero())return new n(0)._forceRed(this);var c=h.mul(g),a=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=c.isub(a).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},st.prototype.invm=function(h){var g=this.imod(h._invmp(this.m).mul(this.r2));return g._forceRed(this)}})(typeof Iu>"u"||Iu,zy)});var Zy=B((P7,Du)=>{b();var Cu;Du.exports=function(e){return Cu||(Cu=new yr(null)),Cu.generate(e)};function yr(t){this.rand=t}Du.exports.Rand=yr;yr.prototype.generate=function(e){return this._rand(e)};yr.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var r=new Uint8Array(e),i=0;i<r.length;i++)r[i]=this.rand.getByte();return r};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?yr.prototype._rand=function(e){var r=new Uint8Array(e);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?yr.prototype._rand=function(e){var r=new Uint8Array(e);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(yr.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(Ou=Pu(),typeof Ou.randomBytes!="function")throw new Error("Not supported");yr.prototype._rand=function(e){return Ou.randomBytes(e)}}catch{}var Ou});var Uu=B((L7,Jy)=>{b();var oi=vr(),d4=Zy();function fi(t){this.rand=t||new d4.Rand}Jy.exports=fi;fi.create=function(e){return new fi(e)};fi.prototype._randbelow=function(e){var r=e.bitLength(),i=Math.ceil(r/8);do var n=new oi(this.rand.generate(i));while(n.cmp(e)>=0);return n};fi.prototype._randrange=function(e,r){var i=r.sub(e);return e.add(this._randbelow(i))};fi.prototype.test=function(e,r,i){var n=e.bitLength(),o=oi.mont(e),f=new oi(1).toRed(o);r||(r=Math.max(1,n/48|0));for(var v=e.subn(1),w=0;!v.testn(w);w++);for(var S=e.shrn(w),A=v.toRed(o),q=!0;r>0;r--){var T=this._randrange(new oi(2),v);i&&i(T);var C=T.toRed(o).redPow(S);if(!(C.cmp(f)===0||C.cmp(A)===0)){for(var P=1;P<w;P++){if(C=C.redSqr(),C.cmp(f)===0)return!1;if(C.cmp(A)===0)break}if(P===w)return!1}}return q};fi.prototype.getDivisor=function(e,r){var i=e.bitLength(),n=oi.mont(e),o=new oi(1).toRed(n);r||(r=Math.max(1,i/48|0));for(var f=e.subn(1),v=0;!f.testn(v);v++);for(var w=e.shrn(v),S=f.toRed(n);r>0;r--){var A=this._randrange(new oi(2),f),q=e.gcd(A);if(q.cmpn(1)!==0)return q;var T=A.toRed(n).redPow(w);if(!(T.cmp(o)===0||T.cmp(S)===0)){for(var C=1;C<v;C++){if(T=T.redSqr(),T.cmp(o)===0)return T.fromRed().subn(1).gcd(e);if(T.cmp(S)===0)break}if(C===v)return T=T.redSqr(),T.fromRed().subn(1).gcd(e)}}return!1}});var Wu=B((K7,Qy)=>{b();var p4=Ur();Qy.exports=Hu;Hu.simpleSieve=Fu;Hu.fermatTest=ju;var Je=vr(),v4=new Je(24),y4=Uu(),Yy=new y4,g4=new Je(1),Nu=new Je(2),m4=new Je(5),F7=new Je(16),j7=new Je(8),b4=new Je(10),w4=new Je(3),H7=new Je(7),_4=new Je(11),Xy=new Je(4),W7=new Je(12),Lu=null;function x4(){if(Lu!==null)return Lu;var t=1048576,e=[];e[0]=2;for(var r=1,i=3;i<t;i+=2){for(var n=Math.ceil(Math.sqrt(i)),o=0;o<r&&e[o]<=n&&i%e[o]!==0;o++);r!==o&&e[o]<=n||(e[r++]=i)}return Lu=e,e}function Fu(t){for(var e=x4(),r=0;r<e.length;r++)if(t.modn(e[r])===0)return t.cmpn(e[r])===0;return!0}function ju(t){var e=Je.mont(t);return Nu.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)===0}function Hu(t,e){if(t<16)return e===2||e===5?new Je([140,123]):new Je([140,39]);e=new Je(e);for(var r,i;;){for(r=new Je(p4(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(g4),r.testn(1)||r.iadd(Nu),e.cmp(Nu)){if(!e.cmp(m4))for(;r.mod(b4).cmp(w4);)r.iadd(Xy)}else for(;r.mod(v4).cmp(_4);)r.iadd(Xy);if(i=r.shrn(1),Fu(i)&&Fu(r)&&ju(i)&&ju(r)&&Yy.test(i)&&Yy.test(r))return r}}});var e1=B((V7,M4)=>{M4.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var n1=B(($7,i1)=>{b();var yt=vr(),E4=Uu(),t1=new E4,S4=new yt(24),B4=new yt(11),A4=new yt(10),R4=new yt(3),q4=new yt(7),r1=Wu(),T4=Ur();i1.exports=rr;function k4(t,e){return e=e||"utf8",R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),this._pub=new yt(t),this}function I4(t,e){return e=e||"utf8",R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),this._priv=new yt(t),this}var Jo={};function C4(t,e){var r=e.toString("hex"),i=[r,t.toString(16)].join("_");if(i in Jo)return Jo[i];var n=0;if(t.isEven()||!r1.simpleSieve||!r1.fermatTest(t)||!t1.test(t))return n+=1,r==="02"||r==="05"?n+=8:n+=4,Jo[i]=n,n;t1.test(t.shrn(1))||(n+=2);var o;switch(r){case"02":t.mod(S4).cmp(B4)&&(n+=8);break;case"05":o=t.mod(A4),o.cmp(R4)&&o.cmp(q4)&&(n+=8);break;default:n+=4}return Jo[i]=n,n}function rr(t,e,r){this.setGenerator(e),this.__prime=new yt(t),this._prime=yt.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=k4,this.setPrivateKey=I4):this._primeCode=8}Object.defineProperty(rr.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=C4(this.__prime,this.__gen)),this._primeCode}});rr.prototype.generateKeys=function(){return this._priv||(this._priv=new yt(T4(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};rr.prototype.computeSecret=function(t){t=new yt(t),t=t.toRed(this._prime);var e=t.redPow(this._priv).fromRed(),r=new R.Buffer(e.toArray()),i=this.getPrime();if(r.length<i.length){var n=new R.Buffer(i.length-r.length);n.fill(0),r=R.Buffer.concat([n,r])}return r};rr.prototype.getPublicKey=function(e){return Yo(this._pub,e)};rr.prototype.getPrivateKey=function(e){return Yo(this._priv,e)};rr.prototype.getPrime=function(t){return Yo(this.__prime,t)};rr.prototype.getGenerator=function(t){return Yo(this._gen,t)};rr.prototype.setGenerator=function(t,e){return e=e||"utf8",R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),this.__gen=t,this._gen=new yt(t),this};function Yo(t,e){var r=new R.Buffer(t.toArray());return e?r.toString(e):r}});var f1=B(Ki=>{b();var O4=Wu(),a1=e1(),Ku=n1();function D4(t){var e=new R.Buffer(a1[t].prime,"hex"),r=new R.Buffer(a1[t].gen,"hex");return new Ku(e,r)}var P4={binary:!0,hex:!0,base64:!0};function o1(t,e,r,i){return R.Buffer.isBuffer(e)||P4[e]===void 0?o1(t,"binary",e,r):(e=e||"binary",i=i||"binary",r=r||new R.Buffer([2]),R.Buffer.isBuffer(r)||(r=new R.Buffer(r,i)),typeof t=="number"?new Ku(O4(t,r),r,!0):(R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),new Ku(t,r,!0)))}Ki.DiffieHellmanGroup=Ki.createDiffieHellmanGroup=Ki.getDiffieHellman=D4;Ki.createDiffieHellman=Ki.DiffieHellman=o1});var s1=B((exports,module)=>{b();var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;r++)if(t[r]===e)return r;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},defineProp=(function(){try{return Object.defineProperty({},"_",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch{return function(e,r,i){e[r]=i}}})(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,i=r.eval,n=r.execScript;!i&&n&&(n.call(r,"null"),i=r.eval),forEach(Object_keys(t),function(v){r[v]=t[v]}),forEach(globals,function(v){t[v]&&(r[v]=t[v])});var o=Object_keys(r),f=i.call(r,this.code);return forEach(Object_keys(r),function(v){(v in t||indexOf(o,v)===-1)&&(t[v]=r[v])}),forEach(globals,function(v){v in t||defineProp(t,v,r[v])}),document.body.removeChild(e),f};Script.prototype.runInThisContext=function(){return eval(this.code)};Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),r=this.runInContext(e);return t&&forEach(Object_keys(e),function(i){t[i]=e[i]}),r};forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var r=Script(e);return r[t].apply(r,[].slice.call(arguments,1))}});exports.isContext=function(t){return t instanceof Context};exports.createScript=function(t){return exports.Script(t)};exports.createContext=Script.createContext=function(t){var e=new Context;return typeof t=="object"&&forEach(Object_keys(t),function(r){e[r]=t[r]}),e}});var l1=B(h1=>{b();var u1=Vi(),U4=G(),L4=h1;L4.define=function(e,r){return new Gi(e,r)};function Gi(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}Gi.prototype._createNamed=function(e){var r;try{r=s1().runInThisContext("(function "+this.name+`(entity) {
|
|
12
12
|
this._initNamed(entity);
|
|
13
13
|
})`)}catch{r=function(n){this._initNamed(n)}}return U4(r,e),r.prototype._initNamed=function(n){e.call(this,n)},new r(this)};Gi.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(u1.decoders[e])),this.decoders[e]};Gi.prototype.decode=function(e,r,i){return this._getDecoder(r).decode(e,i)};Gi.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(u1.encoders[e])),this.encoders[e]};Gi.prototype.encode=function(e,r,i){return this._getEncoder(r).encode(e,i)}});var d1=B(c1=>{b();var N4=G();function gt(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}c1.Reporter=gt;gt.prototype.isError=function(e){return e instanceof $i};gt.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};gt.prototype.restore=function(e){var r=this._reporterState;r.obj=e.obj,r.path=r.path.slice(0,e.pathLen)};gt.prototype.enterKey=function(e){return this._reporterState.path.push(e)};gt.prototype.exitKey=function(e){var r=this._reporterState;r.path=r.path.slice(0,e-1)};gt.prototype.leaveKey=function(e,r,i){var n=this._reporterState;this.exitKey(e),n.obj!==null&&(n.obj[r]=i)};gt.prototype.path=function(){return this._reporterState.path.join("/")};gt.prototype.enterObject=function(){var e=this._reporterState,r=e.obj;return e.obj={},r};gt.prototype.leaveObject=function(e){var r=this._reporterState,i=r.obj;return r.obj=e,i};gt.prototype.error=function(e){var r,i=this._reporterState,n=e instanceof $i;if(n?r=e:r=new $i(i.path.map(function(o){return"["+JSON.stringify(o)+"]"}).join(""),e.message||e,e.stack),!i.options.partial)throw r;return n||i.errors.push(r),r};gt.prototype.wrapResult=function(e){var r=this._reporterState;return r.options.partial?{result:this.isError(e)?null:e,errors:r.errors}:e};function $i(t,e){this.path=t,this.rethrow(e)}N4($i,Error);$i.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,$i),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this}});var Vu=B(Gu=>{b();var F4=G(),Qo=zi().Reporter,fa=rt().Buffer;function Ft(t,e){if(Qo.call(this,e),!fa.isBuffer(t)){this.error("Input not Buffer");return}this.base=t,this.offset=0,this.length=t.length}F4(Ft,Qo);Gu.DecoderBuffer=Ft;Ft.prototype.save=function(){return{offset:this.offset,reporter:Qo.prototype.save.call(this)}};Ft.prototype.restore=function(e){var r=new Ft(this.base);return r.offset=e.offset,r.length=this.offset,this.offset=e.offset,Qo.prototype.restore.call(this,e.reporter),r};Ft.prototype.isEmpty=function(){return this.offset===this.length};Ft.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};Ft.prototype.skip=function(e,r){if(!(this.offset+e<=this.length))return this.error(r||"DecoderBuffer overrun");var i=new Ft(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+e,this.offset+=e,i};Ft.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function Xo(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(r){return r instanceof Xo||(r=new Xo(r,e)),this.length+=r.length,r},this);else if(typeof t=="number"){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if(typeof t=="string")this.value=t,this.length=fa.byteLength(t);else if(fa.isBuffer(t))this.value=t,this.length=t.length;else return e.error("Unsupported type: "+typeof t)}Gu.EncoderBuffer=Xo;Xo.prototype.join=function(e,r){return e||(e=new fa(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(i){i.join(e,r),r+=i.length}):(typeof this.value=="number"?e[r]=this.value:typeof this.value=="string"?e.write(this.value,r):fa.isBuffer(this.value)&&this.value.copy(e,r),r+=this.length)),e}});var y1=B((n9,v1)=>{b();var j4=zi().Reporter,H4=zi().EncoderBuffer,W4=zi().DecoderBuffer,it=Ni(),p1=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],K4=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(p1),G4=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Oe(t,e){var r={};this._baseState=r,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}v1.exports=Oe;var V4=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Oe.prototype.clone=function(){var e=this._baseState,r={};V4.forEach(function(n){r[n]=e[n]});var i=new this.constructor(r.parent);return i._baseState=r,i};Oe.prototype._wrap=function(){var e=this._baseState;K4.forEach(function(r){this[r]=function(){var n=new this.constructor(this);return e.children.push(n),n[r].apply(n,arguments)}},this)};Oe.prototype._init=function(e){var r=this._baseState;it(r.parent===null),e.call(this),r.children=r.children.filter(function(i){return i._baseState.parent===this},this),it.equal(r.children.length,1,"Root node can have only one child")};Oe.prototype._useArgs=function(e){var r=this._baseState,i=e.filter(function(n){return n instanceof this.constructor},this);e=e.filter(function(n){return!(n instanceof this.constructor)},this),i.length!==0&&(it(r.children===null),r.children=i,i.forEach(function(n){n._baseState.parent=this},this)),e.length!==0&&(it(r.args===null),r.args=e,r.reverseArgs=e.map(function(n){if(typeof n!="object"||n.constructor!==Object)return n;var o={};return Object.keys(n).forEach(function(f){f==(f|0)&&(f|=0);var v=n[f];o[v]=f}),o}))};G4.forEach(function(t){Oe.prototype[t]=function(){var r=this._baseState;throw new Error(t+" not implemented for encoding: "+r.enc)}});p1.forEach(function(t){Oe.prototype[t]=function(){var r=this._baseState,i=Array.prototype.slice.call(arguments);return it(r.tag===null),r.tag=t,this._useArgs(i),this}});Oe.prototype.use=function(e){it(e);var r=this._baseState;return it(r.use===null),r.use=e,this};Oe.prototype.optional=function(){var e=this._baseState;return e.optional=!0,this};Oe.prototype.def=function(e){var r=this._baseState;return it(r.default===null),r.default=e,r.optional=!0,this};Oe.prototype.explicit=function(e){var r=this._baseState;return it(r.explicit===null&&r.implicit===null),r.explicit=e,this};Oe.prototype.implicit=function(e){var r=this._baseState;return it(r.explicit===null&&r.implicit===null),r.implicit=e,this};Oe.prototype.obj=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return e.obj=!0,r.length!==0&&this._useArgs(r),this};Oe.prototype.key=function(e){var r=this._baseState;return it(r.key===null),r.key=e,this};Oe.prototype.any=function(){var e=this._baseState;return e.any=!0,this};Oe.prototype.choice=function(e){var r=this._baseState;return it(r.choice===null),r.choice=e,this._useArgs(Object.keys(e).map(function(i){return e[i]})),this};Oe.prototype.contains=function(e){var r=this._baseState;return it(r.use===null),r.contains=e,this};Oe.prototype._decode=function(e,r){var i=this._baseState;if(i.parent===null)return e.wrapResult(i.children[0]._decode(e,r));var n=i.default,o=!0,f=null;if(i.key!==null&&(f=e.enterKey(i.key)),i.optional){var v=null;if(i.explicit!==null?v=i.explicit:i.implicit!==null?v=i.implicit:i.tag!==null&&(v=i.tag),v===null&&!i.any){var w=e.save();try{i.choice===null?this._decodeGeneric(i.tag,e,r):this._decodeChoice(e,r),o=!0}catch{o=!1}e.restore(w)}else if(o=this._peekTag(e,v,i.any),e.isError(o))return o}var S;if(i.obj&&o&&(S=e.enterObject()),o){if(i.explicit!==null){var A=this._decodeTag(e,i.explicit);if(e.isError(A))return A;e=A}var q=e.offset;if(i.use===null&&i.choice===null){if(i.any)var w=e.save();var T=this._decodeTag(e,i.implicit!==null?i.implicit:i.tag,i.any);if(e.isError(T))return T;i.any?n=e.raw(w):e=T}if(r&&r.track&&i.tag!==null&&r.track(e.path(),q,e.length,"tagged"),r&&r.track&&i.tag!==null&&r.track(e.path(),e.offset,e.length,"content"),i.any?n=n:i.choice===null?n=this._decodeGeneric(i.tag,e,r):n=this._decodeChoice(e,r),e.isError(n))return n;if(!i.any&&i.choice===null&&i.children!==null&&i.children.forEach(function(H){H._decode(e,r)}),i.contains&&(i.tag==="octstr"||i.tag==="bitstr")){var C=new W4(n);n=this._getUse(i.contains,e._reporterState.obj)._decode(C,r)}}return i.obj&&o&&(n=e.leaveObject(S)),i.key!==null&&(n!==null||o===!0)?e.leaveKey(f,i.key,n):f!==null&&e.exitKey(f),n};Oe.prototype._decodeGeneric=function(e,r,i){var n=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(r,e,n.args[0],i):/str$/.test(e)?this._decodeStr(r,e,i):e==="objid"&&n.args?this._decodeObjid(r,n.args[0],n.args[1],i):e==="objid"?this._decodeObjid(r,null,null,i):e==="gentime"||e==="utctime"?this._decodeTime(r,e,i):e==="null_"?this._decodeNull(r,i):e==="bool"?this._decodeBool(r,i):e==="objDesc"?this._decodeStr(r,e,i):e==="int"||e==="enum"?this._decodeInt(r,n.args&&n.args[0],i):n.use!==null?this._getUse(n.use,r._reporterState.obj)._decode(r,i):r.error("unknown tag: "+e)};Oe.prototype._getUse=function(e,r){var i=this._baseState;return i.useDecoder=this._use(e,r),it(i.useDecoder._baseState.parent===null),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder};Oe.prototype._decodeChoice=function(e,r){var i=this._baseState,n=null,o=!1;return Object.keys(i.choice).some(function(f){var v=e.save(),w=i.choice[f];try{var S=w._decode(e,r);if(e.isError(S))return!1;n={type:f,value:S},o=!0}catch{return e.restore(v),!1}return!0},this),o?n:e.error("Choice not matched")};Oe.prototype._createEncoderBuffer=function(e){return new H4(e,this.reporter)};Oe.prototype._encode=function(e,r,i){var n=this._baseState;if(!(n.default!==null&&n.default===e)){var o=this._encodeValue(e,r,i);if(o!==void 0&&!this._skipDefault(o,r,i))return o}};Oe.prototype._encodeValue=function(e,r,i){var n=this._baseState;if(n.parent===null)return n.children[0]._encode(e,r||new j4);var w=null;if(this.reporter=r,n.optional&&e===void 0)if(n.default!==null)e=n.default;else return;var o=null,f=!1;if(n.any)w=this._createEncoderBuffer(e);else if(n.choice)w=this._encodeChoice(e,r);else if(n.contains)o=this._getUse(n.contains,i)._encode(e,r),f=!0;else if(n.children)o=n.children.map(function(q){if(q._baseState.tag==="null_")return q._encode(null,r,e);if(q._baseState.key===null)return r.error("Child should have a key");var T=r.enterKey(q._baseState.key);if(typeof e!="object")return r.error("Child expected, but input is not object");var C=q._encode(e[q._baseState.key],r,e);return r.leaveKey(T),C},this).filter(function(q){return q}),o=this._createEncoderBuffer(o);else if(n.tag==="seqof"||n.tag==="setof"){if(!(n.args&&n.args.length===1))return r.error("Too many args for : "+n.tag);if(!Array.isArray(e))return r.error("seqof/setof, but data is not Array");var v=this.clone();v._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(q){var T=this._baseState;return this._getUse(T.args[0],e)._encode(q,r)},v))}else n.use!==null?w=this._getUse(n.use,i)._encode(e,r):(o=this._encodePrimitive(n.tag,e),f=!0);var w;if(!n.any&&n.choice===null){var S=n.implicit!==null?n.implicit:n.tag,A=n.implicit===null?"universal":"context";S===null?n.use===null&&r.error("Tag could be omitted only for .use()"):n.use===null&&(w=this._encodeComposite(S,f,A,o))}return n.explicit!==null&&(w=this._encodeComposite(n.explicit,!1,"context",w)),w};Oe.prototype._encodeChoice=function(e,r){var i=this._baseState,n=i.choice[e.type];return n||it(!1,e.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(e.value,r)};Oe.prototype._encodePrimitive=function(e,r){var i=this._baseState;if(/str$/.test(e))return this._encodeStr(r,e);if(e==="objid"&&i.args)return this._encodeObjid(r,i.reverseArgs[0],i.args[1]);if(e==="objid")return this._encodeObjid(r,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(r,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(r,i.args&&i.reverseArgs[0]);if(e==="bool")return this._encodeBool(r);if(e==="objDesc")return this._encodeStr(r,e);throw new Error("Unsupported tag: "+e)};Oe.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};Oe.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}});var zi=B(g1=>{b();var ef=g1;ef.Reporter=d1().Reporter;ef.DecoderBuffer=Vu().DecoderBuffer;ef.EncoderBuffer=Vu().EncoderBuffer;ef.Node=y1()});var b1=B(si=>{b();var m1=$u();si.tagClass={0:"universal",1:"application",2:"context",3:"private"};si.tagClassByName=m1._reverse(si.tagClass);si.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};si.tagByName=m1._reverse(si.tag)});var $u=B(_1=>{b();var w1=_1;w1._reverse=function(e){var r={};return Object.keys(e).forEach(function(i){(i|0)==i&&(i=i|0);var n=e[i];r[n]=i}),r};w1.der=b1()});var Ju=B((c9,S1)=>{b();var $4=G(),zu=Vi(),tf=zu.base,z4=zu.bignum,x1=zu.constants.der;function M1(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new ft,this.tree._init(t.body)}S1.exports=M1;M1.prototype.decode=function(e,r){return e instanceof tf.DecoderBuffer||(e=new tf.DecoderBuffer(e,r)),this.tree._decode(e,r)};function ft(t){tf.Node.call(this,"der",t)}$4(ft,tf.Node);ft.prototype._peekTag=function(e,r,i){if(e.isEmpty())return!1;var n=e.save(),o=Zu(e,'Failed to peek tag: "'+r+'"');return e.isError(o)?o:(e.restore(n),o.tag===r||o.tagStr===r||o.tagStr+"of"===r||i)};ft.prototype._decodeTag=function(e,r,i){var n=Zu(e,'Failed to decode tag of "'+r+'"');if(e.isError(n))return n;var o=E1(e,n.primitive,'Failed to get length of "'+r+'"');if(e.isError(o))return o;if(!i&&n.tag!==r&&n.tagStr!==r&&n.tagStr+"of"!==r)return e.error('Failed to match tag: "'+r+'"');if(n.primitive||o!==null)return e.skip(o,'Failed to match body of: "'+r+'"');var f=e.save(),v=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(v)?v:(o=e.offset-f.offset,e.restore(f),e.skip(o,'Failed to match body of: "'+r+'"'))};ft.prototype._skipUntilEnd=function(e,r){for(;;){var i=Zu(e,r);if(e.isError(i))return i;var n=E1(e,i.primitive,r);if(e.isError(n))return n;var o;if(i.primitive||n!==null?o=e.skip(n):o=this._skipUntilEnd(e,r),e.isError(o))return o;if(i.tagStr==="end")break}};ft.prototype._decodeList=function(e,r,i,n){for(var o=[];!e.isEmpty();){var f=this._peekTag(e,"end");if(e.isError(f))return f;var v=i.decode(e,"der",n);if(e.isError(v)&&f)break;o.push(v)}return o};ft.prototype._decodeStr=function(e,r){if(r==="bitstr"){var i=e.readUInt8();return e.isError(i)?i:{unused:i,data:e.raw()}}else if(r==="bmpstr"){var n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");for(var o="",f=0;f<n.length/2;f++)o+=String.fromCharCode(n.readUInt16BE(f*2));return o}else if(r==="numstr"){var v=e.raw().toString("ascii");return this._isNumstr(v)?v:e.error("Decoding of string type: numstr unsupported characters")}else{if(r==="octstr")return e.raw();if(r==="objDesc")return e.raw();if(r==="printstr"){var w=e.raw().toString("ascii");return this._isPrintstr(w)?w:e.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(r)?e.raw().toString():e.error("Decoding of string type: "+r+" unsupported")}};ft.prototype._decodeObjid=function(e,r,i){for(var n,o=[],f=0;!e.isEmpty();){var v=e.readUInt8();f<<=7,f|=v&127,(v&128)===0&&(o.push(f),f=0)}v&128&&o.push(f);var w=o[0]/40|0,S=o[0]%40;if(i?n=o:n=[w,S].concat(o.slice(1)),r){var A=r[n.join(" ")];A===void 0&&(A=r[n.join(".")]),A!==void 0&&(n=A)}return n};ft.prototype._decodeTime=function(e,r){var i=e.raw().toString();if(r==="gentime")var n=i.slice(0,4)|0,o=i.slice(4,6)|0,f=i.slice(6,8)|0,v=i.slice(8,10)|0,w=i.slice(10,12)|0,S=i.slice(12,14)|0;else if(r==="utctime"){var n=i.slice(0,2)|0,o=i.slice(2,4)|0,f=i.slice(4,6)|0,v=i.slice(6,8)|0,w=i.slice(8,10)|0,S=i.slice(10,12)|0;n<70?n=2e3+n:n=1900+n}else return e.error("Decoding "+r+" time is not supported yet");return Date.UTC(n,o-1,f,v,w,S,0)};ft.prototype._decodeNull=function(e){return null};ft.prototype._decodeBool=function(e){var r=e.readUInt8();return e.isError(r)?r:r!==0};ft.prototype._decodeInt=function(e,r){var i=e.raw(),n=new z4(i);return r&&(n=r[n.toString(10)]||n),n};ft.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getDecoder("der").tree};function Zu(t,e){var r=t.readUInt8(e);if(t.isError(r))return r;var i=x1.tagClass[r>>6],n=(r&32)===0;if((r&31)===31){var o=r;for(r=0;(o&128)===128;){if(o=t.readUInt8(e),t.isError(o))return o;r<<=7,r|=o&127}}else r&=31;var f=x1.tag[r];return{cls:i,primitive:n,tag:r,tagStr:f}}function E1(t,e,r){var i=t.readUInt8(r);if(t.isError(i))return i;if(!e&&i===128)return null;if((i&128)===0)return i;var n=i&127;if(n>4)return t.error("length octect is too long");i=0;for(var o=0;o<n;o++){i<<=8;var f=t.readUInt8(r);if(t.isError(f))return f;i|=f}return i}});var A1=B((p9,B1)=>{b();var Z4=G(),J4=rt().Buffer,Yu=Ju();function Xu(t){Yu.call(this,t),this.enc="pem"}Z4(Xu,Yu);B1.exports=Xu;Xu.prototype.decode=function(e,r){for(var i=e.toString().split(/[\r\n]+/g),n=r.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,f=-1,v=-1,w=0;w<i.length;w++){var S=i[w].match(o);if(S!==null&&S[2]===n)if(f===-1){if(S[1]!=="BEGIN")break;f=w}else{if(S[1]!=="END")break;v=w;break}}if(f===-1||v===-1)throw new Error("PEM section not found for: "+n);var A=i.slice(f+1,v).join("");A.replace(/[^a-z0-9\+\/=]+/gi,"");var q=new J4(A,"base64");return Yu.prototype.decode.call(this,q,r)}});var T1=B(q1=>{b();var R1=q1;R1.der=Ju();R1.pem=A1()});var eh=B((m9,O1)=>{b();var Y4=G(),ir=rt().Buffer,k1=Vi(),I1=k1.base,Qu=k1.constants.der;function C1(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new St,this.tree._init(t.body)}O1.exports=C1;C1.prototype.encode=function(e,r){return this.tree._encode(e,r).join()};function St(t){I1.Node.call(this,"der",t)}Y4(St,I1.Node);St.prototype._encodeComposite=function(e,r,i,n){var o=X4(e,r,i,this.reporter);if(n.length<128){var w=new ir(2);return w[0]=o,w[1]=n.length,this._createEncoderBuffer([w,n])}for(var f=1,v=n.length;v>=256;v>>=8)f++;var w=new ir(2+f);w[0]=o,w[1]=128|f;for(var v=1+f,S=n.length;S>0;v--,S>>=8)w[v]=S&255;return this._createEncoderBuffer([w,n])};St.prototype._encodeStr=function(e,r){if(r==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(r==="bmpstr"){for(var i=new ir(e.length*2),n=0;n<e.length;n++)i.writeUInt16BE(e.charCodeAt(n),n*2);return this._createEncoderBuffer(i)}else return r==="numstr"?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):r==="printstr"?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(r)?this._createEncoderBuffer(e):r==="objDesc"?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+r+" unsupported")};St.prototype._encodeObjid=function(e,r,i){if(typeof e=="string"){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=r[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(var n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!i){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}for(var o=0,n=0;n<e.length;n++){var f=e[n];for(o++;f>=128;f>>=7)o++}for(var v=new ir(o),w=v.length-1,n=e.length-1;n>=0;n--){var f=e[n];for(v[w--]=f&127;(f>>=7)>0;)v[w--]=128|f&127}return this._createEncoderBuffer(v)};function mt(t){return t<10?"0"+t:t}St.prototype._encodeTime=function(e,r){var i,n=new Date(e);return r==="gentime"?i=[mt(n.getFullYear()),mt(n.getUTCMonth()+1),mt(n.getUTCDate()),mt(n.getUTCHours()),mt(n.getUTCMinutes()),mt(n.getUTCSeconds()),"Z"].join(""):r==="utctime"?i=[mt(n.getFullYear()%100),mt(n.getUTCMonth()+1),mt(n.getUTCDate()),mt(n.getUTCHours()),mt(n.getUTCMinutes()),mt(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(i,"octstr")};St.prototype._encodeNull=function(){return this._createEncoderBuffer("")};St.prototype._encodeInt=function(e,r){if(typeof e=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=r[e]}if(typeof e!="number"&&!ir.isBuffer(e)){var i=e.toArray();!e.sign&&i[0]&128&&i.unshift(0),e=new ir(i)}if(ir.isBuffer(e)){var n=e.length;e.length===0&&n++;var f=new ir(n);return e.copy(f),e.length===0&&(f[0]=0),this._createEncoderBuffer(f)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var n=1,o=e;o>=256;o>>=8)n++;for(var f=new Array(n),o=f.length-1;o>=0;o--)f[o]=e&255,e>>=8;return f[0]&128&&f.unshift(0),this._createEncoderBuffer(new ir(f))};St.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};St.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getEncoder("der").tree};St.prototype._skipDefault=function(e,r,i){var n=this._baseState,o;if(n.default===null)return!1;var f=e.join();if(n.defaultBuffer===void 0&&(n.defaultBuffer=this._encodeValue(n.default,r,i).join()),f.length!==n.defaultBuffer.length)return!1;for(o=0;o<f.length;o++)if(f[o]!==n.defaultBuffer[o])return!1;return!0};function X4(t,e,r,i){var n;if(t==="seqof"?t="seq":t==="setof"&&(t="set"),Qu.tagByName.hasOwnProperty(t))n=Qu.tagByName[t];else if(typeof t=="number"&&(t|0)===t)n=t;else return i.error("Unknown tag: "+t);return n>=31?i.error("Multi-octet tag encoding unsupported"):(e||(n|=32),n|=Qu.tagClassByName[r||"universal"]<<6,n)}});var P1=B((w9,D1)=>{b();var Q4=G(),th=eh();function rh(t){th.call(this,t),this.enc="pem"}Q4(rh,th);D1.exports=rh;rh.prototype.encode=function(e,r){for(var i=th.prototype.encode.call(this,e),n=i.toString("base64"),o=["-----BEGIN "+r.label+"-----"],f=0;f<n.length;f+=64)o.push(n.slice(f,f+64));return o.push("-----END "+r.label+"-----"),o.join(`
|
|
14
14
|
`)}});var N1=B(L1=>{b();var U1=L1;U1.der=eh();U1.pem=P1()});var Vi=B(F1=>{b();var Zi=F1;Zi.bignum=vr();Zi.define=l1().define;Zi.base=zi();Zi.constants=$u();Zi.decoders=T1();Zi.encoders=N1()});var K1=B((B9,W1)=>{"use strict";b();var Bt=Vi(),j1=Bt.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),eM=Bt.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),ih=Bt.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),tM=Bt.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(ih),this.key("subjectPublicKey").bitstr())}),rM=Bt.define("RelativeDistinguishedName",function(){this.setof(eM)}),iM=Bt.define("RDNSequence",function(){this.seqof(rM)}),H1=Bt.define("Name",function(){this.choice({rdnSequence:this.use(iM)})}),nM=Bt.define("Validity",function(){this.seq().obj(this.key("notBefore").use(j1),this.key("notAfter").use(j1))}),aM=Bt.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),oM=Bt.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(ih),this.key("issuer").use(H1),this.key("validity").use(nM),this.key("subject").use(H1),this.key("subjectPublicKeyInfo").use(tM),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(aM).optional())}),fM=Bt.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(oM),this.key("signatureAlgorithm").use(ih),this.key("signatureValue").bitstr())});W1.exports=fM});var V1=B(Rt=>{"use strict";b();var At=Vi();Rt.certificate=K1();var sM=At.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Rt.RSAPrivateKey=sM;var uM=At.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Rt.RSAPublicKey=uM;var G1=At.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),hM=At.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(G1),this.key("subjectPublicKey").bitstr())});Rt.PublicKey=hM;var lM=At.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(G1),this.key("subjectPrivateKey").octstr())});Rt.PrivateKey=lM;var cM=At.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Rt.EncryptedPrivateKey=cM;var dM=At.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Rt.DSAPrivateKey=dM;Rt.DSAparam=At.define("DSAparam",function(){this.int()});var pM=At.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),vM=At.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(pM),this.key("publicKey").optional().explicit(1).bitstr())});Rt.ECPrivateKey=vM;Rt.signature=At.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var $1=B((T9,yM)=>{yM.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var Z1=B((k9,z1)=>{"use strict";b();var gM=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,mM=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,bM=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,wM=na(),_M=Zo(),rf=Se().Buffer;z1.exports=function(t,e){var r=t.toString(),i=r.match(gM),n;if(i){var f="aes"+i[1],v=rf.from(i[2],"hex"),w=rf.from(i[3].replace(/[\r\n]/g,""),"base64"),S=wM(e,v.slice(0,8),parseInt(i[1],10)).key,A=[],q=_M.createDecipheriv(f,S,v);A.push(q.update(w)),A.push(q.final()),n=rf.concat(A)}else{var o=r.match(bM);n=rf.from(o[2].replace(/[\r\n]/g,""),"base64")}var T=r.match(mM)[1];return{tag:T,data:n}}});var ah=B((C9,Y1)=>{"use strict";b();var ot=V1(),xM=$1(),MM=Z1(),EM=Zo(),SM=du().pbkdf2Sync,nh=Se().Buffer;function BM(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),n=xM[t.algorithm.decrypt.cipher.algo.join(".")],o=t.algorithm.decrypt.cipher.iv,f=t.subjectPrivateKey,v=parseInt(n.split("-")[1],10)/8,w=SM(e,r,i,v,"sha1"),S=EM.createDecipheriv(n,w,o),A=[];return A.push(S.update(f)),A.push(S.final()),nh.concat(A)}function J1(t){var e;typeof t=="object"&&!nh.isBuffer(t)&&(e=t.passphrase,t=t.key),typeof t=="string"&&(t=nh.from(t));var r=MM(t,e),i=r.tag,n=r.data,o,f;switch(i){case"CERTIFICATE":f=ot.certificate.decode(n,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=ot.PublicKey.decode(n,"der")),o=f.algorithm.algorithm.join("."),o){case"1.2.840.113549.1.1.1":return ot.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=ot.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+o)}case"ENCRYPTED PRIVATE KEY":n=ot.EncryptedPrivateKey.decode(n,"der"),n=BM(n,e);case"PRIVATE KEY":switch(f=ot.PrivateKey.decode(n,"der"),o=f.algorithm.algorithm.join("."),o){case"1.2.840.113549.1.1.1":return ot.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:ot.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=ot.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+o)}case"RSA PUBLIC KEY":return ot.RSAPublicKey.decode(n,"der");case"RSA PRIVATE KEY":return ot.RSAPrivateKey.decode(n,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:ot.DSAPrivateKey.decode(n,"der")};case"EC PRIVATE KEY":return n=ot.ECPrivateKey.decode(n,"der"),{curve:n.parameters.value,privateKey:n.privateKey};default:throw new Error("unknown key type "+i)}}J1.signature=ot.signature;Y1.exports=J1});var fh=B((D9,X1)=>{b();var AM=Jn(),oh=Se().Buffer;X1.exports=function(t,e){for(var r=oh.alloc(0),i=0,n;r.length<e;)n=RM(i++),r=oh.concat([r,AM("sha1").update(t).update(n).digest()]);return r.slice(0,e)};function RM(t){var e=oh.allocUnsafe(4);return e.writeUInt32BE(t,0),e}});var sh=B((U9,Q1)=>{b();Q1.exports=function(e,r){for(var i=e.length,n=-1;++n<i;)e[n]^=r[n];return e}});var uh=B((N9,tg)=>{b();var eg=vr(),qM=Se().Buffer;function TM(t,e){return qM.from(t.toRed(eg.mont(e.modulus)).redPow(new eg(e.publicExponent)).fromRed().toArray())}tg.exports=TM});var ig=B((rg,hh)=>{b();(function(t,e){"use strict";function r(c,a){if(!c)throw new Error(a||"Assertion failed")}function i(c,a){c.super_=a;var u=function(){};u.prototype=a.prototype,c.prototype=new u,c.prototype.constructor=c}function n(c,a,u){if(n.isBN(c))return c;this.negative=0,this.words=null,this.length=0,this.red=null,c!==null&&((a==="le"||a==="be")&&(u=a,a=10),this._init(c||0,a||10,u||"be"))}typeof t=="object"?t.exports=n:e.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=rt().Buffer}catch{}n.isBN=function(a){return a instanceof n?!0:a!==null&&typeof a=="object"&&a.constructor.wordSize===n.wordSize&&Array.isArray(a.words)},n.max=function(a,u){return a.cmp(u)>0?a:u},n.min=function(a,u){return a.cmp(u)<0?a:u},n.prototype._init=function(a,u,d){if(typeof a=="number")return this._initNumber(a,u,d);if(typeof a=="object")return this._initArray(a,u,d);u==="hex"&&(u=16),r(u===(u|0)&&u>=2&&u<=36),a=a.toString().replace(/\s+/g,"");var y=0;a[0]==="-"&&(y++,this.negative=1),y<a.length&&(u===16?this._parseHex(a,y,d):(this._parseBase(a,u,y),d==="le"&&this._initArray(this.toArray(),u,d)))},n.prototype._initNumber=function(a,u,d){a<0&&(this.negative=1,a=-a),a<67108864?(this.words=[a&67108863],this.length=1):a<4503599627370496?(this.words=[a&67108863,a/67108864&67108863],this.length=2):(r(a<9007199254740992),this.words=[a&67108863,a/67108864&67108863,1],this.length=3),d==="le"&&this._initArray(this.toArray(),u,d)},n.prototype._initArray=function(a,u,d){if(r(typeof a.length=="number"),a.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(a.length/3),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var p,s,m=0;if(d==="be")for(y=a.length-1,p=0;y>=0;y-=3)s=a[y]|a[y-1]<<8|a[y-2]<<16,this.words[p]|=s<<m&67108863,this.words[p+1]=s>>>26-m&67108863,m+=24,m>=26&&(m-=26,p++);else if(d==="le")for(y=0,p=0;y<a.length;y+=3)s=a[y]|a[y+1]<<8|a[y+2]<<16,this.words[p]|=s<<m&67108863,this.words[p+1]=s>>>26-m&67108863,m+=24,m>=26&&(m-=26,p++);return this._strip()};function f(c,a){var u=c.charCodeAt(a);if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-55;if(u>=97&&u<=102)return u-87;r(!1,"Invalid character in "+c)}function v(c,a,u){var d=f(c,u);return u-1>=a&&(d|=f(c,u-1)<<4),d}n.prototype._parseHex=function(a,u,d){this.length=Math.ceil((a.length-u)/6),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var p=0,s=0,m;if(d==="be")for(y=a.length-1;y>=u;y-=2)m=v(a,u,y)<<p,this.words[s]|=m&67108863,p>=18?(p-=18,s+=1,this.words[s]|=m>>>26):p+=8;else{var _=a.length-u;for(y=_%2===0?u+1:u;y<a.length;y+=2)m=v(a,u,y)<<p,this.words[s]|=m&67108863,p>=18?(p-=18,s+=1,this.words[s]|=m>>>26):p+=8}this._strip()};function w(c,a,u,d){for(var y=0,p=0,s=Math.min(c.length,u),m=a;m<s;m++){var _=c.charCodeAt(m)-48;y*=d,_>=49?p=_-49+10:_>=17?p=_-17+10:p=_,r(_>=0&&p<d,"Invalid character"),y+=p}return y}n.prototype._parseBase=function(a,u,d){this.words=[0],this.length=1;for(var y=0,p=1;p<=67108863;p*=u)y++;y--,p=p/u|0;for(var s=a.length-d,m=s%y,_=Math.min(s,s-m)+d,l=0,x=d;x<_;x+=y)l=w(a,x,x+y,u),this.imuln(p),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(m!==0){var I=1;for(l=w(a,x,a.length,u),x=0;x<m;x++)I*=u;this.imuln(I),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},n.prototype.copy=function(a){a.words=new Array(this.length);for(var u=0;u<this.length;u++)a.words[u]=this.words[u];a.length=this.length,a.negative=this.negative,a.red=this.red};function S(c,a){c.words=a.words,c.length=a.length,c.negative=a.negative,c.red=a.red}if(n.prototype._move=function(a){S(a,this)},n.prototype.clone=function(){var a=new n(null);return this.copy(a),a},n.prototype._expand=function(a){for(;this.length<a;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=A}catch{n.prototype.inspect=A}else n.prototype.inspect=A;function A(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var q=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],T=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(a,u){a=a||10,u=u|0||1;var d;if(a===16||a==="hex"){d="";for(var y=0,p=0,s=0;s<this.length;s++){var m=this.words[s],_=((m<<y|p)&16777215).toString(16);p=m>>>24-y&16777215,y+=2,y>=26&&(y-=26,s--),p!==0||s!==this.length-1?d=q[6-_.length]+_+d:d=_+d}for(p!==0&&(d=p.toString(16)+d);d.length%u!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}if(a===(a|0)&&a>=2&&a<=36){var l=T[a],x=C[a];d="";var I=this.clone();for(I.negative=0;!I.isZero();){var D=I.modrn(x).toString(a);I=I.idivn(x),I.isZero()?d=D+d:d=q[l-D.length]+D+d}for(this.isZero()&&(d="0"+d);d.length%u!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var a=this.words[0];return this.length===2?a+=this.words[1]*67108864:this.length===3&&this.words[2]===1?a+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-a:a},n.prototype.toJSON=function(){return this.toString(16,2)},o&&(n.prototype.toBuffer=function(a,u){return this.toArrayLike(o,a,u)}),n.prototype.toArray=function(a,u){return this.toArrayLike(Array,a,u)};var P=function(a,u){return a.allocUnsafe?a.allocUnsafe(u):new a(u)};n.prototype.toArrayLike=function(a,u,d){this._strip();var y=this.byteLength(),p=d||Math.max(1,y);r(y<=p,"byte array longer than desired length"),r(p>0,"Requested array length <= 0");var s=P(a,p),m=u==="le"?"LE":"BE";return this["_toArrayLike"+m](s,y),s},n.prototype._toArrayLikeLE=function(a,u){for(var d=0,y=0,p=0,s=0;p<this.length;p++){var m=this.words[p]<<s|y;a[d++]=m&255,d<a.length&&(a[d++]=m>>8&255),d<a.length&&(a[d++]=m>>16&255),s===6?(d<a.length&&(a[d++]=m>>24&255),y=0,s=0):(y=m>>>24,s+=2)}if(d<a.length)for(a[d++]=y;d<a.length;)a[d++]=0},n.prototype._toArrayLikeBE=function(a,u){for(var d=a.length-1,y=0,p=0,s=0;p<this.length;p++){var m=this.words[p]<<s|y;a[d--]=m&255,d>=0&&(a[d--]=m>>8&255),d>=0&&(a[d--]=m>>16&255),s===6?(d>=0&&(a[d--]=m>>24&255),y=0,s=0):(y=m>>>24,s+=2)}if(d>=0)for(a[d--]=y;d>=0;)a[d--]=0},Math.clz32?n.prototype._countBits=function(a){return 32-Math.clz32(a)}:n.prototype._countBits=function(a){var u=a,d=0;return u>=4096&&(d+=13,u>>>=13),u>=64&&(d+=7,u>>>=7),u>=8&&(d+=4,u>>>=4),u>=2&&(d+=2,u>>>=2),d+u},n.prototype._zeroBits=function(a){if(a===0)return 26;var u=a,d=0;return(u&8191)===0&&(d+=13,u>>>=13),(u&127)===0&&(d+=7,u>>>=7),(u&15)===0&&(d+=4,u>>>=4),(u&3)===0&&(d+=2,u>>>=2),(u&1)===0&&d++,d},n.prototype.bitLength=function(){var a=this.words[this.length-1],u=this._countBits(a);return(this.length-1)*26+u};function H(c){for(var a=new Array(c.bitLength()),u=0;u<a.length;u++){var d=u/26|0,y=u%26;a[u]=c.words[d]>>>y&1}return a}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,u=0;u<this.length;u++){var d=this._zeroBits(this.words[u]);if(a+=d,d!==26)break}return a},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(a){return this.negative!==0?this.abs().inotn(a).iaddn(1):this.clone()},n.prototype.fromTwos=function(a){return this.testn(a-1)?this.notn(a).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(a){for(;this.length<a.length;)this.words[this.length++]=0;for(var u=0;u<a.length;u++)this.words[u]=this.words[u]|a.words[u];return this._strip()},n.prototype.ior=function(a){return r((this.negative|a.negative)===0),this.iuor(a)},n.prototype.or=function(a){return this.length>a.length?this.clone().ior(a):a.clone().ior(this)},n.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)},n.prototype.iuand=function(a){var u;this.length>a.length?u=a:u=this;for(var d=0;d<u.length;d++)this.words[d]=this.words[d]&a.words[d];return this.length=u.length,this._strip()},n.prototype.iand=function(a){return r((this.negative|a.negative)===0),this.iuand(a)},n.prototype.and=function(a){return this.length>a.length?this.clone().iand(a):a.clone().iand(this)},n.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)},n.prototype.iuxor=function(a){var u,d;this.length>a.length?(u=this,d=a):(u=a,d=this);for(var y=0;y<d.length;y++)this.words[y]=u.words[y]^d.words[y];if(this!==u)for(;y<u.length;y++)this.words[y]=u.words[y];return this.length=u.length,this._strip()},n.prototype.ixor=function(a){return r((this.negative|a.negative)===0),this.iuxor(a)},n.prototype.xor=function(a){return this.length>a.length?this.clone().ixor(a):a.clone().ixor(this)},n.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)},n.prototype.inotn=function(a){r(typeof a=="number"&&a>=0);var u=Math.ceil(a/26)|0,d=a%26;this._expand(u),d>0&&u--;for(var y=0;y<u;y++)this.words[y]=~this.words[y]&67108863;return d>0&&(this.words[y]=~this.words[y]&67108863>>26-d),this._strip()},n.prototype.notn=function(a){return this.clone().inotn(a)},n.prototype.setn=function(a,u){r(typeof a=="number"&&a>=0);var d=a/26|0,y=a%26;return this._expand(d+1),u?this.words[d]=this.words[d]|1<<y:this.words[d]=this.words[d]&~(1<<y),this._strip()},n.prototype.iadd=function(a){var u;if(this.negative!==0&&a.negative===0)return this.negative=0,u=this.isub(a),this.negative^=1,this._normSign();if(this.negative===0&&a.negative!==0)return a.negative=0,u=this.isub(a),a.negative=1,u._normSign();var d,y;this.length>a.length?(d=this,y=a):(d=a,y=this);for(var p=0,s=0;s<y.length;s++)u=(d.words[s]|0)+(y.words[s]|0)+p,this.words[s]=u&67108863,p=u>>>26;for(;p!==0&&s<d.length;s++)u=(d.words[s]|0)+p,this.words[s]=u&67108863,p=u>>>26;if(this.length=d.length,p!==0)this.words[this.length]=p,this.length++;else if(d!==this)for(;s<d.length;s++)this.words[s]=d.words[s];return this},n.prototype.add=function(a){var u;return a.negative!==0&&this.negative===0?(a.negative=0,u=this.sub(a),a.negative^=1,u):a.negative===0&&this.negative!==0?(this.negative=0,u=a.sub(this),this.negative=1,u):this.length>a.length?this.clone().iadd(a):a.clone().iadd(this)},n.prototype.isub=function(a){if(a.negative!==0){a.negative=0;var u=this.iadd(a);return a.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();var d=this.cmp(a);if(d===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,p;d>0?(y=this,p=a):(y=a,p=this);for(var s=0,m=0;m<p.length;m++)u=(y.words[m]|0)-(p.words[m]|0)+s,s=u>>26,this.words[m]=u&67108863;for(;s!==0&&m<y.length;m++)u=(y.words[m]|0)+s,s=u>>26,this.words[m]=u&67108863;if(s===0&&m<y.length&&y!==this)for(;m<y.length;m++)this.words[m]=y.words[m];return this.length=Math.max(this.length,m),y!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(a){return this.clone().isub(a)};function Ee(c,a,u){u.negative=a.negative^c.negative;var d=c.length+a.length|0;u.length=d,d=d-1|0;var y=c.words[0]|0,p=a.words[0]|0,s=y*p,m=s&67108863,_=s/67108864|0;u.words[0]=m;for(var l=1;l<d;l++){for(var x=_>>>26,I=_&67108863,D=Math.min(l,a.length-1),O=Math.max(0,l-c.length+1);O<=D;O++){var L=l-O|0;y=c.words[L]|0,p=a.words[O]|0,s=y*p+I,x+=s/67108864|0,I=s&67108863}u.words[l]=I|0,_=x|0}return _!==0?u.words[l]=_|0:u.length--,u._strip()}var F=function(a,u,d){var y=a.words,p=u.words,s=d.words,m=0,_,l,x,I=y[0]|0,D=I&8191,O=I>>>13,L=y[1]|0,U=L&8191,N=L>>>13,bt=y[2]|0,j=bt&8191,W=bt>>>13,Yi=y[3]|0,V=Yi&8191,$=Yi>>>13,Xi=y[4]|0,z=Xi&8191,Z=Xi>>>13,Qi=y[5]|0,J=Qi&8191,Y=Qi>>>13,en=y[6]|0,X=en&8191,Q=en>>>13,tn=y[7]|0,ee=tn&8191,te=tn>>>13,rn=y[8]|0,re=rn&8191,ie=rn>>>13,nn=y[9]|0,ne=nn&8191,ae=nn>>>13,an=p[0]|0,oe=an&8191,fe=an>>>13,on=p[1]|0,se=on&8191,ue=on>>>13,fn=p[2]|0,he=fn&8191,le=fn>>>13,sn=p[3]|0,ce=sn&8191,de=sn>>>13,un=p[4]|0,pe=un&8191,ve=un>>>13,hn=p[5]|0,ye=hn&8191,ge=hn>>>13,ln=p[6]|0,me=ln&8191,be=ln>>>13,cn=p[7]|0,we=cn&8191,_e=cn>>>13,dn=p[8]|0,xe=dn&8191,Me=dn>>>13,hi=p[9]|0,Ue=hi&8191,Le=hi>>>13;d.negative=a.negative^u.negative,d.length=19,_=Math.imul(D,oe),l=Math.imul(D,fe),l=l+Math.imul(O,oe)|0,x=Math.imul(O,fe);var gr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(gr>>>26)|0,gr&=67108863,_=Math.imul(U,oe),l=Math.imul(U,fe),l=l+Math.imul(N,oe)|0,x=Math.imul(N,fe),_=_+Math.imul(D,se)|0,l=l+Math.imul(D,ue)|0,l=l+Math.imul(O,se)|0,x=x+Math.imul(O,ue)|0;var mr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(mr>>>26)|0,mr&=67108863,_=Math.imul(j,oe),l=Math.imul(j,fe),l=l+Math.imul(W,oe)|0,x=Math.imul(W,fe),_=_+Math.imul(U,se)|0,l=l+Math.imul(U,ue)|0,l=l+Math.imul(N,se)|0,x=x+Math.imul(N,ue)|0,_=_+Math.imul(D,he)|0,l=l+Math.imul(D,le)|0,l=l+Math.imul(O,he)|0,x=x+Math.imul(O,le)|0;var br=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(br>>>26)|0,br&=67108863,_=Math.imul(V,oe),l=Math.imul(V,fe),l=l+Math.imul($,oe)|0,x=Math.imul($,fe),_=_+Math.imul(j,se)|0,l=l+Math.imul(j,ue)|0,l=l+Math.imul(W,se)|0,x=x+Math.imul(W,ue)|0,_=_+Math.imul(U,he)|0,l=l+Math.imul(U,le)|0,l=l+Math.imul(N,he)|0,x=x+Math.imul(N,le)|0,_=_+Math.imul(D,ce)|0,l=l+Math.imul(D,de)|0,l=l+Math.imul(O,ce)|0,x=x+Math.imul(O,de)|0;var wr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(wr>>>26)|0,wr&=67108863,_=Math.imul(z,oe),l=Math.imul(z,fe),l=l+Math.imul(Z,oe)|0,x=Math.imul(Z,fe),_=_+Math.imul(V,se)|0,l=l+Math.imul(V,ue)|0,l=l+Math.imul($,se)|0,x=x+Math.imul($,ue)|0,_=_+Math.imul(j,he)|0,l=l+Math.imul(j,le)|0,l=l+Math.imul(W,he)|0,x=x+Math.imul(W,le)|0,_=_+Math.imul(U,ce)|0,l=l+Math.imul(U,de)|0,l=l+Math.imul(N,ce)|0,x=x+Math.imul(N,de)|0,_=_+Math.imul(D,pe)|0,l=l+Math.imul(D,ve)|0,l=l+Math.imul(O,pe)|0,x=x+Math.imul(O,ve)|0;var _r=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(_r>>>26)|0,_r&=67108863,_=Math.imul(J,oe),l=Math.imul(J,fe),l=l+Math.imul(Y,oe)|0,x=Math.imul(Y,fe),_=_+Math.imul(z,se)|0,l=l+Math.imul(z,ue)|0,l=l+Math.imul(Z,se)|0,x=x+Math.imul(Z,ue)|0,_=_+Math.imul(V,he)|0,l=l+Math.imul(V,le)|0,l=l+Math.imul($,he)|0,x=x+Math.imul($,le)|0,_=_+Math.imul(j,ce)|0,l=l+Math.imul(j,de)|0,l=l+Math.imul(W,ce)|0,x=x+Math.imul(W,de)|0,_=_+Math.imul(U,pe)|0,l=l+Math.imul(U,ve)|0,l=l+Math.imul(N,pe)|0,x=x+Math.imul(N,ve)|0,_=_+Math.imul(D,ye)|0,l=l+Math.imul(D,ge)|0,l=l+Math.imul(O,ye)|0,x=x+Math.imul(O,ge)|0;var xr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(xr>>>26)|0,xr&=67108863,_=Math.imul(X,oe),l=Math.imul(X,fe),l=l+Math.imul(Q,oe)|0,x=Math.imul(Q,fe),_=_+Math.imul(J,se)|0,l=l+Math.imul(J,ue)|0,l=l+Math.imul(Y,se)|0,x=x+Math.imul(Y,ue)|0,_=_+Math.imul(z,he)|0,l=l+Math.imul(z,le)|0,l=l+Math.imul(Z,he)|0,x=x+Math.imul(Z,le)|0,_=_+Math.imul(V,ce)|0,l=l+Math.imul(V,de)|0,l=l+Math.imul($,ce)|0,x=x+Math.imul($,de)|0,_=_+Math.imul(j,pe)|0,l=l+Math.imul(j,ve)|0,l=l+Math.imul(W,pe)|0,x=x+Math.imul(W,ve)|0,_=_+Math.imul(U,ye)|0,l=l+Math.imul(U,ge)|0,l=l+Math.imul(N,ye)|0,x=x+Math.imul(N,ge)|0,_=_+Math.imul(D,me)|0,l=l+Math.imul(D,be)|0,l=l+Math.imul(O,me)|0,x=x+Math.imul(O,be)|0;var Mr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,_=Math.imul(ee,oe),l=Math.imul(ee,fe),l=l+Math.imul(te,oe)|0,x=Math.imul(te,fe),_=_+Math.imul(X,se)|0,l=l+Math.imul(X,ue)|0,l=l+Math.imul(Q,se)|0,x=x+Math.imul(Q,ue)|0,_=_+Math.imul(J,he)|0,l=l+Math.imul(J,le)|0,l=l+Math.imul(Y,he)|0,x=x+Math.imul(Y,le)|0,_=_+Math.imul(z,ce)|0,l=l+Math.imul(z,de)|0,l=l+Math.imul(Z,ce)|0,x=x+Math.imul(Z,de)|0,_=_+Math.imul(V,pe)|0,l=l+Math.imul(V,ve)|0,l=l+Math.imul($,pe)|0,x=x+Math.imul($,ve)|0,_=_+Math.imul(j,ye)|0,l=l+Math.imul(j,ge)|0,l=l+Math.imul(W,ye)|0,x=x+Math.imul(W,ge)|0,_=_+Math.imul(U,me)|0,l=l+Math.imul(U,be)|0,l=l+Math.imul(N,me)|0,x=x+Math.imul(N,be)|0,_=_+Math.imul(D,we)|0,l=l+Math.imul(D,_e)|0,l=l+Math.imul(O,we)|0,x=x+Math.imul(O,_e)|0;var Er=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Er>>>26)|0,Er&=67108863,_=Math.imul(re,oe),l=Math.imul(re,fe),l=l+Math.imul(ie,oe)|0,x=Math.imul(ie,fe),_=_+Math.imul(ee,se)|0,l=l+Math.imul(ee,ue)|0,l=l+Math.imul(te,se)|0,x=x+Math.imul(te,ue)|0,_=_+Math.imul(X,he)|0,l=l+Math.imul(X,le)|0,l=l+Math.imul(Q,he)|0,x=x+Math.imul(Q,le)|0,_=_+Math.imul(J,ce)|0,l=l+Math.imul(J,de)|0,l=l+Math.imul(Y,ce)|0,x=x+Math.imul(Y,de)|0,_=_+Math.imul(z,pe)|0,l=l+Math.imul(z,ve)|0,l=l+Math.imul(Z,pe)|0,x=x+Math.imul(Z,ve)|0,_=_+Math.imul(V,ye)|0,l=l+Math.imul(V,ge)|0,l=l+Math.imul($,ye)|0,x=x+Math.imul($,ge)|0,_=_+Math.imul(j,me)|0,l=l+Math.imul(j,be)|0,l=l+Math.imul(W,me)|0,x=x+Math.imul(W,be)|0,_=_+Math.imul(U,we)|0,l=l+Math.imul(U,_e)|0,l=l+Math.imul(N,we)|0,x=x+Math.imul(N,_e)|0,_=_+Math.imul(D,xe)|0,l=l+Math.imul(D,Me)|0,l=l+Math.imul(O,xe)|0,x=x+Math.imul(O,Me)|0;var Sr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,_=Math.imul(ne,oe),l=Math.imul(ne,fe),l=l+Math.imul(ae,oe)|0,x=Math.imul(ae,fe),_=_+Math.imul(re,se)|0,l=l+Math.imul(re,ue)|0,l=l+Math.imul(ie,se)|0,x=x+Math.imul(ie,ue)|0,_=_+Math.imul(ee,he)|0,l=l+Math.imul(ee,le)|0,l=l+Math.imul(te,he)|0,x=x+Math.imul(te,le)|0,_=_+Math.imul(X,ce)|0,l=l+Math.imul(X,de)|0,l=l+Math.imul(Q,ce)|0,x=x+Math.imul(Q,de)|0,_=_+Math.imul(J,pe)|0,l=l+Math.imul(J,ve)|0,l=l+Math.imul(Y,pe)|0,x=x+Math.imul(Y,ve)|0,_=_+Math.imul(z,ye)|0,l=l+Math.imul(z,ge)|0,l=l+Math.imul(Z,ye)|0,x=x+Math.imul(Z,ge)|0,_=_+Math.imul(V,me)|0,l=l+Math.imul(V,be)|0,l=l+Math.imul($,me)|0,x=x+Math.imul($,be)|0,_=_+Math.imul(j,we)|0,l=l+Math.imul(j,_e)|0,l=l+Math.imul(W,we)|0,x=x+Math.imul(W,_e)|0,_=_+Math.imul(U,xe)|0,l=l+Math.imul(U,Me)|0,l=l+Math.imul(N,xe)|0,x=x+Math.imul(N,Me)|0,_=_+Math.imul(D,Ue)|0,l=l+Math.imul(D,Le)|0,l=l+Math.imul(O,Ue)|0,x=x+Math.imul(O,Le)|0;var Br=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Br>>>26)|0,Br&=67108863,_=Math.imul(ne,se),l=Math.imul(ne,ue),l=l+Math.imul(ae,se)|0,x=Math.imul(ae,ue),_=_+Math.imul(re,he)|0,l=l+Math.imul(re,le)|0,l=l+Math.imul(ie,he)|0,x=x+Math.imul(ie,le)|0,_=_+Math.imul(ee,ce)|0,l=l+Math.imul(ee,de)|0,l=l+Math.imul(te,ce)|0,x=x+Math.imul(te,de)|0,_=_+Math.imul(X,pe)|0,l=l+Math.imul(X,ve)|0,l=l+Math.imul(Q,pe)|0,x=x+Math.imul(Q,ve)|0,_=_+Math.imul(J,ye)|0,l=l+Math.imul(J,ge)|0,l=l+Math.imul(Y,ye)|0,x=x+Math.imul(Y,ge)|0,_=_+Math.imul(z,me)|0,l=l+Math.imul(z,be)|0,l=l+Math.imul(Z,me)|0,x=x+Math.imul(Z,be)|0,_=_+Math.imul(V,we)|0,l=l+Math.imul(V,_e)|0,l=l+Math.imul($,we)|0,x=x+Math.imul($,_e)|0,_=_+Math.imul(j,xe)|0,l=l+Math.imul(j,Me)|0,l=l+Math.imul(W,xe)|0,x=x+Math.imul(W,Me)|0,_=_+Math.imul(U,Ue)|0,l=l+Math.imul(U,Le)|0,l=l+Math.imul(N,Ue)|0,x=x+Math.imul(N,Le)|0;var Ar=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,_=Math.imul(ne,he),l=Math.imul(ne,le),l=l+Math.imul(ae,he)|0,x=Math.imul(ae,le),_=_+Math.imul(re,ce)|0,l=l+Math.imul(re,de)|0,l=l+Math.imul(ie,ce)|0,x=x+Math.imul(ie,de)|0,_=_+Math.imul(ee,pe)|0,l=l+Math.imul(ee,ve)|0,l=l+Math.imul(te,pe)|0,x=x+Math.imul(te,ve)|0,_=_+Math.imul(X,ye)|0,l=l+Math.imul(X,ge)|0,l=l+Math.imul(Q,ye)|0,x=x+Math.imul(Q,ge)|0,_=_+Math.imul(J,me)|0,l=l+Math.imul(J,be)|0,l=l+Math.imul(Y,me)|0,x=x+Math.imul(Y,be)|0,_=_+Math.imul(z,we)|0,l=l+Math.imul(z,_e)|0,l=l+Math.imul(Z,we)|0,x=x+Math.imul(Z,_e)|0,_=_+Math.imul(V,xe)|0,l=l+Math.imul(V,Me)|0,l=l+Math.imul($,xe)|0,x=x+Math.imul($,Me)|0,_=_+Math.imul(j,Ue)|0,l=l+Math.imul(j,Le)|0,l=l+Math.imul(W,Ue)|0,x=x+Math.imul(W,Le)|0;var Rr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,_=Math.imul(ne,ce),l=Math.imul(ne,de),l=l+Math.imul(ae,ce)|0,x=Math.imul(ae,de),_=_+Math.imul(re,pe)|0,l=l+Math.imul(re,ve)|0,l=l+Math.imul(ie,pe)|0,x=x+Math.imul(ie,ve)|0,_=_+Math.imul(ee,ye)|0,l=l+Math.imul(ee,ge)|0,l=l+Math.imul(te,ye)|0,x=x+Math.imul(te,ge)|0,_=_+Math.imul(X,me)|0,l=l+Math.imul(X,be)|0,l=l+Math.imul(Q,me)|0,x=x+Math.imul(Q,be)|0,_=_+Math.imul(J,we)|0,l=l+Math.imul(J,_e)|0,l=l+Math.imul(Y,we)|0,x=x+Math.imul(Y,_e)|0,_=_+Math.imul(z,xe)|0,l=l+Math.imul(z,Me)|0,l=l+Math.imul(Z,xe)|0,x=x+Math.imul(Z,Me)|0,_=_+Math.imul(V,Ue)|0,l=l+Math.imul(V,Le)|0,l=l+Math.imul($,Ue)|0,x=x+Math.imul($,Le)|0;var qr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(qr>>>26)|0,qr&=67108863,_=Math.imul(ne,pe),l=Math.imul(ne,ve),l=l+Math.imul(ae,pe)|0,x=Math.imul(ae,ve),_=_+Math.imul(re,ye)|0,l=l+Math.imul(re,ge)|0,l=l+Math.imul(ie,ye)|0,x=x+Math.imul(ie,ge)|0,_=_+Math.imul(ee,me)|0,l=l+Math.imul(ee,be)|0,l=l+Math.imul(te,me)|0,x=x+Math.imul(te,be)|0,_=_+Math.imul(X,we)|0,l=l+Math.imul(X,_e)|0,l=l+Math.imul(Q,we)|0,x=x+Math.imul(Q,_e)|0,_=_+Math.imul(J,xe)|0,l=l+Math.imul(J,Me)|0,l=l+Math.imul(Y,xe)|0,x=x+Math.imul(Y,Me)|0,_=_+Math.imul(z,Ue)|0,l=l+Math.imul(z,Le)|0,l=l+Math.imul(Z,Ue)|0,x=x+Math.imul(Z,Le)|0;var Tr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,_=Math.imul(ne,ye),l=Math.imul(ne,ge),l=l+Math.imul(ae,ye)|0,x=Math.imul(ae,ge),_=_+Math.imul(re,me)|0,l=l+Math.imul(re,be)|0,l=l+Math.imul(ie,me)|0,x=x+Math.imul(ie,be)|0,_=_+Math.imul(ee,we)|0,l=l+Math.imul(ee,_e)|0,l=l+Math.imul(te,we)|0,x=x+Math.imul(te,_e)|0,_=_+Math.imul(X,xe)|0,l=l+Math.imul(X,Me)|0,l=l+Math.imul(Q,xe)|0,x=x+Math.imul(Q,Me)|0,_=_+Math.imul(J,Ue)|0,l=l+Math.imul(J,Le)|0,l=l+Math.imul(Y,Ue)|0,x=x+Math.imul(Y,Le)|0;var kr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(kr>>>26)|0,kr&=67108863,_=Math.imul(ne,me),l=Math.imul(ne,be),l=l+Math.imul(ae,me)|0,x=Math.imul(ae,be),_=_+Math.imul(re,we)|0,l=l+Math.imul(re,_e)|0,l=l+Math.imul(ie,we)|0,x=x+Math.imul(ie,_e)|0,_=_+Math.imul(ee,xe)|0,l=l+Math.imul(ee,Me)|0,l=l+Math.imul(te,xe)|0,x=x+Math.imul(te,Me)|0,_=_+Math.imul(X,Ue)|0,l=l+Math.imul(X,Le)|0,l=l+Math.imul(Q,Ue)|0,x=x+Math.imul(Q,Le)|0;var Ir=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,_=Math.imul(ne,we),l=Math.imul(ne,_e),l=l+Math.imul(ae,we)|0,x=Math.imul(ae,_e),_=_+Math.imul(re,xe)|0,l=l+Math.imul(re,Me)|0,l=l+Math.imul(ie,xe)|0,x=x+Math.imul(ie,Me)|0,_=_+Math.imul(ee,Ue)|0,l=l+Math.imul(ee,Le)|0,l=l+Math.imul(te,Ue)|0,x=x+Math.imul(te,Le)|0;var sf=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(sf>>>26)|0,sf&=67108863,_=Math.imul(ne,xe),l=Math.imul(ne,Me),l=l+Math.imul(ae,xe)|0,x=Math.imul(ae,Me),_=_+Math.imul(re,Ue)|0,l=l+Math.imul(re,Le)|0,l=l+Math.imul(ie,Ue)|0,x=x+Math.imul(ie,Le)|0;var uf=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(uf>>>26)|0,uf&=67108863,_=Math.imul(ne,Ue),l=Math.imul(ne,Le),l=l+Math.imul(ae,Ue)|0,x=Math.imul(ae,Le);var hf=(m+_|0)+((l&8191)<<13)|0;return m=(x+(l>>>13)|0)+(hf>>>26)|0,hf&=67108863,s[0]=gr,s[1]=mr,s[2]=br,s[3]=wr,s[4]=_r,s[5]=xr,s[6]=Mr,s[7]=Er,s[8]=Sr,s[9]=Br,s[10]=Ar,s[11]=Rr,s[12]=qr,s[13]=Tr,s[14]=kr,s[15]=Ir,s[16]=sf,s[17]=uf,s[18]=hf,m!==0&&(s[19]=m,d.length++),d};Math.imul||(F=Ee);function K(c,a,u){u.negative=a.negative^c.negative,u.length=c.length+a.length;for(var d=0,y=0,p=0;p<u.length-1;p++){var s=y;y=0;for(var m=d&67108863,_=Math.min(p,a.length-1),l=Math.max(0,p-c.length+1);l<=_;l++){var x=p-l,I=c.words[x]|0,D=a.words[l]|0,O=I*D,L=O&67108863;s=s+(O/67108864|0)|0,L=L+m|0,m=L&67108863,s=s+(L>>>26)|0,y+=s>>>26,s&=67108863}u.words[p]=m,d=s,s=y}return d!==0?u.words[p]=d:u.length--,u._strip()}function Fe(c,a,u){return K(c,a,u)}n.prototype.mulTo=function(a,u){var d,y=this.length+a.length;return this.length===10&&a.length===10?d=F(this,a,u):y<63?d=Ee(this,a,u):y<1024?d=K(this,a,u):d=Fe(this,a,u),d};function je(c,a){this.x=c,this.y=a}je.prototype.makeRBT=function(a){for(var u=new Array(a),d=n.prototype._countBits(a)-1,y=0;y<a;y++)u[y]=this.revBin(y,d,a);return u},je.prototype.revBin=function(a,u,d){if(a===0||a===d-1)return a;for(var y=0,p=0;p<u;p++)y|=(a&1)<<u-p-1,a>>=1;return y},je.prototype.permute=function(a,u,d,y,p,s){for(var m=0;m<s;m++)y[m]=u[a[m]],p[m]=d[a[m]]},je.prototype.transform=function(a,u,d,y,p,s){this.permute(s,a,u,d,y,p);for(var m=1;m<p;m<<=1)for(var _=m<<1,l=Math.cos(2*Math.PI/_),x=Math.sin(2*Math.PI/_),I=0;I<p;I+=_)for(var D=l,O=x,L=0;L<m;L++){var U=d[I+L],N=y[I+L],bt=d[I+L+m],j=y[I+L+m],W=D*bt-O*j;j=D*j+O*bt,bt=W,d[I+L]=U+bt,y[I+L]=N+j,d[I+L+m]=U-bt,y[I+L+m]=N-j,L!==_&&(W=l*D-x*O,O=l*O+x*D,D=W)}},je.prototype.guessLen13b=function(a,u){var d=Math.max(u,a)|1,y=d&1,p=0;for(d=d/2|0;d;d=d>>>1)p++;return 1<<p+1+y},je.prototype.conjugate=function(a,u,d){if(!(d<=1))for(var y=0;y<d/2;y++){var p=a[y];a[y]=a[d-y-1],a[d-y-1]=p,p=u[y],u[y]=-u[d-y-1],u[d-y-1]=-p}},je.prototype.normalize13b=function(a,u){for(var d=0,y=0;y<u/2;y++){var p=Math.round(a[2*y+1]/u)*8192+Math.round(a[2*y]/u)+d;a[y]=p&67108863,p<67108864?d=0:d=p/67108864|0}return a},je.prototype.convert13b=function(a,u,d,y){for(var p=0,s=0;s<u;s++)p=p+(a[s]|0),d[2*s]=p&8191,p=p>>>13,d[2*s+1]=p&8191,p=p>>>13;for(s=2*u;s<y;++s)d[s]=0;r(p===0),r((p&-8192)===0)},je.prototype.stub=function(a){for(var u=new Array(a),d=0;d<a;d++)u[d]=0;return u},je.prototype.mulp=function(a,u,d){var y=2*this.guessLen13b(a.length,u.length),p=this.makeRBT(y),s=this.stub(y),m=new Array(y),_=new Array(y),l=new Array(y),x=new Array(y),I=new Array(y),D=new Array(y),O=d.words;O.length=y,this.convert13b(a.words,a.length,m,y),this.convert13b(u.words,u.length,x,y),this.transform(m,s,_,l,y,p),this.transform(x,s,I,D,y,p);for(var L=0;L<y;L++){var U=_[L]*I[L]-l[L]*D[L];l[L]=_[L]*D[L]+l[L]*I[L],_[L]=U}return this.conjugate(_,l,y),this.transform(_,l,O,s,y,p),this.conjugate(O,s,y),this.normalize13b(O,y),d.negative=a.negative^u.negative,d.length=a.length+u.length,d._strip()},n.prototype.mul=function(a){var u=new n(null);return u.words=new Array(this.length+a.length),this.mulTo(a,u)},n.prototype.mulf=function(a){var u=new n(null);return u.words=new Array(this.length+a.length),Fe(this,a,u)},n.prototype.imul=function(a){return this.clone().mulTo(a,this)},n.prototype.imuln=function(a){var u=a<0;u&&(a=-a),r(typeof a=="number"),r(a<67108864);for(var d=0,y=0;y<this.length;y++){var p=(this.words[y]|0)*a,s=(p&67108863)+(d&67108863);d>>=26,d+=p/67108864|0,d+=s>>>26,this.words[y]=s&67108863}return d!==0&&(this.words[y]=d,this.length++),this.length=a===0?1:this.length,u?this.ineg():this},n.prototype.muln=function(a){return this.clone().imuln(a)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(a){var u=H(a);if(u.length===0)return new n(1);for(var d=this,y=0;y<u.length&&u[y]===0;y++,d=d.sqr());if(++y<u.length)for(var p=d.sqr();y<u.length;y++,p=p.sqr())u[y]!==0&&(d=d.mul(p));return d},n.prototype.iushln=function(a){r(typeof a=="number"&&a>=0);var u=a%26,d=(a-u)/26,y=67108863>>>26-u<<26-u,p;if(u!==0){var s=0;for(p=0;p<this.length;p++){var m=this.words[p]&y,_=(this.words[p]|0)-m<<u;this.words[p]=_|s,s=m>>>26-u}s&&(this.words[p]=s,this.length++)}if(d!==0){for(p=this.length-1;p>=0;p--)this.words[p+d]=this.words[p];for(p=0;p<d;p++)this.words[p]=0;this.length+=d}return this._strip()},n.prototype.ishln=function(a){return r(this.negative===0),this.iushln(a)},n.prototype.iushrn=function(a,u,d){r(typeof a=="number"&&a>=0);var y;u?y=(u-u%26)/26:y=0;var p=a%26,s=Math.min((a-p)/26,this.length),m=67108863^67108863>>>p<<p,_=d;if(y-=s,y=Math.max(0,y),_){for(var l=0;l<s;l++)_.words[l]=this.words[l];_.length=s}if(s!==0)if(this.length>s)for(this.length-=s,l=0;l<this.length;l++)this.words[l]=this.words[l+s];else this.words[0]=0,this.length=1;var x=0;for(l=this.length-1;l>=0&&(x!==0||l>=y);l--){var I=this.words[l]|0;this.words[l]=x<<26-p|I>>>p,x=I&m}return _&&x!==0&&(_.words[_.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(a,u,d){return r(this.negative===0),this.iushrn(a,u,d)},n.prototype.shln=function(a){return this.clone().ishln(a)},n.prototype.ushln=function(a){return this.clone().iushln(a)},n.prototype.shrn=function(a){return this.clone().ishrn(a)},n.prototype.ushrn=function(a){return this.clone().iushrn(a)},n.prototype.testn=function(a){r(typeof a=="number"&&a>=0);var u=a%26,d=(a-u)/26,y=1<<u;if(this.length<=d)return!1;var p=this.words[d];return!!(p&y)},n.prototype.imaskn=function(a){r(typeof a=="number"&&a>=0);var u=a%26,d=(a-u)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=d)return this;if(u!==0&&d++,this.length=Math.min(d,this.length),u!==0){var y=67108863^67108863>>>u<<u;this.words[this.length-1]&=y}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.maskn=function(a){return this.clone().imaskn(a)},n.prototype.iaddn=function(a){return r(typeof a=="number"),r(a<67108864),a<0?this.isubn(-a):this.negative!==0?this.length===1&&(this.words[0]|0)<=a?(this.words[0]=a-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(a),this.negative=1,this):this._iaddn(a)},n.prototype._iaddn=function(a){this.words[0]+=a;for(var u=0;u<this.length&&this.words[u]>=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},n.prototype.isubn=function(a){if(r(typeof a=="number"),r(a<67108864),a<0)return this.iaddn(-a);if(this.negative!==0)return this.negative=0,this.iaddn(a),this.negative=1,this;if(this.words[0]-=a,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u<this.length&&this.words[u]<0;u++)this.words[u]+=67108864,this.words[u+1]-=1;return this._strip()},n.prototype.addn=function(a){return this.clone().iaddn(a)},n.prototype.subn=function(a){return this.clone().isubn(a)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(a,u,d){var y=a.length+d,p;this._expand(y);var s,m=0;for(p=0;p<a.length;p++){s=(this.words[p+d]|0)+m;var _=(a.words[p]|0)*u;s-=_&67108863,m=(s>>26)-(_/67108864|0),this.words[p+d]=s&67108863}for(;p<this.length-d;p++)s=(this.words[p+d]|0)+m,m=s>>26,this.words[p+d]=s&67108863;if(m===0)return this._strip();for(r(m===-1),m=0,p=0;p<this.length;p++)s=-(this.words[p]|0)+m,m=s>>26,this.words[p]=s&67108863;return this.negative=1,this._strip()},n.prototype._wordDiv=function(a,u){var d=this.length-a.length,y=this.clone(),p=a,s=p.words[p.length-1]|0,m=this._countBits(s);d=26-m,d!==0&&(p=p.ushln(d),y.iushln(d),s=p.words[p.length-1]|0);var _=y.length-p.length,l;if(u!=="mod"){l=new n(null),l.length=_+1,l.words=new Array(l.length);for(var x=0;x<l.length;x++)l.words[x]=0}var I=y.clone()._ishlnsubmul(p,1,_);I.negative===0&&(y=I,l&&(l.words[_]=1));for(var D=_-1;D>=0;D--){var O=(y.words[p.length+D]|0)*67108864+(y.words[p.length+D-1]|0);for(O=Math.min(O/s|0,67108863),y._ishlnsubmul(p,O,D);y.negative!==0;)O--,y.negative=0,y._ishlnsubmul(p,1,D),y.isZero()||(y.negative^=1);l&&(l.words[D]=O)}return l&&l._strip(),y._strip(),u!=="div"&&d!==0&&y.iushrn(d),{div:l||null,mod:y}},n.prototype.divmod=function(a,u,d){if(r(!a.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var y,p,s;return this.negative!==0&&a.negative===0?(s=this.neg().divmod(a,u),u!=="mod"&&(y=s.div.neg()),u!=="div"&&(p=s.mod.neg(),d&&p.negative!==0&&p.iadd(a)),{div:y,mod:p}):this.negative===0&&a.negative!==0?(s=this.divmod(a.neg(),u),u!=="mod"&&(y=s.div.neg()),{div:y,mod:s.mod}):(this.negative&a.negative)!==0?(s=this.neg().divmod(a.neg(),u),u!=="div"&&(p=s.mod.neg(),d&&p.negative!==0&&p.isub(a)),{div:s.div,mod:p}):a.length>this.length||this.cmp(a)<0?{div:new n(0),mod:this}:a.length===1?u==="div"?{div:this.divn(a.words[0]),mod:null}:u==="mod"?{div:null,mod:new n(this.modrn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new n(this.modrn(a.words[0]))}:this._wordDiv(a,u)},n.prototype.div=function(a){return this.divmod(a,"div",!1).div},n.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod},n.prototype.umod=function(a){return this.divmod(a,"mod",!0).mod},n.prototype.divRound=function(a){var u=this.divmod(a);if(u.mod.isZero())return u.div;var d=u.div.negative!==0?u.mod.isub(a):u.mod,y=a.ushrn(1),p=a.andln(1),s=d.cmp(y);return s<0||p===1&&s===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},n.prototype.modrn=function(a){var u=a<0;u&&(a=-a),r(a<=67108863);for(var d=(1<<26)%a,y=0,p=this.length-1;p>=0;p--)y=(d*y+(this.words[p]|0))%a;return u?-y:y},n.prototype.modn=function(a){return this.modrn(a)},n.prototype.idivn=function(a){var u=a<0;u&&(a=-a),r(a<=67108863);for(var d=0,y=this.length-1;y>=0;y--){var p=(this.words[y]|0)+d*67108864;this.words[y]=p/a|0,d=p%a}return this._strip(),u?this.ineg():this},n.prototype.divn=function(a){return this.clone().idivn(a)},n.prototype.egcd=function(a){r(a.negative===0),r(!a.isZero());var u=this,d=a.clone();u.negative!==0?u=u.umod(a):u=u.clone();for(var y=new n(1),p=new n(0),s=new n(0),m=new n(1),_=0;u.isEven()&&d.isEven();)u.iushrn(1),d.iushrn(1),++_;for(var l=d.clone(),x=u.clone();!u.isZero();){for(var I=0,D=1;(u.words[0]&D)===0&&I<26;++I,D<<=1);if(I>0)for(u.iushrn(I);I-- >0;)(y.isOdd()||p.isOdd())&&(y.iadd(l),p.isub(x)),y.iushrn(1),p.iushrn(1);for(var O=0,L=1;(d.words[0]&L)===0&&O<26;++O,L<<=1);if(O>0)for(d.iushrn(O);O-- >0;)(s.isOdd()||m.isOdd())&&(s.iadd(l),m.isub(x)),s.iushrn(1),m.iushrn(1);u.cmp(d)>=0?(u.isub(d),y.isub(s),p.isub(m)):(d.isub(u),s.isub(y),m.isub(p))}return{a:s,b:m,gcd:d.iushln(_)}},n.prototype._invmp=function(a){r(a.negative===0),r(!a.isZero());var u=this,d=a.clone();u.negative!==0?u=u.umod(a):u=u.clone();for(var y=new n(1),p=new n(0),s=d.clone();u.cmpn(1)>0&&d.cmpn(1)>0;){for(var m=0,_=1;(u.words[0]&_)===0&&m<26;++m,_<<=1);if(m>0)for(u.iushrn(m);m-- >0;)y.isOdd()&&y.iadd(s),y.iushrn(1);for(var l=0,x=1;(d.words[0]&x)===0&&l<26;++l,x<<=1);if(l>0)for(d.iushrn(l);l-- >0;)p.isOdd()&&p.iadd(s),p.iushrn(1);u.cmp(d)>=0?(u.isub(d),y.isub(p)):(d.isub(u),p.isub(y))}var I;return u.cmpn(1)===0?I=y:I=p,I.cmpn(0)<0&&I.iadd(a),I},n.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var u=this.clone(),d=a.clone();u.negative=0,d.negative=0;for(var y=0;u.isEven()&&d.isEven();y++)u.iushrn(1),d.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;d.isEven();)d.iushrn(1);var p=u.cmp(d);if(p<0){var s=u;u=d,d=s}else if(p===0||d.cmpn(1)===0)break;u.isub(d)}while(!0);return d.iushln(y)},n.prototype.invm=function(a){return this.egcd(a).a.umod(a)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(a){return this.words[0]&a},n.prototype.bincn=function(a){r(typeof a=="number");var u=a%26,d=(a-u)/26,y=1<<u;if(this.length<=d)return this._expand(d+1),this.words[d]|=y,this;for(var p=y,s=d;p!==0&&s<this.length;s++){var m=this.words[s]|0;m+=p,p=m>>>26,m&=67108863,this.words[s]=m}return p!==0&&(this.words[s]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(a){var u=a<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this._strip();var d;if(this.length>1)d=1;else{u&&(a=-a),r(a<=67108863,"Number is too big");var y=this.words[0]|0;d=y===a?0:y<a?-1:1}return this.negative!==0?-d|0:d},n.prototype.cmp=function(a){if(this.negative!==0&&a.negative===0)return-1;if(this.negative===0&&a.negative!==0)return 1;var u=this.ucmp(a);return this.negative!==0?-u|0:u},n.prototype.ucmp=function(a){if(this.length>a.length)return 1;if(this.length<a.length)return-1;for(var u=0,d=this.length-1;d>=0;d--){var y=this.words[d]|0,p=a.words[d]|0;if(y!==p){y<p?u=-1:y>p&&(u=1);break}}return u},n.prototype.gtn=function(a){return this.cmpn(a)===1},n.prototype.gt=function(a){return this.cmp(a)===1},n.prototype.gten=function(a){return this.cmpn(a)>=0},n.prototype.gte=function(a){return this.cmp(a)>=0},n.prototype.ltn=function(a){return this.cmpn(a)===-1},n.prototype.lt=function(a){return this.cmp(a)===-1},n.prototype.lten=function(a){return this.cmpn(a)<=0},n.prototype.lte=function(a){return this.cmp(a)<=0},n.prototype.eqn=function(a){return this.cmpn(a)===0},n.prototype.eq=function(a){return this.cmp(a)===0},n.red=function(a){return new h(a)},n.prototype.toRed=function(a){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),a.convertTo(this)._forceRed(a)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(a){return this.red=a,this},n.prototype.forceRed=function(a){return r(!this.red,"Already a number in reduction context"),this._forceRed(a)},n.prototype.redAdd=function(a){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,a)},n.prototype.redIAdd=function(a){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,a)},n.prototype.redSub=function(a){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,a)},n.prototype.redISub=function(a){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,a)},n.prototype.redShl=function(a){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,a)},n.prototype.redMul=function(a){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.mul(this,a)},n.prototype.redIMul=function(a){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.imul(this,a)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(a){return r(this.red&&!a.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,a)};var nr={k256:null,p224:null,p192:null,p25519:null};function Ve(c,a){this.name=c,this.p=new n(a,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ve.prototype._tmp=function(){var a=new n(null);return a.words=new Array(Math.ceil(this.n/13)),a},Ve.prototype.ireduce=function(a){var u=a,d;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),d=u.bitLength();while(d>this.n);var y=d<this.n?-1:u.ucmp(this.p);return y===0?(u.words[0]=0,u.length=1):y>0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},Ve.prototype.split=function(a,u){a.iushrn(this.n,0,u)},Ve.prototype.imulK=function(a){return a.imul(this.k)};function Tt(){Ve.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(Tt,Ve),Tt.prototype.split=function(a,u){for(var d=4194303,y=Math.min(a.length,9),p=0;p<y;p++)u.words[p]=a.words[p];if(u.length=y,a.length<=9){a.words[0]=0,a.length=1;return}var s=a.words[9];for(u.words[u.length++]=s&d,p=10;p<a.length;p++){var m=a.words[p]|0;a.words[p-10]=(m&d)<<4|s>>>22,s=m}s>>>=22,a.words[p-10]=s,s===0&&a.length>10?a.length-=10:a.length-=9},Tt.prototype.imulK=function(a){a.words[a.length]=0,a.words[a.length+1]=0,a.length+=2;for(var u=0,d=0;d<a.length;d++){var y=a.words[d]|0;u+=y*977,a.words[d]=u&67108863,u=y*64+(u/67108864|0)}return a.words[a.length-1]===0&&(a.length--,a.words[a.length-1]===0&&a.length--),a};function De(){Ve.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(De,Ve);function st(){Ve.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(st,Ve);function E(){Ve.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(E,Ve),E.prototype.imulK=function(a){for(var u=0,d=0;d<a.length;d++){var y=(a.words[d]|0)*19+u,p=y&67108863;y>>>=26,a.words[d]=p,u=y}return u!==0&&(a.words[a.length++]=u),a},n._prime=function(a){if(nr[a])return nr[a];var u;if(a==="k256")u=new Tt;else if(a==="p224")u=new De;else if(a==="p192")u=new st;else if(a==="p25519")u=new E;else throw new Error("Unknown prime "+a);return nr[a]=u,u};function h(c){if(typeof c=="string"){var a=n._prime(c);this.m=a.p,this.prime=a}else r(c.gtn(1),"modulus must be greater than 1"),this.m=c,this.prime=null}h.prototype._verify1=function(a){r(a.negative===0,"red works only with positives"),r(a.red,"red works only with red numbers")},h.prototype._verify2=function(a,u){r((a.negative|u.negative)===0,"red works only with positives"),r(a.red&&a.red===u.red,"red works only with red numbers")},h.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(S(a,a.umod(this.m)._forceRed(this)),a)},h.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},h.prototype.add=function(a,u){this._verify2(a,u);var d=a.add(u);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},h.prototype.iadd=function(a,u){this._verify2(a,u);var d=a.iadd(u);return d.cmp(this.m)>=0&&d.isub(this.m),d},h.prototype.sub=function(a,u){this._verify2(a,u);var d=a.sub(u);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},h.prototype.isub=function(a,u){this._verify2(a,u);var d=a.isub(u);return d.cmpn(0)<0&&d.iadd(this.m),d},h.prototype.shl=function(a,u){return this._verify1(a),this.imod(a.ushln(u))},h.prototype.imul=function(a,u){return this._verify2(a,u),this.imod(a.imul(u))},h.prototype.mul=function(a,u){return this._verify2(a,u),this.imod(a.mul(u))},h.prototype.isqr=function(a){return this.imul(a,a.clone())},h.prototype.sqr=function(a){return this.mul(a,a)},h.prototype.sqrt=function(a){if(a.isZero())return a.clone();var u=this.m.andln(3);if(r(u%2===1),u===3){var d=this.m.add(new n(1)).iushrn(2);return this.pow(a,d)}for(var y=this.m.subn(1),p=0;!y.isZero()&&y.andln(1)===0;)p++,y.iushrn(1);r(!y.isZero());var s=new n(1).toRed(this),m=s.redNeg(),_=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new n(2*l*l).toRed(this);this.pow(l,_).cmp(m)!==0;)l.redIAdd(m);for(var x=this.pow(l,y),I=this.pow(a,y.addn(1).iushrn(1)),D=this.pow(a,y),O=p;D.cmp(s)!==0;){for(var L=D,U=0;L.cmp(s)!==0;U++)L=L.redSqr();r(U<O);var N=this.pow(x,new n(1).iushln(O-U-1));I=I.redMul(N),x=N.redSqr(),D=D.redMul(x),O=U}return I},h.prototype.invm=function(a){var u=a._invmp(this.m);return u.negative!==0?(u.negative=0,this.imod(u).redNeg()):this.imod(u)},h.prototype.pow=function(a,u){if(u.isZero())return new n(1).toRed(this);if(u.cmpn(1)===0)return a.clone();var d=4,y=new Array(1<<d);y[0]=new n(1).toRed(this),y[1]=a;for(var p=2;p<y.length;p++)y[p]=this.mul(y[p-1],a);var s=y[0],m=0,_=0,l=u.bitLength()%26;for(l===0&&(l=26),p=u.length-1;p>=0;p--){for(var x=u.words[p],I=l-1;I>=0;I--){var D=x>>I&1;if(s!==y[0]&&(s=this.sqr(s)),D===0&&m===0){_=0;continue}m<<=1,m|=D,_++,!(_!==d&&(p!==0||I!==0))&&(s=this.mul(s,y[m]),_=0,m=0)}l=26}return s},h.prototype.convertTo=function(a){var u=a.umod(this.m);return u===a?u.clone():u},h.prototype.convertFrom=function(a){var u=a.clone();return u.red=null,u},n.mont=function(a){return new g(a)};function g(c){h.call(this,c),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(g,h),g.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))},g.prototype.convertFrom=function(a){var u=this.imod(a.mul(this.rinv));return u.red=null,u},g.prototype.imul=function(a,u){if(a.isZero()||u.isZero())return a.words[0]=0,a.length=1,a;var d=a.imul(u),y=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=d.isub(y).iushrn(this.shift),s=p;return p.cmp(this.m)>=0?s=p.isub(this.m):p.cmpn(0)<0&&(s=p.iadd(this.m)),s._forceRed(this)},g.prototype.mul=function(a,u){if(a.isZero()||u.isZero())return new n(0)._forceRed(this);var d=a.mul(u),y=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=d.isub(y).iushrn(this.shift),s=p;return p.cmp(this.m)>=0?s=p.isub(this.m):p.cmpn(0)<0&&(s=p.iadd(this.m)),s._forceRed(this)},g.prototype.invm=function(a){var u=this.imod(a._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(typeof hh>"u"||hh,rg)});var lh=B((H9,og)=>{"use strict";b();var Ji=ig(),kM=Ur(),IM=Se().Buffer;function ng(t){var e=t.modulus.byteLength(),r;do r=new Ji(kM(e));while(r.cmp(t.modulus)>=0||!r.umod(t.prime1)||!r.umod(t.prime2));return r}function CM(t){var e=ng(t),r=e.toRed(Ji.mont(t.modulus)).redPow(new Ji(t.publicExponent)).fromRed();return{blinder:r,unblinder:e.invm(t.modulus)}}function ag(t,e){var r=CM(e),i=e.modulus.byteLength(),n=new Ji(t).mul(r.blinder).umod(e.modulus),o=n.toRed(Ji.mont(e.prime1)),f=n.toRed(Ji.mont(e.prime2)),v=e.coefficient,w=e.prime1,S=e.prime2,A=o.redPow(e.exponent1).fromRed(),q=f.redPow(e.exponent2).fromRed(),T=A.isub(q).imul(v).umod(w).imul(S);return q.iadd(T).imul(r.unblinder).umod(e.modulus).toArrayLike(IM,"be",i)}ag.getr=ng;og.exports=ag});var hg=B((K9,ug)=>{b();var OM=ah(),ch=Ur(),DM=Jn(),fg=fh(),sg=sh(),dh=vr(),PM=uh(),UM=lh(),qt=Se().Buffer;ug.exports=function(e,r,i){var n;e.padding?n=e.padding:i?n=1:n=4;var o=OM(e),f;if(n===4)f=LM(o,r);else if(n===1)f=NM(o,r,i);else if(n===3){if(f=new dh(r),f.cmp(o.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return i?UM(f,o):PM(f,o)};function LM(t,e){var r=t.modulus.byteLength(),i=e.length,n=DM("sha1").update(qt.alloc(0)).digest(),o=n.length,f=2*o;if(i>r-f-2)throw new Error("message too long");var v=qt.alloc(r-i-f-2),w=r-o-1,S=ch(o),A=sg(qt.concat([n,v,qt.alloc(1,1),e],w),fg(S,w)),q=sg(S,fg(A,o));return new dh(qt.concat([qt.alloc(1),q,A],r))}function NM(t,e,r){var i=e.length,n=t.modulus.byteLength();if(i>n-11)throw new Error("message too long");var o;return r?o=qt.alloc(n-i-3,255):o=FM(n-i-3),new dh(qt.concat([qt.from([0,r?1:2]),o,qt.alloc(1),e],n))}function FM(t){for(var e=qt.allocUnsafe(t),r=0,i=ch(t*2),n=0,o;r<t;)n===i.length&&(i=ch(t*2),n=0),o=i[n++],o&&(e[r++]=o);return e}});var vg=B((V9,pg)=>{b();var jM=ah(),lg=fh(),cg=sh(),dg=vr(),HM=lh(),WM=Jn(),KM=uh(),sa=Se().Buffer;pg.exports=function(e,r,i){var n;e.padding?n=e.padding:i?n=1:n=4;var o=jM(e),f=o.modulus.byteLength();if(r.length>f||new dg(r).cmp(o.modulus)>=0)throw new Error("decryption error");var v;i?v=KM(new dg(r),o):v=HM(r,o);var w=sa.alloc(f-v.length);if(v=sa.concat([w,v],f),n===4)return GM(o,v);if(n===1)return VM(o,v,i);if(n===3)return v;throw new Error("unknown padding")};function GM(t,e){var r=t.modulus.byteLength(),i=WM("sha1").update(sa.alloc(0)).digest(),n=i.length;if(e[0]!==0)throw new Error("decryption error");var o=e.slice(1,n+1),f=e.slice(n+1),v=cg(o,lg(f,n)),w=cg(f,lg(v,r-n-1));if($M(i,w.slice(0,n)))throw new Error("decryption error");for(var S=n;w[S]===0;)S++;if(w[S++]!==1)throw new Error("decryption error");return w.slice(S)}function VM(t,e,r){for(var i=e.slice(0,2),n=2,o=0;e[n++]!==0;)if(n>=e.length){o++;break}var f=e.slice(2,n-1);if((i.toString("hex")!=="0002"&&!r||i.toString("hex")!=="0001"&&r)&&o++,f.length<8&&o++,o)throw new Error("decryption error");return e.slice(n)}function $M(t,e){t=sa.from(t),e=sa.from(e);var r=0,i=t.length;t.length!==e.length&&(r++,i=Math.min(t.length,e.length));for(var n=-1;++n<i;)r+=t[n]^e[n];return r}});var yg=B(ui=>{b();ui.publicEncrypt=hg();ui.privateDecrypt=vg();ui.privateEncrypt=function(e,r){return ui.publicEncrypt(e,r,!0)};ui.publicDecrypt=function(e,r){return ui.privateDecrypt(e,r,!0)}});var Bg=B(ua=>{"use strict";b();function gg(){throw new Error(`secure random number generation not supported by this browser
|