@smartledger/bsv 7.10.1 → 7.12.0

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.
@@ -1,74 +1,68 @@
1
- var bsvStatusList=(()=>{var DE=Object.create;var z0=Object.defineProperty;var NE=Object.getOwnPropertyDescriptor;var PE=Object.getOwnPropertyNames;var LE=Object.getPrototypeOf,CE=Object.prototype.hasOwnProperty;var UE=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(i){throw r=[i],i}};var k=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var FE=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of PE(t))!CE.call(e,n)&&n!==r&&z0(e,n,{get:()=>t[n],enumerable:!(i=NE(t,n))||i.enumerable});return e};var Z0=(e,t,r)=>(r=e!=null?DE(LE(e)):{},FE(t||!e||!e.__esModule?z0(r,"default",{value:e,enumerable:!0}):r,e));var V0=k((kO,G0)=>{m();var et=G0.exports={},sr,ur;function Ku(){throw new Error("setTimeout has not been defined")}function Gu(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?sr=setTimeout:sr=Ku}catch{sr=Ku}try{typeof clearTimeout=="function"?ur=clearTimeout:ur=Gu}catch{ur=Gu}})();function H0(e){if(sr===setTimeout)return setTimeout(e,0);if((sr===Ku||!sr)&&setTimeout)return sr=setTimeout,setTimeout(e,0);try{return sr(e,0)}catch{try{return sr.call(null,e,0)}catch{return sr.call(this,e,0)}}}function jE(e){if(ur===clearTimeout)return clearTimeout(e);if((ur===Gu||!ur)&&clearTimeout)return ur=clearTimeout,clearTimeout(e);try{return ur(e)}catch{try{return ur.call(null,e)}catch{return ur.call(this,e)}}}var Mr=[],Sn=!1,ki,uf=-1;function zE(){!Sn||!ki||(Sn=!1,ki.length?Mr=ki.concat(Mr):uf=-1,Mr.length&&W0())}function W0(){if(!Sn){var e=H0(zE);Sn=!0;for(var t=Mr.length;t;){for(ki=Mr,Mr=[];++uf<t;)ki&&ki[uf].run();uf=-1,t=Mr.length}ki=null,Sn=!1,jE(e)}}et.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Mr.push(new K0(e,t)),Mr.length===1&&!Sn&&H0(W0)};function K0(e,t){this.fun=e,this.array=t}K0.prototype.run=function(){this.fun.apply(null,this.array)};et.title="browser";et.browser=!0;et.env={};et.argv=[];et.version="";et.versions={};function Ar(){}et.on=Ar;et.addListener=Ar;et.once=Ar;et.off=Ar;et.removeListener=Ar;et.removeAllListeners=Ar;et.emit=Ar;et.prependListener=Ar;et.prependOnceListener=Ar;et.listeners=function(e){return[]};et.binding=function(e){throw new Error("process.binding is not supported")};et.cwd=function(){return"/"};et.chdir=function(e){throw new Error("process.chdir is not supported")};et.umask=function(){return 0}});var J0=k(lf=>{"use strict";m();lf.byteLength=HE;lf.toByteArray=KE;lf.fromByteArray=$E;var lr=[],Tt=[],ZE=typeof Uint8Array<"u"?Uint8Array:Array,Vu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ti=0,$0=Vu.length;Ti<$0;++Ti)lr[Ti]=Vu[Ti],Tt[Vu.charCodeAt(Ti)]=Ti;var Ti,$0;Tt[45]=62;Tt[95]=63;function Y0(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function HE(e){var t=Y0(e),r=t[0],i=t[1];return(r+i)*3/4-i}function WE(e,t,r){return(t+r)*3/4-r}function KE(e){var t,r=Y0(e),i=r[0],n=r[1],a=new ZE(WE(e,i,n)),o=0,s=n>0?i-4:i,y;for(y=0;y<s;y+=4)t=Tt[e.charCodeAt(y)]<<18|Tt[e.charCodeAt(y+1)]<<12|Tt[e.charCodeAt(y+2)]<<6|Tt[e.charCodeAt(y+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return n===2&&(t=Tt[e.charCodeAt(y)]<<2|Tt[e.charCodeAt(y+1)]>>4,a[o++]=t&255),n===1&&(t=Tt[e.charCodeAt(y)]<<10|Tt[e.charCodeAt(y+1)]<<4|Tt[e.charCodeAt(y+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function GE(e){return lr[e>>18&63]+lr[e>>12&63]+lr[e>>6&63]+lr[e&63]}function VE(e,t,r){for(var i,n=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),n.push(GE(i));return n.join("")}function $E(e){for(var t,r=e.length,i=r%3,n=[],a=16383,o=0,s=r-i;o<s;o+=a)n.push(VE(e,o,o+a>s?s:o+a));return i===1?(t=e[r-1],n.push(lr[t>>2]+lr[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(lr[t>>10]+lr[t>>4&63]+lr[t<<2&63]+"=")),n.join("")}});var X0=k($u=>{m();$u.read=function(e,t,r,i,n){var a,o,s=n*8-i-1,y=(1<<s)-1,b=y>>1,x=-7,B=r?n-1:0,R=r?-1:1,T=e[t+B];for(B+=R,a=T&(1<<-x)-1,T>>=-x,x+=s;x>0;a=a*256+e[t+B],B+=R,x-=8);for(o=a&(1<<-x)-1,a>>=-x,x+=i;x>0;o=o*256+e[t+B],B+=R,x-=8);if(a===0)a=1-b;else{if(a===y)return o?NaN:(T?-1:1)*(1/0);o=o+Math.pow(2,i),a=a-b}return(T?-1:1)*o*Math.pow(2,a-i)};$u.write=function(e,t,r,i,n,a){var o,s,y,b=a*8-n-1,x=(1<<b)-1,B=x>>1,R=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=i?0:a-1,O=i?1:-1,D=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=x):(o=Math.floor(Math.log(t)/Math.LN2),t*(y=Math.pow(2,-o))<1&&(o--,y*=2),o+B>=1?t+=R/y:t+=R*Math.pow(2,1-B),t*y>=2&&(o++,y/=2),o+B>=x?(s=0,o=x):o+B>=1?(s=(t*y-1)*Math.pow(2,n),o=o+B):(s=t*Math.pow(2,B-1)*Math.pow(2,n),o=0));n>=8;e[r+T]=s&255,T+=O,s/=256,n-=8);for(o=o<<n|s,b+=n;b>0;e[r+T]=o&255,T+=O,o/=256,b-=8);e[r+T-O]|=D*128}});var st=k(Rn=>{"use strict";m();var Yu=J0(),An=X0(),Q0=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Rn.Buffer=q;Rn.SlowBuffer=t6;Rn.INSPECT_MAX_BYTES=50;var hf=2147483647;Rn.kMaxLength=hf;q.TYPED_ARRAY_SUPPORT=YE();!q.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function YE(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(q.prototype,"parent",{enumerable:!0,get:function(){if(q.isBuffer(this))return this.buffer}});Object.defineProperty(q.prototype,"offset",{enumerable:!0,get:function(){if(q.isBuffer(this))return this.byteOffset}});function Br(e){if(e>hf)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,q.prototype),t}function q(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return el(e)}return id(e,t,r)}q.poolSize=8192;function id(e,t,r){if(typeof e=="string")return XE(e,t);if(ArrayBuffer.isView(e))return QE(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(hr(e,ArrayBuffer)||e&&hr(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(hr(e,SharedArrayBuffer)||e&&hr(e.buffer,SharedArrayBuffer)))return Xu(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return q.from(i,t,r);let n=e6(e);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return q.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}q.from=function(e,t,r){return id(e,t,r)};Object.setPrototypeOf(q.prototype,Uint8Array.prototype);Object.setPrototypeOf(q,Uint8Array);function nd(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function JE(e,t,r){return nd(e),e<=0?Br(e):t!==void 0?typeof r=="string"?Br(e).fill(t,r):Br(e).fill(t):Br(e)}q.alloc=function(e,t,r){return JE(e,t,r)};function el(e){return nd(e),Br(e<0?0:tl(e)|0)}q.allocUnsafe=function(e){return el(e)};q.allocUnsafeSlow=function(e){return el(e)};function XE(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!q.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=ad(e,t)|0,i=Br(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}function Ju(e){let t=e.length<0?0:tl(e.length)|0,r=Br(t);for(let i=0;i<t;i+=1)r[i]=e[i]&255;return r}function QE(e){if(hr(e,Uint8Array)){let t=new Uint8Array(e);return Xu(t.buffer,t.byteOffset,t.byteLength)}return Ju(e)}function Xu(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let i;return t===void 0&&r===void 0?i=new Uint8Array(e):r===void 0?i=new Uint8Array(e,t):i=new Uint8Array(e,t,r),Object.setPrototypeOf(i,q.prototype),i}function e6(e){if(q.isBuffer(e)){let t=tl(e.length)|0,r=Br(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||il(e.length)?Br(0):Ju(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Ju(e.data)}function tl(e){if(e>=hf)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+hf.toString(16)+" bytes");return e|0}function t6(e){return+e!=e&&(e=0),q.alloc(+e)}q.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==q.prototype};q.compare=function(t,r){if(hr(t,Uint8Array)&&(t=q.from(t,t.offset,t.byteLength)),hr(r,Uint8Array)&&(r=q.from(r,r.offset,r.byteLength)),!q.isBuffer(t)||!q.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let i=t.length,n=r.length;for(let a=0,o=Math.min(i,n);a<o;++a)if(t[a]!==r[a]){i=t[a],n=r[a];break}return i<n?-1:n<i?1:0};q.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};q.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return q.alloc(0);let i;if(r===void 0)for(r=0,i=0;i<t.length;++i)r+=t[i].length;let n=q.allocUnsafe(r),a=0;for(i=0;i<t.length;++i){let o=t[i];if(hr(o,Uint8Array))a+o.length>n.length?(q.isBuffer(o)||(o=q.from(o)),o.copy(n,a)):Uint8Array.prototype.set.call(n,o,a);else if(q.isBuffer(o))o.copy(n,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return n};function ad(e,t){if(q.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||hr(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Qu(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return pd(e).length;default:if(n)return i?-1:Qu(e).length;t=(""+t).toLowerCase(),n=!0}}q.byteLength=ad;function r6(e,t,r){let i=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return c6(this,t,r);case"utf8":case"utf-8":return fd(this,t,r);case"ascii":return l6(this,t,r);case"latin1":case"binary":return h6(this,t,r);case"base64":return s6(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d6(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}q.prototype._isBuffer=!0;function Ii(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}q.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)Ii(this,r,r+1);return this};q.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)Ii(this,r,r+3),Ii(this,r+1,r+2);return this};q.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)Ii(this,r,r+7),Ii(this,r+1,r+6),Ii(this,r+2,r+5),Ii(this,r+3,r+4);return this};q.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?fd(this,0,t):r6.apply(this,arguments)};q.prototype.toLocaleString=q.prototype.toString;q.prototype.equals=function(t){if(!q.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:q.compare(this,t)===0};q.prototype.inspect=function(){let t="",r=Rn.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};Q0&&(q.prototype[Q0]=q.prototype.inspect);q.prototype.compare=function(t,r,i,n,a){if(hr(t,Uint8Array)&&(t=q.from(t,t.offset,t.byteLength)),!q.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),i===void 0&&(i=t?t.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),r<0||i>t.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&r>=i)return 0;if(n>=a)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,a>>>=0,this===t)return 0;let o=a-n,s=i-r,y=Math.min(o,s),b=this.slice(n,a),x=t.slice(r,i);for(let B=0;B<y;++B)if(b[B]!==x[B]){o=b[B],s=x[B];break}return o<s?-1:s<o?1:0};function od(e,t,r,i,n){if(e.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,il(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0)if(n)r=0;else return-1;if(typeof t=="string"&&(t=q.from(t,i)),q.isBuffer(t))return t.length===0?-1:ed(e,t,r,i,n);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):ed(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function ed(e,t,r,i,n){let a=1,o=e.length,s=t.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function y(x,B){return a===1?x[B]:x.readUInt16BE(B*a)}let b;if(n){let x=-1;for(b=r;b<o;b++)if(y(e,b)===y(t,x===-1?0:b-x)){if(x===-1&&(x=b),b-x+1===s)return x*a}else x!==-1&&(b-=b-x),x=-1}else for(r+s>o&&(r=o-s),b=r;b>=0;b--){let x=!0;for(let B=0;B<s;B++)if(y(e,b+B)!==y(t,B)){x=!1;break}if(x)return b}return-1}q.prototype.includes=function(t,r,i){return this.indexOf(t,r,i)!==-1};q.prototype.indexOf=function(t,r,i){return od(this,t,r,i,!0)};q.prototype.lastIndexOf=function(t,r,i){return od(this,t,r,i,!1)};function i6(e,t,r,i){r=Number(r)||0;let n=e.length-r;i?(i=Number(i),i>n&&(i=n)):i=n;let a=t.length;i>a/2&&(i=a/2);let o;for(o=0;o<i;++o){let s=parseInt(t.substr(o*2,2),16);if(il(s))return o;e[r+o]=s}return o}function n6(e,t,r,i){return cf(Qu(t,e.length-r),e,r,i)}function a6(e,t,r,i){return cf(g6(t),e,r,i)}function o6(e,t,r,i){return cf(pd(t),e,r,i)}function f6(e,t,r,i){return cf(b6(t,e.length-r),e,r,i)}q.prototype.write=function(t,r,i,n){if(r===void 0)n="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")n=r,i=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((i===void 0||i>a)&&(i=a),t.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return i6(this,t,r,i);case"utf8":case"utf-8":return n6(this,t,r,i);case"ascii":case"latin1":case"binary":return a6(this,t,r,i);case"base64":return o6(this,t,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f6(this,t,r,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};q.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function s6(e,t,r){return t===0&&r===e.length?Yu.fromByteArray(e):Yu.fromByteArray(e.slice(t,r))}function fd(e,t,r){r=Math.min(e.length,r);let i=[],n=t;for(;n<r;){let a=e[n],o=null,s=a>239?4:a>223?3:a>191?2:1;if(n+s<=r){let y,b,x,B;switch(s){case 1:a<128&&(o=a);break;case 2:y=e[n+1],(y&192)===128&&(B=(a&31)<<6|y&63,B>127&&(o=B));break;case 3:y=e[n+1],b=e[n+2],(y&192)===128&&(b&192)===128&&(B=(a&15)<<12|(y&63)<<6|b&63,B>2047&&(B<55296||B>57343)&&(o=B));break;case 4:y=e[n+1],b=e[n+2],x=e[n+3],(y&192)===128&&(b&192)===128&&(x&192)===128&&(B=(a&15)<<18|(y&63)<<12|(b&63)<<6|x&63,B>65535&&B<1114112&&(o=B))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),n+=s}return u6(i)}var td=4096;function u6(e){let t=e.length;if(t<=td)return String.fromCharCode.apply(String,e);let r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=td));return r}function l6(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]&127);return i}function h6(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function c6(e,t,r){let i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);let n="";for(let a=t;a<r;++a)n+=_6[e[a]];return n}function d6(e,t,r){let i=e.slice(t,r),n="";for(let a=0;a<i.length-1;a+=2)n+=String.fromCharCode(i[a]+i[a+1]*256);return n}q.prototype.slice=function(t,r){let i=this.length;t=~~t,r=r===void 0?i:~~r,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<t&&(r=t);let n=this.subarray(t,r);return Object.setPrototypeOf(n,q.prototype),n};function at(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}q.prototype.readUintLE=q.prototype.readUIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=this[t],a=1,o=0;for(;++o<r&&(a*=256);)n+=this[t+o]*a;return n};q.prototype.readUintBE=q.prototype.readUIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=this[t+--r],a=1;for(;r>0&&(a*=256);)n+=this[t+--r]*a;return n};q.prototype.readUint8=q.prototype.readUInt8=function(t,r){return t=t>>>0,r||at(t,1,this.length),this[t]};q.prototype.readUint16LE=q.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||at(t,2,this.length),this[t]|this[t+1]<<8};q.prototype.readUint16BE=q.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||at(t,2,this.length),this[t]<<8|this[t+1]};q.prototype.readUint32LE=q.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||at(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};q.prototype.readUint32BE=q.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||at(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};q.prototype.readBigUInt64LE=Zr(function(t){t=t>>>0,Bn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Na(t,this.length-8);let n=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+i*2**24;return BigInt(n)+(BigInt(a)<<BigInt(32))});q.prototype.readBigUInt64BE=Zr(function(t){t=t>>>0,Bn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Na(t,this.length-8);let n=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i;return(BigInt(n)<<BigInt(32))+BigInt(a)});q.prototype.readIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=this[t],a=1,o=0;for(;++o<r&&(a*=256);)n+=this[t+o]*a;return a*=128,n>=a&&(n-=Math.pow(2,8*r)),n};q.prototype.readIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||at(t,r,this.length);let n=r,a=1,o=this[t+--n];for(;n>0&&(a*=256);)o+=this[t+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};q.prototype.readInt8=function(t,r){return t=t>>>0,r||at(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};q.prototype.readInt16LE=function(t,r){t=t>>>0,r||at(t,2,this.length);let i=this[t]|this[t+1]<<8;return i&32768?i|4294901760:i};q.prototype.readInt16BE=function(t,r){t=t>>>0,r||at(t,2,this.length);let i=this[t+1]|this[t]<<8;return i&32768?i|4294901760:i};q.prototype.readInt32LE=function(t,r){return t=t>>>0,r||at(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};q.prototype.readInt32BE=function(t,r){return t=t>>>0,r||at(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};q.prototype.readBigInt64LE=Zr(function(t){t=t>>>0,Bn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Na(t,this.length-8);let n=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});q.prototype.readBigInt64BE=Zr(function(t){t=t>>>0,Bn(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Na(t,this.length-8);let n=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i)});q.prototype.readFloatLE=function(t,r){return t=t>>>0,r||at(t,4,this.length),An.read(this,t,!0,23,4)};q.prototype.readFloatBE=function(t,r){return t=t>>>0,r||at(t,4,this.length),An.read(this,t,!1,23,4)};q.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||at(t,8,this.length),An.read(this,t,!0,52,8)};q.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||at(t,8,this.length),An.read(this,t,!1,52,8)};function xt(e,t,r,i,n,a){if(!q.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<a)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}q.prototype.writeUintLE=q.prototype.writeUIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;xt(this,t,r,i,s,0)}let a=1,o=0;for(this[r]=t&255;++o<i&&(a*=256);)this[r+o]=t/a&255;return r+i};q.prototype.writeUintBE=q.prototype.writeUIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;xt(this,t,r,i,s,0)}let a=i-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+i};q.prototype.writeUint8=q.prototype.writeUInt8=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,1,255,0),this[r]=t&255,r+1};q.prototype.writeUint16LE=q.prototype.writeUInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};q.prototype.writeUint16BE=q.prototype.writeUInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};q.prototype.writeUint32LE=q.prototype.writeUInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};q.prototype.writeUint32BE=q.prototype.writeUInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function sd(e,t,r,i,n){dd(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function ud(e,t,r,i,n){dd(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}q.prototype.writeBigUInt64LE=Zr(function(t,r=0){return sd(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});q.prototype.writeBigUInt64BE=Zr(function(t,r=0){return ud(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});q.prototype.writeIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let y=Math.pow(2,8*i-1);xt(this,t,r,i,y-1,-y)}let a=0,o=1,s=0;for(this[r]=t&255;++a<i&&(o*=256);)t<0&&s===0&&this[r+a-1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+i};q.prototype.writeIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let y=Math.pow(2,8*i-1);xt(this,t,r,i,y-1,-y)}let a=i-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+i};q.prototype.writeInt8=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};q.prototype.writeInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};q.prototype.writeInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};q.prototype.writeInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};q.prototype.writeInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||xt(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};q.prototype.writeBigInt64LE=Zr(function(t,r=0){return sd(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});q.prototype.writeBigInt64BE=Zr(function(t,r=0){return ud(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ld(e,t,r,i,n,a){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function hd(e,t,r,i,n){return t=+t,r=r>>>0,n||ld(e,t,r,4,34028234663852886e22,-34028234663852886e22),An.write(e,t,r,i,23,4),r+4}q.prototype.writeFloatLE=function(t,r,i){return hd(this,t,r,!0,i)};q.prototype.writeFloatBE=function(t,r,i){return hd(this,t,r,!1,i)};function cd(e,t,r,i,n){return t=+t,r=r>>>0,n||ld(e,t,r,8,17976931348623157e292,-17976931348623157e292),An.write(e,t,r,i,52,8),r+8}q.prototype.writeDoubleLE=function(t,r,i){return cd(this,t,r,!0,i)};q.prototype.writeDoubleBE=function(t,r,i){return cd(this,t,r,!1,i)};q.prototype.copy=function(t,r,i,n){if(!q.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<i&&(n=i),n===i||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-i&&(n=t.length-r+i);let a=n-i;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,i,n):Uint8Array.prototype.set.call(t,this.subarray(i,n),r),a};q.prototype.fill=function(t,r,i,n){if(typeof t=="string"){if(typeof r=="string"?(n=r,r=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!q.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(t.length===1){let o=t.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(t=o)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a<i;++a)this[a]=t;else{let o=q.isBuffer(t)?t:q.from(t,n),s=o.length;if(s===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<i-r;++a)this[a+r]=o[a%s]}return this};var Mn={};function rl(e,t,r){Mn[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}rl("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);rl("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);rl("ERR_OUT_OF_RANGE",function(e,t,r){let i=`The value of "${e}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=rd(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=rd(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i},RangeError);function rd(e){let t="",r=e.length,i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function p6(e,t,r){Bn(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Na(t,e.length-(r+1))}function dd(e,t,r,i,n,a){if(e>r||e<t){let o=typeof t=="bigint"?"n":"",s;throw a>3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new Mn.ERR_OUT_OF_RANGE("value",s,e)}p6(i,n,a)}function Bn(e,t){if(typeof e!="number")throw new Mn.ERR_INVALID_ARG_TYPE(t,"number",e)}function Na(e,t,r){throw Math.floor(e)!==e?(Bn(e,r),new Mn.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new Mn.ERR_BUFFER_OUT_OF_BOUNDS:new Mn.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var v6=/[^+/0-9A-Za-z-_]/g;function y6(e){if(e=e.split("=")[0],e=e.trim().replace(v6,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Qu(e,t){t=t||1/0;let r,i=e.length,n=null,a=[];for(let o=0;o<i;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function g6(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function b6(e,t){let r,i,n,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),i=r>>8,n=r%256,a.push(n),a.push(i);return a}function pd(e){return Yu.toByteArray(y6(e))}function cf(e,t,r,i){let n;for(n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function hr(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function il(e){return e!==e}var _6=(function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t})();function Zr(e){return typeof BigInt>"u"?m6:e}function m6(){throw new Error("BigInt not supported")}});var M,I,m=UE(()=>{M=Z0(V0()),I=Z0(st())});var Ne=k((nl,yd)=>{m();var df=st(),cr=df.Buffer;function vd(e,t){for(var r in e)t[r]=e[r]}cr.from&&cr.alloc&&cr.allocUnsafe&&cr.allocUnsafeSlow?yd.exports=df:(vd(df,nl),nl.Buffer=Oi);function Oi(e,t,r){return cr(e,t,r)}Oi.prototype=Object.create(cr.prototype);vd(cr,Oi);Oi.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return cr(e,t,r)};Oi.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=cr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Oi.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return cr(e)};Oi.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return df.SlowBuffer(e)}});var qi=k((FO,ol)=>{"use strict";m();var al=65536,w6=4294967295;function x6(){throw new Error(`Secure random number generation is not supported by this browser.
2
- Use Chrome, Firefox or Internet Explorer 11`)}var E6=Ne().Buffer,pf=globalThis.crypto||globalThis.msCrypto;pf&&pf.getRandomValues?ol.exports=S6:ol.exports=x6;function S6(e,t){if(e>w6)throw new RangeError("requested too many random bytes");var r=E6.allocUnsafe(e);if(e>0)if(e>al)for(var i=0;i<e;i+=al)pf.getRandomValues(r.slice(i,i+al));else pf.getRandomValues(r);return typeof t=="function"?M.default.nextTick(function(){t(null,r)}):r}});var re=k((zO,fl)=>{m();typeof Object.create=="function"?fl.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:fl.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var Tn=k((HO,sl)=>{"use strict";m();var kn=typeof Reflect=="object"?Reflect:null,gd=kn&&typeof kn.apply=="function"?kn.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},vf;kn&&typeof kn.ownKeys=="function"?vf=kn.ownKeys:Object.getOwnPropertySymbols?vf=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:vf=function(t){return Object.getOwnPropertyNames(t)};function M6(e){console&&console.warn&&console.warn(e)}var _d=Number.isNaN||function(t){return t!==t};function We(){We.init.call(this)}sl.exports=We;sl.exports.once=k6;We.EventEmitter=We;We.prototype._events=void 0;We.prototype._eventsCount=0;We.prototype._maxListeners=void 0;var bd=10;function yf(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(We,"defaultMaxListeners",{enumerable:!0,get:function(){return bd},set:function(e){if(typeof e!="number"||e<0||_d(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");bd=e}});We.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};We.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||_d(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function md(e){return e._maxListeners===void 0?We.defaultMaxListeners:e._maxListeners}We.prototype.getMaxListeners=function(){return md(this)};We.prototype.emit=function(t){for(var r=[],i=1;i<arguments.length;i++)r.push(arguments[i]);var n=t==="error",a=this._events;if(a!==void 0)n=n&&a.error===void 0;else if(!n)return!1;if(n){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var y=a[t];if(y===void 0)return!1;if(typeof y=="function")gd(y,this,r);else for(var b=y.length,x=Md(y,b),i=0;i<b;++i)gd(x[i],this,r);return!0};function wd(e,t,r,i){var n,a,o;if(yf(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=i?[r,o]:[o,r]:i?o.unshift(r):o.push(r),n=md(e),n>0&&o.length>n&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,M6(s)}return e}We.prototype.addListener=function(t,r){return wd(this,t,r,!1)};We.prototype.on=We.prototype.addListener;We.prototype.prependListener=function(t,r){return wd(this,t,r,!0)};function A6(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function xd(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=A6.bind(i);return n.listener=r,i.wrapFn=n,n}We.prototype.once=function(t,r){return yf(r),this.on(t,xd(this,t,r)),this};We.prototype.prependOnceListener=function(t,r){return yf(r),this.prependListener(t,xd(this,t,r)),this};We.prototype.removeListener=function(t,r){var i,n,a,o,s;if(yf(r),n=this._events,n===void 0)return this;if(i=n[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(a=-1,o=i.length-1;o>=0;o--)if(i[o]===r||i[o].listener===r){s=i[o].listener,a=o;break}if(a<0)return this;a===0?i.shift():B6(i,a),i.length===1&&(n[t]=i[0]),n.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};We.prototype.off=We.prototype.removeListener;We.prototype.removeAllListeners=function(t){var r,i,n;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var a=Object.keys(i),o;for(n=0;n<a.length;++n)o=a[n],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=i[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(n=r.length-1;n>=0;n--)this.removeListener(t,r[n]);return this};function Ed(e,t,r){var i=e._events;if(i===void 0)return[];var n=i[t];return n===void 0?[]:typeof n=="function"?r?[n.listener||n]:[n]:r?R6(n):Md(n,n.length)}We.prototype.listeners=function(t){return Ed(this,t,!0)};We.prototype.rawListeners=function(t){return Ed(this,t,!1)};We.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Sd.call(e,t)};We.prototype.listenerCount=Sd;function Sd(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}We.prototype.eventNames=function(){return this._eventsCount>0?vf(this._events):[]};function Md(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}function B6(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function R6(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function k6(e,t){return new Promise(function(r,i){function n(o){e.removeListener(t,a),i(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",n),r([].slice.call(arguments))}Ad(e,t,a,{once:!0}),t!=="error"&&T6(e,n,{once:!0})})}function T6(e,t,r){typeof e.on=="function"&&Ad(e,"error",t,r)}function Ad(e,t,r,i){if(typeof e.on=="function")i.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function n(a){i.once&&e.removeEventListener(t,n),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var ul=k((KO,Bd)=>{m();Bd.exports=Tn().EventEmitter});var gf=k((VO,Rd)=>{"use strict";m();Rd.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;t[r]=n;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==n||s.enumerable!==!0)return!1}return!0}});var Pa=k((YO,kd)=>{"use strict";m();var I6=gf();kd.exports=function(){return I6()&&!!Symbol.toStringTag}});var bf=k((XO,Td)=>{"use strict";m();Td.exports=Object});var Od=k((eq,Id)=>{"use strict";m();Id.exports=Error});var Dd=k((rq,qd)=>{"use strict";m();qd.exports=EvalError});var Pd=k((nq,Nd)=>{"use strict";m();Nd.exports=RangeError});var Cd=k((oq,Ld)=>{"use strict";m();Ld.exports=ReferenceError});var ll=k((sq,Ud)=>{"use strict";m();Ud.exports=SyntaxError});var Di=k((lq,Fd)=>{"use strict";m();Fd.exports=TypeError});var zd=k((cq,jd)=>{"use strict";m();jd.exports=URIError});var Hd=k((pq,Zd)=>{"use strict";m();Zd.exports=Math.abs});var Kd=k((yq,Wd)=>{"use strict";m();Wd.exports=Math.floor});var Vd=k((bq,Gd)=>{"use strict";m();Gd.exports=Math.max});var Yd=k((mq,$d)=>{"use strict";m();$d.exports=Math.min});var Xd=k((xq,Jd)=>{"use strict";m();Jd.exports=Math.pow});var ep=k((Sq,Qd)=>{"use strict";m();Qd.exports=Math.round});var rp=k((Aq,tp)=>{"use strict";m();tp.exports=Number.isNaN||function(t){return t!==t}});var np=k((Rq,ip)=>{"use strict";m();var O6=rp();ip.exports=function(t){return O6(t)||t===0?t:t<0?-1:1}});var op=k((Tq,ap)=>{"use strict";m();ap.exports=Object.getOwnPropertyDescriptor});var Ni=k((Oq,fp)=>{"use strict";m();var _f=op();if(_f)try{_f([],"length")}catch{_f=null}fp.exports=_f});var La=k((Dq,sp)=>{"use strict";m();var mf=Object.defineProperty||!1;if(mf)try{mf({},"a",{value:1})}catch{mf=!1}sp.exports=mf});var hp=k((Pq,lp)=>{"use strict";m();var up=typeof Symbol<"u"&&Symbol,q6=gf();lp.exports=function(){return typeof up!="function"||typeof Symbol!="function"||typeof up("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:q6()}});var hl=k((Cq,cp)=>{"use strict";m();cp.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var cl=k((Fq,dp)=>{"use strict";m();var D6=bf();dp.exports=D6.getPrototypeOf||null});var yp=k((zq,vp)=>{"use strict";m();var N6="Function.prototype.bind called on incompatible ",P6=Object.prototype.toString,L6=Math.max,C6="[object Function]",pp=function(t,r){for(var i=[],n=0;n<t.length;n+=1)i[n]=t[n];for(var a=0;a<r.length;a+=1)i[a+t.length]=r[a];return i},U6=function(t,r){for(var i=[],n=r||0,a=0;n<t.length;n+=1,a+=1)i[a]=t[n];return i},F6=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r};vp.exports=function(t){var r=this;if(typeof r!="function"||P6.apply(r)!==C6)throw new TypeError(N6+r);for(var i=U6(arguments,1),n,a=function(){if(this instanceof n){var x=r.apply(this,pp(i,arguments));return Object(x)===x?x:this}return r.apply(t,pp(i,arguments))},o=L6(0,r.length-i.length),s=[],y=0;y<o;y++)s[y]="$"+y;if(n=Function("binder","return function ("+F6(s,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var b=function(){};b.prototype=r.prototype,n.prototype=new b,b.prototype=null}return n}});var In=k((Hq,gp)=>{"use strict";m();var j6=yp();gp.exports=Function.prototype.bind||j6});var wf=k((Kq,bp)=>{"use strict";m();bp.exports=Function.prototype.call});var xf=k((Vq,_p)=>{"use strict";m();_p.exports=Function.prototype.apply});var wp=k((Yq,mp)=>{"use strict";m();mp.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var dl=k((Xq,xp)=>{"use strict";m();var z6=In(),Z6=xf(),H6=wf(),W6=wp();xp.exports=W6||z6.call(H6,Z6)});var Ef=k((e9,Ep)=>{"use strict";m();var K6=In(),G6=Di(),V6=wf(),$6=dl();Ep.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new G6("a function is required");return $6(K6,V6,t)}});var kp=k((r9,Rp)=>{"use strict";m();var Y6=Ef(),Sp=Ni(),Ap;try{Ap=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var pl=!!Ap&&Sp&&Sp(Object.prototype,"__proto__"),Bp=Object,Mp=Bp.getPrototypeOf;Rp.exports=pl&&typeof pl.get=="function"?Y6([pl.get]):typeof Mp=="function"?function(t){return Mp(t==null?t:Bp(t))}:!1});var Sf=k((n9,qp)=>{"use strict";m();var Tp=hl(),Ip=cl(),Op=kp();qp.exports=Tp?function(t){return Tp(t)}:Ip?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Ip(t)}:Op?function(t){return Op(t)}:null});var vl=k((o9,Dp)=>{"use strict";m();var J6=Function.prototype.call,X6=Object.prototype.hasOwnProperty,Q6=In();Dp.exports=Q6.call(J6,X6)});var Bf=k((s9,Fp)=>{"use strict";m();var Ce,e3=bf(),t3=Od(),r3=Dd(),i3=Pd(),n3=Cd(),Nn=ll(),Dn=Di(),a3=zd(),o3=Hd(),f3=Kd(),s3=Vd(),u3=Yd(),l3=Xd(),h3=ep(),c3=np(),Cp=Function,yl=function(e){try{return Cp('"use strict"; return ('+e+").constructor;")()}catch{}},Ca=Ni(),d3=La(),gl=function(){throw new Dn},p3=Ca?(function(){try{return arguments.callee,gl}catch{try{return Ca(arguments,"callee").get}catch{return gl}}})():gl,On=hp()(),ot=Sf(),v3=cl(),y3=hl(),Up=xf(),Ua=wf(),qn={},g3=typeof Uint8Array>"u"||!ot?Ce:ot(Uint8Array),Pi={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ce:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ce:ArrayBuffer,"%ArrayIteratorPrototype%":On&&ot?ot([][Symbol.iterator]()):Ce,"%AsyncFromSyncIteratorPrototype%":Ce,"%AsyncFunction%":qn,"%AsyncGenerator%":qn,"%AsyncGeneratorFunction%":qn,"%AsyncIteratorPrototype%":qn,"%Atomics%":typeof Atomics>"u"?Ce:Atomics,"%BigInt%":typeof BigInt>"u"?Ce:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ce:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ce:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ce:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t3,"%eval%":eval,"%EvalError%":r3,"%Float16Array%":typeof Float16Array>"u"?Ce:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Ce:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ce:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ce:FinalizationRegistry,"%Function%":Cp,"%GeneratorFunction%":qn,"%Int8Array%":typeof Int8Array>"u"?Ce:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ce:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ce:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":On&&ot?ot(ot([][Symbol.iterator]())):Ce,"%JSON%":typeof JSON=="object"?JSON:Ce,"%Map%":typeof Map>"u"?Ce:Map,"%MapIteratorPrototype%":typeof Map>"u"||!On||!ot?Ce:ot(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e3,"%Object.getOwnPropertyDescriptor%":Ca,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ce:Promise,"%Proxy%":typeof Proxy>"u"?Ce:Proxy,"%RangeError%":i3,"%ReferenceError%":n3,"%Reflect%":typeof Reflect>"u"?Ce:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ce:Set,"%SetIteratorPrototype%":typeof Set>"u"||!On||!ot?Ce:ot(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ce:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":On&&ot?ot(""[Symbol.iterator]()):Ce,"%Symbol%":On?Symbol:Ce,"%SyntaxError%":Nn,"%ThrowTypeError%":p3,"%TypedArray%":g3,"%TypeError%":Dn,"%Uint8Array%":typeof Uint8Array>"u"?Ce:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ce:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ce:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ce:Uint32Array,"%URIError%":a3,"%WeakMap%":typeof WeakMap>"u"?Ce:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ce:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ce:WeakSet,"%Function.prototype.call%":Ua,"%Function.prototype.apply%":Up,"%Object.defineProperty%":d3,"%Object.getPrototypeOf%":v3,"%Math.abs%":o3,"%Math.floor%":f3,"%Math.max%":s3,"%Math.min%":u3,"%Math.pow%":l3,"%Math.round%":h3,"%Math.sign%":c3,"%Reflect.getPrototypeOf%":y3};if(ot)try{null.error}catch(e){Np=ot(ot(e)),Pi["%Error.prototype%"]=Np}var Np,b3=function e(t){var r;if(t==="%AsyncFunction%")r=yl("async function () {}");else if(t==="%GeneratorFunction%")r=yl("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=yl("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&ot&&(r=ot(n.prototype))}return Pi[t]=r,r},Pp={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Fa=In(),Mf=vl(),_3=Fa.call(Ua,Array.prototype.concat),m3=Fa.call(Up,Array.prototype.splice),Lp=Fa.call(Ua,String.prototype.replace),Af=Fa.call(Ua,String.prototype.slice),w3=Fa.call(Ua,RegExp.prototype.exec),x3=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E3=/\\(\\)?/g,S3=function(t){var r=Af(t,0,1),i=Af(t,-1);if(r==="%"&&i!=="%")throw new Nn("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new Nn("invalid intrinsic syntax, expected opening `%`");var n=[];return Lp(t,x3,function(a,o,s,y){n[n.length]=s?Lp(y,E3,"$1"):o||a}),n},M3=function(t,r){var i=t,n;if(Mf(Pp,i)&&(n=Pp[i],i="%"+n[0]+"%"),Mf(Pi,i)){var a=Pi[i];if(a===qn&&(a=b3(i)),typeof a>"u"&&!r)throw new Dn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new Nn("intrinsic "+t+" does not exist!")};Fp.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Dn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Dn('"allowMissing" argument must be a boolean');if(w3(/^%?[^%]*%?$/,t)===null)throw new Nn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=S3(t),n=i.length>0?i[0]:"",a=M3("%"+n+"%",r),o=a.name,s=a.value,y=!1,b=a.alias;b&&(n=b[0],m3(i,_3([0,1],b)));for(var x=1,B=!0;x<i.length;x+=1){var R=i[x],T=Af(R,0,1),O=Af(R,-1);if((T==='"'||T==="'"||T==="`"||O==='"'||O==="'"||O==="`")&&T!==O)throw new Nn("property names with quotes must have matching quotes");if((R==="constructor"||!B)&&(y=!0),n+="."+R,o="%"+n+"%",Mf(Pi,o))s=Pi[o];else if(s!=null){if(!(R in s)){if(!r)throw new Dn("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ca&&x+1>=i.length){var D=Ca(s,R);B=!!D,B&&"get"in D&&!("originalValue"in D.get)?s=D.get:s=s[R]}else B=Mf(s,R),s=s[R];B&&!y&&(Pi[o]=s)}}return s}});var Hr=k((l9,Zp)=>{"use strict";m();var jp=Bf(),zp=Ef(),A3=zp([jp("%String.prototype.indexOf%")]);Zp.exports=function(t,r){var i=jp(t,!!r);return typeof i=="function"&&A3(t,".prototype.")>-1?zp([i]):i}});var Kp=k((c9,Wp)=>{"use strict";m();var B3=Pa()(),R3=Hr(),bl=R3("Object.prototype.toString"),Rf=function(t){return B3&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:bl(t)==="[object Arguments]"},Hp=function(t){return Rf(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&bl(t)!=="[object Array]"&&"callee"in t&&bl(t.callee)==="[object Function]"},k3=(function(){return Rf(arguments)})();Rf.isLegacyArguments=Hp;Wp.exports=k3?Rf:Hp});var Xp=k((p9,Jp)=>{"use strict";m();var Gp=Hr(),T3=Pa()(),I3=vl(),O3=Ni(),wl;T3?(Vp=Gp("RegExp.prototype.exec"),_l={},kf=function(){throw _l},ml={toString:kf,valueOf:kf},typeof Symbol.toPrimitive=="symbol"&&(ml[Symbol.toPrimitive]=kf),wl=function(t){if(!t||typeof t!="object")return!1;var r=O3(t,"lastIndex"),i=r&&I3(r,"value");if(!i)return!1;try{Vp(t,ml)}catch(n){return n===_l}}):($p=Gp("Object.prototype.toString"),Yp="[object RegExp]",wl=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:$p(t)===Yp});var Vp,_l,kf,ml,$p,Yp;Jp.exports=wl});var ev=k((y9,Qp)=>{"use strict";m();var q3=Hr(),D3=Xp(),N3=q3("RegExp.prototype.exec"),P3=Di();Qp.exports=function(t){if(!D3(t))throw new P3("`regex` must be a RegExp");return function(i){return N3(t,i)!==null}}});var rv=k((b9,tv)=>{"use strict";m();var L3=function*(){}.constructor;tv.exports=()=>L3});var ov=k((m9,av)=>{"use strict";m();var nv=Hr(),C3=ev(),U3=C3(/^\s*(?:function)?\*/),F3=Pa()(),iv=Sf(),j3=nv("Object.prototype.toString"),z3=nv("Function.prototype.toString"),Z3=rv();av.exports=function(t){if(typeof t!="function")return!1;if(U3(z3(t)))return!0;if(!F3){var r=j3(t);return r==="[object GeneratorFunction]"}if(!iv)return!1;var i=Z3();return i&&iv(t)===i.prototype}});var lv=k((x9,uv)=>{"use strict";m();var sv=Function.prototype.toString,Pn=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,El,Tf;if(typeof Pn=="function"&&typeof Object.defineProperty=="function")try{El=Object.defineProperty({},"length",{get:function(){throw Tf}}),Tf={},Pn(function(){throw 42},null,El)}catch(e){e!==Tf&&(Pn=null)}else Pn=null;var H3=/^\s*class\b/,Sl=function(t){try{var r=sv.call(t);return H3.test(r)}catch{return!1}},xl=function(t){try{return Sl(t)?!1:(sv.call(t),!0)}catch{return!1}},If=Object.prototype.toString,W3="[object Object]",K3="[object Function]",G3="[object GeneratorFunction]",V3="[object HTMLAllCollection]",$3="[object HTML document.all class]",Y3="[object HTMLCollection]",J3=typeof Symbol=="function"&&!!Symbol.toStringTag,X3=!(0 in[,]),Ml=function(){return!1};typeof document=="object"&&(fv=document.all,If.call(fv)===If.call(document.all)&&(Ml=function(t){if((X3||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=If.call(t);return(r===V3||r===$3||r===Y3||r===W3)&&t("")==null}catch{}return!1}));var fv;uv.exports=Pn?function(t){if(Ml(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Pn(t,null,El)}catch(r){if(r!==Tf)return!1}return!Sl(t)&&xl(t)}:function(t){if(Ml(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(J3)return xl(t);if(Sl(t))return!1;var r=If.call(t);return r!==K3&&r!==G3&&!/^\[object HTML/.test(r)?!1:xl(t)}});var dv=k((S9,cv)=>{"use strict";m();var Q3=lv(),eS=Object.prototype.toString,hv=Object.prototype.hasOwnProperty,tS=function(t,r,i){for(var n=0,a=t.length;n<a;n++)hv.call(t,n)&&(i==null?r(t[n],n,t):r.call(i,t[n],n,t))},rS=function(t,r,i){for(var n=0,a=t.length;n<a;n++)i==null?r(t.charAt(n),n,t):r.call(i,t.charAt(n),n,t)},iS=function(t,r,i){for(var n in t)hv.call(t,n)&&(i==null?r(t[n],n,t):r.call(i,t[n],n,t))};function nS(e){return eS.call(e)==="[object Array]"}cv.exports=function(t,r,i){if(!Q3(r))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=i),nS(t)?tS(t,r,n):typeof t=="string"?rS(t,r,n):iS(t,r,n)}});var vv=k((A9,pv)=>{"use strict";m();pv.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var gv=k((R9,yv)=>{"use strict";m();var Al=vv(),aS=globalThis;yv.exports=function(){for(var t=[],r=0;r<Al.length;r++)typeof aS[Al[r]]=="function"&&(t[t.length]=Al[r]);return t}});var Bl=k((T9,mv)=>{"use strict";m();var bv=La(),oS=ll(),Ln=Di(),_v=Ni();mv.exports=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new Ln("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ln("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ln("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ln("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ln("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ln("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,y=!!_v&&_v(t,r);if(bv)bv(t,r,{configurable:o===null&&y?y.configurable:!o,enumerable:n===null&&y?y.enumerable:!n,value:i,writable:a===null&&y?y.writable:!a});else if(s||!n&&!a&&!o)t[r]=i;else throw new oS("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var kl=k((O9,xv)=>{"use strict";m();var Rl=La(),wv=function(){return!!Rl};wv.hasArrayLengthDefineBug=function(){if(!Rl)return null;try{return Rl([],"length",{value:1}).length!==1}catch{return!0}};xv.exports=wv});var Bv=k((D9,Av)=>{"use strict";m();var fS=Bf(),Ev=Bl(),sS=kl()(),Sv=Ni(),Mv=Di(),uS=fS("%Math.floor%");Av.exports=function(t,r){if(typeof t!="function")throw new Mv("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||uS(r)!==r)throw new Mv("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,a=!0;if("length"in t&&Sv){var o=Sv(t,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(a=!1)}return(n||a||!i)&&(sS?Ev(t,"length",r,!0,!0):Ev(t,"length",r)),t}});var kv=k((P9,Rv)=>{"use strict";m();var lS=In(),hS=xf(),cS=dl();Rv.exports=function(){return cS(lS,hS,arguments)}});var ja=k((C9,Of)=>{"use strict";m();var dS=Bv(),Tv=La(),pS=Ef(),Iv=kv();Of.exports=function(t){var r=pS(arguments),i=1+t.length-(arguments.length-1);return dS(r,i>0?i:0,!0)};Tv?Tv(Of.exports,"apply",{value:Iv}):Of.exports.apply=Iv});var ql=k((F9,Nv)=>{"use strict";m();var Nf=dv(),vS=gv(),Ov=ja(),Il=Hr(),Df=Ni(),qf=Sf(),yS=Il("Object.prototype.toString"),Dv=Pa()(),qv=globalThis,Tl=vS(),Ol=Il("String.prototype.slice"),gS=Il("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i<t.length;i+=1)if(t[i]===r)return i;return-1},Pf={__proto__:null};Dv&&Df&&qf?Nf(Tl,function(e){var t=new qv[e];if(Symbol.toStringTag in t&&qf){var r=qf(t),i=Df(r,Symbol.toStringTag);if(!i&&r){var n=qf(r);i=Df(n,Symbol.toStringTag)}if(i&&i.get){var a=Ov(i.get);Pf["$"+e]=a}}}):Nf(Tl,function(e){var t=new qv[e],r=t.slice||t.set;if(r){var i=Ov(r);Pf["$"+e]=i}});var bS=function(t){var r=!1;return Nf(Pf,function(i,n){if(!r)try{"$"+i(t)===n&&(r=Ol(n,1))}catch{}}),r},_S=function(t){var r=!1;return Nf(Pf,function(i,n){if(!r)try{i(t),r=Ol(n,1)}catch{}}),r};Nv.exports=function(t){if(!t||typeof t!="object")return!1;if(!Dv){var r=Ol(yS(t),8,-1);return gS(Tl,r)>-1?r:r!=="Object"?!1:_S(t)}return Df?bS(t):null}});var Dl=k((z9,Pv)=>{"use strict";m();var mS=ql();Pv.exports=function(t){return!!mS(t)}});var Yv=k(Ue=>{"use strict";m();var wS=Kp(),xS=ov(),Kt=ql(),Lv=Dl();function Cn(e){return e.call.bind(e)}var Cv=typeof BigInt<"u",Uv=typeof Symbol<"u",It=Cn(Object.prototype.toString),ES=Cn(Number.prototype.valueOf),SS=Cn(String.prototype.valueOf),MS=Cn(Boolean.prototype.valueOf);Cv&&(Fv=Cn(BigInt.prototype.valueOf));var Fv;Uv&&(jv=Cn(Symbol.prototype.valueOf));var jv;function Za(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch{return!1}}Ue.isArgumentsObject=wS;Ue.isGeneratorFunction=xS;Ue.isTypedArray=Lv;function AS(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Ue.isPromise=AS;function BS(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Lv(e)||Zv(e)}Ue.isArrayBufferView=BS;function RS(e){return Kt(e)==="Uint8Array"}Ue.isUint8Array=RS;function kS(e){return Kt(e)==="Uint8ClampedArray"}Ue.isUint8ClampedArray=kS;function TS(e){return Kt(e)==="Uint16Array"}Ue.isUint16Array=TS;function IS(e){return Kt(e)==="Uint32Array"}Ue.isUint32Array=IS;function OS(e){return Kt(e)==="Int8Array"}Ue.isInt8Array=OS;function qS(e){return Kt(e)==="Int16Array"}Ue.isInt16Array=qS;function DS(e){return Kt(e)==="Int32Array"}Ue.isInt32Array=DS;function NS(e){return Kt(e)==="Float32Array"}Ue.isFloat32Array=NS;function PS(e){return Kt(e)==="Float64Array"}Ue.isFloat64Array=PS;function LS(e){return Kt(e)==="BigInt64Array"}Ue.isBigInt64Array=LS;function CS(e){return Kt(e)==="BigUint64Array"}Ue.isBigUint64Array=CS;function Lf(e){return It(e)==="[object Map]"}Lf.working=typeof Map<"u"&&Lf(new Map);function US(e){return typeof Map>"u"?!1:Lf.working?Lf(e):e instanceof Map}Ue.isMap=US;function Cf(e){return It(e)==="[object Set]"}Cf.working=typeof Set<"u"&&Cf(new Set);function FS(e){return typeof Set>"u"?!1:Cf.working?Cf(e):e instanceof Set}Ue.isSet=FS;function Uf(e){return It(e)==="[object WeakMap]"}Uf.working=typeof WeakMap<"u"&&Uf(new WeakMap);function jS(e){return typeof WeakMap>"u"?!1:Uf.working?Uf(e):e instanceof WeakMap}Ue.isWeakMap=jS;function Pl(e){return It(e)==="[object WeakSet]"}Pl.working=typeof WeakSet<"u"&&Pl(new WeakSet);function zS(e){return Pl(e)}Ue.isWeakSet=zS;function Ff(e){return It(e)==="[object ArrayBuffer]"}Ff.working=typeof ArrayBuffer<"u"&&Ff(new ArrayBuffer);function zv(e){return typeof ArrayBuffer>"u"?!1:Ff.working?Ff(e):e instanceof ArrayBuffer}Ue.isArrayBuffer=zv;function jf(e){return It(e)==="[object DataView]"}jf.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&jf(new DataView(new ArrayBuffer(1),0,1));function Zv(e){return typeof DataView>"u"?!1:jf.working?jf(e):e instanceof DataView}Ue.isDataView=Zv;var Nl=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function za(e){return It(e)==="[object SharedArrayBuffer]"}function Hv(e){return typeof Nl>"u"?!1:(typeof za.working>"u"&&(za.working=za(new Nl)),za.working?za(e):e instanceof Nl)}Ue.isSharedArrayBuffer=Hv;function ZS(e){return It(e)==="[object AsyncFunction]"}Ue.isAsyncFunction=ZS;function HS(e){return It(e)==="[object Map Iterator]"}Ue.isMapIterator=HS;function WS(e){return It(e)==="[object Set Iterator]"}Ue.isSetIterator=WS;function KS(e){return It(e)==="[object Generator]"}Ue.isGeneratorObject=KS;function GS(e){return It(e)==="[object WebAssembly.Module]"}Ue.isWebAssemblyCompiledModule=GS;function Wv(e){return Za(e,ES)}Ue.isNumberObject=Wv;function Kv(e){return Za(e,SS)}Ue.isStringObject=Kv;function Gv(e){return Za(e,MS)}Ue.isBooleanObject=Gv;function Vv(e){return Cv&&Za(e,Fv)}Ue.isBigIntObject=Vv;function $v(e){return Uv&&Za(e,jv)}Ue.isSymbolObject=$v;function VS(e){return Wv(e)||Kv(e)||Gv(e)||Vv(e)||$v(e)}Ue.isBoxedPrimitive=VS;function $S(e){return typeof Uint8Array<"u"&&(zv(e)||Hv(e))}Ue.isAnyArrayBuffer=$S;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Ue,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var Xv=k((K9,Jv)=>{m();Jv.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var Gt=k(Fe=>{m();var Qv=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),i={},n=0;n<r.length;n++)i[r[n]]=Object.getOwnPropertyDescriptor(t,r[n]);return i},YS=/%[sdj%]/g;Fe.format=function(e){if(!Vf(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(Wr(arguments[r]));return t.join(" ")}for(var r=1,i=arguments,n=i.length,a=String(e).replace(YS,function(s){if(s==="%%")return"%";if(r>=n)return s;switch(s){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch{return"[Circular]"}default:return s}}),o=i[r];r<n;o=i[++r])Gf(o)||!Un(o)?a+=" "+o:a+=" "+Wr(o);return a};Fe.deprecate=function(e,t){if(typeof M.default<"u"&&M.default.noDeprecation===!0)return e;if(typeof M.default>"u")return function(){return Fe.deprecate(e,t).apply(this,arguments)};var r=!1;function i(){if(!r){if(M.default.throwDeprecation)throw new Error(t);M.default.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}return i};var zf={},ey=/^$/;M.default.env.NODE_DEBUG&&(Zf=M.default.env.NODE_DEBUG,Zf=Zf.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ey=new RegExp("^"+Zf+"$","i"));var Zf;Fe.debuglog=function(e){if(e=e.toUpperCase(),!zf[e])if(ey.test(e)){var t=M.default.pid;zf[e]=function(){var r=Fe.format.apply(Fe,arguments);console.error("%s %d: %s",e,t,r)}}else zf[e]=function(){};return zf[e]};function Wr(e,t){var r={seen:[],stylize:XS};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Fl(t)?r.showHidden=t:t&&Fe._extend(r,t),Ci(r.showHidden)&&(r.showHidden=!1),Ci(r.depth)&&(r.depth=2),Ci(r.colors)&&(r.colors=!1),Ci(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=JS),Wf(r,e,r.depth)}Fe.inspect=Wr;Wr.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Wr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function JS(e,t){var r=Wr.styles[t];return r?"\x1B["+Wr.colors[r][0]+"m"+e+"\x1B["+Wr.colors[r][1]+"m":e}function XS(e,t){return e}function QS(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function Wf(e,t,r){if(e.customInspect&&t&&Hf(t.inspect)&&t.inspect!==Fe.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);return Vf(i)||(i=Wf(e,i,r)),i}var n=e8(e,t);if(n)return n;var a=Object.keys(t),o=QS(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),Wa(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Ll(t);if(a.length===0){if(Hf(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Ha(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Kf(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Wa(t))return Ll(t)}var y="",b=!1,x=["{","}"];if(ty(t)&&(b=!0,x=["[","]"]),Hf(t)){var B=t.name?": "+t.name:"";y=" [Function"+B+"]"}if(Ha(t)&&(y=" "+RegExp.prototype.toString.call(t)),Kf(t)&&(y=" "+Date.prototype.toUTCString.call(t)),Wa(t)&&(y=" "+Ll(t)),a.length===0&&(!b||t.length==0))return x[0]+y+x[1];if(r<0)return Ha(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var R;return b?R=t8(e,t,r,o,a):R=a.map(function(T){return Ul(e,t,r,o,T,b)}),e.seen.pop(),r8(R,y,x)}function e8(e,t){if(Ci(t))return e.stylize("undefined","undefined");if(Vf(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(ry(t))return e.stylize(""+t,"number");if(Fl(t))return e.stylize(""+t,"boolean");if(Gf(t))return e.stylize("null","null")}function Ll(e){return"["+Error.prototype.toString.call(e)+"]"}function t8(e,t,r,i,n){for(var a=[],o=0,s=t.length;o<s;++o)iy(t,String(o))?a.push(Ul(e,t,r,i,String(o),!0)):a.push("");return n.forEach(function(y){y.match(/^\d+$/)||a.push(Ul(e,t,r,i,y,!0))}),a}function Ul(e,t,r,i,n,a){var o,s,y;if(y=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]},y.get?y.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):y.set&&(s=e.stylize("[Setter]","special")),iy(i,n)||(o="["+n+"]"),s||(e.seen.indexOf(y.value)<0?(Gf(r)?s=Wf(e,y.value,null):s=Wf(e,y.value,r-1),s.indexOf(`
3
- `)>-1&&(a?s=s.split(`
4
- `).map(function(b){return" "+b}).join(`
5
- `).slice(2):s=`
6
- `+s.split(`
7
- `).map(function(b){return" "+b}).join(`
8
- `))):s=e.stylize("[Circular]","special")),Ci(o)){if(a&&n.match(/^\d+$/))return s;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function r8(e,t,r){var i=0,n=e.reduce(function(a,o){return i++,o.indexOf(`
9
- `)>=0&&i++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(t===""?"":t+`
1
+ var bsvStatusList=(()=>{var _g=Object.create;var ms=Object.defineProperty;var vg=Object.getOwnPropertyDescriptor;var gg=Object.getOwnPropertyNames;var bg=Object.getPrototypeOf,wg=Object.prototype.hasOwnProperty;var Eg=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(n){throw r=[n],n}};var _=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var mg=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of gg(t))!wg.call(e,i)&&i!==r&&ms(e,i,{get:()=>t[i],enumerable:!(n=vg(t,i))||n.enumerable});return e};var xs=(e,t,r)=>(r=e!=null?_g(bg(e)):{},mg(t||!e||!e.__esModule?ms(r,"default",{value:e,enumerable:!0}):r,e));var Os=_((aO,Ts)=>{c();var K=Ts.exports={},Ze,We;function Ro(){throw new Error("setTimeout has not been defined")}function To(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ze=setTimeout:Ze=Ro}catch{Ze=Ro}try{typeof clearTimeout=="function"?We=clearTimeout:We=To}catch{We=To}})();function Ss(e){if(Ze===setTimeout)return setTimeout(e,0);if((Ze===Ro||!Ze)&&setTimeout)return Ze=setTimeout,setTimeout(e,0);try{return Ze(e,0)}catch{try{return Ze.call(null,e,0)}catch{return Ze.call(this,e,0)}}}function xg(e){if(We===clearTimeout)return clearTimeout(e);if((We===To||!We)&&clearTimeout)return We=clearTimeout,clearTimeout(e);try{return We(e)}catch{try{return We.call(null,e)}catch{return We.call(this,e)}}}var it=[],wr=!1,Nt,vi=-1;function Sg(){!wr||!Nt||(wr=!1,Nt.length?it=Nt.concat(it):vi=-1,it.length&&As())}function As(){if(!wr){var e=Ss(Sg);wr=!0;for(var t=it.length;t;){for(Nt=it,it=[];++vi<t;)Nt&&Nt[vi].run();vi=-1,t=it.length}Nt=null,wr=!1,xg(e)}}K.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];it.push(new Rs(e,t)),it.length===1&&!wr&&Ss(As)};function Rs(e,t){this.fun=e,this.array=t}Rs.prototype.run=function(){this.fun.apply(null,this.array)};K.title="browser";K.browser=!0;K.env={};K.argv=[];K.version="";K.versions={};function at(){}K.on=at;K.addListener=at;K.once=at;K.off=at;K.removeListener=at;K.removeAllListeners=at;K.emit=at;K.prependListener=at;K.prependOnceListener=at;K.listeners=function(e){return[]};K.binding=function(e){throw new Error("process.binding is not supported")};K.cwd=function(){return"/"};K.chdir=function(e){throw new Error("process.chdir is not supported")};K.umask=function(){return 0}});var ks=_(gi=>{"use strict";c();gi.byteLength=Rg;gi.toByteArray=Og;gi.fromByteArray=kg;var He=[],Se=[],Ag=typeof Uint8Array<"u"?Uint8Array:Array,Oo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Pt=0,Is=Oo.length;Pt<Is;++Pt)He[Pt]=Oo[Pt],Se[Oo.charCodeAt(Pt)]=Pt;var Pt,Is;Se[45]=62;Se[95]=63;function Bs(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Rg(e){var t=Bs(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Tg(e,t,r){return(t+r)*3/4-r}function Og(e){var t,r=Bs(e),n=r[0],i=r[1],a=new Ag(Tg(e,n,i)),o=0,f=i>0?n-4:n,l;for(l=0;l<f;l+=4)t=Se[e.charCodeAt(l)]<<18|Se[e.charCodeAt(l+1)]<<12|Se[e.charCodeAt(l+2)]<<6|Se[e.charCodeAt(l+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Se[e.charCodeAt(l)]<<2|Se[e.charCodeAt(l+1)]>>4,a[o++]=t&255),i===1&&(t=Se[e.charCodeAt(l)]<<10|Se[e.charCodeAt(l+1)]<<4|Se[e.charCodeAt(l+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function Ig(e){return He[e>>18&63]+He[e>>12&63]+He[e>>6&63]+He[e&63]}function Bg(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(Ig(n));return i.join("")}function kg(e){for(var t,r=e.length,n=r%3,i=[],a=16383,o=0,f=r-n;o<f;o+=a)i.push(Bg(e,o,o+a>f?f:o+a));return n===1?(t=e[r-1],i.push(He[t>>2]+He[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(He[t>>10]+He[t>>4&63]+He[t<<2&63]+"=")),i.join("")}});var Ls=_(Io=>{c();Io.read=function(e,t,r,n,i){var a,o,f=i*8-n-1,l=(1<<f)-1,u=l>>1,s=-7,d=r?i-1:0,p=r?-1:1,y=e[t+d];for(d+=p,a=y&(1<<-s)-1,y>>=-s,s+=f;s>0;a=a*256+e[t+d],d+=p,s-=8);for(o=a&(1<<-s)-1,a>>=-s,s+=n;s>0;o=o*256+e[t+d],d+=p,s-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(y?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-u}return(y?-1:1)*o*Math.pow(2,a-n)};Io.write=function(e,t,r,n,i,a){var o,f,l,u=a*8-i-1,s=(1<<u)-1,d=s>>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:a-1,b=n?1:-1,w=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,o=s):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=p/l:t+=p*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=s?(f=0,o=s):o+d>=1?(f=(t*l-1)*Math.pow(2,i),o=o+d):(f=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+y]=f&255,y+=b,f/=256,i-=8);for(o=o<<i|f,u+=i;u>0;e[r+y]=o&255,y+=b,o/=256,u-=8);e[r+y-b]|=w*128}});var Ae=_(Sr=>{"use strict";c();var Bo=ks(),mr=Ls(),qs=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Sr.Buffer=g;Sr.SlowBuffer=Pg;Sr.INSPECT_MAX_BYTES=50;var bi=2147483647;Sr.kMaxLength=bi;g.TYPED_ARRAY_SUPPORT=Lg();!g.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Lg(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}});Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function ot(e){if(e>bi)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,g.prototype),t}function g(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Do(e)}return Ps(e,t,r)}g.poolSize=8192;function Ps(e,t,r){if(typeof e=="string")return Dg(e,t);if(ArrayBuffer.isView(e))return Fg(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Ge(e,ArrayBuffer)||e&&Ge(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ge(e,SharedArrayBuffer)||e&&Ge(e.buffer,SharedArrayBuffer)))return Lo(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return g.from(n,t,r);let i=Ng(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return g.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}g.from=function(e,t,r){return Ps(e,t,r)};Object.setPrototypeOf(g.prototype,Uint8Array.prototype);Object.setPrototypeOf(g,Uint8Array);function Ms(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function qg(e,t,r){return Ms(e),e<=0?ot(e):t!==void 0?typeof r=="string"?ot(e).fill(t,r):ot(e).fill(t):ot(e)}g.alloc=function(e,t,r){return qg(e,t,r)};function Do(e){return Ms(e),ot(e<0?0:Fo(e)|0)}g.allocUnsafe=function(e){return Do(e)};g.allocUnsafeSlow=function(e){return Do(e)};function Dg(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!g.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=js(e,t)|0,n=ot(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function ko(e){let t=e.length<0?0:Fo(e.length)|0,r=ot(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function Fg(e){if(Ge(e,Uint8Array)){let t=new Uint8Array(e);return Lo(t.buffer,t.byteOffset,t.byteLength)}return ko(e)}function Lo(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,g.prototype),n}function Ng(e){if(g.isBuffer(e)){let t=Fo(e.length)|0,r=ot(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Po(e.length)?ot(0):ko(e);if(e.type==="Buffer"&&Array.isArray(e.data))return ko(e.data)}function Fo(e){if(e>=bi)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+bi.toString(16)+" bytes");return e|0}function Pg(e){return+e!=e&&(e=0),g.alloc(+e)}g.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==g.prototype};g.compare=function(t,r){if(Ge(t,Uint8Array)&&(t=g.from(t,t.offset,t.byteLength)),Ge(r,Uint8Array)&&(r=g.from(r,r.offset,r.byteLength)),!g.isBuffer(t)||!g.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);a<o;++a)if(t[a]!==r[a]){n=t[a],i=r[a];break}return n<i?-1:i<n?1:0};g.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};g.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return g.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;let i=g.allocUnsafe(r),a=0;for(n=0;n<t.length;++n){let o=t[n];if(Ge(o,Uint8Array))a+o.length>i.length?(g.isBuffer(o)||(o=g.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(g.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function js(e,t){if(g.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Ge(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return qo(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Vs(e).length;default:if(i)return n?-1:qo(e).length;t=(""+t).toLowerCase(),i=!0}}g.byteLength=js;function Mg(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Vg(this,t,r);case"utf8":case"utf-8":return Cs(this,t,r);case"ascii":return Gg(this,t,r);case"latin1":case"binary":return $g(this,t,r);case"base64":return Wg(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Yg(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}g.prototype._isBuffer=!0;function Mt(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}g.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)Mt(this,r,r+1);return this};g.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)Mt(this,r,r+3),Mt(this,r+1,r+2);return this};g.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)Mt(this,r,r+7),Mt(this,r+1,r+6),Mt(this,r+2,r+5),Mt(this,r+3,r+4);return this};g.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?Cs(this,0,t):Mg.apply(this,arguments)};g.prototype.toLocaleString=g.prototype.toString;g.prototype.equals=function(t){if(!g.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:g.compare(this,t)===0};g.prototype.inspect=function(){let t="",r=Sr.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};qs&&(g.prototype[qs]=g.prototype.inspect);g.prototype.compare=function(t,r,n,i,a){if(Ge(t,Uint8Array)&&(t=g.from(t,t.offset,t.byteLength)),!g.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,f=n-r,l=Math.min(o,f),u=this.slice(i,a),s=t.slice(r,n);for(let d=0;d<l;++d)if(u[d]!==s[d]){o=u[d],f=s[d];break}return o<f?-1:f<o?1:0};function Us(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Po(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=g.from(t,n)),g.isBuffer(t))return t.length===0?-1:Ds(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Ds(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Ds(e,t,r,n,i){let a=1,o=e.length,f=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,f/=2,r/=2}function l(s,d){return a===1?s[d]:s.readUInt16BE(d*a)}let u;if(i){let s=-1;for(u=r;u<o;u++)if(l(e,u)===l(t,s===-1?0:u-s)){if(s===-1&&(s=u),u-s+1===f)return s*a}else s!==-1&&(u-=u-s),s=-1}else for(r+f>o&&(r=o-f),u=r;u>=0;u--){let s=!0;for(let d=0;d<f;d++)if(l(e,u+d)!==l(t,d)){s=!1;break}if(s)return u}return-1}g.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};g.prototype.indexOf=function(t,r,n){return Us(this,t,r,n,!0)};g.prototype.lastIndexOf=function(t,r,n){return Us(this,t,r,n,!1)};function jg(e,t,r,n){r=Number(r)||0;let i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o<n;++o){let f=parseInt(t.substr(o*2,2),16);if(Po(f))return o;e[r+o]=f}return o}function Ug(e,t,r,n){return wi(qo(t,e.length-r),e,r,n)}function Cg(e,t,r,n){return wi(Qg(t),e,r,n)}function zg(e,t,r,n){return wi(Vs(t),e,r,n)}function Zg(e,t,r,n){return wi(eb(t,e.length-r),e,r,n)}g.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return jg(this,t,r,n);case"utf8":case"utf-8":return Ug(this,t,r,n);case"ascii":case"latin1":case"binary":return Cg(this,t,r,n);case"base64":return zg(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zg(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Wg(e,t,r){return t===0&&r===e.length?Bo.fromByteArray(e):Bo.fromByteArray(e.slice(t,r))}function Cs(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let a=e[i],o=null,f=a>239?4:a>223?3:a>191?2:1;if(i+f<=r){let l,u,s,d;switch(f){case 1:a<128&&(o=a);break;case 2:l=e[i+1],(l&192)===128&&(d=(a&31)<<6|l&63,d>127&&(o=d));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(d=(a&15)<<12|(l&63)<<6|u&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:l=e[i+1],u=e[i+2],s=e[i+3],(l&192)===128&&(u&192)===128&&(s&192)===128&&(d=(a&15)<<18|(l&63)<<12|(u&63)<<6|s&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,f=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=f}return Hg(n)}var Fs=4096;function Hg(e){let t=e.length;if(t<=Fs)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=Fs));return r}function Gg(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function $g(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Vg(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let a=t;a<r;++a)i+=tb[e[a]];return i}function Yg(e,t,r){let n=e.slice(t,r),i="";for(let a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}g.prototype.slice=function(t,r){let n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);let i=this.subarray(t,r);return Object.setPrototypeOf(i,g.prototype),i};function ee(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||ee(t,r,this.length);let i=this[t],a=1,o=0;for(;++o<r&&(a*=256);)i+=this[t+o]*a;return i};g.prototype.readUintBE=g.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||ee(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};g.prototype.readUint8=g.prototype.readUInt8=function(t,r){return t=t>>>0,r||ee(t,1,this.length),this[t]};g.prototype.readUint16LE=g.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||ee(t,2,this.length),this[t]|this[t+1]<<8};g.prototype.readUint16BE=g.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||ee(t,2,this.length),this[t]<<8|this[t+1]};g.prototype.readUint32LE=g.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||ee(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};g.prototype.readUint32BE=g.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||ee(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};g.prototype.readBigUInt64LE=_t(function(t){t=t>>>0,xr(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&nn(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<<BigInt(32))});g.prototype.readBigUInt64BE=_t(function(t){t=t>>>0,xr(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&nn(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(a)});g.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||ee(t,r,this.length);let i=this[t],a=1,o=0;for(;++o<r&&(a*=256);)i+=this[t+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};g.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||ee(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};g.prototype.readInt8=function(t,r){return t=t>>>0,r||ee(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};g.prototype.readInt16LE=function(t,r){t=t>>>0,r||ee(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};g.prototype.readInt16BE=function(t,r){t=t>>>0,r||ee(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};g.prototype.readInt32LE=function(t,r){return t=t>>>0,r||ee(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};g.prototype.readInt32BE=function(t,r){return t=t>>>0,r||ee(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};g.prototype.readBigInt64LE=_t(function(t){t=t>>>0,xr(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&nn(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});g.prototype.readBigInt64BE=_t(function(t){t=t>>>0,xr(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&nn(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)});g.prototype.readFloatLE=function(t,r){return t=t>>>0,r||ee(t,4,this.length),mr.read(this,t,!0,23,4)};g.prototype.readFloatBE=function(t,r){return t=t>>>0,r||ee(t,4,this.length),mr.read(this,t,!1,23,4)};g.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||ee(t,8,this.length),mr.read(this,t,!0,52,8)};g.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||ee(t,8,this.length),mr.read(this,t,!1,52,8)};function ve(e,t,r,n,i,a){if(!g.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let f=Math.pow(2,8*n)-1;ve(this,t,r,n,f,0)}let a=1,o=0;for(this[r]=t&255;++o<n&&(a*=256);)this[r+o]=t/a&255;return r+n};g.prototype.writeUintBE=g.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let f=Math.pow(2,8*n)-1;ve(this,t,r,n,f,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};g.prototype.writeUint8=g.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||ve(this,t,r,1,255,0),this[r]=t&255,r+1};g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||ve(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||ve(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||ve(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||ve(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function zs(e,t,r,n,i){$s(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function Zs(e,t,r,n,i){$s(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}g.prototype.writeBigUInt64LE=_t(function(t,r=0){return zs(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});g.prototype.writeBigUInt64BE=_t(function(t,r=0){return Zs(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});g.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);ve(this,t,r,n,l-1,-l)}let a=0,o=1,f=0;for(this[r]=t&255;++a<n&&(o*=256);)t<0&&f===0&&this[r+a-1]!==0&&(f=1),this[r+a]=(t/o>>0)-f&255;return r+n};g.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);ve(this,t,r,n,l-1,-l)}let a=n-1,o=1,f=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&f===0&&this[r+a+1]!==0&&(f=1),this[r+a]=(t/o>>0)-f&255;return r+n};g.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||ve(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};g.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||ve(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};g.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||ve(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};g.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||ve(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};g.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||ve(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};g.prototype.writeBigInt64LE=_t(function(t,r=0){return zs(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});g.prototype.writeBigInt64BE=_t(function(t,r=0){return Zs(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ws(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Hs(e,t,r,n,i){return t=+t,r=r>>>0,i||Ws(e,t,r,4,34028234663852886e22,-34028234663852886e22),mr.write(e,t,r,n,23,4),r+4}g.prototype.writeFloatLE=function(t,r,n){return Hs(this,t,r,!0,n)};g.prototype.writeFloatBE=function(t,r,n){return Hs(this,t,r,!1,n)};function Gs(e,t,r,n,i){return t=+t,r=r>>>0,i||Ws(e,t,r,8,17976931348623157e292,-17976931348623157e292),mr.write(e,t,r,n,52,8),r+8}g.prototype.writeDoubleLE=function(t,r,n){return Gs(this,t,r,!0,n)};g.prototype.writeDoubleBE=function(t,r,n){return Gs(this,t,r,!1,n)};g.prototype.copy=function(t,r,n,i){if(!g.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);let a=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),a};g.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!g.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){let o=t.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(t=o)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a<n;++a)this[a]=t;else{let o=g.isBuffer(t)?t:g.from(t,i),f=o.length;if(f===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=o[a%f]}return this};var Er={};function No(e,t,r){Er[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}No("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);No("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);No("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=Ns(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=Ns(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function Ns(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Jg(e,t,r){xr(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&nn(t,e.length-(r+1))}function $s(e,t,r,n,i,a){if(e>r||e<t){let o=typeof t=="bigint"?"n":"",f;throw a>3?t===0||t===BigInt(0)?f=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:f=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:f=`>= ${t}${o} and <= ${r}${o}`,new Er.ERR_OUT_OF_RANGE("value",f,e)}Jg(n,i,a)}function xr(e,t){if(typeof e!="number")throw new Er.ERR_INVALID_ARG_TYPE(t,"number",e)}function nn(e,t,r){throw Math.floor(e)!==e?(xr(e,r),new Er.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new Er.ERR_BUFFER_OUT_OF_BOUNDS:new Er.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var Kg=/[^+/0-9A-Za-z-_]/g;function Xg(e){if(e=e.split("=")[0],e=e.trim().replace(Kg,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function qo(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o<n;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function Qg(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function eb(e,t){let r,n,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function Vs(e){return Bo.toByteArray(Xg(e))}function wi(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Ge(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Po(e){return e!==e}var tb=(function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t})();function _t(e){return typeof BigInt>"u"?rb:e}function rb(){throw new Error("BigInt not supported")}});var h,v,c=Eg(()=>{h=xs(Os()),v=xs(Ae())});var W=_((yO,Mo)=>{c();typeof Object.create=="function"?Mo.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Mo.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var ne=_((jo,Js)=>{c();var Ei=Ae(),$e=Ei.Buffer;function Ys(e,t){for(var r in e)t[r]=e[r]}$e.from&&$e.alloc&&$e.allocUnsafe&&$e.allocUnsafeSlow?Js.exports=Ei:(Ys(Ei,jo),jo.Buffer=jt);function jt(e,t,r){return $e(e,t,r)}jt.prototype=Object.create($e.prototype);Ys($e,jt);jt.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return $e(e,t,r)};jt.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=$e(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};jt.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return $e(e)};jt.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ei.SlowBuffer(e)}});var Rr=_((gO,Uo)=>{"use strict";c();var Ar=typeof Reflect=="object"?Reflect:null,Ks=Ar&&typeof Ar.apply=="function"?Ar.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},mi;Ar&&typeof Ar.ownKeys=="function"?mi=Ar.ownKeys:Object.getOwnPropertySymbols?mi=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:mi=function(t){return Object.getOwnPropertyNames(t)};function nb(e){console&&console.warn&&console.warn(e)}var Qs=Number.isNaN||function(t){return t!==t};function Z(){Z.init.call(this)}Uo.exports=Z;Uo.exports.once=fb;Z.EventEmitter=Z;Z.prototype._events=void 0;Z.prototype._eventsCount=0;Z.prototype._maxListeners=void 0;var Xs=10;function xi(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Z,"defaultMaxListeners",{enumerable:!0,get:function(){return Xs},set:function(e){if(typeof e!="number"||e<0||Qs(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Xs=e}});Z.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Z.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Qs(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function el(e){return e._maxListeners===void 0?Z.defaultMaxListeners:e._maxListeners}Z.prototype.getMaxListeners=function(){return el(this)};Z.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var f=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw f.context=o,f}var l=a[t];if(l===void 0)return!1;if(typeof l=="function")Ks(l,this,r);else for(var u=l.length,s=al(l,u),n=0;n<u;++n)Ks(s[n],this,r);return!0};function tl(e,t,r,n){var i,a,o;if(xi(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=el(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=o.length,nb(f)}return e}Z.prototype.addListener=function(t,r){return tl(this,t,r,!1)};Z.prototype.on=Z.prototype.addListener;Z.prototype.prependListener=function(t,r){return tl(this,t,r,!0)};function ib(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function rl(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=ib.bind(n);return i.listener=r,n.wrapFn=i,i}Z.prototype.once=function(t,r){return xi(r),this.on(t,rl(this,t,r)),this};Z.prototype.prependOnceListener=function(t,r){return xi(r),this.prependListener(t,rl(this,t,r)),this};Z.prototype.removeListener=function(t,r){var n,i,a,o,f;if(xi(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){f=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():ab(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,f||r)}return this};Z.prototype.off=Z.prototype.removeListener;Z.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function nl(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?ob(i):al(i,i.length)}Z.prototype.listeners=function(t){return nl(this,t,!0)};Z.prototype.rawListeners=function(t){return nl(this,t,!1)};Z.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):il.call(e,t)};Z.prototype.listenerCount=il;function il(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Z.prototype.eventNames=function(){return this._eventsCount>0?mi(this._events):[]};function al(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function ab(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function ob(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function fb(e,t){return new Promise(function(r,n){function i(o){e.removeListener(t,a),n(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}ol(e,t,a,{once:!0}),t!=="error"&&ub(e,i,{once:!0})})}function ub(e,t,r){typeof e.on=="function"&&ol(e,"error",t,r)}function ol(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(a){n.once&&e.removeEventListener(t,i),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var Co=_((wO,fl)=>{c();fl.exports=Rr().EventEmitter});var Si=_((mO,ul)=>{"use strict";c();ul.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(t,r);if(f.value!==i||f.enumerable!==!0)return!1}return!0}});var an=_((SO,sl)=>{"use strict";c();var sb=Si();sl.exports=function(){return sb()&&!!Symbol.toStringTag}});var Ai=_((RO,ll)=>{"use strict";c();ll.exports=Object});var hl=_((OO,cl)=>{"use strict";c();cl.exports=Error});var pl=_((BO,dl)=>{"use strict";c();dl.exports=EvalError});var _l=_((LO,yl)=>{"use strict";c();yl.exports=RangeError});var gl=_((DO,vl)=>{"use strict";c();vl.exports=ReferenceError});var zo=_((NO,bl)=>{"use strict";c();bl.exports=SyntaxError});var Ut=_((MO,wl)=>{"use strict";c();wl.exports=TypeError});var ml=_((UO,El)=>{"use strict";c();El.exports=URIError});var Sl=_((zO,xl)=>{"use strict";c();xl.exports=Math.abs});var Rl=_((WO,Al)=>{"use strict";c();Al.exports=Math.floor});var Ol=_((GO,Tl)=>{"use strict";c();Tl.exports=Math.max});var Bl=_((VO,Il)=>{"use strict";c();Il.exports=Math.min});var Ll=_((JO,kl)=>{"use strict";c();kl.exports=Math.pow});var Dl=_((XO,ql)=>{"use strict";c();ql.exports=Math.round});var Nl=_((e8,Fl)=>{"use strict";c();Fl.exports=Number.isNaN||function(t){return t!==t}});var Ml=_((r8,Pl)=>{"use strict";c();var lb=Nl();Pl.exports=function(t){return lb(t)||t===0?t:t<0?-1:1}});var Ul=_((i8,jl)=>{"use strict";c();jl.exports=Object.getOwnPropertyDescriptor});var Ct=_((o8,Cl)=>{"use strict";c();var Ri=Ul();if(Ri)try{Ri([],"length")}catch{Ri=null}Cl.exports=Ri});var on=_((u8,zl)=>{"use strict";c();var Ti=Object.defineProperty||!1;if(Ti)try{Ti({},"a",{value:1})}catch{Ti=!1}zl.exports=Ti});var Hl=_((l8,Wl)=>{"use strict";c();var Zl=typeof Symbol<"u"&&Symbol,cb=Si();Wl.exports=function(){return typeof Zl!="function"||typeof Symbol!="function"||typeof Zl("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:cb()}});var Zo=_((h8,Gl)=>{"use strict";c();Gl.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Wo=_((p8,$l)=>{"use strict";c();var hb=Ai();$l.exports=hb.getPrototypeOf||null});var Jl=_((_8,Yl)=>{"use strict";c();var db="Function.prototype.bind called on incompatible ",pb=Object.prototype.toString,yb=Math.max,_b="[object Function]",Vl=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var a=0;a<r.length;a+=1)n[a+t.length]=r[a];return n},vb=function(t,r){for(var n=[],i=r||0,a=0;i<t.length;i+=1,a+=1)n[a]=t[i];return n},gb=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};Yl.exports=function(t){var r=this;if(typeof r!="function"||pb.apply(r)!==_b)throw new TypeError(db+r);for(var n=vb(arguments,1),i,a=function(){if(this instanceof i){var s=r.apply(this,Vl(n,arguments));return Object(s)===s?s:this}return r.apply(t,Vl(n,arguments))},o=yb(0,r.length-n.length),f=[],l=0;l<o;l++)f[l]="$"+l;if(i=Function("binder","return function ("+gb(f,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}});var Tr=_((g8,Kl)=>{"use strict";c();var bb=Jl();Kl.exports=Function.prototype.bind||bb});var Oi=_((w8,Xl)=>{"use strict";c();Xl.exports=Function.prototype.call});var Ii=_((m8,Ql)=>{"use strict";c();Ql.exports=Function.prototype.apply});var tc=_((S8,ec)=>{"use strict";c();ec.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Ho=_((R8,rc)=>{"use strict";c();var wb=Tr(),Eb=Ii(),mb=Oi(),xb=tc();rc.exports=xb||wb.call(mb,Eb)});var Bi=_((O8,nc)=>{"use strict";c();var Sb=Tr(),Ab=Ut(),Rb=Oi(),Tb=Ho();nc.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new Ab("a function is required");return Tb(Sb,Rb,t)}});var sc=_((B8,uc)=>{"use strict";c();var Ob=Bi(),ic=Ct(),oc;try{oc=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Go=!!oc&&ic&&ic(Object.prototype,"__proto__"),fc=Object,ac=fc.getPrototypeOf;uc.exports=Go&&typeof Go.get=="function"?Ob([Go.get]):typeof ac=="function"?function(t){return ac(t==null?t:fc(t))}:!1});var ki=_((L8,dc)=>{"use strict";c();var lc=Zo(),cc=Wo(),hc=sc();dc.exports=lc?function(t){return lc(t)}:cc?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return cc(t)}:hc?function(t){return hc(t)}:null});var $o=_((D8,pc)=>{"use strict";c();var Ib=Function.prototype.call,Bb=Object.prototype.hasOwnProperty,kb=Tr();pc.exports=kb.call(Ib,Bb)});var Di=_((N8,wc)=>{"use strict";c();var N,Lb=Ai(),qb=hl(),Db=pl(),Fb=_l(),Nb=gl(),kr=zo(),Br=Ut(),Pb=ml(),Mb=Sl(),jb=Rl(),Ub=Ol(),Cb=Bl(),zb=Ll(),Zb=Dl(),Wb=Ml(),gc=Function,Vo=function(e){try{return gc('"use strict"; return ('+e+").constructor;")()}catch{}},fn=Ct(),Hb=on(),Yo=function(){throw new Br},Gb=fn?(function(){try{return arguments.callee,Yo}catch{try{return fn(arguments,"callee").get}catch{return Yo}}})():Yo,Or=Hl()(),te=ki(),$b=Wo(),Vb=Zo(),bc=Ii(),un=Oi(),Ir={},Yb=typeof Uint8Array>"u"||!te?N:te(Uint8Array),zt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?N:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?N:ArrayBuffer,"%ArrayIteratorPrototype%":Or&&te?te([][Symbol.iterator]()):N,"%AsyncFromSyncIteratorPrototype%":N,"%AsyncFunction%":Ir,"%AsyncGenerator%":Ir,"%AsyncGeneratorFunction%":Ir,"%AsyncIteratorPrototype%":Ir,"%Atomics%":typeof Atomics>"u"?N:Atomics,"%BigInt%":typeof BigInt>"u"?N:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?N:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?N:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?N:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":qb,"%eval%":eval,"%EvalError%":Db,"%Float16Array%":typeof Float16Array>"u"?N:Float16Array,"%Float32Array%":typeof Float32Array>"u"?N:Float32Array,"%Float64Array%":typeof Float64Array>"u"?N:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?N:FinalizationRegistry,"%Function%":gc,"%GeneratorFunction%":Ir,"%Int8Array%":typeof Int8Array>"u"?N:Int8Array,"%Int16Array%":typeof Int16Array>"u"?N:Int16Array,"%Int32Array%":typeof Int32Array>"u"?N:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Or&&te?te(te([][Symbol.iterator]())):N,"%JSON%":typeof JSON=="object"?JSON:N,"%Map%":typeof Map>"u"?N:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Or||!te?N:te(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Lb,"%Object.getOwnPropertyDescriptor%":fn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?N:Promise,"%Proxy%":typeof Proxy>"u"?N:Proxy,"%RangeError%":Fb,"%ReferenceError%":Nb,"%Reflect%":typeof Reflect>"u"?N:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?N:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Or||!te?N:te(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?N:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Or&&te?te(""[Symbol.iterator]()):N,"%Symbol%":Or?Symbol:N,"%SyntaxError%":kr,"%ThrowTypeError%":Gb,"%TypedArray%":Yb,"%TypeError%":Br,"%Uint8Array%":typeof Uint8Array>"u"?N:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?N:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?N:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?N:Uint32Array,"%URIError%":Pb,"%WeakMap%":typeof WeakMap>"u"?N:WeakMap,"%WeakRef%":typeof WeakRef>"u"?N:WeakRef,"%WeakSet%":typeof WeakSet>"u"?N:WeakSet,"%Function.prototype.call%":un,"%Function.prototype.apply%":bc,"%Object.defineProperty%":Hb,"%Object.getPrototypeOf%":$b,"%Math.abs%":Mb,"%Math.floor%":jb,"%Math.max%":Ub,"%Math.min%":Cb,"%Math.pow%":zb,"%Math.round%":Zb,"%Math.sign%":Wb,"%Reflect.getPrototypeOf%":Vb};if(te)try{null.error}catch(e){yc=te(te(e)),zt["%Error.prototype%"]=yc}var yc,Jb=function e(t){var r;if(t==="%AsyncFunction%")r=Vo("async function () {}");else if(t==="%GeneratorFunction%")r=Vo("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Vo("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&te&&(r=te(i.prototype))}return zt[t]=r,r},_c={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},sn=Tr(),Li=$o(),Kb=sn.call(un,Array.prototype.concat),Xb=sn.call(bc,Array.prototype.splice),vc=sn.call(un,String.prototype.replace),qi=sn.call(un,String.prototype.slice),Qb=sn.call(un,RegExp.prototype.exec),ew=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,tw=/\\(\\)?/g,rw=function(t){var r=qi(t,0,1),n=qi(t,-1);if(r==="%"&&n!=="%")throw new kr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new kr("invalid intrinsic syntax, expected opening `%`");var i=[];return vc(t,ew,function(a,o,f,l){i[i.length]=f?vc(l,tw,"$1"):o||a}),i},nw=function(t,r){var n=t,i;if(Li(_c,n)&&(i=_c[n],n="%"+i[0]+"%"),Li(zt,n)){var a=zt[n];if(a===Ir&&(a=Jb(n)),typeof a>"u"&&!r)throw new Br("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new kr("intrinsic "+t+" does not exist!")};wc.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Br("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Br('"allowMissing" argument must be a boolean');if(Qb(/^%?[^%]*%?$/,t)===null)throw new kr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=rw(t),i=n.length>0?n[0]:"",a=nw("%"+i+"%",r),o=a.name,f=a.value,l=!1,u=a.alias;u&&(i=u[0],Xb(n,Kb([0,1],u)));for(var s=1,d=!0;s<n.length;s+=1){var p=n[s],y=qi(p,0,1),b=qi(p,-1);if((y==='"'||y==="'"||y==="`"||b==='"'||b==="'"||b==="`")&&y!==b)throw new kr("property names with quotes must have matching quotes");if((p==="constructor"||!d)&&(l=!0),i+="."+p,o="%"+i+"%",Li(zt,o))f=zt[o];else if(f!=null){if(!(p in f)){if(!r)throw new Br("base intrinsic for "+t+" exists, but the property is not available.");return}if(fn&&s+1>=n.length){var w=fn(f,p);d=!!w,d&&"get"in w&&!("originalValue"in w.get)?f=w.get:f=f[p]}else d=Li(f,p),f=f[p];d&&!l&&(zt[o]=f)}}return f}});var vt=_((M8,xc)=>{"use strict";c();var Ec=Di(),mc=Bi(),iw=mc([Ec("%String.prototype.indexOf%")]);xc.exports=function(t,r){var n=Ec(t,!!r);return typeof n=="function"&&iw(t,".prototype.")>-1?mc([n]):n}});var Rc=_((U8,Ac)=>{"use strict";c();var aw=an()(),ow=vt(),Jo=ow("Object.prototype.toString"),Fi=function(t){return aw&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Jo(t)==="[object Arguments]"},Sc=function(t){return Fi(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&Jo(t)!=="[object Array]"&&"callee"in t&&Jo(t.callee)==="[object Function]"},fw=(function(){return Fi(arguments)})();Fi.isLegacyArguments=Sc;Ac.exports=fw?Fi:Sc});var Lc=_((z8,kc)=>{"use strict";c();var Tc=vt(),uw=an()(),sw=$o(),lw=Ct(),Qo;uw?(Oc=Tc("RegExp.prototype.exec"),Ko={},Ni=function(){throw Ko},Xo={toString:Ni,valueOf:Ni},typeof Symbol.toPrimitive=="symbol"&&(Xo[Symbol.toPrimitive]=Ni),Qo=function(t){if(!t||typeof t!="object")return!1;var r=lw(t,"lastIndex"),n=r&&sw(r,"value");if(!n)return!1;try{Oc(t,Xo)}catch(i){return i===Ko}}):(Ic=Tc("Object.prototype.toString"),Bc="[object RegExp]",Qo=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:Ic(t)===Bc});var Oc,Ko,Ni,Xo,Ic,Bc;kc.exports=Qo});var Dc=_((W8,qc)=>{"use strict";c();var cw=vt(),hw=Lc(),dw=cw("RegExp.prototype.exec"),pw=Ut();qc.exports=function(t){if(!hw(t))throw new pw("`regex` must be a RegExp");return function(n){return dw(t,n)!==null}}});var Nc=_((G8,Fc)=>{"use strict";c();var yw=function*(){}.constructor;Fc.exports=()=>yw});var Uc=_((V8,jc)=>{"use strict";c();var Mc=vt(),_w=Dc(),vw=_w(/^\s*(?:function)?\*/),gw=an()(),Pc=ki(),bw=Mc("Object.prototype.toString"),ww=Mc("Function.prototype.toString"),Ew=Nc();jc.exports=function(t){if(typeof t!="function")return!1;if(vw(ww(t)))return!0;if(!gw){var r=bw(t);return r==="[object GeneratorFunction]"}if(!Pc)return!1;var n=Ew();return n&&Pc(t)===n.prototype}});var Wc=_((J8,Zc)=>{"use strict";c();var zc=Function.prototype.toString,Lr=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,tf,Pi;if(typeof Lr=="function"&&typeof Object.defineProperty=="function")try{tf=Object.defineProperty({},"length",{get:function(){throw Pi}}),Pi={},Lr(function(){throw 42},null,tf)}catch(e){e!==Pi&&(Lr=null)}else Lr=null;var mw=/^\s*class\b/,rf=function(t){try{var r=zc.call(t);return mw.test(r)}catch{return!1}},ef=function(t){try{return rf(t)?!1:(zc.call(t),!0)}catch{return!1}},Mi=Object.prototype.toString,xw="[object Object]",Sw="[object Function]",Aw="[object GeneratorFunction]",Rw="[object HTMLAllCollection]",Tw="[object HTML document.all class]",Ow="[object HTMLCollection]",Iw=typeof Symbol=="function"&&!!Symbol.toStringTag,Bw=!(0 in[,]),nf=function(){return!1};typeof document=="object"&&(Cc=document.all,Mi.call(Cc)===Mi.call(document.all)&&(nf=function(t){if((Bw||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Mi.call(t);return(r===Rw||r===Tw||r===Ow||r===xw)&&t("")==null}catch{}return!1}));var Cc;Zc.exports=Lr?function(t){if(nf(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Lr(t,null,tf)}catch(r){if(r!==Pi)return!1}return!rf(t)&&ef(t)}:function(t){if(nf(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(Iw)return ef(t);if(rf(t))return!1;var r=Mi.call(t);return r!==Sw&&r!==Aw&&!/^\[object HTML/.test(r)?!1:ef(t)}});var $c=_((X8,Gc)=>{"use strict";c();var kw=Wc(),Lw=Object.prototype.toString,Hc=Object.prototype.hasOwnProperty,qw=function(t,r,n){for(var i=0,a=t.length;i<a;i++)Hc.call(t,i)&&(n==null?r(t[i],i,t):r.call(n,t[i],i,t))},Dw=function(t,r,n){for(var i=0,a=t.length;i<a;i++)n==null?r(t.charAt(i),i,t):r.call(n,t.charAt(i),i,t)},Fw=function(t,r,n){for(var i in t)Hc.call(t,i)&&(n==null?r(t[i],i,t):r.call(n,t[i],i,t))};function Nw(e){return Lw.call(e)==="[object Array]"}Gc.exports=function(t,r,n){if(!kw(r))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),Nw(t)?qw(t,r,i):typeof t=="string"?Dw(t,r,i):Fw(t,r,i)}});var Yc=_((e6,Vc)=>{"use strict";c();Vc.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var Kc=_((r6,Jc)=>{"use strict";c();var af=Yc(),Pw=globalThis;Jc.exports=function(){for(var t=[],r=0;r<af.length;r++)typeof Pw[af[r]]=="function"&&(t[t.length]=af[r]);return t}});var of=_((i6,eh)=>{"use strict";c();var Xc=on(),Mw=zo(),qr=Ut(),Qc=Ct();eh.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new qr("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new qr("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new qr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new qr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new qr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new qr("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,l=!!Qc&&Qc(t,r);if(Xc)Xc(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:a===null&&l?l.writable:!a});else if(f||!i&&!a&&!o)t[r]=n;else throw new Mw("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var uf=_((o6,rh)=>{"use strict";c();var ff=on(),th=function(){return!!ff};th.hasArrayLengthDefineBug=function(){if(!ff)return null;try{return ff([],"length",{value:1}).length!==1}catch{return!0}};rh.exports=th});var fh=_((u6,oh)=>{"use strict";c();var jw=Di(),nh=of(),Uw=uf()(),ih=Ct(),ah=Ut(),Cw=jw("%Math.floor%");oh.exports=function(t,r){if(typeof t!="function")throw new ah("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Cw(r)!==r)throw new ah("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&ih){var o=ih(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(Uw?nh(t,"length",r,!0,!0):nh(t,"length",r)),t}});var sh=_((l6,uh)=>{"use strict";c();var zw=Tr(),Zw=Ii(),Ww=Ho();uh.exports=function(){return Ww(zw,Zw,arguments)}});var ln=_((h6,ji)=>{"use strict";c();var Hw=fh(),lh=on(),Gw=Bi(),ch=sh();ji.exports=function(t){var r=Gw(arguments),n=1+t.length-(arguments.length-1);return Hw(r,n>0?n:0,!0)};lh?lh(ji.exports,"apply",{value:ch}):ji.exports.apply=ch});var hf=_((p6,yh)=>{"use strict";c();var zi=$c(),$w=Kc(),hh=ln(),lf=vt(),Ci=Ct(),Ui=ki(),Vw=lf("Object.prototype.toString"),ph=an()(),dh=globalThis,sf=$w(),cf=lf("String.prototype.slice"),Yw=lf("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return-1},Zi={__proto__:null};ph&&Ci&&Ui?zi(sf,function(e){var t=new dh[e];if(Symbol.toStringTag in t&&Ui){var r=Ui(t),n=Ci(r,Symbol.toStringTag);if(!n&&r){var i=Ui(r);n=Ci(i,Symbol.toStringTag)}if(n&&n.get){var a=hh(n.get);Zi["$"+e]=a}}}):zi(sf,function(e){var t=new dh[e],r=t.slice||t.set;if(r){var n=hh(r);Zi["$"+e]=n}});var Jw=function(t){var r=!1;return zi(Zi,function(n,i){if(!r)try{"$"+n(t)===i&&(r=cf(i,1))}catch{}}),r},Kw=function(t){var r=!1;return zi(Zi,function(n,i){if(!r)try{n(t),r=cf(i,1)}catch{}}),r};yh.exports=function(t){if(!t||typeof t!="object")return!1;if(!ph){var r=cf(Vw(t),8,-1);return Yw(sf,r)>-1?r:r!=="Object"?!1:Kw(t)}return Ci?Jw(t):null}});var df=_((_6,_h)=>{"use strict";c();var Xw=hf();_h.exports=function(t){return!!Xw(t)}});var Bh=_(P=>{"use strict";c();var Qw=Rc(),e1=Uc(),De=hf(),vh=df();function Dr(e){return e.call.bind(e)}var gh=typeof BigInt<"u",bh=typeof Symbol<"u",Re=Dr(Object.prototype.toString),t1=Dr(Number.prototype.valueOf),r1=Dr(String.prototype.valueOf),n1=Dr(Boolean.prototype.valueOf);gh&&(wh=Dr(BigInt.prototype.valueOf));var wh;bh&&(Eh=Dr(Symbol.prototype.valueOf));var Eh;function hn(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch{return!1}}P.isArgumentsObject=Qw;P.isGeneratorFunction=e1;P.isTypedArray=vh;function i1(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}P.isPromise=i1;function a1(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):vh(e)||xh(e)}P.isArrayBufferView=a1;function o1(e){return De(e)==="Uint8Array"}P.isUint8Array=o1;function f1(e){return De(e)==="Uint8ClampedArray"}P.isUint8ClampedArray=f1;function u1(e){return De(e)==="Uint16Array"}P.isUint16Array=u1;function s1(e){return De(e)==="Uint32Array"}P.isUint32Array=s1;function l1(e){return De(e)==="Int8Array"}P.isInt8Array=l1;function c1(e){return De(e)==="Int16Array"}P.isInt16Array=c1;function h1(e){return De(e)==="Int32Array"}P.isInt32Array=h1;function d1(e){return De(e)==="Float32Array"}P.isFloat32Array=d1;function p1(e){return De(e)==="Float64Array"}P.isFloat64Array=p1;function y1(e){return De(e)==="BigInt64Array"}P.isBigInt64Array=y1;function _1(e){return De(e)==="BigUint64Array"}P.isBigUint64Array=_1;function Wi(e){return Re(e)==="[object Map]"}Wi.working=typeof Map<"u"&&Wi(new Map);function v1(e){return typeof Map>"u"?!1:Wi.working?Wi(e):e instanceof Map}P.isMap=v1;function Hi(e){return Re(e)==="[object Set]"}Hi.working=typeof Set<"u"&&Hi(new Set);function g1(e){return typeof Set>"u"?!1:Hi.working?Hi(e):e instanceof Set}P.isSet=g1;function Gi(e){return Re(e)==="[object WeakMap]"}Gi.working=typeof WeakMap<"u"&&Gi(new WeakMap);function b1(e){return typeof WeakMap>"u"?!1:Gi.working?Gi(e):e instanceof WeakMap}P.isWeakMap=b1;function yf(e){return Re(e)==="[object WeakSet]"}yf.working=typeof WeakSet<"u"&&yf(new WeakSet);function w1(e){return yf(e)}P.isWeakSet=w1;function $i(e){return Re(e)==="[object ArrayBuffer]"}$i.working=typeof ArrayBuffer<"u"&&$i(new ArrayBuffer);function mh(e){return typeof ArrayBuffer>"u"?!1:$i.working?$i(e):e instanceof ArrayBuffer}P.isArrayBuffer=mh;function Vi(e){return Re(e)==="[object DataView]"}Vi.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Vi(new DataView(new ArrayBuffer(1),0,1));function xh(e){return typeof DataView>"u"?!1:Vi.working?Vi(e):e instanceof DataView}P.isDataView=xh;var pf=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function cn(e){return Re(e)==="[object SharedArrayBuffer]"}function Sh(e){return typeof pf>"u"?!1:(typeof cn.working>"u"&&(cn.working=cn(new pf)),cn.working?cn(e):e instanceof pf)}P.isSharedArrayBuffer=Sh;function E1(e){return Re(e)==="[object AsyncFunction]"}P.isAsyncFunction=E1;function m1(e){return Re(e)==="[object Map Iterator]"}P.isMapIterator=m1;function x1(e){return Re(e)==="[object Set Iterator]"}P.isSetIterator=x1;function S1(e){return Re(e)==="[object Generator]"}P.isGeneratorObject=S1;function A1(e){return Re(e)==="[object WebAssembly.Module]"}P.isWebAssemblyCompiledModule=A1;function Ah(e){return hn(e,t1)}P.isNumberObject=Ah;function Rh(e){return hn(e,r1)}P.isStringObject=Rh;function Th(e){return hn(e,n1)}P.isBooleanObject=Th;function Oh(e){return gh&&hn(e,wh)}P.isBigIntObject=Oh;function Ih(e){return bh&&hn(e,Eh)}P.isSymbolObject=Ih;function R1(e){return Ah(e)||Rh(e)||Th(e)||Oh(e)||Ih(e)}P.isBoxedPrimitive=R1;function T1(e){return typeof Uint8Array<"u"&&(mh(e)||Sh(e))}P.isAnyArrayBuffer=T1;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(P,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var Lh=_((w6,kh)=>{c();kh.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var Fe=_(M=>{c();var qh=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i<r.length;i++)n[r[i]]=Object.getOwnPropertyDescriptor(t,r[i]);return n},O1=/%[sdj%]/g;M.format=function(e){if(!ta(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(gt(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(O1,function(f){if(f==="%%")return"%";if(r>=i)return f;switch(f){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return f}}),o=n[r];r<i;o=n[++r])ea(o)||!Fr(o)?a+=" "+o:a+=" "+gt(o);return a};M.deprecate=function(e,t){if(typeof h.default<"u"&&h.default.noDeprecation===!0)return e;if(typeof h.default>"u")return function(){return M.deprecate(e,t).apply(this,arguments)};var r=!1;function n(){if(!r){if(h.default.throwDeprecation)throw new Error(t);h.default.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}return n};var Yi={},Dh=/^$/;h.default.env.NODE_DEBUG&&(Ji=h.default.env.NODE_DEBUG,Ji=Ji.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Dh=new RegExp("^"+Ji+"$","i"));var Ji;M.debuglog=function(e){if(e=e.toUpperCase(),!Yi[e])if(Dh.test(e)){var t=h.default.pid;Yi[e]=function(){var r=M.format.apply(M,arguments);console.error("%s %d: %s",e,t,r)}}else Yi[e]=function(){};return Yi[e]};function gt(e,t){var r={seen:[],stylize:B1};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),bf(t)?r.showHidden=t:t&&M._extend(r,t),Wt(r.showHidden)&&(r.showHidden=!1),Wt(r.depth)&&(r.depth=2),Wt(r.colors)&&(r.colors=!1),Wt(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=I1),Xi(r,e,r.depth)}M.inspect=gt;gt.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};gt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function I1(e,t){var r=gt.styles[t];return r?"\x1B["+gt.colors[r][0]+"m"+e+"\x1B["+gt.colors[r][1]+"m":e}function B1(e,t){return e}function k1(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function Xi(e,t,r){if(e.customInspect&&t&&Ki(t.inspect)&&t.inspect!==M.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return ta(n)||(n=Xi(e,n,r)),n}var i=L1(e,t);if(i)return i;var a=Object.keys(t),o=k1(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),pn(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return _f(t);if(a.length===0){if(Ki(t)){var f=t.name?": "+t.name:"";return e.stylize("[Function"+f+"]","special")}if(dn(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Qi(t))return e.stylize(Date.prototype.toString.call(t),"date");if(pn(t))return _f(t)}var l="",u=!1,s=["{","}"];if(Fh(t)&&(u=!0,s=["[","]"]),Ki(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]"}if(dn(t)&&(l=" "+RegExp.prototype.toString.call(t)),Qi(t)&&(l=" "+Date.prototype.toUTCString.call(t)),pn(t)&&(l=" "+_f(t)),a.length===0&&(!u||t.length==0))return s[0]+l+s[1];if(r<0)return dn(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var p;return u?p=q1(e,t,r,o,a):p=a.map(function(y){return gf(e,t,r,o,y,u)}),e.seen.pop(),D1(p,l,s)}function L1(e,t){if(Wt(t))return e.stylize("undefined","undefined");if(ta(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(Nh(t))return e.stylize(""+t,"number");if(bf(t))return e.stylize(""+t,"boolean");if(ea(t))return e.stylize("null","null")}function _f(e){return"["+Error.prototype.toString.call(e)+"]"}function q1(e,t,r,n,i){for(var a=[],o=0,f=t.length;o<f;++o)Ph(t,String(o))?a.push(gf(e,t,r,n,String(o),!0)):a.push("");return i.forEach(function(l){l.match(/^\d+$/)||a.push(gf(e,t,r,n,l,!0))}),a}function gf(e,t,r,n,i,a){var o,f,l;if(l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},l.get?l.set?f=e.stylize("[Getter/Setter]","special"):f=e.stylize("[Getter]","special"):l.set&&(f=e.stylize("[Setter]","special")),Ph(n,i)||(o="["+i+"]"),f||(e.seen.indexOf(l.value)<0?(ea(r)?f=Xi(e,l.value,null):f=Xi(e,l.value,r-1),f.indexOf(`
2
+ `)>-1&&(a?f=f.split(`
3
+ `).map(function(u){return" "+u}).join(`
4
+ `).slice(2):f=`
5
+ `+f.split(`
6
+ `).map(function(u){return" "+u}).join(`
7
+ `))):f=e.stylize("[Circular]","special")),Wt(o)){if(a&&i.match(/^\d+$/))return f;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+f}function D1(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(`
8
+ `)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+`
10
9
  `)+" "+e.join(`,
11
- `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}Fe.types=Yv();function ty(e){return Array.isArray(e)}Fe.isArray=ty;function Fl(e){return typeof e=="boolean"}Fe.isBoolean=Fl;function Gf(e){return e===null}Fe.isNull=Gf;function i8(e){return e==null}Fe.isNullOrUndefined=i8;function ry(e){return typeof e=="number"}Fe.isNumber=ry;function Vf(e){return typeof e=="string"}Fe.isString=Vf;function n8(e){return typeof e=="symbol"}Fe.isSymbol=n8;function Ci(e){return e===void 0}Fe.isUndefined=Ci;function Ha(e){return Un(e)&&jl(e)==="[object RegExp]"}Fe.isRegExp=Ha;Fe.types.isRegExp=Ha;function Un(e){return typeof e=="object"&&e!==null}Fe.isObject=Un;function Kf(e){return Un(e)&&jl(e)==="[object Date]"}Fe.isDate=Kf;Fe.types.isDate=Kf;function Wa(e){return Un(e)&&(jl(e)==="[object Error]"||e instanceof Error)}Fe.isError=Wa;Fe.types.isNativeError=Wa;function Hf(e){return typeof e=="function"}Fe.isFunction=Hf;function a8(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Fe.isPrimitive=a8;Fe.isBuffer=Xv();function jl(e){return Object.prototype.toString.call(e)}function Cl(e){return e<10?"0"+e.toString(10):e.toString(10)}var o8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function f8(){var e=new Date,t=[Cl(e.getHours()),Cl(e.getMinutes()),Cl(e.getSeconds())].join(":");return[e.getDate(),o8[e.getMonth()],t].join(" ")}Fe.log=function(){console.log("%s - %s",f8(),Fe.format.apply(Fe,arguments))};Fe.inherits=re();Fe._extend=function(e,t){if(!t||!Un(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};function iy(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Li=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Fe.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(Li&&t[Li]){var r=t[Li];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,Li,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,a=new Promise(function(y,b){i=y,n=b}),o=[],s=0;s<arguments.length;s++)o.push(arguments[s]);o.push(function(y,b){y?n(y):i(b)});try{t.apply(this,o)}catch(y){n(y)}return a}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Li&&Object.defineProperty(r,Li,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,Qv(t))};Fe.promisify.custom=Li;function s8(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function u8(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){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 a=this,o=function(){return n.apply(a,arguments)};e.apply(this,r).then(function(s){M.default.nextTick(o.bind(null,null,s))},function(s){M.default.nextTick(s8.bind(null,s,o))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,Qv(e)),t}Fe.callbackify=u8});var uy=k((Y9,sy)=>{"use strict";m();function ny(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function ay(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ny(Object(r),!0).forEach(function(i){l8(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ny(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function l8(e,t,r){return t=fy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oy(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,fy(i.key),i)}}function c8(e,t,r){return t&&oy(e.prototype,t),r&&oy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fy(e){var t=d8(e,"string");return typeof t=="symbol"?t:String(t)}function d8(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var p8=st(),$f=p8.Buffer,v8=Gt(),zl=v8.inspect,y8=zl&&zl.custom||"inspect";function g8(e,t,r){$f.prototype.copy.call(e,t,r)}sy.exports=(function(){function e(){h8(this,e),this.head=null,this.tail=null,this.length=0}return c8(e,[{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 $f.alloc(0);for(var i=$f.allocUnsafe(r>>>0),n=this.head,a=0;n;)g8(n.data,i,a),a+=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,a=i.data;for(r-=a.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++n}return this.length-=n,a}},{key:"_getBuffer",value:function(r){var i=$f.allocUnsafe(r),n=this.head,a=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var o=n.data,s=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,s),r-=s,r===0){s===o.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++a}return this.length-=a,i}},{key:y8,value:function(r,i){return zl(this,ay(ay({},i),{},{depth:0,customInspect:!1}))}}]),e})()});var Hl=k((X9,hy)=>{"use strict";m();function b8(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,M.default.nextTick(Zl,this,e)):M.default.nextTick(Zl,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?M.default.nextTick(Yf,r):(r._writableState.errorEmitted=!0,M.default.nextTick(ly,r,a)):M.default.nextTick(ly,r,a):t?(M.default.nextTick(Yf,r),t(a)):M.default.nextTick(Yf,r)}),this)}function ly(e,t){Zl(e,t),Yf(e)}function Yf(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function _8(){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 Zl(e,t){e.emit("error",t)}function m8(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}hy.exports={destroy:b8,undestroy:_8,errorOrDestroy:m8}});var Ui=k((eD,py)=>{"use strict";m();function w8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var dy={};function Ot(e,t,r){r||(r=Error);function i(a,o,s){return typeof t=="string"?t:t(a,o,s)}var n=(function(a){w8(o,a);function o(s,y,b){return a.call(this,i(s,y,b))||this}return o})(r);n.prototype.name=r.name,n.prototype.code=e,dy[e]=n}function cy(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function x8(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function E8(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function S8(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Ot("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Ot("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&x8(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(E8(e," argument"))n="The ".concat(e," ").concat(i," ").concat(cy(t,"type"));else{var a=S8(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(cy(t,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);Ot("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ot("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Ot("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ot("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Ot("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ot("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ot("ERR_STREAM_WRITE_AFTER_END","write after end");Ot("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ot("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Ot("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");py.exports.codes=dy});var Wl=k((rD,vy)=>{"use strict";m();var M8=Ui().codes.ERR_INVALID_OPT_VALUE;function A8(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function B8(e,t,r,i){var n=A8(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var a=i?r:"highWaterMark";throw new M8(a,n)}return Math.floor(n)}return e.objectMode?16:16*1024}vy.exports={getHighWaterMark:B8}});var Gl=k((nD,yy)=>{m();yy.exports=R8;function R8(e,t){if(Kl("noDeprecation"))return e;var r=!1;function i(){if(!r){if(Kl("throwDeprecation"))throw new Error(t);Kl("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function Kl(e){try{if(!globalThis.localStorage)return!1}catch{return!1}var t=globalThis.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var Yl=k((oD,xy)=>{"use strict";m();xy.exports=Xe;function by(e){var t=this;this.next=null,this.entry=null,this.finish=function(){tM(t,e)}}var Fn;Xe.WritableState=Ga;var k8={deprecate:Gl()},_y=ul(),Xf=st().Buffer,T8=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function I8(e){return Xf.from(e)}function O8(e){return Xf.isBuffer(e)||e instanceof T8}var $l=Hl(),q8=Wl(),D8=q8.getHighWaterMark,Kr=Ui().codes,N8=Kr.ERR_INVALID_ARG_TYPE,P8=Kr.ERR_METHOD_NOT_IMPLEMENTED,L8=Kr.ERR_MULTIPLE_CALLBACK,C8=Kr.ERR_STREAM_CANNOT_PIPE,U8=Kr.ERR_STREAM_DESTROYED,F8=Kr.ERR_STREAM_NULL_VALUES,j8=Kr.ERR_STREAM_WRITE_AFTER_END,z8=Kr.ERR_UNKNOWN_ENCODING,jn=$l.errorOrDestroy;re()(Xe,_y);function Z8(){}function Ga(e,t,r){Fn=Fn||Fi(),e=e||{},typeof r!="boolean"&&(r=t instanceof Fn),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=D8(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){Y8(t,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new by(this)}Ga.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Ga.prototype,"buffer",{get:k8.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Jf;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Jf=Function.prototype[Symbol.hasInstance],Object.defineProperty(Xe,Symbol.hasInstance,{value:function(t){return Jf.call(this,t)?!0:this!==Xe?!1:t&&t._writableState instanceof Ga}})):Jf=function(t){return t instanceof this};function Xe(e){Fn=Fn||Fi();var t=this instanceof Fn;if(!t&&!Jf.call(Xe,this))return new Xe(e);this._writableState=new Ga(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),_y.call(this)}Xe.prototype.pipe=function(){jn(this,new C8)};function H8(e,t){var r=new j8;jn(e,r),M.default.nextTick(t,r)}function W8(e,t,r,i){var n;return r===null?n=new F8:typeof r!="string"&&!t.objectMode&&(n=new N8("chunk",["string","Buffer"],r)),n?(jn(e,n),M.default.nextTick(i,n),!1):!0}Xe.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&O8(e);return a&&!Xf.isBuffer(e)&&(e=I8(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Z8),i.ending?H8(this,r):(a||W8(this,i,e,r))&&(i.pendingcb++,n=G8(this,i,a,e,t,r)),n};Xe.prototype.cork=function(){this._writableState.corked++};Xe.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&my(this,e))};Xe.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new z8(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Xe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function K8(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Xf.from(t,r)),t}Object.defineProperty(Xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function G8(e,t,r,i,n,a){if(!r){var o=K8(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var y=t.length<t.highWaterMark;if(y||(t.needDrain=!0),t.writing||t.corked){var b=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},b?b.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Vl(e,t,!1,s,i,n,a);return y}function Vl(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new U8("write")):r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function V8(e,t,r,i,n){--t.pendingcb,r?(M.default.nextTick(n,i),M.default.nextTick(Ka,e,t),e._writableState.errorEmitted=!0,jn(e,i)):(n(i),e._writableState.errorEmitted=!0,jn(e,i),Ka(e,t))}function $8(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Y8(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new L8;if($8(r),t)V8(e,r,i,t,n);else{var a=wy(r)||e.destroyed;!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&my(e,r),i?M.default.nextTick(gy,e,r,a,n):gy(e,r,a,n)}}function gy(e,t,r,i){r||J8(e,t),t.pendingcb--,i(),Ka(e,t)}function J8(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function my(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var o=0,s=!0;r;)n[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;n.allBuffers=s,Vl(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new by(t),t.bufferedRequestCount=0}else{for(;r;){var y=r.chunk,b=r.encoding,x=r.callback,B=t.objectMode?1:y.length;if(Vl(e,t,!1,B,y,b,x),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Xe.prototype._write=function(e,t,r){r(new P8("_write()"))};Xe.prototype._writev=null;Xe.prototype.end=function(e,t,r){var i=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||eM(this,i,r),this};Object.defineProperty(Xe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function wy(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function X8(e,t){e._final(function(r){t.pendingcb--,r&&jn(e,r),t.prefinished=!0,e.emit("prefinish"),Ka(e,t)})}function Q8(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,M.default.nextTick(X8,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Ka(e,t){var r=wy(t);if(r&&(Q8(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}function eM(e,t,r){t.ending=!0,Ka(e,t),r&&(t.finished?M.default.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function tM(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(Xe.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Xe.prototype.destroy=$l.destroy;Xe.prototype._undestroy=$l.undestroy;Xe.prototype._destroy=function(e,t){t(e)}});var Fi=k((sD,Sy)=>{"use strict";m();var rM=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Sy.exports=dr;var Ey=Ql(),Xl=Yl();re()(dr,Ey);for(Jl=rM(Xl.prototype),Qf=0;Qf<Jl.length;Qf++)es=Jl[Qf],dr.prototype[es]||(dr.prototype[es]=Xl.prototype[es]);var Jl,es,Qf;function dr(e){if(!(this instanceof dr))return new dr(e);Ey.call(this,e),Xl.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",iM)))}Object.defineProperty(dr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(dr.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(dr.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function iM(){this._writableState.ended||M.default.nextTick(nM,this)}function nM(e){e.end()}Object.defineProperty(dr.prototype,"destroyed",{enumerable:!1,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)}})});var By=k((eh,Ay)=>{m();var ts=st(),Rr=ts.Buffer;function My(e,t){for(var r in e)t[r]=e[r]}Rr.from&&Rr.alloc&&Rr.allocUnsafe&&Rr.allocUnsafeSlow?Ay.exports=ts:(My(ts,eh),eh.Buffer=zn);function zn(e,t,r){return Rr(e,t,r)}My(Rr,zn);zn.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Rr(e,t,r)};zn.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Rr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};zn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Rr(e)};zn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ts.SlowBuffer(e)}});var Zn=k(ky=>{"use strict";m();var rh=By().Buffer,Ry=rh.isEncoding||function(e){switch(e=""+e,e&&e.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 aM(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function oM(e){var t=aM(e);if(typeof t!="string"&&(rh.isEncoding===Ry||!Ry(e)))throw new Error("Unknown encoding: "+e);return t||e}ky.StringDecoder=Va;function Va(e){this.encoding=oM(e);var t;switch(this.encoding){case"utf16le":this.text=cM,this.end=dM,t=4;break;case"utf8":this.fillLast=uM,t=4;break;case"base64":this.text=pM,this.end=vM,t=3;break;default:this.write=yM,this.end=gM;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rh.allocUnsafe(t)}Va.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Va.prototype.end=hM;Va.prototype.text=lM;Va.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function th(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function fM(e,t,r){var i=t.length-1;if(i<r)return 0;var n=th(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=th(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=th(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function sM(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function uM(e){var t=this.lastTotal-this.lastNeed,r=sM(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function lM(e,t){var r=fM(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function hM(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function cM(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function dM(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function pM(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function vM(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function yM(e){return e.toString(this.encoding)}function gM(e){return e&&e.length?this.write(e):""}});var rs=k((dD,Oy)=>{"use strict";m();var Ty=Ui().codes.ERR_STREAM_PREMATURE_CLOSE;function bM(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];e.apply(this,i)}}}function _M(){}function mM(e){return e.setHeader&&typeof e.abort=="function"}function Iy(e,t,r){if(typeof t=="function")return Iy(e,null,t);t||(t={}),r=bM(r||_M);var i=t.readable||t.readable!==!1&&e.readable,n=t.writable||t.writable!==!1&&e.writable,a=function(){e.writable||s()},o=e._writableState&&e._writableState.finished,s=function(){n=!1,o=!0,i||r.call(e)},y=e._readableState&&e._readableState.endEmitted,b=function(){i=!1,y=!0,n||r.call(e)},x=function(O){r.call(e,O)},B=function(){var O;if(i&&!y)return(!e._readableState||!e._readableState.ended)&&(O=new Ty),r.call(e,O);if(n&&!o)return(!e._writableState||!e._writableState.ended)&&(O=new Ty),r.call(e,O)},R=function(){e.req.on("finish",s)};return mM(e)?(e.on("complete",s),e.on("abort",B),e.req?R():e.on("request",R)):n&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",b),e.on("finish",s),t.error!==!1&&e.on("error",x),e.on("close",B),function(){e.removeListener("complete",s),e.removeListener("abort",B),e.removeListener("request",R),e.req&&e.req.removeListener("finish",s),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",s),e.removeListener("end",b),e.removeListener("error",x),e.removeListener("close",B)}}Oy.exports=Iy});var Dy=k((vD,qy)=>{"use strict";m();var is;function Gr(e,t,r){return t=wM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wM(e){var t=xM(e,"string");return typeof t=="symbol"?t:String(t)}function xM(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EM=rs(),Vr=Symbol("lastResolve"),ji=Symbol("lastReject"),$a=Symbol("error"),ns=Symbol("ended"),zi=Symbol("lastPromise"),ih=Symbol("handlePromise"),Zi=Symbol("stream");function $r(e,t){return{value:e,done:t}}function SM(e){var t=e[Vr];if(t!==null){var r=e[Zi].read();r!==null&&(e[zi]=null,e[Vr]=null,e[ji]=null,t($r(r,!1)))}}function MM(e){M.default.nextTick(SM,e)}function AM(e,t){return function(r,i){e.then(function(){if(t[ns]){r($r(void 0,!0));return}t[ih](r,i)},i)}}var BM=Object.getPrototypeOf(function(){}),RM=Object.setPrototypeOf((is={get stream(){return this[Zi]},next:function(){var t=this,r=this[$a];if(r!==null)return Promise.reject(r);if(this[ns])return Promise.resolve($r(void 0,!0));if(this[Zi].destroyed)return new Promise(function(o,s){M.default.nextTick(function(){t[$a]?s(t[$a]):o($r(void 0,!0))})});var i=this[zi],n;if(i)n=new Promise(AM(i,this));else{var a=this[Zi].read();if(a!==null)return Promise.resolve($r(a,!1));n=new Promise(this[ih])}return this[zi]=n,n}},Gr(is,Symbol.asyncIterator,function(){return this}),Gr(is,"return",function(){var t=this;return new Promise(function(r,i){t[Zi].destroy(null,function(n){if(n){i(n);return}r($r(void 0,!0))})})}),is),BM),kM=function(t){var r,i=Object.create(RM,(r={},Gr(r,Zi,{value:t,writable:!0}),Gr(r,Vr,{value:null,writable:!0}),Gr(r,ji,{value:null,writable:!0}),Gr(r,$a,{value:null,writable:!0}),Gr(r,ns,{value:t._readableState.endEmitted,writable:!0}),Gr(r,ih,{value:function(a,o){var s=i[Zi].read();s?(i[zi]=null,i[Vr]=null,i[ji]=null,a($r(s,!1))):(i[Vr]=a,i[ji]=o)},writable:!0}),r));return i[zi]=null,EM(t,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=i[ji];a!==null&&(i[zi]=null,i[Vr]=null,i[ji]=null,a(n)),i[$a]=n;return}var o=i[Vr];o!==null&&(i[zi]=null,i[Vr]=null,i[ji]=null,o($r(void 0,!0))),i[ns]=!0}),t.on("readable",MM.bind(null,i)),i};qy.exports=kM});var Py=k((gD,Ny)=>{m();Ny.exports=function(){throw new Error("Readable.from is not available in the browser")}});var Ql=k((mD,Ky)=>{"use strict";m();Ky.exports=ze;var Hn;ze.ReadableState=Fy;var _D=Tn().EventEmitter,Uy=function(t,r){return t.listeners(r).length},Ja=ul(),as=st().Buffer,TM=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function IM(e){return as.from(e)}function OM(e){return as.isBuffer(e)||e instanceof TM}var nh=Gt(),Le;nh&&nh.debuglog?Le=nh.debuglog("stream"):Le=function(){};var qM=uy(),hh=Hl(),DM=Wl(),NM=DM.getHighWaterMark,os=Ui().codes,PM=os.ERR_INVALID_ARG_TYPE,LM=os.ERR_STREAM_PUSH_AFTER_EOF,CM=os.ERR_METHOD_NOT_IMPLEMENTED,UM=os.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Wn,ah,oh;re()(ze,Ja);var Ya=hh.errorOrDestroy,fh=["error","close","destroy","pause","resume"];function FM(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function Fy(e,t,r){Hn=Hn||Fi(),e=e||{},typeof r!="boolean"&&(r=t instanceof Hn),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=NM(this,e,"readableHighWaterMark",r),this.buffer=new qM,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=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Wn||(Wn=Zn().StringDecoder),this.decoder=new Wn(e.encoding),this.encoding=e.encoding)}function ze(e){if(Hn=Hn||Fi(),!(this instanceof ze))return new ze(e);var t=this instanceof Hn;this._readableState=new Fy(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ja.call(this)}Object.defineProperty(ze.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});ze.prototype.destroy=hh.destroy;ze.prototype._undestroy=hh.undestroy;ze.prototype._destroy=function(e,t){t(e)};ze.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=as.from(e,t),t=""),i=!0),jy(this,e,t,!1,i)};ze.prototype.unshift=function(e){return jy(this,e,null,!0,!1)};function jy(e,t,r,i,n){Le("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,ZM(e,a);else{var o;if(n||(o=jM(a,t)),o)Ya(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==as.prototype&&(t=IM(t)),i)a.endEmitted?Ya(e,new UM):sh(e,a,t,!0);else if(a.ended)Ya(e,new LM);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?sh(e,a,t,!1):lh(e,a)):sh(e,a,t,!1)}else i||(a.reading=!1,lh(e,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function sh(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&fs(e)),lh(e,t)}function jM(e,t){var r;return!OM(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new PM("chunk",["string","Buffer","Uint8Array"],t)),r}ze.prototype.isPaused=function(){return this._readableState.flowing===!1};ze.prototype.setEncoding=function(e){Wn||(Wn=Zn().StringDecoder);var t=new Wn(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var Ly=1073741824;function zM(e){return e>=Ly?e=Ly:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Cy(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=zM(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}ze.prototype.read=function(e){Le("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return Le("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?uh(this):fs(this),null;if(e=Cy(e,t),e===0&&t.ended)return t.length===0&&uh(this),null;var i=t.needReadable;Le("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,Le("length less than watermark",i)),t.ended||t.reading?(i=!1,Le("reading or ended",i)):i&&(Le("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Cy(r,t)));var n;return e>0?n=Hy(e,t):n=null,n===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&uh(this)),n!==null&&this.emit("data",n),n};function ZM(e,t){if(Le("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?fs(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,zy(e)))}}function fs(e){var t=e._readableState;Le("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(Le("emitReadable",t.flowing),t.emittedReadable=!0,M.default.nextTick(zy,e))}function zy(e){var t=e._readableState;Le("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ch(e)}function lh(e,t){t.readingMore||(t.readingMore=!0,M.default.nextTick(HM,e,t))}function HM(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(Le("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}ze.prototype._read=function(e){Ya(this,new CM("_read()"))};ze.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,Le("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==M.default.stdout&&e!==M.default.stderr,a=n?s:D;i.endEmitted?M.default.nextTick(a):r.once("end",a),e.on("unpipe",o);function o(U,N){Le("onunpipe"),U===r&&N&&N.hasUnpiped===!1&&(N.hasUnpiped=!0,x())}function s(){Le("onend"),e.end()}var y=WM(r);e.on("drain",y);var b=!1;function x(){Le("cleanup"),e.removeListener("close",T),e.removeListener("finish",O),e.removeListener("drain",y),e.removeListener("error",R),e.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",D),r.removeListener("data",B),b=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&y()}r.on("data",B);function B(U){Le("ondata");var N=e.write(U);Le("dest.write",N),N===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&Wy(i.pipes,e)!==-1)&&!b&&(Le("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function R(U){Le("onerror",U),D(),e.removeListener("error",R),Uy(e,"error")===0&&Ya(e,U)}FM(e,"error",R);function T(){e.removeListener("finish",O),D()}e.once("close",T);function O(){Le("onfinish"),e.removeListener("close",T),D()}e.once("finish",O);function D(){Le("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(Le("pipe resume"),r.resume()),e};function WM(e){return function(){var r=e._readableState;Le("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Uy(e,"data")&&(r.flowing=!0,ch(e))}}ze.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Wy(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};ze.prototype.on=function(e,t){var r=Ja.prototype.on.call(this,e,t),i=this._readableState;return e==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,Le("on readable",i.length,i.reading),i.length?fs(this):i.reading||M.default.nextTick(KM,this)),r};ze.prototype.addListener=ze.prototype.on;ze.prototype.removeListener=function(e,t){var r=Ja.prototype.removeListener.call(this,e,t);return e==="readable"&&M.default.nextTick(Zy,this),r};ze.prototype.removeAllListeners=function(e){var t=Ja.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&M.default.nextTick(Zy,this),t};function Zy(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function KM(e){Le("readable nexttick read 0"),e.read(0)}ze.prototype.resume=function(){var e=this._readableState;return e.flowing||(Le("resume"),e.flowing=!e.readableListening,GM(this,e)),e.paused=!1,this};function GM(e,t){t.resumeScheduled||(t.resumeScheduled=!0,M.default.nextTick(VM,e,t))}function VM(e,t){Le("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ch(e),t.flowing&&!t.reading&&e.read(0)}ze.prototype.pause=function(){return Le("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Le("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ch(e){var t=e._readableState;for(Le("flow",t.flowing);t.flowing&&e.read()!==null;);}ze.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(Le("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Le("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(s){return function(){return e[s].apply(e,arguments)}})(n));for(var a=0;a<fh.length;a++)e.on(fh[a],this.emit.bind(this,fh[a]));return this._read=function(o){Le("wrapped _read",o),i&&(i=!1,e.resume())},this};typeof Symbol=="function"&&(ze.prototype[Symbol.asyncIterator]=function(){return ah===void 0&&(ah=Dy()),ah(this)});Object.defineProperty(ze.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(ze.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(ze.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});ze._fromList=Hy;Object.defineProperty(ze.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Hy(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function uh(e){var t=e._readableState;Le("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,M.default.nextTick($M,t,e))}function $M(e,t){if(Le("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(ze.from=function(e,t){return oh===void 0&&(oh=Py()),oh(ze,e,t)});function Wy(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var dh=k((xD,Vy)=>{"use strict";m();Vy.exports=kr;var ss=Ui().codes,YM=ss.ERR_METHOD_NOT_IMPLEMENTED,JM=ss.ERR_MULTIPLE_CALLBACK,XM=ss.ERR_TRANSFORM_ALREADY_TRANSFORMING,QM=ss.ERR_TRANSFORM_WITH_LENGTH_0,us=Fi();re()(kr,us);function e4(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new JM);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function kr(e){if(!(this instanceof kr))return new kr(e);us.call(this,e),this._transformState={afterTransform:e4.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",t4)}function t4(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){Gy(e,t,r)}):Gy(this,null,null)}kr.prototype.push=function(e,t){return this._transformState.needTransform=!1,us.prototype.push.call(this,e,t)};kr.prototype._transform=function(e,t,r){r(new YM("_transform()"))};kr.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};kr.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};kr.prototype._destroy=function(e,t){us.prototype._destroy.call(this,e,function(r){t(r)})};function Gy(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new QM;if(e._transformState.transforming)throw new XM;return e.push(null)}});var Jy=k((SD,Yy)=>{"use strict";m();Yy.exports=Xa;var $y=dh();re()(Xa,$y);function Xa(e){if(!(this instanceof Xa))return new Xa(e);$y.call(this,e)}Xa.prototype._transform=function(e,t,r){r(null,e)}});var r1=k((AD,t1)=>{"use strict";m();var ph;function r4(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var e1=Ui().codes,i4=e1.ERR_MISSING_ARGS,n4=e1.ERR_STREAM_DESTROYED;function Xy(e){if(e)throw e}function a4(e){return e.setHeader&&typeof e.abort=="function"}function o4(e,t,r,i){i=r4(i);var n=!1;e.on("close",function(){n=!0}),ph===void 0&&(ph=rs()),ph(e,{readable:t,writable:r},function(o){if(o)return i(o);n=!0,i()});var a=!1;return function(o){if(!n&&!a){if(a=!0,a4(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(o||new n4("pipe"))}}}function Qy(e){e()}function f4(e,t){return e.pipe(t)}function s4(e){return!e.length||typeof e[e.length-1]!="function"?Xy:e.pop()}function u4(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=s4(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new i4("streams");var n,a=t.map(function(o,s){var y=s<t.length-1,b=s>0;return o4(o,y,b,function(x){n||(n=x),x&&a.forEach(Qy),!y&&(a.forEach(Qy),i(n))})});return t.reduce(f4)}t1.exports=u4});var ls=k((RD,i1)=>{m();i1.exports=qt;var vh=Tn().EventEmitter,l4=re();l4(qt,vh);qt.Readable=Ql();qt.Writable=Yl();qt.Duplex=Fi();qt.Transform=dh();qt.PassThrough=Jy();qt.finished=rs();qt.pipeline=r1();qt.Stream=qt;function qt(){vh.call(this)}qt.prototype.pipe=function(e,t){var r=this;function i(x){e.writable&&e.write(x)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}e.on("drain",n),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function y(x){if(b(),vh.listenerCount(this,"error")===0)throw x}r.on("error",y),e.on("error",y);function b(){r.removeListener("data",i),e.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",y),e.removeListener("error",y),r.removeListener("end",b),r.removeListener("close",b),e.removeListener("close",b)}return r.on("end",b),r.on("close",b),e.on("close",b),e.emit("pipe",r),e}});var o1=k((TD,a1)=>{"use strict";m();var pr=Ne().Buffer,n1=ls().Transform,h4=re();function Yr(e){n1.call(this),this._block=pr.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}h4(Yr,n1);Yr.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(n){i=n}r(i)};Yr.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};var c4=typeof Uint8Array<"u",d4=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(pr.prototype instanceof Uint8Array||pr.TYPED_ARRAY_SUPPORT);function p4(e,t){if(e instanceof pr)return e;if(typeof e=="string")return pr.from(e,t);if(d4&&ArrayBuffer.isView(e)){if(e.byteLength===0)return pr.alloc(0);var r=pr.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(c4&&e instanceof Uint8Array||pr.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return pr.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}Yr.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");e=p4(e,t);for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)r[n++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var a=0,o=e.length*8;o>0;++a)this._length[a]+=o,o=this._length[a]/4294967296|0,o>0&&(this._length[a]-=4294967296*o);return this};Yr.prototype._update=function(){throw new Error("_update is not implemented")};Yr.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t};Yr.prototype._digest=function(){throw new Error("_digest is not implemented")};a1.exports=Yr});var ds=k((OD,s1)=>{"use strict";m();var v4=re(),f1=o1(),y4=Ne().Buffer,g4=new Array(16);function hs(){f1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}v4(hs,f1);hs.prototype._update=function(){for(var e=g4,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var r=this._a,i=this._b,n=this._c,a=this._d;r=ct(r,i,n,a,e[0],3614090360,7),a=ct(a,r,i,n,e[1],3905402710,12),n=ct(n,a,r,i,e[2],606105819,17),i=ct(i,n,a,r,e[3],3250441966,22),r=ct(r,i,n,a,e[4],4118548399,7),a=ct(a,r,i,n,e[5],1200080426,12),n=ct(n,a,r,i,e[6],2821735955,17),i=ct(i,n,a,r,e[7],4249261313,22),r=ct(r,i,n,a,e[8],1770035416,7),a=ct(a,r,i,n,e[9],2336552879,12),n=ct(n,a,r,i,e[10],4294925233,17),i=ct(i,n,a,r,e[11],2304563134,22),r=ct(r,i,n,a,e[12],1804603682,7),a=ct(a,r,i,n,e[13],4254626195,12),n=ct(n,a,r,i,e[14],2792965006,17),i=ct(i,n,a,r,e[15],1236535329,22),r=dt(r,i,n,a,e[1],4129170786,5),a=dt(a,r,i,n,e[6],3225465664,9),n=dt(n,a,r,i,e[11],643717713,14),i=dt(i,n,a,r,e[0],3921069994,20),r=dt(r,i,n,a,e[5],3593408605,5),a=dt(a,r,i,n,e[10],38016083,9),n=dt(n,a,r,i,e[15],3634488961,14),i=dt(i,n,a,r,e[4],3889429448,20),r=dt(r,i,n,a,e[9],568446438,5),a=dt(a,r,i,n,e[14],3275163606,9),n=dt(n,a,r,i,e[3],4107603335,14),i=dt(i,n,a,r,e[8],1163531501,20),r=dt(r,i,n,a,e[13],2850285829,5),a=dt(a,r,i,n,e[2],4243563512,9),n=dt(n,a,r,i,e[7],1735328473,14),i=dt(i,n,a,r,e[12],2368359562,20),r=pt(r,i,n,a,e[5],4294588738,4),a=pt(a,r,i,n,e[8],2272392833,11),n=pt(n,a,r,i,e[11],1839030562,16),i=pt(i,n,a,r,e[14],4259657740,23),r=pt(r,i,n,a,e[1],2763975236,4),a=pt(a,r,i,n,e[4],1272893353,11),n=pt(n,a,r,i,e[7],4139469664,16),i=pt(i,n,a,r,e[10],3200236656,23),r=pt(r,i,n,a,e[13],681279174,4),a=pt(a,r,i,n,e[0],3936430074,11),n=pt(n,a,r,i,e[3],3572445317,16),i=pt(i,n,a,r,e[6],76029189,23),r=pt(r,i,n,a,e[9],3654602809,4),a=pt(a,r,i,n,e[12],3873151461,11),n=pt(n,a,r,i,e[15],530742520,16),i=pt(i,n,a,r,e[2],3299628645,23),r=vt(r,i,n,a,e[0],4096336452,6),a=vt(a,r,i,n,e[7],1126891415,10),n=vt(n,a,r,i,e[14],2878612391,15),i=vt(i,n,a,r,e[5],4237533241,21),r=vt(r,i,n,a,e[12],1700485571,6),a=vt(a,r,i,n,e[3],2399980690,10),n=vt(n,a,r,i,e[10],4293915773,15),i=vt(i,n,a,r,e[1],2240044497,21),r=vt(r,i,n,a,e[8],1873313359,6),a=vt(a,r,i,n,e[15],4264355552,10),n=vt(n,a,r,i,e[6],2734768916,15),i=vt(i,n,a,r,e[13],1309151649,21),r=vt(r,i,n,a,e[4],4149444226,6),a=vt(a,r,i,n,e[11],3174756917,10),n=vt(n,a,r,i,e[2],718787259,15),i=vt(i,n,a,r,e[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+a|0};hs.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 e=y4.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};function cs(e,t){return e<<t|e>>>32-t}function ct(e,t,r,i,n,a,o){return cs(e+(t&r|~t&i)+n+a|0,o)+t|0}function dt(e,t,r,i,n,a,o){return cs(e+(t&i|r&~i)+n+a|0,o)+t|0}function pt(e,t,r,i,n,a,o){return cs(e+(t^r^i)+n+a|0,o)+t|0}function vt(e,t,r,i,n,a,o){return cs(e+(r^(t|~i))+n+a|0,o)+t|0}s1.exports=hs});var l1=k((DD,u1)=>{m();var b4={}.toString;u1.exports=Array.isArray||function(e){return b4.call(e)=="[object Array]"}});var c1=k((PD,h1)=>{"use strict";m();var _4=Di(),m4=Hr(),w4=m4("TypedArray.prototype.buffer",!0),x4=Dl();h1.exports=w4||function(t){if(!x4(t))throw new _4("Not a Typed Array");return t.buffer}});var Qa=k((CD,p1)=>{"use strict";m();var Vt=Ne().Buffer,E4=l1(),S4=c1(),M4=ArrayBuffer.isView||function(t){try{return S4(t),!0}catch{return!1}},A4=typeof Uint8Array<"u",d1=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",B4=d1&&(Vt.prototype instanceof Uint8Array||Vt.TYPED_ARRAY_SUPPORT);p1.exports=function(t,r){if(Vt.isBuffer(t))return t.constructor&&!("isBuffer"in t)?Vt.from(t):t;if(typeof t=="string")return Vt.from(t,r);if(d1&&M4(t)){if(t.byteLength===0)return Vt.alloc(0);if(B4){var i=Vt.from(t.buffer,t.byteOffset,t.byteLength);if(i.byteLength===t.byteLength)return i}var n=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),a=Vt.from(n);if(a.length===t.byteLength)return a}if(A4&&t instanceof Uint8Array)return Vt.from(t);var o=E4(t);if(o)for(var s=0;s<t.length;s+=1){var y=t[s];if(typeof y!="number"||y<0||y>255||~~y!==y)throw new RangeError("Array items must be numbers in the range 0-255.")}if(o||Vt.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return Vt.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var b1=k((FD,g1)=>{"use strict";m();var R4=Ne().Buffer,k4=Qa(),y1=typeof Uint8Array<"u",T4=y1&&typeof ArrayBuffer<"u",v1=T4&&ArrayBuffer.isView;g1.exports=function(e,t){if(typeof e=="string"||R4.isBuffer(e)||y1&&e instanceof Uint8Array||v1&&v1(e))return k4(e,t);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var eo=k((zD,yh)=>{"use strict";m();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?yh.exports={nextTick:I4}:yh.exports=M.default;function I4(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,a,o;switch(n){case 0:case 1:return M.default.nextTick(e);case 2:return M.default.nextTick(function(){e.call(null,t)});case 3:return M.default.nextTick(function(){e.call(null,t,r)});case 4:return M.default.nextTick(function(){e.call(null,t,r,i)});default:for(a=new Array(n-1),o=0;o<a.length;)a[o++]=arguments[o];return M.default.nextTick(function(){e.apply(null,a)})}}});var m1=k((HD,_1)=>{m();var O4={}.toString;_1.exports=Array.isArray||function(e){return O4.call(e)=="[object Array]"}});var gh=k((KD,w1)=>{m();w1.exports=Tn().EventEmitter});var vs=k((bh,E1)=>{m();var ps=st(),Tr=ps.Buffer;function x1(e,t){for(var r in e)t[r]=e[r]}Tr.from&&Tr.alloc&&Tr.allocUnsafe&&Tr.allocUnsafeSlow?E1.exports=ps:(x1(ps,bh),bh.Buffer=Kn);function Kn(e,t,r){return Tr(e,t,r)}x1(Tr,Kn);Kn.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Tr(e,t,r)};Kn.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Tr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Kn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Tr(e)};Kn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ps.SlowBuffer(e)}});var Gn=k(yt=>{m();function q4(e){return Array.isArray?Array.isArray(e):ys(e)==="[object Array]"}yt.isArray=q4;function D4(e){return typeof e=="boolean"}yt.isBoolean=D4;function N4(e){return e===null}yt.isNull=N4;function P4(e){return e==null}yt.isNullOrUndefined=P4;function L4(e){return typeof e=="number"}yt.isNumber=L4;function C4(e){return typeof e=="string"}yt.isString=C4;function U4(e){return typeof e=="symbol"}yt.isSymbol=U4;function F4(e){return e===void 0}yt.isUndefined=F4;function j4(e){return ys(e)==="[object RegExp]"}yt.isRegExp=j4;function z4(e){return typeof e=="object"&&e!==null}yt.isObject=z4;function Z4(e){return ys(e)==="[object Date]"}yt.isDate=Z4;function H4(e){return ys(e)==="[object Error]"||e instanceof Error}yt.isError=H4;function W4(e){return typeof e=="function"}yt.isFunction=W4;function K4(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}yt.isPrimitive=K4;yt.isBuffer=st().Buffer.isBuffer;function ys(e){return Object.prototype.toString.call(e)}});var M1=k((JD,_h)=>{"use strict";m();function G4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var S1=vs().Buffer,to=Gt();function V4(e,t,r){e.copy(t,r)}_h.exports=(function(){function e(){G4(this,e),this.head=null,this.tail=null,this.length=0}return e.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},e.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},e.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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.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},e.prototype.concat=function(r){if(this.length===0)return S1.alloc(0);for(var i=S1.allocUnsafe(r>>>0),n=this.head,a=0;n;)V4(n.data,i,a),a+=n.data.length,n=n.next;return i},e})();to&&to.inspect&&to.inspect.custom&&(_h.exports.prototype[to.inspect.custom]=function(){var e=to.inspect({length:this.length});return this.constructor.name+" "+e})});var mh=k((QD,A1)=>{"use strict";m();var gs=eo();function $4(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,gs.nextTick(bs,this,e)):gs.nextTick(bs,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,gs.nextTick(bs,r,a)):gs.nextTick(bs,r,a):t&&t(a)}),this)}function Y4(){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 bs(e,t){e.emit("error",t)}A1.exports={destroy:$4,undestroy:Y4}});var xh=k((tN,D1)=>{"use strict";m();var Hi=eo();D1.exports=tt;function R1(e){var t=this;this.next=null,this.entry=null,this.finish=function(){pA(t,e)}}var J4=!M.default.browser&&["v0.10","v0.9."].indexOf(M.default.version.slice(0,5))>-1?setImmediate:Hi.nextTick,Vn;tt.WritableState=io;var k1=Object.create(Gn());k1.inherits=re();var X4={deprecate:Gl()},T1=gh(),ms=vs().Buffer,Q4=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function eA(e){return ms.from(e)}function tA(e){return ms.isBuffer(e)||e instanceof Q4}var I1=mh();k1.inherits(tt,T1);function rA(){}function io(e,t){Vn=Vn||Wi(),e=e||{};var r=t instanceof Vn;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,n=e.writableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,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 o=e.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(s){uA(t,s)},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 R1(this)}io.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(io.prototype,"buffer",{get:X4.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var _s;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(_s=Function.prototype[Symbol.hasInstance],Object.defineProperty(tt,Symbol.hasInstance,{value:function(e){return _s.call(this,e)?!0:this!==tt?!1:e&&e._writableState instanceof io}})):_s=function(e){return e instanceof this};function tt(e){if(Vn=Vn||Wi(),!_s.call(tt,this)&&!(this instanceof Vn))return new tt(e);this._writableState=new io(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),T1.call(this)}tt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function iA(e,t){var r=new Error("write after end");e.emit("error",r),Hi.nextTick(t,r)}function nA(e,t,r,i){var n=!0,a=!1;return r===null?a=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),Hi.nextTick(i,a),n=!1),n}tt.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&tA(e);return a&&!ms.isBuffer(e)&&(e=eA(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=rA),i.ended?iA(this,r):(a||nA(this,i,e,r))&&(i.pendingcb++,n=oA(this,i,a,e,t,r)),n};tt.prototype.cork=function(){var e=this._writableState;e.corked++};tt.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&O1(this,e))};tt.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function aA(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=ms.from(t,r)),t}Object.defineProperty(tt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function oA(e,t,r,i,n,a){if(!r){var o=aA(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var y=t.length<t.highWaterMark;if(y||(t.needDrain=!0),t.writing||t.corked){var b=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},b?b.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else wh(e,t,!1,s,i,n,a);return y}function wh(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function fA(e,t,r,i,n){--t.pendingcb,r?(Hi.nextTick(n,i),Hi.nextTick(ro,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),ro(e,t))}function sA(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function uA(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(sA(r),t)fA(e,r,i,t,n);else{var a=q1(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&O1(e,r),i?J4(B1,e,r,a,n):B1(e,r,a,n)}}function B1(e,t,r,i){r||lA(e,t),t.pendingcb--,i(),ro(e,t)}function lA(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function O1(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var o=0,s=!0;r;)n[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;n.allBuffers=s,wh(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new R1(t),t.bufferedRequestCount=0}else{for(;r;){var y=r.chunk,b=r.encoding,x=r.callback,B=t.objectMode?1:y.length;if(wh(e,t,!1,B,y,b,x),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}tt.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};tt.prototype._writev=null;tt.prototype.end=function(e,t,r){var i=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||dA(this,i,r)};function q1(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function hA(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),ro(e,t)})}function cA(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Hi.nextTick(hA,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function ro(e,t){var r=q1(t);return r&&(cA(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function dA(e,t,r){t.ending=!0,ro(e,t),r&&(t.finished?Hi.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function pA(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(tt.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});tt.prototype.destroy=I1.destroy;tt.prototype._undestroy=I1.undestroy;tt.prototype._destroy=function(e,t){this.end(),t(e)}});var Wi=k((iN,C1)=>{"use strict";m();var N1=eo(),vA=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};C1.exports=Ir;var P1=Object.create(Gn());P1.inherits=re();var L1=Mh(),Sh=xh();P1.inherits(Ir,L1);for(Eh=vA(Sh.prototype),ws=0;ws<Eh.length;ws++)xs=Eh[ws],Ir.prototype[xs]||(Ir.prototype[xs]=Sh.prototype[xs]);var Eh,xs,ws;function Ir(e){if(!(this instanceof Ir))return new Ir(e);L1.call(this,e),Sh.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",yA)}Object.defineProperty(Ir.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function yA(){this.allowHalfOpen||this._writableState.ended||N1.nextTick(gA,this)}function gA(e){e.end()}Object.defineProperty(Ir.prototype,"destroyed",{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)}});Ir.prototype._destroy=function(e,t){this.push(null),this.end(),N1.nextTick(t,e)}});var Mh=k((oN,Y1)=>{"use strict";m();var Yn=eo();Y1.exports=Ve;var bA=m1(),no;Ve.ReadableState=W1;var aN=Tn().EventEmitter,z1=function(e,t){return e.listeners(t).length},Th=gh(),ao=vs().Buffer,_A=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function mA(e){return ao.from(e)}function wA(e){return ao.isBuffer(e)||e instanceof _A}var Z1=Object.create(Gn());Z1.inherits=re();var Ah=Gt(),He=void 0;Ah&&Ah.debuglog?He=Ah.debuglog("stream"):He=function(){};var xA=M1(),H1=mh(),$n;Z1.inherits(Ve,Th);var Bh=["error","close","destroy","pause","resume"];function EA(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):bA(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function W1(e,t){no=no||Wi(),e=e||{};var r=t instanceof no;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,n=e.readableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new xA,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=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&($n||($n=Zn().StringDecoder),this.decoder=new $n(e.encoding),this.encoding=e.encoding)}function Ve(e){if(no=no||Wi(),!(this instanceof Ve))return new Ve(e);this._readableState=new W1(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Th.call(this)}Object.defineProperty(Ve.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Ve.prototype.destroy=H1.destroy;Ve.prototype._undestroy=H1.undestroy;Ve.prototype._destroy=function(e,t){this.push(null),t(e)};Ve.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=ao.from(e,t),t=""),i=!0),K1(this,e,t,!1,i)};Ve.prototype.unshift=function(e){return K1(this,e,null,!0,!1)};function K1(e,t,r,i,n){var a=e._readableState;if(t===null)a.reading=!1,BA(e,a);else{var o;n||(o=SA(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==ao.prototype&&(t=mA(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Rh(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?Rh(e,a,t,!1):G1(e,a)):Rh(e,a,t,!1))):i||(a.reading=!1)}return MA(a)}function Rh(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Es(e)),G1(e,t)}function SA(e,t){var r;return!wA(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function MA(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Ve.prototype.isPaused=function(){return this._readableState.flowing===!1};Ve.prototype.setEncoding=function(e){return $n||($n=Zn().StringDecoder),this._readableState.decoder=new $n(e),this._readableState.encoding=e,this};var U1=8388608;function AA(e){return e>=U1?e=U1:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function F1(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=AA(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Ve.prototype.read=function(e){He("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return He("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?kh(this):Es(this),null;if(e=F1(e,t),e===0&&t.ended)return t.length===0&&kh(this),null;var i=t.needReadable;He("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,He("length less than watermark",i)),t.ended||t.reading?(i=!1,He("reading or ended",i)):i&&(He("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=F1(r,t)));var n;return e>0?n=V1(e,t):n=null,n===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&kh(this)),n!==null&&this.emit("data",n),n};function BA(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,Es(e)}}function Es(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(He("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Yn.nextTick(j1,e):j1(e))}function j1(e){He("emit readable"),e.emit("readable"),Ih(e)}function G1(e,t){t.readingMore||(t.readingMore=!0,Yn.nextTick(RA,e,t))}function RA(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(He("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}Ve.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Ve.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,He("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==M.default.stdout&&e!==M.default.stderr,a=n?s:U;i.endEmitted?Yn.nextTick(a):r.once("end",a),e.on("unpipe",o);function o(N,j){He("onunpipe"),N===r&&j&&j.hasUnpiped===!1&&(j.hasUnpiped=!0,x())}function s(){He("onend"),e.end()}var y=kA(r);e.on("drain",y);var b=!1;function x(){He("cleanup"),e.removeListener("close",O),e.removeListener("finish",D),e.removeListener("drain",y),e.removeListener("error",T),e.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",U),r.removeListener("data",R),b=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&y()}var B=!1;r.on("data",R);function R(N){He("ondata"),B=!1;var j=e.write(N);j===!1&&!B&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&$1(i.pipes,e)!==-1)&&!b&&(He("false write response, pause",i.awaitDrain),i.awaitDrain++,B=!0),r.pause())}function T(N){He("onerror",N),U(),e.removeListener("error",T),z1(e,"error")===0&&e.emit("error",N)}EA(e,"error",T);function O(){e.removeListener("finish",D),U()}e.once("close",O);function D(){He("onfinish"),e.removeListener("close",O),U()}e.once("finish",D);function U(){He("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(He("pipe resume"),r.resume()),e};function kA(e){return function(){var t=e._readableState;He("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&z1(e,"data")&&(t.flowing=!0,Ih(e))}}Ve.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=$1(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};Ve.prototype.on=function(e,t){var r=Th.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&Es(this):Yn.nextTick(TA,this))}return r};Ve.prototype.addListener=Ve.prototype.on;function TA(e){He("readable nexttick read 0"),e.read(0)}Ve.prototype.resume=function(){var e=this._readableState;return e.flowing||(He("resume"),e.flowing=!0,IA(this,e)),this};function IA(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Yn.nextTick(OA,e,t))}function OA(e,t){t.reading||(He("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Ih(e),t.flowing&&!t.reading&&e.read(0)}Ve.prototype.pause=function(){return He("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(He("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ih(e){var t=e._readableState;for(He("flow",t.flowing);t.flowing&&e.read()!==null;);}Ve.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(He("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(He("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(o){return function(){return e[o].apply(e,arguments)}})(n));for(var a=0;a<Bh.length;a++)e.on(Bh[a],this.emit.bind(this,Bh[a]));return this._read=function(o){He("wrapped _read",o),i&&(i=!1,e.resume())},this};Object.defineProperty(Ve.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Ve._fromList=V1;function V1(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=qA(e,t.buffer,t.decoder),r}function qA(e,t,r){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?i=t.shift():i=r?DA(e,t):NA(e,t),i}function DA(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),e-=o,e===0){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}function NA(e,t){var r=ao.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var a=i.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),e-=o,e===0){o===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(o));break}++n}return t.length-=n,r}function kh(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Yn.nextTick(PA,t,e))}function PA(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function $1(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var Oh=k((sN,Q1)=>{"use strict";m();Q1.exports=Or;var Ss=Wi(),X1=Object.create(Gn());X1.inherits=re();X1.inherits(Or,Ss);function LA(e,t){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,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Or(e){if(!(this instanceof Or))return new Or(e);Ss.call(this,e),this._transformState={afterTransform:LA.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",CA)}function CA(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){J1(e,t,r)}):J1(this,null,null)}Or.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ss.prototype.push.call(this,e,t)};Or.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Or.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Or.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Or.prototype._destroy=function(e,t){var r=this;Ss.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function J1(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var ig=k((lN,rg)=>{"use strict";m();rg.exports=oo;var eg=Oh(),tg=Object.create(Gn());tg.inherits=re();tg.inherits(oo,eg);function oo(e){if(!(this instanceof oo))return new oo(e);eg.call(this,e)}oo.prototype._transform=function(e,t,r){r(null,e)}});var ag=k((vr,ng)=>{m();vr=ng.exports=Mh();vr.Stream=vr;vr.Readable=vr;vr.Writable=xh();vr.Duplex=Wi();vr.Transform=Oh();vr.PassThrough=ig()});var sg=k((dN,fg)=>{"use strict";m();var UA=Ne().Buffer,FA=b1(),og=ag().Transform,jA=re();function Jr(e){og.call(this),this._block=UA.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}jA(Jr,og);Jr.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(n){i=n}r(i)};Jr.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};Jr.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");for(var r=FA(e,t),i=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)i[a]=r[n],a+=1,n+=1;this._update(),this._blockOffset=0}for(;n<r.length;)i[this._blockOffset]=r[n],this._blockOffset+=1,n+=1;for(var o=0,s=r.length*8;s>0;++o)this._length[o]+=s,s=this._length[o]/4294967296|0,s>0&&(this._length[o]-=4294967296*s);return this};Jr.prototype._update=function(){throw new Error("_update is not implemented")};Jr.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t};Jr.prototype._digest=function(){throw new Error("_digest is not implemented")};fg.exports=Jr});var As=k((vN,vg)=>{"use strict";m();var qh=st().Buffer,zA=re(),pg=sg(),ZA=new Array(16),fo=[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],so=[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],uo=[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],lo=[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],ho=[0,1518500249,1859775393,2400959708,2840853838],co=[1352829926,1548603684,1836072691,2053994217,0];function Ki(e,t){return e<<t|e>>>32-t}function ug(e,t,r,i,n,a,o,s){return Ki(e+(t^r^i)+a+o|0,s)+n|0}function lg(e,t,r,i,n,a,o,s){return Ki(e+(t&r|~t&i)+a+o|0,s)+n|0}function hg(e,t,r,i,n,a,o,s){return Ki(e+((t|~r)^i)+a+o|0,s)+n|0}function cg(e,t,r,i,n,a,o,s){return Ki(e+(t&i|r&~i)+a+o|0,s)+n|0}function dg(e,t,r,i,n,a,o,s){return Ki(e+(t^(r|~i))+a+o|0,s)+n|0}function Ms(){pg.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}zA(Ms,pg);Ms.prototype._update=function(){for(var e=ZA,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);for(var r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=this._a|0,y=this._b|0,b=this._c|0,x=this._d|0,B=this._e|0,R=0;R<80;R+=1){var T,O;R<16?(T=ug(r,i,n,a,o,e[fo[R]],ho[0],uo[R]),O=dg(s,y,b,x,B,e[so[R]],co[0],lo[R])):R<32?(T=lg(r,i,n,a,o,e[fo[R]],ho[1],uo[R]),O=cg(s,y,b,x,B,e[so[R]],co[1],lo[R])):R<48?(T=hg(r,i,n,a,o,e[fo[R]],ho[2],uo[R]),O=hg(s,y,b,x,B,e[so[R]],co[2],lo[R])):R<64?(T=cg(r,i,n,a,o,e[fo[R]],ho[3],uo[R]),O=lg(s,y,b,x,B,e[so[R]],co[3],lo[R])):(T=dg(r,i,n,a,o,e[fo[R]],ho[4],uo[R]),O=ug(s,y,b,x,B,e[so[R]],co[4],lo[R])),r=o,o=a,a=Ki(n,10),n=i,i=T,s=B,B=x,x=Ki(b,10),b=y,y=O}var D=this._b+n+x|0;this._b=this._c+a+B|0,this._c=this._d+o+s|0,this._d=this._e+r+y|0,this._e=this._a+i+b|0,this._a=D};Ms.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 e=qh.alloc?qh.alloc(20):new qh(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};vg.exports=Ms});var Gi=k((gN,yg)=>{"use strict";m();var HA=Ne().Buffer,WA=Qa();function Bs(e,t){this._block=HA.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Bs.prototype.update=function(e,t){e=WA(e,t||"utf8");for(var r=this._block,i=this._blockSize,n=e.length,a=this._len,o=0;o<n;){for(var s=a%i,y=Math.min(n-o,i-s),b=0;b<y;b++)r[s+b]=e[o+b];a+=y,o+=y,a%i===0&&this._update(r)}return this._len+=n,this};Bs.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=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 a=this._hash();return e?a.toString(e):a};Bs.prototype._update=function(){throw new Error("_update must be implemented by subclass")};yg.exports=Bs});var _g=k((_N,bg)=>{"use strict";m();var KA=re(),gg=Gi(),GA=Ne().Buffer,VA=[1518500249,1859775393,-1894007588,-899497514],$A=new Array(80);function po(){this.init(),this._w=$A,gg.call(this,64,56)}KA(po,gg);po.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function YA(e){return e<<5|e>>>27}function JA(e){return e<<30|e>>>2}function XA(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}po.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=0;s<16;++s)t[s]=e.readInt32BE(s*4);for(;s<80;++s)t[s]=t[s-3]^t[s-8]^t[s-14]^t[s-16];for(var y=0;y<80;++y){var b=~~(y/20),x=YA(r)+XA(b,i,n,a)+o+t[y]+VA[b]|0;o=a,a=n,n=JA(i),i=r,r=x}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0};po.prototype._hash=function(){var e=GA.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};bg.exports=po});var xg=k((wN,wg)=>{"use strict";m();var QA=re(),mg=Gi(),e5=Ne().Buffer,t5=[1518500249,1859775393,-1894007588,-899497514],r5=new Array(80);function vo(){this.init(),this._w=r5,mg.call(this,64,56)}QA(vo,mg);vo.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function i5(e){return e<<1|e>>>31}function n5(e){return e<<5|e>>>27}function a5(e){return e<<30|e>>>2}function o5(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}vo.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=0;s<16;++s)t[s]=e.readInt32BE(s*4);for(;s<80;++s)t[s]=i5(t[s-3]^t[s-8]^t[s-14]^t[s-16]);for(var y=0;y<80;++y){var b=~~(y/20),x=n5(r)+o5(b,i,n,a)+o+t[y]+t5[b]|0;o=a,a=n,n=a5(i),i=r,r=x}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0};vo.prototype._hash=function(){var e=e5.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};wg.exports=vo});var Dh=k((EN,Sg)=>{"use strict";m();var f5=re(),Eg=Gi(),s5=Ne().Buffer,u5=[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],l5=new Array(64);function yo(){this.init(),this._w=l5,Eg.call(this,64,56)}f5(yo,Eg);yo.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 h5(e,t,r){return r^e&(t^r)}function c5(e,t,r){return e&t|r&(e|t)}function d5(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function p5(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function v5(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function y5(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}yo.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,o=this._e|0,s=this._f|0,y=this._g|0,b=this._h|0,x=0;x<16;++x)t[x]=e.readInt32BE(x*4);for(;x<64;++x)t[x]=y5(t[x-2])+t[x-7]+v5(t[x-15])+t[x-16]|0;for(var B=0;B<64;++B){var R=b+p5(o)+h5(o,s,y)+u5[B]+t[B]|0,T=d5(r)+c5(r,i,n)|0;b=y,y=s,s=o,o=a+R|0,a=n,n=i,i=r,r=R+T|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0,this._f=s+this._f|0,this._g=y+this._g|0,this._h=b+this._h|0};yo.prototype._hash=function(){var e=s5.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};Sg.exports=yo});var Ag=k((MN,Mg)=>{"use strict";m();var g5=re(),b5=Dh(),_5=Gi(),m5=Ne().Buffer,w5=new Array(64);function Rs(){this.init(),this._w=w5,_5.call(this,64,56)}g5(Rs,b5);Rs.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};Rs.prototype._hash=function(){var e=m5.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};Mg.exports=Rs});var Nh=k((BN,qg)=>{"use strict";m();var x5=re(),Og=Gi(),E5=Ne().Buffer,Bg=[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],S5=new Array(160);function go(){this.init(),this._w=S5,Og.call(this,128,112)}x5(go,Og);go.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 Rg(e,t,r){return r^e&(t^r)}function kg(e,t,r){return e&t|r&(e|t)}function Tg(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function Ig(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function M5(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function A5(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function B5(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function R5(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function ft(e,t){return e>>>0<t>>>0?1:0}go.prototype._update=function(e){for(var t=this._w,r=this._ah|0,i=this._bh|0,n=this._ch|0,a=this._dh|0,o=this._eh|0,s=this._fh|0,y=this._gh|0,b=this._hh|0,x=this._al|0,B=this._bl|0,R=this._cl|0,T=this._dl|0,O=this._el|0,D=this._fl|0,U=this._gl|0,N=this._hl|0,j=0;j<32;j+=2)t[j]=e.readInt32BE(j*4),t[j+1]=e.readInt32BE(j*4+4);for(;j<160;j+=2){var H=t[j-30],W=t[j-30+1],Z=M5(H,W),K=A5(W,H);H=t[j-4],W=t[j-4+1];var J=B5(H,W),z=R5(W,H),X=t[j-14],A=t[j-14+1],h=t[j-32],_=t[j-32+1],d=K+A|0,f=Z+X+ft(d,K)|0;d=d+z|0,f=f+J+ft(d,z)|0,d=d+_|0,f=f+h+ft(d,_)|0,t[j]=f,t[j+1]=d}for(var l=0;l<160;l+=2){f=t[l],d=t[l+1];var v=kg(r,i,n),g=kg(x,B,R),p=Tg(r,x),u=Tg(x,r),w=Ig(o,O),E=Ig(O,o),c=Bg[l],S=Bg[l+1],P=Rg(o,s,y),C=Rg(O,D,U),L=N+E|0,V=b+w+ft(L,N)|0;L=L+C|0,V=V+P+ft(L,C)|0,L=L+S|0,V=V+c+ft(L,S)|0,L=L+d|0,V=V+f+ft(L,d)|0;var G=u+g|0,Y=p+v+ft(G,u)|0;b=y,N=U,y=s,U=D,s=o,D=O,O=T+L|0,o=a+V+ft(O,T)|0,a=n,T=R,n=i,R=B,i=r,B=x,x=L+G|0,r=V+Y+ft(x,L)|0}this._al=this._al+x|0,this._bl=this._bl+B|0,this._cl=this._cl+R|0,this._dl=this._dl+T|0,this._el=this._el+O|0,this._fl=this._fl+D|0,this._gl=this._gl+U|0,this._hl=this._hl+N|0,this._ah=this._ah+r+ft(this._al,x)|0,this._bh=this._bh+i+ft(this._bl,B)|0,this._ch=this._ch+n+ft(this._cl,R)|0,this._dh=this._dh+a+ft(this._dl,T)|0,this._eh=this._eh+o+ft(this._el,O)|0,this._fh=this._fh+s+ft(this._fl,D)|0,this._gh=this._gh+y+ft(this._gl,U)|0,this._hh=this._hh+b+ft(this._hl,N)|0};go.prototype._hash=function(){var e=E5.allocUnsafe(64);function t(r,i,n){e.writeInt32BE(r,n),e.writeInt32BE(i,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};qg.exports=go});var Ng=k((kN,Dg)=>{"use strict";m();var k5=re(),T5=Nh(),I5=Gi(),O5=Ne().Buffer,q5=new Array(160);function ks(){this.init(),this._w=q5,I5.call(this,128,112)}k5(ks,T5);ks.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};ks.prototype._hash=function(){var e=O5.allocUnsafe(48);function t(r,i,n){e.writeInt32BE(r,n),e.writeInt32BE(i,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};Dg.exports=ks});var Ts=k((IN,qr)=>{"use strict";m();qr.exports=function(t){var r=t.toLowerCase(),i=qr.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i};qr.exports.sha=_g();qr.exports.sha1=xg();qr.exports.sha224=Ag();qr.exports.sha256=Dh();qr.exports.sha384=Ng();qr.exports.sha512=Nh()});var Dr=k((qN,Lg)=>{"use strict";m();var D5=Ne().Buffer,Pg=ls().Transform,N5=Zn().StringDecoder,P5=re(),L5=Qa();function $t(e){Pg.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}P5($t,Pg);$t.prototype.update=function(e,t,r){var i=L5(e,t),n=this._update(i);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)};$t.prototype.setAutoPadding=function(){};$t.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};$t.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};$t.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};$t.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(n){i=n}finally{r(i)}};$t.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)};$t.prototype._finalOrDigest=function(e){var t=this.__final()||D5.alloc(0);return e&&(t=this._toString(t,e,!0)),t};$t.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new N5(t),this._encoding=t),this._encoding!==t)throw new Error("can\u2019t switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i};Lg.exports=$t});var bo=k((NN,Ug)=>{"use strict";m();var C5=re(),U5=ds(),F5=As(),j5=Ts(),Cg=Dr();function Is(e){Cg.call(this,"digest"),this._hash=e}C5(Is,Cg);Is.prototype._update=function(e){this._hash.update(e)};Is.prototype._final=function(){return this._hash.digest()};Ug.exports=function(t){return t=t.toLowerCase(),t==="md5"?new U5:t==="rmd160"||t==="ripemd160"?new F5:new Is(j5(t))}});var zg=k((LN,jg)=>{"use strict";m();var z5=re(),Vi=Ne().Buffer,Fg=Dr(),Z5=Vi.alloc(128),Jn=64;function Os(e,t){Fg.call(this,"digest"),typeof t=="string"&&(t=Vi.from(t)),this._alg=e,this._key=t,t.length>Jn?t=e(t):t.length<Jn&&(t=Vi.concat([t,Z5],Jn));for(var r=this._ipad=Vi.allocUnsafe(Jn),i=this._opad=Vi.allocUnsafe(Jn),n=0;n<Jn;n++)r[n]=t[n]^54,i[n]=t[n]^92;this._hash=[r]}z5(Os,Fg);Os.prototype._update=function(e){this._hash.push(e)};Os.prototype._final=function(){var e=this._alg(Vi.concat(this._hash));return this._alg(Vi.concat([this._opad,e]))};jg.exports=Os});var Ph=k((UN,Zg)=>{m();var H5=ds();Zg.exports=function(e){return new H5().update(e).digest()}});var Kg=k((jN,Wg)=>{"use strict";m();var W5=re(),K5=zg(),Hg=Dr(),_o=Ne().Buffer,G5=Ph(),Lh=As(),Ch=Ts(),V5=_o.alloc(128);function mo(e,t){Hg.call(this,"digest"),typeof t=="string"&&(t=_o.from(t));var r=e==="sha512"||e==="sha384"?128:64;if(this._alg=e,this._key=t,t.length>r){var i=e==="rmd160"?new Lh:Ch(e);t=i.update(t).digest()}else t.length<r&&(t=_o.concat([t,V5],r));for(var n=this._ipad=_o.allocUnsafe(r),a=this._opad=_o.allocUnsafe(r),o=0;o<r;o++)n[o]=t[o]^54,a[o]=t[o]^92;this._hash=e==="rmd160"?new Lh:Ch(e),this._hash.update(n)}W5(mo,Hg);mo.prototype._update=function(e){this._hash.update(e)};mo.prototype._final=function(){var e=this._hash.digest(),t=this._alg==="rmd160"?new Lh:Ch(this._alg);return t.update(this._opad).update(e).digest()};Wg.exports=function(t,r){return t=t.toLowerCase(),t==="rmd160"||t==="ripemd160"?new mo("rmd160",r):t==="md5"?new K5(G5,r):new mo(t,r)}});var qs=k((ZN,Gg)=>{"use strict";m();Gg.exports={}});var Uh=k((WN,Vg)=>{"use strict";m();var $5=isFinite,Y5=Math.pow(2,30)-1;Vg.exports=function(e,t){if(typeof e!="number")throw new TypeError("Iterations not a number");if(e<0||!$5(e))throw new TypeError("Bad iterations");if(typeof t!="number")throw new TypeError("Key length not a number");if(t<0||t>Y5||t!==t)throw new TypeError("Bad key length")}});var Fh=k((GN,Yg)=>{"use strict";m();var Ds;globalThis.process&&globalThis.process.browser?Ds="utf-8":globalThis.process&&globalThis.process.version?($g=parseInt(M.default.version.split(".")[0].slice(1),10),Ds=$g>=6?"utf-8":"binary"):Ds="utf-8";var $g;Yg.exports=Ds});var jh=k(($N,Qg)=>{"use strict";m();var J5=Ne().Buffer,X5=Qa(),Xg=typeof Uint8Array<"u",Q5=Xg&&typeof ArrayBuffer<"u",Jg=Q5&&ArrayBuffer.isView;Qg.exports=function(e,t,r){if(typeof e=="string"||J5.isBuffer(e)||Xg&&e instanceof Uint8Array||Jg&&Jg(e))return X5(e,t);throw new TypeError(r+" must be a string, a Buffer, a Uint8Array, or a DataView")}});var zh=k((JN,ib)=>{"use strict";m();var eB=Ph(),tB=As(),rB=Ts(),$i=Ne().Buffer,iB=Uh(),eb=Fh(),tb=jh(),nB=$i.alloc(128),Ns={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},aB={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function oB(e){return new tB().update(e).digest()}function fB(e){function t(r){return rB(e).update(r).digest()}return e==="rmd160"||e==="ripemd160"?oB:e==="md5"?eB:t}function rb(e,t,r){var i=fB(e),n=e==="sha512"||e==="sha384"?128:64;t.length>n?t=i(t):t.length<n&&(t=$i.concat([t,nB],n));for(var a=$i.allocUnsafe(n+Ns[e]),o=$i.allocUnsafe(n+Ns[e]),s=0;s<n;s++)a[s]=t[s]^54,o[s]=t[s]^92;var y=$i.allocUnsafe(n+r+4);a.copy(y,0,0,n),this.ipad1=y,this.ipad2=a,this.opad=o,this.alg=e,this.blocksize=n,this.hash=i,this.size=Ns[e]}rb.prototype.run=function(e,t){e.copy(t,this.blocksize);var r=this.hash(t);return r.copy(this.opad,this.blocksize),this.hash(this.opad)};function sB(e,t,r,i,n){iB(r,i),e=tb(e,eb,"Password"),t=tb(t,eb,"Salt");var a=(n||"sha1").toLowerCase(),o=aB[a]||a,s=Ns[o];if(typeof s!="number"||!s)throw new TypeError("Digest algorithm not supported: "+n);var y=new rb(o,e,t.length),b=$i.allocUnsafe(i),x=$i.allocUnsafe(t.length+4);t.copy(x,0,0,t.length);for(var B=0,R=s,T=Math.ceil(i/R),O=1;O<=T;O++){x.writeUInt32BE(O,t.length);for(var D=y.run(x,y.ipad1),U=D,N=1;N<r;N++){U=y.run(U,y.ipad2);for(var j=0;j<R;j++)D[j]^=U[j]}D.copy(b,B),B+=R}return b}ib.exports=sB});var lb=k((QN,ub)=>{"use strict";m();var fb=Ne().Buffer,uB=Uh(),nb=Fh(),ab=zh(),ob=jh(),Ps,wo=globalThis.crypto&&globalThis.crypto.subtle,lB={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"},Zh=[],Yi;function Hh(){return Yi||(globalThis.process&&globalThis.process.nextTick?Yi=globalThis.process.nextTick:globalThis.queueMicrotask?Yi=globalThis.queueMicrotask:globalThis.setImmediate?Yi=globalThis.setImmediate:Yi=globalThis.setTimeout,Yi)}function sb(e,t,r,i,n){return wo.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(a){return wo.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:n}},a,i<<3)}).then(function(a){return fb.from(a)})}function hB(e){if(globalThis.process&&!globalThis.process.browser||!wo||!wo.importKey||!wo.deriveBits)return Promise.resolve(!1);if(Zh[e]!==void 0)return Zh[e];Ps=Ps||fb.alloc(8);var t=sb(Ps,Ps,10,128,e).then(function(){return!0},function(){return!1});return Zh[e]=t,t}function cB(e,t){e.then(function(r){Hh()(function(){t(null,r)})},function(r){Hh()(function(){t(r)})})}ub.exports=function(e,t,r,i,n,a){if(typeof n=="function"&&(a=n,n=void 0),uB(r,i),e=ob(e,nb,"Password"),t=ob(t,nb,"Salt"),typeof a!="function")throw new Error("No callback provided to pbkdf2");n=n||"sha1";var o=lB[n.toLowerCase()];if(!o||typeof globalThis.Promise!="function"){Hh()(function(){var s;try{s=ab(e,t,r,i,n)}catch(y){a(y);return}a(null,s)});return}cB(hB(o).then(function(s){return s?sb(e,t,r,i,o):ab(e,t,r,i,n)}),a)}});var Kh=k(Wh=>{"use strict";m();Wh.pbkdf2=lb();Wh.pbkdf2Sync=zh()});var Gh=k(Dt=>{"use strict";m();Dt.readUInt32BE=function(t,r){var i=t[0+r]<<24|t[1+r]<<16|t[2+r]<<8|t[3+r];return i>>>0};Dt.writeUInt32BE=function(t,r,i){t[0+i]=r>>>24,t[1+i]=r>>>16&255,t[2+i]=r>>>8&255,t[3+i]=r&255};Dt.ip=function(t,r,i,n){for(var a=0,o=0,s=6;s>=0;s-=2){for(var y=0;y<=24;y+=8)a<<=1,a|=r>>>y+s&1;for(var y=0;y<=24;y+=8)a<<=1,a|=t>>>y+s&1}for(var s=6;s>=0;s-=2){for(var y=1;y<=25;y+=8)o<<=1,o|=r>>>y+s&1;for(var y=1;y<=25;y+=8)o<<=1,o|=t>>>y+s&1}i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.rip=function(t,r,i,n){for(var a=0,o=0,s=0;s<4;s++)for(var y=24;y>=0;y-=8)a<<=1,a|=r>>>y+s&1,a<<=1,a|=t>>>y+s&1;for(var s=4;s<8;s++)for(var y=24;y>=0;y-=8)o<<=1,o|=r>>>y+s&1,o<<=1,o|=t>>>y+s&1;i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.pc1=function(t,r,i,n){for(var a=0,o=0,s=7;s>=5;s--){for(var y=0;y<=24;y+=8)a<<=1,a|=r>>y+s&1;for(var y=0;y<=24;y+=8)a<<=1,a|=t>>y+s&1}for(var y=0;y<=24;y+=8)a<<=1,a|=r>>y+s&1;for(var s=1;s<=3;s++){for(var y=0;y<=24;y+=8)o<<=1,o|=r>>y+s&1;for(var y=0;y<=24;y+=8)o<<=1,o|=t>>y+s&1}for(var y=0;y<=24;y+=8)o<<=1,o|=t>>y+s&1;i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.r28shl=function(t,r){return t<<r&268435455|t>>>28-r};var Ls=[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(t,r,i,n){for(var a=0,o=0,s=Ls.length>>>1,y=0;y<s;y++)a<<=1,a|=t>>>Ls[y]&1;for(var y=s;y<Ls.length;y++)o<<=1,o|=r>>>Ls[y]&1;i[n+0]=a>>>0,i[n+1]=o>>>0};Dt.expand=function(t,r,i){var n=0,a=0;n=(t&1)<<5|t>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=t>>>o&63;for(var o=11;o>=3;o-=4)a|=t>>>o&63,a<<=6;a|=(t&31)<<1|t>>>31,r[i+0]=n>>>0,r[i+1]=a>>>0};var hb=[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(t,r){for(var i=0,n=0;n<4;n++){var a=t>>>18-n*6&63,o=hb[n*64+a];i<<=4,i|=o}for(var n=0;n<4;n++){var a=r>>>18-n*6&63,o=hb[256+n*64+a];i<<=4,i|=o}return i>>>0};var cb=[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(t){for(var r=0,i=0;i<cb.length;i++)r<<=1,r|=t>>>cb[i]&1;return r>>>0};Dt.padSplit=function(t,r,i){for(var n=t.toString(2);n.length<r;)n="0"+n;for(var a=[],o=0;o<r;o+=i)a.push(n.slice(o,o+i));return a.join(" ")}});var Xn=k((aP,pb)=>{m();pb.exports=db;function db(e,t){if(!e)throw new Error(t||"Assertion failed")}db.equal=function(t,r,i){if(t!=r)throw new Error(i||"Assertion failed: "+t+" != "+r)}});var Cs=k((fP,vb)=>{"use strict";m();var dB=Xn();function Nt(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=e.padding!==!1}vb.exports=Nt;Nt.prototype._init=function(){};Nt.prototype.update=function(t){return t.length===0?[]:this.type==="decrypt"?this._updateDecrypt(t):this._updateEncrypt(t)};Nt.prototype._buffer=function(t,r){for(var i=Math.min(this.buffer.length-this.bufferOff,t.length-r),n=0;n<i;n++)this.buffer[this.bufferOff+n]=t[r+n];return this.bufferOff+=i,i};Nt.prototype._flushBuffer=function(t,r){return this._update(this.buffer,0,t,r),this.bufferOff=0,this.blockSize};Nt.prototype._updateEncrypt=function(t){var r=0,i=0,n=(this.bufferOff+t.length)/this.blockSize|0,a=new Array(n*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(t,r),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(a,i)));for(var o=t.length-(t.length-r)%this.blockSize;r<o;r+=this.blockSize)this._update(t,r,a,i),i+=this.blockSize;for(;r<t.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=t[r];return a};Nt.prototype._updateDecrypt=function(t){for(var r=0,i=0,n=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,a=new Array(n*this.blockSize);n>0;n--)r+=this._buffer(t,r),i+=this._flushBuffer(a,i);return r+=this._buffer(t,r),a};Nt.prototype.final=function(t){var r;t&&(r=this.update(t));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),r?r.concat(i):i};Nt.prototype._pad=function(t,r){if(r===0)return!1;for(;r<t.length;)t[r++]=0;return!0};Nt.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t};Nt.prototype._unpad=function(t){return t};Nt.prototype._finalDecrypt=function(){dB.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}});var Vh=k((uP,bb)=>{"use strict";m();var yb=Xn(),pB=re(),it=Gh(),gb=Cs();function vB(){this.tmp=new Array(2),this.keys=null}function yr(e){gb.call(this,e);var t=new vB;this._desState=t,this.deriveKeys(t,e.key)}pB(yr,gb);bb.exports=yr;yr.create=function(t){return new yr(t)};var yB=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];yr.prototype.deriveKeys=function(t,r){t.keys=new Array(32),yb.equal(r.length,this.blockSize,"Invalid key length");var i=it.readUInt32BE(r,0),n=it.readUInt32BE(r,4);it.pc1(i,n,t.tmp,0),i=t.tmp[0],n=t.tmp[1];for(var a=0;a<t.keys.length;a+=2){var o=yB[a>>>1];i=it.r28shl(i,o),n=it.r28shl(n,o),it.pc2(i,n,t.keys,a)}};yr.prototype._update=function(t,r,i,n){var a=this._desState,o=it.readUInt32BE(t,r),s=it.readUInt32BE(t,r+4);it.ip(o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],this.type==="encrypt"?this._encrypt(a,o,s,a.tmp,0):this._decrypt(a,o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],it.writeUInt32BE(i,o,n),it.writeUInt32BE(i,s,n+4)};yr.prototype._pad=function(t,r){if(this.padding===!1)return!1;for(var i=t.length-r,n=r;n<t.length;n++)t[n]=i;return!0};yr.prototype._unpad=function(t){if(this.padding===!1)return t;for(var r=t[t.length-1],i=t.length-r;i<t.length;i++)yb.equal(t[i],r);return t.slice(0,t.length-r)};yr.prototype._encrypt=function(t,r,i,n,a){for(var o=r,s=i,y=0;y<t.keys.length;y+=2){var b=t.keys[y],x=t.keys[y+1];it.expand(s,t.tmp,0),b^=t.tmp[0],x^=t.tmp[1];var B=it.substitute(b,x),R=it.permute(B),T=s;s=(o^R)>>>0,o=T}it.rip(s,o,n,a)};yr.prototype._decrypt=function(t,r,i,n,a){for(var o=i,s=r,y=t.keys.length-2;y>=0;y-=2){var b=t.keys[y],x=t.keys[y+1];it.expand(o,t.tmp,0),b^=t.tmp[0],x^=t.tmp[1];var B=it.substitute(b,x),R=it.permute(B),T=o;o=(s^R)>>>0,s=T}it.rip(o,s,n,a)}});var mb=k(_b=>{"use strict";m();var gB=Xn(),bB=re(),Us={};function _B(e){gB.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}function mB(e){function t(a){e.call(this,a),this._cbcInit()}bB(t,e);for(var r=Object.keys(Us),i=0;i<r.length;i++){var n=r[i];t.prototype[n]=Us[n]}return t.create=function(o){return new t(o)},t}_b.instantiate=mB;Us._cbcInit=function(){var t=new _B(this.options.iv);this._cbcState=t};Us._update=function(t,r,i,n){var a=this._cbcState,o=this.constructor.super_.prototype,s=a.iv;if(this.type==="encrypt"){for(var y=0;y<this.blockSize;y++)s[y]^=t[r+y];o._update.call(this,s,0,i,n);for(var y=0;y<this.blockSize;y++)s[y]=i[n+y]}else{o._update.call(this,t,r,i,n);for(var y=0;y<this.blockSize;y++)i[n+y]^=s[y];for(var y=0;y<this.blockSize;y++)s[y]=t[r+y]}}});var Eb=k((dP,xb)=>{"use strict";m();var wB=Xn(),xB=re(),wb=Cs(),Xr=Vh();function EB(e,t){wB.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),n=t.slice(16,24);e==="encrypt"?this.ciphers=[Xr.create({type:"encrypt",key:r}),Xr.create({type:"decrypt",key:i}),Xr.create({type:"encrypt",key:n})]:this.ciphers=[Xr.create({type:"decrypt",key:n}),Xr.create({type:"encrypt",key:i}),Xr.create({type:"decrypt",key:r})]}function Ji(e){wb.call(this,e);var t=new EB(this.type,this.options.key);this._edeState=t}xB(Ji,wb);xb.exports=Ji;Ji.create=function(t){return new Ji(t)};Ji.prototype._update=function(t,r,i,n){var a=this._edeState;a.ciphers[0]._update(t,r,i,n),a.ciphers[1]._update(i,n,i,n),a.ciphers[2]._update(i,n,i,n)};Ji.prototype._pad=Xr.prototype._pad;Ji.prototype._unpad=Xr.prototype._unpad});var Sb=k(Qn=>{"use strict";m();Qn.utils=Gh();Qn.Cipher=Cs();Qn.DES=Vh();Qn.CBC=mb();Qn.EDE=Eb()});var Bb=k((gP,Ab)=>{m();var Mb=Dr(),Nr=Sb(),SB=re(),Xi=Ne().Buffer,xo={"des-ede3-cbc":Nr.CBC.instantiate(Nr.EDE),"des-ede3":Nr.EDE,"des-ede-cbc":Nr.CBC.instantiate(Nr.EDE),"des-ede":Nr.EDE,"des-cbc":Nr.CBC.instantiate(Nr.DES),"des-ecb":Nr.DES};xo.des=xo["des-cbc"];xo.des3=xo["des-ede3-cbc"];Ab.exports=Fs;SB(Fs,Mb);function Fs(e){Mb.call(this);var t=e.mode.toLowerCase(),r=xo[t],i;e.decrypt?i="decrypt":i="encrypt";var n=e.key;Xi.isBuffer(n)||(n=Xi.from(n)),(t==="des-ede"||t==="des-ede-cbc")&&(n=Xi.concat([n,n.slice(0,8)]));var a=e.iv;Xi.isBuffer(a)||(a=Xi.from(a)),this._des=r.create({key:n,iv:a,type:i})}Fs.prototype._update=function(e){return Xi.from(this._des.update(e))};Fs.prototype._final=function(){return Xi.from(this._des.final())}});var Rb=k($h=>{m();$h.encrypt=function(e,t){return e._cipher.encryptBlock(t)};$h.decrypt=function(e,t){return e._cipher.decryptBlock(t)}});var ea=k((wP,kb)=>{m();kb.exports=function(t,r){for(var i=Math.min(t.length,r.length),n=new I.Buffer(i),a=0;a<i;++a)n[a]=t[a]^r[a];return n}});var Ib=k(Yh=>{m();var Tb=ea();Yh.encrypt=function(e,t){var r=Tb(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev};Yh.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return Tb(i,r)}});var Db=k(qb=>{m();var Eo=Ne().Buffer,MB=ea();function Ob(e,t,r){var i=t.length,n=MB(t,e._cache);return e._cache=e._cache.slice(i),e._prev=Eo.concat([e._prev,r?t:n]),n}qb.encrypt=function(e,t,r){for(var i=Eo.allocUnsafe(0),n;t.length;)if(e._cache.length===0&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=Eo.allocUnsafe(0)),e._cache.length<=t.length)n=e._cache.length,i=Eo.concat([i,Ob(e,t.slice(0,n),r)]),t=t.slice(n);else{i=Eo.concat([i,Ob(e,t,r)]);break}return i}});var Pb=k(Nb=>{m();var Jh=Ne().Buffer;function AB(e,t,r){var i=e._cipher.encryptBlock(e._prev),n=i[0]^t;return e._prev=Jh.concat([e._prev.slice(1),Jh.from([r?t:n])]),n}Nb.encrypt=function(e,t,r){for(var i=t.length,n=Jh.allocUnsafe(i),a=-1;++a<i;)n[a]=AB(e,t[a],r);return n}});var Cb=k(Lb=>{m();var js=Ne().Buffer;function BB(e,t,r){for(var i,n=-1,a=8,o=0,s,y;++n<a;)i=e._cipher.encryptBlock(e._prev),s=t&1<<7-n?128:0,y=i[0]^s,o+=(y&128)>>n%8,e._prev=RB(e._prev,r?s:y);return o}function RB(e,t){var r=e.length,i=-1,n=js.allocUnsafe(e.length);for(e=js.concat([e,js.from([t])]);++i<r;)n[i]=e[i]<<1|e[i+1]>>7;return n}Lb.encrypt=function(e,t,r){for(var i=t.length,n=js.allocUnsafe(i),a=-1;++a<i;)n[a]=BB(e,t[a],r);return n}});var Fb=k(Ub=>{m();var kB=ea();function TB(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}Ub.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=I.Buffer.concat([e._cache,TB(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),kB(t,r)}});var Xh=k((qP,jb)=>{m();function IB(e){for(var t=e.length,r;t--;)if(r=e.readUInt8(t),r===255)e.writeUInt8(0,t);else{r++,e.writeUInt8(r,t);break}}jb.exports=IB});var ec=k(Zb=>{m();var OB=ea(),zb=Ne().Buffer,qB=Xh();function DB(e){var t=e._cipher.encryptBlockRaw(e._prev);return qB(e._prev),t}var Qh=16;Zb.encrypt=function(e,t){var r=Math.ceil(t.length/Qh),i=e._cache.length;e._cache=zb.concat([e._cache,zb.allocUnsafe(r*Qh)]);for(var n=0;n<r;n++){var a=DB(e),o=i+n*Qh;e._cache.writeUInt32BE(a[0],o+0),e._cache.writeUInt32BE(a[1],o+4),e._cache.writeUInt32BE(a[2],o+8),e._cache.writeUInt32BE(a[3],o+12)}var s=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),OB(t,s)}});var tc=k((LP,NB)=>{NB.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 Zs=k((CP,Hb)=>{m();var PB={ECB:Rb(),CBC:Ib(),CFB:Db(),CFB8:Pb(),CFB1:Cb(),OFB:Fb(),CTR:ec(),GCM:ec()},zs=tc();for(rc in zs)zs[rc].module=PB[zs[rc].mode];var rc;Hb.exports=zs});var So=k((FP,Kb)=>{m();var Hs=Ne().Buffer;function nc(e){Hs.isBuffer(e)||(e=Hs.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(i*4);return r}function ic(e){for(var t=0;t<e.length;e++)e[t]=0}function Wb(e,t,r,i,n){for(var a=r[0],o=r[1],s=r[2],y=r[3],b=e[0]^t[0],x=e[1]^t[1],B=e[2]^t[2],R=e[3]^t[3],T,O,D,U,N=4,j=1;j<n;j++)T=a[b>>>24]^o[x>>>16&255]^s[B>>>8&255]^y[R&255]^t[N++],O=a[x>>>24]^o[B>>>16&255]^s[R>>>8&255]^y[b&255]^t[N++],D=a[B>>>24]^o[R>>>16&255]^s[b>>>8&255]^y[x&255]^t[N++],U=a[R>>>24]^o[b>>>16&255]^s[x>>>8&255]^y[B&255]^t[N++],b=T,x=O,B=D,R=U;return T=(i[b>>>24]<<24|i[x>>>16&255]<<16|i[B>>>8&255]<<8|i[R&255])^t[N++],O=(i[x>>>24]<<24|i[B>>>16&255]<<16|i[R>>>8&255]<<8|i[b&255])^t[N++],D=(i[B>>>24]<<24|i[R>>>16&255]<<16|i[b>>>8&255]<<8|i[x&255])^t[N++],U=(i[R>>>24]<<24|i[b>>>16&255]<<16|i[x>>>8&255]<<8|i[B&255])^t[N++],T=T>>>0,O=O>>>0,D=D>>>0,U=U>>>0,[T,O,D,U]}var LB=[0,1,2,4,8,16,32,64,128,27,54],rt=(function(){for(var e=new Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,y=0;y<256;++y){var b=s^s<<1^s<<2^s<<3^s<<4;b=b>>>8^b&255^99,r[o]=b,i[b]=o;var x=e[o],B=e[x],R=e[B],T=e[b]*257^b*16843008;n[0][o]=T<<24|T>>>8,n[1][o]=T<<16|T>>>16,n[2][o]=T<<8|T>>>24,n[3][o]=T,T=R*16843009^B*65537^x*257^o*16843008,a[0][b]=T<<24|T>>>8,a[1][b]=T<<16|T>>>16,a[2][b]=T<<8|T>>>24,a[3][b]=T,o===0?o=s=1:(o=x^e[e[e[R^x]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:a}})();function Pt(e){this._key=nc(e),this._reset()}Pt.blockSize=16;Pt.keySize=256/8;Pt.prototype.blockSize=Pt.blockSize;Pt.prototype.keySize=Pt.keySize;Pt.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,i=(r+1)*4,n=[],a=0;a<t;a++)n[a]=e[a];for(a=t;a<i;a++){var o=n[a-1];a%t===0?(o=o<<8|o>>>24,o=rt.SBOX[o>>>24]<<24|rt.SBOX[o>>>16&255]<<16|rt.SBOX[o>>>8&255]<<8|rt.SBOX[o&255],o^=LB[a/t|0]<<24):t>6&&a%t===4&&(o=rt.SBOX[o>>>24]<<24|rt.SBOX[o>>>16&255]<<16|rt.SBOX[o>>>8&255]<<8|rt.SBOX[o&255]),n[a]=n[a-t]^o}for(var s=[],y=0;y<i;y++){var b=i-y,x=n[b-(y%4?0:4)];y<4||b<=4?s[y]=x:s[y]=rt.INV_SUB_MIX[0][rt.SBOX[x>>>24]]^rt.INV_SUB_MIX[1][rt.SBOX[x>>>16&255]]^rt.INV_SUB_MIX[2][rt.SBOX[x>>>8&255]]^rt.INV_SUB_MIX[3][rt.SBOX[x&255]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=s};Pt.prototype.encryptBlockRaw=function(e){return e=nc(e),Wb(e,this._keySchedule,rt.SUB_MIX,rt.SBOX,this._nRounds)};Pt.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=Hs.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r};Pt.prototype.decryptBlock=function(e){e=nc(e);var t=e[1];e[1]=e[3],e[3]=t;var r=Wb(e,this._invKeySchedule,rt.INV_SUB_MIX,rt.INV_SBOX,this._nRounds),i=Hs.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i};Pt.prototype.scrub=function(){ic(this._keySchedule),ic(this._invKeySchedule),ic(this._key)};Kb.exports.AES=Pt});var $b=k((zP,Vb)=>{m();var ta=Ne().Buffer,CB=ta.alloc(16,0);function UB(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function Gb(e){var t=ta.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function Mo(e){this.h=e,this.state=ta.alloc(16,0),this.cache=ta.allocUnsafe(0)}Mo.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()};Mo.prototype._multiply=function(){for(var e=UB(this.h),t=[0,0,0,0],r,i,n,a=-1;++a<128;){for(i=(this.state[~~(a/8)]&1<<7-a%8)!==0,i&&(t[0]^=e[0],t[1]^=e[1],t[2]^=e[2],t[3]^=e[3]),n=(e[3]&1)!==0,r=3;r>0;r--)e[r]=e[r]>>>1|(e[r-1]&1)<<31;e[0]=e[0]>>>1,n&&(e[0]=e[0]^225<<24)}this.state=Gb(t)};Mo.prototype.update=function(e){this.cache=ta.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)};Mo.prototype.final=function(e,t){return this.cache.length&&this.ghash(ta.concat([this.cache,CB],16)),this.ghash(Gb([0,e,0,t])),this.state};Vb.exports=Mo});var ac=k((HP,Xb)=>{m();var FB=So(),Et=Ne().Buffer,Yb=Dr(),jB=re(),Jb=$b(),zB=ea(),ZB=Xh();function HB(e,t){var r=0;e.length!==t.length&&r++;for(var i=Math.min(e.length,t.length),n=0;n<i;++n)r+=e[n]^t[n];return r}function WB(e,t,r){if(t.length===12)return e._finID=Et.concat([t,Et.from([0,0,0,1])]),Et.concat([t,Et.from([0,0,0,2])]);var i=new Jb(r),n=t.length,a=n%16;i.update(t),a&&(a=16-a,i.update(Et.alloc(a,0))),i.update(Et.alloc(8,0));var o=n*8,s=Et.alloc(8);s.writeUIntBE(o,0,8),i.update(s),e._finID=i.state;var y=Et.from(e._finID);return ZB(y),y}function Qi(e,t,r,i){Yb.call(this);var n=Et.alloc(4,0);this._cipher=new FB.AES(t);var a=this._cipher.encryptBlock(n);this._ghash=new Jb(a),r=WB(this,r,a),this._prev=Et.from(r),this._cache=Et.allocUnsafe(0),this._secCache=Et.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}jB(Qi,Yb);Qi.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=Et.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r};Qi.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=zB(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&HB(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()};Qi.prototype.getAuthTag=function(){if(this._decrypt||!Et.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};Qi.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t};Qi.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length};Xb.exports=Qi});var fc=k((KP,e_)=>{m();var KB=So(),oc=Ne().Buffer,Qb=Dr(),GB=re();function Ws(e,t,r,i){Qb.call(this),this._cipher=new KB.AES(t),this._prev=oc.from(r),this._cache=oc.allocUnsafe(0),this._secCache=oc.allocUnsafe(0),this._decrypt=i,this._mode=e}GB(Ws,Qb);Ws.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)};Ws.prototype._final=function(){this._cipher.scrub()};e_.exports=Ws});var Ao=k((VP,t_)=>{m();var en=Ne().Buffer,VB=ds();function $B(e,t,r,i){if(en.isBuffer(e)||(e=en.from(e,"binary")),t&&(en.isBuffer(t)||(t=en.from(t,"binary")),t.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=r/8,a=en.alloc(n),o=en.alloc(i||0),s=en.alloc(0);n>0||i>0;){var y=new VB;y.update(s),y.update(e),t&&y.update(t),s=y.digest();var b=0;if(n>0){var x=a.length-n;b=Math.min(n,s.length),s.copy(a,x,0,b),n-=b}if(b<s.length&&i>0){var B=o.length-i,R=Math.min(i,s.length-b);s.copy(o,B,b,b+R),i-=R}}return s.fill(0),{key:a,iv:o}}t_.exports=$B});var a_=k(sc=>{m();var r_=Zs(),YB=ac(),Pr=Ne().Buffer,JB=fc(),i_=Dr(),XB=So(),QB=Ao(),eR=re();function Bo(e,t,r){i_.call(this),this._cache=new Ks,this._cipher=new XB.AES(t),this._prev=Pr.from(r),this._mode=e,this._autopadding=!0}eR(Bo,i_);Bo.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get();)r=this._mode.encrypt(this,t),i.push(r);return Pr.concat(i)};var tR=Pr.alloc(16,16);Bo.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(tR))throw this._cipher.scrub(),new Error("data not multiple of block length")};Bo.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function Ks(){this.cache=Pr.allocUnsafe(0)}Ks.prototype.add=function(e){this.cache=Pr.concat([this.cache,e])};Ks.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null};Ks.prototype.flush=function(){for(var e=16-this.cache.length,t=Pr.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return Pr.concat([this.cache,t])};function n_(e,t,r){var i=r_[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof t=="string"&&(t=Pr.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);if(typeof r=="string"&&(r=Pr.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);return i.type==="stream"?new JB(i.module,t,r):i.type==="auth"?new YB(i.module,t,r):new Bo(i.module,t,r)}function rR(e,t){var r=r_[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=QB(t,!1,r.key,r.iv);return n_(e,i.key,i.iv)}sc.createCipheriv=n_;sc.createCipher=rR});var u_=k(uc=>{m();var iR=ac(),ra=Ne().Buffer,o_=Zs(),nR=fc(),f_=Dr(),aR=So(),oR=Ao(),fR=re();function Ro(e,t,r){f_.call(this),this._cache=new Gs,this._last=void 0,this._cipher=new aR.AES(t),this._prev=ra.from(r),this._mode=e,this._autopadding=!0}fR(Ro,f_);Ro.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return ra.concat(i)};Ro.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return sR(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")};Ro.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function Gs(){this.cache=ra.allocUnsafe(0)}Gs.prototype.add=function(e){this.cache=ra.concat([this.cache,e])};Gs.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null};Gs.prototype.flush=function(){if(this.cache.length)return this.cache};function sR(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(t!==16)return e.slice(0,16-t)}function s_(e,t,r){var i=o_[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof r=="string"&&(r=ra.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if(typeof t=="string"&&(t=ra.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);return i.type==="stream"?new nR(i.module,t,r,!0):i.type==="auth"?new iR(i.module,t,r,!0):new Ro(i.module,t,r)}function uR(e,t){var r=o_[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=oR(t,!1,r.key,r.iv);return s_(e,i.key,i.iv)}uc.createDecipher=uR;uc.createDecipheriv=s_});var Vs=k(Yt=>{m();var l_=a_(),h_=u_(),lR=tc();function hR(){return Object.keys(lR)}Yt.createCipher=Yt.Cipher=l_.createCipher;Yt.createCipheriv=Yt.Cipheriv=l_.createCipheriv;Yt.createDecipher=Yt.Decipher=h_.createDecipher;Yt.createDecipheriv=Yt.Decipheriv=h_.createDecipheriv;Yt.listCiphers=Yt.getCiphers=hR});var c_=k(Lr=>{m();Lr["des-ecb"]={key:8,iv:0};Lr["des-cbc"]=Lr.des={key:8,iv:8};Lr["des-ede3-cbc"]=Lr.des3={key:24,iv:8};Lr["des-ede3"]={key:24,iv:0};Lr["des-ede-cbc"]={key:16,iv:8};Lr["des-ede"]={key:16,iv:0}});var g_=k(Jt=>{m();var d_=Bb(),lc=Vs(),Qr=Zs(),Cr=c_(),p_=Ao();function cR(e,t){e=e.toLowerCase();var r,i;if(Qr[e])r=Qr[e].key,i=Qr[e].iv;else if(Cr[e])r=Cr[e].key*8,i=Cr[e].iv;else throw new TypeError("invalid suite type");var n=p_(t,!1,r,i);return v_(e,n.key,n.iv)}function dR(e,t){e=e.toLowerCase();var r,i;if(Qr[e])r=Qr[e].key,i=Qr[e].iv;else if(Cr[e])r=Cr[e].key*8,i=Cr[e].iv;else throw new TypeError("invalid suite type");var n=p_(t,!1,r,i);return y_(e,n.key,n.iv)}function v_(e,t,r){if(e=e.toLowerCase(),Qr[e])return lc.createCipheriv(e,t,r);if(Cr[e])return new d_({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function y_(e,t,r){if(e=e.toLowerCase(),Qr[e])return lc.createDecipheriv(e,t,r);if(Cr[e])return new d_({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function pR(){return Object.keys(Cr).concat(lc.getCiphers())}Jt.createCipher=Jt.Cipher=cR;Jt.createCipheriv=Jt.Cipheriv=v_;Jt.createDecipher=Jt.Decipher=dR;Jt.createDecipheriv=Jt.Decipheriv=y_;Jt.listCiphers=Jt.getCiphers=pR});var ei=k((b_,hc)=>{m();(function(e,t){"use strict";function r(A,h){if(!A)throw new Error(h||"Assertion failed")}function i(A,h){A.super_=h;var _=function(){};_.prototype=h.prototype,A.prototype=new _,A.prototype.constructor=A}function n(A,h,_){if(n.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&((h==="le"||h==="be")&&(_=h,h=10),this._init(A||0,h||10,_||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=st().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,_){return h.cmp(_)>0?h:_},n.min=function(h,_){return h.cmp(_)<0?h:_},n.prototype._init=function(h,_,d){if(typeof h=="number")return this._initNumber(h,_,d);if(typeof h=="object")return this._initArray(h,_,d);_==="hex"&&(_=16),r(_===(_|0)&&_>=2&&_<=36),h=h.toString().replace(/\s+/g,"");var f=0;h[0]==="-"&&(f++,this.negative=1),f<h.length&&(_===16?this._parseHex(h,f,d):(this._parseBase(h,_,f),d==="le"&&this._initArray(this.toArray(),_,d)))},n.prototype._initNumber=function(h,_,d){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),d==="le"&&this._initArray(this.toArray(),_,d)},n.prototype._initArray=function(h,_,d){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 f=0;f<this.length;f++)this.words[f]=0;var l,v,g=0;if(d==="be")for(f=h.length-1,l=0;f>=0;f-=3)v=h[f]|h[f-1]<<8|h[f-2]<<16,this.words[l]|=v<<g&67108863,this.words[l+1]=v>>>26-g&67108863,g+=24,g>=26&&(g-=26,l++);else if(d==="le")for(f=0,l=0;f<h.length;f+=3)v=h[f]|h[f+1]<<8|h[f+2]<<16,this.words[l]|=v<<g&67108863,this.words[l+1]=v>>>26-g&67108863,g+=24,g>=26&&(g-=26,l++);return this.strip()};function o(A,h){var _=A.charCodeAt(h);return _>=65&&_<=70?_-55:_>=97&&_<=102?_-87:_-48&15}function s(A,h,_){var d=o(A,_);return _-1>=h&&(d|=o(A,_-1)<<4),d}n.prototype._parseHex=function(h,_,d){this.length=Math.ceil((h.length-_)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var l=0,v=0,g;if(d==="be")for(f=h.length-1;f>=_;f-=2)g=s(h,_,f)<<l,this.words[v]|=g&67108863,l>=18?(l-=18,v+=1,this.words[v]|=g>>>26):l+=8;else{var p=h.length-_;for(f=p%2===0?_+1:_;f<h.length;f+=2)g=s(h,_,f)<<l,this.words[v]|=g&67108863,l>=18?(l-=18,v+=1,this.words[v]|=g>>>26):l+=8}this.strip()};function y(A,h,_,d){for(var f=0,l=Math.min(A.length,_),v=h;v<l;v++){var g=A.charCodeAt(v)-48;f*=d,g>=49?f+=g-49+10:g>=17?f+=g-17+10:f+=g}return f}n.prototype._parseBase=function(h,_,d){this.words=[0],this.length=1;for(var f=0,l=1;l<=67108863;l*=_)f++;f--,l=l/_|0;for(var v=h.length-d,g=v%f,p=Math.min(v,v-g)+d,u=0,w=d;w<p;w+=f)u=y(h,w,w+f,_),this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(g!==0){var E=1;for(u=y(h,w,h.length,_),w=0;w<g;w++)E*=_;this.imuln(E),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},n.prototype.copy=function(h){h.words=new Array(this.length);for(var _=0;_<this.length;_++)h.words[_]=this.words[_];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 b=["","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"],x=[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],B=[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,_){h=h||10,_=_|0||1;var d;if(h===16||h==="hex"){d="";for(var f=0,l=0,v=0;v<this.length;v++){var g=this.words[v],p=((g<<f|l)&16777215).toString(16);l=g>>>24-f&16777215,f+=2,f>=26&&(f-=26,v--),l!==0||v!==this.length-1?d=b[6-p.length]+p+d:d=p+d}for(l!==0&&(d=l.toString(16)+d);d.length%_!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}if(h===(h|0)&&h>=2&&h<=36){var u=x[h],w=B[h];d="";var E=this.clone();for(E.negative=0;!E.isZero();){var c=E.modn(w).toString(h);E=E.idivn(w),E.isZero()?d=c+d:d=b[u-c.length]+c+d}for(this.isZero()&&(d="0"+d);d.length%_!==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 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,_){return r(typeof a<"u"),this.toArrayLike(a,h,_)},n.prototype.toArray=function(h,_){return this.toArrayLike(Array,h,_)},n.prototype.toArrayLike=function(h,_,d){var f=this.byteLength(),l=d||Math.max(1,f);r(f<=l,"byte array longer than desired length"),r(l>0,"Requested array length <= 0"),this.strip();var v=_==="le",g=new h(l),p,u,w=this.clone();if(v){for(u=0;!w.isZero();u++)p=w.andln(255),w.iushrn(8),g[u]=p;for(;u<l;u++)g[u]=0}else{for(u=0;u<l-f;u++)g[u]=0;for(u=0;!w.isZero();u++)p=w.andln(255),w.iushrn(8),g[l-u-1]=p}return g},Math.clz32?n.prototype._countBits=function(h){return 32-Math.clz32(h)}:n.prototype._countBits=function(h){var _=h,d=0;return _>=4096&&(d+=13,_>>>=13),_>=64&&(d+=7,_>>>=7),_>=8&&(d+=4,_>>>=4),_>=2&&(d+=2,_>>>=2),d+_},n.prototype._zeroBits=function(h){if(h===0)return 26;var _=h,d=0;return(_&8191)===0&&(d+=13,_>>>=13),(_&127)===0&&(d+=7,_>>>=7),(_&15)===0&&(d+=4,_>>>=4),(_&3)===0&&(d+=2,_>>>=2),(_&1)===0&&d++,d},n.prototype.bitLength=function(){var h=this.words[this.length-1],_=this._countBits(h);return(this.length-1)*26+_};function R(A){for(var h=new Array(A.bitLength()),_=0;_<h.length;_++){var d=_/26|0,f=_%26;h[_]=(A.words[d]&1<<f)>>>f}return h}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,_=0;_<this.length;_++){var d=this._zeroBits(this.words[_]);if(h+=d,d!==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 _=0;_<h.length;_++)this.words[_]=this.words[_]|h.words[_];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 _;this.length>h.length?_=h:_=this;for(var d=0;d<_.length;d++)this.words[d]=this.words[d]&h.words[d];return this.length=_.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 _,d;this.length>h.length?(_=this,d=h):(_=h,d=this);for(var f=0;f<d.length;f++)this.words[f]=_.words[f]^d.words[f];if(this!==_)for(;f<_.length;f++)this.words[f]=_.words[f];return this.length=_.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 _=Math.ceil(h/26)|0,d=h%26;this._expand(_),d>0&&_--;for(var f=0;f<_;f++)this.words[f]=~this.words[f]&67108863;for(d>0&&(this.words[f]=~this.words[f]&67108863>>26-d,f++);f<this.length;f++)this.words[f]=0;return this.strip()},n.prototype.notn=function(h){return this.clone().inotn(h)},n.prototype.setn=function(h,_){r(typeof h=="number"&&h>=0);var d=h/26|0,f=h%26;return this._expand(d+1),_?this.words[d]=this.words[d]|1<<f:this.words[d]=this.words[d]&~(1<<f),this.strip()},n.prototype.iadd=function(h){var _;if(this.negative!==0&&h.negative===0)return this.negative=0,_=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,_=this.isub(h),h.negative=1,_._normSign();var d,f;this.length>h.length?(d=this,f=h):(d=h,f=this);for(var l=0,v=0;v<f.length;v++)_=(d.words[v]|0)+(f.words[v]|0)+l,this.words[v]=_&67108863,l=_>>>26;for(;l!==0&&v<d.length;v++)_=(d.words[v]|0)+l,this.words[v]=_&67108863,l=_>>>26;if(this.length=d.length,l!==0)this.words[this.length]=l,this.length++;else if(d!==this)for(;v<d.length;v++)this.words[v]=d.words[v];return this},n.prototype.add=function(h){var _;return h.negative!==0&&this.negative===0?(h.negative=0,_=this.sub(h),h.negative^=1,_):h.negative===0&&this.negative!==0?(this.negative=0,_=h.sub(this),this.negative=1,_):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 _=this.iadd(h);return h.negative=1,_._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var d=this.cmp(h);if(d===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,l;d>0?(f=this,l=h):(f=h,l=this);for(var v=0,g=0;g<l.length;g++)_=(f.words[g]|0)-(l.words[g]|0)+v,v=_>>26,this.words[g]=_&67108863;for(;v!==0&&g<f.length;g++)_=(f.words[g]|0)+v,v=_>>26,this.words[g]=_&67108863;if(v===0&&g<f.length&&f!==this)for(;g<f.length;g++)this.words[g]=f.words[g];return this.length=Math.max(this.length,g),f!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(h){return this.clone().isub(h)};function T(A,h,_){_.negative=h.negative^A.negative;var d=A.length+h.length|0;_.length=d,d=d-1|0;var f=A.words[0]|0,l=h.words[0]|0,v=f*l,g=v&67108863,p=v/67108864|0;_.words[0]=g;for(var u=1;u<d;u++){for(var w=p>>>26,E=p&67108863,c=Math.min(u,h.length-1),S=Math.max(0,u-A.length+1);S<=c;S++){var P=u-S|0;f=A.words[P]|0,l=h.words[S]|0,v=f*l+E,w+=v/67108864|0,E=v&67108863}_.words[u]=E|0,p=w|0}return p!==0?_.words[u]=p|0:_.length--,_.strip()}var O=function(h,_,d){var f=h.words,l=_.words,v=d.words,g=0,p,u,w,E=f[0]|0,c=E&8191,S=E>>>13,P=f[1]|0,C=P&8191,L=P>>>13,V=f[2]|0,G=V&8191,Y=V>>>13,Wt=f[3]|0,Q=Wt&8191,ee=Wt>>>13,_a=f[4]|0,ie=_a&8191,ne=_a>>>13,ma=f[5]|0,ae=ma&8191,oe=ma>>>13,wa=f[6]|0,fe=wa&8191,se=wa>>>13,xa=f[7]|0,ue=xa&8191,le=xa>>>13,Ea=f[8]|0,he=Ea&8191,ce=Ea>>>13,Sa=f[9]|0,de=Sa&8191,pe=Sa>>>13,Ma=l[0]|0,ve=Ma&8191,ye=Ma>>>13,Aa=l[1]|0,ge=Aa&8191,be=Aa>>>13,Ba=l[2]|0,_e=Ba&8191,me=Ba>>>13,Ra=l[3]|0,we=Ra&8191,xe=Ra>>>13,ka=l[4]|0,Ee=ka&8191,Se=ka>>>13,Ta=l[5]|0,Me=Ta&8191,Ae=Ta>>>13,Ia=l[6]|0,Be=Ia&8191,Re=Ia>>>13,Oa=l[7]|0,ke=Oa&8191,Te=Oa>>>13,qa=l[8]|0,Ie=qa&8191,Oe=qa>>>13,Da=l[9]|0,qe=Da&8191,De=Da>>>13;d.negative=h.negative^_.negative,d.length=19,p=Math.imul(c,ve),u=Math.imul(c,ye),u=u+Math.imul(S,ve)|0,w=Math.imul(S,ye);var En=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(En>>>26)|0,En&=67108863,p=Math.imul(C,ve),u=Math.imul(C,ye),u=u+Math.imul(L,ve)|0,w=Math.imul(L,ye),p=p+Math.imul(c,ge)|0,u=u+Math.imul(c,be)|0,u=u+Math.imul(S,ge)|0,w=w+Math.imul(S,be)|0;var $e=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+($e>>>26)|0,$e&=67108863,p=Math.imul(G,ve),u=Math.imul(G,ye),u=u+Math.imul(Y,ve)|0,w=Math.imul(Y,ye),p=p+Math.imul(C,ge)|0,u=u+Math.imul(C,be)|0,u=u+Math.imul(L,ge)|0,w=w+Math.imul(L,be)|0,p=p+Math.imul(c,_e)|0,u=u+Math.imul(c,me)|0,u=u+Math.imul(S,_e)|0,w=w+Math.imul(S,me)|0;var Ye=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,p=Math.imul(Q,ve),u=Math.imul(Q,ye),u=u+Math.imul(ee,ve)|0,w=Math.imul(ee,ye),p=p+Math.imul(G,ge)|0,u=u+Math.imul(G,be)|0,u=u+Math.imul(Y,ge)|0,w=w+Math.imul(Y,be)|0,p=p+Math.imul(C,_e)|0,u=u+Math.imul(C,me)|0,u=u+Math.imul(L,_e)|0,w=w+Math.imul(L,me)|0,p=p+Math.imul(c,we)|0,u=u+Math.imul(c,xe)|0,u=u+Math.imul(S,we)|0,w=w+Math.imul(S,xe)|0;var di=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(di>>>26)|0,di&=67108863,p=Math.imul(ie,ve),u=Math.imul(ie,ye),u=u+Math.imul(ne,ve)|0,w=Math.imul(ne,ye),p=p+Math.imul(Q,ge)|0,u=u+Math.imul(Q,be)|0,u=u+Math.imul(ee,ge)|0,w=w+Math.imul(ee,be)|0,p=p+Math.imul(G,_e)|0,u=u+Math.imul(G,me)|0,u=u+Math.imul(Y,_e)|0,w=w+Math.imul(Y,me)|0,p=p+Math.imul(C,we)|0,u=u+Math.imul(C,xe)|0,u=u+Math.imul(L,we)|0,w=w+Math.imul(L,xe)|0,p=p+Math.imul(c,Ee)|0,u=u+Math.imul(c,Se)|0,u=u+Math.imul(S,Ee)|0,w=w+Math.imul(S,Se)|0;var pi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(pi>>>26)|0,pi&=67108863,p=Math.imul(ae,ve),u=Math.imul(ae,ye),u=u+Math.imul(oe,ve)|0,w=Math.imul(oe,ye),p=p+Math.imul(ie,ge)|0,u=u+Math.imul(ie,be)|0,u=u+Math.imul(ne,ge)|0,w=w+Math.imul(ne,be)|0,p=p+Math.imul(Q,_e)|0,u=u+Math.imul(Q,me)|0,u=u+Math.imul(ee,_e)|0,w=w+Math.imul(ee,me)|0,p=p+Math.imul(G,we)|0,u=u+Math.imul(G,xe)|0,u=u+Math.imul(Y,we)|0,w=w+Math.imul(Y,xe)|0,p=p+Math.imul(C,Ee)|0,u=u+Math.imul(C,Se)|0,u=u+Math.imul(L,Ee)|0,w=w+Math.imul(L,Se)|0,p=p+Math.imul(c,Me)|0,u=u+Math.imul(c,Ae)|0,u=u+Math.imul(S,Me)|0,w=w+Math.imul(S,Ae)|0;var vi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(vi>>>26)|0,vi&=67108863,p=Math.imul(fe,ve),u=Math.imul(fe,ye),u=u+Math.imul(se,ve)|0,w=Math.imul(se,ye),p=p+Math.imul(ae,ge)|0,u=u+Math.imul(ae,be)|0,u=u+Math.imul(oe,ge)|0,w=w+Math.imul(oe,be)|0,p=p+Math.imul(ie,_e)|0,u=u+Math.imul(ie,me)|0,u=u+Math.imul(ne,_e)|0,w=w+Math.imul(ne,me)|0,p=p+Math.imul(Q,we)|0,u=u+Math.imul(Q,xe)|0,u=u+Math.imul(ee,we)|0,w=w+Math.imul(ee,xe)|0,p=p+Math.imul(G,Ee)|0,u=u+Math.imul(G,Se)|0,u=u+Math.imul(Y,Ee)|0,w=w+Math.imul(Y,Se)|0,p=p+Math.imul(C,Me)|0,u=u+Math.imul(C,Ae)|0,u=u+Math.imul(L,Me)|0,w=w+Math.imul(L,Ae)|0,p=p+Math.imul(c,Be)|0,u=u+Math.imul(c,Re)|0,u=u+Math.imul(S,Be)|0,w=w+Math.imul(S,Re)|0;var yi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(yi>>>26)|0,yi&=67108863,p=Math.imul(ue,ve),u=Math.imul(ue,ye),u=u+Math.imul(le,ve)|0,w=Math.imul(le,ye),p=p+Math.imul(fe,ge)|0,u=u+Math.imul(fe,be)|0,u=u+Math.imul(se,ge)|0,w=w+Math.imul(se,be)|0,p=p+Math.imul(ae,_e)|0,u=u+Math.imul(ae,me)|0,u=u+Math.imul(oe,_e)|0,w=w+Math.imul(oe,me)|0,p=p+Math.imul(ie,we)|0,u=u+Math.imul(ie,xe)|0,u=u+Math.imul(ne,we)|0,w=w+Math.imul(ne,xe)|0,p=p+Math.imul(Q,Ee)|0,u=u+Math.imul(Q,Se)|0,u=u+Math.imul(ee,Ee)|0,w=w+Math.imul(ee,Se)|0,p=p+Math.imul(G,Me)|0,u=u+Math.imul(G,Ae)|0,u=u+Math.imul(Y,Me)|0,w=w+Math.imul(Y,Ae)|0,p=p+Math.imul(C,Be)|0,u=u+Math.imul(C,Re)|0,u=u+Math.imul(L,Be)|0,w=w+Math.imul(L,Re)|0,p=p+Math.imul(c,ke)|0,u=u+Math.imul(c,Te)|0,u=u+Math.imul(S,ke)|0,w=w+Math.imul(S,Te)|0;var gi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(gi>>>26)|0,gi&=67108863,p=Math.imul(he,ve),u=Math.imul(he,ye),u=u+Math.imul(ce,ve)|0,w=Math.imul(ce,ye),p=p+Math.imul(ue,ge)|0,u=u+Math.imul(ue,be)|0,u=u+Math.imul(le,ge)|0,w=w+Math.imul(le,be)|0,p=p+Math.imul(fe,_e)|0,u=u+Math.imul(fe,me)|0,u=u+Math.imul(se,_e)|0,w=w+Math.imul(se,me)|0,p=p+Math.imul(ae,we)|0,u=u+Math.imul(ae,xe)|0,u=u+Math.imul(oe,we)|0,w=w+Math.imul(oe,xe)|0,p=p+Math.imul(ie,Ee)|0,u=u+Math.imul(ie,Se)|0,u=u+Math.imul(ne,Ee)|0,w=w+Math.imul(ne,Se)|0,p=p+Math.imul(Q,Me)|0,u=u+Math.imul(Q,Ae)|0,u=u+Math.imul(ee,Me)|0,w=w+Math.imul(ee,Ae)|0,p=p+Math.imul(G,Be)|0,u=u+Math.imul(G,Re)|0,u=u+Math.imul(Y,Be)|0,w=w+Math.imul(Y,Re)|0,p=p+Math.imul(C,ke)|0,u=u+Math.imul(C,Te)|0,u=u+Math.imul(L,ke)|0,w=w+Math.imul(L,Te)|0,p=p+Math.imul(c,Ie)|0,u=u+Math.imul(c,Oe)|0,u=u+Math.imul(S,Ie)|0,w=w+Math.imul(S,Oe)|0;var bi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(bi>>>26)|0,bi&=67108863,p=Math.imul(de,ve),u=Math.imul(de,ye),u=u+Math.imul(pe,ve)|0,w=Math.imul(pe,ye),p=p+Math.imul(he,ge)|0,u=u+Math.imul(he,be)|0,u=u+Math.imul(ce,ge)|0,w=w+Math.imul(ce,be)|0,p=p+Math.imul(ue,_e)|0,u=u+Math.imul(ue,me)|0,u=u+Math.imul(le,_e)|0,w=w+Math.imul(le,me)|0,p=p+Math.imul(fe,we)|0,u=u+Math.imul(fe,xe)|0,u=u+Math.imul(se,we)|0,w=w+Math.imul(se,xe)|0,p=p+Math.imul(ae,Ee)|0,u=u+Math.imul(ae,Se)|0,u=u+Math.imul(oe,Ee)|0,w=w+Math.imul(oe,Se)|0,p=p+Math.imul(ie,Me)|0,u=u+Math.imul(ie,Ae)|0,u=u+Math.imul(ne,Me)|0,w=w+Math.imul(ne,Ae)|0,p=p+Math.imul(Q,Be)|0,u=u+Math.imul(Q,Re)|0,u=u+Math.imul(ee,Be)|0,w=w+Math.imul(ee,Re)|0,p=p+Math.imul(G,ke)|0,u=u+Math.imul(G,Te)|0,u=u+Math.imul(Y,ke)|0,w=w+Math.imul(Y,Te)|0,p=p+Math.imul(C,Ie)|0,u=u+Math.imul(C,Oe)|0,u=u+Math.imul(L,Ie)|0,w=w+Math.imul(L,Oe)|0,p=p+Math.imul(c,qe)|0,u=u+Math.imul(c,De)|0,u=u+Math.imul(S,qe)|0,w=w+Math.imul(S,De)|0;var _i=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(_i>>>26)|0,_i&=67108863,p=Math.imul(de,ge),u=Math.imul(de,be),u=u+Math.imul(pe,ge)|0,w=Math.imul(pe,be),p=p+Math.imul(he,_e)|0,u=u+Math.imul(he,me)|0,u=u+Math.imul(ce,_e)|0,w=w+Math.imul(ce,me)|0,p=p+Math.imul(ue,we)|0,u=u+Math.imul(ue,xe)|0,u=u+Math.imul(le,we)|0,w=w+Math.imul(le,xe)|0,p=p+Math.imul(fe,Ee)|0,u=u+Math.imul(fe,Se)|0,u=u+Math.imul(se,Ee)|0,w=w+Math.imul(se,Se)|0,p=p+Math.imul(ae,Me)|0,u=u+Math.imul(ae,Ae)|0,u=u+Math.imul(oe,Me)|0,w=w+Math.imul(oe,Ae)|0,p=p+Math.imul(ie,Be)|0,u=u+Math.imul(ie,Re)|0,u=u+Math.imul(ne,Be)|0,w=w+Math.imul(ne,Re)|0,p=p+Math.imul(Q,ke)|0,u=u+Math.imul(Q,Te)|0,u=u+Math.imul(ee,ke)|0,w=w+Math.imul(ee,Te)|0,p=p+Math.imul(G,Ie)|0,u=u+Math.imul(G,Oe)|0,u=u+Math.imul(Y,Ie)|0,w=w+Math.imul(Y,Oe)|0,p=p+Math.imul(C,qe)|0,u=u+Math.imul(C,De)|0,u=u+Math.imul(L,qe)|0,w=w+Math.imul(L,De)|0;var mi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(mi>>>26)|0,mi&=67108863,p=Math.imul(de,_e),u=Math.imul(de,me),u=u+Math.imul(pe,_e)|0,w=Math.imul(pe,me),p=p+Math.imul(he,we)|0,u=u+Math.imul(he,xe)|0,u=u+Math.imul(ce,we)|0,w=w+Math.imul(ce,xe)|0,p=p+Math.imul(ue,Ee)|0,u=u+Math.imul(ue,Se)|0,u=u+Math.imul(le,Ee)|0,w=w+Math.imul(le,Se)|0,p=p+Math.imul(fe,Me)|0,u=u+Math.imul(fe,Ae)|0,u=u+Math.imul(se,Me)|0,w=w+Math.imul(se,Ae)|0,p=p+Math.imul(ae,Be)|0,u=u+Math.imul(ae,Re)|0,u=u+Math.imul(oe,Be)|0,w=w+Math.imul(oe,Re)|0,p=p+Math.imul(ie,ke)|0,u=u+Math.imul(ie,Te)|0,u=u+Math.imul(ne,ke)|0,w=w+Math.imul(ne,Te)|0,p=p+Math.imul(Q,Ie)|0,u=u+Math.imul(Q,Oe)|0,u=u+Math.imul(ee,Ie)|0,w=w+Math.imul(ee,Oe)|0,p=p+Math.imul(G,qe)|0,u=u+Math.imul(G,De)|0,u=u+Math.imul(Y,qe)|0,w=w+Math.imul(Y,De)|0;var wi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(wi>>>26)|0,wi&=67108863,p=Math.imul(de,we),u=Math.imul(de,xe),u=u+Math.imul(pe,we)|0,w=Math.imul(pe,xe),p=p+Math.imul(he,Ee)|0,u=u+Math.imul(he,Se)|0,u=u+Math.imul(ce,Ee)|0,w=w+Math.imul(ce,Se)|0,p=p+Math.imul(ue,Me)|0,u=u+Math.imul(ue,Ae)|0,u=u+Math.imul(le,Me)|0,w=w+Math.imul(le,Ae)|0,p=p+Math.imul(fe,Be)|0,u=u+Math.imul(fe,Re)|0,u=u+Math.imul(se,Be)|0,w=w+Math.imul(se,Re)|0,p=p+Math.imul(ae,ke)|0,u=u+Math.imul(ae,Te)|0,u=u+Math.imul(oe,ke)|0,w=w+Math.imul(oe,Te)|0,p=p+Math.imul(ie,Ie)|0,u=u+Math.imul(ie,Oe)|0,u=u+Math.imul(ne,Ie)|0,w=w+Math.imul(ne,Oe)|0,p=p+Math.imul(Q,qe)|0,u=u+Math.imul(Q,De)|0,u=u+Math.imul(ee,qe)|0,w=w+Math.imul(ee,De)|0;var xi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(xi>>>26)|0,xi&=67108863,p=Math.imul(de,Ee),u=Math.imul(de,Se),u=u+Math.imul(pe,Ee)|0,w=Math.imul(pe,Se),p=p+Math.imul(he,Me)|0,u=u+Math.imul(he,Ae)|0,u=u+Math.imul(ce,Me)|0,w=w+Math.imul(ce,Ae)|0,p=p+Math.imul(ue,Be)|0,u=u+Math.imul(ue,Re)|0,u=u+Math.imul(le,Be)|0,w=w+Math.imul(le,Re)|0,p=p+Math.imul(fe,ke)|0,u=u+Math.imul(fe,Te)|0,u=u+Math.imul(se,ke)|0,w=w+Math.imul(se,Te)|0,p=p+Math.imul(ae,Ie)|0,u=u+Math.imul(ae,Oe)|0,u=u+Math.imul(oe,Ie)|0,w=w+Math.imul(oe,Oe)|0,p=p+Math.imul(ie,qe)|0,u=u+Math.imul(ie,De)|0,u=u+Math.imul(ne,qe)|0,w=w+Math.imul(ne,De)|0;var Ei=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,p=Math.imul(de,Me),u=Math.imul(de,Ae),u=u+Math.imul(pe,Me)|0,w=Math.imul(pe,Ae),p=p+Math.imul(he,Be)|0,u=u+Math.imul(he,Re)|0,u=u+Math.imul(ce,Be)|0,w=w+Math.imul(ce,Re)|0,p=p+Math.imul(ue,ke)|0,u=u+Math.imul(ue,Te)|0,u=u+Math.imul(le,ke)|0,w=w+Math.imul(le,Te)|0,p=p+Math.imul(fe,Ie)|0,u=u+Math.imul(fe,Oe)|0,u=u+Math.imul(se,Ie)|0,w=w+Math.imul(se,Oe)|0,p=p+Math.imul(ae,qe)|0,u=u+Math.imul(ae,De)|0,u=u+Math.imul(oe,qe)|0,w=w+Math.imul(oe,De)|0;var Si=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Si>>>26)|0,Si&=67108863,p=Math.imul(de,Be),u=Math.imul(de,Re),u=u+Math.imul(pe,Be)|0,w=Math.imul(pe,Re),p=p+Math.imul(he,ke)|0,u=u+Math.imul(he,Te)|0,u=u+Math.imul(ce,ke)|0,w=w+Math.imul(ce,Te)|0,p=p+Math.imul(ue,Ie)|0,u=u+Math.imul(ue,Oe)|0,u=u+Math.imul(le,Ie)|0,w=w+Math.imul(le,Oe)|0,p=p+Math.imul(fe,qe)|0,u=u+Math.imul(fe,De)|0,u=u+Math.imul(se,qe)|0,w=w+Math.imul(se,De)|0;var Mi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,p=Math.imul(de,ke),u=Math.imul(de,Te),u=u+Math.imul(pe,ke)|0,w=Math.imul(pe,Te),p=p+Math.imul(he,Ie)|0,u=u+Math.imul(he,Oe)|0,u=u+Math.imul(ce,Ie)|0,w=w+Math.imul(ce,Oe)|0,p=p+Math.imul(ue,qe)|0,u=u+Math.imul(ue,De)|0,u=u+Math.imul(le,qe)|0,w=w+Math.imul(le,De)|0;var Ai=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,p=Math.imul(de,Ie),u=Math.imul(de,Oe),u=u+Math.imul(pe,Ie)|0,w=Math.imul(pe,Oe),p=p+Math.imul(he,qe)|0,u=u+Math.imul(he,De)|0,u=u+Math.imul(ce,qe)|0,w=w+Math.imul(ce,De)|0;var Bi=(g+p|0)+((u&8191)<<13)|0;g=(w+(u>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,p=Math.imul(de,qe),u=Math.imul(de,De),u=u+Math.imul(pe,qe)|0,w=Math.imul(pe,De);var Ri=(g+p|0)+((u&8191)<<13)|0;return g=(w+(u>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,v[0]=En,v[1]=$e,v[2]=Ye,v[3]=di,v[4]=pi,v[5]=vi,v[6]=yi,v[7]=gi,v[8]=bi,v[9]=_i,v[10]=mi,v[11]=wi,v[12]=xi,v[13]=Ei,v[14]=Si,v[15]=Mi,v[16]=Ai,v[17]=Bi,v[18]=Ri,g!==0&&(v[19]=g,d.length++),d};Math.imul||(O=T);function D(A,h,_){_.negative=h.negative^A.negative,_.length=A.length+h.length;for(var d=0,f=0,l=0;l<_.length-1;l++){var v=f;f=0;for(var g=d&67108863,p=Math.min(l,h.length-1),u=Math.max(0,l-A.length+1);u<=p;u++){var w=l-u,E=A.words[w]|0,c=h.words[u]|0,S=E*c,P=S&67108863;v=v+(S/67108864|0)|0,P=P+g|0,g=P&67108863,v=v+(P>>>26)|0,f+=v>>>26,v&=67108863}_.words[l]=g,d=v,v=f}return d!==0?_.words[l]=d:_.length--,_.strip()}function U(A,h,_){var d=new N;return d.mulp(A,h,_)}n.prototype.mulTo=function(h,_){var d,f=this.length+h.length;return this.length===10&&h.length===10?d=O(this,h,_):f<63?d=T(this,h,_):f<1024?d=D(this,h,_):d=U(this,h,_),d};function N(A,h){this.x=A,this.y=h}N.prototype.makeRBT=function(h){for(var _=new Array(h),d=n.prototype._countBits(h)-1,f=0;f<h;f++)_[f]=this.revBin(f,d,h);return _},N.prototype.revBin=function(h,_,d){if(h===0||h===d-1)return h;for(var f=0,l=0;l<_;l++)f|=(h&1)<<_-l-1,h>>=1;return f},N.prototype.permute=function(h,_,d,f,l,v){for(var g=0;g<v;g++)f[g]=_[h[g]],l[g]=d[h[g]]},N.prototype.transform=function(h,_,d,f,l,v){this.permute(v,h,_,d,f,l);for(var g=1;g<l;g<<=1)for(var p=g<<1,u=Math.cos(2*Math.PI/p),w=Math.sin(2*Math.PI/p),E=0;E<l;E+=p)for(var c=u,S=w,P=0;P<g;P++){var C=d[E+P],L=f[E+P],V=d[E+P+g],G=f[E+P+g],Y=c*V-S*G;G=c*G+S*V,V=Y,d[E+P]=C+V,f[E+P]=L+G,d[E+P+g]=C-V,f[E+P+g]=L-G,P!==p&&(Y=u*c-w*S,S=u*S+w*c,c=Y)}},N.prototype.guessLen13b=function(h,_){var d=Math.max(_,h)|1,f=d&1,l=0;for(d=d/2|0;d;d=d>>>1)l++;return 1<<l+1+f},N.prototype.conjugate=function(h,_,d){if(!(d<=1))for(var f=0;f<d/2;f++){var l=h[f];h[f]=h[d-f-1],h[d-f-1]=l,l=_[f],_[f]=-_[d-f-1],_[d-f-1]=-l}},N.prototype.normalize13b=function(h,_){for(var d=0,f=0;f<_/2;f++){var l=Math.round(h[2*f+1]/_)*8192+Math.round(h[2*f]/_)+d;h[f]=l&67108863,l<67108864?d=0:d=l/67108864|0}return h},N.prototype.convert13b=function(h,_,d,f){for(var l=0,v=0;v<_;v++)l=l+(h[v]|0),d[2*v]=l&8191,l=l>>>13,d[2*v+1]=l&8191,l=l>>>13;for(v=2*_;v<f;++v)d[v]=0;r(l===0),r((l&-8192)===0)},N.prototype.stub=function(h){for(var _=new Array(h),d=0;d<h;d++)_[d]=0;return _},N.prototype.mulp=function(h,_,d){var f=2*this.guessLen13b(h.length,_.length),l=this.makeRBT(f),v=this.stub(f),g=new Array(f),p=new Array(f),u=new Array(f),w=new Array(f),E=new Array(f),c=new Array(f),S=d.words;S.length=f,this.convert13b(h.words,h.length,g,f),this.convert13b(_.words,_.length,w,f),this.transform(g,v,p,u,f,l),this.transform(w,v,E,c,f,l);for(var P=0;P<f;P++){var C=p[P]*E[P]-u[P]*c[P];u[P]=p[P]*c[P]+u[P]*E[P],p[P]=C}return this.conjugate(p,u,f),this.transform(p,u,S,v,f,l),this.conjugate(S,v,f),this.normalize13b(S,f),d.negative=h.negative^_.negative,d.length=h.length+_.length,d.strip()},n.prototype.mul=function(h){var _=new n(null);return _.words=new Array(this.length+h.length),this.mulTo(h,_)},n.prototype.mulf=function(h){var _=new n(null);return _.words=new Array(this.length+h.length),U(this,h,_)},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 _=0,d=0;d<this.length;d++){var f=(this.words[d]|0)*h,l=(f&67108863)+(_&67108863);_>>=26,_+=f/67108864|0,_+=l>>>26,this.words[d]=l&67108863}return _!==0&&(this.words[d]=_,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 _=R(h);if(_.length===0)return new n(1);for(var d=this,f=0;f<_.length&&_[f]===0;f++,d=d.sqr());if(++f<_.length)for(var l=d.sqr();f<_.length;f++,l=l.sqr())_[f]!==0&&(d=d.mul(l));return d},n.prototype.iushln=function(h){r(typeof h=="number"&&h>=0);var _=h%26,d=(h-_)/26,f=67108863>>>26-_<<26-_,l;if(_!==0){var v=0;for(l=0;l<this.length;l++){var g=this.words[l]&f,p=(this.words[l]|0)-g<<_;this.words[l]=p|v,v=g>>>26-_}v&&(this.words[l]=v,this.length++)}if(d!==0){for(l=this.length-1;l>=0;l--)this.words[l+d]=this.words[l];for(l=0;l<d;l++)this.words[l]=0;this.length+=d}return this.strip()},n.prototype.ishln=function(h){return r(this.negative===0),this.iushln(h)},n.prototype.iushrn=function(h,_,d){r(typeof h=="number"&&h>=0);var f;_?f=(_-_%26)/26:f=0;var l=h%26,v=Math.min((h-l)/26,this.length),g=67108863^67108863>>>l<<l,p=d;if(f-=v,f=Math.max(0,f),p){for(var u=0;u<v;u++)p.words[u]=this.words[u];p.length=v}if(v!==0)if(this.length>v)for(this.length-=v,u=0;u<this.length;u++)this.words[u]=this.words[u+v];else this.words[0]=0,this.length=1;var w=0;for(u=this.length-1;u>=0&&(w!==0||u>=f);u--){var E=this.words[u]|0;this.words[u]=w<<26-l|E>>>l,w=E&g}return p&&w!==0&&(p.words[p.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(h,_,d){return r(this.negative===0),this.iushrn(h,_,d)},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 _=h%26,d=(h-_)/26,f=1<<_;if(this.length<=d)return!1;var l=this.words[d];return!!(l&f)},n.prototype.imaskn=function(h){r(typeof h=="number"&&h>=0);var _=h%26,d=(h-_)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=d)return this;if(_!==0&&d++,this.length=Math.min(d,this.length),_!==0){var f=67108863^67108863>>>_<<_;this.words[this.length-1]&=f}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 _=0;_<this.length&&this.words[_]>=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+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 _=0;_<this.length&&this.words[_]<0;_++)this.words[_]+=67108864,this.words[_+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,_,d){var f=h.length+d,l;this._expand(f);var v,g=0;for(l=0;l<h.length;l++){v=(this.words[l+d]|0)+g;var p=(h.words[l]|0)*_;v-=p&67108863,g=(v>>26)-(p/67108864|0),this.words[l+d]=v&67108863}for(;l<this.length-d;l++)v=(this.words[l+d]|0)+g,g=v>>26,this.words[l+d]=v&67108863;if(g===0)return this.strip();for(r(g===-1),g=0,l=0;l<this.length;l++)v=-(this.words[l]|0)+g,g=v>>26,this.words[l]=v&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(h,_){var d=this.length-h.length,f=this.clone(),l=h,v=l.words[l.length-1]|0,g=this._countBits(v);d=26-g,d!==0&&(l=l.ushln(d),f.iushln(d),v=l.words[l.length-1]|0);var p=f.length-l.length,u;if(_!=="mod"){u=new n(null),u.length=p+1,u.words=new Array(u.length);for(var w=0;w<u.length;w++)u.words[w]=0}var E=f.clone()._ishlnsubmul(l,1,p);E.negative===0&&(f=E,u&&(u.words[p]=1));for(var c=p-1;c>=0;c--){var S=(f.words[l.length+c]|0)*67108864+(f.words[l.length+c-1]|0);for(S=Math.min(S/v|0,67108863),f._ishlnsubmul(l,S,c);f.negative!==0;)S--,f.negative=0,f._ishlnsubmul(l,1,c),f.isZero()||(f.negative^=1);u&&(u.words[c]=S)}return u&&u.strip(),f.strip(),_!=="div"&&d!==0&&f.iushrn(d),{div:u||null,mod:f}},n.prototype.divmod=function(h,_,d){if(r(!h.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var f,l,v;return this.negative!==0&&h.negative===0?(v=this.neg().divmod(h,_),_!=="mod"&&(f=v.div.neg()),_!=="div"&&(l=v.mod.neg(),d&&l.negative!==0&&l.iadd(h)),{div:f,mod:l}):this.negative===0&&h.negative!==0?(v=this.divmod(h.neg(),_),_!=="mod"&&(f=v.div.neg()),{div:f,mod:v.mod}):(this.negative&h.negative)!==0?(v=this.neg().divmod(h.neg(),_),_!=="div"&&(l=v.mod.neg(),d&&l.negative!==0&&l.isub(h)),{div:v.div,mod:l}):h.length>this.length||this.cmp(h)<0?{div:new n(0),mod:this}:h.length===1?_==="div"?{div:this.divn(h.words[0]),mod:null}:_==="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,_)},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 _=this.divmod(h);if(_.mod.isZero())return _.div;var d=_.mod.abs(),f=h.abs().iushrn(1),l=h.words[0]&1,v=d.cmp(f);if(v<0||l===1&&v===0)return _.div;var g=new n(1);return g.negative=this.negative^h.negative,_.div.iadd(g)},n.prototype.modn=function(h){r(h<=67108863);for(var _=(1<<26)%h,d=0,f=this.length-1;f>=0;f--)d=(_*d+(this.words[f]|0))%h;return d},n.prototype.idivn=function(h){r(h<=67108863);for(var _=0,d=this.length-1;d>=0;d--){var f=(this.words[d]|0)+_*67108864;this.words[d]=f/h|0,_=f%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 _=this,d=h.clone();_.negative!==0?_=_.umod(h):_=_.clone();for(var f=new n(1),l=new n(0),v=new n(0),g=new n(1),p=0;_.isEven()&&d.isEven();)_.iushrn(1),d.iushrn(1),++p;for(var u=d.clone(),w=_.clone();!_.isZero();){for(var E=0,c=1;(_.words[0]&c)===0&&E<26;++E,c<<=1);if(E>0)for(_.iushrn(E);E-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(u),l.isub(w)),f.iushrn(1),l.iushrn(1);for(var S=0,P=1;(d.words[0]&P)===0&&S<26;++S,P<<=1);if(S>0)for(d.iushrn(S);S-- >0;)(v.isOdd()||g.isOdd())&&(v.iadd(u),g.isub(w)),v.iushrn(1),g.iushrn(1);_.cmp(d)>=0?(_.isub(d),f.isub(v),l.isub(g)):(d.isub(_),v.isub(f),g.isub(l))}return{a:v,b:g,gcd:d.iushln(p)}},n.prototype._invmp=function(h){r(h.negative===0),r(!h.isZero());var _=this,d=h.clone();_.negative!==0?_=_.umod(h):_=_.clone();for(var f=new n(1),l=new n(0),v=d.clone();_.cmpn(1)>0&&d.cmpn(1)>0;){for(var g=0,p=1;(_.words[0]&p)===0&&g<26;++g,p<<=1);if(g>0)for(_.iushrn(g);g-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);for(var u=0,w=1;(d.words[0]&w)===0&&u<26;++u,w<<=1);if(u>0)for(d.iushrn(u);u-- >0;)l.isOdd()&&l.iadd(v),l.iushrn(1);_.cmp(d)>=0?(_.isub(d),f.isub(l)):(d.isub(_),l.isub(f))}var E;return _.cmpn(1)===0?E=f:E=l,E.cmpn(0)<0&&E.iadd(h),E},n.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var _=this.clone(),d=h.clone();_.negative=0,d.negative=0;for(var f=0;_.isEven()&&d.isEven();f++)_.iushrn(1),d.iushrn(1);do{for(;_.isEven();)_.iushrn(1);for(;d.isEven();)d.iushrn(1);var l=_.cmp(d);if(l<0){var v=_;_=d,d=v}else if(l===0||d.cmpn(1)===0)break;_.isub(d)}while(!0);return d.iushln(f)},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 _=h%26,d=(h-_)/26,f=1<<_;if(this.length<=d)return this._expand(d+1),this.words[d]|=f,this;for(var l=f,v=d;l!==0&&v<this.length;v++){var g=this.words[v]|0;g+=l,l=g>>>26,g&=67108863,this.words[v]=g}return l!==0&&(this.words[v]=l,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(h){var _=h<0;if(this.negative!==0&&!_)return-1;if(this.negative===0&&_)return 1;this.strip();var d;if(this.length>1)d=1;else{_&&(h=-h),r(h<=67108863,"Number is too big");var f=this.words[0]|0;d=f===h?0:f<h?-1:1}return this.negative!==0?-d|0:d},n.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var _=this.ucmp(h);return this.negative!==0?-_|0:_},n.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var _=0,d=this.length-1;d>=0;d--){var f=this.words[d]|0,l=h.words[d]|0;if(f!==l){f<l?_=-1:f>l&&(_=1);break}}return _},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 z(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 j={k256:null,p224:null,p192:null,p25519:null};function H(A,h){this.name=A,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()}H.prototype._tmp=function(){var h=new n(null);return h.words=new Array(Math.ceil(this.n/13)),h},H.prototype.ireduce=function(h){var _=h,d;do this.split(_,this.tmp),_=this.imulK(_),_=_.iadd(this.tmp),d=_.bitLength();while(d>this.n);var f=d<this.n?-1:_.ucmp(this.p);return f===0?(_.words[0]=0,_.length=1):f>0?_.isub(this.p):_.strip!==void 0?_.strip():_._strip(),_},H.prototype.split=function(h,_){h.iushrn(this.n,0,_)},H.prototype.imulK=function(h){return h.imul(this.k)};function W(){H.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(W,H),W.prototype.split=function(h,_){for(var d=4194303,f=Math.min(h.length,9),l=0;l<f;l++)_.words[l]=h.words[l];if(_.length=f,h.length<=9){h.words[0]=0,h.length=1;return}var v=h.words[9];for(_.words[_.length++]=v&d,l=10;l<h.length;l++){var g=h.words[l]|0;h.words[l-10]=(g&d)<<4|v>>>22,v=g}v>>>=22,h.words[l-10]=v,v===0&&h.length>10?h.length-=10:h.length-=9},W.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var _=0,d=0;d<h.length;d++){var f=h.words[d]|0;_+=f*977,h.words[d]=_&67108863,_=f*64+(_/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function Z(){H.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(Z,H);function K(){H.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(K,H);function J(){H.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(J,H),J.prototype.imulK=function(h){for(var _=0,d=0;d<h.length;d++){var f=(h.words[d]|0)*19+_,l=f&67108863;f>>>=26,h.words[d]=l,_=f}return _!==0&&(h.words[h.length++]=_),h},n._prime=function(h){if(j[h])return j[h];var _;if(h==="k256")_=new W;else if(h==="p224")_=new Z;else if(h==="p192")_=new K;else if(h==="p25519")_=new J;else throw new Error("Unknown prime "+h);return j[h]=_,_};function z(A){if(typeof A=="string"){var h=n._prime(A);this.m=h.p,this.prime=h}else r(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}z.prototype._verify1=function(h){r(h.negative===0,"red works only with positives"),r(h.red,"red works only with red numbers")},z.prototype._verify2=function(h,_){r((h.negative|_.negative)===0,"red works only with positives"),r(h.red&&h.red===_.red,"red works only with red numbers")},z.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):h.umod(this.m)._forceRed(this)},z.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},z.prototype.add=function(h,_){this._verify2(h,_);var d=h.add(_);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},z.prototype.iadd=function(h,_){this._verify2(h,_);var d=h.iadd(_);return d.cmp(this.m)>=0&&d.isub(this.m),d},z.prototype.sub=function(h,_){this._verify2(h,_);var d=h.sub(_);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},z.prototype.isub=function(h,_){this._verify2(h,_);var d=h.isub(_);return d.cmpn(0)<0&&d.iadd(this.m),d},z.prototype.shl=function(h,_){return this._verify1(h),this.imod(h.ushln(_))},z.prototype.imul=function(h,_){return this._verify2(h,_),this.imod(h.imul(_))},z.prototype.mul=function(h,_){return this._verify2(h,_),this.imod(h.mul(_))},z.prototype.isqr=function(h){return this.imul(h,h.clone())},z.prototype.sqr=function(h){return this.mul(h,h)},z.prototype.sqrt=function(h){if(h.isZero())return h.clone();var _=this.m.andln(3);if(r(_%2===1),_===3){var d=this.m.add(new n(1)).iushrn(2);return this.pow(h,d)}for(var f=this.m.subn(1),l=0;!f.isZero()&&f.andln(1)===0;)l++,f.iushrn(1);r(!f.isZero());var v=new n(1).toRed(this),g=v.redNeg(),p=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new n(2*u*u).toRed(this);this.pow(u,p).cmp(g)!==0;)u.redIAdd(g);for(var w=this.pow(u,f),E=this.pow(h,f.addn(1).iushrn(1)),c=this.pow(h,f),S=l;c.cmp(v)!==0;){for(var P=c,C=0;P.cmp(v)!==0;C++)P=P.redSqr();r(C<S);var L=this.pow(w,new n(1).iushln(S-C-1));E=E.redMul(L),w=L.redSqr(),c=c.redMul(w),S=C}return E},z.prototype.invm=function(h){var _=h._invmp(this.m);return _.negative!==0?(_.negative=0,this.imod(_).redNeg()):this.imod(_)},z.prototype.pow=function(h,_){if(_.isZero())return new n(1).toRed(this);if(_.cmpn(1)===0)return h.clone();var d=4,f=new Array(1<<d);f[0]=new n(1).toRed(this),f[1]=h;for(var l=2;l<f.length;l++)f[l]=this.mul(f[l-1],h);var v=f[0],g=0,p=0,u=_.bitLength()%26;for(u===0&&(u=26),l=_.length-1;l>=0;l--){for(var w=_.words[l],E=u-1;E>=0;E--){var c=w>>E&1;if(v!==f[0]&&(v=this.sqr(v)),c===0&&g===0){p=0;continue}g<<=1,g|=c,p++,!(p!==d&&(l!==0||E!==0))&&(v=this.mul(v,f[g]),p=0,g=0)}u=26}return v},z.prototype.convertTo=function(h){var _=h.umod(this.m);return _===h?_.clone():_},z.prototype.convertFrom=function(h){var _=h.clone();return _.red=null,_},n.mont=function(h){return new X(h)};function X(A){z.call(this,A),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(X,z),X.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},X.prototype.convertFrom=function(h){var _=this.imod(h.mul(this.rinv));return _.red=null,_},X.prototype.imul=function(h,_){if(h.isZero()||_.isZero())return h.words[0]=0,h.length=1,h;var d=h.imul(_),f=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=d.isub(f).iushrn(this.shift),v=l;return l.cmp(this.m)>=0?v=l.isub(this.m):l.cmpn(0)<0&&(v=l.iadd(this.m)),v._forceRed(this)},X.prototype.mul=function(h,_){if(h.isZero()||_.isZero())return new n(0)._forceRed(this);var d=h.mul(_),f=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=d.isub(f).iushrn(this.shift),v=l;return l.cmp(this.m)>=0?v=l.isub(this.m):l.cmpn(0)<0&&(v=l.iadd(this.m)),v._forceRed(this)},X.prototype.invm=function(h){var _=this.imod(h._invmp(this.m).mul(this.r2));return _._forceRed(this)}})(typeof hc>"u"||hc,b_)});var __=k((fL,pc)=>{m();var cc;pc.exports=function(t){return cc||(cc=new ti(null)),cc.generate(t)};function ti(e){this.rand=e}pc.exports.Rand=ti;ti.prototype.generate=function(t){return this._rand(t)};ti.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var r=new Uint8Array(t),i=0;i<r.length;i++)r[i]=this.rand.getByte();return r};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?ti.prototype._rand=function(t){var r=new Uint8Array(t);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?ti.prototype._rand=function(t){var r=new Uint8Array(t);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(ti.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(dc=$s(),typeof dc.randomBytes!="function")throw new Error("Not supported");ti.prototype._rand=function(t){return dc.randomBytes(t)}}catch{}var dc});var vc=k((uL,m_)=>{m();var tn=ei(),vR=__();function rn(e){this.rand=e||new vR.Rand}m_.exports=rn;rn.create=function(t){return new rn(t)};rn.prototype._randbelow=function(t){var r=t.bitLength(),i=Math.ceil(r/8);do var n=new tn(this.rand.generate(i));while(n.cmp(t)>=0);return n};rn.prototype._randrange=function(t,r){var i=r.sub(t);return t.add(this._randbelow(i))};rn.prototype.test=function(t,r,i){var n=t.bitLength(),a=tn.mont(t),o=new tn(1).toRed(a);r||(r=Math.max(1,n/48|0));for(var s=t.subn(1),y=0;!s.testn(y);y++);for(var b=t.shrn(y),x=s.toRed(a),B=!0;r>0;r--){var R=this._randrange(new tn(2),s);i&&i(R);var T=R.toRed(a).redPow(b);if(!(T.cmp(o)===0||T.cmp(x)===0)){for(var O=1;O<y;O++){if(T=T.redSqr(),T.cmp(o)===0)return!1;if(T.cmp(x)===0)break}if(O===y)return!1}}return B};rn.prototype.getDivisor=function(t,r){var i=t.bitLength(),n=tn.mont(t),a=new tn(1).toRed(n);r||(r=Math.max(1,i/48|0));for(var o=t.subn(1),s=0;!o.testn(s);s++);for(var y=t.shrn(s),b=o.toRed(n);r>0;r--){var x=this._randrange(new tn(2),o),B=t.gcd(x);if(B.cmpn(1)!==0)return B;var R=x.toRed(n).redPow(y);if(!(R.cmp(a)===0||R.cmp(b)===0)){for(var T=1;T<s;T++){if(R=R.redSqr(),R.cmp(a)===0)return R.fromRed().subn(1).gcd(t);if(R.cmp(b)===0)break}if(T===s)return R=R.redSqr(),R.fromRed().subn(1).gcd(t)}}return!1}});var wc=k((vL,E_)=>{m();var yR=qi();E_.exports=mc;mc.simpleSieve=bc;mc.fermatTest=_c;var ut=ei(),gR=new ut(24),bR=vc(),w_=new bR,_R=new ut(1),gc=new ut(2),mR=new ut(5),hL=new ut(16),cL=new ut(8),wR=new ut(10),xR=new ut(3),dL=new ut(7),ER=new ut(11),x_=new ut(4),pL=new ut(12),yc=null;function SR(){if(yc!==null)return yc;var e=1048576,t=[];t[0]=2;for(var r=1,i=3;i<e;i+=2){for(var n=Math.ceil(Math.sqrt(i)),a=0;a<r&&t[a]<=n&&i%t[a]!==0;a++);r!==a&&t[a]<=n||(t[r++]=i)}return yc=t,t}function bc(e){for(var t=SR(),r=0;r<t.length;r++)if(e.modn(t[r])===0)return e.cmpn(t[r])===0;return!0}function _c(e){var t=ut.mont(e);return gc.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)===0}function mc(e,t){if(e<16)return t===2||t===5?new ut([140,123]):new ut([140,39]);t=new ut(t);for(var r,i;;){for(r=new ut(yR(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(_R),r.testn(1)||r.iadd(gc),t.cmp(gc)){if(!t.cmp(mR))for(;r.mod(wR).cmp(xR);)r.iadd(x_)}else for(;r.mod(gR).cmp(ER);)r.iadd(x_);if(i=r.shrn(1),bc(i)&&bc(r)&&_c(i)&&_c(r)&&w_.test(i)&&w_.test(r))return r}}});var S_=k((gL,MR)=>{MR.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 R_=k((bL,B_)=>{m();var Lt=ei(),AR=vc(),M_=new AR,BR=new Lt(24),RR=new Lt(11),kR=new Lt(10),TR=new Lt(3),IR=new Lt(7),A_=wc(),OR=qi();B_.exports=Ur;function qR(e,t){return t=t||"utf8",I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),this._pub=new Lt(e),this}function DR(e,t){return t=t||"utf8",I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),this._priv=new Lt(e),this}var Ys={};function NR(e,t){var r=t.toString("hex"),i=[r,e.toString(16)].join("_");if(i in Ys)return Ys[i];var n=0;if(e.isEven()||!A_.simpleSieve||!A_.fermatTest(e)||!M_.test(e))return n+=1,r==="02"||r==="05"?n+=8:n+=4,Ys[i]=n,n;M_.test(e.shrn(1))||(n+=2);var a;switch(r){case"02":e.mod(BR).cmp(RR)&&(n+=8);break;case"05":a=e.mod(kR),a.cmp(TR)&&a.cmp(IR)&&(n+=8);break;default:n+=4}return Ys[i]=n,n}function Ur(e,t,r){this.setGenerator(t),this.__prime=new Lt(e),this._prime=Lt.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=qR,this.setPrivateKey=DR):this._primeCode=8}Object.defineProperty(Ur.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=NR(this.__prime,this.__gen)),this._primeCode}});Ur.prototype.generateKeys=function(){return this._priv||(this._priv=new Lt(OR(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};Ur.prototype.computeSecret=function(e){e=new Lt(e),e=e.toRed(this._prime);var t=e.redPow(this._priv).fromRed(),r=new I.Buffer(t.toArray()),i=this.getPrime();if(r.length<i.length){var n=new I.Buffer(i.length-r.length);n.fill(0),r=I.Buffer.concat([n,r])}return r};Ur.prototype.getPublicKey=function(t){return Js(this._pub,t)};Ur.prototype.getPrivateKey=function(t){return Js(this._priv,t)};Ur.prototype.getPrime=function(e){return Js(this.__prime,e)};Ur.prototype.getGenerator=function(e){return Js(this._gen,e)};Ur.prototype.setGenerator=function(e,t){return t=t||"utf8",I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),this.__gen=e,this._gen=new Lt(e),this};function Js(e,t){var r=new I.Buffer(e.toArray());return t?r.toString(t):r}});var I_=k(ia=>{m();var PR=wc(),k_=S_(),xc=R_();function LR(e){var t=new I.Buffer(k_[e].prime,"hex"),r=new I.Buffer(k_[e].gen,"hex");return new xc(t,r)}var CR={binary:!0,hex:!0,base64:!0};function T_(e,t,r,i){return I.Buffer.isBuffer(t)||CR[t]===void 0?T_(e,"binary",t,r):(t=t||"binary",i=i||"binary",r=r||new I.Buffer([2]),I.Buffer.isBuffer(r)||(r=new I.Buffer(r,i)),typeof e=="number"?new xc(PR(e,r),r,!0):(I.Buffer.isBuffer(e)||(e=new I.Buffer(e,t)),new xc(e,r,!0)))}ia.DiffieHellmanGroup=ia.createDiffieHellmanGroup=ia.getDiffieHellman=LR;ia.createDiffieHellman=ia.DiffieHellman=T_});var O_=k((exports,module)=>{m();var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=(function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch{return function(t,r,i){t[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(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,i=r.eval,n=r.execScript;!i&&n&&(n.call(r,"null"),i=r.eval),forEach(Object_keys(e),function(s){r[s]=e[s]}),forEach(globals,function(s){e[s]&&(r[s]=e[s])});var a=Object_keys(r),o=i.call(r,this.code);return forEach(Object_keys(r),function(s){(s in e||indexOf(a,s)===-1)&&(e[s]=r[s])}),forEach(globals,function(s){s in e||defineProp(e,s,r[s])}),document.body.removeChild(t),o};Script.prototype.runInThisContext=function(){return eval(this.code)};Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(i){e[i]=t[i]}),r};forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}});exports.isContext=function(e){return e instanceof Context};exports.createScript=function(e){return exports.Script(e)};exports.createContext=Script.createContext=function(e){var t=new Context;return typeof e=="object"&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}});var N_=k(D_=>{m();var q_=aa(),UR=re(),FR=D_;FR.define=function(t,r){return new na(t,r)};function na(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}na.prototype._createNamed=function(t){var r;try{r=O_().runInThisContext("(function "+this.name+`(entity) {
12
- this._initNamed(entity);
13
- })`)}catch{r=function(n){this._initNamed(n)}}return UR(r,t),r.prototype._initNamed=function(n){t.call(this,n)},new r(this)};na.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(q_.decoders[t])),this.decoders[t]};na.prototype.decode=function(t,r,i){return this._getDecoder(r).decode(t,i)};na.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(q_.encoders[t])),this.encoders[t]};na.prototype.encode=function(t,r,i){return this._getEncoder(r).encode(t,i)}});var L_=k(P_=>{m();var jR=re();function Ct(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}P_.Reporter=Ct;Ct.prototype.isError=function(t){return t instanceof oa};Ct.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}};Ct.prototype.restore=function(t){var r=this._reporterState;r.obj=t.obj,r.path=r.path.slice(0,t.pathLen)};Ct.prototype.enterKey=function(t){return this._reporterState.path.push(t)};Ct.prototype.exitKey=function(t){var r=this._reporterState;r.path=r.path.slice(0,t-1)};Ct.prototype.leaveKey=function(t,r,i){var n=this._reporterState;this.exitKey(t),n.obj!==null&&(n.obj[r]=i)};Ct.prototype.path=function(){return this._reporterState.path.join("/")};Ct.prototype.enterObject=function(){var t=this._reporterState,r=t.obj;return t.obj={},r};Ct.prototype.leaveObject=function(t){var r=this._reporterState,i=r.obj;return r.obj=t,i};Ct.prototype.error=function(t){var r,i=this._reporterState,n=t instanceof oa;if(n?r=t:r=new oa(i.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),t.message||t,t.stack),!i.options.partial)throw r;return n||i.errors.push(r),r};Ct.prototype.wrapResult=function(t){var r=this._reporterState;return r.options.partial?{result:this.isError(t)?null:t,errors:r.errors}:t};function oa(e,t){this.path=e,this.rethrow(t)}jR(oa,Error);oa.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,oa),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this}});var Sc=k(Ec=>{m();var zR=re(),Qs=fa().Reporter,ko=st().Buffer;function gr(e,t){if(Qs.call(this,t),!ko.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}zR(gr,Qs);Ec.DecoderBuffer=gr;gr.prototype.save=function(){return{offset:this.offset,reporter:Qs.prototype.save.call(this)}};gr.prototype.restore=function(t){var r=new gr(this.base);return r.offset=t.offset,r.length=this.offset,this.offset=t.offset,Qs.prototype.restore.call(this,t.reporter),r};gr.prototype.isEmpty=function(){return this.offset===this.length};gr.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")};gr.prototype.skip=function(t,r){if(!(this.offset+t<=this.length))return this.error(r||"DecoderBuffer overrun");var i=new gr(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+t,this.offset+=t,i};gr.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)};function Xs(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(r){return r instanceof Xs||(r=new Xs(r,t)),this.length+=r.length,r},this);else if(typeof e=="number"){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if(typeof e=="string")this.value=e,this.length=ko.byteLength(e);else if(ko.isBuffer(e))this.value=e,this.length=e.length;else return t.error("Unsupported type: "+typeof e)}Ec.EncoderBuffer=Xs;Xs.prototype.join=function(t,r){return t||(t=new ko(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(i){i.join(t,r),r+=i.length}):(typeof this.value=="number"?t[r]=this.value:typeof this.value=="string"?t.write(this.value,r):ko.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t}});var F_=k((kL,U_)=>{m();var ZR=fa().Reporter,HR=fa().EncoderBuffer,WR=fa().DecoderBuffer,bt=Xn(),C_=["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"],KR=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(C_),GR=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Ke(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||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())}U_.exports=Ke;var VR=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Ke.prototype.clone=function(){var t=this._baseState,r={};VR.forEach(function(n){r[n]=t[n]});var i=new this.constructor(r.parent);return i._baseState=r,i};Ke.prototype._wrap=function(){var t=this._baseState;KR.forEach(function(r){this[r]=function(){var n=new this.constructor(this);return t.children.push(n),n[r].apply(n,arguments)}},this)};Ke.prototype._init=function(t){var r=this._baseState;bt(r.parent===null),t.call(this),r.children=r.children.filter(function(i){return i._baseState.parent===this},this),bt.equal(r.children.length,1,"Root node can have only one child")};Ke.prototype._useArgs=function(t){var r=this._baseState,i=t.filter(function(n){return n instanceof this.constructor},this);t=t.filter(function(n){return!(n instanceof this.constructor)},this),i.length!==0&&(bt(r.children===null),r.children=i,i.forEach(function(n){n._baseState.parent=this},this)),t.length!==0&&(bt(r.args===null),r.args=t,r.reverseArgs=t.map(function(n){if(typeof n!="object"||n.constructor!==Object)return n;var a={};return Object.keys(n).forEach(function(o){o==(o|0)&&(o|=0);var s=n[o];a[s]=o}),a}))};GR.forEach(function(e){Ke.prototype[e]=function(){var r=this._baseState;throw new Error(e+" not implemented for encoding: "+r.enc)}});C_.forEach(function(e){Ke.prototype[e]=function(){var r=this._baseState,i=Array.prototype.slice.call(arguments);return bt(r.tag===null),r.tag=e,this._useArgs(i),this}});Ke.prototype.use=function(t){bt(t);var r=this._baseState;return bt(r.use===null),r.use=t,this};Ke.prototype.optional=function(){var t=this._baseState;return t.optional=!0,this};Ke.prototype.def=function(t){var r=this._baseState;return bt(r.default===null),r.default=t,r.optional=!0,this};Ke.prototype.explicit=function(t){var r=this._baseState;return bt(r.explicit===null&&r.implicit===null),r.explicit=t,this};Ke.prototype.implicit=function(t){var r=this._baseState;return bt(r.explicit===null&&r.implicit===null),r.implicit=t,this};Ke.prototype.obj=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return t.obj=!0,r.length!==0&&this._useArgs(r),this};Ke.prototype.key=function(t){var r=this._baseState;return bt(r.key===null),r.key=t,this};Ke.prototype.any=function(){var t=this._baseState;return t.any=!0,this};Ke.prototype.choice=function(t){var r=this._baseState;return bt(r.choice===null),r.choice=t,this._useArgs(Object.keys(t).map(function(i){return t[i]})),this};Ke.prototype.contains=function(t){var r=this._baseState;return bt(r.use===null),r.contains=t,this};Ke.prototype._decode=function(t,r){var i=this._baseState;if(i.parent===null)return t.wrapResult(i.children[0]._decode(t,r));var n=i.default,a=!0,o=null;if(i.key!==null&&(o=t.enterKey(i.key)),i.optional){var s=null;if(i.explicit!==null?s=i.explicit:i.implicit!==null?s=i.implicit:i.tag!==null&&(s=i.tag),s===null&&!i.any){var y=t.save();try{i.choice===null?this._decodeGeneric(i.tag,t,r):this._decodeChoice(t,r),a=!0}catch{a=!1}t.restore(y)}else if(a=this._peekTag(t,s,i.any),t.isError(a))return a}var b;if(i.obj&&a&&(b=t.enterObject()),a){if(i.explicit!==null){var x=this._decodeTag(t,i.explicit);if(t.isError(x))return x;t=x}var B=t.offset;if(i.use===null&&i.choice===null){if(i.any)var y=t.save();var R=this._decodeTag(t,i.implicit!==null?i.implicit:i.tag,i.any);if(t.isError(R))return R;i.any?n=t.raw(y):t=R}if(r&&r.track&&i.tag!==null&&r.track(t.path(),B,t.length,"tagged"),r&&r.track&&i.tag!==null&&r.track(t.path(),t.offset,t.length,"content"),i.any?n=n:i.choice===null?n=this._decodeGeneric(i.tag,t,r):n=this._decodeChoice(t,r),t.isError(n))return n;if(!i.any&&i.choice===null&&i.children!==null&&i.children.forEach(function(D){D._decode(t,r)}),i.contains&&(i.tag==="octstr"||i.tag==="bitstr")){var T=new WR(n);n=this._getUse(i.contains,t._reporterState.obj)._decode(T,r)}}return i.obj&&a&&(n=t.leaveObject(b)),i.key!==null&&(n!==null||a===!0)?t.leaveKey(o,i.key,n):o!==null&&t.exitKey(o),n};Ke.prototype._decodeGeneric=function(t,r,i){var n=this._baseState;return t==="seq"||t==="set"?null:t==="seqof"||t==="setof"?this._decodeList(r,t,n.args[0],i):/str$/.test(t)?this._decodeStr(r,t,i):t==="objid"&&n.args?this._decodeObjid(r,n.args[0],n.args[1],i):t==="objid"?this._decodeObjid(r,null,null,i):t==="gentime"||t==="utctime"?this._decodeTime(r,t,i):t==="null_"?this._decodeNull(r,i):t==="bool"?this._decodeBool(r,i):t==="objDesc"?this._decodeStr(r,t,i):t==="int"||t==="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: "+t)};Ke.prototype._getUse=function(t,r){var i=this._baseState;return i.useDecoder=this._use(t,r),bt(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};Ke.prototype._decodeChoice=function(t,r){var i=this._baseState,n=null,a=!1;return Object.keys(i.choice).some(function(o){var s=t.save(),y=i.choice[o];try{var b=y._decode(t,r);if(t.isError(b))return!1;n={type:o,value:b},a=!0}catch{return t.restore(s),!1}return!0},this),a?n:t.error("Choice not matched")};Ke.prototype._createEncoderBuffer=function(t){return new HR(t,this.reporter)};Ke.prototype._encode=function(t,r,i){var n=this._baseState;if(!(n.default!==null&&n.default===t)){var a=this._encodeValue(t,r,i);if(a!==void 0&&!this._skipDefault(a,r,i))return a}};Ke.prototype._encodeValue=function(t,r,i){var n=this._baseState;if(n.parent===null)return n.children[0]._encode(t,r||new ZR);var y=null;if(this.reporter=r,n.optional&&t===void 0)if(n.default!==null)t=n.default;else return;var a=null,o=!1;if(n.any)y=this._createEncoderBuffer(t);else if(n.choice)y=this._encodeChoice(t,r);else if(n.contains)a=this._getUse(n.contains,i)._encode(t,r),o=!0;else if(n.children)a=n.children.map(function(B){if(B._baseState.tag==="null_")return B._encode(null,r,t);if(B._baseState.key===null)return r.error("Child should have a key");var R=r.enterKey(B._baseState.key);if(typeof t!="object")return r.error("Child expected, but input is not object");var T=B._encode(t[B._baseState.key],r,t);return r.leaveKey(R),T},this).filter(function(B){return B}),a=this._createEncoderBuffer(a);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(t))return r.error("seqof/setof, but data is not Array");var s=this.clone();s._baseState.implicit=null,a=this._createEncoderBuffer(t.map(function(B){var R=this._baseState;return this._getUse(R.args[0],t)._encode(B,r)},s))}else n.use!==null?y=this._getUse(n.use,i)._encode(t,r):(a=this._encodePrimitive(n.tag,t),o=!0);var y;if(!n.any&&n.choice===null){var b=n.implicit!==null?n.implicit:n.tag,x=n.implicit===null?"universal":"context";b===null?n.use===null&&r.error("Tag could be omitted only for .use()"):n.use===null&&(y=this._encodeComposite(b,o,x,a))}return n.explicit!==null&&(y=this._encodeComposite(n.explicit,!1,"context",y)),y};Ke.prototype._encodeChoice=function(t,r){var i=this._baseState,n=i.choice[t.type];return n||bt(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(t.value,r)};Ke.prototype._encodePrimitive=function(t,r){var i=this._baseState;if(/str$/.test(t))return this._encodeStr(r,t);if(t==="objid"&&i.args)return this._encodeObjid(r,i.reverseArgs[0],i.args[1]);if(t==="objid")return this._encodeObjid(r,null,null);if(t==="gentime"||t==="utctime")return this._encodeTime(r,t);if(t==="null_")return this._encodeNull();if(t==="int"||t==="enum")return this._encodeInt(r,i.args&&i.reverseArgs[0]);if(t==="bool")return this._encodeBool(r);if(t==="objDesc")return this._encodeStr(r,t);throw new Error("Unsupported tag: "+t)};Ke.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)};Ke.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}});var fa=k(j_=>{m();var eu=j_;eu.Reporter=L_().Reporter;eu.DecoderBuffer=Sc().DecoderBuffer;eu.EncoderBuffer=Sc().EncoderBuffer;eu.Node=F_()});var Z_=k(nn=>{m();var z_=Mc();nn.tagClass={0:"universal",1:"application",2:"context",3:"private"};nn.tagClassByName=z_._reverse(nn.tagClass);nn.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"};nn.tagByName=z_._reverse(nn.tag)});var Mc=k(W_=>{m();var H_=W_;H_._reverse=function(t){var r={};return Object.keys(t).forEach(function(i){(i|0)==i&&(i=i|0);var n=t[i];r[n]=i}),r};H_.der=Z_()});var Rc=k((LL,$_)=>{m();var $R=re(),Ac=aa(),tu=Ac.base,YR=Ac.bignum,K_=Ac.constants.der;function G_(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Bt,this.tree._init(e.body)}$_.exports=G_;G_.prototype.decode=function(t,r){return t instanceof tu.DecoderBuffer||(t=new tu.DecoderBuffer(t,r)),this.tree._decode(t,r)};function Bt(e){tu.Node.call(this,"der",e)}$R(Bt,tu.Node);Bt.prototype._peekTag=function(t,r,i){if(t.isEmpty())return!1;var n=t.save(),a=Bc(t,'Failed to peek tag: "'+r+'"');return t.isError(a)?a:(t.restore(n),a.tag===r||a.tagStr===r||a.tagStr+"of"===r||i)};Bt.prototype._decodeTag=function(t,r,i){var n=Bc(t,'Failed to decode tag of "'+r+'"');if(t.isError(n))return n;var a=V_(t,n.primitive,'Failed to get length of "'+r+'"');if(t.isError(a))return a;if(!i&&n.tag!==r&&n.tagStr!==r&&n.tagStr+"of"!==r)return t.error('Failed to match tag: "'+r+'"');if(n.primitive||a!==null)return t.skip(a,'Failed to match body of: "'+r+'"');var o=t.save(),s=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(s)?s:(a=t.offset-o.offset,t.restore(o),t.skip(a,'Failed to match body of: "'+r+'"'))};Bt.prototype._skipUntilEnd=function(t,r){for(;;){var i=Bc(t,r);if(t.isError(i))return i;var n=V_(t,i.primitive,r);if(t.isError(n))return n;var a;if(i.primitive||n!==null?a=t.skip(n):a=this._skipUntilEnd(t,r),t.isError(a))return a;if(i.tagStr==="end")break}};Bt.prototype._decodeList=function(t,r,i,n){for(var a=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var s=i.decode(t,"der",n);if(t.isError(s)&&o)break;a.push(s)}return a};Bt.prototype._decodeStr=function(t,r){if(r==="bitstr"){var i=t.readUInt8();return t.isError(i)?i:{unused:i,data:t.raw()}}else if(r==="bmpstr"){var n=t.raw();if(n.length%2===1)return t.error("Decoding of string type: bmpstr length mismatch");for(var a="",o=0;o<n.length/2;o++)a+=String.fromCharCode(n.readUInt16BE(o*2));return a}else if(r==="numstr"){var s=t.raw().toString("ascii");return this._isNumstr(s)?s:t.error("Decoding of string type: numstr unsupported characters")}else{if(r==="octstr")return t.raw();if(r==="objDesc")return t.raw();if(r==="printstr"){var y=t.raw().toString("ascii");return this._isPrintstr(y)?y:t.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(r)?t.raw().toString():t.error("Decoding of string type: "+r+" unsupported")}};Bt.prototype._decodeObjid=function(t,r,i){for(var n,a=[],o=0;!t.isEmpty();){var s=t.readUInt8();o<<=7,o|=s&127,(s&128)===0&&(a.push(o),o=0)}s&128&&a.push(o);var y=a[0]/40|0,b=a[0]%40;if(i?n=a:n=[y,b].concat(a.slice(1)),r){var x=r[n.join(" ")];x===void 0&&(x=r[n.join(".")]),x!==void 0&&(n=x)}return n};Bt.prototype._decodeTime=function(t,r){var i=t.raw().toString();if(r==="gentime")var n=i.slice(0,4)|0,a=i.slice(4,6)|0,o=i.slice(6,8)|0,s=i.slice(8,10)|0,y=i.slice(10,12)|0,b=i.slice(12,14)|0;else if(r==="utctime"){var n=i.slice(0,2)|0,a=i.slice(2,4)|0,o=i.slice(4,6)|0,s=i.slice(6,8)|0,y=i.slice(8,10)|0,b=i.slice(10,12)|0;n<70?n=2e3+n:n=1900+n}else return t.error("Decoding "+r+" time is not supported yet");return Date.UTC(n,a-1,o,s,y,b,0)};Bt.prototype._decodeNull=function(t){return null};Bt.prototype._decodeBool=function(t){var r=t.readUInt8();return t.isError(r)?r:r!==0};Bt.prototype._decodeInt=function(t,r){var i=t.raw(),n=new YR(i);return r&&(n=r[n.toString(10)]||n),n};Bt.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getDecoder("der").tree};function Bc(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var i=K_.tagClass[r>>6],n=(r&32)===0;if((r&31)===31){var a=r;for(r=0;(a&128)===128;){if(a=e.readUInt8(t),e.isError(a))return a;r<<=7,r|=a&127}}else r&=31;var o=K_.tag[r];return{cls:i,primitive:n,tag:r,tagStr:o}}function V_(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&i===128)return null;if((i&128)===0)return i;var n=i&127;if(n>4)return e.error("length octect is too long");i=0;for(var a=0;a<n;a++){i<<=8;var o=e.readUInt8(r);if(e.isError(o))return o;i|=o}return i}});var J_=k((UL,Y_)=>{m();var JR=re(),XR=st().Buffer,kc=Rc();function Tc(e){kc.call(this,e),this.enc="pem"}JR(Tc,kc);Y_.exports=Tc;Tc.prototype.decode=function(t,r){for(var i=t.toString().split(/[\r\n]+/g),n=r.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,o=-1,s=-1,y=0;y<i.length;y++){var b=i[y].match(a);if(b!==null&&b[2]===n)if(o===-1){if(b[1]!=="BEGIN")break;o=y}else{if(b[1]!=="END")break;s=y;break}}if(o===-1||s===-1)throw new Error("PEM section not found for: "+n);var x=i.slice(o+1,s).join("");x.replace(/[^a-z0-9\+\/=]+/gi,"");var B=new XR(x,"base64");return kc.prototype.decode.call(this,B,r)}});var em=k(Q_=>{m();var X_=Q_;X_.der=Rc();X_.pem=J_()});var Oc=k((ZL,nm)=>{m();var QR=re(),Fr=st().Buffer,tm=aa(),rm=tm.base,Ic=tm.constants.der;function im(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Xt,this.tree._init(e.body)}nm.exports=im;im.prototype.encode=function(t,r){return this.tree._encode(t,r).join()};function Xt(e){rm.Node.call(this,"der",e)}QR(Xt,rm.Node);Xt.prototype._encodeComposite=function(t,r,i,n){var a=ek(t,r,i,this.reporter);if(n.length<128){var y=new Fr(2);return y[0]=a,y[1]=n.length,this._createEncoderBuffer([y,n])}for(var o=1,s=n.length;s>=256;s>>=8)o++;var y=new Fr(2+o);y[0]=a,y[1]=128|o;for(var s=1+o,b=n.length;b>0;s--,b>>=8)y[s]=b&255;return this._createEncoderBuffer([y,n])};Xt.prototype._encodeStr=function(t,r){if(r==="bitstr")return this._createEncoderBuffer([t.unused|0,t.data]);if(r==="bmpstr"){for(var i=new Fr(t.length*2),n=0;n<t.length;n++)i.writeUInt16BE(t.charCodeAt(n),n*2);return this._createEncoderBuffer(i)}else return r==="numstr"?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):r==="printstr"?this._isPrintstr(t)?this._createEncoderBuffer(t):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(t):r==="objDesc"?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+r+" unsupported")};Xt.prototype._encodeObjid=function(t,r,i){if(typeof t=="string"){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=r[t].split(/[\s\.]+/g);for(var n=0;n<t.length;n++)t[n]|=0}else if(Array.isArray(t)){t=t.slice();for(var n=0;n<t.length;n++)t[n]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!i){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,t[0]*40+t[1])}for(var a=0,n=0;n<t.length;n++){var o=t[n];for(a++;o>=128;o>>=7)a++}for(var s=new Fr(a),y=s.length-1,n=t.length-1;n>=0;n--){var o=t[n];for(s[y--]=o&127;(o>>=7)>0;)s[y--]=128|o&127}return this._createEncoderBuffer(s)};function Ut(e){return e<10?"0"+e:e}Xt.prototype._encodeTime=function(t,r){var i,n=new Date(t);return r==="gentime"?i=[Ut(n.getFullYear()),Ut(n.getUTCMonth()+1),Ut(n.getUTCDate()),Ut(n.getUTCHours()),Ut(n.getUTCMinutes()),Ut(n.getUTCSeconds()),"Z"].join(""):r==="utctime"?i=[Ut(n.getFullYear()%100),Ut(n.getUTCMonth()+1),Ut(n.getUTCDate()),Ut(n.getUTCHours()),Ut(n.getUTCMinutes()),Ut(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(i,"octstr")};Xt.prototype._encodeNull=function(){return this._createEncoderBuffer("")};Xt.prototype._encodeInt=function(t,r){if(typeof t=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=r[t]}if(typeof t!="number"&&!Fr.isBuffer(t)){var i=t.toArray();!t.sign&&i[0]&128&&i.unshift(0),t=new Fr(i)}if(Fr.isBuffer(t)){var n=t.length;t.length===0&&n++;var o=new Fr(n);return t.copy(o),t.length===0&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var n=1,a=t;a>=256;a>>=8)n++;for(var o=new Array(n),a=o.length-1;a>=0;a--)o[a]=t&255,t>>=8;return o[0]&128&&o.unshift(0),this._createEncoderBuffer(new Fr(o))};Xt.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)};Xt.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getEncoder("der").tree};Xt.prototype._skipDefault=function(t,r,i){var n=this._baseState,a;if(n.default===null)return!1;var o=t.join();if(n.defaultBuffer===void 0&&(n.defaultBuffer=this._encodeValue(n.default,r,i).join()),o.length!==n.defaultBuffer.length)return!1;for(a=0;a<o.length;a++)if(o[a]!==n.defaultBuffer[a])return!1;return!0};function ek(e,t,r,i){var n;if(e==="seqof"?e="seq":e==="setof"&&(e="set"),Ic.tagByName.hasOwnProperty(e))n=Ic.tagByName[e];else if(typeof e=="number"&&(e|0)===e)n=e;else return i.error("Unknown tag: "+e);return n>=31?i.error("Multi-octet tag encoding unsupported"):(t||(n|=32),n|=Ic.tagClassByName[r||"universal"]<<6,n)}});var om=k((WL,am)=>{m();var tk=re(),qc=Oc();function Dc(e){qc.call(this,e),this.enc="pem"}tk(Dc,qc);am.exports=Dc;Dc.prototype.encode=function(t,r){for(var i=qc.prototype.encode.call(this,t),n=i.toString("base64"),a=["-----BEGIN "+r.label+"-----"],o=0;o<n.length;o+=64)a.push(n.slice(o,o+64));return a.push("-----END "+r.label+"-----"),a.join(`
14
- `)}});var um=k(sm=>{m();var fm=sm;fm.der=Oc();fm.pem=om()});var aa=k(lm=>{m();var sa=lm;sa.bignum=ei();sa.define=N_().define;sa.base=fa();sa.constants=Mc();sa.decoders=em();sa.encoders=um()});var pm=k((JL,dm)=>{"use strict";m();var Qt=aa(),hm=Qt.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),rk=Qt.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),Nc=Qt.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),ik=Qt.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Nc),this.key("subjectPublicKey").bitstr())}),nk=Qt.define("RelativeDistinguishedName",function(){this.setof(rk)}),ak=Qt.define("RDNSequence",function(){this.seqof(nk)}),cm=Qt.define("Name",function(){this.choice({rdnSequence:this.use(ak)})}),ok=Qt.define("Validity",function(){this.seq().obj(this.key("notBefore").use(hm),this.key("notAfter").use(hm))}),fk=Qt.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),sk=Qt.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(Nc),this.key("issuer").use(cm),this.key("validity").use(ok),this.key("subject").use(cm),this.key("subjectPublicKeyInfo").use(ik),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(fk).optional())}),uk=Qt.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(sk),this.key("signatureAlgorithm").use(Nc),this.key("signatureValue").bitstr())});dm.exports=uk});var ym=k(tr=>{"use strict";m();var er=aa();tr.certificate=pm();var lk=er.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())});tr.RSAPrivateKey=lk;var hk=er.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});tr.RSAPublicKey=hk;var vm=er.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())}),ck=er.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(vm),this.key("subjectPublicKey").bitstr())});tr.PublicKey=ck;var dk=er.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(vm),this.key("subjectPrivateKey").octstr())});tr.PrivateKey=dk;var pk=er.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())});tr.EncryptedPrivateKey=pk;var vk=er.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())});tr.DSAPrivateKey=vk;tr.DSAparam=er.define("DSAparam",function(){this.int()});var yk=er.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),gk=er.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(yk),this.key("publicKey").optional().explicit(1).bitstr())});tr.ECPrivateKey=gk;tr.signature=er.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var gm=k((tC,bk)=>{bk.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 _m=k((rC,bm)=>{"use strict";m();var _k=/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,mk=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,wk=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,xk=Ao(),Ek=Vs(),ru=Ne().Buffer;bm.exports=function(e,t){var r=e.toString(),i=r.match(_k),n;if(i){var o="aes"+i[1],s=ru.from(i[2],"hex"),y=ru.from(i[3].replace(/[\r\n]/g,""),"base64"),b=xk(t,s.slice(0,8),parseInt(i[1],10)).key,x=[],B=Ek.createDecipheriv(o,b,s);x.push(B.update(y)),x.push(B.final()),n=ru.concat(x)}else{var a=r.match(wk);n=ru.from(a[2].replace(/[\r\n]/g,""),"base64")}var R=r.match(mk)[1];return{tag:R,data:n}}});var Lc=k((nC,wm)=>{"use strict";m();var St=ym(),Sk=gm(),Mk=_m(),Ak=Vs(),Bk=Kh().pbkdf2Sync,Pc=Ne().Buffer;function Rk(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),n=Sk[e.algorithm.decrypt.cipher.algo.join(".")],a=e.algorithm.decrypt.cipher.iv,o=e.subjectPrivateKey,s=parseInt(n.split("-")[1],10)/8,y=Bk(t,r,i,s,"sha1"),b=Ak.createDecipheriv(n,y,a),x=[];return x.push(b.update(o)),x.push(b.final()),Pc.concat(x)}function mm(e){var t;typeof e=="object"&&!Pc.isBuffer(e)&&(t=e.passphrase,e=e.key),typeof e=="string"&&(e=Pc.from(e));var r=Mk(e,t),i=r.tag,n=r.data,a,o;switch(i){case"CERTIFICATE":o=St.certificate.decode(n,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(o||(o=St.PublicKey.decode(n,"der")),a=o.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return St.RSAPublicKey.decode(o.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return o.subjectPrivateKey=o.subjectPublicKey,{type:"ec",data:o};case"1.2.840.10040.4.1":return o.algorithm.params.pub_key=St.DSAparam.decode(o.subjectPublicKey.data,"der"),{type:"dsa",data:o.algorithm.params};default:throw new Error("unknown key id "+a)}case"ENCRYPTED PRIVATE KEY":n=St.EncryptedPrivateKey.decode(n,"der"),n=Rk(n,t);case"PRIVATE KEY":switch(o=St.PrivateKey.decode(n,"der"),a=o.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return St.RSAPrivateKey.decode(o.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:o.algorithm.curve,privateKey:St.ECPrivateKey.decode(o.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return o.algorithm.params.priv_key=St.DSAparam.decode(o.subjectPrivateKey,"der"),{type:"dsa",params:o.algorithm.params};default:throw new Error("unknown key id "+a)}case"RSA PUBLIC KEY":return St.RSAPublicKey.decode(n,"der");case"RSA PRIVATE KEY":return St.RSAPrivateKey.decode(n,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:St.DSAPrivateKey.decode(n,"der")};case"EC PRIVATE KEY":return n=St.ECPrivateKey.decode(n,"der"),{curve:n.parameters.value,privateKey:n.privateKey};default:throw new Error("unknown key type "+i)}}mm.signature=St.signature;wm.exports=mm});var Uc=k((oC,xm)=>{m();var kk=bo(),Cc=Ne().Buffer;xm.exports=function(e,t){for(var r=Cc.alloc(0),i=0,n;r.length<t;)n=Tk(i++),r=Cc.concat([r,kk("sha1").update(e).update(n).digest()]);return r.slice(0,t)};function Tk(e){var t=Cc.allocUnsafe(4);return t.writeUInt32BE(e,0),t}});var Fc=k((sC,Em)=>{m();Em.exports=function(t,r){for(var i=t.length,n=-1;++n<i;)t[n]^=r[n];return t}});var jc=k((lC,Mm)=>{m();var Sm=ei(),Ik=Ne().Buffer;function Ok(e,t){return Ik.from(e.toRed(Sm.mont(t.modulus)).redPow(new Sm(t.publicExponent)).fromRed().toArray())}Mm.exports=Ok});var Bm=k((Am,zc)=>{m();(function(e,t){"use strict";function r(d,f){if(!d)throw new Error(f||"Assertion failed")}function i(d,f){d.super_=f;var l=function(){};l.prototype=f.prototype,d.prototype=new l,d.prototype.constructor=d}function n(d,f,l){if(n.isBN(d))return d;this.negative=0,this.words=null,this.length=0,this.red=null,d!==null&&((f==="le"||f==="be")&&(l=f,f=10),this._init(d||0,f||10,l||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=st().Buffer}catch{}n.isBN=function(f){return f instanceof n?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===n.wordSize&&Array.isArray(f.words)},n.max=function(f,l){return f.cmp(l)>0?f:l},n.min=function(f,l){return f.cmp(l)<0?f:l},n.prototype._init=function(f,l,v){if(typeof f=="number")return this._initNumber(f,l,v);if(typeof f=="object")return this._initArray(f,l,v);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),f=f.toString().replace(/\s+/g,"");var g=0;f[0]==="-"&&(g++,this.negative=1),g<f.length&&(l===16?this._parseHex(f,g,v):(this._parseBase(f,l,g),v==="le"&&this._initArray(this.toArray(),l,v)))},n.prototype._initNumber=function(f,l,v){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(r(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),v==="le"&&this._initArray(this.toArray(),l,v)},n.prototype._initArray=function(f,l,v){if(r(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var p,u,w=0;if(v==="be")for(g=f.length-1,p=0;g>=0;g-=3)u=f[g]|f[g-1]<<8|f[g-2]<<16,this.words[p]|=u<<w&67108863,this.words[p+1]=u>>>26-w&67108863,w+=24,w>=26&&(w-=26,p++);else if(v==="le")for(g=0,p=0;g<f.length;g+=3)u=f[g]|f[g+1]<<8|f[g+2]<<16,this.words[p]|=u<<w&67108863,this.words[p+1]=u>>>26-w&67108863,w+=24,w>=26&&(w-=26,p++);return this._strip()};function o(d,f){var l=d.charCodeAt(f);if(l>=48&&l<=57)return l-48;if(l>=65&&l<=70)return l-55;if(l>=97&&l<=102)return l-87;r(!1,"Invalid character in "+d)}function s(d,f,l){var v=o(d,l);return l-1>=f&&(v|=o(d,l-1)<<4),v}n.prototype._parseHex=function(f,l,v){this.length=Math.ceil((f.length-l)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var p=0,u=0,w;if(v==="be")for(g=f.length-1;g>=l;g-=2)w=s(f,l,g)<<p,this.words[u]|=w&67108863,p>=18?(p-=18,u+=1,this.words[u]|=w>>>26):p+=8;else{var E=f.length-l;for(g=E%2===0?l+1:l;g<f.length;g+=2)w=s(f,l,g)<<p,this.words[u]|=w&67108863,p>=18?(p-=18,u+=1,this.words[u]|=w>>>26):p+=8}this._strip()};function y(d,f,l,v){for(var g=0,p=0,u=Math.min(d.length,l),w=f;w<u;w++){var E=d.charCodeAt(w)-48;g*=v,E>=49?p=E-49+10:E>=17?p=E-17+10:p=E,r(E>=0&&p<v,"Invalid character"),g+=p}return g}n.prototype._parseBase=function(f,l,v){this.words=[0],this.length=1;for(var g=0,p=1;p<=67108863;p*=l)g++;g--,p=p/l|0;for(var u=f.length-v,w=u%g,E=Math.min(u,u-w)+v,c=0,S=v;S<E;S+=g)c=y(f,S,S+g,l),this.imuln(p),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(w!==0){var P=1;for(c=y(f,S,f.length,l),S=0;S<w;S++)P*=l;this.imuln(P),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},n.prototype.copy=function(f){f.words=new Array(this.length);for(var l=0;l<this.length;l++)f.words[l]=this.words[l];f.length=this.length,f.negative=this.negative,f.red=this.red};function b(d,f){d.words=f.words,d.length=f.length,d.negative=f.negative,d.red=f.red}if(n.prototype._move=function(f){b(f,this)},n.prototype.clone=function(){var f=new n(null);return this.copy(f),f},n.prototype._expand=function(f){for(;this.length<f;)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")]=x}catch{n.prototype.inspect=x}else n.prototype.inspect=x;function x(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var B=["","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"],R=[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],T=[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(f,l){f=f||10,l=l|0||1;var v;if(f===16||f==="hex"){v="";for(var g=0,p=0,u=0;u<this.length;u++){var w=this.words[u],E=((w<<g|p)&16777215).toString(16);p=w>>>24-g&16777215,g+=2,g>=26&&(g-=26,u--),p!==0||u!==this.length-1?v=B[6-E.length]+E+v:v=E+v}for(p!==0&&(v=p.toString(16)+v);v.length%l!==0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}if(f===(f|0)&&f>=2&&f<=36){var c=R[f],S=T[f];v="";var P=this.clone();for(P.negative=0;!P.isZero();){var C=P.modrn(S).toString(f);P=P.idivn(S),P.isZero()?v=C+v:v=B[c-C.length]+C+v}for(this.isZero()&&(v="0"+v);v.length%l!==0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},n.prototype.toJSON=function(){return this.toString(16,2)},a&&(n.prototype.toBuffer=function(f,l){return this.toArrayLike(a,f,l)}),n.prototype.toArray=function(f,l){return this.toArrayLike(Array,f,l)};var O=function(f,l){return f.allocUnsafe?f.allocUnsafe(l):new f(l)};n.prototype.toArrayLike=function(f,l,v){this._strip();var g=this.byteLength(),p=v||Math.max(1,g);r(g<=p,"byte array longer than desired length"),r(p>0,"Requested array length <= 0");var u=O(f,p),w=l==="le"?"LE":"BE";return this["_toArrayLike"+w](u,g),u},n.prototype._toArrayLikeLE=function(f,l){for(var v=0,g=0,p=0,u=0;p<this.length;p++){var w=this.words[p]<<u|g;f[v++]=w&255,v<f.length&&(f[v++]=w>>8&255),v<f.length&&(f[v++]=w>>16&255),u===6?(v<f.length&&(f[v++]=w>>24&255),g=0,u=0):(g=w>>>24,u+=2)}if(v<f.length)for(f[v++]=g;v<f.length;)f[v++]=0},n.prototype._toArrayLikeBE=function(f,l){for(var v=f.length-1,g=0,p=0,u=0;p<this.length;p++){var w=this.words[p]<<u|g;f[v--]=w&255,v>=0&&(f[v--]=w>>8&255),v>=0&&(f[v--]=w>>16&255),u===6?(v>=0&&(f[v--]=w>>24&255),g=0,u=0):(g=w>>>24,u+=2)}if(v>=0)for(f[v--]=g;v>=0;)f[v--]=0},Math.clz32?n.prototype._countBits=function(f){return 32-Math.clz32(f)}:n.prototype._countBits=function(f){var l=f,v=0;return l>=4096&&(v+=13,l>>>=13),l>=64&&(v+=7,l>>>=7),l>=8&&(v+=4,l>>>=4),l>=2&&(v+=2,l>>>=2),v+l},n.prototype._zeroBits=function(f){if(f===0)return 26;var l=f,v=0;return(l&8191)===0&&(v+=13,l>>>=13),(l&127)===0&&(v+=7,l>>>=7),(l&15)===0&&(v+=4,l>>>=4),(l&3)===0&&(v+=2,l>>>=2),(l&1)===0&&v++,v},n.prototype.bitLength=function(){var f=this.words[this.length-1],l=this._countBits(f);return(this.length-1)*26+l};function D(d){for(var f=new Array(d.bitLength()),l=0;l<f.length;l++){var v=l/26|0,g=l%26;f[l]=d.words[v]>>>g&1}return f}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,l=0;l<this.length;l++){var v=this._zeroBits(this.words[l]);if(f+=v,v!==26)break}return f},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},n.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).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(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]|f.words[l];return this._strip()},n.prototype.ior=function(f){return r((this.negative|f.negative)===0),this.iuor(f)},n.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},n.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},n.prototype.iuand=function(f){var l;this.length>f.length?l=f:l=this;for(var v=0;v<l.length;v++)this.words[v]=this.words[v]&f.words[v];return this.length=l.length,this._strip()},n.prototype.iand=function(f){return r((this.negative|f.negative)===0),this.iuand(f)},n.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},n.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},n.prototype.iuxor=function(f){var l,v;this.length>f.length?(l=this,v=f):(l=f,v=this);for(var g=0;g<v.length;g++)this.words[g]=l.words[g]^v.words[g];if(this!==l)for(;g<l.length;g++)this.words[g]=l.words[g];return this.length=l.length,this._strip()},n.prototype.ixor=function(f){return r((this.negative|f.negative)===0),this.iuxor(f)},n.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},n.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},n.prototype.inotn=function(f){r(typeof f=="number"&&f>=0);var l=Math.ceil(f/26)|0,v=f%26;this._expand(l),v>0&&l--;for(var g=0;g<l;g++)this.words[g]=~this.words[g]&67108863;return v>0&&(this.words[g]=~this.words[g]&67108863>>26-v),this._strip()},n.prototype.notn=function(f){return this.clone().inotn(f)},n.prototype.setn=function(f,l){r(typeof f=="number"&&f>=0);var v=f/26|0,g=f%26;return this._expand(v+1),l?this.words[v]=this.words[v]|1<<g:this.words[v]=this.words[v]&~(1<<g),this._strip()},n.prototype.iadd=function(f){var l;if(this.negative!==0&&f.negative===0)return this.negative=0,l=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,l=this.isub(f),f.negative=1,l._normSign();var v,g;this.length>f.length?(v=this,g=f):(v=f,g=this);for(var p=0,u=0;u<g.length;u++)l=(v.words[u]|0)+(g.words[u]|0)+p,this.words[u]=l&67108863,p=l>>>26;for(;p!==0&&u<v.length;u++)l=(v.words[u]|0)+p,this.words[u]=l&67108863,p=l>>>26;if(this.length=v.length,p!==0)this.words[this.length]=p,this.length++;else if(v!==this)for(;u<v.length;u++)this.words[u]=v.words[u];return this},n.prototype.add=function(f){var l;return f.negative!==0&&this.negative===0?(f.negative=0,l=this.sub(f),f.negative^=1,l):f.negative===0&&this.negative!==0?(this.negative=0,l=f.sub(this),this.negative=1,l):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},n.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var l=this.iadd(f);return f.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var v=this.cmp(f);if(v===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,p;v>0?(g=this,p=f):(g=f,p=this);for(var u=0,w=0;w<p.length;w++)l=(g.words[w]|0)-(p.words[w]|0)+u,u=l>>26,this.words[w]=l&67108863;for(;u!==0&&w<g.length;w++)l=(g.words[w]|0)+u,u=l>>26,this.words[w]=l&67108863;if(u===0&&w<g.length&&g!==this)for(;w<g.length;w++)this.words[w]=g.words[w];return this.length=Math.max(this.length,w),g!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(f){return this.clone().isub(f)};function U(d,f,l){l.negative=f.negative^d.negative;var v=d.length+f.length|0;l.length=v,v=v-1|0;var g=d.words[0]|0,p=f.words[0]|0,u=g*p,w=u&67108863,E=u/67108864|0;l.words[0]=w;for(var c=1;c<v;c++){for(var S=E>>>26,P=E&67108863,C=Math.min(c,f.length-1),L=Math.max(0,c-d.length+1);L<=C;L++){var V=c-L|0;g=d.words[V]|0,p=f.words[L]|0,u=g*p+P,S+=u/67108864|0,P=u&67108863}l.words[c]=P|0,E=S|0}return E!==0?l.words[c]=E|0:l.length--,l._strip()}var N=function(f,l,v){var g=f.words,p=l.words,u=v.words,w=0,E,c,S,P=g[0]|0,C=P&8191,L=P>>>13,V=g[1]|0,G=V&8191,Y=V>>>13,Wt=g[2]|0,Q=Wt&8191,ee=Wt>>>13,_a=g[3]|0,ie=_a&8191,ne=_a>>>13,ma=g[4]|0,ae=ma&8191,oe=ma>>>13,wa=g[5]|0,fe=wa&8191,se=wa>>>13,xa=g[6]|0,ue=xa&8191,le=xa>>>13,Ea=g[7]|0,he=Ea&8191,ce=Ea>>>13,Sa=g[8]|0,de=Sa&8191,pe=Sa>>>13,Ma=g[9]|0,ve=Ma&8191,ye=Ma>>>13,Aa=p[0]|0,ge=Aa&8191,be=Aa>>>13,Ba=p[1]|0,_e=Ba&8191,me=Ba>>>13,Ra=p[2]|0,we=Ra&8191,xe=Ra>>>13,ka=p[3]|0,Ee=ka&8191,Se=ka>>>13,Ta=p[4]|0,Me=Ta&8191,Ae=Ta>>>13,Ia=p[5]|0,Be=Ia&8191,Re=Ia>>>13,Oa=p[6]|0,ke=Oa&8191,Te=Oa>>>13,qa=p[7]|0,Ie=qa&8191,Oe=qa>>>13,Da=p[8]|0,qe=Da&8191,De=Da>>>13,En=p[9]|0,$e=En&8191,Ye=En>>>13;v.negative=f.negative^l.negative,v.length=19,E=Math.imul(C,ge),c=Math.imul(C,be),c=c+Math.imul(L,ge)|0,S=Math.imul(L,be);var di=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(di>>>26)|0,di&=67108863,E=Math.imul(G,ge),c=Math.imul(G,be),c=c+Math.imul(Y,ge)|0,S=Math.imul(Y,be),E=E+Math.imul(C,_e)|0,c=c+Math.imul(C,me)|0,c=c+Math.imul(L,_e)|0,S=S+Math.imul(L,me)|0;var pi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(pi>>>26)|0,pi&=67108863,E=Math.imul(Q,ge),c=Math.imul(Q,be),c=c+Math.imul(ee,ge)|0,S=Math.imul(ee,be),E=E+Math.imul(G,_e)|0,c=c+Math.imul(G,me)|0,c=c+Math.imul(Y,_e)|0,S=S+Math.imul(Y,me)|0,E=E+Math.imul(C,we)|0,c=c+Math.imul(C,xe)|0,c=c+Math.imul(L,we)|0,S=S+Math.imul(L,xe)|0;var vi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(vi>>>26)|0,vi&=67108863,E=Math.imul(ie,ge),c=Math.imul(ie,be),c=c+Math.imul(ne,ge)|0,S=Math.imul(ne,be),E=E+Math.imul(Q,_e)|0,c=c+Math.imul(Q,me)|0,c=c+Math.imul(ee,_e)|0,S=S+Math.imul(ee,me)|0,E=E+Math.imul(G,we)|0,c=c+Math.imul(G,xe)|0,c=c+Math.imul(Y,we)|0,S=S+Math.imul(Y,xe)|0,E=E+Math.imul(C,Ee)|0,c=c+Math.imul(C,Se)|0,c=c+Math.imul(L,Ee)|0,S=S+Math.imul(L,Se)|0;var yi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(yi>>>26)|0,yi&=67108863,E=Math.imul(ae,ge),c=Math.imul(ae,be),c=c+Math.imul(oe,ge)|0,S=Math.imul(oe,be),E=E+Math.imul(ie,_e)|0,c=c+Math.imul(ie,me)|0,c=c+Math.imul(ne,_e)|0,S=S+Math.imul(ne,me)|0,E=E+Math.imul(Q,we)|0,c=c+Math.imul(Q,xe)|0,c=c+Math.imul(ee,we)|0,S=S+Math.imul(ee,xe)|0,E=E+Math.imul(G,Ee)|0,c=c+Math.imul(G,Se)|0,c=c+Math.imul(Y,Ee)|0,S=S+Math.imul(Y,Se)|0,E=E+Math.imul(C,Me)|0,c=c+Math.imul(C,Ae)|0,c=c+Math.imul(L,Me)|0,S=S+Math.imul(L,Ae)|0;var gi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(gi>>>26)|0,gi&=67108863,E=Math.imul(fe,ge),c=Math.imul(fe,be),c=c+Math.imul(se,ge)|0,S=Math.imul(se,be),E=E+Math.imul(ae,_e)|0,c=c+Math.imul(ae,me)|0,c=c+Math.imul(oe,_e)|0,S=S+Math.imul(oe,me)|0,E=E+Math.imul(ie,we)|0,c=c+Math.imul(ie,xe)|0,c=c+Math.imul(ne,we)|0,S=S+Math.imul(ne,xe)|0,E=E+Math.imul(Q,Ee)|0,c=c+Math.imul(Q,Se)|0,c=c+Math.imul(ee,Ee)|0,S=S+Math.imul(ee,Se)|0,E=E+Math.imul(G,Me)|0,c=c+Math.imul(G,Ae)|0,c=c+Math.imul(Y,Me)|0,S=S+Math.imul(Y,Ae)|0,E=E+Math.imul(C,Be)|0,c=c+Math.imul(C,Re)|0,c=c+Math.imul(L,Be)|0,S=S+Math.imul(L,Re)|0;var bi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(bi>>>26)|0,bi&=67108863,E=Math.imul(ue,ge),c=Math.imul(ue,be),c=c+Math.imul(le,ge)|0,S=Math.imul(le,be),E=E+Math.imul(fe,_e)|0,c=c+Math.imul(fe,me)|0,c=c+Math.imul(se,_e)|0,S=S+Math.imul(se,me)|0,E=E+Math.imul(ae,we)|0,c=c+Math.imul(ae,xe)|0,c=c+Math.imul(oe,we)|0,S=S+Math.imul(oe,xe)|0,E=E+Math.imul(ie,Ee)|0,c=c+Math.imul(ie,Se)|0,c=c+Math.imul(ne,Ee)|0,S=S+Math.imul(ne,Se)|0,E=E+Math.imul(Q,Me)|0,c=c+Math.imul(Q,Ae)|0,c=c+Math.imul(ee,Me)|0,S=S+Math.imul(ee,Ae)|0,E=E+Math.imul(G,Be)|0,c=c+Math.imul(G,Re)|0,c=c+Math.imul(Y,Be)|0,S=S+Math.imul(Y,Re)|0,E=E+Math.imul(C,ke)|0,c=c+Math.imul(C,Te)|0,c=c+Math.imul(L,ke)|0,S=S+Math.imul(L,Te)|0;var _i=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(_i>>>26)|0,_i&=67108863,E=Math.imul(he,ge),c=Math.imul(he,be),c=c+Math.imul(ce,ge)|0,S=Math.imul(ce,be),E=E+Math.imul(ue,_e)|0,c=c+Math.imul(ue,me)|0,c=c+Math.imul(le,_e)|0,S=S+Math.imul(le,me)|0,E=E+Math.imul(fe,we)|0,c=c+Math.imul(fe,xe)|0,c=c+Math.imul(se,we)|0,S=S+Math.imul(se,xe)|0,E=E+Math.imul(ae,Ee)|0,c=c+Math.imul(ae,Se)|0,c=c+Math.imul(oe,Ee)|0,S=S+Math.imul(oe,Se)|0,E=E+Math.imul(ie,Me)|0,c=c+Math.imul(ie,Ae)|0,c=c+Math.imul(ne,Me)|0,S=S+Math.imul(ne,Ae)|0,E=E+Math.imul(Q,Be)|0,c=c+Math.imul(Q,Re)|0,c=c+Math.imul(ee,Be)|0,S=S+Math.imul(ee,Re)|0,E=E+Math.imul(G,ke)|0,c=c+Math.imul(G,Te)|0,c=c+Math.imul(Y,ke)|0,S=S+Math.imul(Y,Te)|0,E=E+Math.imul(C,Ie)|0,c=c+Math.imul(C,Oe)|0,c=c+Math.imul(L,Ie)|0,S=S+Math.imul(L,Oe)|0;var mi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(mi>>>26)|0,mi&=67108863,E=Math.imul(de,ge),c=Math.imul(de,be),c=c+Math.imul(pe,ge)|0,S=Math.imul(pe,be),E=E+Math.imul(he,_e)|0,c=c+Math.imul(he,me)|0,c=c+Math.imul(ce,_e)|0,S=S+Math.imul(ce,me)|0,E=E+Math.imul(ue,we)|0,c=c+Math.imul(ue,xe)|0,c=c+Math.imul(le,we)|0,S=S+Math.imul(le,xe)|0,E=E+Math.imul(fe,Ee)|0,c=c+Math.imul(fe,Se)|0,c=c+Math.imul(se,Ee)|0,S=S+Math.imul(se,Se)|0,E=E+Math.imul(ae,Me)|0,c=c+Math.imul(ae,Ae)|0,c=c+Math.imul(oe,Me)|0,S=S+Math.imul(oe,Ae)|0,E=E+Math.imul(ie,Be)|0,c=c+Math.imul(ie,Re)|0,c=c+Math.imul(ne,Be)|0,S=S+Math.imul(ne,Re)|0,E=E+Math.imul(Q,ke)|0,c=c+Math.imul(Q,Te)|0,c=c+Math.imul(ee,ke)|0,S=S+Math.imul(ee,Te)|0,E=E+Math.imul(G,Ie)|0,c=c+Math.imul(G,Oe)|0,c=c+Math.imul(Y,Ie)|0,S=S+Math.imul(Y,Oe)|0,E=E+Math.imul(C,qe)|0,c=c+Math.imul(C,De)|0,c=c+Math.imul(L,qe)|0,S=S+Math.imul(L,De)|0;var wi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(wi>>>26)|0,wi&=67108863,E=Math.imul(ve,ge),c=Math.imul(ve,be),c=c+Math.imul(ye,ge)|0,S=Math.imul(ye,be),E=E+Math.imul(de,_e)|0,c=c+Math.imul(de,me)|0,c=c+Math.imul(pe,_e)|0,S=S+Math.imul(pe,me)|0,E=E+Math.imul(he,we)|0,c=c+Math.imul(he,xe)|0,c=c+Math.imul(ce,we)|0,S=S+Math.imul(ce,xe)|0,E=E+Math.imul(ue,Ee)|0,c=c+Math.imul(ue,Se)|0,c=c+Math.imul(le,Ee)|0,S=S+Math.imul(le,Se)|0,E=E+Math.imul(fe,Me)|0,c=c+Math.imul(fe,Ae)|0,c=c+Math.imul(se,Me)|0,S=S+Math.imul(se,Ae)|0,E=E+Math.imul(ae,Be)|0,c=c+Math.imul(ae,Re)|0,c=c+Math.imul(oe,Be)|0,S=S+Math.imul(oe,Re)|0,E=E+Math.imul(ie,ke)|0,c=c+Math.imul(ie,Te)|0,c=c+Math.imul(ne,ke)|0,S=S+Math.imul(ne,Te)|0,E=E+Math.imul(Q,Ie)|0,c=c+Math.imul(Q,Oe)|0,c=c+Math.imul(ee,Ie)|0,S=S+Math.imul(ee,Oe)|0,E=E+Math.imul(G,qe)|0,c=c+Math.imul(G,De)|0,c=c+Math.imul(Y,qe)|0,S=S+Math.imul(Y,De)|0,E=E+Math.imul(C,$e)|0,c=c+Math.imul(C,Ye)|0,c=c+Math.imul(L,$e)|0,S=S+Math.imul(L,Ye)|0;var xi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(xi>>>26)|0,xi&=67108863,E=Math.imul(ve,_e),c=Math.imul(ve,me),c=c+Math.imul(ye,_e)|0,S=Math.imul(ye,me),E=E+Math.imul(de,we)|0,c=c+Math.imul(de,xe)|0,c=c+Math.imul(pe,we)|0,S=S+Math.imul(pe,xe)|0,E=E+Math.imul(he,Ee)|0,c=c+Math.imul(he,Se)|0,c=c+Math.imul(ce,Ee)|0,S=S+Math.imul(ce,Se)|0,E=E+Math.imul(ue,Me)|0,c=c+Math.imul(ue,Ae)|0,c=c+Math.imul(le,Me)|0,S=S+Math.imul(le,Ae)|0,E=E+Math.imul(fe,Be)|0,c=c+Math.imul(fe,Re)|0,c=c+Math.imul(se,Be)|0,S=S+Math.imul(se,Re)|0,E=E+Math.imul(ae,ke)|0,c=c+Math.imul(ae,Te)|0,c=c+Math.imul(oe,ke)|0,S=S+Math.imul(oe,Te)|0,E=E+Math.imul(ie,Ie)|0,c=c+Math.imul(ie,Oe)|0,c=c+Math.imul(ne,Ie)|0,S=S+Math.imul(ne,Oe)|0,E=E+Math.imul(Q,qe)|0,c=c+Math.imul(Q,De)|0,c=c+Math.imul(ee,qe)|0,S=S+Math.imul(ee,De)|0,E=E+Math.imul(G,$e)|0,c=c+Math.imul(G,Ye)|0,c=c+Math.imul(Y,$e)|0,S=S+Math.imul(Y,Ye)|0;var Ei=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,E=Math.imul(ve,we),c=Math.imul(ve,xe),c=c+Math.imul(ye,we)|0,S=Math.imul(ye,xe),E=E+Math.imul(de,Ee)|0,c=c+Math.imul(de,Se)|0,c=c+Math.imul(pe,Ee)|0,S=S+Math.imul(pe,Se)|0,E=E+Math.imul(he,Me)|0,c=c+Math.imul(he,Ae)|0,c=c+Math.imul(ce,Me)|0,S=S+Math.imul(ce,Ae)|0,E=E+Math.imul(ue,Be)|0,c=c+Math.imul(ue,Re)|0,c=c+Math.imul(le,Be)|0,S=S+Math.imul(le,Re)|0,E=E+Math.imul(fe,ke)|0,c=c+Math.imul(fe,Te)|0,c=c+Math.imul(se,ke)|0,S=S+Math.imul(se,Te)|0,E=E+Math.imul(ae,Ie)|0,c=c+Math.imul(ae,Oe)|0,c=c+Math.imul(oe,Ie)|0,S=S+Math.imul(oe,Oe)|0,E=E+Math.imul(ie,qe)|0,c=c+Math.imul(ie,De)|0,c=c+Math.imul(ne,qe)|0,S=S+Math.imul(ne,De)|0,E=E+Math.imul(Q,$e)|0,c=c+Math.imul(Q,Ye)|0,c=c+Math.imul(ee,$e)|0,S=S+Math.imul(ee,Ye)|0;var Si=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Si>>>26)|0,Si&=67108863,E=Math.imul(ve,Ee),c=Math.imul(ve,Se),c=c+Math.imul(ye,Ee)|0,S=Math.imul(ye,Se),E=E+Math.imul(de,Me)|0,c=c+Math.imul(de,Ae)|0,c=c+Math.imul(pe,Me)|0,S=S+Math.imul(pe,Ae)|0,E=E+Math.imul(he,Be)|0,c=c+Math.imul(he,Re)|0,c=c+Math.imul(ce,Be)|0,S=S+Math.imul(ce,Re)|0,E=E+Math.imul(ue,ke)|0,c=c+Math.imul(ue,Te)|0,c=c+Math.imul(le,ke)|0,S=S+Math.imul(le,Te)|0,E=E+Math.imul(fe,Ie)|0,c=c+Math.imul(fe,Oe)|0,c=c+Math.imul(se,Ie)|0,S=S+Math.imul(se,Oe)|0,E=E+Math.imul(ae,qe)|0,c=c+Math.imul(ae,De)|0,c=c+Math.imul(oe,qe)|0,S=S+Math.imul(oe,De)|0,E=E+Math.imul(ie,$e)|0,c=c+Math.imul(ie,Ye)|0,c=c+Math.imul(ne,$e)|0,S=S+Math.imul(ne,Ye)|0;var Mi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,E=Math.imul(ve,Me),c=Math.imul(ve,Ae),c=c+Math.imul(ye,Me)|0,S=Math.imul(ye,Ae),E=E+Math.imul(de,Be)|0,c=c+Math.imul(de,Re)|0,c=c+Math.imul(pe,Be)|0,S=S+Math.imul(pe,Re)|0,E=E+Math.imul(he,ke)|0,c=c+Math.imul(he,Te)|0,c=c+Math.imul(ce,ke)|0,S=S+Math.imul(ce,Te)|0,E=E+Math.imul(ue,Ie)|0,c=c+Math.imul(ue,Oe)|0,c=c+Math.imul(le,Ie)|0,S=S+Math.imul(le,Oe)|0,E=E+Math.imul(fe,qe)|0,c=c+Math.imul(fe,De)|0,c=c+Math.imul(se,qe)|0,S=S+Math.imul(se,De)|0,E=E+Math.imul(ae,$e)|0,c=c+Math.imul(ae,Ye)|0,c=c+Math.imul(oe,$e)|0,S=S+Math.imul(oe,Ye)|0;var Ai=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,E=Math.imul(ve,Be),c=Math.imul(ve,Re),c=c+Math.imul(ye,Be)|0,S=Math.imul(ye,Re),E=E+Math.imul(de,ke)|0,c=c+Math.imul(de,Te)|0,c=c+Math.imul(pe,ke)|0,S=S+Math.imul(pe,Te)|0,E=E+Math.imul(he,Ie)|0,c=c+Math.imul(he,Oe)|0,c=c+Math.imul(ce,Ie)|0,S=S+Math.imul(ce,Oe)|0,E=E+Math.imul(ue,qe)|0,c=c+Math.imul(ue,De)|0,c=c+Math.imul(le,qe)|0,S=S+Math.imul(le,De)|0,E=E+Math.imul(fe,$e)|0,c=c+Math.imul(fe,Ye)|0,c=c+Math.imul(se,$e)|0,S=S+Math.imul(se,Ye)|0;var Bi=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,E=Math.imul(ve,ke),c=Math.imul(ve,Te),c=c+Math.imul(ye,ke)|0,S=Math.imul(ye,Te),E=E+Math.imul(de,Ie)|0,c=c+Math.imul(de,Oe)|0,c=c+Math.imul(pe,Ie)|0,S=S+Math.imul(pe,Oe)|0,E=E+Math.imul(he,qe)|0,c=c+Math.imul(he,De)|0,c=c+Math.imul(ce,qe)|0,S=S+Math.imul(ce,De)|0,E=E+Math.imul(ue,$e)|0,c=c+Math.imul(ue,Ye)|0,c=c+Math.imul(le,$e)|0,S=S+Math.imul(le,Ye)|0;var Ri=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,E=Math.imul(ve,Ie),c=Math.imul(ve,Oe),c=c+Math.imul(ye,Ie)|0,S=Math.imul(ye,Oe),E=E+Math.imul(de,qe)|0,c=c+Math.imul(de,De)|0,c=c+Math.imul(pe,qe)|0,S=S+Math.imul(pe,De)|0,E=E+Math.imul(he,$e)|0,c=c+Math.imul(he,Ye)|0,c=c+Math.imul(ce,$e)|0,S=S+Math.imul(ce,Ye)|0;var Zu=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Zu>>>26)|0,Zu&=67108863,E=Math.imul(ve,qe),c=Math.imul(ve,De),c=c+Math.imul(ye,qe)|0,S=Math.imul(ye,De),E=E+Math.imul(de,$e)|0,c=c+Math.imul(de,Ye)|0,c=c+Math.imul(pe,$e)|0,S=S+Math.imul(pe,Ye)|0;var Hu=(w+E|0)+((c&8191)<<13)|0;w=(S+(c>>>13)|0)+(Hu>>>26)|0,Hu&=67108863,E=Math.imul(ve,$e),c=Math.imul(ve,Ye),c=c+Math.imul(ye,$e)|0,S=Math.imul(ye,Ye);var Wu=(w+E|0)+((c&8191)<<13)|0;return w=(S+(c>>>13)|0)+(Wu>>>26)|0,Wu&=67108863,u[0]=di,u[1]=pi,u[2]=vi,u[3]=yi,u[4]=gi,u[5]=bi,u[6]=_i,u[7]=mi,u[8]=wi,u[9]=xi,u[10]=Ei,u[11]=Si,u[12]=Mi,u[13]=Ai,u[14]=Bi,u[15]=Ri,u[16]=Zu,u[17]=Hu,u[18]=Wu,w!==0&&(u[19]=w,v.length++),v};Math.imul||(N=U);function j(d,f,l){l.negative=f.negative^d.negative,l.length=d.length+f.length;for(var v=0,g=0,p=0;p<l.length-1;p++){var u=g;g=0;for(var w=v&67108863,E=Math.min(p,f.length-1),c=Math.max(0,p-d.length+1);c<=E;c++){var S=p-c,P=d.words[S]|0,C=f.words[c]|0,L=P*C,V=L&67108863;u=u+(L/67108864|0)|0,V=V+w|0,w=V&67108863,u=u+(V>>>26)|0,g+=u>>>26,u&=67108863}l.words[p]=w,v=u,u=g}return v!==0?l.words[p]=v:l.length--,l._strip()}function H(d,f,l){return j(d,f,l)}n.prototype.mulTo=function(f,l){var v,g=this.length+f.length;return this.length===10&&f.length===10?v=N(this,f,l):g<63?v=U(this,f,l):g<1024?v=j(this,f,l):v=H(this,f,l),v};function W(d,f){this.x=d,this.y=f}W.prototype.makeRBT=function(f){for(var l=new Array(f),v=n.prototype._countBits(f)-1,g=0;g<f;g++)l[g]=this.revBin(g,v,f);return l},W.prototype.revBin=function(f,l,v){if(f===0||f===v-1)return f;for(var g=0,p=0;p<l;p++)g|=(f&1)<<l-p-1,f>>=1;return g},W.prototype.permute=function(f,l,v,g,p,u){for(var w=0;w<u;w++)g[w]=l[f[w]],p[w]=v[f[w]]},W.prototype.transform=function(f,l,v,g,p,u){this.permute(u,f,l,v,g,p);for(var w=1;w<p;w<<=1)for(var E=w<<1,c=Math.cos(2*Math.PI/E),S=Math.sin(2*Math.PI/E),P=0;P<p;P+=E)for(var C=c,L=S,V=0;V<w;V++){var G=v[P+V],Y=g[P+V],Wt=v[P+V+w],Q=g[P+V+w],ee=C*Wt-L*Q;Q=C*Q+L*Wt,Wt=ee,v[P+V]=G+Wt,g[P+V]=Y+Q,v[P+V+w]=G-Wt,g[P+V+w]=Y-Q,V!==E&&(ee=c*C-S*L,L=c*L+S*C,C=ee)}},W.prototype.guessLen13b=function(f,l){var v=Math.max(l,f)|1,g=v&1,p=0;for(v=v/2|0;v;v=v>>>1)p++;return 1<<p+1+g},W.prototype.conjugate=function(f,l,v){if(!(v<=1))for(var g=0;g<v/2;g++){var p=f[g];f[g]=f[v-g-1],f[v-g-1]=p,p=l[g],l[g]=-l[v-g-1],l[v-g-1]=-p}},W.prototype.normalize13b=function(f,l){for(var v=0,g=0;g<l/2;g++){var p=Math.round(f[2*g+1]/l)*8192+Math.round(f[2*g]/l)+v;f[g]=p&67108863,p<67108864?v=0:v=p/67108864|0}return f},W.prototype.convert13b=function(f,l,v,g){for(var p=0,u=0;u<l;u++)p=p+(f[u]|0),v[2*u]=p&8191,p=p>>>13,v[2*u+1]=p&8191,p=p>>>13;for(u=2*l;u<g;++u)v[u]=0;r(p===0),r((p&-8192)===0)},W.prototype.stub=function(f){for(var l=new Array(f),v=0;v<f;v++)l[v]=0;return l},W.prototype.mulp=function(f,l,v){var g=2*this.guessLen13b(f.length,l.length),p=this.makeRBT(g),u=this.stub(g),w=new Array(g),E=new Array(g),c=new Array(g),S=new Array(g),P=new Array(g),C=new Array(g),L=v.words;L.length=g,this.convert13b(f.words,f.length,w,g),this.convert13b(l.words,l.length,S,g),this.transform(w,u,E,c,g,p),this.transform(S,u,P,C,g,p);for(var V=0;V<g;V++){var G=E[V]*P[V]-c[V]*C[V];c[V]=E[V]*C[V]+c[V]*P[V],E[V]=G}return this.conjugate(E,c,g),this.transform(E,c,L,u,g,p),this.conjugate(L,u,g),this.normalize13b(L,g),v.negative=f.negative^l.negative,v.length=f.length+l.length,v._strip()},n.prototype.mul=function(f){var l=new n(null);return l.words=new Array(this.length+f.length),this.mulTo(f,l)},n.prototype.mulf=function(f){var l=new n(null);return l.words=new Array(this.length+f.length),H(this,f,l)},n.prototype.imul=function(f){return this.clone().mulTo(f,this)},n.prototype.imuln=function(f){var l=f<0;l&&(f=-f),r(typeof f=="number"),r(f<67108864);for(var v=0,g=0;g<this.length;g++){var p=(this.words[g]|0)*f,u=(p&67108863)+(v&67108863);v>>=26,v+=p/67108864|0,v+=u>>>26,this.words[g]=u&67108863}return v!==0&&(this.words[g]=v,this.length++),this.length=f===0?1:this.length,l?this.ineg():this},n.prototype.muln=function(f){return this.clone().imuln(f)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(f){var l=D(f);if(l.length===0)return new n(1);for(var v=this,g=0;g<l.length&&l[g]===0;g++,v=v.sqr());if(++g<l.length)for(var p=v.sqr();g<l.length;g++,p=p.sqr())l[g]!==0&&(v=v.mul(p));return v},n.prototype.iushln=function(f){r(typeof f=="number"&&f>=0);var l=f%26,v=(f-l)/26,g=67108863>>>26-l<<26-l,p;if(l!==0){var u=0;for(p=0;p<this.length;p++){var w=this.words[p]&g,E=(this.words[p]|0)-w<<l;this.words[p]=E|u,u=w>>>26-l}u&&(this.words[p]=u,this.length++)}if(v!==0){for(p=this.length-1;p>=0;p--)this.words[p+v]=this.words[p];for(p=0;p<v;p++)this.words[p]=0;this.length+=v}return this._strip()},n.prototype.ishln=function(f){return r(this.negative===0),this.iushln(f)},n.prototype.iushrn=function(f,l,v){r(typeof f=="number"&&f>=0);var g;l?g=(l-l%26)/26:g=0;var p=f%26,u=Math.min((f-p)/26,this.length),w=67108863^67108863>>>p<<p,E=v;if(g-=u,g=Math.max(0,g),E){for(var c=0;c<u;c++)E.words[c]=this.words[c];E.length=u}if(u!==0)if(this.length>u)for(this.length-=u,c=0;c<this.length;c++)this.words[c]=this.words[c+u];else this.words[0]=0,this.length=1;var S=0;for(c=this.length-1;c>=0&&(S!==0||c>=g);c--){var P=this.words[c]|0;this.words[c]=S<<26-p|P>>>p,S=P&w}return E&&S!==0&&(E.words[E.length++]=S),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(f,l,v){return r(this.negative===0),this.iushrn(f,l,v)},n.prototype.shln=function(f){return this.clone().ishln(f)},n.prototype.ushln=function(f){return this.clone().iushln(f)},n.prototype.shrn=function(f){return this.clone().ishrn(f)},n.prototype.ushrn=function(f){return this.clone().iushrn(f)},n.prototype.testn=function(f){r(typeof f=="number"&&f>=0);var l=f%26,v=(f-l)/26,g=1<<l;if(this.length<=v)return!1;var p=this.words[v];return!!(p&g)},n.prototype.imaskn=function(f){r(typeof f=="number"&&f>=0);var l=f%26,v=(f-l)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=v)return this;if(l!==0&&v++,this.length=Math.min(v,this.length),l!==0){var g=67108863^67108863>>>l<<l;this.words[this.length-1]&=g}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.maskn=function(f){return this.clone().imaskn(f)},n.prototype.iaddn=function(f){return r(typeof f=="number"),r(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},n.prototype._iaddn=function(f){this.words[0]+=f;for(var l=0;l<this.length&&this.words[l]>=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},n.prototype.isubn=function(f){if(r(typeof f=="number"),r(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l<this.length&&this.words[l]<0;l++)this.words[l]+=67108864,this.words[l+1]-=1;return this._strip()},n.prototype.addn=function(f){return this.clone().iaddn(f)},n.prototype.subn=function(f){return this.clone().isubn(f)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(f,l,v){var g=f.length+v,p;this._expand(g);var u,w=0;for(p=0;p<f.length;p++){u=(this.words[p+v]|0)+w;var E=(f.words[p]|0)*l;u-=E&67108863,w=(u>>26)-(E/67108864|0),this.words[p+v]=u&67108863}for(;p<this.length-v;p++)u=(this.words[p+v]|0)+w,w=u>>26,this.words[p+v]=u&67108863;if(w===0)return this._strip();for(r(w===-1),w=0,p=0;p<this.length;p++)u=-(this.words[p]|0)+w,w=u>>26,this.words[p]=u&67108863;return this.negative=1,this._strip()},n.prototype._wordDiv=function(f,l){var v=this.length-f.length,g=this.clone(),p=f,u=p.words[p.length-1]|0,w=this._countBits(u);v=26-w,v!==0&&(p=p.ushln(v),g.iushln(v),u=p.words[p.length-1]|0);var E=g.length-p.length,c;if(l!=="mod"){c=new n(null),c.length=E+1,c.words=new Array(c.length);for(var S=0;S<c.length;S++)c.words[S]=0}var P=g.clone()._ishlnsubmul(p,1,E);P.negative===0&&(g=P,c&&(c.words[E]=1));for(var C=E-1;C>=0;C--){var L=(g.words[p.length+C]|0)*67108864+(g.words[p.length+C-1]|0);for(L=Math.min(L/u|0,67108863),g._ishlnsubmul(p,L,C);g.negative!==0;)L--,g.negative=0,g._ishlnsubmul(p,1,C),g.isZero()||(g.negative^=1);c&&(c.words[C]=L)}return c&&c._strip(),g._strip(),l!=="div"&&v!==0&&g.iushrn(v),{div:c||null,mod:g}},n.prototype.divmod=function(f,l,v){if(r(!f.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var g,p,u;return this.negative!==0&&f.negative===0?(u=this.neg().divmod(f,l),l!=="mod"&&(g=u.div.neg()),l!=="div"&&(p=u.mod.neg(),v&&p.negative!==0&&p.iadd(f)),{div:g,mod:p}):this.negative===0&&f.negative!==0?(u=this.divmod(f.neg(),l),l!=="mod"&&(g=u.div.neg()),{div:g,mod:u.mod}):(this.negative&f.negative)!==0?(u=this.neg().divmod(f.neg(),l),l!=="div"&&(p=u.mod.neg(),v&&p.negative!==0&&p.isub(f)),{div:u.div,mod:p}):f.length>this.length||this.cmp(f)<0?{div:new n(0),mod:this}:f.length===1?l==="div"?{div:this.divn(f.words[0]),mod:null}:l==="mod"?{div:null,mod:new n(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new n(this.modrn(f.words[0]))}:this._wordDiv(f,l)},n.prototype.div=function(f){return this.divmod(f,"div",!1).div},n.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},n.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},n.prototype.divRound=function(f){var l=this.divmod(f);if(l.mod.isZero())return l.div;var v=l.div.negative!==0?l.mod.isub(f):l.mod,g=f.ushrn(1),p=f.andln(1),u=v.cmp(g);return u<0||p===1&&u===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},n.prototype.modrn=function(f){var l=f<0;l&&(f=-f),r(f<=67108863);for(var v=(1<<26)%f,g=0,p=this.length-1;p>=0;p--)g=(v*g+(this.words[p]|0))%f;return l?-g:g},n.prototype.modn=function(f){return this.modrn(f)},n.prototype.idivn=function(f){var l=f<0;l&&(f=-f),r(f<=67108863);for(var v=0,g=this.length-1;g>=0;g--){var p=(this.words[g]|0)+v*67108864;this.words[g]=p/f|0,v=p%f}return this._strip(),l?this.ineg():this},n.prototype.divn=function(f){return this.clone().idivn(f)},n.prototype.egcd=function(f){r(f.negative===0),r(!f.isZero());var l=this,v=f.clone();l.negative!==0?l=l.umod(f):l=l.clone();for(var g=new n(1),p=new n(0),u=new n(0),w=new n(1),E=0;l.isEven()&&v.isEven();)l.iushrn(1),v.iushrn(1),++E;for(var c=v.clone(),S=l.clone();!l.isZero();){for(var P=0,C=1;(l.words[0]&C)===0&&P<26;++P,C<<=1);if(P>0)for(l.iushrn(P);P-- >0;)(g.isOdd()||p.isOdd())&&(g.iadd(c),p.isub(S)),g.iushrn(1),p.iushrn(1);for(var L=0,V=1;(v.words[0]&V)===0&&L<26;++L,V<<=1);if(L>0)for(v.iushrn(L);L-- >0;)(u.isOdd()||w.isOdd())&&(u.iadd(c),w.isub(S)),u.iushrn(1),w.iushrn(1);l.cmp(v)>=0?(l.isub(v),g.isub(u),p.isub(w)):(v.isub(l),u.isub(g),w.isub(p))}return{a:u,b:w,gcd:v.iushln(E)}},n.prototype._invmp=function(f){r(f.negative===0),r(!f.isZero());var l=this,v=f.clone();l.negative!==0?l=l.umod(f):l=l.clone();for(var g=new n(1),p=new n(0),u=v.clone();l.cmpn(1)>0&&v.cmpn(1)>0;){for(var w=0,E=1;(l.words[0]&E)===0&&w<26;++w,E<<=1);if(w>0)for(l.iushrn(w);w-- >0;)g.isOdd()&&g.iadd(u),g.iushrn(1);for(var c=0,S=1;(v.words[0]&S)===0&&c<26;++c,S<<=1);if(c>0)for(v.iushrn(c);c-- >0;)p.isOdd()&&p.iadd(u),p.iushrn(1);l.cmp(v)>=0?(l.isub(v),g.isub(p)):(v.isub(l),p.isub(g))}var P;return l.cmpn(1)===0?P=g:P=p,P.cmpn(0)<0&&P.iadd(f),P},n.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var l=this.clone(),v=f.clone();l.negative=0,v.negative=0;for(var g=0;l.isEven()&&v.isEven();g++)l.iushrn(1),v.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;v.isEven();)v.iushrn(1);var p=l.cmp(v);if(p<0){var u=l;l=v,v=u}else if(p===0||v.cmpn(1)===0)break;l.isub(v)}while(!0);return v.iushln(g)},n.prototype.invm=function(f){return this.egcd(f).a.umod(f)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(f){return this.words[0]&f},n.prototype.bincn=function(f){r(typeof f=="number");var l=f%26,v=(f-l)/26,g=1<<l;if(this.length<=v)return this._expand(v+1),this.words[v]|=g,this;for(var p=g,u=v;p!==0&&u<this.length;u++){var w=this.words[u]|0;w+=p,p=w>>>26,w&=67108863,this.words[u]=w}return p!==0&&(this.words[u]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(f){var l=f<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this._strip();var v;if(this.length>1)v=1;else{l&&(f=-f),r(f<=67108863,"Number is too big");var g=this.words[0]|0;v=g===f?0:g<f?-1:1}return this.negative!==0?-v|0:v},n.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var l=this.ucmp(f);return this.negative!==0?-l|0:l},n.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var l=0,v=this.length-1;v>=0;v--){var g=this.words[v]|0,p=f.words[v]|0;if(g!==p){g<p?l=-1:g>p&&(l=1);break}}return l},n.prototype.gtn=function(f){return this.cmpn(f)===1},n.prototype.gt=function(f){return this.cmp(f)===1},n.prototype.gten=function(f){return this.cmpn(f)>=0},n.prototype.gte=function(f){return this.cmp(f)>=0},n.prototype.ltn=function(f){return this.cmpn(f)===-1},n.prototype.lt=function(f){return this.cmp(f)===-1},n.prototype.lten=function(f){return this.cmpn(f)<=0},n.prototype.lte=function(f){return this.cmp(f)<=0},n.prototype.eqn=function(f){return this.cmpn(f)===0},n.prototype.eq=function(f){return this.cmp(f)===0},n.red=function(f){return new h(f)},n.prototype.toRed=function(f){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(f){return this.red=f,this},n.prototype.forceRed=function(f){return r(!this.red,"Already a number in reduction context"),this._forceRed(f)},n.prototype.redAdd=function(f){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},n.prototype.redIAdd=function(f){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},n.prototype.redSub=function(f){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},n.prototype.redISub=function(f){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},n.prototype.redShl=function(f){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},n.prototype.redMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},n.prototype.redIMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},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(f){return r(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var Z={k256:null,p224:null,p192:null,p25519:null};function K(d,f){this.name=d,this.p=new n(f,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}K.prototype._tmp=function(){var f=new n(null);return f.words=new Array(Math.ceil(this.n/13)),f},K.prototype.ireduce=function(f){var l=f,v;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),v=l.bitLength();while(v>this.n);var g=v<this.n?-1:l.ucmp(this.p);return g===0?(l.words[0]=0,l.length=1):g>0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},K.prototype.split=function(f,l){f.iushrn(this.n,0,l)},K.prototype.imulK=function(f){return f.imul(this.k)};function J(){K.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(J,K),J.prototype.split=function(f,l){for(var v=4194303,g=Math.min(f.length,9),p=0;p<g;p++)l.words[p]=f.words[p];if(l.length=g,f.length<=9){f.words[0]=0,f.length=1;return}var u=f.words[9];for(l.words[l.length++]=u&v,p=10;p<f.length;p++){var w=f.words[p]|0;f.words[p-10]=(w&v)<<4|u>>>22,u=w}u>>>=22,f.words[p-10]=u,u===0&&f.length>10?f.length-=10:f.length-=9},J.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var l=0,v=0;v<f.length;v++){var g=f.words[v]|0;l+=g*977,f.words[v]=l&67108863,l=g*64+(l/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function z(){K.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(z,K);function X(){K.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(X,K);function A(){K.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(A,K),A.prototype.imulK=function(f){for(var l=0,v=0;v<f.length;v++){var g=(f.words[v]|0)*19+l,p=g&67108863;g>>>=26,f.words[v]=p,l=g}return l!==0&&(f.words[f.length++]=l),f},n._prime=function(f){if(Z[f])return Z[f];var l;if(f==="k256")l=new J;else if(f==="p224")l=new z;else if(f==="p192")l=new X;else if(f==="p25519")l=new A;else throw new Error("Unknown prime "+f);return Z[f]=l,l};function h(d){if(typeof d=="string"){var f=n._prime(d);this.m=f.p,this.prime=f}else r(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}h.prototype._verify1=function(f){r(f.negative===0,"red works only with positives"),r(f.red,"red works only with red numbers")},h.prototype._verify2=function(f,l){r((f.negative|l.negative)===0,"red works only with positives"),r(f.red&&f.red===l.red,"red works only with red numbers")},h.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(b(f,f.umod(this.m)._forceRed(this)),f)},h.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},h.prototype.add=function(f,l){this._verify2(f,l);var v=f.add(l);return v.cmp(this.m)>=0&&v.isub(this.m),v._forceRed(this)},h.prototype.iadd=function(f,l){this._verify2(f,l);var v=f.iadd(l);return v.cmp(this.m)>=0&&v.isub(this.m),v},h.prototype.sub=function(f,l){this._verify2(f,l);var v=f.sub(l);return v.cmpn(0)<0&&v.iadd(this.m),v._forceRed(this)},h.prototype.isub=function(f,l){this._verify2(f,l);var v=f.isub(l);return v.cmpn(0)<0&&v.iadd(this.m),v},h.prototype.shl=function(f,l){return this._verify1(f),this.imod(f.ushln(l))},h.prototype.imul=function(f,l){return this._verify2(f,l),this.imod(f.imul(l))},h.prototype.mul=function(f,l){return this._verify2(f,l),this.imod(f.mul(l))},h.prototype.isqr=function(f){return this.imul(f,f.clone())},h.prototype.sqr=function(f){return this.mul(f,f)},h.prototype.sqrt=function(f){if(f.isZero())return f.clone();var l=this.m.andln(3);if(r(l%2===1),l===3){var v=this.m.add(new n(1)).iushrn(2);return this.pow(f,v)}for(var g=this.m.subn(1),p=0;!g.isZero()&&g.andln(1)===0;)p++,g.iushrn(1);r(!g.isZero());var u=new n(1).toRed(this),w=u.redNeg(),E=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new n(2*c*c).toRed(this);this.pow(c,E).cmp(w)!==0;)c.redIAdd(w);for(var S=this.pow(c,g),P=this.pow(f,g.addn(1).iushrn(1)),C=this.pow(f,g),L=p;C.cmp(u)!==0;){for(var V=C,G=0;V.cmp(u)!==0;G++)V=V.redSqr();r(G<L);var Y=this.pow(S,new n(1).iushln(L-G-1));P=P.redMul(Y),S=Y.redSqr(),C=C.redMul(S),L=G}return P},h.prototype.invm=function(f){var l=f._invmp(this.m);return l.negative!==0?(l.negative=0,this.imod(l).redNeg()):this.imod(l)},h.prototype.pow=function(f,l){if(l.isZero())return new n(1).toRed(this);if(l.cmpn(1)===0)return f.clone();var v=4,g=new Array(1<<v);g[0]=new n(1).toRed(this),g[1]=f;for(var p=2;p<g.length;p++)g[p]=this.mul(g[p-1],f);var u=g[0],w=0,E=0,c=l.bitLength()%26;for(c===0&&(c=26),p=l.length-1;p>=0;p--){for(var S=l.words[p],P=c-1;P>=0;P--){var C=S>>P&1;if(u!==g[0]&&(u=this.sqr(u)),C===0&&w===0){E=0;continue}w<<=1,w|=C,E++,!(E!==v&&(p!==0||P!==0))&&(u=this.mul(u,g[w]),E=0,w=0)}c=26}return u},h.prototype.convertTo=function(f){var l=f.umod(this.m);return l===f?l.clone():l},h.prototype.convertFrom=function(f){var l=f.clone();return l.red=null,l},n.mont=function(f){return new _(f)};function _(d){h.call(this,d),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(_,h),_.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},_.prototype.convertFrom=function(f){var l=this.imod(f.mul(this.rinv));return l.red=null,l},_.prototype.imul=function(f,l){if(f.isZero()||l.isZero())return f.words[0]=0,f.length=1,f;var v=f.imul(l),g=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=v.isub(g).iushrn(this.shift),u=p;return p.cmp(this.m)>=0?u=p.isub(this.m):p.cmpn(0)<0&&(u=p.iadd(this.m)),u._forceRed(this)},_.prototype.mul=function(f,l){if(f.isZero()||l.isZero())return new n(0)._forceRed(this);var v=f.mul(l),g=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=v.isub(g).iushrn(this.shift),u=p;return p.cmp(this.m)>=0?u=p.isub(this.m):p.cmpn(0)<0&&(u=p.iadd(this.m)),u._forceRed(this)},_.prototype.invm=function(f){var l=this.imod(f._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(typeof zc>"u"||zc,Am)});var Zc=k((dC,Tm)=>{"use strict";m();var ua=Bm(),qk=qi(),Dk=Ne().Buffer;function Rm(e){var t=e.modulus.byteLength(),r;do r=new ua(qk(t));while(r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2));return r}function Nk(e){var t=Rm(e),r=t.toRed(ua.mont(e.modulus)).redPow(new ua(e.publicExponent)).fromRed();return{blinder:r,unblinder:t.invm(e.modulus)}}function km(e,t){var r=Nk(t),i=t.modulus.byteLength(),n=new ua(e).mul(r.blinder).umod(t.modulus),a=n.toRed(ua.mont(t.prime1)),o=n.toRed(ua.mont(t.prime2)),s=t.coefficient,y=t.prime1,b=t.prime2,x=a.redPow(t.exponent1).fromRed(),B=o.redPow(t.exponent2).fromRed(),R=x.isub(B).imul(s).umod(y).imul(b);return B.iadd(R).imul(r.unblinder).umod(t.modulus).toArrayLike(Dk,"be",i)}km.getr=Rm;Tm.exports=km});var Dm=k((vC,qm)=>{m();var Pk=Lc(),Hc=qi(),Lk=bo(),Im=Uc(),Om=Fc(),Wc=ei(),Ck=jc(),Uk=Zc(),rr=Ne().Buffer;qm.exports=function(t,r,i){var n;t.padding?n=t.padding:i?n=1:n=4;var a=Pk(t),o;if(n===4)o=Fk(a,r);else if(n===1)o=jk(a,r,i);else if(n===3){if(o=new Wc(r),o.cmp(a.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return i?Uk(o,a):Ck(o,a)};function Fk(e,t){var r=e.modulus.byteLength(),i=t.length,n=Lk("sha1").update(rr.alloc(0)).digest(),a=n.length,o=2*a;if(i>r-o-2)throw new Error("message too long");var s=rr.alloc(r-i-o-2),y=r-a-1,b=Hc(a),x=Om(rr.concat([n,s,rr.alloc(1,1),t],y),Im(b,y)),B=Om(b,Im(x,a));return new Wc(rr.concat([rr.alloc(1),B,x],r))}function jk(e,t,r){var i=t.length,n=e.modulus.byteLength();if(i>n-11)throw new Error("message too long");var a;return r?a=rr.alloc(n-i-3,255):a=zk(n-i-3),new Wc(rr.concat([rr.from([0,r?1:2]),a,rr.alloc(1),t],n))}function zk(e){for(var t=rr.allocUnsafe(e),r=0,i=Hc(e*2),n=0,a;r<e;)n===i.length&&(i=Hc(e*2),n=0),a=i[n++],a&&(t[r++]=a);return t}});var Um=k((gC,Cm)=>{m();var Zk=Lc(),Nm=Uc(),Pm=Fc(),Lm=ei(),Hk=Zc(),Wk=bo(),Kk=jc(),To=Ne().Buffer;Cm.exports=function(t,r,i){var n;t.padding?n=t.padding:i?n=1:n=4;var a=Zk(t),o=a.modulus.byteLength();if(r.length>o||new Lm(r).cmp(a.modulus)>=0)throw new Error("decryption error");var s;i?s=Kk(new Lm(r),a):s=Hk(r,a);var y=To.alloc(o-s.length);if(s=To.concat([y,s],o),n===4)return Gk(a,s);if(n===1)return Vk(a,s,i);if(n===3)return s;throw new Error("unknown padding")};function Gk(e,t){var r=e.modulus.byteLength(),i=Wk("sha1").update(To.alloc(0)).digest(),n=i.length;if(t[0]!==0)throw new Error("decryption error");var a=t.slice(1,n+1),o=t.slice(n+1),s=Pm(a,Nm(o,n)),y=Pm(o,Nm(s,r-n-1));if($k(i,y.slice(0,n)))throw new Error("decryption error");for(var b=n;y[b]===0;)b++;if(y[b++]!==1)throw new Error("decryption error");return y.slice(b)}function Vk(e,t,r){for(var i=t.slice(0,2),n=2,a=0;t[n++]!==0;)if(n>=t.length){a++;break}var o=t.slice(2,n-1);if((i.toString("hex")!=="0002"&&!r||i.toString("hex")!=="0001"&&r)&&a++,o.length<8&&a++,a)throw new Error("decryption error");return t.slice(n)}function $k(e,t){e=To.from(e),t=To.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));for(var n=-1;++n<i;)r+=e[n]^t[n];return r}});var Fm=k(an=>{m();an.publicEncrypt=Dm();an.privateDecrypt=Um();an.privateEncrypt=function(t,r){return an.publicEncrypt(t,r,!0)};an.publicDecrypt=function(t,r){return an.privateDecrypt(t,r,!0)}});var Ym=k(Io=>{"use strict";m();function jm(){throw new Error(`secure random number generation not supported by this browser
15
- use chrome, FireFox or Internet Explorer 11`)}var Zm=Ne(),zm=qi(),Hm=Zm.Buffer,Wm=Zm.kMaxLength,Kc=globalThis.crypto||globalThis.msCrypto,Km=Math.pow(2,32)-1;function Gm(e,t){if(typeof e!="number"||e!==e)throw new TypeError("offset must be a number");if(e>Km||e<0)throw new TypeError("offset must be a uint32");if(e>Wm||e>t)throw new RangeError("offset out of range")}function Vm(e,t,r){if(typeof e!="number"||e!==e)throw new TypeError("size must be a number");if(e>Km||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>Wm)throw new RangeError("buffer too small")}Kc&&Kc.getRandomValues||!M.default.browser?(Io.randomFill=Yk,Io.randomFillSync=Jk):(Io.randomFill=jm,Io.randomFillSync=jm);function Yk(e,t,r,i){if(!Hm.isBuffer(e)&&!(e instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof t=="function")i=t,t=0,r=e.length;else if(typeof r=="function")i=r,r=e.length-t;else if(typeof i!="function")throw new TypeError('"cb" argument must be a function');return Gm(t,e.length),Vm(r,t,e.length),$m(e,t,r,i)}function $m(e,t,r,i){if(M.default.browser){var n=e.buffer,a=new Uint8Array(n,t,r);if(Kc.getRandomValues(a),i){M.default.nextTick(function(){i(null,e)});return}return e}if(i){zm(r,function(s,y){if(s)return i(s);y.copy(e,t),i(null,e)});return}var o=zm(r);return o.copy(e,t),e}function Jk(e,t,r){if(typeof t>"u"&&(t=0),!Hm.isBuffer(e)&&!(e instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return Gm(t,e.length),r===void 0&&(r=e.length-t),Vm(r,t,e.length),$m(e,t,r)}});var $s=k(Pe=>{"use strict";m();Pe.randomBytes=Pe.rng=Pe.pseudoRandomBytes=Pe.prng=qi();Pe.createHash=Pe.Hash=bo();Pe.createHmac=Pe.Hmac=Kg();var Xk=qs(),Qk=Object.keys(Xk),eT=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Qk);Pe.getHashes=function(){return eT};var Jm=Kh();Pe.pbkdf2=Jm.pbkdf2;Pe.pbkdf2Sync=Jm.pbkdf2Sync;var br=g_();Pe.Cipher=br.Cipher;Pe.createCipher=br.createCipher;Pe.Cipheriv=br.Cipheriv;Pe.createCipheriv=br.createCipheriv;Pe.Decipher=br.Decipher;Pe.createDecipher=br.createDecipher;Pe.Decipheriv=br.Decipheriv;Pe.createDecipheriv=br.createDecipheriv;Pe.getCiphers=br.getCiphers;Pe.listCiphers=br.listCiphers;var Oo=I_();Pe.DiffieHellmanGroup=Oo.DiffieHellmanGroup;Pe.createDiffieHellmanGroup=Oo.createDiffieHellmanGroup;Pe.getDiffieHellman=Oo.getDiffieHellman;Pe.createDiffieHellman=Oo.createDiffieHellman;Pe.DiffieHellman=Oo.DiffieHellman;var iu=qs();Pe.createSign=iu.createSign;Pe.Sign=iu.Sign;Pe.createVerify=iu.createVerify;Pe.Verify=iu.Verify;Pe.createECDH=qs();var nu=Fm();Pe.publicEncrypt=nu.publicEncrypt;Pe.privateEncrypt=nu.privateEncrypt;Pe.publicDecrypt=nu.publicDecrypt;Pe.privateDecrypt=nu.privateDecrypt;var Xm=Ym();Pe.randomFill=Xm.randomFill;Pe.randomFillSync=Xm.randomFillSync;Pe.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet
16
- we accept pull requests
17
- https://github.com/browserify/crypto-browserify`)};Pe.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});var ew=k((MC,Qm)=>{"use strict";m();var qo=$s(),Do={ES256:"P-256",ES256K:"secp256k1"},tT=["ES256","ES256K"];function au(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ou(e){for(e=e.replace(/-/g,"+").replace(/_/g,"/");e.length%4;)e+="=";return I.Buffer.from(e,"base64")}async function rT(e){if(!e.issuerDid||!e.subjectId||!e.credentialSubject||!e.privateJwk)throw new Error("issuerDid, subjectId, credentialSubject, and privateJwk are required");var t=e.alg||"ES256";if(!Do[t])throw new Error("Unsupported algorithm: "+t);if(e.privateJwk.crv&&e.privateJwk.crv!==Do[t])throw new Error("Key curve "+e.privateJwk.crv+" does not match alg "+t);var r=e.kid||e.privateJwk.kid,i=e.types||["VerifiableCredential"],n=e.expSeconds||365*24*60*60,a=Math.floor(Date.now()/1e3),o=new Date().toISOString(),s={"@context":["https://www.w3.org/2018/credentials/v1"],type:i,issuer:e.issuerDid,issuanceDate:o,credentialSubject:Object.assign({id:e.subjectId},e.credentialSubject)},y={iss:e.issuerDid,sub:e.subjectId,iat:a,exp:a+n,vc:s},b={alg:t,typ:"JWT",kid:r},x=au(I.Buffer.from(JSON.stringify(b))),B=au(I.Buffer.from(JSON.stringify(y))),R=x+"."+B,T=qo.createPrivateKey({key:e.privateJwk,format:"jwk"}),O=qo.sign("sha256",I.Buffer.from(R),{key:T,dsaEncoding:"ieee-p1363"}),D=au(O),U=R+"."+D;return{jwt:U}}async function iT(e,t){t=t||{};try{if(typeof e!="string")return{valid:!1,error:"Invalid JWT format"};var r=e.split(".");if(r.length!==3)return{valid:!1,error:"Invalid JWT format"};var i=r[0],n=r[1],a=r[2],o=JSON.parse(ou(i).toString()),s=JSON.parse(ou(n).toString()),y=ou(a),b=t.allowedAlgs||tT;if(!o.alg||b.indexOf(o.alg)===-1||!Do[o.alg])return{valid:!1,error:"Algorithm not allowed: "+o.alg,header:o,payload:s};var x=Math.floor(Date.now()/1e3),B=t.clockToleranceSec||60;if(t.requireExpiration&&!s.exp)return{valid:!1,error:"JWT missing required exp claim",header:o,payload:s};if(s.exp&&s.exp<x-B)return{valid:!1,error:"JWT expired",header:o,payload:s};if(s.nbf&&s.nbf>x+B)return{valid:!1,error:"JWT not yet valid",header:o,payload:s};if(t.expectedIssuerDid&&s.iss!==t.expectedIssuerDid)return{valid:!1,error:"Unexpected issuer",header:o,payload:s};var R;if(t.didResolver){var T=await t.didResolver(s.iss);if(!T||!T.jwks||!T.jwks.keys)return{valid:!1,error:"Failed to resolve issuer DID",header:o,payload:s};var O=T.jwks.keys.find(function(j){return j.kid===o.kid});if(!O)return{valid:!1,error:"Key not found in JWKS",header:o,payload:s};R=O}else return{valid:!1,error:"DID resolver required for verification",header:o,payload:s};if(R.crv&&R.crv!==Do[o.alg])return{valid:!1,error:"Key curve does not match algorithm",header:o,payload:s};var D=i+"."+n,U=qo.createPublicKey({key:R,format:"jwk"}),N=qo.verify("sha256",I.Buffer.from(D),{key:U,dsaEncoding:"ieee-p1363"},y);if(!N&&t.allowLegacyDER)try{N=qo.verify("sha256",I.Buffer.from(D),{key:U,dsaEncoding:"der"},y)}catch{N=!1}return N?{valid:!0,header:o,payload:s}:{valid:!1,error:"Invalid signature",header:o,payload:s}}catch(j){return{valid:!1,error:j.message||"Verification failed"}}}Qm.exports={issueVcJwt:rT,verifyVcJwt:iT,base64UrlEncode:au,base64UrlDecode:ou,ALG_TO_CRV:Do}});var $c=k((BC,nw)=>{"use strict";m();function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function tw(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,aT(i.key),i)}}function nT(e,t,r){return t&&tw(e.prototype,t),r&&tw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function aT(e){var t=oT(e,"string");return ri(t)==="symbol"?t:String(t)}function oT(e,t){if(ri(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(ri(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vc(e,t)}function Vc(e,t){return Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Vc(e,t)}function uT(e){var t=cT();return function(){var i=fu(e),n;if(t){var a=fu(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return lT(this,n)}}function lT(e,t){if(t&&(ri(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hT(e)}function hT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cT(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fu(e){return fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fu(e)}var iw={},la,Gc;function No(e,t,r){r||(r=Error);function i(a,o,s){return typeof t=="string"?t:t(a,o,s)}var n=(function(a){sT(s,a);var o=uT(s);function s(y,b,x){var B;return fT(this,s),B=o.call(this,i(y,b,x)),B.code=e,B}return nT(s)})(r);iw[e]=n}function rw(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function dT(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function pT(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function vT(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}No("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);No("ERR_INVALID_ARG_TYPE",function(e,t,r){la===void 0&&(la=Po()),la(typeof e=="string","'name' must be a string");var i;typeof t=="string"&&dT(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(pT(e," argument"))n="The ".concat(e," ").concat(i," ").concat(rw(t,"type"));else{var a=vT(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(rw(t,"type"))}return n+=". Received type ".concat(ri(r)),n},TypeError);No("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";Gc===void 0&&(Gc=Gt());var i=Gc.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)},TypeError,RangeError);No("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return r&&r.constructor&&r.constructor.name?i="instance of ".concat(r.constructor.name):i="type ".concat(ri(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError);No("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];la===void 0&&(la=Po()),la(t.length>0,"At least one arg needs to be specified");var i="The ",n=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),n){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,n-1).join(", "),i+=", and ".concat(t[n-1]," arguments");break}return"".concat(i," must be specified")},TypeError);nw.exports.codes=iw});var pw=k((kC,dw)=>{"use strict";m();function aw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function ow(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aw(Object(r),!0).forEach(function(i){yT(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function yT(e,t,r){return t=lw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fw(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,lw(i.key),i)}}function bT(e,t,r){return t&&fw(e.prototype,t),r&&fw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function lw(e){var t=_T(e,"string");return Mt(t)==="symbol"?t:String(t)}function _T(e,t){if(Mt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Mt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fo(e,t)}function wT(e){var t=cw();return function(){var i=jo(e),n;if(t){var a=jo(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return hw(this,n)}}function hw(e,t){if(t&&(Mt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yc(e)}function Yc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jc(e){var t=typeof Map=="function"?new Map:void 0;return Jc=function(i){if(i===null||!xT(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(i))return t.get(i);t.set(i,n)}function n(){return su(i,arguments,jo(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Fo(n,i)},Jc(e)}function su(e,t,r){return cw()?su=Reflect.construct.bind():su=function(n,a,o){var s=[null];s.push.apply(s,a);var y=Function.bind.apply(n,s),b=new y;return o&&Fo(b,o.prototype),b},su.apply(null,arguments)}function cw(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xT(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Fo(e,t){return Fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Fo(e,t)}function jo(e){return jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jo(e)}function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}var ET=Gt(),Xc=ET.inspect,ST=$c(),MT=ST.codes.ERR_INVALID_ARG_TYPE;function sw(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function AT(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var ir="",Lo="",Co="",lt="",on={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},BT=10;function uw(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(i){r[i]=e[i]}),Object.defineProperty(r,"message",{value:e.message}),r}function Uo(e){return Xc(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function RT(e,t,r){var i="",n="",a=0,o="",s=!1,y=Uo(e),b=y.split(`
18
- `),x=Uo(t).split(`
19
- `),B=0,R="";if(r==="strictEqual"&&Mt(e)==="object"&&Mt(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),b.length===1&&x.length===1&&b[0]!==x[0]){var T=b[0].length+x[0].length;if(T<=BT){if((Mt(e)!=="object"||e===null)&&(Mt(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(on[r],`
10
+ `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}M.types=Bh();function Fh(e){return Array.isArray(e)}M.isArray=Fh;function bf(e){return typeof e=="boolean"}M.isBoolean=bf;function ea(e){return e===null}M.isNull=ea;function F1(e){return e==null}M.isNullOrUndefined=F1;function Nh(e){return typeof e=="number"}M.isNumber=Nh;function ta(e){return typeof e=="string"}M.isString=ta;function N1(e){return typeof e=="symbol"}M.isSymbol=N1;function Wt(e){return e===void 0}M.isUndefined=Wt;function dn(e){return Fr(e)&&wf(e)==="[object RegExp]"}M.isRegExp=dn;M.types.isRegExp=dn;function Fr(e){return typeof e=="object"&&e!==null}M.isObject=Fr;function Qi(e){return Fr(e)&&wf(e)==="[object Date]"}M.isDate=Qi;M.types.isDate=Qi;function pn(e){return Fr(e)&&(wf(e)==="[object Error]"||e instanceof Error)}M.isError=pn;M.types.isNativeError=pn;function Ki(e){return typeof e=="function"}M.isFunction=Ki;function P1(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}M.isPrimitive=P1;M.isBuffer=Lh();function wf(e){return Object.prototype.toString.call(e)}function vf(e){return e<10?"0"+e.toString(10):e.toString(10)}var M1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j1(){var e=new Date,t=[vf(e.getHours()),vf(e.getMinutes()),vf(e.getSeconds())].join(":");return[e.getDate(),M1[e.getMonth()],t].join(" ")}M.log=function(){console.log("%s - %s",j1(),M.format.apply(M,arguments))};M.inherits=W();M._extend=function(e,t){if(!t||!Fr(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function Ph(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Zt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;M.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(Zt&&t[Zt]){var r=t[Zt];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,Zt,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(l,u){n=l,i=u}),o=[],f=0;f<arguments.length;f++)o.push(arguments[f]);o.push(function(l,u){l?i(l):n(u)});try{t.apply(this,o)}catch(l){i(l)}return a}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Zt&&Object.defineProperty(r,Zt,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,qh(t))};M.promisify.custom=Zt;function U1(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function C1(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if(typeof i!="function")throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,r).then(function(f){h.default.nextTick(o.bind(null,null,f))},function(f){h.default.nextTick(U1.bind(null,f,o))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,qh(e)),t}M.callbackify=C1});var Zh=_((S6,zh)=>{"use strict";c();function Mh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mh(Object(r),!0).forEach(function(n){z1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z1(e,t,r){return t=Ch(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ch(n.key),n)}}function W1(e,t,r){return t&&Uh(e.prototype,t),r&&Uh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ch(e){var t=H1(e,"string");return typeof t=="symbol"?t:String(t)}function H1(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var G1=Ae(),ra=G1.Buffer,$1=Fe(),Ef=$1.inspect,V1=Ef&&Ef.custom||"inspect";function Y1(e,t,r){ra.prototype.copy.call(e,t,r)}zh.exports=(function(){function e(){Z1(this,e),this.head=null,this.tail=null,this.length=0}return W1(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++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 n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return ra.alloc(0);for(var n=ra.allocUnsafe(r>>>0),i=this.head,a=0;i;)Y1(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,a=n.data;for(r-=a.length;n=n.next;){var o=n.data,f=r>o.length?o.length:r;if(f===o.length?a+=o:a+=o.slice(0,r),r-=f,r===0){f===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(f));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=ra.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,f=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,f),r-=f,r===0){f===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(f));break}++a}return this.length-=a,n}},{key:V1,value:function(r,n){return Ef(this,jh(jh({},n),{},{depth:0,customInspect:!1}))}}]),e})()});var xf=_((R6,Hh)=>{"use strict";c();function J1(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,h.default.nextTick(mf,this,e)):h.default.nextTick(mf,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?h.default.nextTick(na,r):(r._writableState.errorEmitted=!0,h.default.nextTick(Wh,r,a)):h.default.nextTick(Wh,r,a):t?(h.default.nextTick(na,r),t(a)):h.default.nextTick(na,r)}),this)}function Wh(e,t){mf(e,t),na(e)}function na(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function K1(){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 mf(e,t){e.emit("error",t)}function X1(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}Hh.exports={destroy:J1,undestroy:K1,errorOrDestroy:X1}});var Ht=_((O6,Vh)=>{"use strict";c();function Q1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var $h={};function Te(e,t,r){r||(r=Error);function n(a,o,f){return typeof t=="string"?t:t(a,o,f)}var i=(function(a){Q1(o,a);function o(f,l,u){return a.call(this,n(f,l,u))||this}return o})(r);i.prototype.name=r.name,i.prototype.code=e,$h[e]=i}function Gh(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function eE(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function tE(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function rE(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Te("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Te("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&eE(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(tE(e," argument"))i="The ".concat(e," ").concat(n," ").concat(Gh(t,"type"));else{var a=rE(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(Gh(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Te("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Te("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Te("ERR_STREAM_PREMATURE_CLOSE","Premature close");Te("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Te("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Te("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Te("ERR_STREAM_WRITE_AFTER_END","write after end");Te("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Te("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Te("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Vh.exports.codes=$h});var Sf=_((B6,Yh)=>{"use strict";c();var nE=Ht().codes.ERR_INVALID_OPT_VALUE;function iE(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function aE(e,t,r,n){var i=iE(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new nE(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}Yh.exports={getHighWaterMark:aE}});var Rf=_((L6,Jh)=>{c();Jh.exports=oE;function oE(e,t){if(Af("noDeprecation"))return e;var r=!1;function n(){if(!r){if(Af("throwDeprecation"))throw new Error(t);Af("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function Af(e){try{if(!globalThis.localStorage)return!1}catch{return!1}var t=globalThis.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var If=_((D6,rd)=>{"use strict";c();rd.exports=Y;function Xh(e){var t=this;this.next=null,this.entry=null,this.finish=function(){qE(t,e)}}var Nr;Y.WritableState=_n;var fE={deprecate:Rf()},Qh=Co(),aa=Ae().Buffer,uE=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function sE(e){return aa.from(e)}function lE(e){return aa.isBuffer(e)||e instanceof uE}var Of=xf(),cE=Sf(),hE=cE.getHighWaterMark,bt=Ht().codes,dE=bt.ERR_INVALID_ARG_TYPE,pE=bt.ERR_METHOD_NOT_IMPLEMENTED,yE=bt.ERR_MULTIPLE_CALLBACK,_E=bt.ERR_STREAM_CANNOT_PIPE,vE=bt.ERR_STREAM_DESTROYED,gE=bt.ERR_STREAM_NULL_VALUES,bE=bt.ERR_STREAM_WRITE_AFTER_END,wE=bt.ERR_UNKNOWN_ENCODING,Pr=Of.errorOrDestroy;W()(Y,Qh);function EE(){}function _n(e,t,r){Nr=Nr||Gt(),e=e||{},typeof r!="boolean"&&(r=t instanceof Nr),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=hE(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){OE(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Xh(this)}_n.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(_n.prototype,"buffer",{get:fE.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ia;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ia=Function.prototype[Symbol.hasInstance],Object.defineProperty(Y,Symbol.hasInstance,{value:function(t){return ia.call(this,t)?!0:this!==Y?!1:t&&t._writableState instanceof _n}})):ia=function(t){return t instanceof this};function Y(e){Nr=Nr||Gt();var t=this instanceof Nr;if(!t&&!ia.call(Y,this))return new Y(e);this._writableState=new _n(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Qh.call(this)}Y.prototype.pipe=function(){Pr(this,new _E)};function mE(e,t){var r=new bE;Pr(e,r),h.default.nextTick(t,r)}function xE(e,t,r,n){var i;return r===null?i=new gE:typeof r!="string"&&!t.objectMode&&(i=new dE("chunk",["string","Buffer"],r)),i?(Pr(e,i),h.default.nextTick(n,i),!1):!0}Y.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&lE(e);return a&&!aa.isBuffer(e)&&(e=sE(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=EE),n.ending?mE(this,r):(a||xE(this,n,e,r))&&(n.pendingcb++,i=AE(this,n,a,e,t,r)),i};Y.prototype.cork=function(){this._writableState.corked++};Y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&ed(this,e))};Y.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new wE(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function SE(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=aa.from(t,r)),t}Object.defineProperty(Y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function AE(e,t,r,n,i,a){if(!r){var o=SE(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var f=t.objectMode?1:n.length;t.length+=f;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Tf(e,t,!1,f,n,i,a);return l}function Tf(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new vE("write")):r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function RE(e,t,r,n,i){--t.pendingcb,r?(h.default.nextTick(i,n),h.default.nextTick(yn,e,t),e._writableState.errorEmitted=!0,Pr(e,n)):(i(n),e._writableState.errorEmitted=!0,Pr(e,n),yn(e,t))}function TE(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function OE(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new yE;if(TE(r),t)RE(e,r,n,t,i);else{var a=td(r)||e.destroyed;!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&ed(e,r),n?h.default.nextTick(Kh,e,r,a,i):Kh(e,r,a,i)}}function Kh(e,t,r,n){r||IE(e,t),t.pendingcb--,n(),yn(e,t)}function IE(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function ed(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var o=0,f=!0;r;)i[o]=r,r.isBuf||(f=!1),r=r.next,o+=1;i.allBuffers=f,Tf(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new Xh(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,s=r.callback,d=t.objectMode?1:l.length;if(Tf(e,t,!1,d,l,u,s),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Y.prototype._write=function(e,t,r){r(new pE("_write()"))};Y.prototype._writev=null;Y.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||LE(this,n,r),this};Object.defineProperty(Y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function td(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function BE(e,t){e._final(function(r){t.pendingcb--,r&&Pr(e,r),t.prefinished=!0,e.emit("prefinish"),yn(e,t)})}function kE(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,h.default.nextTick(BE,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function yn(e,t){var r=td(t);if(r&&(kE(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function LE(e,t,r){t.ending=!0,yn(e,t),r&&(t.finished?h.default.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function qE(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(Y.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Y.prototype.destroy=Of.destroy;Y.prototype._undestroy=Of.undestroy;Y.prototype._destroy=function(e,t){t(e)}});var Gt=_((N6,id)=>{"use strict";c();var DE=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};id.exports=Ve;var nd=Lf(),kf=If();W()(Ve,nd);for(Bf=DE(kf.prototype),oa=0;oa<Bf.length;oa++)fa=Bf[oa],Ve.prototype[fa]||(Ve.prototype[fa]=kf.prototype[fa]);var Bf,fa,oa;function Ve(e){if(!(this instanceof Ve))return new Ve(e);nd.call(this,e),kf.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",FE)))}Object.defineProperty(Ve.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Ve.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Ve.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function FE(){this._writableState.ended||h.default.nextTick(NE,this)}function NE(e){e.end()}Object.defineProperty(Ve.prototype,"destroyed",{enumerable:!1,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)}})});var fd=_((qf,od)=>{c();var ua=Ae(),ft=ua.Buffer;function ad(e,t){for(var r in e)t[r]=e[r]}ft.from&&ft.alloc&&ft.allocUnsafe&&ft.allocUnsafeSlow?od.exports=ua:(ad(ua,qf),qf.Buffer=Mr);function Mr(e,t,r){return ft(e,t,r)}ad(ft,Mr);Mr.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ft(e,t,r)};Mr.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=ft(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};Mr.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ft(e)};Mr.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ua.SlowBuffer(e)}});var jr=_(sd=>{"use strict";c();var Ff=fd().Buffer,ud=Ff.isEncoding||function(e){switch(e=""+e,e&&e.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 PE(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function ME(e){var t=PE(e);if(typeof t!="string"&&(Ff.isEncoding===ud||!ud(e)))throw new Error("Unknown encoding: "+e);return t||e}sd.StringDecoder=vn;function vn(e){this.encoding=ME(e);var t;switch(this.encoding){case"utf16le":this.text=WE,this.end=HE,t=4;break;case"utf8":this.fillLast=CE,t=4;break;case"base64":this.text=GE,this.end=$E,t=3;break;default:this.write=VE,this.end=YE;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ff.allocUnsafe(t)}vn.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};vn.prototype.end=ZE;vn.prototype.text=zE;vn.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Df(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function jE(e,t,r){var n=t.length-1;if(n<r)return 0;var i=Df(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=Df(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=Df(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function UE(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function CE(e){var t=this.lastTotal-this.lastNeed,r=UE(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function zE(e,t){var r=jE(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function ZE(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function WE(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function HE(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function GE(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function $E(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function VE(e){return e.toString(this.encoding)}function YE(e){return e&&e.length?this.write(e):""}});var sa=_((C6,hd)=>{"use strict";c();var ld=Ht().codes.ERR_STREAM_PREMATURE_CLOSE;function JE(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function KE(){}function XE(e){return e.setHeader&&typeof e.abort=="function"}function cd(e,t,r){if(typeof t=="function")return cd(e,null,t);t||(t={}),r=JE(r||KE);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,a=function(){e.writable||f()},o=e._writableState&&e._writableState.finished,f=function(){i=!1,o=!0,n||r.call(e)},l=e._readableState&&e._readableState.endEmitted,u=function(){n=!1,l=!0,i||r.call(e)},s=function(b){r.call(e,b)},d=function(){var b;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(b=new ld),r.call(e,b);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(b=new ld),r.call(e,b)},p=function(){e.req.on("finish",f)};return XE(e)?(e.on("complete",f),e.on("abort",d),e.req?p():e.on("request",p)):i&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",u),e.on("finish",f),t.error!==!1&&e.on("error",s),e.on("close",d),function(){e.removeListener("complete",f),e.removeListener("abort",d),e.removeListener("request",p),e.req&&e.req.removeListener("finish",f),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",f),e.removeListener("end",u),e.removeListener("error",s),e.removeListener("close",d)}}hd.exports=cd});var pd=_((Z6,dd)=>{"use strict";c();var la;function wt(e,t,r){return t=QE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QE(e){var t=em(e,"string");return typeof t=="symbol"?t:String(t)}function em(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tm=sa(),Et=Symbol("lastResolve"),$t=Symbol("lastReject"),gn=Symbol("error"),ca=Symbol("ended"),Vt=Symbol("lastPromise"),Nf=Symbol("handlePromise"),Yt=Symbol("stream");function mt(e,t){return{value:e,done:t}}function rm(e){var t=e[Et];if(t!==null){var r=e[Yt].read();r!==null&&(e[Vt]=null,e[Et]=null,e[$t]=null,t(mt(r,!1)))}}function nm(e){h.default.nextTick(rm,e)}function im(e,t){return function(r,n){e.then(function(){if(t[ca]){r(mt(void 0,!0));return}t[Nf](r,n)},n)}}var am=Object.getPrototypeOf(function(){}),om=Object.setPrototypeOf((la={get stream(){return this[Yt]},next:function(){var t=this,r=this[gn];if(r!==null)return Promise.reject(r);if(this[ca])return Promise.resolve(mt(void 0,!0));if(this[Yt].destroyed)return new Promise(function(o,f){h.default.nextTick(function(){t[gn]?f(t[gn]):o(mt(void 0,!0))})});var n=this[Vt],i;if(n)i=new Promise(im(n,this));else{var a=this[Yt].read();if(a!==null)return Promise.resolve(mt(a,!1));i=new Promise(this[Nf])}return this[Vt]=i,i}},wt(la,Symbol.asyncIterator,function(){return this}),wt(la,"return",function(){var t=this;return new Promise(function(r,n){t[Yt].destroy(null,function(i){if(i){n(i);return}r(mt(void 0,!0))})})}),la),am),fm=function(t){var r,n=Object.create(om,(r={},wt(r,Yt,{value:t,writable:!0}),wt(r,Et,{value:null,writable:!0}),wt(r,$t,{value:null,writable:!0}),wt(r,gn,{value:null,writable:!0}),wt(r,ca,{value:t._readableState.endEmitted,writable:!0}),wt(r,Nf,{value:function(a,o){var f=n[Yt].read();f?(n[Vt]=null,n[Et]=null,n[$t]=null,a(mt(f,!1))):(n[Et]=a,n[$t]=o)},writable:!0}),r));return n[Vt]=null,tm(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[$t];a!==null&&(n[Vt]=null,n[Et]=null,n[$t]=null,a(i)),n[gn]=i;return}var o=n[Et];o!==null&&(n[Vt]=null,n[Et]=null,n[$t]=null,o(mt(void 0,!0))),n[ca]=!0}),t.on("readable",nm.bind(null,n)),n};dd.exports=fm});var _d=_((H6,yd)=>{c();yd.exports=function(){throw new Error("Readable.from is not available in the browser")}});var Lf=_((V6,Rd)=>{"use strict";c();Rd.exports=U;var Ur;U.ReadableState=wd;var $6=Rr().EventEmitter,bd=function(t,r){return t.listeners(r).length},wn=Co(),ha=Ae().Buffer,um=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function sm(e){return ha.from(e)}function lm(e){return ha.isBuffer(e)||e instanceof um}var Pf=Fe(),F;Pf&&Pf.debuglog?F=Pf.debuglog("stream"):F=function(){};var cm=Zh(),Wf=xf(),hm=Sf(),dm=hm.getHighWaterMark,da=Ht().codes,pm=da.ERR_INVALID_ARG_TYPE,ym=da.ERR_STREAM_PUSH_AFTER_EOF,_m=da.ERR_METHOD_NOT_IMPLEMENTED,vm=da.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Cr,Mf,jf;W()(U,wn);var bn=Wf.errorOrDestroy,Uf=["error","close","destroy","pause","resume"];function gm(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function wd(e,t,r){Ur=Ur||Gt(),e=e||{},typeof r!="boolean"&&(r=t instanceof Ur),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=dm(this,e,"readableHighWaterMark",r),this.buffer=new cm,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=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Cr||(Cr=jr().StringDecoder),this.decoder=new Cr(e.encoding),this.encoding=e.encoding)}function U(e){if(Ur=Ur||Gt(),!(this instanceof U))return new U(e);var t=this instanceof Ur;this._readableState=new wd(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),wn.call(this)}Object.defineProperty(U.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});U.prototype.destroy=Wf.destroy;U.prototype._undestroy=Wf.undestroy;U.prototype._destroy=function(e,t){t(e)};U.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=ha.from(e,t),t=""),n=!0),Ed(this,e,t,!1,n)};U.prototype.unshift=function(e){return Ed(this,e,null,!0,!1)};function Ed(e,t,r,n,i){F("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,Em(e,a);else{var o;if(i||(o=bm(a,t)),o)bn(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==ha.prototype&&(t=sm(t)),n)a.endEmitted?bn(e,new vm):Cf(e,a,t,!0);else if(a.ended)bn(e,new ym);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?Cf(e,a,t,!1):Zf(e,a)):Cf(e,a,t,!1)}else n||(a.reading=!1,Zf(e,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function Cf(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&pa(e)),Zf(e,t)}function bm(e,t){var r;return!lm(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new pm("chunk",["string","Buffer","Uint8Array"],t)),r}U.prototype.isPaused=function(){return this._readableState.flowing===!1};U.prototype.setEncoding=function(e){Cr||(Cr=jr().StringDecoder);var t=new Cr(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var vd=1073741824;function wm(e){return e>=vd?e=vd:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function gd(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=wm(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}U.prototype.read=function(e){F("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return F("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?zf(this):pa(this),null;if(e=gd(e,t),e===0&&t.ended)return t.length===0&&zf(this),null;var n=t.needReadable;F("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,F("length less than watermark",n)),t.ended||t.reading?(n=!1,F("reading or ended",n)):n&&(F("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=gd(r,t)));var i;return e>0?i=Sd(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&zf(this)),i!==null&&this.emit("data",i),i};function Em(e,t){if(F("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?pa(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,md(e)))}}function pa(e){var t=e._readableState;F("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(F("emitReadable",t.flowing),t.emittedReadable=!0,h.default.nextTick(md,e))}function md(e){var t=e._readableState;F("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Hf(e)}function Zf(e,t){t.readingMore||(t.readingMore=!0,h.default.nextTick(mm,e,t))}function mm(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(F("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}U.prototype._read=function(e){bn(this,new _m("_read()"))};U.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,F("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==h.default.stdout&&e!==h.default.stderr,a=i?f:w;n.endEmitted?h.default.nextTick(a):r.once("end",a),e.on("unpipe",o);function o(x,m){F("onunpipe"),x===r&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,s())}function f(){F("onend"),e.end()}var l=xm(r);e.on("drain",l);var u=!1;function s(){F("cleanup"),e.removeListener("close",y),e.removeListener("finish",b),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",o),r.removeListener("end",f),r.removeListener("end",w),r.removeListener("data",d),u=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",d);function d(x){F("ondata");var m=e.write(x);F("dest.write",m),m===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Ad(n.pipes,e)!==-1)&&!u&&(F("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(x){F("onerror",x),w(),e.removeListener("error",p),bd(e,"error")===0&&bn(e,x)}gm(e,"error",p);function y(){e.removeListener("finish",b),w()}e.once("close",y);function b(){F("onfinish"),e.removeListener("close",y),w()}e.once("finish",b);function w(){F("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(F("pipe resume"),r.resume()),e};function xm(e){return function(){var r=e._readableState;F("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&bd(e,"data")&&(r.flowing=!0,Hf(e))}}U.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Ad(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};U.prototype.on=function(e,t){var r=wn.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,F("on readable",n.length,n.reading),n.length?pa(this):n.reading||h.default.nextTick(Sm,this)),r};U.prototype.addListener=U.prototype.on;U.prototype.removeListener=function(e,t){var r=wn.prototype.removeListener.call(this,e,t);return e==="readable"&&h.default.nextTick(xd,this),r};U.prototype.removeAllListeners=function(e){var t=wn.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&h.default.nextTick(xd,this),t};function xd(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function Sm(e){F("readable nexttick read 0"),e.read(0)}U.prototype.resume=function(){var e=this._readableState;return e.flowing||(F("resume"),e.flowing=!e.readableListening,Am(this,e)),e.paused=!1,this};function Am(e,t){t.resumeScheduled||(t.resumeScheduled=!0,h.default.nextTick(Rm,e,t))}function Rm(e,t){F("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Hf(e),t.flowing&&!t.reading&&e.read(0)}U.prototype.pause=function(){return F("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(F("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Hf(e){var t=e._readableState;for(F("flow",t.flowing);t.flowing&&e.read()!==null;);}U.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(F("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(F("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var f=t.push(o);f||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(f){return function(){return e[f].apply(e,arguments)}})(i));for(var a=0;a<Uf.length;a++)e.on(Uf[a],this.emit.bind(this,Uf[a]));return this._read=function(o){F("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(U.prototype[Symbol.asyncIterator]=function(){return Mf===void 0&&(Mf=pd()),Mf(this)});Object.defineProperty(U.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(U.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(U.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});U._fromList=Sd;Object.defineProperty(U.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Sd(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function zf(e){var t=e._readableState;F("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,h.default.nextTick(Tm,t,e))}function Tm(e,t){if(F("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(U.from=function(e,t){return jf===void 0&&(jf=_d()),jf(U,e,t)});function Ad(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var Gf=_((J6,Od)=>{"use strict";c();Od.exports=ut;var ya=Ht().codes,Om=ya.ERR_METHOD_NOT_IMPLEMENTED,Im=ya.ERR_MULTIPLE_CALLBACK,Bm=ya.ERR_TRANSFORM_ALREADY_TRANSFORMING,km=ya.ERR_TRANSFORM_WITH_LENGTH_0,_a=Gt();W()(ut,_a);function Lm(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Im);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ut(e){if(!(this instanceof ut))return new ut(e);_a.call(this,e),this._transformState={afterTransform:Lm.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",qm)}function qm(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){Td(e,t,r)}):Td(this,null,null)}ut.prototype.push=function(e,t){return this._transformState.needTransform=!1,_a.prototype.push.call(this,e,t)};ut.prototype._transform=function(e,t,r){r(new Om("_transform()"))};ut.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ut.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};ut.prototype._destroy=function(e,t){_a.prototype._destroy.call(this,e,function(r){t(r)})};function Td(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new km;if(e._transformState.transforming)throw new Bm;return e.push(null)}});var kd=_((X6,Bd)=>{"use strict";c();Bd.exports=En;var Id=Gf();W()(En,Id);function En(e){if(!(this instanceof En))return new En(e);Id.call(this,e)}En.prototype._transform=function(e,t,r){r(null,e)}});var Nd=_((eI,Fd)=>{"use strict";c();var $f;function Dm(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Dd=Ht().codes,Fm=Dd.ERR_MISSING_ARGS,Nm=Dd.ERR_STREAM_DESTROYED;function Ld(e){if(e)throw e}function Pm(e){return e.setHeader&&typeof e.abort=="function"}function Mm(e,t,r,n){n=Dm(n);var i=!1;e.on("close",function(){i=!0}),$f===void 0&&($f=sa()),$f(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,Pm(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new Nm("pipe"))}}}function qd(e){e()}function jm(e,t){return e.pipe(t)}function Um(e){return!e.length||typeof e[e.length-1]!="function"?Ld:e.pop()}function Cm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Um(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Fm("streams");var i,a=t.map(function(o,f){var l=f<t.length-1,u=f>0;return Mm(o,l,u,function(s){i||(i=s),s&&a.forEach(qd),!l&&(a.forEach(qd),n(i))})});return t.reduce(jm)}Fd.exports=Cm});var va=_((rI,Pd)=>{c();Pd.exports=Oe;var Vf=Rr().EventEmitter,zm=W();zm(Oe,Vf);Oe.Readable=Lf();Oe.Writable=If();Oe.Duplex=Gt();Oe.Transform=Gf();Oe.PassThrough=kd();Oe.finished=sa();Oe.pipeline=Nd();Oe.Stream=Oe;function Oe(){Vf.call(this)}Oe.prototype.pipe=function(e,t){var r=this;function n(s){e.writable&&e.write(s)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",f));var a=!1;function o(){a||(a=!0,e.end())}function f(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function l(s){if(u(),Vf.listenerCount(this,"error")===0)throw s}r.on("error",l),e.on("error",l);function u(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",f),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}});var Ud=_((iI,jd)=>{"use strict";c();var Ye=ne().Buffer,Md=va().Transform,Zm=W();function xt(e){Md.call(this),this._block=Ye.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Zm(xt,Md);xt.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)};xt.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};var Wm=typeof Uint8Array<"u",Hm=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Ye.prototype instanceof Uint8Array||Ye.TYPED_ARRAY_SUPPORT);function Gm(e,t){if(e instanceof Ye)return e;if(typeof e=="string")return Ye.from(e,t);if(Hm&&ArrayBuffer.isView(e)){if(e.byteLength===0)return Ye.alloc(0);var r=Ye.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(Wm&&e instanceof Uint8Array||Ye.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return Ye.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}xt.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");e=Gm(e,t);for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)r[this._blockOffset++]=e[n++];for(var a=0,o=e.length*8;o>0;++a)this._length[a]+=o,o=this._length[a]/4294967296|0,o>0&&(this._length[a]-=4294967296*o);return this};xt.prototype._update=function(){throw new Error("_update is not implemented")};xt.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t};xt.prototype._digest=function(){throw new Error("_digest is not implemented")};jd.exports=xt});var Yf=_((oI,zd)=>{"use strict";c();var $m=W(),Cd=Ud(),Vm=ne().Buffer,Ym=new Array(16);function ga(){Cd.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}$m(ga,Cd);ga.prototype._update=function(){for(var e=Ym,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var r=this._a,n=this._b,i=this._c,a=this._d;r=fe(r,n,i,a,e[0],3614090360,7),a=fe(a,r,n,i,e[1],3905402710,12),i=fe(i,a,r,n,e[2],606105819,17),n=fe(n,i,a,r,e[3],3250441966,22),r=fe(r,n,i,a,e[4],4118548399,7),a=fe(a,r,n,i,e[5],1200080426,12),i=fe(i,a,r,n,e[6],2821735955,17),n=fe(n,i,a,r,e[7],4249261313,22),r=fe(r,n,i,a,e[8],1770035416,7),a=fe(a,r,n,i,e[9],2336552879,12),i=fe(i,a,r,n,e[10],4294925233,17),n=fe(n,i,a,r,e[11],2304563134,22),r=fe(r,n,i,a,e[12],1804603682,7),a=fe(a,r,n,i,e[13],4254626195,12),i=fe(i,a,r,n,e[14],2792965006,17),n=fe(n,i,a,r,e[15],1236535329,22),r=ue(r,n,i,a,e[1],4129170786,5),a=ue(a,r,n,i,e[6],3225465664,9),i=ue(i,a,r,n,e[11],643717713,14),n=ue(n,i,a,r,e[0],3921069994,20),r=ue(r,n,i,a,e[5],3593408605,5),a=ue(a,r,n,i,e[10],38016083,9),i=ue(i,a,r,n,e[15],3634488961,14),n=ue(n,i,a,r,e[4],3889429448,20),r=ue(r,n,i,a,e[9],568446438,5),a=ue(a,r,n,i,e[14],3275163606,9),i=ue(i,a,r,n,e[3],4107603335,14),n=ue(n,i,a,r,e[8],1163531501,20),r=ue(r,n,i,a,e[13],2850285829,5),a=ue(a,r,n,i,e[2],4243563512,9),i=ue(i,a,r,n,e[7],1735328473,14),n=ue(n,i,a,r,e[12],2368359562,20),r=se(r,n,i,a,e[5],4294588738,4),a=se(a,r,n,i,e[8],2272392833,11),i=se(i,a,r,n,e[11],1839030562,16),n=se(n,i,a,r,e[14],4259657740,23),r=se(r,n,i,a,e[1],2763975236,4),a=se(a,r,n,i,e[4],1272893353,11),i=se(i,a,r,n,e[7],4139469664,16),n=se(n,i,a,r,e[10],3200236656,23),r=se(r,n,i,a,e[13],681279174,4),a=se(a,r,n,i,e[0],3936430074,11),i=se(i,a,r,n,e[3],3572445317,16),n=se(n,i,a,r,e[6],76029189,23),r=se(r,n,i,a,e[9],3654602809,4),a=se(a,r,n,i,e[12],3873151461,11),i=se(i,a,r,n,e[15],530742520,16),n=se(n,i,a,r,e[2],3299628645,23),r=le(r,n,i,a,e[0],4096336452,6),a=le(a,r,n,i,e[7],1126891415,10),i=le(i,a,r,n,e[14],2878612391,15),n=le(n,i,a,r,e[5],4237533241,21),r=le(r,n,i,a,e[12],1700485571,6),a=le(a,r,n,i,e[3],2399980690,10),i=le(i,a,r,n,e[10],4293915773,15),n=le(n,i,a,r,e[1],2240044497,21),r=le(r,n,i,a,e[8],1873313359,6),a=le(a,r,n,i,e[15],4264355552,10),i=le(i,a,r,n,e[6],2734768916,15),n=le(n,i,a,r,e[13],1309151649,21),r=le(r,n,i,a,e[4],4149444226,6),a=le(a,r,n,i,e[11],3174756917,10),i=le(i,a,r,n,e[2],718787259,15),n=le(n,i,a,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+a|0};ga.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 e=Vm.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};function ba(e,t){return e<<t|e>>>32-t}function fe(e,t,r,n,i,a,o){return ba(e+(t&r|~t&n)+i+a|0,o)+t|0}function ue(e,t,r,n,i,a,o){return ba(e+(t&n|r&~n)+i+a|0,o)+t|0}function se(e,t,r,n,i,a,o){return ba(e+(t^r^n)+i+a|0,o)+t|0}function le(e,t,r,n,i,a,o){return ba(e+(r^(t|~n))+i+a|0,o)+t|0}zd.exports=ga});var Wd=_((uI,Zd)=>{c();var Jm={}.toString;Zd.exports=Array.isArray||function(e){return Jm.call(e)=="[object Array]"}});var Gd=_((lI,Hd)=>{"use strict";c();var Km=Ut(),Xm=vt(),Qm=Xm("TypedArray.prototype.buffer",!0),ex=df();Hd.exports=Qm||function(t){if(!ex(t))throw new Km("Not a Typed Array");return t.buffer}});var wa=_((hI,Vd)=>{"use strict";c();var Ne=ne().Buffer,tx=Wd(),rx=Gd(),nx=ArrayBuffer.isView||function(t){try{return rx(t),!0}catch{return!1}},ix=typeof Uint8Array<"u",$d=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",ax=$d&&(Ne.prototype instanceof Uint8Array||Ne.TYPED_ARRAY_SUPPORT);Vd.exports=function(t,r){if(Ne.isBuffer(t))return t.constructor&&!("isBuffer"in t)?Ne.from(t):t;if(typeof t=="string")return Ne.from(t,r);if($d&&nx(t)){if(t.byteLength===0)return Ne.alloc(0);if(ax){var n=Ne.from(t.buffer,t.byteOffset,t.byteLength);if(n.byteLength===t.byteLength)return n}var i=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),a=Ne.from(i);if(a.length===t.byteLength)return a}if(ix&&t instanceof Uint8Array)return Ne.from(t);var o=tx(t);if(o)for(var f=0;f<t.length;f+=1){var l=t[f];if(typeof l!="number"||l<0||l>255||~~l!==l)throw new RangeError("Array items must be numbers in the range 0-255.")}if(o||Ne.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return Ne.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var Xd=_((pI,Kd)=>{"use strict";c();var ox=ne().Buffer,fx=wa(),Jd=typeof Uint8Array<"u",ux=Jd&&typeof ArrayBuffer<"u",Yd=ux&&ArrayBuffer.isView;Kd.exports=function(e,t){if(typeof e=="string"||ox.isBuffer(e)||Jd&&e instanceof Uint8Array||Yd&&Yd(e))return fx(e,t);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var mn=_((_I,Jf)=>{"use strict";c();typeof h.default>"u"||!h.default.version||h.default.version.indexOf("v0.")===0||h.default.version.indexOf("v1.")===0&&h.default.version.indexOf("v1.8.")!==0?Jf.exports={nextTick:sx}:Jf.exports=h.default;function sx(e,t,r,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,a,o;switch(i){case 0:case 1:return h.default.nextTick(e);case 2:return h.default.nextTick(function(){e.call(null,t)});case 3:return h.default.nextTick(function(){e.call(null,t,r)});case 4:return h.default.nextTick(function(){e.call(null,t,r,n)});default:for(a=new Array(i-1),o=0;o<a.length;)a[o++]=arguments[o];return h.default.nextTick(function(){e.apply(null,a)})}}});var ep=_((gI,Qd)=>{c();var lx={}.toString;Qd.exports=Array.isArray||function(e){return lx.call(e)=="[object Array]"}});var Kf=_((wI,tp)=>{c();tp.exports=Rr().EventEmitter});var ma=_((Xf,np)=>{c();var Ea=Ae(),st=Ea.Buffer;function rp(e,t){for(var r in e)t[r]=e[r]}st.from&&st.alloc&&st.allocUnsafe&&st.allocUnsafeSlow?np.exports=Ea:(rp(Ea,Xf),Xf.Buffer=zr);function zr(e,t,r){return st(e,t,r)}rp(st,zr);zr.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return st(e,t,r)};zr.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=st(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};zr.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return st(e)};zr.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ea.SlowBuffer(e)}});var Zr=_(ce=>{c();function cx(e){return Array.isArray?Array.isArray(e):xa(e)==="[object Array]"}ce.isArray=cx;function hx(e){return typeof e=="boolean"}ce.isBoolean=hx;function dx(e){return e===null}ce.isNull=dx;function px(e){return e==null}ce.isNullOrUndefined=px;function yx(e){return typeof e=="number"}ce.isNumber=yx;function _x(e){return typeof e=="string"}ce.isString=_x;function vx(e){return typeof e=="symbol"}ce.isSymbol=vx;function gx(e){return e===void 0}ce.isUndefined=gx;function bx(e){return xa(e)==="[object RegExp]"}ce.isRegExp=bx;function wx(e){return typeof e=="object"&&e!==null}ce.isObject=wx;function Ex(e){return xa(e)==="[object Date]"}ce.isDate=Ex;function mx(e){return xa(e)==="[object Error]"||e instanceof Error}ce.isError=mx;function xx(e){return typeof e=="function"}ce.isFunction=xx;function Sx(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}ce.isPrimitive=Sx;ce.isBuffer=Ae().Buffer.isBuffer;function xa(e){return Object.prototype.toString.call(e)}});var ap=_((AI,Qf)=>{"use strict";c();function Ax(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var ip=ma().Buffer,xn=Fe();function Rx(e,t,r){e.copy(t,r)}Qf.exports=(function(){function e(){Ax(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i},e.prototype.concat=function(r){if(this.length===0)return ip.alloc(0);for(var n=ip.allocUnsafe(r>>>0),i=this.head,a=0;i;)Rx(i.data,n,a),a+=i.data.length,i=i.next;return n},e})();xn&&xn.inspect&&xn.inspect.custom&&(Qf.exports.prototype[xn.inspect.custom]=function(){var e=xn.inspect({length:this.length});return this.constructor.name+" "+e})});var eu=_((TI,op)=>{"use strict";c();var Sa=mn();function Tx(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Sa.nextTick(Aa,this,e)):Sa.nextTick(Aa,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,Sa.nextTick(Aa,r,a)):Sa.nextTick(Aa,r,a):t&&t(a)}),this)}function Ox(){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 Aa(e,t){e.emit("error",t)}op.exports={destroy:Tx,undestroy:Ox}});var ru=_((II,pp)=>{"use strict";c();var Jt=mn();pp.exports=X;function up(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Gx(t,e)}}var Ix=!h.default.browser&&["v0.10","v0.9."].indexOf(h.default.version.slice(0,5))>-1?setImmediate:Jt.nextTick,Wr;X.WritableState=An;var sp=Object.create(Zr());sp.inherits=W();var Bx={deprecate:Rf()},lp=Kf(),Ta=ma().Buffer,kx=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Lx(e){return Ta.from(e)}function qx(e){return Ta.isBuffer(e)||e instanceof kx}var cp=eu();sp.inherits(X,lp);function Dx(){}function An(e,t){Wr=Wr||Kt(),e=e||{};var r=t instanceof Wr;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,a=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=a,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 o=e.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(f){Cx(t,f)},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 up(this)}An.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(An.prototype,"buffer",{get:Bx.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Ra;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ra=Function.prototype[Symbol.hasInstance],Object.defineProperty(X,Symbol.hasInstance,{value:function(e){return Ra.call(this,e)?!0:this!==X?!1:e&&e._writableState instanceof An}})):Ra=function(e){return e instanceof this};function X(e){if(Wr=Wr||Kt(),!Ra.call(X,this)&&!(this instanceof Wr))return new X(e);this._writableState=new An(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),lp.call(this)}X.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Fx(e,t){var r=new Error("write after end");e.emit("error",r),Jt.nextTick(t,r)}function Nx(e,t,r,n){var i=!0,a=!1;return r===null?a=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),Jt.nextTick(n,a),i=!1),i}X.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&qx(e);return a&&!Ta.isBuffer(e)&&(e=Lx(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=Dx),n.ended?Fx(this,r):(a||Nx(this,n,e,r))&&(n.pendingcb++,i=Mx(this,n,a,e,t,r)),i};X.prototype.cork=function(){var e=this._writableState;e.corked++};X.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&hp(this,e))};X.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function Px(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Ta.from(t,r)),t}Object.defineProperty(X.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Mx(e,t,r,n,i,a){if(!r){var o=Px(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var f=t.objectMode?1:n.length;t.length+=f;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else tu(e,t,!1,f,n,i,a);return l}function tu(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function jx(e,t,r,n,i){--t.pendingcb,r?(Jt.nextTick(i,n),Jt.nextTick(Sn,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),Sn(e,t))}function Ux(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Cx(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(Ux(r),t)jx(e,r,n,t,i);else{var a=dp(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&hp(e,r),n?Ix(fp,e,r,a,i):fp(e,r,a,i)}}function fp(e,t,r,n){r||zx(e,t),t.pendingcb--,n(),Sn(e,t)}function zx(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function hp(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var o=0,f=!0;r;)i[o]=r,r.isBuf||(f=!1),r=r.next,o+=1;i.allBuffers=f,tu(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new up(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,s=r.callback,d=t.objectMode?1:l.length;if(tu(e,t,!1,d,l,u,s),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}X.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};X.prototype._writev=null;X.prototype.end=function(e,t,r){var n=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||Hx(this,n,r)};function dp(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Zx(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Sn(e,t)})}function Wx(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Jt.nextTick(Zx,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Sn(e,t){var r=dp(t);return r&&(Wx(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function Hx(e,t,r){t.ending=!0,Sn(e,t),r&&(t.finished?Jt.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Gx(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(X.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});X.prototype.destroy=cp.destroy;X.prototype._undestroy=cp.undestroy;X.prototype._destroy=function(e,t){this.end(),t(e)}});var Kt=_((kI,gp)=>{"use strict";c();var yp=mn(),$x=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};gp.exports=lt;var _p=Object.create(Zr());_p.inherits=W();var vp=au(),iu=ru();_p.inherits(lt,vp);for(nu=$x(iu.prototype),Oa=0;Oa<nu.length;Oa++)Ia=nu[Oa],lt.prototype[Ia]||(lt.prototype[Ia]=iu.prototype[Ia]);var nu,Ia,Oa;function lt(e){if(!(this instanceof lt))return new lt(e);vp.call(this,e),iu.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",Vx)}Object.defineProperty(lt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Vx(){this.allowHalfOpen||this._writableState.ended||yp.nextTick(Yx,this)}function Yx(e){e.end()}Object.defineProperty(lt.prototype,"destroyed",{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)}});lt.prototype._destroy=function(e,t){this.push(null),this.end(),yp.nextTick(t,e)}});var au=_((DI,Bp)=>{"use strict";c();var Gr=mn();Bp.exports=G;var Jx=ep(),Rn;G.ReadableState=Ap;var qI=Rr().EventEmitter,mp=function(e,t){return e.listeners(t).length},lu=Kf(),Tn=ma().Buffer,Kx=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Xx(e){return Tn.from(e)}function Qx(e){return Tn.isBuffer(e)||e instanceof Kx}var xp=Object.create(Zr());xp.inherits=W();var ou=Fe(),z=void 0;ou&&ou.debuglog?z=ou.debuglog("stream"):z=function(){};var eS=ap(),Sp=eu(),Hr;xp.inherits(G,lu);var fu=["error","close","destroy","pause","resume"];function tS(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Jx(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function Ap(e,t){Rn=Rn||Kt(),e=e||{};var r=t instanceof Rn;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,a=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new eS,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=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Hr||(Hr=jr().StringDecoder),this.decoder=new Hr(e.encoding),this.encoding=e.encoding)}function G(e){if(Rn=Rn||Kt(),!(this instanceof G))return new G(e);this._readableState=new Ap(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),lu.call(this)}Object.defineProperty(G.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});G.prototype.destroy=Sp.destroy;G.prototype._undestroy=Sp.undestroy;G.prototype._destroy=function(e,t){this.push(null),t(e)};G.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Tn.from(e,t),t=""),n=!0),Rp(this,e,t,!1,n)};G.prototype.unshift=function(e){return Rp(this,e,null,!0,!1)};function Rp(e,t,r,n,i){var a=e._readableState;if(t===null)a.reading=!1,aS(e,a);else{var o;i||(o=rS(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==Tn.prototype&&(t=Xx(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):uu(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?uu(e,a,t,!1):Tp(e,a)):uu(e,a,t,!1))):n||(a.reading=!1)}return nS(a)}function uu(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Ba(e)),Tp(e,t)}function rS(e,t){var r;return!Qx(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function nS(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}G.prototype.isPaused=function(){return this._readableState.flowing===!1};G.prototype.setEncoding=function(e){return Hr||(Hr=jr().StringDecoder),this._readableState.decoder=new Hr(e),this._readableState.encoding=e,this};var bp=8388608;function iS(e){return e>=bp?e=bp:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function wp(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=iS(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}G.prototype.read=function(e){z("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return z("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?su(this):Ba(this),null;if(e=wp(e,t),e===0&&t.ended)return t.length===0&&su(this),null;var n=t.needReadable;z("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,z("length less than watermark",n)),t.ended||t.reading?(n=!1,z("reading or ended",n)):n&&(z("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=wp(r,t)));var i;return e>0?i=Op(e,t):i=null,i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&su(this)),i!==null&&this.emit("data",i),i};function aS(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,Ba(e)}}function Ba(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(z("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Gr.nextTick(Ep,e):Ep(e))}function Ep(e){z("emit readable"),e.emit("readable"),cu(e)}function Tp(e,t){t.readingMore||(t.readingMore=!0,Gr.nextTick(oS,e,t))}function oS(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(z("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}G.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};G.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,z("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==h.default.stdout&&e!==h.default.stderr,a=i?f:x;n.endEmitted?Gr.nextTick(a):r.once("end",a),e.on("unpipe",o);function o(m,S){z("onunpipe"),m===r&&S&&S.hasUnpiped===!1&&(S.hasUnpiped=!0,s())}function f(){z("onend"),e.end()}var l=fS(r);e.on("drain",l);var u=!1;function s(){z("cleanup"),e.removeListener("close",b),e.removeListener("finish",w),e.removeListener("drain",l),e.removeListener("error",y),e.removeListener("unpipe",o),r.removeListener("end",f),r.removeListener("end",x),r.removeListener("data",p),u=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}var d=!1;r.on("data",p);function p(m){z("ondata"),d=!1;var S=e.write(m);S===!1&&!d&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Ip(n.pipes,e)!==-1)&&!u&&(z("false write response, pause",n.awaitDrain),n.awaitDrain++,d=!0),r.pause())}function y(m){z("onerror",m),x(),e.removeListener("error",y),mp(e,"error")===0&&e.emit("error",m)}tS(e,"error",y);function b(){e.removeListener("finish",w),x()}e.once("close",b);function w(){z("onfinish"),e.removeListener("close",b),x()}e.once("finish",w);function x(){z("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(z("pipe resume"),r.resume()),e};function fS(e){return function(){var t=e._readableState;z("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&mp(e,"data")&&(t.flowing=!0,cu(e))}}G.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Ip(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};G.prototype.on=function(e,t){var r=lu.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&Ba(this):Gr.nextTick(uS,this))}return r};G.prototype.addListener=G.prototype.on;function uS(e){z("readable nexttick read 0"),e.read(0)}G.prototype.resume=function(){var e=this._readableState;return e.flowing||(z("resume"),e.flowing=!0,sS(this,e)),this};function sS(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Gr.nextTick(lS,e,t))}function lS(e,t){t.reading||(z("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),cu(e),t.flowing&&!t.reading&&e.read(0)}G.prototype.pause=function(){return z("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(z("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function cu(e){var t=e._readableState;for(z("flow",t.flowing);t.flowing&&e.read()!==null;);}G.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(z("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(z("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var f=t.push(o);f||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(o){return function(){return e[o].apply(e,arguments)}})(i));for(var a=0;a<fu.length;a++)e.on(fu[a],this.emit.bind(this,fu[a]));return this._read=function(o){z("wrapped _read",o),n&&(n=!1,e.resume())},this};Object.defineProperty(G.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});G._fromList=Op;function Op(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=cS(e,t.buffer,t.decoder),r}function cS(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?n=t.shift():n=r?hS(e,t):dS(e,t),n}function hS(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),e-=o,e===0){o===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++n}return t.length-=n,i}function dS(e,t){var r=Tn.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),e-=o,e===0){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++i}return t.length-=i,r}function su(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Gr.nextTick(pS,t,e))}function pS(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function Ip(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var hu=_((NI,qp)=>{"use strict";c();qp.exports=ct;var ka=Kt(),Lp=Object.create(Zr());Lp.inherits=W();Lp.inherits(ct,ka);function yS(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ct(e){if(!(this instanceof ct))return new ct(e);ka.call(this,e),this._transformState={afterTransform:yS.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",_S)}function _S(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){kp(e,t,r)}):kp(this,null,null)}ct.prototype.push=function(e,t){return this._transformState.needTransform=!1,ka.prototype.push.call(this,e,t)};ct.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};ct.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ct.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};ct.prototype._destroy=function(e,t){var r=this;ka.prototype._destroy.call(this,e,function(n){t(n),r.emit("close")})};function kp(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var Pp=_((MI,Np)=>{"use strict";c();Np.exports=On;var Dp=hu(),Fp=Object.create(Zr());Fp.inherits=W();Fp.inherits(On,Dp);function On(e){if(!(this instanceof On))return new On(e);Dp.call(this,e)}On.prototype._transform=function(e,t,r){r(null,e)}});var jp=_((Je,Mp)=>{c();Je=Mp.exports=au();Je.Stream=Je;Je.Readable=Je;Je.Writable=ru();Je.Duplex=Kt();Je.Transform=hu();Je.PassThrough=Pp()});var zp=_((CI,Cp)=>{"use strict";c();var vS=ne().Buffer,gS=Xd(),Up=jp().Transform,bS=W();function St(e){Up.call(this),this._block=vS.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}bS(St,Up);St.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)};St.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};St.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");for(var r=gS(e,t),n=this._block,i=0;this._blockOffset+r.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a]=r[i],a+=1,i+=1;this._update(),this._blockOffset=0}for(;i<r.length;)n[this._blockOffset]=r[i],this._blockOffset+=1,i+=1;for(var o=0,f=r.length*8;f>0;++o)this._length[o]+=f,f=this._length[o]/4294967296|0,f>0&&(this._length[o]-=4294967296*f);return this};St.prototype._update=function(){throw new Error("_update is not implemented")};St.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t};St.prototype._digest=function(){throw new Error("_digest is not implemented")};Cp.exports=St});var pu=_((ZI,Yp)=>{"use strict";c();var du=Ae().Buffer,wS=W(),Vp=zp(),ES=new Array(16),In=[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],Bn=[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],kn=[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],Ln=[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],qn=[0,1518500249,1859775393,2400959708,2840853838],Dn=[1352829926,1548603684,1836072691,2053994217,0];function Xt(e,t){return e<<t|e>>>32-t}function Zp(e,t,r,n,i,a,o,f){return Xt(e+(t^r^n)+a+o|0,f)+i|0}function Wp(e,t,r,n,i,a,o,f){return Xt(e+(t&r|~t&n)+a+o|0,f)+i|0}function Hp(e,t,r,n,i,a,o,f){return Xt(e+((t|~r)^n)+a+o|0,f)+i|0}function Gp(e,t,r,n,i,a,o,f){return Xt(e+(t&n|r&~n)+a+o|0,f)+i|0}function $p(e,t,r,n,i,a,o,f){return Xt(e+(t^(r|~n))+a+o|0,f)+i|0}function La(){Vp.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}wS(La,Vp);La.prototype._update=function(){for(var e=ES,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);for(var r=this._a|0,n=this._b|0,i=this._c|0,a=this._d|0,o=this._e|0,f=this._a|0,l=this._b|0,u=this._c|0,s=this._d|0,d=this._e|0,p=0;p<80;p+=1){var y,b;p<16?(y=Zp(r,n,i,a,o,e[In[p]],qn[0],kn[p]),b=$p(f,l,u,s,d,e[Bn[p]],Dn[0],Ln[p])):p<32?(y=Wp(r,n,i,a,o,e[In[p]],qn[1],kn[p]),b=Gp(f,l,u,s,d,e[Bn[p]],Dn[1],Ln[p])):p<48?(y=Hp(r,n,i,a,o,e[In[p]],qn[2],kn[p]),b=Hp(f,l,u,s,d,e[Bn[p]],Dn[2],Ln[p])):p<64?(y=Gp(r,n,i,a,o,e[In[p]],qn[3],kn[p]),b=Wp(f,l,u,s,d,e[Bn[p]],Dn[3],Ln[p])):(y=$p(r,n,i,a,o,e[In[p]],qn[4],kn[p]),b=Zp(f,l,u,s,d,e[Bn[p]],Dn[4],Ln[p])),r=o,o=a,a=Xt(i,10),i=n,n=y,f=d,d=s,s=Xt(u,10),u=l,l=b}var w=this._b+i+s|0;this._b=this._c+a+d|0,this._c=this._d+o+f|0,this._d=this._e+r+l|0,this._e=this._a+n+u|0,this._a=w};La.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 e=du.alloc?du.alloc(20):new du(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};Yp.exports=La});var Qt=_((HI,Jp)=>{"use strict";c();var mS=ne().Buffer,xS=wa();function qa(e,t){this._block=mS.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}qa.prototype.update=function(e,t){e=xS(e,t||"utf8");for(var r=this._block,n=this._blockSize,i=e.length,a=this._len,o=0;o<i;){for(var f=a%n,l=Math.min(i-o,n-f),u=0;u<l;u++)r[f+u]=e[o+u];a+=l,o+=l,a%n===0&&this._update(r)}return this._len+=i,this};qa.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(r&4294967295)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a};qa.prototype._update=function(){throw new Error("_update must be implemented by subclass")};Jp.exports=qa});var Qp=_(($I,Xp)=>{"use strict";c();var SS=W(),Kp=Qt(),AS=ne().Buffer,RS=[1518500249,1859775393,-1894007588,-899497514],TS=new Array(80);function Fn(){this.init(),this._w=TS,Kp.call(this,64,56)}SS(Fn,Kp);Fn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function OS(e){return e<<5|e>>>27}function IS(e){return e<<30|e>>>2}function BS(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}Fn.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,a=this._d|0,o=this._e|0,f=0;f<16;++f)t[f]=e.readInt32BE(f*4);for(;f<80;++f)t[f]=t[f-3]^t[f-8]^t[f-14]^t[f-16];for(var l=0;l<80;++l){var u=~~(l/20),s=OS(r)+BS(u,n,i,a)+o+t[l]+RS[u]|0;o=a,a=i,i=IS(n),n=r,r=s}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0};Fn.prototype._hash=function(){var e=AS.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};Xp.exports=Fn});var r0=_((YI,t0)=>{"use strict";c();var kS=W(),e0=Qt(),LS=ne().Buffer,qS=[1518500249,1859775393,-1894007588,-899497514],DS=new Array(80);function Nn(){this.init(),this._w=DS,e0.call(this,64,56)}kS(Nn,e0);Nn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function FS(e){return e<<1|e>>>31}function NS(e){return e<<5|e>>>27}function PS(e){return e<<30|e>>>2}function MS(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}Nn.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,a=this._d|0,o=this._e|0,f=0;f<16;++f)t[f]=e.readInt32BE(f*4);for(;f<80;++f)t[f]=FS(t[f-3]^t[f-8]^t[f-14]^t[f-16]);for(var l=0;l<80;++l){var u=~~(l/20),s=NS(r)+MS(u,n,i,a)+o+t[l]+qS[u]|0;o=a,a=i,i=PS(n),n=r,r=s}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0};Nn.prototype._hash=function(){var e=LS.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};t0.exports=Nn});var yu=_((KI,i0)=>{"use strict";c();var jS=W(),n0=Qt(),US=ne().Buffer,CS=[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],zS=new Array(64);function Pn(){this.init(),this._w=zS,n0.call(this,64,56)}jS(Pn,n0);Pn.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 ZS(e,t,r){return r^e&(t^r)}function WS(e,t,r){return e&t|r&(e|t)}function HS(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function GS(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function $S(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function VS(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}Pn.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,a=this._d|0,o=this._e|0,f=this._f|0,l=this._g|0,u=this._h|0,s=0;s<16;++s)t[s]=e.readInt32BE(s*4);for(;s<64;++s)t[s]=VS(t[s-2])+t[s-7]+$S(t[s-15])+t[s-16]|0;for(var d=0;d<64;++d){var p=u+GS(o)+ZS(o,f,l)+CS[d]+t[d]|0,y=HS(r)+WS(r,n,i)|0;u=l,l=f,f=o,o=a+p|0,a=i,i=n,n=r,r=p+y|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0,this._f=f+this._f|0,this._g=l+this._g|0,this._h=u+this._h|0};Pn.prototype._hash=function(){var e=US.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};i0.exports=Pn});var o0=_((QI,a0)=>{"use strict";c();var YS=W(),JS=yu(),KS=Qt(),XS=ne().Buffer,QS=new Array(64);function Da(){this.init(),this._w=QS,KS.call(this,64,56)}YS(Da,JS);Da.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};Da.prototype._hash=function(){var e=XS.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};a0.exports=Da});var _u=_((t3,d0)=>{"use strict";c();var e2=W(),h0=Qt(),t2=ne().Buffer,f0=[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],r2=new Array(160);function Mn(){this.init(),this._w=r2,h0.call(this,128,112)}e2(Mn,h0);Mn.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 u0(e,t,r){return r^e&(t^r)}function s0(e,t,r){return e&t|r&(e|t)}function l0(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function c0(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function n2(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function i2(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function a2(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function o2(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function re(e,t){return e>>>0<t>>>0?1:0}Mn.prototype._update=function(e){for(var t=this._w,r=this._ah|0,n=this._bh|0,i=this._ch|0,a=this._dh|0,o=this._eh|0,f=this._fh|0,l=this._gh|0,u=this._hh|0,s=this._al|0,d=this._bl|0,p=this._cl|0,y=this._dl|0,b=this._el|0,w=this._fl|0,x=this._gl|0,m=this._hl|0,S=0;S<32;S+=2)t[S]=e.readInt32BE(S*4),t[S+1]=e.readInt32BE(S*4+4);for(;S<160;S+=2){var O=t[S-30],I=t[S-30+1],A=n2(O,I),B=i2(I,O);O=t[S-4],I=t[S-4+1];var q=a2(O,I),T=o2(I,O),D=t[S-14],V=t[S-14+1],k=t[S-32],_e=t[S-32+1],oe=B+V|0,xe=A+D+re(oe,B)|0;oe=oe+T|0,xe=xe+q+re(oe,T)|0,oe=oe+_e|0,xe=xe+k+re(oe,_e)|0,t[S]=xe,t[S+1]=oe}for(var nt=0;nt<160;nt+=2){xe=t[nt],oe=t[nt+1];var _i=s0(r,n,i),gr=s0(s,d,p),br=l0(r,s),gs=l0(s,r),cg=c0(o,b),hg=c0(b,o),dg=f0[nt],bs=f0[nt+1],pg=u0(o,f,l),ws=u0(b,w,x),we=m+hg|0,yt=u+cg+re(we,m)|0;we=we+ws|0,yt=yt+pg+re(we,ws)|0,we=we+bs|0,yt=yt+dg+re(we,bs)|0,we=we+oe|0,yt=yt+xe+re(we,oe)|0;var Es=gs+gr|0,yg=br+_i+re(Es,gs)|0;u=l,m=x,l=f,x=w,f=o,w=b,b=y+we|0,o=a+yt+re(b,y)|0,a=i,y=p,i=n,p=d,n=r,d=s,s=we+Es|0,r=yt+yg+re(s,we)|0}this._al=this._al+s|0,this._bl=this._bl+d|0,this._cl=this._cl+p|0,this._dl=this._dl+y|0,this._el=this._el+b|0,this._fl=this._fl+w|0,this._gl=this._gl+x|0,this._hl=this._hl+m|0,this._ah=this._ah+r+re(this._al,s)|0,this._bh=this._bh+n+re(this._bl,d)|0,this._ch=this._ch+i+re(this._cl,p)|0,this._dh=this._dh+a+re(this._dl,y)|0,this._eh=this._eh+o+re(this._el,b)|0,this._fh=this._fh+f+re(this._fl,w)|0,this._gh=this._gh+l+re(this._gl,x)|0,this._hh=this._hh+u+re(this._hl,m)|0};Mn.prototype._hash=function(){var e=t2.allocUnsafe(64);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};d0.exports=Mn});var y0=_((n3,p0)=>{"use strict";c();var f2=W(),u2=_u(),s2=Qt(),l2=ne().Buffer,c2=new Array(160);function Fa(){this.init(),this._w=c2,s2.call(this,128,112)}f2(Fa,u2);Fa.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};Fa.prototype._hash=function(){var e=l2.allocUnsafe(48);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};p0.exports=Fa});var vu=_((a3,ht)=>{"use strict";c();ht.exports=function(t){var r=t.toLowerCase(),n=ht.exports[r];if(!n)throw new Error(r+" is not supported (we accept pull requests)");return new n};ht.exports.sha=Qp();ht.exports.sha1=r0();ht.exports.sha224=o0();ht.exports.sha256=yu();ht.exports.sha384=y0();ht.exports.sha512=_u()});var Na=_((f3,v0)=>{"use strict";c();var h2=ne().Buffer,_0=va().Transform,d2=jr().StringDecoder,p2=W(),y2=wa();function Pe(e){_0.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}p2(Pe,_0);Pe.prototype.update=function(e,t,r){var n=y2(e,t),i=this._update(n);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)};Pe.prototype.setAutoPadding=function(){};Pe.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};Pe.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};Pe.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};Pe.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){n=i}finally{r(n)}};Pe.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)};Pe.prototype._finalOrDigest=function(e){var t=this.__final()||h2.alloc(0);return e&&(t=this._toString(t,e,!0)),t};Pe.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new d2(t),this._encoding=t),this._encoding!==t)throw new Error("can\u2019t switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n};v0.exports=Pe});var w0=_((s3,b0)=>{"use strict";c();var _2=W(),v2=Yf(),g2=pu(),b2=vu(),g0=Na();function Pa(e){g0.call(this,"digest"),this._hash=e}_2(Pa,g0);Pa.prototype._update=function(e){this._hash.update(e)};Pa.prototype._final=function(){return this._hash.digest()};b0.exports=function(t){return t=t.toLowerCase(),t==="md5"?new v2:t==="rmd160"||t==="ripemd160"?new g2:new Pa(b2(t))}});var x0=_((c3,m0)=>{"use strict";c();var w2=W(),er=ne().Buffer,E0=Na(),E2=er.alloc(128),$r=64;function Ma(e,t){E0.call(this,"digest"),typeof t=="string"&&(t=er.from(t)),this._alg=e,this._key=t,t.length>$r?t=e(t):t.length<$r&&(t=er.concat([t,E2],$r));for(var r=this._ipad=er.allocUnsafe($r),n=this._opad=er.allocUnsafe($r),i=0;i<$r;i++)r[i]=t[i]^54,n[i]=t[i]^92;this._hash=[r]}w2(Ma,E0);Ma.prototype._update=function(e){this._hash.push(e)};Ma.prototype._final=function(){var e=this._alg(er.concat(this._hash));return this._alg(er.concat([this._opad,e]))};m0.exports=Ma});var A0=_((d3,S0)=>{c();var m2=Yf();S0.exports=function(e){return new m2().update(e).digest()}});var O0=_((y3,T0)=>{"use strict";c();var x2=W(),S2=x0(),R0=Na(),jn=ne().Buffer,A2=A0(),gu=pu(),bu=vu(),R2=jn.alloc(128);function Un(e,t){R0.call(this,"digest"),typeof t=="string"&&(t=jn.from(t));var r=e==="sha512"||e==="sha384"?128:64;if(this._alg=e,this._key=t,t.length>r){var n=e==="rmd160"?new gu:bu(e);t=n.update(t).digest()}else t.length<r&&(t=jn.concat([t,R2],r));for(var i=this._ipad=jn.allocUnsafe(r),a=this._opad=jn.allocUnsafe(r),o=0;o<r;o++)i[o]=t[o]^54,a[o]=t[o]^92;this._hash=e==="rmd160"?new gu:bu(e),this._hash.update(i)}x2(Un,R0);Un.prototype._update=function(e){this._hash.update(e)};Un.prototype._final=function(){var e=this._hash.digest(),t=this._alg==="rmd160"?new gu:bu(this._alg);return t.update(this._opad).update(e).digest()};T0.exports=function(t,r){return t=t.toLowerCase(),t==="rmd160"||t==="ripemd160"?new Un("rmd160",r):t==="md5"?new S2(A2,r):new Un(t,r)}});var I0=_((v3,Eu)=>{"use strict";c();var wu=65536,T2=4294967295;function O2(){throw new Error(`Secure random number generation is not supported by this browser.
11
+ Use Chrome, Firefox or Internet Explorer 11`)}var I2=ne().Buffer,ja=globalThis.crypto||globalThis.msCrypto;ja&&ja.getRandomValues?Eu.exports=B2:Eu.exports=O2;function B2(e,t){if(e>T2)throw new RangeError("requested too many random bytes");var r=I2.allocUnsafe(e);if(e>0)if(e>wu)for(var n=0;n<e;n+=wu)ja.getRandomValues(r.slice(n,n+wu));else ja.getRandomValues(r);return typeof t=="function"?h.default.nextTick(function(){t(null,r)}):r}});var mu=_(Ua=>{"use strict";c();Ua.createHash=w0();Ua.createHmac=O0();Ua.randomBytes=I0()});var k0=_((E3,B0)=>{"use strict";c();var Cn=mu(),zn={ES256:"P-256",ES256K:"secp256k1"},k2=["ES256","ES256K"];function Ca(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function za(e){for(e=e.replace(/-/g,"+").replace(/_/g,"/");e.length%4;)e+="=";return v.Buffer.from(e,"base64")}async function L2(e){if(!e.issuerDid||!e.subjectId||!e.credentialSubject||!e.privateJwk)throw new Error("issuerDid, subjectId, credentialSubject, and privateJwk are required");var t=e.alg||"ES256";if(!zn[t])throw new Error("Unsupported algorithm: "+t);if(e.privateJwk.crv&&e.privateJwk.crv!==zn[t])throw new Error("Key curve "+e.privateJwk.crv+" does not match alg "+t);var r=e.kid||e.privateJwk.kid,n=e.types||["VerifiableCredential"],i=e.expSeconds||365*24*60*60,a=Math.floor(Date.now()/1e3),o=new Date().toISOString(),f={"@context":["https://www.w3.org/2018/credentials/v1"],type:n,issuer:e.issuerDid,issuanceDate:o,credentialSubject:Object.assign({id:e.subjectId},e.credentialSubject)},l={iss:e.issuerDid,sub:e.subjectId,iat:a,exp:a+i,vc:f},u={alg:t,typ:"JWT",kid:r},s=Ca(v.Buffer.from(JSON.stringify(u))),d=Ca(v.Buffer.from(JSON.stringify(l))),p=s+"."+d,y=Cn.createPrivateKey({key:e.privateJwk,format:"jwk"}),b=Cn.sign("sha256",v.Buffer.from(p),{key:y,dsaEncoding:"ieee-p1363"}),w=Ca(b),x=p+"."+w;return{jwt:x}}async function q2(e,t){t=t||{};try{if(typeof e!="string")return{valid:!1,error:"Invalid JWT format"};var r=e.split(".");if(r.length!==3)return{valid:!1,error:"Invalid JWT format"};var n=r[0],i=r[1],a=r[2],o=JSON.parse(za(n).toString()),f=JSON.parse(za(i).toString()),l=za(a),u=t.allowedAlgs||k2;if(!o.alg||u.indexOf(o.alg)===-1||!zn[o.alg])return{valid:!1,error:"Algorithm not allowed: "+o.alg,header:o,payload:f};var s=Math.floor(Date.now()/1e3),d=t.clockToleranceSec||60;if(t.requireExpiration&&!f.exp)return{valid:!1,error:"JWT missing required exp claim",header:o,payload:f};if(f.exp&&f.exp<s-d)return{valid:!1,error:"JWT expired",header:o,payload:f};if(f.nbf&&f.nbf>s+d)return{valid:!1,error:"JWT not yet valid",header:o,payload:f};if(t.expectedIssuerDid&&f.iss!==t.expectedIssuerDid)return{valid:!1,error:"Unexpected issuer",header:o,payload:f};var p;if(t.didResolver){var y=await t.didResolver(f.iss);if(!y||!y.jwks||!y.jwks.keys)return{valid:!1,error:"Failed to resolve issuer DID",header:o,payload:f};var b=y.jwks.keys.find(function(S){return S.kid===o.kid});if(!b)return{valid:!1,error:"Key not found in JWKS",header:o,payload:f};p=b}else return{valid:!1,error:"DID resolver required for verification",header:o,payload:f};if(p.crv&&p.crv!==zn[o.alg])return{valid:!1,error:"Key curve does not match algorithm",header:o,payload:f};var w=n+"."+i,x=Cn.createPublicKey({key:p,format:"jwk"}),m=Cn.verify("sha256",v.Buffer.from(w),{key:x,dsaEncoding:"ieee-p1363"},l);if(!m&&t.allowLegacyDER)try{m=Cn.verify("sha256",v.Buffer.from(w),{key:x,dsaEncoding:"der"},l)}catch{m=!1}return m?{valid:!0,header:o,payload:f}:{valid:!1,error:"Invalid signature",header:o,payload:f}}catch(S){return{valid:!1,error:S.message||"Verification failed"}}}B0.exports={issueVcJwt:L2,verifyVcJwt:q2,base64UrlEncode:Ca,base64UrlDecode:za,ALG_TO_CRV:zn}});var Au=_((x3,F0)=>{"use strict";c();function At(e){"@babel/helpers - typeof";return At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},At(e)}function L0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,F2(n.key),n)}}function D2(e,t,r){return t&&L0(e.prototype,t),r&&L0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function F2(e){var t=N2(e,"string");return At(t)==="symbol"?t:String(t)}function N2(e,t){if(At(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(At(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Su(e,t)}function Su(e,t){return Su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Su(e,t)}function j2(e){var t=z2();return function(){var n=Za(e),i;if(t){var a=Za(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return U2(this,i)}}function U2(e,t){if(t&&(At(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C2(e)}function C2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z2(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Za(e)}var D0={},Vr,xu;function Zn(e,t,r){r||(r=Error);function n(a,o,f){return typeof t=="string"?t:t(a,o,f)}var i=(function(a){M2(f,a);var o=j2(f);function f(l,u,s){var d;return P2(this,f),d=o.call(this,n(l,u,s)),d.code=e,d}return D2(f)})(r);D0[e]=i}function q0(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function Z2(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function W2(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function H2(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Zn("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);Zn("ERR_INVALID_ARG_TYPE",function(e,t,r){Vr===void 0&&(Vr=Wn()),Vr(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&Z2(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(W2(e," argument"))i="The ".concat(e," ").concat(n," ").concat(q0(t,"type"));else{var a=H2(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(q0(t,"type"))}return i+=". Received type ".concat(At(r)),i},TypeError);Zn("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";xu===void 0&&(xu=Fe());var n=xu.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);Zn("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(At(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);Zn("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Vr===void 0&&(Vr=Wn()),Vr(t.length>0,"At least one arg needs to be specified");var n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);F0.exports.codes=D0});var H0=_((A3,W0)=>{"use strict";c();function N0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function P0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N0(Object(r),!0).forEach(function(n){G2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G2(e,t,r){return t=C0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C0(n.key),n)}}function V2(e,t,r){return t&&M0(e.prototype,t),r&&M0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function C0(e){var t=Y2(e,"string");return ge(t)==="symbol"?t:String(t)}function Y2(e,t){if(ge(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ge(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vn(e,t)}function K2(e){var t=Z0();return function(){var n=Yn(e),i;if(t){var a=Yn(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return z0(this,i)}}function z0(e,t){if(t&&(ge(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ru(e)}function Ru(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tu(e){var t=typeof Map=="function"?new Map:void 0;return Tu=function(n){if(n===null||!X2(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return Wa(n,arguments,Yn(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Vn(i,n)},Tu(e)}function Wa(e,t,r){return Z0()?Wa=Reflect.construct.bind():Wa=function(i,a,o){var f=[null];f.push.apply(f,a);var l=Function.bind.apply(i,f),u=new l;return o&&Vn(u,o.prototype),u},Wa.apply(null,arguments)}function Z0(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function X2(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Vn(e,t){return Vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vn(e,t)}function Yn(e){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yn(e)}function ge(e){"@babel/helpers - typeof";return ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ge(e)}var Q2=Fe(),Ou=Q2.inspect,eA=Au(),tA=eA.codes.ERR_INVALID_ARG_TYPE;function j0(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function rA(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var Me="",Hn="",Gn="",ie="",tr={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},nA=10;function U0(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function $n(e){return Ou(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function iA(e,t,r){var n="",i="",a=0,o="",f=!1,l=$n(e),u=l.split(`
12
+ `),s=$n(t).split(`
13
+ `),d=0,p="";if(r==="strictEqual"&&ge(e)==="object"&&ge(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),u.length===1&&s.length===1&&u[0]!==s[0]){var y=u[0].length+s[0].length;if(y<=nA){if((ge(e)!=="object"||e===null)&&(ge(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(tr[r],`
20
14
 
21
- `)+"".concat(b[0]," !== ").concat(x[0],`
22
- `)}else if(r!=="strictEqualObject"){var O=M.default.stderr&&M.default.stderr.isTTY?M.default.stderr.columns:80;if(T<O){for(;b[0][B]===x[0][B];)B++;B>2&&(R=`
23
- `.concat(AT(" ",B),"^"),B=0)}}}for(var D=b[b.length-1],U=x[x.length-1];D===U&&(B++<2?o=`
24
- `.concat(D).concat(o):i=D,b.pop(),x.pop(),!(b.length===0||x.length===0));)D=b[b.length-1],U=x[x.length-1];var N=Math.max(b.length,x.length);if(N===0){var j=y.split(`
25
- `);if(j.length>30)for(j[26]="".concat(ir,"...").concat(lt);j.length>27;)j.pop();return"".concat(on.notIdentical,`
15
+ `)+"".concat(u[0]," !== ").concat(s[0],`
16
+ `)}else if(r!=="strictEqualObject"){var b=h.default.stderr&&h.default.stderr.isTTY?h.default.stderr.columns:80;if(y<b){for(;u[0][d]===s[0][d];)d++;d>2&&(p=`
17
+ `.concat(rA(" ",d),"^"),d=0)}}}for(var w=u[u.length-1],x=s[s.length-1];w===x&&(d++<2?o=`
18
+ `.concat(w).concat(o):n=w,u.pop(),s.pop(),!(u.length===0||s.length===0));)w=u[u.length-1],x=s[s.length-1];var m=Math.max(u.length,s.length);if(m===0){var S=l.split(`
19
+ `);if(S.length>30)for(S[26]="".concat(Me,"...").concat(ie);S.length>27;)S.pop();return"".concat(tr.notIdentical,`
26
20
 
27
- `).concat(j.join(`
21
+ `).concat(S.join(`
28
22
  `),`
29
- `)}B>3&&(o=`
30
- `.concat(ir,"...").concat(lt).concat(o),s=!0),i!==""&&(o=`
31
- `.concat(i).concat(o),i="");var H=0,W=on[r]+`
32
- `.concat(Lo,"+ actual").concat(lt," ").concat(Co,"- expected").concat(lt),Z=" ".concat(ir,"...").concat(lt," Lines skipped");for(B=0;B<N;B++){var K=B-a;if(b.length<B+1)K>1&&B>2&&(K>4?(n+=`
33
- `.concat(ir,"...").concat(lt),s=!0):K>3&&(n+=`
34
- `.concat(x[B-2]),H++),n+=`
35
- `.concat(x[B-1]),H++),a=B,i+=`
36
- `.concat(Co,"-").concat(lt," ").concat(x[B]),H++;else if(x.length<B+1)K>1&&B>2&&(K>4?(n+=`
37
- `.concat(ir,"...").concat(lt),s=!0):K>3&&(n+=`
38
- `.concat(b[B-2]),H++),n+=`
39
- `.concat(b[B-1]),H++),a=B,n+=`
40
- `.concat(Lo,"+").concat(lt," ").concat(b[B]),H++;else{var J=x[B],z=b[B],X=z!==J&&(!sw(z,",")||z.slice(0,-1)!==J);X&&sw(J,",")&&J.slice(0,-1)===z&&(X=!1,z+=","),X?(K>1&&B>2&&(K>4?(n+=`
41
- `.concat(ir,"...").concat(lt),s=!0):K>3&&(n+=`
42
- `.concat(b[B-2]),H++),n+=`
43
- `.concat(b[B-1]),H++),a=B,n+=`
44
- `.concat(Lo,"+").concat(lt," ").concat(z),i+=`
45
- `.concat(Co,"-").concat(lt," ").concat(J),H+=2):(n+=i,i="",(K===1||B===0)&&(n+=`
46
- `.concat(z),H++))}if(H>20&&B<N-2)return"".concat(W).concat(Z,`
47
- `).concat(n,`
48
- `).concat(ir,"...").concat(lt).concat(i,`
49
- `)+"".concat(ir,"...").concat(lt)}return"".concat(W).concat(s?Z:"",`
50
- `).concat(n).concat(i).concat(o).concat(R)}var kT=(function(e,t){mT(i,e);var r=wT(i);function i(n){var a;if(gT(this,i),Mt(n)!=="object"||n===null)throw new MT("options","Object",n);var o=n.message,s=n.operator,y=n.stackStartFn,b=n.actual,x=n.expected,B=Error.stackTraceLimit;if(Error.stackTraceLimit=0,o!=null)a=r.call(this,String(o));else if(M.default.stderr&&M.default.stderr.isTTY&&(M.default.stderr&&M.default.stderr.getColorDepth&&M.default.stderr.getColorDepth()!==1?(ir="\x1B[34m",Lo="\x1B[32m",lt="\x1B[39m",Co="\x1B[31m"):(ir="",Lo="",lt="",Co="")),Mt(b)==="object"&&b!==null&&Mt(x)==="object"&&x!==null&&"stack"in b&&b instanceof Error&&"stack"in x&&x instanceof Error&&(b=uw(b),x=uw(x)),s==="deepStrictEqual"||s==="strictEqual")a=r.call(this,RT(b,x,s));else if(s==="notDeepStrictEqual"||s==="notStrictEqual"){var R=on[s],T=Uo(b).split(`
51
- `);if(s==="notStrictEqual"&&Mt(b)==="object"&&b!==null&&(R=on.notStrictEqualObject),T.length>30)for(T[26]="".concat(ir,"...").concat(lt);T.length>27;)T.pop();T.length===1?a=r.call(this,"".concat(R," ").concat(T[0])):a=r.call(this,"".concat(R,`
23
+ `)}d>3&&(o=`
24
+ `.concat(Me,"...").concat(ie).concat(o),f=!0),n!==""&&(o=`
25
+ `.concat(n).concat(o),n="");var O=0,I=tr[r]+`
26
+ `.concat(Hn,"+ actual").concat(ie," ").concat(Gn,"- expected").concat(ie),A=" ".concat(Me,"...").concat(ie," Lines skipped");for(d=0;d<m;d++){var B=d-a;if(u.length<d+1)B>1&&d>2&&(B>4?(i+=`
27
+ `.concat(Me,"...").concat(ie),f=!0):B>3&&(i+=`
28
+ `.concat(s[d-2]),O++),i+=`
29
+ `.concat(s[d-1]),O++),a=d,n+=`
30
+ `.concat(Gn,"-").concat(ie," ").concat(s[d]),O++;else if(s.length<d+1)B>1&&d>2&&(B>4?(i+=`
31
+ `.concat(Me,"...").concat(ie),f=!0):B>3&&(i+=`
32
+ `.concat(u[d-2]),O++),i+=`
33
+ `.concat(u[d-1]),O++),a=d,i+=`
34
+ `.concat(Hn,"+").concat(ie," ").concat(u[d]),O++;else{var q=s[d],T=u[d],D=T!==q&&(!j0(T,",")||T.slice(0,-1)!==q);D&&j0(q,",")&&q.slice(0,-1)===T&&(D=!1,T+=","),D?(B>1&&d>2&&(B>4?(i+=`
35
+ `.concat(Me,"...").concat(ie),f=!0):B>3&&(i+=`
36
+ `.concat(u[d-2]),O++),i+=`
37
+ `.concat(u[d-1]),O++),a=d,i+=`
38
+ `.concat(Hn,"+").concat(ie," ").concat(T),n+=`
39
+ `.concat(Gn,"-").concat(ie," ").concat(q),O+=2):(i+=n,n="",(B===1||d===0)&&(i+=`
40
+ `.concat(T),O++))}if(O>20&&d<m-2)return"".concat(I).concat(A,`
41
+ `).concat(i,`
42
+ `).concat(Me,"...").concat(ie).concat(n,`
43
+ `)+"".concat(Me,"...").concat(ie)}return"".concat(I).concat(f?A:"",`
44
+ `).concat(i).concat(n).concat(o).concat(p)}var aA=(function(e,t){J2(n,e);var r=K2(n);function n(i){var a;if($2(this,n),ge(i)!=="object"||i===null)throw new tA("options","Object",i);var o=i.message,f=i.operator,l=i.stackStartFn,u=i.actual,s=i.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,o!=null)a=r.call(this,String(o));else if(h.default.stderr&&h.default.stderr.isTTY&&(h.default.stderr&&h.default.stderr.getColorDepth&&h.default.stderr.getColorDepth()!==1?(Me="\x1B[34m",Hn="\x1B[32m",ie="\x1B[39m",Gn="\x1B[31m"):(Me="",Hn="",ie="",Gn="")),ge(u)==="object"&&u!==null&&ge(s)==="object"&&s!==null&&"stack"in u&&u instanceof Error&&"stack"in s&&s instanceof Error&&(u=U0(u),s=U0(s)),f==="deepStrictEqual"||f==="strictEqual")a=r.call(this,iA(u,s,f));else if(f==="notDeepStrictEqual"||f==="notStrictEqual"){var p=tr[f],y=$n(u).split(`
45
+ `);if(f==="notStrictEqual"&&ge(u)==="object"&&u!==null&&(p=tr.notStrictEqualObject),y.length>30)for(y[26]="".concat(Me,"...").concat(ie);y.length>27;)y.pop();y.length===1?a=r.call(this,"".concat(p," ").concat(y[0])):a=r.call(this,"".concat(p,`
52
46
 
53
- `).concat(T.join(`
47
+ `).concat(y.join(`
54
48
  `),`
55
- `))}else{var O=Uo(b),D="",U=on[s];s==="notDeepEqual"||s==="notEqual"?(O="".concat(on[s],`
49
+ `))}else{var b=$n(u),w="",x=tr[f];f==="notDeepEqual"||f==="notEqual"?(b="".concat(tr[f],`
56
50
 
57
- `).concat(O),O.length>1024&&(O="".concat(O.slice(0,1021),"..."))):(D="".concat(Uo(x)),O.length>512&&(O="".concat(O.slice(0,509),"...")),D.length>512&&(D="".concat(D.slice(0,509),"...")),s==="deepEqual"||s==="equal"?O="".concat(U,`
51
+ `).concat(b),b.length>1024&&(b="".concat(b.slice(0,1021),"..."))):(w="".concat($n(s)),b.length>512&&(b="".concat(b.slice(0,509),"...")),w.length>512&&(w="".concat(w.slice(0,509),"...")),f==="deepEqual"||f==="equal"?b="".concat(x,`
58
52
 
59
- `).concat(O,`
53
+ `).concat(b,`
60
54
 
61
55
  should equal
62
56
 
63
- `):D=" ".concat(s," ").concat(D)),a=r.call(this,"".concat(O).concat(D))}return Error.stackTraceLimit=B,a.generatedMessage=!o,Object.defineProperty(Yc(a),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),a.code="ERR_ASSERTION",a.actual=b,a.expected=x,a.operator=s,Error.captureStackTrace&&Error.captureStackTrace(Yc(a),y),a.stack,a.name="AssertionError",hw(a)}return bT(i,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return Xc(this,ow(ow({},o),{},{customInspect:!1,depth:0}))}}]),i})(Jc(Error),Xc.custom);dw.exports=kT});var Qc=k((IC,yw)=>{"use strict";m();var vw=Object.prototype.toString;yw.exports=function(t){var r=vw.call(t),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&vw.call(t.callee)==="[object Function]"),i}});var Mw=k((qC,Sw)=>{"use strict";m();var Ew;Object.keys||(zo=Object.prototype.hasOwnProperty,e0=Object.prototype.toString,gw=Qc(),t0=Object.prototype.propertyIsEnumerable,bw=!t0.call({toString:null},"toString"),_w=t0.call(function(){},"prototype"),Zo=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],uu=function(e){var t=e.constructor;return t&&t.prototype===e},mw={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},ww=(function(){if(typeof window>"u")return!1;for(var e in window)try{if(!mw["$"+e]&&zo.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{uu(window[e])}catch{return!0}}catch{return!0}return!1})(),xw=function(e){if(typeof window>"u"||!ww)return uu(e);try{return uu(e)}catch{return!1}},Ew=function(t){var r=t!==null&&typeof t=="object",i=e0.call(t)==="[object Function]",n=gw(t),a=r&&e0.call(t)==="[object String]",o=[];if(!r&&!i&&!n)throw new TypeError("Object.keys called on a non-object");var s=_w&&i;if(a&&t.length>0&&!zo.call(t,0))for(var y=0;y<t.length;++y)o.push(String(y));if(n&&t.length>0)for(var b=0;b<t.length;++b)o.push(String(b));else for(var x in t)!(s&&x==="prototype")&&zo.call(t,x)&&o.push(String(x));if(bw)for(var B=xw(t),R=0;R<Zo.length;++R)!(B&&Zo[R]==="constructor")&&zo.call(t,Zo[R])&&o.push(Zo[R]);return o});var zo,e0,gw,t0,bw,_w,Zo,uu,mw,ww,xw;Sw.exports=Ew});var r0=k((NC,Rw)=>{"use strict";m();var TT=Array.prototype.slice,IT=Qc(),Aw=Object.keys,lu=Aw?function(t){return Aw(t)}:Mw(),Bw=Object.keys;lu.shim=function(){if(Object.keys){var t=(function(){var r=Object.keys(arguments);return r&&r.length===arguments.length})(1,2);t||(Object.keys=function(i){return IT(i)?Bw(TT.call(i)):Bw(i)})}else Object.keys=lu;return Object.keys||lu};Rw.exports=lu});var qw=k((LC,Ow)=>{"use strict";m();var OT=r0(),Tw=gf()(),Iw=Hr(),hu=bf(),qT=Iw("Array.prototype.push"),kw=Iw("Object.prototype.propertyIsEnumerable"),DT=Tw?hu.getOwnPropertySymbols:null;Ow.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var i=hu(t);if(arguments.length===1)return i;for(var n=1;n<arguments.length;++n){var a=hu(arguments[n]),o=OT(a),s=Tw&&(hu.getOwnPropertySymbols||DT);if(s)for(var y=s(a),b=0;b<y.length;++b){var x=y[b];kw(a,x)&&qT(o,x)}for(var B=0;B<o.length;++B){var R=o[B];if(kw(a,R)){var T=a[R];i[R]=T}}}return i}});var Nw=k((UC,Dw)=>{"use strict";m();var i0=qw(),NT=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},i=0;i<t.length;++i)r[t[i]]=t[i];var n=Object.assign({},r),a="";for(var o in n)a+=o;return e!==a},PT=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1};Dw.exports=function(){return!Object.assign||NT()||PT()?i0:Object.assign}});var n0=k((jC,Lw)=>{"use strict";m();var Pw=function(e){return e!==e};Lw.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||Pw(t)&&Pw(r))}});var cu=k((ZC,Cw)=>{"use strict";m();var LT=n0();Cw.exports=function(){return typeof Object.is=="function"?Object.is:LT}});var zw=k((WC,jw)=>{"use strict";m();var Uw=Bf(),Fw=ja(),CT=Fw(Uw("String.prototype.indexOf"));jw.exports=function(t,r){var i=Uw(t,!!r);return typeof i=="function"&&CT(t,".prototype.")>-1?Fw(i):i}});var Ho=k((GC,Kw)=>{"use strict";m();var UT=r0(),FT=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",jT=Object.prototype.toString,zT=Array.prototype.concat,Zw=Bl(),ZT=function(e){return typeof e=="function"&&jT.call(e)==="[object Function]"},Hw=kl()(),HT=function(e,t,r,i){if(t in e){if(i===!0){if(e[t]===r)return}else if(!ZT(i)||!i())return}Hw?Zw(e,t,r,!0):Zw(e,t,r)},Ww=function(e,t){var r=arguments.length>2?arguments[2]:{},i=UT(t);FT&&(i=zT.call(i,Object.getOwnPropertySymbols(t)));for(var n=0;n<i.length;n+=1)HT(e,i[n],t[i[n]],r[i[n]])};Ww.supportsDescriptors=!!Hw;Kw.exports=Ww});var Vw=k(($C,Gw)=>{"use strict";m();var WT=cu(),KT=Ho();Gw.exports=function(){var t=WT();return KT(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var Xw=k((JC,Jw)=>{"use strict";m();var GT=Ho(),VT=ja(),$T=n0(),$w=cu(),YT=Vw(),Yw=VT($w(),Object);GT(Yw,{getPolyfill:$w,implementation:$T,shim:YT});Jw.exports=Yw});var a0=k((QC,Qw)=>{"use strict";m();Qw.exports=function(t){return t!==t}});var o0=k((tU,e2)=>{"use strict";m();var JT=a0();e2.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:JT}});var r2=k((iU,t2)=>{"use strict";m();var XT=Ho(),QT=o0();t2.exports=function(){var t=QT();return XT(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var o2=k((aU,a2)=>{"use strict";m();var e7=ja(),t7=Ho(),r7=a0(),i2=o0(),i7=r2(),n2=e7(i2(),Number);t7(n2,{getPolyfill:i2,implementation:r7,shim:i7});a2.exports=n2});var A2=k((fU,M2)=>{"use strict";m();function f2(e,t){return f7(e)||o7(e,t)||a7(e,t)||n7()}function n7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a7(e,t){if(e){if(typeof e=="string")return s2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s2(e,t)}}function s2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function o7(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],y=!0,b=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;y=!1}else for(;!(y=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);y=!0);}catch(x){b=!0,n=x}finally{try{if(!y&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(b)throw n}}return s}}function f7(e){if(Array.isArray(e))return e}function Ft(e){"@babel/helpers - typeof";return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ft(e)}var s7=/a/g.flags!==void 0,_u=function(t){var r=[];return t.forEach(function(i){return r.push(i)}),r},u2=function(t){var r=[];return t.forEach(function(i,n){return r.push([n,i])}),r},m2=Object.is?Object.is:Xw(),gu=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f0=Number.isNaN?Number.isNaN:o2();function u0(e){return e.call.bind(e)}var Ko=u0(Object.prototype.hasOwnProperty),bu=u0(Object.prototype.propertyIsEnumerable),l2=u0(Object.prototype.toString),_t=Gt().types,u7=_t.isAnyArrayBuffer,l7=_t.isArrayBufferView,h2=_t.isDate,du=_t.isMap,c2=_t.isRegExp,pu=_t.isSet,h7=_t.isNativeError,c7=_t.isBoxedPrimitive,d2=_t.isNumberObject,p2=_t.isStringObject,v2=_t.isBooleanObject,y2=_t.isBigIntObject,d7=_t.isSymbolObject,p7=_t.isFloat32Array,v7=_t.isFloat64Array;function y7(e){if(e.length===0||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return e.length===10&&e>=Math.pow(2,32)}function vu(e){return Object.keys(e).filter(y7).concat(gu(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function w2(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n<a;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0}var yu=void 0,g7=!0,b7=!1,s0=0,l0=1,x2=2,E2=3;function _7(e,t){return s7?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function m7(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}function w7(e,t){return e.byteLength!==t.byteLength?!1:w2(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))===0}function x7(e,t){return e.byteLength===t.byteLength&&w2(new Uint8Array(e),new Uint8Array(t))===0}function E7(e,t){return d2(e)?d2(t)&&m2(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):p2(e)?p2(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):v2(e)?v2(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):y2(e)?y2(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):d7(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function jt(e,t,r,i){if(e===t)return e!==0?!0:r?m2(e,t):!0;if(r){if(Ft(e)!=="object")return typeof e=="number"&&f0(e)&&f0(t);if(Ft(t)!=="object"||e===null||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(e===null||Ft(e)!=="object")return t===null||Ft(t)!=="object"?e==t:!1;if(t===null||Ft(t)!=="object")return!1}var n=l2(e),a=l2(t);if(n!==a)return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var o=vu(e,yu),s=vu(t,yu);return o.length!==s.length?!1:Wo(e,t,r,i,l0,o)}if(n==="[object Object]"&&(!du(e)&&du(t)||!pu(e)&&pu(t)))return!1;if(h2(e)){if(!h2(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(c2(e)){if(!c2(t)||!_7(e,t))return!1}else if(h7(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else if(l7(e)){if(!r&&(p7(e)||v7(e))){if(!m7(e,t))return!1}else if(!w7(e,t))return!1;var y=vu(e,yu),b=vu(t,yu);return y.length!==b.length?!1:Wo(e,t,r,i,s0,y)}else{if(pu(e))return!pu(t)||e.size!==t.size?!1:Wo(e,t,r,i,x2);if(du(e))return!du(t)||e.size!==t.size?!1:Wo(e,t,r,i,E2);if(u7(e)){if(!x7(e,t))return!1}else if(c7(e)&&!E7(e,t))return!1}return Wo(e,t,r,i,s0)}function g2(e,t){return t.filter(function(r){return bu(e,r)})}function Wo(e,t,r,i,n,a){if(arguments.length===5){a=Object.keys(e);var o=Object.keys(t);if(a.length!==o.length)return!1}for(var s=0;s<a.length;s++)if(!Ko(t,a[s]))return!1;if(r&&arguments.length===5){var y=gu(e);if(y.length!==0){var b=0;for(s=0;s<y.length;s++){var x=y[s];if(bu(e,x)){if(!bu(t,x))return!1;a.push(x),b++}else if(bu(t,x))return!1}var B=gu(t);if(y.length!==B.length&&g2(t,B).length!==b)return!1}else{var R=gu(t);if(R.length!==0&&g2(t,R).length!==0)return!1}}if(a.length===0&&(n===s0||n===l0&&e.length===0||e.size===0))return!0;if(i===void 0)i={val1:new Map,val2:new Map,position:0};else{var T=i.val1.get(e);if(T!==void 0){var O=i.val2.get(t);if(O!==void 0)return T===O}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var D=R7(e,t,r,a,i,n);return i.val1.delete(e),i.val2.delete(t),D}function b2(e,t,r,i){for(var n=_u(e),a=0;a<n.length;a++){var o=n[a];if(jt(t,o,r,i))return e.delete(o),!0}return!1}function S2(e){switch(Ft(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(f0(e))return!1}return!0}function S7(e,t,r){var i=S2(r);return i??(t.has(i)&&!e.has(i))}function M7(e,t,r,i,n){var a=S2(r);if(a!=null)return a;var o=t.get(a);return o===void 0&&!t.has(a)||!jt(i,o,!1,n)?!1:!e.has(a)&&jt(i,o,!1,n)}function A7(e,t,r,i){for(var n=null,a=_u(e),o=0;o<a.length;o++){var s=a[o];if(Ft(s)==="object"&&s!==null)n===null&&(n=new Set),n.add(s);else if(!t.has(s)){if(r||!S7(e,t,s))return!1;n===null&&(n=new Set),n.add(s)}}if(n!==null){for(var y=_u(t),b=0;b<y.length;b++){var x=y[b];if(Ft(x)==="object"&&x!==null){if(!b2(n,x,r,i))return!1}else if(!r&&!e.has(x)&&!b2(n,x,r,i))return!1}return n.size===0}return!0}function _2(e,t,r,i,n,a){for(var o=_u(e),s=0;s<o.length;s++){var y=o[s];if(jt(r,y,n,a)&&jt(i,t.get(y),n,a))return e.delete(y),!0}return!1}function B7(e,t,r,i){for(var n=null,a=u2(e),o=0;o<a.length;o++){var s=f2(a[o],2),y=s[0],b=s[1];if(Ft(y)==="object"&&y!==null)n===null&&(n=new Set),n.add(y);else{var x=t.get(y);if(x===void 0&&!t.has(y)||!jt(b,x,r,i)){if(r||!M7(e,t,y,b,i))return!1;n===null&&(n=new Set),n.add(y)}}}if(n!==null){for(var B=u2(t),R=0;R<B.length;R++){var T=f2(B[R],2),O=T[0],D=T[1];if(Ft(O)==="object"&&O!==null){if(!_2(n,e,O,D,r,i))return!1}else if(!r&&(!e.has(O)||!jt(e.get(O),D,!1,i))&&!_2(n,e,O,D,!1,i))return!1}return n.size===0}return!0}function R7(e,t,r,i,n,a){var o=0;if(a===x2){if(!A7(e,t,r,n))return!1}else if(a===E2){if(!B7(e,t,r,n))return!1}else if(a===l0)for(;o<e.length;o++)if(Ko(e,o)){if(!Ko(t,o)||!jt(e[o],t[o],r,n))return!1}else{if(Ko(t,o))return!1;for(var s=Object.keys(e);o<s.length;o++){var y=s[o];if(!Ko(t,y)||!jt(e[y],t[y],r,n))return!1}return s.length===Object.keys(t).length}for(o=0;o<i.length;o++){var b=i[o];if(!jt(e[b],t[b],r,n))return!1}return!0}function k7(e,t){return jt(e,t,b7)}function T7(e,t){return jt(e,t,g7)}M2.exports={isDeepEqual:k7,isDeepStrictEqual:T7}});var Po=k((uU,H2)=>{"use strict";m();function nr(e){"@babel/helpers - typeof";return nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nr(e)}function B2(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,O7(i.key),i)}}function I7(e,t,r){return t&&B2(e.prototype,t),r&&B2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function O7(e){var t=q7(e,"string");return nr(t)==="symbol"?t:String(t)}function q7(e,t){if(nr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(nr(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var N7=$c(),Go=N7.codes,R2=Go.ERR_AMBIGUOUS_ARGUMENT,ha=Go.ERR_INVALID_ARG_TYPE,P7=Go.ERR_INVALID_ARG_VALUE,L7=Go.ERR_INVALID_RETURN_VALUE,ni=Go.ERR_MISSING_ARGS,ai=pw(),C7=Gt(),mu=C7.inspect,O2=Gt().types,U7=O2.isPromise,wu=O2.isRegExp,F7=Nw()(),q2=cu()(),xu=zw()("RegExp.prototype.test"),ii,Eu;function Vo(){var e=A2();ii=e.isDeepEqual,Eu=e.isDeepStrictEqual}var k2=!1,Ge=H2.exports=h0,Su={};function ar(e){throw e.message instanceof Error?e.message:new ai(e)}function D2(e,t,r,i,n){var a=arguments.length,o;if(a===0)o="Failed";else if(a===1)r=e,e=void 0;else{if(k2===!1){k2=!0;var s=M.default.emitWarning?M.default.emitWarning:console.warn.bind(console);s("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}a===2&&(i="!=")}if(r instanceof Error)throw r;var y={actual:e,expected:t,operator:i===void 0?"fail":i,stackStartFn:n||D2};r!==void 0&&(y.message=r);var b=new ai(y);throw o&&(b.message=o,b.generatedMessage=!0),b}Ge.fail=D2;Ge.AssertionError=ai;function N2(e,t,r,i){if(!r){var n=!1;if(t===0)n=!0,i="No value argument passed to `assert.ok()`";else if(i instanceof Error)throw i;var a=new ai({actual:r,expected:!0,message:i,operator:"==",stackStartFn:e});throw a.generatedMessage=n,a}}function h0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];N2.apply(void 0,[h0,t.length].concat(t))}Ge.ok=h0;Ge.equal=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");t!=r&&ar({actual:t,expected:r,message:i,operator:"==",stackStartFn:e})};Ge.notEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");t==r&&ar({actual:t,expected:r,message:i,operator:"!=",stackStartFn:e})};Ge.deepEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Vo(),ii(t,r)||ar({actual:t,expected:r,message:i,operator:"deepEqual",stackStartFn:e})};Ge.notDeepEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Vo(),ii(t,r)&&ar({actual:t,expected:r,message:i,operator:"notDeepEqual",stackStartFn:e})};Ge.deepStrictEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Vo(),Eu(t,r)||ar({actual:t,expected:r,message:i,operator:"deepStrictEqual",stackStartFn:e})};Ge.notDeepStrictEqual=P2;function P2(e,t,r){if(arguments.length<2)throw new ni("actual","expected");ii===void 0&&Vo(),Eu(e,t)&&ar({actual:e,expected:t,message:r,operator:"notDeepStrictEqual",stackStartFn:P2})}Ge.strictEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");q2(t,r)||ar({actual:t,expected:r,message:i,operator:"strictEqual",stackStartFn:e})};Ge.notStrictEqual=function e(t,r,i){if(arguments.length<2)throw new ni("actual","expected");q2(t,r)&&ar({actual:t,expected:r,message:i,operator:"notStrictEqual",stackStartFn:e})};var T2=I7(function e(t,r,i){var n=this;D7(this,e),r.forEach(function(a){a in t&&(i!==void 0&&typeof i[a]=="string"&&wu(t[a])&&xu(t[a],i[a])?n[a]=i[a]:n[a]=t[a])})});function j7(e,t,r,i,n,a){if(!(r in e)||!Eu(e[r],t[r])){if(!i){var o=new T2(e,n),s=new T2(t,n,e),y=new ai({actual:o,expected:s,operator:"deepStrictEqual",stackStartFn:a});throw y.actual=e,y.expected=t,y.operator=a.name,y}ar({actual:e,expected:t,message:i,operator:a.name,stackStartFn:a})}}function L2(e,t,r,i){if(typeof t!="function"){if(wu(t))return xu(t,e);if(arguments.length===2)throw new ha("expected",["Function","RegExp"],t);if(nr(e)!=="object"||e===null){var n=new ai({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:i});throw n.operator=i.name,n}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(a.length===0)throw new P7("error",t,"may not be an empty object");return ii===void 0&&Vo(),a.forEach(function(o){typeof e[o]=="string"&&wu(t[o])&&xu(t[o],e[o])||j7(e,t,o,r,a,i)}),!0}return t.prototype!==void 0&&e instanceof t?!0:Error.isPrototypeOf(t)?!1:t.call({},e)===!0}function C2(e){if(typeof e!="function")throw new ha("fn","Function",e);try{e()}catch(t){return t}return Su}function I2(e){return U7(e)||e!==null&&nr(e)==="object"&&typeof e.then=="function"&&typeof e.catch=="function"}function U2(e){return Promise.resolve().then(function(){var t;if(typeof e=="function"){if(t=e(),!I2(t))throw new L7("instance of Promise","promiseFn",t)}else if(I2(e))t=e;else throw new ha("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return t}).then(function(){return Su}).catch(function(r){return r})})}function F2(e,t,r,i){if(typeof r=="string"){if(arguments.length===4)throw new ha("error",["Object","Error","Function","RegExp"],r);if(nr(t)==="object"&&t!==null){if(t.message===r)throw new R2("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new R2("error/message",'The error "'.concat(t,'" is identical to the message.'));i=r,r=void 0}else if(r!=null&&nr(r)!=="object"&&typeof r!="function")throw new ha("error",["Object","Error","Function","RegExp"],r);if(t===Su){var n="";r&&r.name&&(n+=" (".concat(r.name,")")),n+=i?": ".concat(i):".";var a=e.name==="rejects"?"rejection":"exception";ar({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(n),stackStartFn:e})}if(r&&!L2(t,r,i,e))throw t}function j2(e,t,r,i){if(t!==Su){if(typeof r=="string"&&(i=r,r=void 0),!r||L2(t,r)){var n=i?": ".concat(i):".",a=e.name==="doesNotReject"?"rejection":"exception";ar({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(a).concat(n,`
65
- `)+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}Ge.throws=function e(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];F2.apply(void 0,[e,C2(t)].concat(i))};Ge.rejects=function e(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return U2(t).then(function(a){return F2.apply(void 0,[e,a].concat(i))})};Ge.doesNotThrow=function e(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];j2.apply(void 0,[e,C2(t)].concat(i))};Ge.doesNotReject=function e(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return U2(t).then(function(a){return j2.apply(void 0,[e,a].concat(i))})};Ge.ifError=function e(t){if(t!=null){var r="ifError got unwanted exception: ";nr(t)==="object"&&typeof t.message=="string"?t.message.length===0&&t.constructor?r+=t.constructor.name:r+=t.message:r+=mu(t);var i=new ai({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),n=t.stack;if(typeof n=="string"){var a=n.split(`
66
- `);a.shift();for(var o=i.stack.split(`
67
- `),s=0;s<a.length;s++){var y=o.indexOf(a[s]);if(y!==-1){o=o.slice(0,y);break}}i.stack="".concat(o.join(`
57
+ `):w=" ".concat(f," ").concat(w)),a=r.call(this,"".concat(b).concat(w))}return Error.stackTraceLimit=d,a.generatedMessage=!o,Object.defineProperty(Ru(a),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),a.code="ERR_ASSERTION",a.actual=u,a.expected=s,a.operator=f,Error.captureStackTrace&&Error.captureStackTrace(Ru(a),l),a.stack,a.name="AssertionError",z0(a)}return V2(n,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return Ou(this,P0(P0({},o),{},{customInspect:!1,depth:0}))}}]),n})(Tu(Error),Ou.custom);W0.exports=aA});var Iu=_((T3,$0)=>{"use strict";c();var G0=Object.prototype.toString;$0.exports=function(t){var r=G0.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&G0.call(t.callee)==="[object Function]"),n}});var ry=_((I3,ty)=>{"use strict";c();var ey;Object.keys||(Jn=Object.prototype.hasOwnProperty,Bu=Object.prototype.toString,V0=Iu(),ku=Object.prototype.propertyIsEnumerable,Y0=!ku.call({toString:null},"toString"),J0=ku.call(function(){},"prototype"),Kn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Ha=function(e){var t=e.constructor;return t&&t.prototype===e},K0={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},X0=(function(){if(typeof window>"u")return!1;for(var e in window)try{if(!K0["$"+e]&&Jn.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Ha(window[e])}catch{return!0}}catch{return!0}return!1})(),Q0=function(e){if(typeof window>"u"||!X0)return Ha(e);try{return Ha(e)}catch{return!1}},ey=function(t){var r=t!==null&&typeof t=="object",n=Bu.call(t)==="[object Function]",i=V0(t),a=r&&Bu.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var f=J0&&n;if(a&&t.length>0&&!Jn.call(t,0))for(var l=0;l<t.length;++l)o.push(String(l));if(i&&t.length>0)for(var u=0;u<t.length;++u)o.push(String(u));else for(var s in t)!(f&&s==="prototype")&&Jn.call(t,s)&&o.push(String(s));if(Y0)for(var d=Q0(t),p=0;p<Kn.length;++p)!(d&&Kn[p]==="constructor")&&Jn.call(t,Kn[p])&&o.push(Kn[p]);return o});var Jn,Bu,V0,ku,Y0,J0,Kn,Ha,K0,X0,Q0;ty.exports=ey});var Lu=_((k3,ay)=>{"use strict";c();var oA=Array.prototype.slice,fA=Iu(),ny=Object.keys,Ga=ny?function(t){return ny(t)}:ry(),iy=Object.keys;Ga.shim=function(){if(Object.keys){var t=(function(){var r=Object.keys(arguments);return r&&r.length===arguments.length})(1,2);t||(Object.keys=function(n){return fA(n)?iy(oA.call(n)):iy(n)})}else Object.keys=Ga;return Object.keys||Ga};ay.exports=Ga});var ly=_((q3,sy)=>{"use strict";c();var uA=Lu(),fy=Si()(),uy=vt(),$a=Ai(),sA=uy("Array.prototype.push"),oy=uy("Object.prototype.propertyIsEnumerable"),lA=fy?$a.getOwnPropertySymbols:null;sy.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=$a(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=$a(arguments[i]),o=uA(a),f=fy&&($a.getOwnPropertySymbols||lA);if(f)for(var l=f(a),u=0;u<l.length;++u){var s=l[u];oy(a,s)&&sA(o,s)}for(var d=0;d<o.length;++d){var p=o[d];if(oy(a,p)){var y=a[p];n[p]=y}}}return n}});var hy=_((F3,cy)=>{"use strict";c();var qu=ly(),cA=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),a="";for(var o in i)a+=o;return e!==a},hA=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1};cy.exports=function(){return!Object.assign||cA()||hA()?qu:Object.assign}});var Du=_((P3,py)=>{"use strict";c();var dy=function(e){return e!==e};py.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||dy(t)&&dy(r))}});var Va=_((j3,yy)=>{"use strict";c();var dA=Du();yy.exports=function(){return typeof Object.is=="function"?Object.is:dA}});var by=_((C3,gy)=>{"use strict";c();var _y=Di(),vy=ln(),pA=vy(_y("String.prototype.indexOf"));gy.exports=function(t,r){var n=_y(t,!!r);return typeof n=="function"&&pA(t,".prototype.")>-1?vy(n):n}});var Xn=_((Z3,xy)=>{"use strict";c();var yA=Lu(),_A=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",vA=Object.prototype.toString,gA=Array.prototype.concat,wy=of(),bA=function(e){return typeof e=="function"&&vA.call(e)==="[object Function]"},Ey=uf()(),wA=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!bA(n)||!n())return}Ey?wy(e,t,r,!0):wy(e,t,r)},my=function(e,t){var r=arguments.length>2?arguments[2]:{},n=yA(t);_A&&(n=gA.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)wA(e,n[i],t[n[i]],r[n[i]])};my.supportsDescriptors=!!Ey;xy.exports=my});var Ay=_((H3,Sy)=>{"use strict";c();var EA=Va(),mA=Xn();Sy.exports=function(){var t=EA();return mA(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var Iy=_(($3,Oy)=>{"use strict";c();var xA=Xn(),SA=ln(),AA=Du(),Ry=Va(),RA=Ay(),Ty=SA(Ry(),Object);xA(Ty,{getPolyfill:Ry,implementation:AA,shim:RA});Oy.exports=Ty});var Fu=_((Y3,By)=>{"use strict";c();By.exports=function(t){return t!==t}});var Nu=_((K3,ky)=>{"use strict";c();var TA=Fu();ky.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:TA}});var qy=_((Q3,Ly)=>{"use strict";c();var OA=Xn(),IA=Nu();Ly.exports=function(){var t=IA();return OA(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var Py=_((tB,Ny)=>{"use strict";c();var BA=ln(),kA=Xn(),LA=Fu(),Dy=Nu(),qA=qy(),Fy=BA(Dy(),Number);kA(Fy,{getPolyfill:Dy,implementation:LA,shim:qA});Ny.exports=Fy});var n_=_((nB,r_)=>{"use strict";c();function My(e,t){return PA(e)||NA(e,t)||FA(e,t)||DA()}function DA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FA(e,t){if(e){if(typeof e=="string")return jy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jy(e,t)}}function jy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,f=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(f.push(n.value),f.length!==t);l=!0);}catch(s){u=!0,i=s}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return f}}function PA(e){if(Array.isArray(e))return e}function Ie(e){"@babel/helpers - typeof";return Ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ie(e)}var MA=/a/g.flags!==void 0,to=function(t){var r=[];return t.forEach(function(n){return r.push(n)}),r},Uy=function(t){var r=[];return t.forEach(function(n,i){return r.push([i,n])}),r},Ky=Object.is?Object.is:Iy(),Qa=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},Pu=Number.isNaN?Number.isNaN:Py();function ju(e){return e.call.bind(e)}var ei=ju(Object.prototype.hasOwnProperty),eo=ju(Object.prototype.propertyIsEnumerable),Cy=ju(Object.prototype.toString),de=Fe().types,jA=de.isAnyArrayBuffer,UA=de.isArrayBufferView,zy=de.isDate,Ya=de.isMap,Zy=de.isRegExp,Ja=de.isSet,CA=de.isNativeError,zA=de.isBoxedPrimitive,Wy=de.isNumberObject,Hy=de.isStringObject,Gy=de.isBooleanObject,$y=de.isBigIntObject,ZA=de.isSymbolObject,WA=de.isFloat32Array,HA=de.isFloat64Array;function GA(e){if(e.length===0||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return e.length===10&&e>=Math.pow(2,32)}function Ka(e){return Object.keys(e).filter(GA).concat(Qa(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function Xy(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}var Xa=void 0,$A=!0,VA=!1,Mu=0,Uu=1,Qy=2,e_=3;function YA(e,t){return MA?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function JA(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}function KA(e,t){return e.byteLength!==t.byteLength?!1:Xy(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))===0}function XA(e,t){return e.byteLength===t.byteLength&&Xy(new Uint8Array(e),new Uint8Array(t))===0}function QA(e,t){return Wy(e)?Wy(t)&&Ky(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):Hy(e)?Hy(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):Gy(e)?Gy(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):$y(e)?$y(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):ZA(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function Be(e,t,r,n){if(e===t)return e!==0?!0:r?Ky(e,t):!0;if(r){if(Ie(e)!=="object")return typeof e=="number"&&Pu(e)&&Pu(t);if(Ie(t)!=="object"||e===null||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(e===null||Ie(e)!=="object")return t===null||Ie(t)!=="object"?e==t:!1;if(t===null||Ie(t)!=="object")return!1}var i=Cy(e),a=Cy(t);if(i!==a)return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var o=Ka(e,Xa),f=Ka(t,Xa);return o.length!==f.length?!1:Qn(e,t,r,n,Uu,o)}if(i==="[object Object]"&&(!Ya(e)&&Ya(t)||!Ja(e)&&Ja(t)))return!1;if(zy(e)){if(!zy(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(Zy(e)){if(!Zy(t)||!YA(e,t))return!1}else if(CA(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else if(UA(e)){if(!r&&(WA(e)||HA(e))){if(!JA(e,t))return!1}else if(!KA(e,t))return!1;var l=Ka(e,Xa),u=Ka(t,Xa);return l.length!==u.length?!1:Qn(e,t,r,n,Mu,l)}else{if(Ja(e))return!Ja(t)||e.size!==t.size?!1:Qn(e,t,r,n,Qy);if(Ya(e))return!Ya(t)||e.size!==t.size?!1:Qn(e,t,r,n,e_);if(jA(e)){if(!XA(e,t))return!1}else if(zA(e)&&!QA(e,t))return!1}return Qn(e,t,r,n,Mu)}function Vy(e,t){return t.filter(function(r){return eo(e,r)})}function Qn(e,t,r,n,i,a){if(arguments.length===5){a=Object.keys(e);var o=Object.keys(t);if(a.length!==o.length)return!1}for(var f=0;f<a.length;f++)if(!ei(t,a[f]))return!1;if(r&&arguments.length===5){var l=Qa(e);if(l.length!==0){var u=0;for(f=0;f<l.length;f++){var s=l[f];if(eo(e,s)){if(!eo(t,s))return!1;a.push(s),u++}else if(eo(t,s))return!1}var d=Qa(t);if(l.length!==d.length&&Vy(t,d).length!==u)return!1}else{var p=Qa(t);if(p.length!==0&&Vy(t,p).length!==0)return!1}}if(a.length===0&&(i===Mu||i===Uu&&e.length===0||e.size===0))return!0;if(n===void 0)n={val1:new Map,val2:new Map,position:0};else{var y=n.val1.get(e);if(y!==void 0){var b=n.val2.get(t);if(b!==void 0)return y===b}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var w=iR(e,t,r,a,n,i);return n.val1.delete(e),n.val2.delete(t),w}function Yy(e,t,r,n){for(var i=to(e),a=0;a<i.length;a++){var o=i[a];if(Be(t,o,r,n))return e.delete(o),!0}return!1}function t_(e){switch(Ie(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(Pu(e))return!1}return!0}function eR(e,t,r){var n=t_(r);return n??(t.has(n)&&!e.has(n))}function tR(e,t,r,n,i){var a=t_(r);if(a!=null)return a;var o=t.get(a);return o===void 0&&!t.has(a)||!Be(n,o,!1,i)?!1:!e.has(a)&&Be(n,o,!1,i)}function rR(e,t,r,n){for(var i=null,a=to(e),o=0;o<a.length;o++){var f=a[o];if(Ie(f)==="object"&&f!==null)i===null&&(i=new Set),i.add(f);else if(!t.has(f)){if(r||!eR(e,t,f))return!1;i===null&&(i=new Set),i.add(f)}}if(i!==null){for(var l=to(t),u=0;u<l.length;u++){var s=l[u];if(Ie(s)==="object"&&s!==null){if(!Yy(i,s,r,n))return!1}else if(!r&&!e.has(s)&&!Yy(i,s,r,n))return!1}return i.size===0}return!0}function Jy(e,t,r,n,i,a){for(var o=to(e),f=0;f<o.length;f++){var l=o[f];if(Be(r,l,i,a)&&Be(n,t.get(l),i,a))return e.delete(l),!0}return!1}function nR(e,t,r,n){for(var i=null,a=Uy(e),o=0;o<a.length;o++){var f=My(a[o],2),l=f[0],u=f[1];if(Ie(l)==="object"&&l!==null)i===null&&(i=new Set),i.add(l);else{var s=t.get(l);if(s===void 0&&!t.has(l)||!Be(u,s,r,n)){if(r||!tR(e,t,l,u,n))return!1;i===null&&(i=new Set),i.add(l)}}}if(i!==null){for(var d=Uy(t),p=0;p<d.length;p++){var y=My(d[p],2),b=y[0],w=y[1];if(Ie(b)==="object"&&b!==null){if(!Jy(i,e,b,w,r,n))return!1}else if(!r&&(!e.has(b)||!Be(e.get(b),w,!1,n))&&!Jy(i,e,b,w,!1,n))return!1}return i.size===0}return!0}function iR(e,t,r,n,i,a){var o=0;if(a===Qy){if(!rR(e,t,r,i))return!1}else if(a===e_){if(!nR(e,t,r,i))return!1}else if(a===Uu)for(;o<e.length;o++)if(ei(e,o)){if(!ei(t,o)||!Be(e[o],t[o],r,i))return!1}else{if(ei(t,o))return!1;for(var f=Object.keys(e);o<f.length;o++){var l=f[o];if(!ei(t,l)||!Be(e[l],t[l],r,i))return!1}return f.length===Object.keys(t).length}for(o=0;o<n.length;o++){var u=n[o];if(!Be(e[u],t[u],r,i))return!1}return!0}function aR(e,t){return Be(e,t,VA)}function oR(e,t){return Be(e,t,$A)}r_.exports={isDeepEqual:aR,isDeepStrictEqual:oR}});var Wn=_((aB,E_)=>{"use strict";c();function je(e){"@babel/helpers - typeof";return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},je(e)}function i_(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uR(n.key),n)}}function fR(e,t,r){return t&&i_(e.prototype,t),r&&i_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uR(e){var t=sR(e,"string");return je(t)==="symbol"?t:String(t)}function sR(e,t){if(je(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(je(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var cR=Au(),ti=cR.codes,a_=ti.ERR_AMBIGUOUS_ARGUMENT,Yr=ti.ERR_INVALID_ARG_TYPE,hR=ti.ERR_INVALID_ARG_VALUE,dR=ti.ERR_INVALID_RETURN_VALUE,Tt=ti.ERR_MISSING_ARGS,Ot=H0(),pR=Fe(),ro=pR.inspect,s_=Fe().types,yR=s_.isPromise,no=s_.isRegExp,_R=hy()(),l_=Va()(),io=by()("RegExp.prototype.test"),Rt,ao;function ri(){var e=n_();Rt=e.isDeepEqual,ao=e.isDeepStrictEqual}var o_=!1,H=E_.exports=Cu,oo={};function Ue(e){throw e.message instanceof Error?e.message:new Ot(e)}function c_(e,t,r,n,i){var a=arguments.length,o;if(a===0)o="Failed";else if(a===1)r=e,e=void 0;else{if(o_===!1){o_=!0;var f=h.default.emitWarning?h.default.emitWarning:console.warn.bind(console);f("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}a===2&&(n="!=")}if(r instanceof Error)throw r;var l={actual:e,expected:t,operator:n===void 0?"fail":n,stackStartFn:i||c_};r!==void 0&&(l.message=r);var u=new Ot(l);throw o&&(u.message=o,u.generatedMessage=!0),u}H.fail=c_;H.AssertionError=Ot;function h_(e,t,r,n){if(!r){var i=!1;if(t===0)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var a=new Ot({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw a.generatedMessage=i,a}}function Cu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];h_.apply(void 0,[Cu,t.length].concat(t))}H.ok=Cu;H.equal=function e(t,r,n){if(arguments.length<2)throw new Tt("actual","expected");t!=r&&Ue({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})};H.notEqual=function e(t,r,n){if(arguments.length<2)throw new Tt("actual","expected");t==r&&Ue({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})};H.deepEqual=function e(t,r,n){if(arguments.length<2)throw new Tt("actual","expected");Rt===void 0&&ri(),Rt(t,r)||Ue({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})};H.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new Tt("actual","expected");Rt===void 0&&ri(),Rt(t,r)&&Ue({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})};H.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new Tt("actual","expected");Rt===void 0&&ri(),ao(t,r)||Ue({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})};H.notDeepStrictEqual=d_;function d_(e,t,r){if(arguments.length<2)throw new Tt("actual","expected");Rt===void 0&&ri(),ao(e,t)&&Ue({actual:e,expected:t,message:r,operator:"notDeepStrictEqual",stackStartFn:d_})}H.strictEqual=function e(t,r,n){if(arguments.length<2)throw new Tt("actual","expected");l_(t,r)||Ue({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})};H.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new Tt("actual","expected");l_(t,r)&&Ue({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var f_=fR(function e(t,r,n){var i=this;lR(this,e),r.forEach(function(a){a in t&&(n!==void 0&&typeof n[a]=="string"&&no(t[a])&&io(t[a],n[a])?i[a]=n[a]:i[a]=t[a])})});function vR(e,t,r,n,i,a){if(!(r in e)||!ao(e[r],t[r])){if(!n){var o=new f_(e,i),f=new f_(t,i,e),l=new Ot({actual:o,expected:f,operator:"deepStrictEqual",stackStartFn:a});throw l.actual=e,l.expected=t,l.operator=a.name,l}Ue({actual:e,expected:t,message:n,operator:a.name,stackStartFn:a})}}function p_(e,t,r,n){if(typeof t!="function"){if(no(t))return io(t,e);if(arguments.length===2)throw new Yr("expected",["Function","RegExp"],t);if(je(e)!=="object"||e===null){var i=new Ot({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw i.operator=n.name,i}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(a.length===0)throw new hR("error",t,"may not be an empty object");return Rt===void 0&&ri(),a.forEach(function(o){typeof e[o]=="string"&&no(t[o])&&io(t[o],e[o])||vR(e,t,o,r,a,n)}),!0}return t.prototype!==void 0&&e instanceof t?!0:Error.isPrototypeOf(t)?!1:t.call({},e)===!0}function y_(e){if(typeof e!="function")throw new Yr("fn","Function",e);try{e()}catch(t){return t}return oo}function u_(e){return yR(e)||e!==null&&je(e)==="object"&&typeof e.then=="function"&&typeof e.catch=="function"}function __(e){return Promise.resolve().then(function(){var t;if(typeof e=="function"){if(t=e(),!u_(t))throw new dR("instance of Promise","promiseFn",t)}else if(u_(e))t=e;else throw new Yr("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return t}).then(function(){return oo}).catch(function(r){return r})})}function v_(e,t,r,n){if(typeof r=="string"){if(arguments.length===4)throw new Yr("error",["Object","Error","Function","RegExp"],r);if(je(t)==="object"&&t!==null){if(t.message===r)throw new a_("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new a_("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(r!=null&&je(r)!=="object"&&typeof r!="function")throw new Yr("error",["Object","Error","Function","RegExp"],r);if(t===oo){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var a=e.name==="rejects"?"rejection":"exception";Ue({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(i),stackStartFn:e})}if(r&&!p_(t,r,n,e))throw t}function g_(e,t,r,n){if(t!==oo){if(typeof r=="string"&&(n=r,r=void 0),!r||p_(t,r)){var i=n?": ".concat(n):".",a=e.name==="doesNotReject"?"rejection":"exception";Ue({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(a).concat(i,`
59
+ `)+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}H.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];v_.apply(void 0,[e,y_(t)].concat(n))};H.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return __(t).then(function(a){return v_.apply(void 0,[e,a].concat(n))})};H.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];g_.apply(void 0,[e,y_(t)].concat(n))};H.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return __(t).then(function(a){return g_.apply(void 0,[e,a].concat(n))})};H.ifError=function e(t){if(t!=null){var r="ifError got unwanted exception: ";je(t)==="object"&&typeof t.message=="string"?t.message.length===0&&t.constructor?r+=t.constructor.name:r+=t.message:r+=ro(t);var n=new Ot({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),i=t.stack;if(typeof i=="string"){var a=i.split(`
60
+ `);a.shift();for(var o=n.stack.split(`
61
+ `),f=0;f<a.length;f++){var l=o.indexOf(a[f]);if(l!==-1){o=o.slice(0,l);break}}n.stack="".concat(o.join(`
68
62
  `),`
69
63
  `).concat(a.join(`
70
- `))}throw i}};function z2(e,t,r,i,n){if(!wu(t))throw new ha("regexp","RegExp",t);var a=n==="match";if(typeof e!="string"||xu(t,e)!==a){if(r instanceof Error)throw r;var o=!r;r=r||(typeof e!="string"?'The "string" argument must be of type string. Received type '+"".concat(nr(e)," (").concat(mu(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(mu(t),`. Input:
64
+ `))}throw n}};function b_(e,t,r,n,i){if(!no(t))throw new Yr("regexp","RegExp",t);var a=i==="match";if(typeof e!="string"||io(t,e)!==a){if(r instanceof Error)throw r;var o=!r;r=r||(typeof e!="string"?'The "string" argument must be of type string. Received type '+"".concat(je(e)," (").concat(ro(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(ro(t),`. Input:
71
65
 
72
- `).concat(mu(e),`
73
- `));var s=new ai({actual:e,expected:t,message:r,operator:n,stackStartFn:i});throw s.generatedMessage=o,s}}Ge.match=function e(t,r,i){z2(t,r,i,e,"match")};Ge.doesNotMatch=function e(t,r,i){z2(t,r,i,e,"doesNotMatch")};function Z2(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];N2.apply(void 0,[Z2,t.length].concat(t))}Ge.strict=F7(Z2,Ge,{equal:Ge.strictEqual,deepEqual:Ge.deepStrictEqual,notEqual:Ge.notStrictEqual,notDeepEqual:Ge.notDeepStrictEqual});Ge.strict.strict=Ge.strict});var K2=k((hU,W2)=>{"use strict";m();function z7(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}W2.exports=z7});var $o=k(mt=>{"use strict";m();var Z7=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function H7(e,t){return Object.prototype.hasOwnProperty.call(e,t)}mt.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)H7(r,i)&&(e[i]=r[i])}}return e};mt.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var W7={arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),n);return}for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){var t,r,i,n,a,o;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(o=new Uint8Array(i),n=0,t=0,r=e.length;t<r;t++)a=e[t],o.set(a,n),n+=a.length;return o}},K7={arraySet:function(e,t,r,i,n){for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};mt.setTyped=function(e){e?(mt.Buf8=Uint8Array,mt.Buf16=Uint16Array,mt.Buf32=Int32Array,mt.assign(mt,W7)):(mt.Buf8=Array,mt.Buf16=Array,mt.Buf32=Array,mt.assign(mt,K7))};mt.setTyped(Z7)});var vx=k(pa=>{"use strict";m();var G7=$o(),V7=4,G2=0,V2=1,$7=2;function da(e){for(var t=e.length;--t>=0;)e[t]=0}var Y7=0,ex=1,J7=2,X7=3,Q7=258,b0=29,tf=256,Jo=tf+1+b0,ca=30,_0=19,tx=2*Jo+1,fn=15,c0=16,eI=7,m0=256,rx=16,ix=17,nx=18,y0=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Mu=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],tI=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ax=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],rI=512,jr=new Array((Jo+2)*2);da(jr);var Yo=new Array(ca*2);da(Yo);var Xo=new Array(rI);da(Xo);var Qo=new Array(Q7-X7+1);da(Qo);var w0=new Array(b0);da(w0);var Au=new Array(ca);da(Au);function d0(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}var ox,fx,sx;function p0(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function ux(e){return e<256?Xo[e]:Xo[256+(e>>>7)]}function ef(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function At(e,t,r){e.bi_valid>c0-r?(e.bi_buf|=t<<e.bi_valid&65535,ef(e,e.bi_buf),e.bi_buf=t>>c0-e.bi_valid,e.bi_valid+=r-c0):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function _r(e,t,r){At(e,r[t*2],r[t*2+1])}function lx(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function iI(e){e.bi_valid===16?(ef(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function nI(e,t){var r=t.dyn_tree,i=t.max_code,n=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,y=t.stat_desc.max_length,b,x,B,R,T,O,D=0;for(R=0;R<=fn;R++)e.bl_count[R]=0;for(r[e.heap[e.heap_max]*2+1]=0,b=e.heap_max+1;b<tx;b++)x=e.heap[b],R=r[r[x*2+1]*2+1]+1,R>y&&(R=y,D++),r[x*2+1]=R,!(x>i)&&(e.bl_count[R]++,T=0,x>=s&&(T=o[x-s]),O=r[x*2],e.opt_len+=O*(R+T),a&&(e.static_len+=O*(n[x*2+1]+T)));if(D!==0){do{for(R=y-1;e.bl_count[R]===0;)R--;e.bl_count[R]--,e.bl_count[R+1]+=2,e.bl_count[y]--,D-=2}while(D>0);for(R=y;R!==0;R--)for(x=e.bl_count[R];x!==0;)B=e.heap[--b],!(B>i)&&(r[B*2+1]!==R&&(e.opt_len+=(R-r[B*2+1])*r[B*2],r[B*2+1]=R),x--)}}function hx(e,t,r){var i=new Array(fn+1),n=0,a,o;for(a=1;a<=fn;a++)i[a]=n=n+r[a-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=lx(i[s]++,s))}}function aI(){var e,t,r,i,n,a=new Array(fn+1);for(r=0,i=0;i<b0-1;i++)for(w0[i]=r,e=0;e<1<<y0[i];e++)Qo[r++]=i;for(Qo[r-1]=i,n=0,i=0;i<16;i++)for(Au[i]=n,e=0;e<1<<Mu[i];e++)Xo[n++]=i;for(n>>=7;i<ca;i++)for(Au[i]=n<<7,e=0;e<1<<Mu[i]-7;e++)Xo[256+n++]=i;for(t=0;t<=fn;t++)a[t]=0;for(e=0;e<=143;)jr[e*2+1]=8,e++,a[8]++;for(;e<=255;)jr[e*2+1]=9,e++,a[9]++;for(;e<=279;)jr[e*2+1]=7,e++,a[7]++;for(;e<=287;)jr[e*2+1]=8,e++,a[8]++;for(hx(jr,Jo+1,a),e=0;e<ca;e++)Yo[e*2+1]=5,Yo[e*2]=lx(e,5);ox=new d0(jr,y0,tf+1,Jo,fn),fx=new d0(Yo,Mu,0,ca,fn),sx=new d0(new Array(0),tI,0,_0,eI)}function cx(e){var t;for(t=0;t<Jo;t++)e.dyn_ltree[t*2]=0;for(t=0;t<ca;t++)e.dyn_dtree[t*2]=0;for(t=0;t<_0;t++)e.bl_tree[t*2]=0;e.dyn_ltree[m0*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function dx(e){e.bi_valid>8?ef(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function oI(e,t,r,i){dx(e),i&&(ef(e,r),ef(e,~r)),G7.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function $2(e,t,r,i){var n=t*2,a=r*2;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]}function v0(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&$2(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!$2(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}function Y2(e,t,r){var i,n,a=0,o,s;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],n=e.pending_buf[e.l_buf+a],a++,i===0?_r(e,n,t):(o=Qo[n],_r(e,o+tf+1,t),s=y0[o],s!==0&&(n-=w0[o],At(e,n,s)),i--,o=ux(i),_r(e,o,r),s=Mu[o],s!==0&&(i-=Au[o],At(e,i,s)));while(a<e.last_lit);_r(e,m0,t)}function g0(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,n=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,y=-1,b;for(e.heap_len=0,e.heap_max=tx,o=0;o<a;o++)r[o*2]!==0?(e.heap[++e.heap_len]=y=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)b=e.heap[++e.heap_len]=y<2?++y:0,r[b*2]=1,e.depth[b]=0,e.opt_len--,n&&(e.static_len-=i[b*2+1]);for(t.max_code=y,o=e.heap_len>>1;o>=1;o--)v0(e,r,o);b=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],v0(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,r[b*2]=r[o*2]+r[s*2],e.depth[b]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,r[o*2+1]=r[s*2+1]=b,e.heap[1]=b++,v0(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],nI(e,t),hx(r,y,e.bl_count)}function J2(e,t,r){var i,n=-1,a,o=t[1],s=0,y=7,b=4;for(o===0&&(y=138,b=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)a=o,o=t[(i+1)*2+1],!(++s<y&&a===o)&&(s<b?e.bl_tree[a*2]+=s:a!==0?(a!==n&&e.bl_tree[a*2]++,e.bl_tree[rx*2]++):s<=10?e.bl_tree[ix*2]++:e.bl_tree[nx*2]++,s=0,n=a,o===0?(y=138,b=3):a===o?(y=6,b=3):(y=7,b=4))}function X2(e,t,r){var i,n=-1,a,o=t[1],s=0,y=7,b=4;for(o===0&&(y=138,b=3),i=0;i<=r;i++)if(a=o,o=t[(i+1)*2+1],!(++s<y&&a===o)){if(s<b)do _r(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==n&&(_r(e,a,e.bl_tree),s--),_r(e,rx,e.bl_tree),At(e,s-3,2)):s<=10?(_r(e,ix,e.bl_tree),At(e,s-3,3)):(_r(e,nx,e.bl_tree),At(e,s-11,7));s=0,n=a,o===0?(y=138,b=3):a===o?(y=6,b=3):(y=7,b=4)}}function fI(e){var t;for(J2(e,e.dyn_ltree,e.l_desc.max_code),J2(e,e.dyn_dtree,e.d_desc.max_code),g0(e,e.bl_desc),t=_0-1;t>=3&&e.bl_tree[ax[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function sI(e,t,r,i){var n;for(At(e,t-257,5),At(e,r-1,5),At(e,i-4,4),n=0;n<i;n++)At(e,e.bl_tree[ax[n]*2+1],3);X2(e,e.dyn_ltree,t-1),X2(e,e.dyn_dtree,r-1)}function uI(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return G2;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return V2;for(r=32;r<tf;r++)if(e.dyn_ltree[r*2]!==0)return V2;return G2}var Q2=!1;function lI(e){Q2||(aI(),Q2=!0),e.l_desc=new p0(e.dyn_ltree,ox),e.d_desc=new p0(e.dyn_dtree,fx),e.bl_desc=new p0(e.bl_tree,sx),e.bi_buf=0,e.bi_valid=0,cx(e)}function px(e,t,r,i){At(e,(Y7<<1)+(i?1:0),3),oI(e,t,r,!0)}function hI(e){At(e,ex<<1,3),_r(e,m0,jr),iI(e)}function cI(e,t,r,i){var n,a,o=0;e.level>0?(e.strm.data_type===$7&&(e.strm.data_type=uI(e)),g0(e,e.l_desc),g0(e,e.d_desc),o=fI(e),n=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=n&&(n=a)):n=a=r+5,r+4<=n&&t!==-1?px(e,t,r,i):e.strategy===V7||a===n?(At(e,(ex<<1)+(i?1:0),3),Y2(e,jr,Yo)):(At(e,(J7<<1)+(i?1:0),3),sI(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Y2(e,e.dyn_ltree,e.dyn_dtree)),cx(e),i&&dx(e)}function dI(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Qo[r]+tf+1)*2]++,e.dyn_dtree[ux(t)*2]++),e.last_lit===e.lit_bufsize-1}pa._tr_init=lI;pa._tr_stored_block=px;pa._tr_flush_block=cI;pa._tr_tally=dI;pa._tr_align=hI});var x0=k((gU,yx)=>{"use strict";m();function pI(e,t,r,i){for(var n=e&65535|0,a=e>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do n=n+t[i++]|0,a=a+n|0;while(--o);n%=65521,a%=65521}return n|a<<16|0}yx.exports=pI});var E0=k((_U,gx)=>{"use strict";m();function vI(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var yI=vI();function gI(e,t,r,i){var n=yI,a=i+r;e^=-1;for(var o=i;o<a;o++)e=e>>>8^n[(e^t[o])&255];return e^-1}gx.exports=gI});var _x=k((wU,bx)=>{"use strict";m();bx.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var Rx=k(xr=>{"use strict";m();var wt=$o(),zt=vx(),Ex=x0(),oi=E0(),bI=_x(),hn=0,_I=1,mI=3,hi=4,mx=5,wr=0,wx=1,Zt=-2,wI=-3,S0=-5,xI=-1,EI=1,Bu=2,SI=3,MI=4,AI=0,BI=2,Iu=8,RI=9,kI=15,TI=8,II=29,OI=256,A0=OI+1+II,qI=30,DI=19,NI=2*A0+1,PI=15,je=3,ui=258,or=ui+je+1,LI=32,Ou=42,B0=69,Ru=73,ku=91,Tu=103,sn=113,nf=666,nt=1,af=2,un=3,ga=4,CI=3;function li(e,t){return e.msg=bI[t],t}function xx(e){return(e<<1)-(e>4?9:0)}function si(e){for(var t=e.length;--t>=0;)e[t]=0}function fi(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(wt.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function ht(e,t){zt._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,fi(e.strm)}function Ze(e,t){e.pending_buf[e.pending++]=t}function rf(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function UI(e,t,r,i){var n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,wt.arraySet(t,e.input,e.next_in,n,r),e.state.wrap===1?e.adler=Ex(e.adler,t,n,r):e.state.wrap===2&&(e.adler=oi(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)}function Sx(e,t){var r=e.max_chain_length,i=e.strstart,n,a,o=e.prev_length,s=e.nice_match,y=e.strstart>e.w_size-or?e.strstart-(e.w_size-or):0,b=e.window,x=e.w_mask,B=e.prev,R=e.strstart+ui,T=b[i+o-1],O=b[i+o];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do if(n=t,!(b[n+o]!==O||b[n+o-1]!==T||b[n]!==b[i]||b[++n]!==b[i+1])){i+=2,n++;do;while(b[++i]===b[++n]&&b[++i]===b[++n]&&b[++i]===b[++n]&&b[++i]===b[++n]&&b[++i]===b[++n]&&b[++i]===b[++n]&&b[++i]===b[++n]&&b[++i]===b[++n]&&i<R);if(a=ui-(R-i),i=R-ui,a>o){if(e.match_start=t,o=a,a>=s)break;T=b[i+o-1],O=b[i+o]}}while((t=B[t&x])>y&&--r!==0);return o<=e.lookahead?o:e.lookahead}function ln(e){var t=e.w_size,r,i,n,a,o;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-or)){wt.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do n=e.head[--r],e.head[r]=n>=t?n-t:0;while(--i);i=t,r=i;do n=e.prev[--r],e.prev[r]=n>=t?n-t:0;while(--i);a+=t}if(e.strm.avail_in===0)break;if(i=UI(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=i,e.lookahead+e.insert>=je)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+je-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<je)););}while(e.lookahead<or&&e.strm.avail_in!==0)}function FI(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ln(e),e.lookahead===0&&t===hn)return nt;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,ht(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-or&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=0,t===hi?(ht(e,!0),e.strm.avail_out===0?un:ga):(e.strstart>e.block_start&&(ht(e,!1),e.strm.avail_out===0),nt)}function M0(e,t){for(var r,i;;){if(e.lookahead<or){if(ln(e),e.lookahead<or&&t===hn)return nt;if(e.lookahead===0)break}if(r=0,e.lookahead>=je&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+je-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-or&&(e.match_length=Sx(e,r)),e.match_length>=je)if(i=zt._tr_tally(e,e.strstart-e.match_start,e.match_length-je),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=je){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+je-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=zt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=e.strstart<je-1?e.strstart:je-1,t===hi?(ht(e,!0),e.strm.avail_out===0?un:ga):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:af}function va(e,t){for(var r,i,n;;){if(e.lookahead<or){if(ln(e),e.lookahead<or&&t===hn)return nt;if(e.lookahead===0)break}if(r=0,e.lookahead>=je&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+je-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=je-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-or&&(e.match_length=Sx(e,r),e.match_length<=5&&(e.strategy===EI||e.match_length===je&&e.strstart-e.match_start>4096)&&(e.match_length=je-1)),e.prev_length>=je&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-je,i=zt._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-je),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+je-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=je-1,e.strstart++,i&&(ht(e,!1),e.strm.avail_out===0))return nt}else if(e.match_available){if(i=zt._tr_tally(e,0,e.window[e.strstart-1]),i&&ht(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return nt}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=zt._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<je-1?e.strstart:je-1,t===hi?(ht(e,!0),e.strm.avail_out===0?un:ga):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:af}function jI(e,t){for(var r,i,n,a,o=e.window;;){if(e.lookahead<=ui){if(ln(e),e.lookahead<=ui&&t===hn)return nt;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=je&&e.strstart>0&&(n=e.strstart-1,i=o[n],i===o[++n]&&i===o[++n]&&i===o[++n])){a=e.strstart+ui;do;while(i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&n<a);e.match_length=ui-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=je?(r=zt._tr_tally(e,1,e.match_length-je),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=zt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=0,t===hi?(ht(e,!0),e.strm.avail_out===0?un:ga):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:af}function zI(e,t){for(var r;;){if(e.lookahead===0&&(ln(e),e.lookahead===0)){if(t===hn)return nt;break}if(e.match_length=0,r=zt._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(ht(e,!1),e.strm.avail_out===0))return nt}return e.insert=0,t===hi?(ht(e,!0),e.strm.avail_out===0?un:ga):e.last_lit&&(ht(e,!1),e.strm.avail_out===0)?nt:af}function mr(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}var ya;ya=[new mr(0,0,0,0,FI),new mr(4,4,8,4,M0),new mr(4,5,16,8,M0),new mr(4,6,32,32,M0),new mr(4,4,16,16,va),new mr(8,16,32,32,va),new mr(8,16,128,128,va),new mr(8,32,128,256,va),new mr(32,128,258,1024,va),new mr(32,258,258,4096,va)];function ZI(e){e.window_size=2*e.w_size,si(e.head),e.max_lazy_match=ya[e.level].max_lazy,e.good_match=ya[e.level].good_length,e.nice_match=ya[e.level].nice_length,e.max_chain_length=ya[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=je-1,e.match_available=0,e.ins_h=0}function HI(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Iu,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new wt.Buf16(NI*2),this.dyn_dtree=new wt.Buf16((2*qI+1)*2),this.bl_tree=new wt.Buf16((2*DI+1)*2),si(this.dyn_ltree),si(this.dyn_dtree),si(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new wt.Buf16(PI+1),this.heap=new wt.Buf16(2*A0+1),si(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new wt.Buf16(2*A0+1),si(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Mx(e){var t;return!e||!e.state?li(e,Zt):(e.total_in=e.total_out=0,e.data_type=BI,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Ou:sn,e.adler=t.wrap===2?0:1,t.last_flush=hn,zt._tr_init(t),wr)}function Ax(e){var t=Mx(e);return t===wr&&ZI(e.state),t}function WI(e,t){return!e||!e.state||e.state.wrap!==2?Zt:(e.state.gzhead=t,wr)}function Bx(e,t,r,i,n,a){if(!e)return Zt;var o=1;if(t===xI&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),n<1||n>RI||r!==Iu||i<8||i>15||t<0||t>9||a<0||a>MI)return li(e,Zt);i===8&&(i=9);var s=new HI;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=n+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+je-1)/je),s.window=new wt.Buf8(s.w_size*2),s.head=new wt.Buf16(s.hash_size),s.prev=new wt.Buf16(s.w_size),s.lit_bufsize=1<<n+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new wt.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=r,Ax(e)}function KI(e,t){return Bx(e,t,Iu,kI,TI,AI)}function GI(e,t){var r,i,n,a;if(!e||!e.state||t>mx||t<0)return e?li(e,Zt):Zt;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===nf&&t!==hi)return li(e,e.avail_out===0?S0:Zt);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===Ou)if(i.wrap===2)e.adler=0,Ze(i,31),Ze(i,139),Ze(i,8),i.gzhead?(Ze(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Ze(i,i.gzhead.time&255),Ze(i,i.gzhead.time>>8&255),Ze(i,i.gzhead.time>>16&255),Ze(i,i.gzhead.time>>24&255),Ze(i,i.level===9?2:i.strategy>=Bu||i.level<2?4:0),Ze(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(Ze(i,i.gzhead.extra.length&255),Ze(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=oi(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=B0):(Ze(i,0),Ze(i,0),Ze(i,0),Ze(i,0),Ze(i,0),Ze(i,i.level===9?2:i.strategy>=Bu||i.level<2?4:0),Ze(i,CI),i.status=sn);else{var o=Iu+(i.w_bits-8<<4)<<8,s=-1;i.strategy>=Bu||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,o|=s<<6,i.strstart!==0&&(o|=LI),o+=31-o%31,i.status=sn,rf(i,o),i.strstart!==0&&(rf(i,e.adler>>>16),rf(i,e.adler&65535)),e.adler=1}if(i.status===B0)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),fi(e),n=i.pending,i.pending===i.pending_buf_size));)Ze(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Ru)}else i.status=Ru;if(i.status===Ru)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),fi(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.name.length?a=i.gzhead.name.charCodeAt(i.gzindex++)&255:a=0,Ze(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.gzindex=0,i.status=ku)}else i.status=ku;if(i.status===ku)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),fi(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.comment.length?a=i.gzhead.comment.charCodeAt(i.gzindex++)&255:a=0,Ze(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=oi(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.status=Tu)}else i.status=Tu;if(i.status===Tu&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&fi(e),i.pending+2<=i.pending_buf_size&&(Ze(i,e.adler&255),Ze(i,e.adler>>8&255),e.adler=0,i.status=sn)):i.status=sn),i.pending!==0){if(fi(e),e.avail_out===0)return i.last_flush=-1,wr}else if(e.avail_in===0&&xx(t)<=xx(r)&&t!==hi)return li(e,S0);if(i.status===nf&&e.avail_in!==0)return li(e,S0);if(e.avail_in!==0||i.lookahead!==0||t!==hn&&i.status!==nf){var y=i.strategy===Bu?zI(i,t):i.strategy===SI?jI(i,t):ya[i.level].func(i,t);if((y===un||y===ga)&&(i.status=nf),y===nt||y===un)return e.avail_out===0&&(i.last_flush=-1),wr;if(y===af&&(t===_I?zt._tr_align(i):t!==mx&&(zt._tr_stored_block(i,0,0,!1),t===mI&&(si(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),fi(e),e.avail_out===0))return i.last_flush=-1,wr}return t!==hi?wr:i.wrap<=0?wx:(i.wrap===2?(Ze(i,e.adler&255),Ze(i,e.adler>>8&255),Ze(i,e.adler>>16&255),Ze(i,e.adler>>24&255),Ze(i,e.total_in&255),Ze(i,e.total_in>>8&255),Ze(i,e.total_in>>16&255),Ze(i,e.total_in>>24&255)):(rf(i,e.adler>>>16),rf(i,e.adler&65535)),fi(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?wr:wx)}function VI(e){var t;return!e||!e.state?Zt:(t=e.state.status,t!==Ou&&t!==B0&&t!==Ru&&t!==ku&&t!==Tu&&t!==sn&&t!==nf?li(e,Zt):(e.state=null,t===sn?li(e,wI):wr))}function $I(e,t){var r=t.length,i,n,a,o,s,y,b,x;if(!e||!e.state||(i=e.state,o=i.wrap,o===2||o===1&&i.status!==Ou||i.lookahead))return Zt;for(o===1&&(e.adler=Ex(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(o===0&&(si(i.head),i.strstart=0,i.block_start=0,i.insert=0),x=new wt.Buf8(i.w_size),wt.arraySet(x,t,r-i.w_size,i.w_size,0),t=x,r=i.w_size),s=e.avail_in,y=e.next_in,b=e.input,e.avail_in=r,e.next_in=0,e.input=t,ln(i);i.lookahead>=je;){n=i.strstart,a=i.lookahead-(je-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+je-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++;while(--a);i.strstart=n,i.lookahead=je-1,ln(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=je-1,i.match_available=0,e.next_in=y,e.input=b,e.avail_in=s,i.wrap=o,wr}xr.deflateInit=KI;xr.deflateInit2=Bx;xr.deflateReset=Ax;xr.deflateResetKeep=Mx;xr.deflateSetHeader=WI;xr.deflate=GI;xr.deflateEnd=VI;xr.deflateSetDictionary=$I;xr.deflateInfo="pako deflate (from Nodeca project)"});var Tx=k((MU,kx)=>{"use strict";m();var qu=30,YI=12;kx.exports=function(t,r){var i,n,a,o,s,y,b,x,B,R,T,O,D,U,N,j,H,W,Z,K,J,z,X,A,h;i=t.state,n=t.next_in,A=t.input,a=n+(t.avail_in-5),o=t.next_out,h=t.output,s=o-(r-t.avail_out),y=o+(t.avail_out-257),b=i.dmax,x=i.wsize,B=i.whave,R=i.wnext,T=i.window,O=i.hold,D=i.bits,U=i.lencode,N=i.distcode,j=(1<<i.lenbits)-1,H=(1<<i.distbits)-1;e:do{D<15&&(O+=A[n++]<<D,D+=8,O+=A[n++]<<D,D+=8),W=U[O&j];t:for(;;){if(Z=W>>>24,O>>>=Z,D-=Z,Z=W>>>16&255,Z===0)h[o++]=W&65535;else if(Z&16){K=W&65535,Z&=15,Z&&(D<Z&&(O+=A[n++]<<D,D+=8),K+=O&(1<<Z)-1,O>>>=Z,D-=Z),D<15&&(O+=A[n++]<<D,D+=8,O+=A[n++]<<D,D+=8),W=N[O&H];r:for(;;){if(Z=W>>>24,O>>>=Z,D-=Z,Z=W>>>16&255,Z&16){if(J=W&65535,Z&=15,D<Z&&(O+=A[n++]<<D,D+=8,D<Z&&(O+=A[n++]<<D,D+=8)),J+=O&(1<<Z)-1,J>b){t.msg="invalid distance too far back",i.mode=qu;break e}if(O>>>=Z,D-=Z,Z=o-s,J>Z){if(Z=J-Z,Z>B&&i.sane){t.msg="invalid distance too far back",i.mode=qu;break e}if(z=0,X=T,R===0){if(z+=x-Z,Z<K){K-=Z;do h[o++]=T[z++];while(--Z);z=o-J,X=h}}else if(R<Z){if(z+=x+R-Z,Z-=R,Z<K){K-=Z;do h[o++]=T[z++];while(--Z);if(z=0,R<K){Z=R,K-=Z;do h[o++]=T[z++];while(--Z);z=o-J,X=h}}}else if(z+=R-Z,Z<K){K-=Z;do h[o++]=T[z++];while(--Z);z=o-J,X=h}for(;K>2;)h[o++]=X[z++],h[o++]=X[z++],h[o++]=X[z++],K-=3;K&&(h[o++]=X[z++],K>1&&(h[o++]=X[z++]))}else{z=o-J;do h[o++]=h[z++],h[o++]=h[z++],h[o++]=h[z++],K-=3;while(K>2);K&&(h[o++]=h[z++],K>1&&(h[o++]=h[z++]))}}else if((Z&64)===0){W=N[(W&65535)+(O&(1<<Z)-1)];continue r}else{t.msg="invalid distance code",i.mode=qu;break e}break}}else if((Z&64)===0){W=U[(W&65535)+(O&(1<<Z)-1)];continue t}else if(Z&32){i.mode=YI;break e}else{t.msg="invalid literal/length code",i.mode=qu;break e}break}}while(n<a&&o<y);K=D>>3,n-=K,D-=K<<3,O&=(1<<D)-1,t.next_in=n,t.next_out=o,t.avail_in=n<a?5+(a-n):5-(n-a),t.avail_out=o<y?257+(y-o):257-(o-y),i.hold=O,i.bits=D}});var Lx=k((BU,Px)=>{"use strict";m();var Ix=$o(),ba=15,Ox=852,qx=592,Dx=0,R0=1,Nx=2,JI=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],XI=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],QI=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],eO=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Px.exports=function(t,r,i,n,a,o,s,y){var b=y.bits,x=0,B=0,R=0,T=0,O=0,D=0,U=0,N=0,j=0,H=0,W,Z,K,J,z,X=null,A=0,h,_=new Ix.Buf16(ba+1),d=new Ix.Buf16(ba+1),f=null,l=0,v,g,p;for(x=0;x<=ba;x++)_[x]=0;for(B=0;B<n;B++)_[r[i+B]]++;for(O=b,T=ba;T>=1&&_[T]===0;T--);if(O>T&&(O=T),T===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,y.bits=1,0;for(R=1;R<T&&_[R]===0;R++);for(O<R&&(O=R),N=1,x=1;x<=ba;x++)if(N<<=1,N-=_[x],N<0)return-1;if(N>0&&(t===Dx||T!==1))return-1;for(d[1]=0,x=1;x<ba;x++)d[x+1]=d[x]+_[x];for(B=0;B<n;B++)r[i+B]!==0&&(s[d[r[i+B]]++]=B);if(t===Dx?(X=f=s,h=19):t===R0?(X=JI,A-=257,f=XI,l-=257,h=256):(X=QI,f=eO,h=-1),H=0,B=0,x=R,z=o,D=O,U=0,K=-1,j=1<<O,J=j-1,t===R0&&j>Ox||t===Nx&&j>qx)return 1;for(;;){v=x-U,s[B]<h?(g=0,p=s[B]):s[B]>h?(g=f[l+s[B]],p=X[A+s[B]]):(g=96,p=0),W=1<<x-U,Z=1<<D,R=Z;do Z-=W,a[z+(H>>U)+Z]=v<<24|g<<16|p|0;while(Z!==0);for(W=1<<x-1;H&W;)W>>=1;if(W!==0?(H&=W-1,H+=W):H=0,B++,--_[x]===0){if(x===T)break;x=r[i+s[B]]}if(x>O&&(H&J)!==K){for(U===0&&(U=O),z+=R,D=x-U,N=1<<D;D+U<T&&(N-=_[D+U],!(N<=0));)D++,N<<=1;if(j+=1<<D,t===R0&&j>Ox||t===Nx&&j>qx)return 1;K=H&J,a[K]=O<<24|D<<16|z-o|0}}return H!==0&&(a[z+H]=x-U<<24|64<<16|0),y.bits=O,0}});var bE=k(fr=>{"use strict";m();var Rt=$o(),D0=x0(),Er=E0(),tO=Tx(),of=Lx(),rO=0,uE=1,lE=2,Cx=4,iO=5,Du=6,cn=0,nO=1,aO=2,Ht=-2,hE=-3,N0=-4,oO=-5,Ux=8,cE=1,Fx=2,jx=3,zx=4,Zx=5,Hx=6,Wx=7,Kx=8,Gx=9,Vx=10,Lu=11,zr=12,k0=13,$x=14,T0=15,Yx=16,Jx=17,Xx=18,Qx=19,Nu=20,Pu=21,eE=22,tE=23,rE=24,iE=25,nE=26,I0=27,aE=28,oE=29,Je=30,P0=31,fO=32,sO=852,uO=592,lO=15,hO=lO;function fE(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function cO(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Rt.Buf16(320),this.work=new Rt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function dE(e){var t;return!e||!e.state?Ht:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=cE,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Rt.Buf32(sO),t.distcode=t.distdyn=new Rt.Buf32(uO),t.sane=1,t.back=-1,cn)}function pE(e){var t;return!e||!e.state?Ht:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,dE(e))}function vE(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Ht:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,pE(e))}function yE(e,t){var r,i;return e?(i=new cO,e.state=i,i.window=null,r=vE(e,t),r!==cn&&(e.state=null),r):Ht}function dO(e){return yE(e,hO)}var sE=!0,O0,q0;function pO(e){if(sE){var t;for(O0=new Rt.Buf32(512),q0=new Rt.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(of(uE,e.lens,0,288,O0,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;of(lE,e.lens,0,32,q0,0,e.work,{bits:5}),sE=!1}e.lencode=O0,e.lenbits=9,e.distcode=q0,e.distbits=5}function gE(e,t,r,i){var n,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Rt.Buf8(a.wsize)),i>=a.wsize?(Rt.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>i&&(n=i),Rt.arraySet(a.window,t,r-i,n,a.wnext),i-=n,i?(Rt.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0}function vO(e,t){var r,i,n,a,o,s,y,b,x,B,R,T,O,D,U=0,N,j,H,W,Z,K,J,z,X=new Rt.Buf8(4),A,h,_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return Ht;r=e.state,r.mode===zr&&(r.mode=k0),o=e.next_out,n=e.output,y=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,b=r.hold,x=r.bits,B=s,R=y,z=cn;e:for(;;)switch(r.mode){case cE:if(r.wrap===0){r.mode=k0;break}for(;x<16;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(r.wrap&2&&b===35615){r.check=0,X[0]=b&255,X[1]=b>>>8&255,r.check=Er(r.check,X,2,0),b=0,x=0,r.mode=Fx;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((b&255)<<8)+(b>>8))%31){e.msg="incorrect header check",r.mode=Je;break}if((b&15)!==Ux){e.msg="unknown compression method",r.mode=Je;break}if(b>>>=4,x-=4,J=(b&15)+8,r.wbits===0)r.wbits=J;else if(J>r.wbits){e.msg="invalid window size",r.mode=Je;break}r.dmax=1<<J,e.adler=r.check=1,r.mode=b&512?Vx:zr,b=0,x=0;break;case Fx:for(;x<16;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(r.flags=b,(r.flags&255)!==Ux){e.msg="unknown compression method",r.mode=Je;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Je;break}r.head&&(r.head.text=b>>8&1),r.flags&512&&(X[0]=b&255,X[1]=b>>>8&255,r.check=Er(r.check,X,2,0)),b=0,x=0,r.mode=jx;case jx:for(;x<32;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}r.head&&(r.head.time=b),r.flags&512&&(X[0]=b&255,X[1]=b>>>8&255,X[2]=b>>>16&255,X[3]=b>>>24&255,r.check=Er(r.check,X,4,0)),b=0,x=0,r.mode=zx;case zx:for(;x<16;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}r.head&&(r.head.xflags=b&255,r.head.os=b>>8),r.flags&512&&(X[0]=b&255,X[1]=b>>>8&255,r.check=Er(r.check,X,2,0)),b=0,x=0,r.mode=Zx;case Zx:if(r.flags&1024){for(;x<16;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}r.length=b,r.head&&(r.head.extra_len=b),r.flags&512&&(X[0]=b&255,X[1]=b>>>8&255,r.check=Er(r.check,X,2,0)),b=0,x=0}else r.head&&(r.head.extra=null);r.mode=Hx;case Hx:if(r.flags&1024&&(T=r.length,T>s&&(T=s),T&&(r.head&&(J=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),Rt.arraySet(r.head.extra,i,a,T,J)),r.flags&512&&(r.check=Er(r.check,i,T,a)),s-=T,a+=T,r.length-=T),r.length))break e;r.length=0,r.mode=Wx;case Wx:if(r.flags&2048){if(s===0)break e;T=0;do J=i[a+T++],r.head&&J&&r.length<65536&&(r.head.name+=String.fromCharCode(J));while(J&&T<s);if(r.flags&512&&(r.check=Er(r.check,i,T,a)),s-=T,a+=T,J)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Kx;case Kx:if(r.flags&4096){if(s===0)break e;T=0;do J=i[a+T++],r.head&&J&&r.length<65536&&(r.head.comment+=String.fromCharCode(J));while(J&&T<s);if(r.flags&512&&(r.check=Er(r.check,i,T,a)),s-=T,a+=T,J)break e}else r.head&&(r.head.comment=null);r.mode=Gx;case Gx:if(r.flags&512){for(;x<16;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(b!==(r.check&65535)){e.msg="header crc mismatch",r.mode=Je;break}b=0,x=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=zr;break;case Vx:for(;x<32;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}e.adler=r.check=fE(b),b=0,x=0,r.mode=Lu;case Lu:if(r.havedict===0)return e.next_out=o,e.avail_out=y,e.next_in=a,e.avail_in=s,r.hold=b,r.bits=x,aO;e.adler=r.check=1,r.mode=zr;case zr:if(t===iO||t===Du)break e;case k0:if(r.last){b>>>=x&7,x-=x&7,r.mode=I0;break}for(;x<3;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}switch(r.last=b&1,b>>>=1,x-=1,b&3){case 0:r.mode=$x;break;case 1:if(pO(r),r.mode=Nu,t===Du){b>>>=2,x-=2;break e}break;case 2:r.mode=Jx;break;case 3:e.msg="invalid block type",r.mode=Je}b>>>=2,x-=2;break;case $x:for(b>>>=x&7,x-=x&7;x<32;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if((b&65535)!==(b>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Je;break}if(r.length=b&65535,b=0,x=0,r.mode=T0,t===Du)break e;case T0:r.mode=Yx;case Yx:if(T=r.length,T){if(T>s&&(T=s),T>y&&(T=y),T===0)break e;Rt.arraySet(n,i,a,T,o),s-=T,a+=T,y-=T,o+=T,r.length-=T;break}r.mode=zr;break;case Jx:for(;x<14;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(r.nlen=(b&31)+257,b>>>=5,x-=5,r.ndist=(b&31)+1,b>>>=5,x-=5,r.ncode=(b&15)+4,b>>>=4,x-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Je;break}r.have=0,r.mode=Xx;case Xx:for(;r.have<r.ncode;){for(;x<3;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}r.lens[_[r.have++]]=b&7,b>>>=3,x-=3}for(;r.have<19;)r.lens[_[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,A={bits:r.lenbits},z=of(rO,r.lens,0,19,r.lencode,0,r.work,A),r.lenbits=A.bits,z){e.msg="invalid code lengths set",r.mode=Je;break}r.have=0,r.mode=Qx;case Qx:for(;r.have<r.nlen+r.ndist;){for(;U=r.lencode[b&(1<<r.lenbits)-1],N=U>>>24,j=U>>>16&255,H=U&65535,!(N<=x);){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(H<16)b>>>=N,x-=N,r.lens[r.have++]=H;else{if(H===16){for(h=N+2;x<h;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(b>>>=N,x-=N,r.have===0){e.msg="invalid bit length repeat",r.mode=Je;break}J=r.lens[r.have-1],T=3+(b&3),b>>>=2,x-=2}else if(H===17){for(h=N+3;x<h;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}b>>>=N,x-=N,J=0,T=3+(b&7),b>>>=3,x-=3}else{for(h=N+7;x<h;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}b>>>=N,x-=N,J=0,T=11+(b&127),b>>>=7,x-=7}if(r.have+T>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Je;break}for(;T--;)r.lens[r.have++]=J}}if(r.mode===Je)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Je;break}if(r.lenbits=9,A={bits:r.lenbits},z=of(uE,r.lens,0,r.nlen,r.lencode,0,r.work,A),r.lenbits=A.bits,z){e.msg="invalid literal/lengths set",r.mode=Je;break}if(r.distbits=6,r.distcode=r.distdyn,A={bits:r.distbits},z=of(lE,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,A),r.distbits=A.bits,z){e.msg="invalid distances set",r.mode=Je;break}if(r.mode=Nu,t===Du)break e;case Nu:r.mode=Pu;case Pu:if(s>=6&&y>=258){e.next_out=o,e.avail_out=y,e.next_in=a,e.avail_in=s,r.hold=b,r.bits=x,tO(e,R),o=e.next_out,n=e.output,y=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,b=r.hold,x=r.bits,r.mode===zr&&(r.back=-1);break}for(r.back=0;U=r.lencode[b&(1<<r.lenbits)-1],N=U>>>24,j=U>>>16&255,H=U&65535,!(N<=x);){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(j&&(j&240)===0){for(W=N,Z=j,K=H;U=r.lencode[K+((b&(1<<W+Z)-1)>>W)],N=U>>>24,j=U>>>16&255,H=U&65535,!(W+N<=x);){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}b>>>=W,x-=W,r.back+=W}if(b>>>=N,x-=N,r.back+=N,r.length=H,j===0){r.mode=nE;break}if(j&32){r.back=-1,r.mode=zr;break}if(j&64){e.msg="invalid literal/length code",r.mode=Je;break}r.extra=j&15,r.mode=eE;case eE:if(r.extra){for(h=r.extra;x<h;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}r.length+=b&(1<<r.extra)-1,b>>>=r.extra,x-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=tE;case tE:for(;U=r.distcode[b&(1<<r.distbits)-1],N=U>>>24,j=U>>>16&255,H=U&65535,!(N<=x);){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if((j&240)===0){for(W=N,Z=j,K=H;U=r.distcode[K+((b&(1<<W+Z)-1)>>W)],N=U>>>24,j=U>>>16&255,H=U&65535,!(W+N<=x);){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}b>>>=W,x-=W,r.back+=W}if(b>>>=N,x-=N,r.back+=N,j&64){e.msg="invalid distance code",r.mode=Je;break}r.offset=H,r.extra=j&15,r.mode=rE;case rE:if(r.extra){for(h=r.extra;x<h;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}r.offset+=b&(1<<r.extra)-1,b>>>=r.extra,x-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Je;break}r.mode=iE;case iE:if(y===0)break e;if(T=R-y,r.offset>T){if(T=r.offset-T,T>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Je;break}T>r.wnext?(T-=r.wnext,O=r.wsize-T):O=r.wnext-T,T>r.length&&(T=r.length),D=r.window}else D=n,O=o-r.offset,T=r.length;T>y&&(T=y),y-=T,r.length-=T;do n[o++]=D[O++];while(--T);r.length===0&&(r.mode=Pu);break;case nE:if(y===0)break e;n[o++]=r.length,y--,r.mode=Pu;break;case I0:if(r.wrap){for(;x<32;){if(s===0)break e;s--,b|=i[a++]<<x,x+=8}if(R-=y,e.total_out+=R,r.total+=R,R&&(e.adler=r.check=r.flags?Er(r.check,n,R,o-R):D0(r.check,n,R,o-R)),R=y,(r.flags?b:fE(b))!==r.check){e.msg="incorrect data check",r.mode=Je;break}b=0,x=0}r.mode=aE;case aE:if(r.wrap&&r.flags){for(;x<32;){if(s===0)break e;s--,b+=i[a++]<<x,x+=8}if(b!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=Je;break}b=0,x=0}r.mode=oE;case oE:z=nO;break e;case Je:z=hE;break e;case P0:return N0;case fO:default:return Ht}return e.next_out=o,e.avail_out=y,e.next_in=a,e.avail_in=s,r.hold=b,r.bits=x,(r.wsize||R!==e.avail_out&&r.mode<Je&&(r.mode<I0||t!==Cx))&&gE(e,e.output,e.next_out,R-e.avail_out)?(r.mode=P0,N0):(B-=e.avail_in,R-=e.avail_out,e.total_in+=B,e.total_out+=R,r.total+=R,r.wrap&&R&&(e.adler=r.check=r.flags?Er(r.check,n,R,e.next_out-R):D0(r.check,n,R,e.next_out-R)),e.data_type=r.bits+(r.last?64:0)+(r.mode===zr?128:0)+(r.mode===Nu||r.mode===T0?256:0),(B===0&&R===0||t===Cx)&&z===cn&&(z=oO),z)}function yO(e){if(!e||!e.state)return Ht;var t=e.state;return t.window&&(t.window=null),e.state=null,cn}function gO(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)===0)?Ht:(r.head=t,t.done=!1,cn)}function bO(e,t){var r=t.length,i,n,a;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Lu)?Ht:i.mode===Lu&&(n=1,n=D0(n,t,r,0),n!==i.check)?hE:(a=gE(e,t,r,r),a?(i.mode=P0,N0):(i.havedict=1,cn))}fr.inflateReset=pE;fr.inflateReset2=vE;fr.inflateResetKeep=dE;fr.inflateInit=dO;fr.inflateInit2=yE;fr.inflate=vO;fr.inflateEnd=yO;fr.inflateGetHeader=gO;fr.inflateSetDictionary=bO;fr.inflateInfo="pako inflate (from Nodeca project)"});var mE=k((IU,_E)=>{"use strict";m();_E.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var xE=k(F=>{"use strict";m();var kt=Po(),_O=K2(),ff=Rx(),dn=bE(),wE=mE();for(L0 in wE)F[L0]=wE[L0];var L0;F.NONE=0;F.DEFLATE=1;F.INFLATE=2;F.GZIP=3;F.GUNZIP=4;F.DEFLATERAW=5;F.INFLATERAW=6;F.UNZIP=7;var mO=31,wO=139;function gt(e){if(typeof e!="number"||e<F.DEFLATE||e>F.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}gt.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,kt(this.init_done,"close before init"),kt(this.mode<=F.UNZIP),this.mode===F.DEFLATE||this.mode===F.GZIP||this.mode===F.DEFLATERAW?ff.deflateEnd(this.strm):(this.mode===F.INFLATE||this.mode===F.GUNZIP||this.mode===F.INFLATERAW||this.mode===F.UNZIP)&&dn.inflateEnd(this.strm),this.mode=F.NONE,this.dictionary=null};gt.prototype.write=function(e,t,r,i,n,a,o){return this._write(!0,e,t,r,i,n,a,o)};gt.prototype.writeSync=function(e,t,r,i,n,a,o){return this._write(!1,e,t,r,i,n,a,o)};gt.prototype._write=function(e,t,r,i,n,a,o,s){if(kt.equal(arguments.length,8),kt(this.init_done,"write before init"),kt(this.mode!==F.NONE,"already finalized"),kt.equal(!1,this.write_in_progress,"write already in progress"),kt.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,kt.equal(!1,t===void 0,"must provide flush value"),this.write_in_progress=!0,t!==F.Z_NO_FLUSH&&t!==F.Z_PARTIAL_FLUSH&&t!==F.Z_SYNC_FLUSH&&t!==F.Z_FULL_FLUSH&&t!==F.Z_FINISH&&t!==F.Z_BLOCK)throw new Error("Invalid flush value");if(r==null&&(r=I.Buffer.alloc(0),n=0,i=0),this.strm.avail_in=n,this.strm.input=r,this.strm.next_in=i,this.strm.avail_out=s,this.strm.output=a,this.strm.next_out=o,this.flush=t,!e)return this._process(),this._checkError()?this._afterSync():void 0;var y=this;return M.default.nextTick(function(){y._process(),y._after()}),this};gt.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]};gt.prototype._process=function(){var e=null;switch(this.mode){case F.DEFLATE:case F.GZIP:case F.DEFLATERAW:this.err=ff.deflate(this.strm,this.flush);break;case F.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(e===null)break;if(this.strm.input[e]===mO){if(this.gzip_id_bytes_read=1,e++,this.strm.avail_in===1)break}else{this.mode=F.INFLATE;break}case 1:if(e===null)break;this.strm.input[e]===wO?(this.gzip_id_bytes_read=2,this.mode=F.GUNZIP):this.mode=F.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case F.INFLATE:case F.GUNZIP:case F.INFLATERAW:for(this.err=dn.inflate(this.strm,this.flush),this.err===F.Z_NEED_DICT&&this.dictionary&&(this.err=dn.inflateSetDictionary(this.strm,this.dictionary),this.err===F.Z_OK?this.err=dn.inflate(this.strm,this.flush):this.err===F.Z_DATA_ERROR&&(this.err=F.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===F.GUNZIP&&this.err===F.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=dn.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}};gt.prototype._checkError=function(){switch(this.err){case F.Z_OK:case F.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===F.Z_FINISH)return this._error("unexpected end of file"),!1;break;case F.Z_STREAM_END:break;case F.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0};gt.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}};gt.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()};gt.prototype.init=function(e,t,r,i,n){kt(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),kt(e>=8&&e<=15,"invalid windowBits"),kt(t>=-1&&t<=9,"invalid compression level"),kt(r>=1&&r<=9,"invalid memlevel"),kt(i===F.Z_FILTERED||i===F.Z_HUFFMAN_ONLY||i===F.Z_RLE||i===F.Z_FIXED||i===F.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(t,e,r,i,n),this._setDictionary()};gt.prototype.params=function(){throw new Error("deflateParams Not supported")};gt.prototype.reset=function(){this._reset(),this._setDictionary()};gt.prototype._init=function(e,t,r,i,n){switch(this.level=e,this.windowBits=t,this.memLevel=r,this.strategy=i,this.flush=F.Z_NO_FLUSH,this.err=F.Z_OK,(this.mode===F.GZIP||this.mode===F.GUNZIP)&&(this.windowBits+=16),this.mode===F.UNZIP&&(this.windowBits+=32),(this.mode===F.DEFLATERAW||this.mode===F.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new _O,this.mode){case F.DEFLATE:case F.GZIP:case F.DEFLATERAW:this.err=ff.deflateInit2(this.strm,this.level,F.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case F.INFLATE:case F.GUNZIP:case F.INFLATERAW:case F.UNZIP:this.err=dn.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==F.Z_OK&&this._error("Init error"),this.dictionary=n,this.write_in_progress=!1,this.init_done=!0};gt.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=F.Z_OK,this.mode){case F.DEFLATE:case F.DEFLATERAW:this.err=ff.deflateSetDictionary(this.strm,this.dictionary);break;default:break}this.err!==F.Z_OK&&this._error("Failed to set dictionary")}};gt.prototype._reset=function(){switch(this.err=F.Z_OK,this.mode){case F.DEFLATE:case F.DEFLATERAW:case F.GZIP:this.err=ff.deflateReset(this.strm);break;case F.INFLATE:case F.INFLATERAW:case F.GUNZIP:this.err=dn.inflateReset(this.strm);break;default:break}this.err!==F.Z_OK&&this._error("Failed to reset stream")};F.Zlib=gt});var F0=k($=>{"use strict";m();var Sr=st().Buffer,AE=ls().Transform,te=xE(),ci=Gt(),sf=Po().ok,U0=st().kMaxLength,BE="Cannot create final Buffer. It would be larger than 0x"+U0.toString(16)+" bytes";te.Z_MIN_WINDOWBITS=8;te.Z_MAX_WINDOWBITS=15;te.Z_DEFAULT_WINDOWBITS=15;te.Z_MIN_CHUNK=64;te.Z_MAX_CHUNK=1/0;te.Z_DEFAULT_CHUNK=16*1024;te.Z_MIN_MEMLEVEL=1;te.Z_MAX_MEMLEVEL=9;te.Z_DEFAULT_MEMLEVEL=8;te.Z_MIN_LEVEL=-1;te.Z_MAX_LEVEL=9;te.Z_DEFAULT_LEVEL=te.Z_DEFAULT_COMPRESSION;var EE=Object.keys(te);for(Cu=0;Cu<EE.length;Cu++)Uu=EE[Cu],Uu.match(/^Z/)&&Object.defineProperty($,Uu,{enumerable:!0,value:te[Uu],writable:!1});var Uu,Cu,ju={Z_OK:te.Z_OK,Z_STREAM_END:te.Z_STREAM_END,Z_NEED_DICT:te.Z_NEED_DICT,Z_ERRNO:te.Z_ERRNO,Z_STREAM_ERROR:te.Z_STREAM_ERROR,Z_DATA_ERROR:te.Z_DATA_ERROR,Z_MEM_ERROR:te.Z_MEM_ERROR,Z_BUF_ERROR:te.Z_BUF_ERROR,Z_VERSION_ERROR:te.Z_VERSION_ERROR},SE=Object.keys(ju);for(Fu=0;Fu<SE.length;Fu++)C0=SE[Fu],ju[ju[C0]]=C0;var C0,Fu;Object.defineProperty($,"codes",{enumerable:!0,value:Object.freeze(ju),writable:!1});$.Deflate=pn;$.Inflate=vn;$.Gzip=yn;$.Gunzip=gn;$.DeflateRaw=bn;$.InflateRaw=_n;$.Unzip=mn;$.createDeflate=function(e){return new pn(e)};$.createInflate=function(e){return new vn(e)};$.createDeflateRaw=function(e){return new bn(e)};$.createInflateRaw=function(e){return new _n(e)};$.createGzip=function(e){return new yn(e)};$.createGunzip=function(e){return new gn(e)};$.createUnzip=function(e){return new mn(e)};$.deflate=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new pn(t),e,r)};$.deflateSync=function(e,t){return xn(new pn(t),e)};$.gzip=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new yn(t),e,r)};$.gzipSync=function(e,t){return xn(new yn(t),e)};$.deflateRaw=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new bn(t),e,r)};$.deflateRawSync=function(e,t){return xn(new bn(t),e)};$.unzip=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new mn(t),e,r)};$.unzipSync=function(e,t){return xn(new mn(t),e)};$.inflate=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new vn(t),e,r)};$.inflateSync=function(e,t){return xn(new vn(t),e)};$.gunzip=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new gn(t),e,r)};$.gunzipSync=function(e,t){return xn(new gn(t),e)};$.inflateRaw=function(e,t,r){return typeof t=="function"&&(r=t,t={}),wn(new _n(t),e,r)};$.inflateRawSync=function(e,t){return xn(new _n(t),e)};function wn(e,t,r){var i=[],n=0;e.on("error",o),e.on("end",s),e.end(t),a();function a(){for(var y;(y=e.read())!==null;)i.push(y),n+=y.length;e.once("readable",a)}function o(y){e.removeListener("end",s),e.removeListener("readable",a),r(y)}function s(){var y,b=null;n>=U0?b=new RangeError(BE):y=Sr.concat(i,n),i=[],e.close(),r(b,y)}}function xn(e,t){if(typeof t=="string"&&(t=Sr.from(t)),!Sr.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function pn(e){if(!(this instanceof pn))return new pn(e);Qe.call(this,e,te.DEFLATE)}function vn(e){if(!(this instanceof vn))return new vn(e);Qe.call(this,e,te.INFLATE)}function yn(e){if(!(this instanceof yn))return new yn(e);Qe.call(this,e,te.GZIP)}function gn(e){if(!(this instanceof gn))return new gn(e);Qe.call(this,e,te.GUNZIP)}function bn(e){if(!(this instanceof bn))return new bn(e);Qe.call(this,e,te.DEFLATERAW)}function _n(e){if(!(this instanceof _n))return new _n(e);Qe.call(this,e,te.INFLATERAW)}function mn(e){if(!(this instanceof mn))return new mn(e);Qe.call(this,e,te.UNZIP)}function ME(e){return e===te.Z_NO_FLUSH||e===te.Z_PARTIAL_FLUSH||e===te.Z_SYNC_FLUSH||e===te.Z_FULL_FLUSH||e===te.Z_FINISH||e===te.Z_BLOCK}function Qe(e,t){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||$.Z_DEFAULT_CHUNK,AE.call(this,e),e.flush&&!ME(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!ME(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||te.Z_NO_FLUSH,this._finishFlushFlag=typeof e.finishFlush<"u"?e.finishFlush:te.Z_FINISH,e.chunkSize&&(e.chunkSize<$.Z_MIN_CHUNK||e.chunkSize>$.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<$.Z_MIN_WINDOWBITS||e.windowBits>$.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<$.Z_MIN_LEVEL||e.level>$.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<$.Z_MIN_MEMLEVEL||e.memLevel>$.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=$.Z_FILTERED&&e.strategy!=$.Z_HUFFMAN_ONLY&&e.strategy!=$.Z_RLE&&e.strategy!=$.Z_FIXED&&e.strategy!=$.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!Sr.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new te.Zlib(t);var i=this;this._hadError=!1,this._handle.onerror=function(o,s){zu(i),i._hadError=!0;var y=new Error(o);y.errno=s,y.code=$.codes[s],i.emit("error",y)};var n=$.Z_DEFAULT_COMPRESSION;typeof e.level=="number"&&(n=e.level);var a=$.Z_DEFAULT_STRATEGY;typeof e.strategy=="number"&&(a=e.strategy),this._handle.init(e.windowBits||$.Z_DEFAULT_WINDOWBITS,n,e.memLevel||$.Z_DEFAULT_MEMLEVEL,a,e.dictionary),this._buffer=Sr.allocUnsafe(this._chunkSize),this._offset=0,this._level=n,this._strategy=a,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}ci.inherits(Qe,AE);Qe.prototype.params=function(e,t,r){if(e<$.Z_MIN_LEVEL||e>$.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=$.Z_FILTERED&&t!=$.Z_HUFFMAN_ONLY&&t!=$.Z_RLE&&t!=$.Z_FIXED&&t!=$.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var i=this;this.flush(te.Z_SYNC_FLUSH,function(){sf(i._handle,"zlib binding closed"),i._handle.params(e,t),i._hadError||(i._level=e,i._strategy=t,r&&r())})}else M.default.nextTick(r)};Qe.prototype.reset=function(){return sf(this._handle,"zlib binding closed"),this._handle.reset()};Qe.prototype._flush=function(e){this._transform(Sr.alloc(0),"",e)};Qe.prototype.flush=function(e,t){var r=this,i=this._writableState;(typeof e=="function"||e===void 0&&!t)&&(t=e,e=te.Z_FULL_FLUSH),i.ended?t&&M.default.nextTick(t):i.ending?t&&this.once("end",t):i.needDrain?t&&this.once("drain",function(){return r.flush(e,t)}):(this._flushFlag=e,this.write(Sr.alloc(0),"",t))};Qe.prototype.close=function(e){zu(this,e),M.default.nextTick(xO,this)};function zu(e,t){t&&M.default.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function xO(e){e.emit("close")}Qe.prototype._transform=function(e,t,r){var i,n=this._writableState,a=n.ending||n.ended,o=a&&(!e||n.length===e.length);if(e!==null&&!Sr.isBuffer(e))return r(new Error("invalid input"));if(!this._handle)return r(new Error("zlib binding closed"));o?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=n.length&&(this._flushFlag=this._opts.flush||te.Z_NO_FLUSH)),this._processChunk(e,i,r)};Qe.prototype._processChunk=function(e,t,r){var i=e&&e.length,n=this._chunkSize-this._offset,a=0,o=this,s=typeof r=="function";if(!s){var y=[],b=0,x;this.on("error",function(D){x=D}),sf(this._handle,"zlib binding closed");do var B=this._handle.writeSync(t,e,a,i,this._buffer,this._offset,n);while(!this._hadError&&O(B[0],B[1]));if(this._hadError)throw x;if(b>=U0)throw zu(this),new RangeError(BE);var R=Sr.concat(y,b);return zu(this),R}sf(this._handle,"zlib binding closed");var T=this._handle.write(t,e,a,i,this._buffer,this._offset,n);T.buffer=e,T.callback=O;function O(D,U){if(this&&(this.buffer=null,this.callback=null),!o._hadError){var N=n-U;if(sf(N>=0,"have should not go down"),N>0){var j=o._buffer.slice(o._offset,o._offset+N);o._offset+=N,s?o.push(j):(y.push(j),b+=j.length)}if((U===0||o._offset>=o._chunkSize)&&(n=o._chunkSize,o._offset=0,o._buffer=Sr.allocUnsafe(o._chunkSize)),U===0){if(a+=i-D,i=D,!s)return!0;var H=o._handle.write(t,e,a,i,o._buffer,o._offset,o._chunkSize);H.callback=O,H.buffer=e;return}if(!s)return!1;r()}}};ci.inherits(pn,Qe);ci.inherits(vn,Qe);ci.inherits(yn,Qe);ci.inherits(gn,Qe);ci.inherits(bn,Qe);ci.inherits(_n,Qe);ci.inherits(mn,Qe)});var OE=k((CU,IE)=>{"use strict";m();var j0=ew(),LU=$s(),RE=F0(),EO=8*1024*1024;function kE(e,t){var r=t&&t.maxDecompressedBytes||EO;return RE.gunzipSync(I.Buffer.from(e,"base64"),{maxOutputLength:r})}async function TE(e,t){if(!t.expectedIssuerDid)throw new Error("expectedIssuerDid is required to verify a status list (issuer pinning); refusing to read revocation state from an unpinned/unverified JWT");var r=t.didResolver;if(!r){var i=t.issuerJwks||(t.issuerPublicJwk?{keys:[t.issuerPublicJwk]}:null);if(!i)throw new Error("Provide params.didResolver, params.issuerJwks, or params.issuerPublicJwk to verify the status list signature");r=async function(){return{jwks:i}}}var n=await j0.verifyVcJwt(e,{didResolver:r,expectedIssuerDid:t.expectedIssuerDid,allowedAlgs:t.allowedAlgs,allowLegacyDER:t.allowLegacyDER,clockToleranceSec:t.clockToleranceSec});if(!n.valid)throw new Error("Status list signature verification failed: "+(n.error||"invalid signature"));return n.payload}async function SO(e){if(!e.issuerDid||!e.privateJwk)throw new Error("issuerDid and privateJwk are required");var t=e.listId||e.issuerDid+"/status/"+Date.now(),r=e.listSize||1e5,i=Math.ceil(r/8),n=I.Buffer.alloc(i,0),a=F0(),o=a.gzipSync(n),s=o.toString("base64"),y={"@context":["https://www.w3.org/2018/credentials/v1","https://w3id.org/vc/status-list/2021/v1"],type:["VerifiableCredential","StatusList2021Credential"],issuer:e.issuerDid,issuanceDate:new Date().toISOString(),credentialSubject:{id:t,type:"StatusList2021",statusPurpose:"revocation",encodedList:s}},b=await j0.issueVcJwt({issuerDid:e.issuerDid,subjectId:t,types:["VerifiableCredential","StatusList2021Credential"],credentialSubject:y.credentialSubject,privateJwk:e.privateJwk,alg:e.privateJwk.alg||"ES256"});return{listVcJwt:b.jwt,listId:t}}async function MO(e){if(!e.listVcJwt||e.index===void 0||!e.status||!e.privateJwk)throw new Error("listVcJwt, index, status, and privateJwk are required");if(e.status==="suspended")throw new Error("status 'suspended' is not supported by this list: its statusPurpose is 'revocation', and suspension would be written to the same bit and read back as 'revoked'. Maintain a separate list for suspension until statusPurpose is configurable.");var t=await TE(e.listVcJwt,e),r=t.vc.credentialSubject.encodedList,i=kE(r,e),n=Math.floor(e.index/8),a=e.index%8;if(n>=i.length)throw new Error("Index out of range");var o=e.status==="revoked"?1:0;o===1?i[n]|=1<<a:i[n]&=~(1<<a);var s=RE.gzipSync(i),y=s.toString("base64"),b={id:t.vc.credentialSubject.id,type:"StatusList2021",statusPurpose:"revocation",encodedList:y},x=await j0.issueVcJwt({issuerDid:t.iss,subjectId:t.vc.credentialSubject.id,types:["VerifiableCredential","StatusList2021Credential"],credentialSubject:b,privateJwk:e.privateJwk,alg:e.privateJwk.alg||"ES256"});return{listVcJwt:x.jwt}}async function AO(e){if(!e.listVcJwt||e.index===void 0)throw new Error("listVcJwt and index are required");var t=await TE(e.listVcJwt,e),r=t.vc.credentialSubject.encodedList,i=kE(r,e),n=Math.floor(e.index/8),a=e.index%8;if(n>=i.length)throw new Error("Index out of range");var o=i[n]>>a&1;return o===1?"revoked":"valid"}IE.exports={createStatusList:SO,updateStatusList:MO,getCredentialStatusEntry:AO}});var BO=k((FU,qE)=>{m();qE.exports=OE()});return BO();})();
66
+ `).concat(ro(e),`
67
+ `));var f=new Ot({actual:e,expected:t,message:r,operator:i,stackStartFn:n});throw f.generatedMessage=o,f}}H.match=function e(t,r,n){b_(t,r,n,e,"match")};H.doesNotMatch=function e(t,r,n){b_(t,r,n,e,"doesNotMatch")};function w_(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];h_.apply(void 0,[w_,t.length].concat(t))}H.strict=_R(w_,H,{equal:H.strictEqual,deepEqual:H.deepStrictEqual,notEqual:H.notStrictEqual,notDeepEqual:H.notDeepStrictEqual});H.strict.strict=H.strict});var x_=_((fB,m_)=>{"use strict";c();function gR(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}m_.exports=gR});var ni=_(pe=>{"use strict";c();var bR=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function wR(e,t){return Object.prototype.hasOwnProperty.call(e,t)}pe.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var n in r)wR(r,n)&&(e[n]=r[n])}}return e};pe.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var ER={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+n),i);return}for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){var t,r,n,i,a,o;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(o=new Uint8Array(n),i=0,t=0,r=e.length;t<r;t++)a=e[t],o.set(a,i),i+=a.length;return o}},mR={arraySet:function(e,t,r,n,i){for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};pe.setTyped=function(e){e?(pe.Buf8=Uint8Array,pe.Buf16=Uint16Array,pe.Buf32=Int32Array,pe.assign(pe,ER)):(pe.Buf8=Array,pe.Buf16=Array,pe.Buf32=Array,pe.assign(pe,mR))};pe.setTyped(bR)});var G_=_(Xr=>{"use strict";c();var xR=ni(),SR=4,S_=0,A_=1,AR=2;function Kr(e){for(var t=e.length;--t>=0;)e[t]=0}var RR=0,k_=1,TR=2,OR=3,IR=258,Vu=29,si=256,ai=si+1+Vu,Jr=30,Yu=19,L_=2*ai+1,rr=15,zu=16,BR=7,Ju=256,q_=16,D_=17,F_=18,Gu=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],fo=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],kR=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],N_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],LR=512,dt=new Array((ai+2)*2);Kr(dt);var ii=new Array(Jr*2);Kr(ii);var oi=new Array(LR);Kr(oi);var fi=new Array(IR-OR+1);Kr(fi);var Ku=new Array(Vu);Kr(Ku);var uo=new Array(Jr);Kr(uo);function Zu(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}var P_,M_,j_;function Wu(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function U_(e){return e<256?oi[e]:oi[256+(e>>>7)]}function ui(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function be(e,t,r){e.bi_valid>zu-r?(e.bi_buf|=t<<e.bi_valid&65535,ui(e,e.bi_buf),e.bi_buf=t>>zu-e.bi_valid,e.bi_valid+=r-zu):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Ke(e,t,r){be(e,r[t*2],r[t*2+1])}function C_(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function qR(e){e.bi_valid===16?(ui(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function DR(e,t){var r=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,l=t.stat_desc.max_length,u,s,d,p,y,b,w=0;for(p=0;p<=rr;p++)e.bl_count[p]=0;for(r[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;u<L_;u++)s=e.heap[u],p=r[r[s*2+1]*2+1]+1,p>l&&(p=l,w++),r[s*2+1]=p,!(s>n)&&(e.bl_count[p]++,y=0,s>=f&&(y=o[s-f]),b=r[s*2],e.opt_len+=b*(p+y),a&&(e.static_len+=b*(i[s*2+1]+y)));if(w!==0){do{for(p=l-1;e.bl_count[p]===0;)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[l]--,w-=2}while(w>0);for(p=l;p!==0;p--)for(s=e.bl_count[p];s!==0;)d=e.heap[--u],!(d>n)&&(r[d*2+1]!==p&&(e.opt_len+=(p-r[d*2+1])*r[d*2],r[d*2+1]=p),s--)}}function z_(e,t,r){var n=new Array(rr+1),i=0,a,o;for(a=1;a<=rr;a++)n[a]=i=i+r[a-1]<<1;for(o=0;o<=t;o++){var f=e[o*2+1];f!==0&&(e[o*2]=C_(n[f]++,f))}}function FR(){var e,t,r,n,i,a=new Array(rr+1);for(r=0,n=0;n<Vu-1;n++)for(Ku[n]=r,e=0;e<1<<Gu[n];e++)fi[r++]=n;for(fi[r-1]=n,i=0,n=0;n<16;n++)for(uo[n]=i,e=0;e<1<<fo[n];e++)oi[i++]=n;for(i>>=7;n<Jr;n++)for(uo[n]=i<<7,e=0;e<1<<fo[n]-7;e++)oi[256+i++]=n;for(t=0;t<=rr;t++)a[t]=0;for(e=0;e<=143;)dt[e*2+1]=8,e++,a[8]++;for(;e<=255;)dt[e*2+1]=9,e++,a[9]++;for(;e<=279;)dt[e*2+1]=7,e++,a[7]++;for(;e<=287;)dt[e*2+1]=8,e++,a[8]++;for(z_(dt,ai+1,a),e=0;e<Jr;e++)ii[e*2+1]=5,ii[e*2]=C_(e,5);P_=new Zu(dt,Gu,si+1,ai,rr),M_=new Zu(ii,fo,0,Jr,rr),j_=new Zu(new Array(0),kR,0,Yu,BR)}function Z_(e){var t;for(t=0;t<ai;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Jr;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Yu;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Ju*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function W_(e){e.bi_valid>8?ui(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function NR(e,t,r,n){W_(e),n&&(ui(e,r),ui(e,~r)),xR.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function R_(e,t,r,n){var i=t*2,a=r*2;return e[i]<e[a]||e[i]===e[a]&&n[t]<=n[r]}function Hu(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&R_(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!R_(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function T_(e,t,r){var n,i,a=0,o,f;if(e.last_lit!==0)do n=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],i=e.pending_buf[e.l_buf+a],a++,n===0?Ke(e,i,t):(o=fi[i],Ke(e,o+si+1,t),f=Gu[o],f!==0&&(i-=Ku[o],be(e,i,f)),n--,o=U_(n),Ke(e,o,r),f=fo[o],f!==0&&(n-=uo[o],be(e,n,f)));while(a<e.last_lit);Ke(e,Ju,t)}function $u(e,t){var r=t.dyn_tree,n=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,f,l=-1,u;for(e.heap_len=0,e.heap_max=L_,o=0;o<a;o++)r[o*2]!==0?(e.heap[++e.heap_len]=l=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)u=e.heap[++e.heap_len]=l<2?++l:0,r[u*2]=1,e.depth[u]=0,e.opt_len--,i&&(e.static_len-=n[u*2+1]);for(t.max_code=l,o=e.heap_len>>1;o>=1;o--)Hu(e,r,o);u=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Hu(e,r,1),f=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=f,r[u*2]=r[o*2]+r[f*2],e.depth[u]=(e.depth[o]>=e.depth[f]?e.depth[o]:e.depth[f])+1,r[o*2+1]=r[f*2+1]=u,e.heap[1]=u++,Hu(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],DR(e,t),z_(r,l,e.bl_count)}function O_(e,t,r){var n,i=-1,a,o=t[1],f=0,l=7,u=4;for(o===0&&(l=138,u=3),t[(r+1)*2+1]=65535,n=0;n<=r;n++)a=o,o=t[(n+1)*2+1],!(++f<l&&a===o)&&(f<u?e.bl_tree[a*2]+=f:a!==0?(a!==i&&e.bl_tree[a*2]++,e.bl_tree[q_*2]++):f<=10?e.bl_tree[D_*2]++:e.bl_tree[F_*2]++,f=0,i=a,o===0?(l=138,u=3):a===o?(l=6,u=3):(l=7,u=4))}function I_(e,t,r){var n,i=-1,a,o=t[1],f=0,l=7,u=4;for(o===0&&(l=138,u=3),n=0;n<=r;n++)if(a=o,o=t[(n+1)*2+1],!(++f<l&&a===o)){if(f<u)do Ke(e,a,e.bl_tree);while(--f!==0);else a!==0?(a!==i&&(Ke(e,a,e.bl_tree),f--),Ke(e,q_,e.bl_tree),be(e,f-3,2)):f<=10?(Ke(e,D_,e.bl_tree),be(e,f-3,3)):(Ke(e,F_,e.bl_tree),be(e,f-11,7));f=0,i=a,o===0?(l=138,u=3):a===o?(l=6,u=3):(l=7,u=4)}}function PR(e){var t;for(O_(e,e.dyn_ltree,e.l_desc.max_code),O_(e,e.dyn_dtree,e.d_desc.max_code),$u(e,e.bl_desc),t=Yu-1;t>=3&&e.bl_tree[N_[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function MR(e,t,r,n){var i;for(be(e,t-257,5),be(e,r-1,5),be(e,n-4,4),i=0;i<n;i++)be(e,e.bl_tree[N_[i]*2+1],3);I_(e,e.dyn_ltree,t-1),I_(e,e.dyn_dtree,r-1)}function jR(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return S_;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return A_;for(r=32;r<si;r++)if(e.dyn_ltree[r*2]!==0)return A_;return S_}var B_=!1;function UR(e){B_||(FR(),B_=!0),e.l_desc=new Wu(e.dyn_ltree,P_),e.d_desc=new Wu(e.dyn_dtree,M_),e.bl_desc=new Wu(e.bl_tree,j_),e.bi_buf=0,e.bi_valid=0,Z_(e)}function H_(e,t,r,n){be(e,(RR<<1)+(n?1:0),3),NR(e,t,r,!0)}function CR(e){be(e,k_<<1,3),Ke(e,Ju,dt),qR(e)}function zR(e,t,r,n){var i,a,o=0;e.level>0?(e.strm.data_type===AR&&(e.strm.data_type=jR(e)),$u(e,e.l_desc),$u(e,e.d_desc),o=PR(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=r+5,r+4<=i&&t!==-1?H_(e,t,r,n):e.strategy===SR||a===i?(be(e,(k_<<1)+(n?1:0),3),T_(e,dt,ii)):(be(e,(TR<<1)+(n?1:0),3),MR(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),T_(e,e.dyn_ltree,e.dyn_dtree)),Z_(e),n&&W_(e)}function ZR(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(fi[r]+si+1)*2]++,e.dyn_dtree[U_(t)*2]++),e.last_lit===e.lit_bufsize-1}Xr._tr_init=UR;Xr._tr_stored_block=H_;Xr._tr_flush_block=zR;Xr._tr_tally=ZR;Xr._tr_align=CR});var Xu=_((dB,$_)=>{"use strict";c();function WR(e,t,r,n){for(var i=e&65535|0,a=e>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do i=i+t[n++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0}$_.exports=WR});var Qu=_((yB,V_)=>{"use strict";c();function HR(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var GR=HR();function $R(e,t,r,n){var i=GR,a=n+r;e^=-1;for(var o=n;o<a;o++)e=e>>>8^i[(e^t[o])&255];return e^-1}V_.exports=$R});var J_=_((vB,Y_)=>{"use strict";c();Y_.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var av=_(et=>{"use strict";c();var ye=ni(),ke=G_(),ev=Xu(),It=Qu(),VR=J_(),or=0,YR=1,JR=3,Dt=4,K_=5,Qe=0,X_=1,Le=-2,KR=-3,es=-5,XR=-1,QR=1,so=2,eT=3,tT=4,rT=0,nT=2,po=8,iT=9,aT=15,oT=8,fT=29,uT=256,rs=uT+1+fT,sT=30,lT=19,cT=2*rs+1,hT=15,j=3,Lt=258,Ce=Lt+j+1,dT=32,yo=42,ns=69,lo=73,co=91,ho=103,nr=113,ci=666,Q=1,hi=2,ir=3,tn=4,pT=3;function qt(e,t){return e.msg=VR[t],t}function Q_(e){return(e<<1)-(e>4?9:0)}function kt(e){for(var t=e.length;--t>=0;)e[t]=0}function Bt(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(ye.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function ae(e,t){ke._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Bt(e.strm)}function C(e,t){e.pending_buf[e.pending++]=t}function li(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function yT(e,t,r,n){var i=e.avail_in;return i>n&&(i=n),i===0?0:(e.avail_in-=i,ye.arraySet(t,e.input,e.next_in,i,r),e.state.wrap===1?e.adler=ev(e.adler,t,i,r):e.state.wrap===2&&(e.adler=It(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)}function tv(e,t){var r=e.max_chain_length,n=e.strstart,i,a,o=e.prev_length,f=e.nice_match,l=e.strstart>e.w_size-Ce?e.strstart-(e.w_size-Ce):0,u=e.window,s=e.w_mask,d=e.prev,p=e.strstart+Lt,y=u[n+o-1],b=u[n+o];e.prev_length>=e.good_match&&(r>>=2),f>e.lookahead&&(f=e.lookahead);do if(i=t,!(u[i+o]!==b||u[i+o-1]!==y||u[i]!==u[n]||u[++i]!==u[n+1])){n+=2,i++;do;while(u[++n]===u[++i]&&u[++n]===u[++i]&&u[++n]===u[++i]&&u[++n]===u[++i]&&u[++n]===u[++i]&&u[++n]===u[++i]&&u[++n]===u[++i]&&u[++n]===u[++i]&&n<p);if(a=Lt-(p-n),n=p-Lt,a>o){if(e.match_start=t,o=a,a>=f)break;y=u[n+o-1],b=u[n+o]}}while((t=d[t&s])>l&&--r!==0);return o<=e.lookahead?o:e.lookahead}function ar(e){var t=e.w_size,r,n,i,a,o;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Ce)){ye.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,n=e.hash_size,r=n;do i=e.head[--r],e.head[r]=i>=t?i-t:0;while(--n);n=t,r=n;do i=e.prev[--r],e.prev[r]=i>=t?i-t:0;while(--n);a+=t}if(e.strm.avail_in===0)break;if(n=yT(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=n,e.lookahead+e.insert>=j)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+j-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<j)););}while(e.lookahead<Ce&&e.strm.avail_in!==0)}function _T(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ar(e),e.lookahead===0&&t===or)return Q;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((e.strstart===0||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,ae(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Ce&&(ae(e,!1),e.strm.avail_out===0))return Q}return e.insert=0,t===Dt?(ae(e,!0),e.strm.avail_out===0?ir:tn):(e.strstart>e.block_start&&(ae(e,!1),e.strm.avail_out===0),Q)}function ts(e,t){for(var r,n;;){if(e.lookahead<Ce){if(ar(e),e.lookahead<Ce&&t===or)return Q;if(e.lookahead===0)break}if(r=0,e.lookahead>=j&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-Ce&&(e.match_length=tv(e,r)),e.match_length>=j)if(n=ke._tr_tally(e,e.strstart-e.match_start,e.match_length-j),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=j){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=ke._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(ae(e,!1),e.strm.avail_out===0))return Q}return e.insert=e.strstart<j-1?e.strstart:j-1,t===Dt?(ae(e,!0),e.strm.avail_out===0?ir:tn):e.last_lit&&(ae(e,!1),e.strm.avail_out===0)?Q:hi}function Qr(e,t){for(var r,n,i;;){if(e.lookahead<Ce){if(ar(e),e.lookahead<Ce&&t===or)return Q;if(e.lookahead===0)break}if(r=0,e.lookahead>=j&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=j-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Ce&&(e.match_length=tv(e,r),e.match_length<=5&&(e.strategy===QR||e.match_length===j&&e.strstart-e.match_start>4096)&&(e.match_length=j-1)),e.prev_length>=j&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-j,n=ke._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-j),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=j-1,e.strstart++,n&&(ae(e,!1),e.strm.avail_out===0))return Q}else if(e.match_available){if(n=ke._tr_tally(e,0,e.window[e.strstart-1]),n&&ae(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Q}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=ke._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<j-1?e.strstart:j-1,t===Dt?(ae(e,!0),e.strm.avail_out===0?ir:tn):e.last_lit&&(ae(e,!1),e.strm.avail_out===0)?Q:hi}function vT(e,t){for(var r,n,i,a,o=e.window;;){if(e.lookahead<=Lt){if(ar(e),e.lookahead<=Lt&&t===or)return Q;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=j&&e.strstart>0&&(i=e.strstart-1,n=o[i],n===o[++i]&&n===o[++i]&&n===o[++i])){a=e.strstart+Lt;do;while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a);e.match_length=Lt-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=j?(r=ke._tr_tally(e,1,e.match_length-j),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=ke._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(ae(e,!1),e.strm.avail_out===0))return Q}return e.insert=0,t===Dt?(ae(e,!0),e.strm.avail_out===0?ir:tn):e.last_lit&&(ae(e,!1),e.strm.avail_out===0)?Q:hi}function gT(e,t){for(var r;;){if(e.lookahead===0&&(ar(e),e.lookahead===0)){if(t===or)return Q;break}if(e.match_length=0,r=ke._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(ae(e,!1),e.strm.avail_out===0))return Q}return e.insert=0,t===Dt?(ae(e,!0),e.strm.avail_out===0?ir:tn):e.last_lit&&(ae(e,!1),e.strm.avail_out===0)?Q:hi}function Xe(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}var en;en=[new Xe(0,0,0,0,_T),new Xe(4,4,8,4,ts),new Xe(4,5,16,8,ts),new Xe(4,6,32,32,ts),new Xe(4,4,16,16,Qr),new Xe(8,16,32,32,Qr),new Xe(8,16,128,128,Qr),new Xe(8,32,128,256,Qr),new Xe(32,128,258,1024,Qr),new Xe(32,258,258,4096,Qr)];function bT(e){e.window_size=2*e.w_size,kt(e.head),e.max_lazy_match=en[e.level].max_lazy,e.good_match=en[e.level].good_length,e.nice_match=en[e.level].nice_length,e.max_chain_length=en[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=j-1,e.match_available=0,e.ins_h=0}function wT(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=po,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new ye.Buf16(cT*2),this.dyn_dtree=new ye.Buf16((2*sT+1)*2),this.bl_tree=new ye.Buf16((2*lT+1)*2),kt(this.dyn_ltree),kt(this.dyn_dtree),kt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ye.Buf16(hT+1),this.heap=new ye.Buf16(2*rs+1),kt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ye.Buf16(2*rs+1),kt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function rv(e){var t;return!e||!e.state?qt(e,Le):(e.total_in=e.total_out=0,e.data_type=nT,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?yo:nr,e.adler=t.wrap===2?0:1,t.last_flush=or,ke._tr_init(t),Qe)}function nv(e){var t=rv(e);return t===Qe&&bT(e.state),t}function ET(e,t){return!e||!e.state||e.state.wrap!==2?Le:(e.state.gzhead=t,Qe)}function iv(e,t,r,n,i,a){if(!e)return Le;var o=1;if(t===XR&&(t=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),i<1||i>iT||r!==po||n<8||n>15||t<0||t>9||a<0||a>tT)return qt(e,Le);n===8&&(n=9);var f=new wT;return e.state=f,f.strm=e,f.wrap=o,f.gzhead=null,f.w_bits=n,f.w_size=1<<f.w_bits,f.w_mask=f.w_size-1,f.hash_bits=i+7,f.hash_size=1<<f.hash_bits,f.hash_mask=f.hash_size-1,f.hash_shift=~~((f.hash_bits+j-1)/j),f.window=new ye.Buf8(f.w_size*2),f.head=new ye.Buf16(f.hash_size),f.prev=new ye.Buf16(f.w_size),f.lit_bufsize=1<<i+6,f.pending_buf_size=f.lit_bufsize*4,f.pending_buf=new ye.Buf8(f.pending_buf_size),f.d_buf=1*f.lit_bufsize,f.l_buf=3*f.lit_bufsize,f.level=t,f.strategy=a,f.method=r,nv(e)}function mT(e,t){return iv(e,t,po,aT,oT,rT)}function xT(e,t){var r,n,i,a;if(!e||!e.state||t>K_||t<0)return e?qt(e,Le):Le;if(n=e.state,!e.output||!e.input&&e.avail_in!==0||n.status===ci&&t!==Dt)return qt(e,e.avail_out===0?es:Le);if(n.strm=e,r=n.last_flush,n.last_flush=t,n.status===yo)if(n.wrap===2)e.adler=0,C(n,31),C(n,139),C(n,8),n.gzhead?(C(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),C(n,n.gzhead.time&255),C(n,n.gzhead.time>>8&255),C(n,n.gzhead.time>>16&255),C(n,n.gzhead.time>>24&255),C(n,n.level===9?2:n.strategy>=so||n.level<2?4:0),C(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(C(n,n.gzhead.extra.length&255),C(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=It(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=ns):(C(n,0),C(n,0),C(n,0),C(n,0),C(n,0),C(n,n.level===9?2:n.strategy>=so||n.level<2?4:0),C(n,pT),n.status=nr);else{var o=po+(n.w_bits-8<<4)<<8,f=-1;n.strategy>=so||n.level<2?f=0:n.level<6?f=1:n.level===6?f=2:f=3,o|=f<<6,n.strstart!==0&&(o|=dT),o+=31-o%31,n.status=nr,li(n,o),n.strstart!==0&&(li(n,e.adler>>>16),li(n,e.adler&65535)),e.adler=1}if(n.status===ns)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(n.gzhead.extra.length&65535)&&!(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=It(e.adler,n.pending_buf,n.pending-i,i)),Bt(e),i=n.pending,n.pending===n.pending_buf_size));)C(n,n.gzhead.extra[n.gzindex]&255),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=It(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=lo)}else n.status=lo;if(n.status===lo)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=It(e.adler,n.pending_buf,n.pending-i,i)),Bt(e),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}n.gzindex<n.gzhead.name.length?a=n.gzhead.name.charCodeAt(n.gzindex++)&255:a=0,C(n,a)}while(a!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=It(e.adler,n.pending_buf,n.pending-i,i)),a===0&&(n.gzindex=0,n.status=co)}else n.status=co;if(n.status===co)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=It(e.adler,n.pending_buf,n.pending-i,i)),Bt(e),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}n.gzindex<n.gzhead.comment.length?a=n.gzhead.comment.charCodeAt(n.gzindex++)&255:a=0,C(n,a)}while(a!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=It(e.adler,n.pending_buf,n.pending-i,i)),a===0&&(n.status=ho)}else n.status=ho;if(n.status===ho&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Bt(e),n.pending+2<=n.pending_buf_size&&(C(n,e.adler&255),C(n,e.adler>>8&255),e.adler=0,n.status=nr)):n.status=nr),n.pending!==0){if(Bt(e),e.avail_out===0)return n.last_flush=-1,Qe}else if(e.avail_in===0&&Q_(t)<=Q_(r)&&t!==Dt)return qt(e,es);if(n.status===ci&&e.avail_in!==0)return qt(e,es);if(e.avail_in!==0||n.lookahead!==0||t!==or&&n.status!==ci){var l=n.strategy===so?gT(n,t):n.strategy===eT?vT(n,t):en[n.level].func(n,t);if((l===ir||l===tn)&&(n.status=ci),l===Q||l===ir)return e.avail_out===0&&(n.last_flush=-1),Qe;if(l===hi&&(t===YR?ke._tr_align(n):t!==K_&&(ke._tr_stored_block(n,0,0,!1),t===JR&&(kt(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Bt(e),e.avail_out===0))return n.last_flush=-1,Qe}return t!==Dt?Qe:n.wrap<=0?X_:(n.wrap===2?(C(n,e.adler&255),C(n,e.adler>>8&255),C(n,e.adler>>16&255),C(n,e.adler>>24&255),C(n,e.total_in&255),C(n,e.total_in>>8&255),C(n,e.total_in>>16&255),C(n,e.total_in>>24&255)):(li(n,e.adler>>>16),li(n,e.adler&65535)),Bt(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?Qe:X_)}function ST(e){var t;return!e||!e.state?Le:(t=e.state.status,t!==yo&&t!==ns&&t!==lo&&t!==co&&t!==ho&&t!==nr&&t!==ci?qt(e,Le):(e.state=null,t===nr?qt(e,KR):Qe))}function AT(e,t){var r=t.length,n,i,a,o,f,l,u,s;if(!e||!e.state||(n=e.state,o=n.wrap,o===2||o===1&&n.status!==yo||n.lookahead))return Le;for(o===1&&(e.adler=ev(e.adler,t,r,0)),n.wrap=0,r>=n.w_size&&(o===0&&(kt(n.head),n.strstart=0,n.block_start=0,n.insert=0),s=new ye.Buf8(n.w_size),ye.arraySet(s,t,r-n.w_size,n.w_size,0),t=s,r=n.w_size),f=e.avail_in,l=e.next_in,u=e.input,e.avail_in=r,e.next_in=0,e.input=t,ar(n);n.lookahead>=j;){i=n.strstart,a=n.lookahead-(j-1);do n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+j-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++;while(--a);n.strstart=i,n.lookahead=j-1,ar(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=j-1,n.match_available=0,e.next_in=l,e.input=u,e.avail_in=f,n.wrap=o,Qe}et.deflateInit=mT;et.deflateInit2=iv;et.deflateReset=nv;et.deflateResetKeep=rv;et.deflateSetHeader=ET;et.deflate=xT;et.deflateEnd=ST;et.deflateSetDictionary=AT;et.deflateInfo="pako deflate (from Nodeca project)"});var fv=_((EB,ov)=>{"use strict";c();var _o=30,RT=12;ov.exports=function(t,r){var n,i,a,o,f,l,u,s,d,p,y,b,w,x,m,S,O,I,A,B,q,T,D,V,k;n=t.state,i=t.next_in,V=t.input,a=i+(t.avail_in-5),o=t.next_out,k=t.output,f=o-(r-t.avail_out),l=o+(t.avail_out-257),u=n.dmax,s=n.wsize,d=n.whave,p=n.wnext,y=n.window,b=n.hold,w=n.bits,x=n.lencode,m=n.distcode,S=(1<<n.lenbits)-1,O=(1<<n.distbits)-1;e:do{w<15&&(b+=V[i++]<<w,w+=8,b+=V[i++]<<w,w+=8),I=x[b&S];t:for(;;){if(A=I>>>24,b>>>=A,w-=A,A=I>>>16&255,A===0)k[o++]=I&65535;else if(A&16){B=I&65535,A&=15,A&&(w<A&&(b+=V[i++]<<w,w+=8),B+=b&(1<<A)-1,b>>>=A,w-=A),w<15&&(b+=V[i++]<<w,w+=8,b+=V[i++]<<w,w+=8),I=m[b&O];r:for(;;){if(A=I>>>24,b>>>=A,w-=A,A=I>>>16&255,A&16){if(q=I&65535,A&=15,w<A&&(b+=V[i++]<<w,w+=8,w<A&&(b+=V[i++]<<w,w+=8)),q+=b&(1<<A)-1,q>u){t.msg="invalid distance too far back",n.mode=_o;break e}if(b>>>=A,w-=A,A=o-f,q>A){if(A=q-A,A>d&&n.sane){t.msg="invalid distance too far back",n.mode=_o;break e}if(T=0,D=y,p===0){if(T+=s-A,A<B){B-=A;do k[o++]=y[T++];while(--A);T=o-q,D=k}}else if(p<A){if(T+=s+p-A,A-=p,A<B){B-=A;do k[o++]=y[T++];while(--A);if(T=0,p<B){A=p,B-=A;do k[o++]=y[T++];while(--A);T=o-q,D=k}}}else if(T+=p-A,A<B){B-=A;do k[o++]=y[T++];while(--A);T=o-q,D=k}for(;B>2;)k[o++]=D[T++],k[o++]=D[T++],k[o++]=D[T++],B-=3;B&&(k[o++]=D[T++],B>1&&(k[o++]=D[T++]))}else{T=o-q;do k[o++]=k[T++],k[o++]=k[T++],k[o++]=k[T++],B-=3;while(B>2);B&&(k[o++]=k[T++],B>1&&(k[o++]=k[T++]))}}else if((A&64)===0){I=m[(I&65535)+(b&(1<<A)-1)];continue r}else{t.msg="invalid distance code",n.mode=_o;break e}break}}else if((A&64)===0){I=x[(I&65535)+(b&(1<<A)-1)];continue t}else if(A&32){n.mode=RT;break e}else{t.msg="invalid literal/length code",n.mode=_o;break e}break}}while(i<a&&o<l);B=w>>3,i-=B,w-=B<<3,b&=(1<<w)-1,t.next_in=i,t.next_out=o,t.avail_in=i<a?5+(a-i):5-(i-a),t.avail_out=o<l?257+(l-o):257-(o-l),n.hold=b,n.bits=w}});var pv=_((xB,dv)=>{"use strict";c();var uv=ni(),rn=15,sv=852,lv=592,cv=0,is=1,hv=2,TT=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],OT=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],IT=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],BT=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];dv.exports=function(t,r,n,i,a,o,f,l){var u=l.bits,s=0,d=0,p=0,y=0,b=0,w=0,x=0,m=0,S=0,O=0,I,A,B,q,T,D=null,V=0,k,_e=new uv.Buf16(rn+1),oe=new uv.Buf16(rn+1),xe=null,nt=0,_i,gr,br;for(s=0;s<=rn;s++)_e[s]=0;for(d=0;d<i;d++)_e[r[n+d]]++;for(b=u,y=rn;y>=1&&_e[y]===0;y--);if(b>y&&(b=y),y===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,l.bits=1,0;for(p=1;p<y&&_e[p]===0;p++);for(b<p&&(b=p),m=1,s=1;s<=rn;s++)if(m<<=1,m-=_e[s],m<0)return-1;if(m>0&&(t===cv||y!==1))return-1;for(oe[1]=0,s=1;s<rn;s++)oe[s+1]=oe[s]+_e[s];for(d=0;d<i;d++)r[n+d]!==0&&(f[oe[r[n+d]]++]=d);if(t===cv?(D=xe=f,k=19):t===is?(D=TT,V-=257,xe=OT,nt-=257,k=256):(D=IT,xe=BT,k=-1),O=0,d=0,s=p,T=o,w=b,x=0,B=-1,S=1<<b,q=S-1,t===is&&S>sv||t===hv&&S>lv)return 1;for(;;){_i=s-x,f[d]<k?(gr=0,br=f[d]):f[d]>k?(gr=xe[nt+f[d]],br=D[V+f[d]]):(gr=96,br=0),I=1<<s-x,A=1<<w,p=A;do A-=I,a[T+(O>>x)+A]=_i<<24|gr<<16|br|0;while(A!==0);for(I=1<<s-1;O&I;)I>>=1;if(I!==0?(O&=I-1,O+=I):O=0,d++,--_e[s]===0){if(s===y)break;s=r[n+f[d]]}if(s>b&&(O&q)!==B){for(x===0&&(x=b),T+=p,w=s-x,m=1<<w;w+x<y&&(m-=_e[w+x],!(m<=0));)w++,m<<=1;if(S+=1<<w,t===is&&S>sv||t===hv&&S>lv)return 1;B=O&q,a[B]=b<<24|w<<16|T-o|0}}return O!==0&&(a[T+O]=s-x<<24|64<<16|0),l.bits=b,0}});var Yv=_(ze=>{"use strict";c();var Ee=ni(),ls=Xu(),tt=Qu(),kT=fv(),di=pv(),LT=0,Uv=1,Cv=2,yv=4,qT=5,vo=6,fr=0,DT=1,FT=2,qe=-2,zv=-3,cs=-4,NT=-5,_v=8,Zv=1,vv=2,gv=3,bv=4,wv=5,Ev=6,mv=7,xv=8,Sv=9,Av=10,wo=11,pt=12,as=13,Rv=14,os=15,Tv=16,Ov=17,Iv=18,Bv=19,go=20,bo=21,kv=22,Lv=23,qv=24,Dv=25,Fv=26,fs=27,Nv=28,Pv=29,$=30,hs=31,PT=32,MT=852,jT=592,UT=15,CT=UT;function Mv(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function zT(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Ee.Buf16(320),this.work=new Ee.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Wv(e){var t;return!e||!e.state?qe:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Zv,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Ee.Buf32(MT),t.distcode=t.distdyn=new Ee.Buf32(jT),t.sane=1,t.back=-1,fr)}function Hv(e){var t;return!e||!e.state?qe:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Wv(e))}function Gv(e,t){var r,n;return!e||!e.state||(n=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?qe:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,Hv(e))}function $v(e,t){var r,n;return e?(n=new zT,e.state=n,n.window=null,r=Gv(e,t),r!==fr&&(e.state=null),r):qe}function ZT(e){return $v(e,CT)}var jv=!0,us,ss;function WT(e){if(jv){var t;for(us=new Ee.Buf32(512),ss=new Ee.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(di(Uv,e.lens,0,288,us,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;di(Cv,e.lens,0,32,ss,0,e.work,{bits:5}),jv=!1}e.lencode=us,e.lenbits=9,e.distcode=ss,e.distbits=5}function Vv(e,t,r,n){var i,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Ee.Buf8(a.wsize)),n>=a.wsize?(Ee.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>n&&(i=n),Ee.arraySet(a.window,t,r-n,i,a.wnext),n-=i,n?(Ee.arraySet(a.window,t,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}function HT(e,t){var r,n,i,a,o,f,l,u,s,d,p,y,b,w,x=0,m,S,O,I,A,B,q,T,D=new Ee.Buf8(4),V,k,_e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return qe;r=e.state,r.mode===pt&&(r.mode=as),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,n=e.input,f=e.avail_in,u=r.hold,s=r.bits,d=f,p=l,T=fr;e:for(;;)switch(r.mode){case Zv:if(r.wrap===0){r.mode=as;break}for(;s<16;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}if(r.wrap&2&&u===35615){r.check=0,D[0]=u&255,D[1]=u>>>8&255,r.check=tt(r.check,D,2,0),u=0,s=0,r.mode=vv;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=$;break}if((u&15)!==_v){e.msg="unknown compression method",r.mode=$;break}if(u>>>=4,s-=4,q=(u&15)+8,r.wbits===0)r.wbits=q;else if(q>r.wbits){e.msg="invalid window size",r.mode=$;break}r.dmax=1<<q,e.adler=r.check=1,r.mode=u&512?Av:pt,u=0,s=0;break;case vv:for(;s<16;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}if(r.flags=u,(r.flags&255)!==_v){e.msg="unknown compression method",r.mode=$;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=$;break}r.head&&(r.head.text=u>>8&1),r.flags&512&&(D[0]=u&255,D[1]=u>>>8&255,r.check=tt(r.check,D,2,0)),u=0,s=0,r.mode=gv;case gv:for(;s<32;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}r.head&&(r.head.time=u),r.flags&512&&(D[0]=u&255,D[1]=u>>>8&255,D[2]=u>>>16&255,D[3]=u>>>24&255,r.check=tt(r.check,D,4,0)),u=0,s=0,r.mode=bv;case bv:for(;s<16;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}r.head&&(r.head.xflags=u&255,r.head.os=u>>8),r.flags&512&&(D[0]=u&255,D[1]=u>>>8&255,r.check=tt(r.check,D,2,0)),u=0,s=0,r.mode=wv;case wv:if(r.flags&1024){for(;s<16;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}r.length=u,r.head&&(r.head.extra_len=u),r.flags&512&&(D[0]=u&255,D[1]=u>>>8&255,r.check=tt(r.check,D,2,0)),u=0,s=0}else r.head&&(r.head.extra=null);r.mode=Ev;case Ev:if(r.flags&1024&&(y=r.length,y>f&&(y=f),y&&(r.head&&(q=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),Ee.arraySet(r.head.extra,n,a,y,q)),r.flags&512&&(r.check=tt(r.check,n,y,a)),f-=y,a+=y,r.length-=y),r.length))break e;r.length=0,r.mode=mv;case mv:if(r.flags&2048){if(f===0)break e;y=0;do q=n[a+y++],r.head&&q&&r.length<65536&&(r.head.name+=String.fromCharCode(q));while(q&&y<f);if(r.flags&512&&(r.check=tt(r.check,n,y,a)),f-=y,a+=y,q)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=xv;case xv:if(r.flags&4096){if(f===0)break e;y=0;do q=n[a+y++],r.head&&q&&r.length<65536&&(r.head.comment+=String.fromCharCode(q));while(q&&y<f);if(r.flags&512&&(r.check=tt(r.check,n,y,a)),f-=y,a+=y,q)break e}else r.head&&(r.head.comment=null);r.mode=Sv;case Sv:if(r.flags&512){for(;s<16;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}if(u!==(r.check&65535)){e.msg="header crc mismatch",r.mode=$;break}u=0,s=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=pt;break;case Av:for(;s<32;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}e.adler=r.check=Mv(u),u=0,s=0,r.mode=wo;case wo:if(r.havedict===0)return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=f,r.hold=u,r.bits=s,FT;e.adler=r.check=1,r.mode=pt;case pt:if(t===qT||t===vo)break e;case as:if(r.last){u>>>=s&7,s-=s&7,r.mode=fs;break}for(;s<3;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}switch(r.last=u&1,u>>>=1,s-=1,u&3){case 0:r.mode=Rv;break;case 1:if(WT(r),r.mode=go,t===vo){u>>>=2,s-=2;break e}break;case 2:r.mode=Ov;break;case 3:e.msg="invalid block type",r.mode=$}u>>>=2,s-=2;break;case Rv:for(u>>>=s&7,s-=s&7;s<32;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=$;break}if(r.length=u&65535,u=0,s=0,r.mode=os,t===vo)break e;case os:r.mode=Tv;case Tv:if(y=r.length,y){if(y>f&&(y=f),y>l&&(y=l),y===0)break e;Ee.arraySet(i,n,a,y,o),f-=y,a+=y,l-=y,o+=y,r.length-=y;break}r.mode=pt;break;case Ov:for(;s<14;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}if(r.nlen=(u&31)+257,u>>>=5,s-=5,r.ndist=(u&31)+1,u>>>=5,s-=5,r.ncode=(u&15)+4,u>>>=4,s-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=$;break}r.have=0,r.mode=Iv;case Iv:for(;r.have<r.ncode;){for(;s<3;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}r.lens[_e[r.have++]]=u&7,u>>>=3,s-=3}for(;r.have<19;)r.lens[_e[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,V={bits:r.lenbits},T=di(LT,r.lens,0,19,r.lencode,0,r.work,V),r.lenbits=V.bits,T){e.msg="invalid code lengths set",r.mode=$;break}r.have=0,r.mode=Bv;case Bv:for(;r.have<r.nlen+r.ndist;){for(;x=r.lencode[u&(1<<r.lenbits)-1],m=x>>>24,S=x>>>16&255,O=x&65535,!(m<=s);){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}if(O<16)u>>>=m,s-=m,r.lens[r.have++]=O;else{if(O===16){for(k=m+2;s<k;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}if(u>>>=m,s-=m,r.have===0){e.msg="invalid bit length repeat",r.mode=$;break}q=r.lens[r.have-1],y=3+(u&3),u>>>=2,s-=2}else if(O===17){for(k=m+3;s<k;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}u>>>=m,s-=m,q=0,y=3+(u&7),u>>>=3,s-=3}else{for(k=m+7;s<k;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}u>>>=m,s-=m,q=0,y=11+(u&127),u>>>=7,s-=7}if(r.have+y>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=$;break}for(;y--;)r.lens[r.have++]=q}}if(r.mode===$)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=$;break}if(r.lenbits=9,V={bits:r.lenbits},T=di(Uv,r.lens,0,r.nlen,r.lencode,0,r.work,V),r.lenbits=V.bits,T){e.msg="invalid literal/lengths set",r.mode=$;break}if(r.distbits=6,r.distcode=r.distdyn,V={bits:r.distbits},T=di(Cv,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,V),r.distbits=V.bits,T){e.msg="invalid distances set",r.mode=$;break}if(r.mode=go,t===vo)break e;case go:r.mode=bo;case bo:if(f>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=f,r.hold=u,r.bits=s,kT(e,p),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,n=e.input,f=e.avail_in,u=r.hold,s=r.bits,r.mode===pt&&(r.back=-1);break}for(r.back=0;x=r.lencode[u&(1<<r.lenbits)-1],m=x>>>24,S=x>>>16&255,O=x&65535,!(m<=s);){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}if(S&&(S&240)===0){for(I=m,A=S,B=O;x=r.lencode[B+((u&(1<<I+A)-1)>>I)],m=x>>>24,S=x>>>16&255,O=x&65535,!(I+m<=s);){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}u>>>=I,s-=I,r.back+=I}if(u>>>=m,s-=m,r.back+=m,r.length=O,S===0){r.mode=Fv;break}if(S&32){r.back=-1,r.mode=pt;break}if(S&64){e.msg="invalid literal/length code",r.mode=$;break}r.extra=S&15,r.mode=kv;case kv:if(r.extra){for(k=r.extra;s<k;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,s-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Lv;case Lv:for(;x=r.distcode[u&(1<<r.distbits)-1],m=x>>>24,S=x>>>16&255,O=x&65535,!(m<=s);){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}if((S&240)===0){for(I=m,A=S,B=O;x=r.distcode[B+((u&(1<<I+A)-1)>>I)],m=x>>>24,S=x>>>16&255,O=x&65535,!(I+m<=s);){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}u>>>=I,s-=I,r.back+=I}if(u>>>=m,s-=m,r.back+=m,S&64){e.msg="invalid distance code",r.mode=$;break}r.offset=O,r.extra=S&15,r.mode=qv;case qv:if(r.extra){for(k=r.extra;s<k;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,s-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=$;break}r.mode=Dv;case Dv:if(l===0)break e;if(y=p-l,r.offset>y){if(y=r.offset-y,y>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=$;break}y>r.wnext?(y-=r.wnext,b=r.wsize-y):b=r.wnext-y,y>r.length&&(y=r.length),w=r.window}else w=i,b=o-r.offset,y=r.length;y>l&&(y=l),l-=y,r.length-=y;do i[o++]=w[b++];while(--y);r.length===0&&(r.mode=bo);break;case Fv:if(l===0)break e;i[o++]=r.length,l--,r.mode=bo;break;case fs:if(r.wrap){for(;s<32;){if(f===0)break e;f--,u|=n[a++]<<s,s+=8}if(p-=l,e.total_out+=p,r.total+=p,p&&(e.adler=r.check=r.flags?tt(r.check,i,p,o-p):ls(r.check,i,p,o-p)),p=l,(r.flags?u:Mv(u))!==r.check){e.msg="incorrect data check",r.mode=$;break}u=0,s=0}r.mode=Nv;case Nv:if(r.wrap&&r.flags){for(;s<32;){if(f===0)break e;f--,u+=n[a++]<<s,s+=8}if(u!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=$;break}u=0,s=0}r.mode=Pv;case Pv:T=DT;break e;case $:T=zv;break e;case hs:return cs;case PT:default:return qe}return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=f,r.hold=u,r.bits=s,(r.wsize||p!==e.avail_out&&r.mode<$&&(r.mode<fs||t!==yv))&&Vv(e,e.output,e.next_out,p-e.avail_out)?(r.mode=hs,cs):(d-=e.avail_in,p-=e.avail_out,e.total_in+=d,e.total_out+=p,r.total+=p,r.wrap&&p&&(e.adler=r.check=r.flags?tt(r.check,i,p,e.next_out-p):ls(r.check,i,p,e.next_out-p)),e.data_type=r.bits+(r.last?64:0)+(r.mode===pt?128:0)+(r.mode===go||r.mode===os?256:0),(d===0&&p===0||t===yv)&&T===fr&&(T=NT),T)}function GT(e){if(!e||!e.state)return qe;var t=e.state;return t.window&&(t.window=null),e.state=null,fr}function $T(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)===0)?qe:(r.head=t,t.done=!1,fr)}function VT(e,t){var r=t.length,n,i,a;return!e||!e.state||(n=e.state,n.wrap!==0&&n.mode!==wo)?qe:n.mode===wo&&(i=1,i=ls(i,t,r,0),i!==n.check)?zv:(a=Vv(e,t,r,r),a?(n.mode=hs,cs):(n.havedict=1,fr))}ze.inflateReset=Hv;ze.inflateReset2=Gv;ze.inflateResetKeep=Wv;ze.inflateInit=ZT;ze.inflateInit2=$v;ze.inflate=HT;ze.inflateEnd=GT;ze.inflateGetHeader=$T;ze.inflateSetDictionary=VT;ze.inflateInfo="pako inflate (from Nodeca project)"});var Kv=_((TB,Jv)=>{"use strict";c();Jv.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var Qv=_(E=>{"use strict";c();var me=Wn(),YT=x_(),pi=av(),ur=Yv(),Xv=Kv();for(ds in Xv)E[ds]=Xv[ds];var ds;E.NONE=0;E.DEFLATE=1;E.INFLATE=2;E.GZIP=3;E.GUNZIP=4;E.DEFLATERAW=5;E.INFLATERAW=6;E.UNZIP=7;var JT=31,KT=139;function he(e){if(typeof e!="number"||e<E.DEFLATE||e>E.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}he.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,me(this.init_done,"close before init"),me(this.mode<=E.UNZIP),this.mode===E.DEFLATE||this.mode===E.GZIP||this.mode===E.DEFLATERAW?pi.deflateEnd(this.strm):(this.mode===E.INFLATE||this.mode===E.GUNZIP||this.mode===E.INFLATERAW||this.mode===E.UNZIP)&&ur.inflateEnd(this.strm),this.mode=E.NONE,this.dictionary=null};he.prototype.write=function(e,t,r,n,i,a,o){return this._write(!0,e,t,r,n,i,a,o)};he.prototype.writeSync=function(e,t,r,n,i,a,o){return this._write(!1,e,t,r,n,i,a,o)};he.prototype._write=function(e,t,r,n,i,a,o,f){if(me.equal(arguments.length,8),me(this.init_done,"write before init"),me(this.mode!==E.NONE,"already finalized"),me.equal(!1,this.write_in_progress,"write already in progress"),me.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,me.equal(!1,t===void 0,"must provide flush value"),this.write_in_progress=!0,t!==E.Z_NO_FLUSH&&t!==E.Z_PARTIAL_FLUSH&&t!==E.Z_SYNC_FLUSH&&t!==E.Z_FULL_FLUSH&&t!==E.Z_FINISH&&t!==E.Z_BLOCK)throw new Error("Invalid flush value");if(r==null&&(r=v.Buffer.alloc(0),i=0,n=0),this.strm.avail_in=i,this.strm.input=r,this.strm.next_in=n,this.strm.avail_out=f,this.strm.output=a,this.strm.next_out=o,this.flush=t,!e)return this._process(),this._checkError()?this._afterSync():void 0;var l=this;return h.default.nextTick(function(){l._process(),l._after()}),this};he.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]};he.prototype._process=function(){var e=null;switch(this.mode){case E.DEFLATE:case E.GZIP:case E.DEFLATERAW:this.err=pi.deflate(this.strm,this.flush);break;case E.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(e===null)break;if(this.strm.input[e]===JT){if(this.gzip_id_bytes_read=1,e++,this.strm.avail_in===1)break}else{this.mode=E.INFLATE;break}case 1:if(e===null)break;this.strm.input[e]===KT?(this.gzip_id_bytes_read=2,this.mode=E.GUNZIP):this.mode=E.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case E.INFLATE:case E.GUNZIP:case E.INFLATERAW:for(this.err=ur.inflate(this.strm,this.flush),this.err===E.Z_NEED_DICT&&this.dictionary&&(this.err=ur.inflateSetDictionary(this.strm,this.dictionary),this.err===E.Z_OK?this.err=ur.inflate(this.strm,this.flush):this.err===E.Z_DATA_ERROR&&(this.err=E.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===E.GUNZIP&&this.err===E.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=ur.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}};he.prototype._checkError=function(){switch(this.err){case E.Z_OK:case E.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===E.Z_FINISH)return this._error("unexpected end of file"),!1;break;case E.Z_STREAM_END:break;case E.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0};he.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}};he.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()};he.prototype.init=function(e,t,r,n,i){me(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),me(e>=8&&e<=15,"invalid windowBits"),me(t>=-1&&t<=9,"invalid compression level"),me(r>=1&&r<=9,"invalid memlevel"),me(n===E.Z_FILTERED||n===E.Z_HUFFMAN_ONLY||n===E.Z_RLE||n===E.Z_FIXED||n===E.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(t,e,r,n,i),this._setDictionary()};he.prototype.params=function(){throw new Error("deflateParams Not supported")};he.prototype.reset=function(){this._reset(),this._setDictionary()};he.prototype._init=function(e,t,r,n,i){switch(this.level=e,this.windowBits=t,this.memLevel=r,this.strategy=n,this.flush=E.Z_NO_FLUSH,this.err=E.Z_OK,(this.mode===E.GZIP||this.mode===E.GUNZIP)&&(this.windowBits+=16),this.mode===E.UNZIP&&(this.windowBits+=32),(this.mode===E.DEFLATERAW||this.mode===E.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new YT,this.mode){case E.DEFLATE:case E.GZIP:case E.DEFLATERAW:this.err=pi.deflateInit2(this.strm,this.level,E.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case E.INFLATE:case E.GUNZIP:case E.INFLATERAW:case E.UNZIP:this.err=ur.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==E.Z_OK&&this._error("Init error"),this.dictionary=i,this.write_in_progress=!1,this.init_done=!0};he.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=E.Z_OK,this.mode){case E.DEFLATE:case E.DEFLATERAW:this.err=pi.deflateSetDictionary(this.strm,this.dictionary);break;default:break}this.err!==E.Z_OK&&this._error("Failed to set dictionary")}};he.prototype._reset=function(){switch(this.err=E.Z_OK,this.mode){case E.DEFLATE:case E.DEFLATERAW:case E.GZIP:this.err=pi.deflateReset(this.strm);break;case E.INFLATE:case E.INFLATERAW:case E.GUNZIP:this.err=ur.inflateReset(this.strm);break;default:break}this.err!==E.Z_OK&&this._error("Failed to reset stream")};E.Zlib=he});var _s=_(R=>{"use strict";c();var rt=Ae().Buffer,ng=va().Transform,L=Qv(),Ft=Fe(),yi=Wn().ok,ys=Ae().kMaxLength,ig="Cannot create final Buffer. It would be larger than 0x"+ys.toString(16)+" bytes";L.Z_MIN_WINDOWBITS=8;L.Z_MAX_WINDOWBITS=15;L.Z_DEFAULT_WINDOWBITS=15;L.Z_MIN_CHUNK=64;L.Z_MAX_CHUNK=1/0;L.Z_DEFAULT_CHUNK=16*1024;L.Z_MIN_MEMLEVEL=1;L.Z_MAX_MEMLEVEL=9;L.Z_DEFAULT_MEMLEVEL=8;L.Z_MIN_LEVEL=-1;L.Z_MAX_LEVEL=9;L.Z_DEFAULT_LEVEL=L.Z_DEFAULT_COMPRESSION;var eg=Object.keys(L);for(Eo=0;Eo<eg.length;Eo++)mo=eg[Eo],mo.match(/^Z/)&&Object.defineProperty(R,mo,{enumerable:!0,value:L[mo],writable:!1});var mo,Eo,So={Z_OK:L.Z_OK,Z_STREAM_END:L.Z_STREAM_END,Z_NEED_DICT:L.Z_NEED_DICT,Z_ERRNO:L.Z_ERRNO,Z_STREAM_ERROR:L.Z_STREAM_ERROR,Z_DATA_ERROR:L.Z_DATA_ERROR,Z_MEM_ERROR:L.Z_MEM_ERROR,Z_BUF_ERROR:L.Z_BUF_ERROR,Z_VERSION_ERROR:L.Z_VERSION_ERROR},tg=Object.keys(So);for(xo=0;xo<tg.length;xo++)ps=tg[xo],So[So[ps]]=ps;var ps,xo;Object.defineProperty(R,"codes",{enumerable:!0,value:Object.freeze(So),writable:!1});R.Deflate=sr;R.Inflate=lr;R.Gzip=cr;R.Gunzip=hr;R.DeflateRaw=dr;R.InflateRaw=pr;R.Unzip=yr;R.createDeflate=function(e){return new sr(e)};R.createInflate=function(e){return new lr(e)};R.createDeflateRaw=function(e){return new dr(e)};R.createInflateRaw=function(e){return new pr(e)};R.createGzip=function(e){return new cr(e)};R.createGunzip=function(e){return new hr(e)};R.createUnzip=function(e){return new yr(e)};R.deflate=function(e,t,r){return typeof t=="function"&&(r=t,t={}),_r(new sr(t),e,r)};R.deflateSync=function(e,t){return vr(new sr(t),e)};R.gzip=function(e,t,r){return typeof t=="function"&&(r=t,t={}),_r(new cr(t),e,r)};R.gzipSync=function(e,t){return vr(new cr(t),e)};R.deflateRaw=function(e,t,r){return typeof t=="function"&&(r=t,t={}),_r(new dr(t),e,r)};R.deflateRawSync=function(e,t){return vr(new dr(t),e)};R.unzip=function(e,t,r){return typeof t=="function"&&(r=t,t={}),_r(new yr(t),e,r)};R.unzipSync=function(e,t){return vr(new yr(t),e)};R.inflate=function(e,t,r){return typeof t=="function"&&(r=t,t={}),_r(new lr(t),e,r)};R.inflateSync=function(e,t){return vr(new lr(t),e)};R.gunzip=function(e,t,r){return typeof t=="function"&&(r=t,t={}),_r(new hr(t),e,r)};R.gunzipSync=function(e,t){return vr(new hr(t),e)};R.inflateRaw=function(e,t,r){return typeof t=="function"&&(r=t,t={}),_r(new pr(t),e,r)};R.inflateRawSync=function(e,t){return vr(new pr(t),e)};function _r(e,t,r){var n=[],i=0;e.on("error",o),e.on("end",f),e.end(t),a();function a(){for(var l;(l=e.read())!==null;)n.push(l),i+=l.length;e.once("readable",a)}function o(l){e.removeListener("end",f),e.removeListener("readable",a),r(l)}function f(){var l,u=null;i>=ys?u=new RangeError(ig):l=rt.concat(n,i),n=[],e.close(),r(u,l)}}function vr(e,t){if(typeof t=="string"&&(t=rt.from(t)),!rt.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function sr(e){if(!(this instanceof sr))return new sr(e);J.call(this,e,L.DEFLATE)}function lr(e){if(!(this instanceof lr))return new lr(e);J.call(this,e,L.INFLATE)}function cr(e){if(!(this instanceof cr))return new cr(e);J.call(this,e,L.GZIP)}function hr(e){if(!(this instanceof hr))return new hr(e);J.call(this,e,L.GUNZIP)}function dr(e){if(!(this instanceof dr))return new dr(e);J.call(this,e,L.DEFLATERAW)}function pr(e){if(!(this instanceof pr))return new pr(e);J.call(this,e,L.INFLATERAW)}function yr(e){if(!(this instanceof yr))return new yr(e);J.call(this,e,L.UNZIP)}function rg(e){return e===L.Z_NO_FLUSH||e===L.Z_PARTIAL_FLUSH||e===L.Z_SYNC_FLUSH||e===L.Z_FULL_FLUSH||e===L.Z_FINISH||e===L.Z_BLOCK}function J(e,t){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||R.Z_DEFAULT_CHUNK,ng.call(this,e),e.flush&&!rg(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!rg(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||L.Z_NO_FLUSH,this._finishFlushFlag=typeof e.finishFlush<"u"?e.finishFlush:L.Z_FINISH,e.chunkSize&&(e.chunkSize<R.Z_MIN_CHUNK||e.chunkSize>R.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<R.Z_MIN_WINDOWBITS||e.windowBits>R.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<R.Z_MIN_LEVEL||e.level>R.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<R.Z_MIN_MEMLEVEL||e.memLevel>R.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=R.Z_FILTERED&&e.strategy!=R.Z_HUFFMAN_ONLY&&e.strategy!=R.Z_RLE&&e.strategy!=R.Z_FIXED&&e.strategy!=R.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!rt.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new L.Zlib(t);var n=this;this._hadError=!1,this._handle.onerror=function(o,f){Ao(n),n._hadError=!0;var l=new Error(o);l.errno=f,l.code=R.codes[f],n.emit("error",l)};var i=R.Z_DEFAULT_COMPRESSION;typeof e.level=="number"&&(i=e.level);var a=R.Z_DEFAULT_STRATEGY;typeof e.strategy=="number"&&(a=e.strategy),this._handle.init(e.windowBits||R.Z_DEFAULT_WINDOWBITS,i,e.memLevel||R.Z_DEFAULT_MEMLEVEL,a,e.dictionary),this._buffer=rt.allocUnsafe(this._chunkSize),this._offset=0,this._level=i,this._strategy=a,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}Ft.inherits(J,ng);J.prototype.params=function(e,t,r){if(e<R.Z_MIN_LEVEL||e>R.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=R.Z_FILTERED&&t!=R.Z_HUFFMAN_ONLY&&t!=R.Z_RLE&&t!=R.Z_FIXED&&t!=R.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var n=this;this.flush(L.Z_SYNC_FLUSH,function(){yi(n._handle,"zlib binding closed"),n._handle.params(e,t),n._hadError||(n._level=e,n._strategy=t,r&&r())})}else h.default.nextTick(r)};J.prototype.reset=function(){return yi(this._handle,"zlib binding closed"),this._handle.reset()};J.prototype._flush=function(e){this._transform(rt.alloc(0),"",e)};J.prototype.flush=function(e,t){var r=this,n=this._writableState;(typeof e=="function"||e===void 0&&!t)&&(t=e,e=L.Z_FULL_FLUSH),n.ended?t&&h.default.nextTick(t):n.ending?t&&this.once("end",t):n.needDrain?t&&this.once("drain",function(){return r.flush(e,t)}):(this._flushFlag=e,this.write(rt.alloc(0),"",t))};J.prototype.close=function(e){Ao(this,e),h.default.nextTick(XT,this)};function Ao(e,t){t&&h.default.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function XT(e){e.emit("close")}J.prototype._transform=function(e,t,r){var n,i=this._writableState,a=i.ending||i.ended,o=a&&(!e||i.length===e.length);if(e!==null&&!rt.isBuffer(e))return r(new Error("invalid input"));if(!this._handle)return r(new Error("zlib binding closed"));o?n=this._finishFlushFlag:(n=this._flushFlag,e.length>=i.length&&(this._flushFlag=this._opts.flush||L.Z_NO_FLUSH)),this._processChunk(e,n,r)};J.prototype._processChunk=function(e,t,r){var n=e&&e.length,i=this._chunkSize-this._offset,a=0,o=this,f=typeof r=="function";if(!f){var l=[],u=0,s;this.on("error",function(w){s=w}),yi(this._handle,"zlib binding closed");do var d=this._handle.writeSync(t,e,a,n,this._buffer,this._offset,i);while(!this._hadError&&b(d[0],d[1]));if(this._hadError)throw s;if(u>=ys)throw Ao(this),new RangeError(ig);var p=rt.concat(l,u);return Ao(this),p}yi(this._handle,"zlib binding closed");var y=this._handle.write(t,e,a,n,this._buffer,this._offset,i);y.buffer=e,y.callback=b;function b(w,x){if(this&&(this.buffer=null,this.callback=null),!o._hadError){var m=i-x;if(yi(m>=0,"have should not go down"),m>0){var S=o._buffer.slice(o._offset,o._offset+m);o._offset+=m,f?o.push(S):(l.push(S),u+=S.length)}if((x===0||o._offset>=o._chunkSize)&&(i=o._chunkSize,o._offset=0,o._buffer=rt.allocUnsafe(o._chunkSize)),x===0){if(a+=n-w,n=w,!f)return!0;var O=o._handle.write(t,e,a,n,o._buffer,o._offset,o._chunkSize);O.callback=b,O.buffer=e;return}if(!f)return!1;r()}}};Ft.inherits(sr,J);Ft.inherits(lr,J);Ft.inherits(cr,J);Ft.inherits(hr,J);Ft.inherits(dr,J);Ft.inherits(pr,J);Ft.inherits(yr,J)});var sg=_((DB,ug)=>{"use strict";c();var vs=k0(),qB=mu(),ag=_s(),QT=8*1024*1024;function og(e,t){var r=t&&t.maxDecompressedBytes||QT;return ag.gunzipSync(v.Buffer.from(e,"base64"),{maxOutputLength:r})}async function fg(e,t){if(!t.expectedIssuerDid)throw new Error("expectedIssuerDid is required to verify a status list (issuer pinning); refusing to read revocation state from an unpinned/unverified JWT");var r=t.didResolver;if(!r){var n=t.issuerJwks||(t.issuerPublicJwk?{keys:[t.issuerPublicJwk]}:null);if(!n)throw new Error("Provide params.didResolver, params.issuerJwks, or params.issuerPublicJwk to verify the status list signature");r=async function(){return{jwks:n}}}var i=await vs.verifyVcJwt(e,{didResolver:r,expectedIssuerDid:t.expectedIssuerDid,allowedAlgs:t.allowedAlgs,allowLegacyDER:t.allowLegacyDER,clockToleranceSec:t.clockToleranceSec});if(!i.valid)throw new Error("Status list signature verification failed: "+(i.error||"invalid signature"));return i.payload}async function eO(e){if(!e.issuerDid||!e.privateJwk)throw new Error("issuerDid and privateJwk are required");var t=e.listId||e.issuerDid+"/status/"+Date.now(),r=e.listSize||1e5,n=Math.ceil(r/8),i=v.Buffer.alloc(n,0),a=_s(),o=a.gzipSync(i),f=o.toString("base64"),l={"@context":["https://www.w3.org/2018/credentials/v1","https://w3id.org/vc/status-list/2021/v1"],type:["VerifiableCredential","StatusList2021Credential"],issuer:e.issuerDid,issuanceDate:new Date().toISOString(),credentialSubject:{id:t,type:"StatusList2021",statusPurpose:"revocation",encodedList:f}},u=await vs.issueVcJwt({issuerDid:e.issuerDid,subjectId:t,types:["VerifiableCredential","StatusList2021Credential"],credentialSubject:l.credentialSubject,privateJwk:e.privateJwk,alg:e.privateJwk.alg||"ES256"});return{listVcJwt:u.jwt,listId:t}}async function tO(e){if(!e.listVcJwt||e.index===void 0||!e.status||!e.privateJwk)throw new Error("listVcJwt, index, status, and privateJwk are required");if(e.status==="suspended")throw new Error("status 'suspended' is not supported by this list: its statusPurpose is 'revocation', and suspension would be written to the same bit and read back as 'revoked'. Maintain a separate list for suspension until statusPurpose is configurable.");var t=await fg(e.listVcJwt,e),r=t.vc.credentialSubject.encodedList,n=og(r,e),i=Math.floor(e.index/8),a=e.index%8;if(i>=n.length)throw new Error("Index out of range");var o=e.status==="revoked"?1:0;o===1?n[i]|=1<<a:n[i]&=~(1<<a);var f=ag.gzipSync(n),l=f.toString("base64"),u={id:t.vc.credentialSubject.id,type:"StatusList2021",statusPurpose:"revocation",encodedList:l},s=await vs.issueVcJwt({issuerDid:t.iss,subjectId:t.vc.credentialSubject.id,types:["VerifiableCredential","StatusList2021Credential"],credentialSubject:u,privateJwk:e.privateJwk,alg:e.privateJwk.alg||"ES256"});return{listVcJwt:s.jwt}}async function rO(e){if(!e.listVcJwt||e.index===void 0)throw new Error("listVcJwt and index are required");var t=await fg(e.listVcJwt,e),r=t.vc.credentialSubject.encodedList,n=og(r,e),i=Math.floor(e.index/8),a=e.index%8;if(i>=n.length)throw new Error("Index out of range");var o=n[i]>>a&1;return o===1?"revoked":"valid"}ug.exports={createStatusList:eO,updateStatusList:tO,getCredentialStatusEntry:rO}});var nO=_((NB,lg)=>{c();lg.exports=sg()});return nO();})();
74
68
  if(typeof module!=="undefined"&&module.exports){module.exports=bsvStatusList}else if(typeof define==="function"&&define.amd){define([],function(){return bsvStatusList})}