@smartledger/bsv 9.10.0 → 9.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/README.md +19 -19
- package/bsv-gdaf.min.js +5 -5
- package/bsv-ltp.min.js +7 -7
- package/bsv-smartcontract.min.js +1 -1
- package/bsv.bundle.js +4 -4
- package/bsv.min.js +4 -4
- package/docs/AUDIT_SCOPE.md +6 -6
- package/docs/BRC220_CERTIFICATE_FIELDS_AMENDMENT.md +7 -3
- package/docs/MODULE_REFERENCE_COMPLETE.md +27 -27
- package/docs/advanced/UTXO_MANAGER_GUIDE.md +1 -1
- package/docs/audit-rfq/cure53.txt +1 -1
- package/docs/audit-rfq/ncc-group.txt +1 -1
- package/docs/audit-rfq/trail-of-bits.txt +1 -1
- package/docs/getting-started/INSTALLATION.md +23 -23
- package/docs/getting-started/QUICK_START.md +7 -7
- package/docs/migration/FROM_BSV_1_5_6.md +5 -5
- package/lib/notaryhash/suites.js +2 -2
- package/lib/script/interpreter.js +19 -6
- package/package.json +1 -1
- package/version.js +1 -1
package/bsv-gdaf.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var bsvGDAF=(()=>{var wq=Object.create;var Tf=Object.defineProperty;var Sq=Object.getOwnPropertyDescriptor;var Eq=Object.getOwnPropertyNames;var xq=Object.getPrototypeOf,Oq=Object.prototype.hasOwnProperty;var Iq=(e,t,r)=>t in e?Tf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var jr=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Br=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(i){throw r=[i],i}};var P=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Pf=(e,t)=>{for(var r in t)Tf(e,r,{get:t[r],enumerable:!0})},gE=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Eq(t))!Oq.call(e,n)&&n!==r&&Tf(e,n,{get:()=>t[n],enumerable:!(i=Sq(t,n))||i.enumerable});return e};var mE=(e,t,r)=>(r=e!=null?wq(xq(e)):{},gE(t||!e||!e.__esModule?Tf(r,"default",{value:e,enumerable:!0}):r,e)),$i=e=>gE(Tf({},"__esModule",{value:!0}),e);var ee=(e,t,r)=>Iq(e,typeof t!="symbol"?t+"":t,r);var wE=P((HQ,_E)=>{g();var Zt=_E.exports={},zn,Kn;function zv(){throw new Error("setTimeout has not been defined")}function Kv(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?zn=setTimeout:zn=zv}catch{zn=zv}try{typeof clearTimeout=="function"?Kn=clearTimeout:Kn=Kv}catch{Kn=Kv}})();function vE(e){if(zn===setTimeout)return setTimeout(e,0);if((zn===zv||!zn)&&setTimeout)return zn=setTimeout,setTimeout(e,0);try{return zn(e,0)}catch{try{return zn.call(null,e,0)}catch{return zn.call(this,e,0)}}}function Aq(e){if(Kn===clearTimeout)return clearTimeout(e);if((Kn===Kv||!Kn)&&clearTimeout)return Kn=clearTimeout,clearTimeout(e);try{return Kn(e)}catch{try{return Kn.call(null,e)}catch{return Kn.call(this,e)}}}var Co=[],ku=!1,bs,sd=-1;function Tq(){!ku||!bs||(ku=!1,bs.length?Co=bs.concat(Co):sd=-1,Co.length&&yE())}function yE(){if(!ku){var e=vE(Tq);ku=!0;for(var t=Co.length;t;){for(bs=Co,Co=[];++sd<t;)bs&&bs[sd].run();sd=-1,t=Co.length}bs=null,ku=!1,Aq(e)}}Zt.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];Co.push(new bE(e,t)),Co.length===1&&!ku&&vE(yE)};function bE(e,t){this.fun=e,this.array=t}bE.prototype.run=function(){this.fun.apply(null,this.array)};Zt.title="browser";Zt.browser=!0;Zt.env={};Zt.argv=[];Zt.version="";Zt.versions={};function Lo(){}Zt.on=Lo;Zt.addListener=Lo;Zt.once=Lo;Zt.off=Lo;Zt.removeListener=Lo;Zt.removeAllListeners=Lo;Zt.emit=Lo;Zt.prependListener=Lo;Zt.prependOnceListener=Lo;Zt.listeners=function(e){return[]};Zt.binding=function(e){throw new Error("process.binding is not supported")};Zt.cwd=function(){return"/"};Zt.chdir=function(e){throw new Error("process.chdir is not supported")};Zt.umask=function(){return 0}});var xE=P(ud=>{"use strict";g();ud.byteLength=Rq;ud.toByteArray=Bq;ud.fromByteArray=Lq;var Vn=[],Xi=[],Pq=typeof Uint8Array<"u"?Uint8Array:Array,Vv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_s=0,SE=Vv.length;_s<SE;++_s)Vn[_s]=Vv[_s],Xi[Vv.charCodeAt(_s)]=_s;var _s,SE;Xi[45]=62;Xi[95]=63;function EE(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 Rq(e){var t=EE(e),r=t[0],i=t[1];return(r+i)*3/4-i}function kq(e,t,r){return(t+r)*3/4-r}function Bq(e){var t,r=EE(e),i=r[0],n=r[1],o=new Pq(kq(e,i,n)),a=0,s=n>0?i-4:i,u;for(u=0;u<s;u+=4)t=Xi[e.charCodeAt(u)]<<18|Xi[e.charCodeAt(u+1)]<<12|Xi[e.charCodeAt(u+2)]<<6|Xi[e.charCodeAt(u+3)],o[a++]=t>>16&255,o[a++]=t>>8&255,o[a++]=t&255;return n===2&&(t=Xi[e.charCodeAt(u)]<<2|Xi[e.charCodeAt(u+1)]>>4,o[a++]=t&255),n===1&&(t=Xi[e.charCodeAt(u)]<<10|Xi[e.charCodeAt(u+1)]<<4|Xi[e.charCodeAt(u+2)]>>2,o[a++]=t>>8&255,o[a++]=t&255),o}function Nq(e){return Vn[e>>18&63]+Vn[e>>12&63]+Vn[e>>6&63]+Vn[e&63]}function Cq(e,t,r){for(var i,n=[],o=t;o<r;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(Nq(i));return n.join("")}function Lq(e){for(var t,r=e.length,i=r%3,n=[],o=16383,a=0,s=r-i;a<s;a+=o)n.push(Cq(e,a,a+o>s?s:a+o));return i===1?(t=e[r-1],n.push(Vn[t>>2]+Vn[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(Vn[t>>10]+Vn[t>>4&63]+Vn[t<<2&63]+"=")),n.join("")}});var OE=P(Gv=>{g();Gv.read=function(e,t,r,i,n){var o,a,s=n*8-i-1,u=(1<<s)-1,c=u>>1,l=-7,d=r?n-1:0,p=r?-1:1,y=e[t+d];for(d+=p,o=y&(1<<-l)-1,y>>=-l,l+=s;l>0;o=o*256+e[t+d],d+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=i;l>0;a=a*256+e[t+d],d+=p,l-=8);if(o===0)o=1-c;else{if(o===u)return a?NaN:(y?-1:1)*(1/0);a=a+Math.pow(2,i),o=o-c}return(y?-1:1)*a*Math.pow(2,o-i)};Gv.write=function(e,t,r,i,n,o){var a,s,u,c=o*8-n-1,l=(1<<c)-1,d=l>>1,p=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=i?0:o-1,_=i?1:-1,T=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+d>=1?t+=p/u:t+=p*Math.pow(2,1-d),t*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,n),a=a+d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),a=0));n>=8;e[r+y]=s&255,y+=_,s/=256,n-=8);for(a=a<<n|s,c+=n;c>0;e[r+y]=a&255,y+=_,a/=256,c-=8);e[r+y-_]|=T*128}});var jt=P(Lu=>{"use strict";g();var Wv=xE(),Nu=OE(),IE=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Lu.Buffer=J;Lu.SlowBuffer=Fq;Lu.INSPECT_MAX_BYTES=50;var cd=2147483647;Lu.kMaxLength=cd;J.TYPED_ARRAY_SUPPORT=Mq();!J.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 Mq(){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(J.prototype,"parent",{enumerable:!0,get:function(){if(J.isBuffer(this))return this.buffer}});Object.defineProperty(J.prototype,"offset",{enumerable:!0,get:function(){if(J.isBuffer(this))return this.byteOffset}});function Mo(e){if(e>cd)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,J.prototype),t}function J(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 Xv(e)}return RE(e,t,r)}J.poolSize=8192;function RE(e,t,r){if(typeof e=="string")return qq(e,t);if(ArrayBuffer.isView(e))return Hq(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(Gn(e,ArrayBuffer)||e&&Gn(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Gn(e,SharedArrayBuffer)||e&&Gn(e.buffer,SharedArrayBuffer)))return Zv(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 J.from(i,t,r);let n=Uq(e);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return J.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)}J.from=function(e,t,r){return RE(e,t,r)};Object.setPrototypeOf(J.prototype,Uint8Array.prototype);Object.setPrototypeOf(J,Uint8Array);function kE(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 Dq(e,t,r){return kE(e),e<=0?Mo(e):t!==void 0?typeof r=="string"?Mo(e).fill(t,r):Mo(e).fill(t):Mo(e)}J.alloc=function(e,t,r){return Dq(e,t,r)};function Xv(e){return kE(e),Mo(e<0?0:Jv(e)|0)}J.allocUnsafe=function(e){return Xv(e)};J.allocUnsafeSlow=function(e){return Xv(e)};function qq(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!J.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=BE(e,t)|0,i=Mo(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}function Yv(e){let t=e.length<0?0:Jv(e.length)|0,r=Mo(t);for(let i=0;i<t;i+=1)r[i]=e[i]&255;return r}function Hq(e){if(Gn(e,Uint8Array)){let t=new Uint8Array(e);return Zv(t.buffer,t.byteOffset,t.byteLength)}return Yv(e)}function Zv(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,J.prototype),i}function Uq(e){if(J.isBuffer(e)){let t=Jv(e.length)|0,r=Mo(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||e0(e.length)?Mo(0):Yv(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Yv(e.data)}function Jv(e){if(e>=cd)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+cd.toString(16)+" bytes");return e|0}function Fq(e){return+e!=e&&(e=0),J.alloc(+e)}J.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==J.prototype};J.compare=function(t,r){if(Gn(t,Uint8Array)&&(t=J.from(t,t.offset,t.byteLength)),Gn(r,Uint8Array)&&(r=J.from(r,r.offset,r.byteLength)),!J.isBuffer(t)||!J.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 o=0,a=Math.min(i,n);o<a;++o)if(t[o]!==r[o]){i=t[o],n=r[o];break}return i<n?-1:n<i?1:0};J.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}};J.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return J.alloc(0);let i;if(r===void 0)for(r=0,i=0;i<t.length;++i)r+=t[i].length;let n=J.allocUnsafe(r),o=0;for(i=0;i<t.length;++i){let a=t[i];if(Gn(a,Uint8Array))o+a.length>n.length?(J.isBuffer(a)||(a=J.from(a)),a.copy(n,o)):Uint8Array.prototype.set.call(n,a,o);else if(J.isBuffer(a))a.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return n};function BE(e,t){if(J.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Gn(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 $v(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return FE(e).length;default:if(n)return i?-1:$v(e).length;t=(""+t).toLowerCase(),n=!0}}J.byteLength=BE;function jq(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 Jq(this,t,r);case"utf8":case"utf-8":return CE(this,t,r);case"ascii":return $q(this,t,r);case"latin1":case"binary":return Xq(this,t,r);case"base64":return Yq(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qq(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}J.prototype._isBuffer=!0;function ws(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}J.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)ws(this,r,r+1);return this};J.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)ws(this,r,r+3),ws(this,r+1,r+2);return this};J.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)ws(this,r,r+7),ws(this,r+1,r+6),ws(this,r+2,r+5),ws(this,r+3,r+4);return this};J.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?CE(this,0,t):jq.apply(this,arguments)};J.prototype.toLocaleString=J.prototype.toString;J.prototype.equals=function(t){if(!J.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:J.compare(this,t)===0};J.prototype.inspect=function(){let t="",r=Lu.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};IE&&(J.prototype[IE]=J.prototype.inspect);J.prototype.compare=function(t,r,i,n,o){if(Gn(t,Uint8Array)&&(t=J.from(t,t.offset,t.byteLength)),!J.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),o===void 0&&(o=this.length),r<0||i>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&r>=i)return 0;if(n>=o)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,o>>>=0,this===t)return 0;let a=o-n,s=i-r,u=Math.min(a,s),c=this.slice(n,o),l=t.slice(r,i);for(let d=0;d<u;++d)if(c[d]!==l[d]){a=c[d],s=l[d];break}return a<s?-1:s<a?1:0};function NE(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,e0(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=J.from(t,i)),J.isBuffer(t))return t.length===0?-1:AE(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):AE(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function AE(e,t,r,i,n){let o=1,a=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;o=2,a/=2,s/=2,r/=2}function u(l,d){return o===1?l[d]:l.readUInt16BE(d*o)}let c;if(n){let l=-1;for(c=r;c<a;c++)if(u(e,c)===u(t,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===s)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(r+s>a&&(r=a-s),c=r;c>=0;c--){let l=!0;for(let d=0;d<s;d++)if(u(e,c+d)!==u(t,d)){l=!1;break}if(l)return c}return-1}J.prototype.includes=function(t,r,i){return this.indexOf(t,r,i)!==-1};J.prototype.indexOf=function(t,r,i){return NE(this,t,r,i,!0)};J.prototype.lastIndexOf=function(t,r,i){return NE(this,t,r,i,!1)};function zq(e,t,r,i){r=Number(r)||0;let n=e.length-r;i?(i=Number(i),i>n&&(i=n)):i=n;let o=t.length;i>o/2&&(i=o/2);let a;for(a=0;a<i;++a){let s=parseInt(t.substr(a*2,2),16);if(e0(s))return a;e[r+a]=s}return a}function Kq(e,t,r,i){return fd($v(t,e.length-r),e,r,i)}function Vq(e,t,r,i){return fd(iH(t),e,r,i)}function Gq(e,t,r,i){return fd(FE(t),e,r,i)}function Wq(e,t,r,i){return fd(nH(t,e.length-r),e,r,i)}J.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 o=this.length-r;if((i===void 0||i>o)&&(i=o),t.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let a=!1;for(;;)switch(n){case"hex":return zq(this,t,r,i);case"utf8":case"utf-8":return Kq(this,t,r,i);case"ascii":case"latin1":case"binary":return Vq(this,t,r,i);case"base64":return Gq(this,t,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wq(this,t,r,i);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}};J.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Yq(e,t,r){return t===0&&r===e.length?Wv.fromByteArray(e):Wv.fromByteArray(e.slice(t,r))}function CE(e,t,r){r=Math.min(e.length,r);let i=[],n=t;for(;n<r;){let o=e[n],a=null,s=o>239?4:o>223?3:o>191?2:1;if(n+s<=r){let u,c,l,d;switch(s){case 1:o<128&&(a=o);break;case 2:u=e[n+1],(u&192)===128&&(d=(o&31)<<6|u&63,d>127&&(a=d));break;case 3:u=e[n+1],c=e[n+2],(u&192)===128&&(c&192)===128&&(d=(o&15)<<12|(u&63)<<6|c&63,d>2047&&(d<55296||d>57343)&&(a=d));break;case 4:u=e[n+1],c=e[n+2],l=e[n+3],(u&192)===128&&(c&192)===128&&(l&192)===128&&(d=(o&15)<<18|(u&63)<<12|(c&63)<<6|l&63,d>65535&&d<1114112&&(a=d))}}a===null?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|a&1023),i.push(a),n+=s}return Zq(i)}var TE=4096;function Zq(e){let t=e.length;if(t<=TE)return String.fromCharCode.apply(String,e);let r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=TE));return r}function $q(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 Xq(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 Jq(e,t,r){let i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);let n="";for(let o=t;o<r;++o)n+=oH[e[o]];return n}function Qq(e,t,r){let i=e.slice(t,r),n="";for(let o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}J.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,J.prototype),n};function zr(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")}J.prototype.readUintLE=J.prototype.readUIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||zr(t,r,this.length);let n=this[t],o=1,a=0;for(;++a<r&&(o*=256);)n+=this[t+a]*o;return n};J.prototype.readUintBE=J.prototype.readUIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||zr(t,r,this.length);let n=this[t+--r],o=1;for(;r>0&&(o*=256);)n+=this[t+--r]*o;return n};J.prototype.readUint8=J.prototype.readUInt8=function(t,r){return t=t>>>0,r||zr(t,1,this.length),this[t]};J.prototype.readUint16LE=J.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||zr(t,2,this.length),this[t]|this[t+1]<<8};J.prototype.readUint16BE=J.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||zr(t,2,this.length),this[t]<<8|this[t+1]};J.prototype.readUint32LE=J.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||zr(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};J.prototype.readUint32BE=J.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||zr(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};J.prototype.readBigUInt64LE=ba(function(t){t=t>>>0,Cu(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Rf(t,this.length-8);let n=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,o=this[++t]+this[++t]*2**8+this[++t]*2**16+i*2**24;return BigInt(n)+(BigInt(o)<<BigInt(32))});J.prototype.readBigUInt64BE=ba(function(t){t=t>>>0,Cu(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Rf(t,this.length-8);let n=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],o=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i;return(BigInt(n)<<BigInt(32))+BigInt(o)});J.prototype.readIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||zr(t,r,this.length);let n=this[t],o=1,a=0;for(;++a<r&&(o*=256);)n+=this[t+a]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*r)),n};J.prototype.readIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||zr(t,r,this.length);let n=r,o=1,a=this[t+--n];for(;n>0&&(o*=256);)a+=this[t+--n]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};J.prototype.readInt8=function(t,r){return t=t>>>0,r||zr(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};J.prototype.readInt16LE=function(t,r){t=t>>>0,r||zr(t,2,this.length);let i=this[t]|this[t+1]<<8;return i&32768?i|4294901760:i};J.prototype.readInt16BE=function(t,r){t=t>>>0,r||zr(t,2,this.length);let i=this[t+1]|this[t]<<8;return i&32768?i|4294901760:i};J.prototype.readInt32LE=function(t,r){return t=t>>>0,r||zr(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};J.prototype.readInt32BE=function(t,r){return t=t>>>0,r||zr(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};J.prototype.readBigInt64LE=ba(function(t){t=t>>>0,Cu(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Rf(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)});J.prototype.readBigInt64BE=ba(function(t){t=t>>>0,Cu(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Rf(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)});J.prototype.readFloatLE=function(t,r){return t=t>>>0,r||zr(t,4,this.length),Nu.read(this,t,!0,23,4)};J.prototype.readFloatBE=function(t,r){return t=t>>>0,r||zr(t,4,this.length),Nu.read(this,t,!1,23,4)};J.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||zr(t,8,this.length),Nu.read(this,t,!0,52,8)};J.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||zr(t,8,this.length),Nu.read(this,t,!1,52,8)};function Oi(e,t,r,i,n,o){if(!J.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<o)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}J.prototype.writeUintLE=J.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;Oi(this,t,r,i,s,0)}let o=1,a=0;for(this[r]=t&255;++a<i&&(o*=256);)this[r+a]=t/o&255;return r+i};J.prototype.writeUintBE=J.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;Oi(this,t,r,i,s,0)}let o=i-1,a=1;for(this[r+o]=t&255;--o>=0&&(a*=256);)this[r+o]=t/a&255;return r+i};J.prototype.writeUint8=J.prototype.writeUInt8=function(t,r,i){return t=+t,r=r>>>0,i||Oi(this,t,r,1,255,0),this[r]=t&255,r+1};J.prototype.writeUint16LE=J.prototype.writeUInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};J.prototype.writeUint16BE=J.prototype.writeUInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};J.prototype.writeUint32LE=J.prototype.writeUInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(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};J.prototype.writeUint32BE=J.prototype.writeUInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(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 LE(e,t,r,i,n){UE(t,i,n,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,r}function ME(e,t,r,i,n){UE(t,i,n,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a=a>>8,e[r+2]=a,a=a>>8,e[r+1]=a,a=a>>8,e[r]=a,r+8}J.prototype.writeBigUInt64LE=ba(function(t,r=0){return LE(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});J.prototype.writeBigUInt64BE=ba(function(t,r=0){return ME(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});J.prototype.writeIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let u=Math.pow(2,8*i-1);Oi(this,t,r,i,u-1,-u)}let o=0,a=1,s=0;for(this[r]=t&255;++o<i&&(a*=256);)t<0&&s===0&&this[r+o-1]!==0&&(s=1),this[r+o]=(t/a>>0)-s&255;return r+i};J.prototype.writeIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let u=Math.pow(2,8*i-1);Oi(this,t,r,i,u-1,-u)}let o=i-1,a=1,s=0;for(this[r+o]=t&255;--o>=0&&(a*=256);)t<0&&s===0&&this[r+o+1]!==0&&(s=1),this[r+o]=(t/a>>0)-s&255;return r+i};J.prototype.writeInt8=function(t,r,i){return t=+t,r=r>>>0,i||Oi(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};J.prototype.writeInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};J.prototype.writeInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};J.prototype.writeInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(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};J.prototype.writeInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(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};J.prototype.writeBigInt64LE=ba(function(t,r=0){return LE(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});J.prototype.writeBigInt64BE=ba(function(t,r=0){return ME(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function DE(e,t,r,i,n,o){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function qE(e,t,r,i,n){return t=+t,r=r>>>0,n||DE(e,t,r,4,34028234663852886e22,-34028234663852886e22),Nu.write(e,t,r,i,23,4),r+4}J.prototype.writeFloatLE=function(t,r,i){return qE(this,t,r,!0,i)};J.prototype.writeFloatBE=function(t,r,i){return qE(this,t,r,!1,i)};function HE(e,t,r,i,n){return t=+t,r=r>>>0,n||DE(e,t,r,8,17976931348623157e292,-17976931348623157e292),Nu.write(e,t,r,i,52,8),r+8}J.prototype.writeDoubleLE=function(t,r,i){return HE(this,t,r,!0,i)};J.prototype.writeDoubleBE=function(t,r,i){return HE(this,t,r,!1,i)};J.prototype.copy=function(t,r,i,n){if(!J.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 o=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),o};J.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"&&!J.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(t.length===1){let a=t.charCodeAt(0);(n==="utf8"&&a<128||n==="latin1")&&(t=a)}}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 o;if(typeof t=="number")for(o=r;o<i;++o)this[o]=t;else{let a=J.isBuffer(t)?t:J.from(t,n),s=a.length;if(s===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<i-r;++o)this[o+r]=a[o%s]}return this};var Bu={};function Qv(e,t,r){Bu[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}`}}}Qv("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Qv("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);Qv("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=PE(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=PE(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i},RangeError);function PE(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 eH(e,t,r){Cu(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Rf(t,e.length-(r+1))}function UE(e,t,r,i,n,o){if(e>r||e<t){let a=typeof t=="bigint"?"n":"",s;throw o>3?t===0||t===BigInt(0)?s=`>= 0${a} and < 2${a} ** ${(o+1)*8}${a}`:s=`>= -(2${a} ** ${(o+1)*8-1}${a}) and < 2 ** ${(o+1)*8-1}${a}`:s=`>= ${t}${a} and <= ${r}${a}`,new Bu.ERR_OUT_OF_RANGE("value",s,e)}eH(i,n,o)}function Cu(e,t){if(typeof e!="number")throw new Bu.ERR_INVALID_ARG_TYPE(t,"number",e)}function Rf(e,t,r){throw Math.floor(e)!==e?(Cu(e,r),new Bu.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new Bu.ERR_BUFFER_OUT_OF_BOUNDS:new Bu.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var tH=/[^+/0-9A-Za-z-_]/g;function rH(e){if(e=e.split("=")[0],e=e.trim().replace(tH,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function $v(e,t){t=t||1/0;let r,i=e.length,n=null,o=[];for(let a=0;a<i;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function iH(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function nH(e,t){let r,i,n,o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}function FE(e){return Wv.toByteArray(rH(e))}function fd(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 Gn(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function e0(e){return e!==e}var oH=(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 ba(e){return typeof BigInt>"u"?aH:e}function aH(){throw new Error("BigInt not supported")}});var b,f,g=Br(()=>{b=mE(wE()),f=mE(jt())});var ld=P((jE,t0)=>{g();(function(e,t){"use strict";function r(S,h){if(!S)throw new Error(h||"Assertion failed")}function i(S,h){S.super_=h;var v=function(){};v.prototype=h.prototype,S.prototype=new v,S.prototype.constructor=S}function n(S,h,v){if(n.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,S!==null&&((h==="le"||h==="be")&&(v=h,h=10),this._init(S||0,h||10,v||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=jt().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,v){return h.cmp(v)>0?h:v},n.min=function(h,v){return h.cmp(v)<0?h:v},n.prototype._init=function(h,v,w){if(typeof h=="number")return this._initNumber(h,v,w);if(typeof h=="object")return this._initArray(h,v,w);v==="hex"&&(v=16),r(v===(v|0)&&v>=2&&v<=36),h=h.toString().replace(/\s+/g,"");var E=0;h[0]==="-"&&(E++,this.negative=1),E<h.length&&(v===16?this._parseHex(h,E,w):(this._parseBase(h,v,E),w==="le"&&this._initArray(this.toArray(),v,w)))},n.prototype._initNumber=function(h,v,w){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),w==="le"&&this._initArray(this.toArray(),v,w)},n.prototype._initArray=function(h,v,w){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 E=0;E<this.length;E++)this.words[E]=0;var A,L,N=0;if(w==="be")for(E=h.length-1,A=0;E>=0;E-=3)L=h[E]|h[E-1]<<8|h[E-2]<<16,this.words[A]|=L<<N&67108863,this.words[A+1]=L>>>26-N&67108863,N+=24,N>=26&&(N-=26,A++);else if(w==="le")for(E=0,A=0;E<h.length;E+=3)L=h[E]|h[E+1]<<8|h[E+2]<<16,this.words[A]|=L<<N&67108863,this.words[A+1]=L>>>26-N&67108863,N+=24,N>=26&&(N-=26,A++);return this.strip()};function a(S,h){var v=S.charCodeAt(h);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function s(S,h,v){var w=a(S,v);return v-1>=h&&(w|=a(S,v-1)<<4),w}n.prototype._parseHex=function(h,v,w){this.length=Math.ceil((h.length-v)/6),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var A=0,L=0,N;if(w==="be")for(E=h.length-1;E>=v;E-=2)N=s(h,v,E)<<A,this.words[L]|=N&67108863,A>=18?(A-=18,L+=1,this.words[L]|=N>>>26):A+=8;else{var x=h.length-v;for(E=x%2===0?v+1:v;E<h.length;E+=2)N=s(h,v,E)<<A,this.words[L]|=N&67108863,A>=18?(A-=18,L+=1,this.words[L]|=N>>>26):A+=8}this.strip()};function u(S,h,v,w){for(var E=0,A=Math.min(S.length,v),L=h;L<A;L++){var N=S.charCodeAt(L)-48;E*=w,N>=49?E+=N-49+10:N>=17?E+=N-17+10:E+=N}return E}n.prototype._parseBase=function(h,v,w){this.words=[0],this.length=1;for(var E=0,A=1;A<=67108863;A*=v)E++;E--,A=A/v|0;for(var L=h.length-w,N=L%E,x=Math.min(L,L-N)+w,m=0,O=w;O<x;O+=E)m=u(h,O,O+E,v),this.imuln(A),this.words[0]+m<67108864?this.words[0]+=m:this._iaddn(m);if(N!==0){var z=1;for(m=u(h,O,h.length,v),O=0;O<N;O++)z*=v;this.imuln(z),this.words[0]+m<67108864?this.words[0]+=m:this._iaddn(m)}this.strip()},n.prototype.copy=function(h){h.words=new Array(this.length);for(var v=0;v<this.length;v++)h.words[v]=this.words[v];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 c=["","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"],l=[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],d=[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,v){h=h||10,v=v|0||1;var w;if(h===16||h==="hex"){w="";for(var E=0,A=0,L=0;L<this.length;L++){var N=this.words[L],x=((N<<E|A)&16777215).toString(16);A=N>>>24-E&16777215,E+=2,E>=26&&(E-=26,L--),A!==0||L!==this.length-1?w=c[6-x.length]+x+w:w=x+w}for(A!==0&&(w=A.toString(16)+w);w.length%v!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(h===(h|0)&&h>=2&&h<=36){var m=l[h],O=d[h];w="";var z=this.clone();for(z.negative=0;!z.isZero();){var W=z.modn(O).toString(h);z=z.idivn(O),z.isZero()?w=W+w:w=c[m-W.length]+W+w}for(this.isZero()&&(w="0"+w);w.length%v!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}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,v){return r(typeof o<"u"),this.toArrayLike(o,h,v)},n.prototype.toArray=function(h,v){return this.toArrayLike(Array,h,v)},n.prototype.toArrayLike=function(h,v,w){var E=this.byteLength(),A=w||Math.max(1,E);r(E<=A,"byte array longer than desired length"),r(A>0,"Requested array length <= 0"),this.strip();var L=v==="le",N=new h(A),x,m,O=this.clone();if(L){for(m=0;!O.isZero();m++)x=O.andln(255),O.iushrn(8),N[m]=x;for(;m<A;m++)N[m]=0}else{for(m=0;m<A-E;m++)N[m]=0;for(m=0;!O.isZero();m++)x=O.andln(255),O.iushrn(8),N[A-m-1]=x}return N},Math.clz32?n.prototype._countBits=function(h){return 32-Math.clz32(h)}:n.prototype._countBits=function(h){var v=h,w=0;return v>=4096&&(w+=13,v>>>=13),v>=64&&(w+=7,v>>>=7),v>=8&&(w+=4,v>>>=4),v>=2&&(w+=2,v>>>=2),w+v},n.prototype._zeroBits=function(h){if(h===0)return 26;var v=h,w=0;return(v&8191)===0&&(w+=13,v>>>=13),(v&127)===0&&(w+=7,v>>>=7),(v&15)===0&&(w+=4,v>>>=4),(v&3)===0&&(w+=2,v>>>=2),(v&1)===0&&w++,w},n.prototype.bitLength=function(){var h=this.words[this.length-1],v=this._countBits(h);return(this.length-1)*26+v};function p(S){for(var h=new Array(S.bitLength()),v=0;v<h.length;v++){var w=v/26|0,E=v%26;h[v]=(S.words[w]&1<<E)>>>E}return h}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,v=0;v<this.length;v++){var w=this._zeroBits(this.words[v]);if(h+=w,w!==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 v=0;v<h.length;v++)this.words[v]=this.words[v]|h.words[v];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 v;this.length>h.length?v=h:v=this;for(var w=0;w<v.length;w++)this.words[w]=this.words[w]&h.words[w];return this.length=v.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 v,w;this.length>h.length?(v=this,w=h):(v=h,w=this);for(var E=0;E<w.length;E++)this.words[E]=v.words[E]^w.words[E];if(this!==v)for(;E<v.length;E++)this.words[E]=v.words[E];return this.length=v.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 v=Math.ceil(h/26)|0,w=h%26;this._expand(v),w>0&&v--;for(var E=0;E<v;E++)this.words[E]=~this.words[E]&67108863;for(w>0&&(this.words[E]=~this.words[E]&67108863>>26-w,E++);E<this.length;E++)this.words[E]=0;return this.strip()},n.prototype.notn=function(h){return this.clone().inotn(h)},n.prototype.setn=function(h,v){r(typeof h=="number"&&h>=0);var w=h/26|0,E=h%26;return this._expand(w+1),v?this.words[w]=this.words[w]|1<<E:this.words[w]=this.words[w]&~(1<<E),this.strip()},n.prototype.iadd=function(h){var v;if(this.negative!==0&&h.negative===0)return this.negative=0,v=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,v=this.isub(h),h.negative=1,v._normSign();var w,E;this.length>h.length?(w=this,E=h):(w=h,E=this);for(var A=0,L=0;L<E.length;L++)v=(w.words[L]|0)+(E.words[L]|0)+A,this.words[L]=v&67108863,A=v>>>26;for(;A!==0&&L<w.length;L++)v=(w.words[L]|0)+A,this.words[L]=v&67108863,A=v>>>26;if(this.length=w.length,A!==0)this.words[this.length]=A,this.length++;else if(w!==this)for(;L<w.length;L++)this.words[L]=w.words[L];return this},n.prototype.add=function(h){var v;return h.negative!==0&&this.negative===0?(h.negative=0,v=this.sub(h),h.negative^=1,v):h.negative===0&&this.negative!==0?(this.negative=0,v=h.sub(this),this.negative=1,v):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 v=this.iadd(h);return h.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var w=this.cmp(h);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;var E,A;w>0?(E=this,A=h):(E=h,A=this);for(var L=0,N=0;N<A.length;N++)v=(E.words[N]|0)-(A.words[N]|0)+L,L=v>>26,this.words[N]=v&67108863;for(;L!==0&&N<E.length;N++)v=(E.words[N]|0)+L,L=v>>26,this.words[N]=v&67108863;if(L===0&&N<E.length&&E!==this)for(;N<E.length;N++)this.words[N]=E.words[N];return this.length=Math.max(this.length,N),E!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(h){return this.clone().isub(h)};function y(S,h,v){v.negative=h.negative^S.negative;var w=S.length+h.length|0;v.length=w,w=w-1|0;var E=S.words[0]|0,A=h.words[0]|0,L=E*A,N=L&67108863,x=L/67108864|0;v.words[0]=N;for(var m=1;m<w;m++){for(var O=x>>>26,z=x&67108863,W=Math.min(m,h.length-1),te=Math.max(0,m-S.length+1);te<=W;te++){var ie=m-te|0;E=S.words[ie]|0,A=h.words[te]|0,L=E*A+z,O+=L/67108864|0,z=L&67108863}v.words[m]=z|0,x=O|0}return x!==0?v.words[m]=x|0:v.length--,v.strip()}var _=function(h,v,w){var E=h.words,A=v.words,L=w.words,N=0,x,m,O,z=E[0]|0,W=z&8191,te=z>>>13,ie=E[1]|0,se=ie&8191,ae=ie>>>13,we=E[2]|0,me=we&8191,C=we>>>13,V=E[3]|0,Y=V&8191,X=V>>>13,de=E[4]|0,ue=de&8191,le=de>>>13,ve=E[5]|0,ge=ve&8191,ye=ve>>>13,ke=E[6]|0,Le=ke&8191,be=ke>>>13,Ee=E[7]|0,Re=Ee&8191,ze=Ee>>>13,xi=E[8]|0,kt=xi&8191,Et=xi>>>13,ad=E[9]|0,Ft=ad&8191,tr=ad>>>13,oE=A[0]|0,rr=oE&8191,ir=oE>>>13,aE=A[1]|0,nr=aE&8191,or=aE>>>13,sE=A[2]|0,ar=sE&8191,sr=sE>>>13,uE=A[3]|0,ur=uE&8191,cr=uE>>>13,cE=A[4]|0,fr=cE&8191,lr=cE>>>13,fE=A[5]|0,hr=fE&8191,dr=fE>>>13,lE=A[6]|0,pr=lE&8191,gr=lE>>>13,hE=A[7]|0,mr=hE&8191,vr=hE>>>13,dE=A[8]|0,yr=dE&8191,br=dE>>>13,pE=A[9]|0,_r=pE&8191,wr=pE>>>13;w.negative=h.negative^v.negative,w.length=19,x=Math.imul(W,rr),m=Math.imul(W,ir),m=m+Math.imul(te,rr)|0,O=Math.imul(te,ir);var xv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(xv>>>26)|0,xv&=67108863,x=Math.imul(se,rr),m=Math.imul(se,ir),m=m+Math.imul(ae,rr)|0,O=Math.imul(ae,ir),x=x+Math.imul(W,nr)|0,m=m+Math.imul(W,or)|0,m=m+Math.imul(te,nr)|0,O=O+Math.imul(te,or)|0;var Ov=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Ov>>>26)|0,Ov&=67108863,x=Math.imul(me,rr),m=Math.imul(me,ir),m=m+Math.imul(C,rr)|0,O=Math.imul(C,ir),x=x+Math.imul(se,nr)|0,m=m+Math.imul(se,or)|0,m=m+Math.imul(ae,nr)|0,O=O+Math.imul(ae,or)|0,x=x+Math.imul(W,ar)|0,m=m+Math.imul(W,sr)|0,m=m+Math.imul(te,ar)|0,O=O+Math.imul(te,sr)|0;var Iv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Iv>>>26)|0,Iv&=67108863,x=Math.imul(Y,rr),m=Math.imul(Y,ir),m=m+Math.imul(X,rr)|0,O=Math.imul(X,ir),x=x+Math.imul(me,nr)|0,m=m+Math.imul(me,or)|0,m=m+Math.imul(C,nr)|0,O=O+Math.imul(C,or)|0,x=x+Math.imul(se,ar)|0,m=m+Math.imul(se,sr)|0,m=m+Math.imul(ae,ar)|0,O=O+Math.imul(ae,sr)|0,x=x+Math.imul(W,ur)|0,m=m+Math.imul(W,cr)|0,m=m+Math.imul(te,ur)|0,O=O+Math.imul(te,cr)|0;var Av=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Av>>>26)|0,Av&=67108863,x=Math.imul(ue,rr),m=Math.imul(ue,ir),m=m+Math.imul(le,rr)|0,O=Math.imul(le,ir),x=x+Math.imul(Y,nr)|0,m=m+Math.imul(Y,or)|0,m=m+Math.imul(X,nr)|0,O=O+Math.imul(X,or)|0,x=x+Math.imul(me,ar)|0,m=m+Math.imul(me,sr)|0,m=m+Math.imul(C,ar)|0,O=O+Math.imul(C,sr)|0,x=x+Math.imul(se,ur)|0,m=m+Math.imul(se,cr)|0,m=m+Math.imul(ae,ur)|0,O=O+Math.imul(ae,cr)|0,x=x+Math.imul(W,fr)|0,m=m+Math.imul(W,lr)|0,m=m+Math.imul(te,fr)|0,O=O+Math.imul(te,lr)|0;var Tv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Tv>>>26)|0,Tv&=67108863,x=Math.imul(ge,rr),m=Math.imul(ge,ir),m=m+Math.imul(ye,rr)|0,O=Math.imul(ye,ir),x=x+Math.imul(ue,nr)|0,m=m+Math.imul(ue,or)|0,m=m+Math.imul(le,nr)|0,O=O+Math.imul(le,or)|0,x=x+Math.imul(Y,ar)|0,m=m+Math.imul(Y,sr)|0,m=m+Math.imul(X,ar)|0,O=O+Math.imul(X,sr)|0,x=x+Math.imul(me,ur)|0,m=m+Math.imul(me,cr)|0,m=m+Math.imul(C,ur)|0,O=O+Math.imul(C,cr)|0,x=x+Math.imul(se,fr)|0,m=m+Math.imul(se,lr)|0,m=m+Math.imul(ae,fr)|0,O=O+Math.imul(ae,lr)|0,x=x+Math.imul(W,hr)|0,m=m+Math.imul(W,dr)|0,m=m+Math.imul(te,hr)|0,O=O+Math.imul(te,dr)|0;var Pv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Pv>>>26)|0,Pv&=67108863,x=Math.imul(Le,rr),m=Math.imul(Le,ir),m=m+Math.imul(be,rr)|0,O=Math.imul(be,ir),x=x+Math.imul(ge,nr)|0,m=m+Math.imul(ge,or)|0,m=m+Math.imul(ye,nr)|0,O=O+Math.imul(ye,or)|0,x=x+Math.imul(ue,ar)|0,m=m+Math.imul(ue,sr)|0,m=m+Math.imul(le,ar)|0,O=O+Math.imul(le,sr)|0,x=x+Math.imul(Y,ur)|0,m=m+Math.imul(Y,cr)|0,m=m+Math.imul(X,ur)|0,O=O+Math.imul(X,cr)|0,x=x+Math.imul(me,fr)|0,m=m+Math.imul(me,lr)|0,m=m+Math.imul(C,fr)|0,O=O+Math.imul(C,lr)|0,x=x+Math.imul(se,hr)|0,m=m+Math.imul(se,dr)|0,m=m+Math.imul(ae,hr)|0,O=O+Math.imul(ae,dr)|0,x=x+Math.imul(W,pr)|0,m=m+Math.imul(W,gr)|0,m=m+Math.imul(te,pr)|0,O=O+Math.imul(te,gr)|0;var Rv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Rv>>>26)|0,Rv&=67108863,x=Math.imul(Re,rr),m=Math.imul(Re,ir),m=m+Math.imul(ze,rr)|0,O=Math.imul(ze,ir),x=x+Math.imul(Le,nr)|0,m=m+Math.imul(Le,or)|0,m=m+Math.imul(be,nr)|0,O=O+Math.imul(be,or)|0,x=x+Math.imul(ge,ar)|0,m=m+Math.imul(ge,sr)|0,m=m+Math.imul(ye,ar)|0,O=O+Math.imul(ye,sr)|0,x=x+Math.imul(ue,ur)|0,m=m+Math.imul(ue,cr)|0,m=m+Math.imul(le,ur)|0,O=O+Math.imul(le,cr)|0,x=x+Math.imul(Y,fr)|0,m=m+Math.imul(Y,lr)|0,m=m+Math.imul(X,fr)|0,O=O+Math.imul(X,lr)|0,x=x+Math.imul(me,hr)|0,m=m+Math.imul(me,dr)|0,m=m+Math.imul(C,hr)|0,O=O+Math.imul(C,dr)|0,x=x+Math.imul(se,pr)|0,m=m+Math.imul(se,gr)|0,m=m+Math.imul(ae,pr)|0,O=O+Math.imul(ae,gr)|0,x=x+Math.imul(W,mr)|0,m=m+Math.imul(W,vr)|0,m=m+Math.imul(te,mr)|0,O=O+Math.imul(te,vr)|0;var kv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(kv>>>26)|0,kv&=67108863,x=Math.imul(kt,rr),m=Math.imul(kt,ir),m=m+Math.imul(Et,rr)|0,O=Math.imul(Et,ir),x=x+Math.imul(Re,nr)|0,m=m+Math.imul(Re,or)|0,m=m+Math.imul(ze,nr)|0,O=O+Math.imul(ze,or)|0,x=x+Math.imul(Le,ar)|0,m=m+Math.imul(Le,sr)|0,m=m+Math.imul(be,ar)|0,O=O+Math.imul(be,sr)|0,x=x+Math.imul(ge,ur)|0,m=m+Math.imul(ge,cr)|0,m=m+Math.imul(ye,ur)|0,O=O+Math.imul(ye,cr)|0,x=x+Math.imul(ue,fr)|0,m=m+Math.imul(ue,lr)|0,m=m+Math.imul(le,fr)|0,O=O+Math.imul(le,lr)|0,x=x+Math.imul(Y,hr)|0,m=m+Math.imul(Y,dr)|0,m=m+Math.imul(X,hr)|0,O=O+Math.imul(X,dr)|0,x=x+Math.imul(me,pr)|0,m=m+Math.imul(me,gr)|0,m=m+Math.imul(C,pr)|0,O=O+Math.imul(C,gr)|0,x=x+Math.imul(se,mr)|0,m=m+Math.imul(se,vr)|0,m=m+Math.imul(ae,mr)|0,O=O+Math.imul(ae,vr)|0,x=x+Math.imul(W,yr)|0,m=m+Math.imul(W,br)|0,m=m+Math.imul(te,yr)|0,O=O+Math.imul(te,br)|0;var Bv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Bv>>>26)|0,Bv&=67108863,x=Math.imul(Ft,rr),m=Math.imul(Ft,ir),m=m+Math.imul(tr,rr)|0,O=Math.imul(tr,ir),x=x+Math.imul(kt,nr)|0,m=m+Math.imul(kt,or)|0,m=m+Math.imul(Et,nr)|0,O=O+Math.imul(Et,or)|0,x=x+Math.imul(Re,ar)|0,m=m+Math.imul(Re,sr)|0,m=m+Math.imul(ze,ar)|0,O=O+Math.imul(ze,sr)|0,x=x+Math.imul(Le,ur)|0,m=m+Math.imul(Le,cr)|0,m=m+Math.imul(be,ur)|0,O=O+Math.imul(be,cr)|0,x=x+Math.imul(ge,fr)|0,m=m+Math.imul(ge,lr)|0,m=m+Math.imul(ye,fr)|0,O=O+Math.imul(ye,lr)|0,x=x+Math.imul(ue,hr)|0,m=m+Math.imul(ue,dr)|0,m=m+Math.imul(le,hr)|0,O=O+Math.imul(le,dr)|0,x=x+Math.imul(Y,pr)|0,m=m+Math.imul(Y,gr)|0,m=m+Math.imul(X,pr)|0,O=O+Math.imul(X,gr)|0,x=x+Math.imul(me,mr)|0,m=m+Math.imul(me,vr)|0,m=m+Math.imul(C,mr)|0,O=O+Math.imul(C,vr)|0,x=x+Math.imul(se,yr)|0,m=m+Math.imul(se,br)|0,m=m+Math.imul(ae,yr)|0,O=O+Math.imul(ae,br)|0,x=x+Math.imul(W,_r)|0,m=m+Math.imul(W,wr)|0,m=m+Math.imul(te,_r)|0,O=O+Math.imul(te,wr)|0;var Nv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Nv>>>26)|0,Nv&=67108863,x=Math.imul(Ft,nr),m=Math.imul(Ft,or),m=m+Math.imul(tr,nr)|0,O=Math.imul(tr,or),x=x+Math.imul(kt,ar)|0,m=m+Math.imul(kt,sr)|0,m=m+Math.imul(Et,ar)|0,O=O+Math.imul(Et,sr)|0,x=x+Math.imul(Re,ur)|0,m=m+Math.imul(Re,cr)|0,m=m+Math.imul(ze,ur)|0,O=O+Math.imul(ze,cr)|0,x=x+Math.imul(Le,fr)|0,m=m+Math.imul(Le,lr)|0,m=m+Math.imul(be,fr)|0,O=O+Math.imul(be,lr)|0,x=x+Math.imul(ge,hr)|0,m=m+Math.imul(ge,dr)|0,m=m+Math.imul(ye,hr)|0,O=O+Math.imul(ye,dr)|0,x=x+Math.imul(ue,pr)|0,m=m+Math.imul(ue,gr)|0,m=m+Math.imul(le,pr)|0,O=O+Math.imul(le,gr)|0,x=x+Math.imul(Y,mr)|0,m=m+Math.imul(Y,vr)|0,m=m+Math.imul(X,mr)|0,O=O+Math.imul(X,vr)|0,x=x+Math.imul(me,yr)|0,m=m+Math.imul(me,br)|0,m=m+Math.imul(C,yr)|0,O=O+Math.imul(C,br)|0,x=x+Math.imul(se,_r)|0,m=m+Math.imul(se,wr)|0,m=m+Math.imul(ae,_r)|0,O=O+Math.imul(ae,wr)|0;var Cv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Cv>>>26)|0,Cv&=67108863,x=Math.imul(Ft,ar),m=Math.imul(Ft,sr),m=m+Math.imul(tr,ar)|0,O=Math.imul(tr,sr),x=x+Math.imul(kt,ur)|0,m=m+Math.imul(kt,cr)|0,m=m+Math.imul(Et,ur)|0,O=O+Math.imul(Et,cr)|0,x=x+Math.imul(Re,fr)|0,m=m+Math.imul(Re,lr)|0,m=m+Math.imul(ze,fr)|0,O=O+Math.imul(ze,lr)|0,x=x+Math.imul(Le,hr)|0,m=m+Math.imul(Le,dr)|0,m=m+Math.imul(be,hr)|0,O=O+Math.imul(be,dr)|0,x=x+Math.imul(ge,pr)|0,m=m+Math.imul(ge,gr)|0,m=m+Math.imul(ye,pr)|0,O=O+Math.imul(ye,gr)|0,x=x+Math.imul(ue,mr)|0,m=m+Math.imul(ue,vr)|0,m=m+Math.imul(le,mr)|0,O=O+Math.imul(le,vr)|0,x=x+Math.imul(Y,yr)|0,m=m+Math.imul(Y,br)|0,m=m+Math.imul(X,yr)|0,O=O+Math.imul(X,br)|0,x=x+Math.imul(me,_r)|0,m=m+Math.imul(me,wr)|0,m=m+Math.imul(C,_r)|0,O=O+Math.imul(C,wr)|0;var Lv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Lv>>>26)|0,Lv&=67108863,x=Math.imul(Ft,ur),m=Math.imul(Ft,cr),m=m+Math.imul(tr,ur)|0,O=Math.imul(tr,cr),x=x+Math.imul(kt,fr)|0,m=m+Math.imul(kt,lr)|0,m=m+Math.imul(Et,fr)|0,O=O+Math.imul(Et,lr)|0,x=x+Math.imul(Re,hr)|0,m=m+Math.imul(Re,dr)|0,m=m+Math.imul(ze,hr)|0,O=O+Math.imul(ze,dr)|0,x=x+Math.imul(Le,pr)|0,m=m+Math.imul(Le,gr)|0,m=m+Math.imul(be,pr)|0,O=O+Math.imul(be,gr)|0,x=x+Math.imul(ge,mr)|0,m=m+Math.imul(ge,vr)|0,m=m+Math.imul(ye,mr)|0,O=O+Math.imul(ye,vr)|0,x=x+Math.imul(ue,yr)|0,m=m+Math.imul(ue,br)|0,m=m+Math.imul(le,yr)|0,O=O+Math.imul(le,br)|0,x=x+Math.imul(Y,_r)|0,m=m+Math.imul(Y,wr)|0,m=m+Math.imul(X,_r)|0,O=O+Math.imul(X,wr)|0;var Mv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Mv>>>26)|0,Mv&=67108863,x=Math.imul(Ft,fr),m=Math.imul(Ft,lr),m=m+Math.imul(tr,fr)|0,O=Math.imul(tr,lr),x=x+Math.imul(kt,hr)|0,m=m+Math.imul(kt,dr)|0,m=m+Math.imul(Et,hr)|0,O=O+Math.imul(Et,dr)|0,x=x+Math.imul(Re,pr)|0,m=m+Math.imul(Re,gr)|0,m=m+Math.imul(ze,pr)|0,O=O+Math.imul(ze,gr)|0,x=x+Math.imul(Le,mr)|0,m=m+Math.imul(Le,vr)|0,m=m+Math.imul(be,mr)|0,O=O+Math.imul(be,vr)|0,x=x+Math.imul(ge,yr)|0,m=m+Math.imul(ge,br)|0,m=m+Math.imul(ye,yr)|0,O=O+Math.imul(ye,br)|0,x=x+Math.imul(ue,_r)|0,m=m+Math.imul(ue,wr)|0,m=m+Math.imul(le,_r)|0,O=O+Math.imul(le,wr)|0;var Dv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Dv>>>26)|0,Dv&=67108863,x=Math.imul(Ft,hr),m=Math.imul(Ft,dr),m=m+Math.imul(tr,hr)|0,O=Math.imul(tr,dr),x=x+Math.imul(kt,pr)|0,m=m+Math.imul(kt,gr)|0,m=m+Math.imul(Et,pr)|0,O=O+Math.imul(Et,gr)|0,x=x+Math.imul(Re,mr)|0,m=m+Math.imul(Re,vr)|0,m=m+Math.imul(ze,mr)|0,O=O+Math.imul(ze,vr)|0,x=x+Math.imul(Le,yr)|0,m=m+Math.imul(Le,br)|0,m=m+Math.imul(be,yr)|0,O=O+Math.imul(be,br)|0,x=x+Math.imul(ge,_r)|0,m=m+Math.imul(ge,wr)|0,m=m+Math.imul(ye,_r)|0,O=O+Math.imul(ye,wr)|0;var qv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(qv>>>26)|0,qv&=67108863,x=Math.imul(Ft,pr),m=Math.imul(Ft,gr),m=m+Math.imul(tr,pr)|0,O=Math.imul(tr,gr),x=x+Math.imul(kt,mr)|0,m=m+Math.imul(kt,vr)|0,m=m+Math.imul(Et,mr)|0,O=O+Math.imul(Et,vr)|0,x=x+Math.imul(Re,yr)|0,m=m+Math.imul(Re,br)|0,m=m+Math.imul(ze,yr)|0,O=O+Math.imul(ze,br)|0,x=x+Math.imul(Le,_r)|0,m=m+Math.imul(Le,wr)|0,m=m+Math.imul(be,_r)|0,O=O+Math.imul(be,wr)|0;var Hv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Hv>>>26)|0,Hv&=67108863,x=Math.imul(Ft,mr),m=Math.imul(Ft,vr),m=m+Math.imul(tr,mr)|0,O=Math.imul(tr,vr),x=x+Math.imul(kt,yr)|0,m=m+Math.imul(kt,br)|0,m=m+Math.imul(Et,yr)|0,O=O+Math.imul(Et,br)|0,x=x+Math.imul(Re,_r)|0,m=m+Math.imul(Re,wr)|0,m=m+Math.imul(ze,_r)|0,O=O+Math.imul(ze,wr)|0;var Uv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Uv>>>26)|0,Uv&=67108863,x=Math.imul(Ft,yr),m=Math.imul(Ft,br),m=m+Math.imul(tr,yr)|0,O=Math.imul(tr,br),x=x+Math.imul(kt,_r)|0,m=m+Math.imul(kt,wr)|0,m=m+Math.imul(Et,_r)|0,O=O+Math.imul(Et,wr)|0;var Fv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Fv>>>26)|0,Fv&=67108863,x=Math.imul(Ft,_r),m=Math.imul(Ft,wr),m=m+Math.imul(tr,_r)|0,O=Math.imul(tr,wr);var jv=(N+x|0)+((m&8191)<<13)|0;return N=(O+(m>>>13)|0)+(jv>>>26)|0,jv&=67108863,L[0]=xv,L[1]=Ov,L[2]=Iv,L[3]=Av,L[4]=Tv,L[5]=Pv,L[6]=Rv,L[7]=kv,L[8]=Bv,L[9]=Nv,L[10]=Cv,L[11]=Lv,L[12]=Mv,L[13]=Dv,L[14]=qv,L[15]=Hv,L[16]=Uv,L[17]=Fv,L[18]=jv,N!==0&&(L[19]=N,w.length++),w};Math.imul||(_=y);function T(S,h,v){v.negative=h.negative^S.negative,v.length=S.length+h.length;for(var w=0,E=0,A=0;A<v.length-1;A++){var L=E;E=0;for(var N=w&67108863,x=Math.min(A,h.length-1),m=Math.max(0,A-S.length+1);m<=x;m++){var O=A-m,z=S.words[O]|0,W=h.words[m]|0,te=z*W,ie=te&67108863;L=L+(te/67108864|0)|0,ie=ie+N|0,N=ie&67108863,L=L+(ie>>>26)|0,E+=L>>>26,L&=67108863}v.words[A]=N,w=L,L=E}return w!==0?v.words[A]=w:v.length--,v.strip()}function R(S,h,v){var w=new B;return w.mulp(S,h,v)}n.prototype.mulTo=function(h,v){var w,E=this.length+h.length;return this.length===10&&h.length===10?w=_(this,h,v):E<63?w=y(this,h,v):E<1024?w=T(this,h,v):w=R(this,h,v),w};function B(S,h){this.x=S,this.y=h}B.prototype.makeRBT=function(h){for(var v=new Array(h),w=n.prototype._countBits(h)-1,E=0;E<h;E++)v[E]=this.revBin(E,w,h);return v},B.prototype.revBin=function(h,v,w){if(h===0||h===w-1)return h;for(var E=0,A=0;A<v;A++)E|=(h&1)<<v-A-1,h>>=1;return E},B.prototype.permute=function(h,v,w,E,A,L){for(var N=0;N<L;N++)E[N]=v[h[N]],A[N]=w[h[N]]},B.prototype.transform=function(h,v,w,E,A,L){this.permute(L,h,v,w,E,A);for(var N=1;N<A;N<<=1)for(var x=N<<1,m=Math.cos(2*Math.PI/x),O=Math.sin(2*Math.PI/x),z=0;z<A;z+=x)for(var W=m,te=O,ie=0;ie<N;ie++){var se=w[z+ie],ae=E[z+ie],we=w[z+ie+N],me=E[z+ie+N],C=W*we-te*me;me=W*me+te*we,we=C,w[z+ie]=se+we,E[z+ie]=ae+me,w[z+ie+N]=se-we,E[z+ie+N]=ae-me,ie!==x&&(C=m*W-O*te,te=m*te+O*W,W=C)}},B.prototype.guessLen13b=function(h,v){var w=Math.max(v,h)|1,E=w&1,A=0;for(w=w/2|0;w;w=w>>>1)A++;return 1<<A+1+E},B.prototype.conjugate=function(h,v,w){if(!(w<=1))for(var E=0;E<w/2;E++){var A=h[E];h[E]=h[w-E-1],h[w-E-1]=A,A=v[E],v[E]=-v[w-E-1],v[w-E-1]=-A}},B.prototype.normalize13b=function(h,v){for(var w=0,E=0;E<v/2;E++){var A=Math.round(h[2*E+1]/v)*8192+Math.round(h[2*E]/v)+w;h[E]=A&67108863,A<67108864?w=0:w=A/67108864|0}return h},B.prototype.convert13b=function(h,v,w,E){for(var A=0,L=0;L<v;L++)A=A+(h[L]|0),w[2*L]=A&8191,A=A>>>13,w[2*L+1]=A&8191,A=A>>>13;for(L=2*v;L<E;++L)w[L]=0;r(A===0),r((A&-8192)===0)},B.prototype.stub=function(h){for(var v=new Array(h),w=0;w<h;w++)v[w]=0;return v},B.prototype.mulp=function(h,v,w){var E=2*this.guessLen13b(h.length,v.length),A=this.makeRBT(E),L=this.stub(E),N=new Array(E),x=new Array(E),m=new Array(E),O=new Array(E),z=new Array(E),W=new Array(E),te=w.words;te.length=E,this.convert13b(h.words,h.length,N,E),this.convert13b(v.words,v.length,O,E),this.transform(N,L,x,m,E,A),this.transform(O,L,z,W,E,A);for(var ie=0;ie<E;ie++){var se=x[ie]*z[ie]-m[ie]*W[ie];m[ie]=x[ie]*W[ie]+m[ie]*z[ie],x[ie]=se}return this.conjugate(x,m,E),this.transform(x,m,te,L,E,A),this.conjugate(te,L,E),this.normalize13b(te,E),w.negative=h.negative^v.negative,w.length=h.length+v.length,w.strip()},n.prototype.mul=function(h){var v=new n(null);return v.words=new Array(this.length+h.length),this.mulTo(h,v)},n.prototype.mulf=function(h){var v=new n(null);return v.words=new Array(this.length+h.length),R(this,h,v)},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 v=0,w=0;w<this.length;w++){var E=(this.words[w]|0)*h,A=(E&67108863)+(v&67108863);v>>=26,v+=E/67108864|0,v+=A>>>26,this.words[w]=A&67108863}return v!==0&&(this.words[w]=v,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 v=p(h);if(v.length===0)return new n(1);for(var w=this,E=0;E<v.length&&v[E]===0;E++,w=w.sqr());if(++E<v.length)for(var A=w.sqr();E<v.length;E++,A=A.sqr())v[E]!==0&&(w=w.mul(A));return w},n.prototype.iushln=function(h){r(typeof h=="number"&&h>=0);var v=h%26,w=(h-v)/26,E=67108863>>>26-v<<26-v,A;if(v!==0){var L=0;for(A=0;A<this.length;A++){var N=this.words[A]&E,x=(this.words[A]|0)-N<<v;this.words[A]=x|L,L=N>>>26-v}L&&(this.words[A]=L,this.length++)}if(w!==0){for(A=this.length-1;A>=0;A--)this.words[A+w]=this.words[A];for(A=0;A<w;A++)this.words[A]=0;this.length+=w}return this.strip()},n.prototype.ishln=function(h){return r(this.negative===0),this.iushln(h)},n.prototype.iushrn=function(h,v,w){r(typeof h=="number"&&h>=0);var E;v?E=(v-v%26)/26:E=0;var A=h%26,L=Math.min((h-A)/26,this.length),N=67108863^67108863>>>A<<A,x=w;if(E-=L,E=Math.max(0,E),x){for(var m=0;m<L;m++)x.words[m]=this.words[m];x.length=L}if(L!==0)if(this.length>L)for(this.length-=L,m=0;m<this.length;m++)this.words[m]=this.words[m+L];else this.words[0]=0,this.length=1;var O=0;for(m=this.length-1;m>=0&&(O!==0||m>=E);m--){var z=this.words[m]|0;this.words[m]=O<<26-A|z>>>A,O=z&N}return x&&O!==0&&(x.words[x.length++]=O),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(h,v,w){return r(this.negative===0),this.iushrn(h,v,w)},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 v=h%26,w=(h-v)/26,E=1<<v;if(this.length<=w)return!1;var A=this.words[w];return!!(A&E)},n.prototype.imaskn=function(h){r(typeof h=="number"&&h>=0);var v=h%26,w=(h-v)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(v!==0&&w++,this.length=Math.min(w,this.length),v!==0){var E=67108863^67108863>>>v<<v;this.words[this.length-1]&=E}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 v=0;v<this.length&&this.words[v]>=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+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 v=0;v<this.length&&this.words[v]<0;v++)this.words[v]+=67108864,this.words[v+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,v,w){var E=h.length+w,A;this._expand(E);var L,N=0;for(A=0;A<h.length;A++){L=(this.words[A+w]|0)+N;var x=(h.words[A]|0)*v;L-=x&67108863,N=(L>>26)-(x/67108864|0),this.words[A+w]=L&67108863}for(;A<this.length-w;A++)L=(this.words[A+w]|0)+N,N=L>>26,this.words[A+w]=L&67108863;if(N===0)return this.strip();for(r(N===-1),N=0,A=0;A<this.length;A++)L=-(this.words[A]|0)+N,N=L>>26,this.words[A]=L&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(h,v){var w=this.length-h.length,E=this.clone(),A=h,L=A.words[A.length-1]|0,N=this._countBits(L);w=26-N,w!==0&&(A=A.ushln(w),E.iushln(w),L=A.words[A.length-1]|0);var x=E.length-A.length,m;if(v!=="mod"){m=new n(null),m.length=x+1,m.words=new Array(m.length);for(var O=0;O<m.length;O++)m.words[O]=0}var z=E.clone()._ishlnsubmul(A,1,x);z.negative===0&&(E=z,m&&(m.words[x]=1));for(var W=x-1;W>=0;W--){var te=(E.words[A.length+W]|0)*67108864+(E.words[A.length+W-1]|0);for(te=Math.min(te/L|0,67108863),E._ishlnsubmul(A,te,W);E.negative!==0;)te--,E.negative=0,E._ishlnsubmul(A,1,W),E.isZero()||(E.negative^=1);m&&(m.words[W]=te)}return m&&m.strip(),E.strip(),v!=="div"&&w!==0&&E.iushrn(w),{div:m||null,mod:E}},n.prototype.divmod=function(h,v,w){if(r(!h.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var E,A,L;return this.negative!==0&&h.negative===0?(L=this.neg().divmod(h,v),v!=="mod"&&(E=L.div.neg()),v!=="div"&&(A=L.mod.neg(),w&&A.negative!==0&&A.iadd(h)),{div:E,mod:A}):this.negative===0&&h.negative!==0?(L=this.divmod(h.neg(),v),v!=="mod"&&(E=L.div.neg()),{div:E,mod:L.mod}):(this.negative&h.negative)!==0?(L=this.neg().divmod(h.neg(),v),v!=="div"&&(A=L.mod.neg(),w&&A.negative!==0&&A.isub(h)),{div:L.div,mod:A}):h.length>this.length||this.cmp(h)<0?{div:new n(0),mod:this}:h.length===1?v==="div"?{div:this.divn(h.words[0]),mod:null}:v==="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,v)},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 v=this.divmod(h);if(v.mod.isZero())return v.div;var w=v.mod.abs(),E=h.abs().iushrn(1),A=h.words[0]&1,L=w.cmp(E);if(L<0||A===1&&L===0)return v.div;var N=new n(1);return N.negative=this.negative^h.negative,v.div.iadd(N)},n.prototype.modn=function(h){r(h<=67108863);for(var v=(1<<26)%h,w=0,E=this.length-1;E>=0;E--)w=(v*w+(this.words[E]|0))%h;return w},n.prototype.idivn=function(h){r(h<=67108863);for(var v=0,w=this.length-1;w>=0;w--){var E=(this.words[w]|0)+v*67108864;this.words[w]=E/h|0,v=E%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 v=this,w=h.clone();v.negative!==0?v=v.umod(h):v=v.clone();for(var E=new n(1),A=new n(0),L=new n(0),N=new n(1),x=0;v.isEven()&&w.isEven();)v.iushrn(1),w.iushrn(1),++x;for(var m=w.clone(),O=v.clone();!v.isZero();){for(var z=0,W=1;(v.words[0]&W)===0&&z<26;++z,W<<=1);if(z>0)for(v.iushrn(z);z-- >0;)(E.isOdd()||A.isOdd())&&(E.iadd(m),A.isub(O)),E.iushrn(1),A.iushrn(1);for(var te=0,ie=1;(w.words[0]&ie)===0&&te<26;++te,ie<<=1);if(te>0)for(w.iushrn(te);te-- >0;)(L.isOdd()||N.isOdd())&&(L.iadd(m),N.isub(O)),L.iushrn(1),N.iushrn(1);v.cmp(w)>=0?(v.isub(w),E.isub(L),A.isub(N)):(w.isub(v),L.isub(E),N.isub(A))}return{a:L,b:N,gcd:w.iushln(x)}},n.prototype._invmp=function(h){r(h.negative===0),r(!h.isZero());var v=this,w=h.clone();v.negative!==0?v=v.umod(h):v=v.clone();for(var E=new n(1),A=new n(0),L=w.clone();v.cmpn(1)>0&&w.cmpn(1)>0;){for(var N=0,x=1;(v.words[0]&x)===0&&N<26;++N,x<<=1);if(N>0)for(v.iushrn(N);N-- >0;)E.isOdd()&&E.iadd(L),E.iushrn(1);for(var m=0,O=1;(w.words[0]&O)===0&&m<26;++m,O<<=1);if(m>0)for(w.iushrn(m);m-- >0;)A.isOdd()&&A.iadd(L),A.iushrn(1);v.cmp(w)>=0?(v.isub(w),E.isub(A)):(w.isub(v),A.isub(E))}var z;return v.cmpn(1)===0?z=E:z=A,z.cmpn(0)<0&&z.iadd(h),z},n.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var v=this.clone(),w=h.clone();v.negative=0,w.negative=0;for(var E=0;v.isEven()&&w.isEven();E++)v.iushrn(1),w.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;w.isEven();)w.iushrn(1);var A=v.cmp(w);if(A<0){var L=v;v=w,w=L}else if(A===0||w.cmpn(1)===0)break;v.isub(w)}while(!0);return w.iushln(E)},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 v=h%26,w=(h-v)/26,E=1<<v;if(this.length<=w)return this._expand(w+1),this.words[w]|=E,this;for(var A=E,L=w;A!==0&&L<this.length;L++){var N=this.words[L]|0;N+=A,A=N>>>26,N&=67108863,this.words[L]=N}return A!==0&&(this.words[L]=A,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(h){var v=h<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var w;if(this.length>1)w=1;else{v&&(h=-h),r(h<=67108863,"Number is too big");var E=this.words[0]|0;w=E===h?0:E<h?-1:1}return this.negative!==0?-w|0:w},n.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var v=this.ucmp(h);return this.negative!==0?-v|0:v},n.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var v=0,w=this.length-1;w>=0;w--){var E=this.words[w]|0,A=h.words[w]|0;if(E!==A){E<A?v=-1:E>A&&(v=1);break}}return v},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 K(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 H={k256:null,p224:null,p192:null,p25519:null};function F(S,h){this.name=S,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()}F.prototype._tmp=function(){var h=new n(null);return h.words=new Array(Math.ceil(this.n/13)),h},F.prototype.ireduce=function(h){var v=h,w;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),w=v.bitLength();while(w>this.n);var E=w<this.n?-1:v.ucmp(this.p);return E===0?(v.words[0]=0,v.length=1):E>0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},F.prototype.split=function(h,v){h.iushrn(this.n,0,v)},F.prototype.imulK=function(h){return h.imul(this.k)};function I(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(I,F),I.prototype.split=function(h,v){for(var w=4194303,E=Math.min(h.length,9),A=0;A<E;A++)v.words[A]=h.words[A];if(v.length=E,h.length<=9){h.words[0]=0,h.length=1;return}var L=h.words[9];for(v.words[v.length++]=L&w,A=10;A<h.length;A++){var N=h.words[A]|0;h.words[A-10]=(N&w)<<4|L>>>22,L=N}L>>>=22,h.words[A-10]=L,L===0&&h.length>10?h.length-=10:h.length-=9},I.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var v=0,w=0;w<h.length;w++){var E=h.words[w]|0;v+=E*977,h.words[w]=v&67108863,v=E*64+(v/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function k(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(k,F);function D(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(D,F);function j(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(j,F),j.prototype.imulK=function(h){for(var v=0,w=0;w<h.length;w++){var E=(h.words[w]|0)*19+v,A=E&67108863;E>>>=26,h.words[w]=A,v=E}return v!==0&&(h.words[h.length++]=v),h},n._prime=function(h){if(H[h])return H[h];var v;if(h==="k256")v=new I;else if(h==="p224")v=new k;else if(h==="p192")v=new D;else if(h==="p25519")v=new j;else throw new Error("Unknown prime "+h);return H[h]=v,v};function K(S){if(typeof S=="string"){var h=n._prime(S);this.m=h.p,this.prime=h}else r(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}K.prototype._verify1=function(h){r(h.negative===0,"red works only with positives"),r(h.red,"red works only with red numbers")},K.prototype._verify2=function(h,v){r((h.negative|v.negative)===0,"red works only with positives"),r(h.red&&h.red===v.red,"red works only with red numbers")},K.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):h.umod(this.m)._forceRed(this)},K.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},K.prototype.add=function(h,v){this._verify2(h,v);var w=h.add(v);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},K.prototype.iadd=function(h,v){this._verify2(h,v);var w=h.iadd(v);return w.cmp(this.m)>=0&&w.isub(this.m),w},K.prototype.sub=function(h,v){this._verify2(h,v);var w=h.sub(v);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},K.prototype.isub=function(h,v){this._verify2(h,v);var w=h.isub(v);return w.cmpn(0)<0&&w.iadd(this.m),w},K.prototype.shl=function(h,v){return this._verify1(h),this.imod(h.ushln(v))},K.prototype.imul=function(h,v){return this._verify2(h,v),this.imod(h.imul(v))},K.prototype.mul=function(h,v){return this._verify2(h,v),this.imod(h.mul(v))},K.prototype.isqr=function(h){return this.imul(h,h.clone())},K.prototype.sqr=function(h){return this.mul(h,h)},K.prototype.sqrt=function(h){if(h.isZero())return h.clone();var v=this.m.andln(3);if(r(v%2===1),v===3){var w=this.m.add(new n(1)).iushrn(2);return this.pow(h,w)}for(var E=this.m.subn(1),A=0;!E.isZero()&&E.andln(1)===0;)A++,E.iushrn(1);r(!E.isZero());var L=new n(1).toRed(this),N=L.redNeg(),x=this.m.subn(1).iushrn(1),m=this.m.bitLength();for(m=new n(2*m*m).toRed(this);this.pow(m,x).cmp(N)!==0;)m.redIAdd(N);for(var O=this.pow(m,E),z=this.pow(h,E.addn(1).iushrn(1)),W=this.pow(h,E),te=A;W.cmp(L)!==0;){for(var ie=W,se=0;ie.cmp(L)!==0;se++)ie=ie.redSqr();r(se<te);var ae=this.pow(O,new n(1).iushln(te-se-1));z=z.redMul(ae),O=ae.redSqr(),W=W.redMul(O),te=se}return z},K.prototype.invm=function(h){var v=h._invmp(this.m);return v.negative!==0?(v.negative=0,this.imod(v).redNeg()):this.imod(v)},K.prototype.pow=function(h,v){if(v.isZero())return new n(1).toRed(this);if(v.cmpn(1)===0)return h.clone();var w=4,E=new Array(1<<w);E[0]=new n(1).toRed(this),E[1]=h;for(var A=2;A<E.length;A++)E[A]=this.mul(E[A-1],h);var L=E[0],N=0,x=0,m=v.bitLength()%26;for(m===0&&(m=26),A=v.length-1;A>=0;A--){for(var O=v.words[A],z=m-1;z>=0;z--){var W=O>>z&1;if(L!==E[0]&&(L=this.sqr(L)),W===0&&N===0){x=0;continue}N<<=1,N|=W,x++,!(x!==w&&(A!==0||z!==0))&&(L=this.mul(L,E[N]),x=0,N=0)}m=26}return L},K.prototype.convertTo=function(h){var v=h.umod(this.m);return v===h?v.clone():v},K.prototype.convertFrom=function(h){var v=h.clone();return v.red=null,v},n.mont=function(h){return new G(h)};function G(S){K.call(this,S),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(G,K),G.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},G.prototype.convertFrom=function(h){var v=this.imod(h.mul(this.rinv));return v.red=null,v},G.prototype.imul=function(h,v){if(h.isZero()||v.isZero())return h.words[0]=0,h.length=1,h;var w=h.imul(v),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),A=w.isub(E).iushrn(this.shift),L=A;return A.cmp(this.m)>=0?L=A.isub(this.m):A.cmpn(0)<0&&(L=A.iadd(this.m)),L._forceRed(this)},G.prototype.mul=function(h,v){if(h.isZero()||v.isZero())return new n(0)._forceRed(this);var w=h.mul(v),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),A=w.isub(E).iushrn(this.shift),L=A;return A.cmp(this.m)>=0?L=A.isub(this.m):A.cmpn(0)<0&&(L=A.iadd(this.m)),L._forceRed(this)},G.prototype.invm=function(h){var v=this.imod(h._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(typeof t0>"u"||t0,jE)});var vt=P(($Q,r0)=>{g();typeof Object.create=="function"?r0.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:r0.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 Qr=P((i0,KE)=>{g();var hd=jt(),Wn=hd.Buffer;function zE(e,t){for(var r in e)t[r]=e[r]}Wn.from&&Wn.alloc&&Wn.allocUnsafe&&Wn.allocUnsafeSlow?KE.exports=hd:(zE(hd,i0),i0.Buffer=Ss);function Ss(e,t,r){return Wn(e,t,r)}Ss.prototype=Object.create(Wn.prototype);zE(Wn,Ss);Ss.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Wn(e,t,r)};Ss.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Wn(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Ss.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Wn(e)};Ss.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return hd.SlowBuffer(e)}});var Du=P((QQ,n0)=>{"use strict";g();var Mu=typeof Reflect=="object"?Reflect:null,VE=Mu&&typeof Mu.apply=="function"?Mu.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},dd;Mu&&typeof Mu.ownKeys=="function"?dd=Mu.ownKeys:Object.getOwnPropertySymbols?dd=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:dd=function(t){return Object.getOwnPropertyNames(t)};function sH(e){console&&console.warn&&console.warn(e)}var WE=Number.isNaN||function(t){return t!==t};function gt(){gt.init.call(this)}n0.exports=gt;n0.exports.once=lH;gt.EventEmitter=gt;gt.prototype._events=void 0;gt.prototype._eventsCount=0;gt.prototype._maxListeners=void 0;var GE=10;function pd(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(gt,"defaultMaxListeners",{enumerable:!0,get:function(){return GE},set:function(e){if(typeof e!="number"||e<0||WE(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");GE=e}});gt.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};gt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||WE(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 YE(e){return e._maxListeners===void 0?gt.defaultMaxListeners:e._maxListeners}gt.prototype.getMaxListeners=function(){return YE(this)};gt.prototype.emit=function(t){for(var r=[],i=1;i<arguments.length;i++)r.push(arguments[i]);var n=t==="error",o=this._events;if(o!==void 0)n=n&&o.error===void 0;else if(!n)return!1;if(n){var a;if(r.length>0&&(a=r[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[t];if(u===void 0)return!1;if(typeof u=="function")VE(u,this,r);else for(var c=u.length,l=QE(u,c),i=0;i<c;++i)VE(l[i],this,r);return!0};function ZE(e,t,r,i){var n,o,a;if(pd(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),a===void 0)a=o[t]=r,++e._eventsCount;else if(typeof a=="function"?a=o[t]=i?[r,a]:[a,r]:i?a.unshift(r):a.push(r),n=YE(e),n>0&&a.length>n&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,sH(s)}return e}gt.prototype.addListener=function(t,r){return ZE(this,t,r,!1)};gt.prototype.on=gt.prototype.addListener;gt.prototype.prependListener=function(t,r){return ZE(this,t,r,!0)};function uH(){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 $E(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=uH.bind(i);return n.listener=r,i.wrapFn=n,n}gt.prototype.once=function(t,r){return pd(r),this.on(t,$E(this,t,r)),this};gt.prototype.prependOnceListener=function(t,r){return pd(r),this.prependListener(t,$E(this,t,r)),this};gt.prototype.removeListener=function(t,r){var i,n,o,a,s;if(pd(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(o=-1,a=i.length-1;a>=0;a--)if(i[a]===r||i[a].listener===r){s=i[a].listener,o=a;break}if(o<0)return this;o===0?i.shift():cH(i,o),i.length===1&&(n[t]=i[0]),n.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};gt.prototype.off=gt.prototype.removeListener;gt.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 o=Object.keys(i),a;for(n=0;n<o.length;++n)a=o[n],a!=="removeListener"&&this.removeAllListeners(a);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 XE(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?fH(n):QE(n,n.length)}gt.prototype.listeners=function(t){return XE(this,t,!0)};gt.prototype.rawListeners=function(t){return XE(this,t,!1)};gt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):JE.call(e,t)};gt.prototype.listenerCount=JE;function JE(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}gt.prototype.eventNames=function(){return this._eventsCount>0?dd(this._events):[]};function QE(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}function cH(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function fH(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function lH(e,t){return new Promise(function(r,i){function n(a){e.removeListener(t,o),i(a)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",n),r([].slice.call(arguments))}ex(e,t,o,{once:!0}),t!=="error"&&hH(e,n,{once:!0})})}function hH(e,t,r){typeof e.on=="function"&&ex(e,"error",t,r)}function ex(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(o){i.once&&e.removeEventListener(t,n),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var o0=P((tee,tx)=>{g();tx.exports=Du().EventEmitter});var gd=P((iee,rx)=>{"use strict";g();rx.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 o 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 a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[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 kf=P((oee,ix)=>{"use strict";g();var dH=gd();ix.exports=function(){return dH()&&!!Symbol.toStringTag}});var md=P((see,nx)=>{"use strict";g();nx.exports=Object});var ax=P((cee,ox)=>{"use strict";g();ox.exports=Error});var ux=P((lee,sx)=>{"use strict";g();sx.exports=EvalError});var fx=P((dee,cx)=>{"use strict";g();cx.exports=RangeError});var hx=P((gee,lx)=>{"use strict";g();lx.exports=ReferenceError});var a0=P((vee,dx)=>{"use strict";g();dx.exports=SyntaxError});var Es=P((bee,px)=>{"use strict";g();px.exports=TypeError});var mx=P((wee,gx)=>{"use strict";g();gx.exports=URIError});var yx=P((Eee,vx)=>{"use strict";g();vx.exports=Math.abs});var _x=P((Oee,bx)=>{"use strict";g();bx.exports=Math.floor});var Sx=P((Aee,wx)=>{"use strict";g();wx.exports=Math.max});var xx=P((Pee,Ex)=>{"use strict";g();Ex.exports=Math.min});var Ix=P((kee,Ox)=>{"use strict";g();Ox.exports=Math.pow});var Tx=P((Nee,Ax)=>{"use strict";g();Ax.exports=Math.round});var Rx=P((Lee,Px)=>{"use strict";g();Px.exports=Number.isNaN||function(t){return t!==t}});var Bx=P((Dee,kx)=>{"use strict";g();var pH=Rx();kx.exports=function(t){return pH(t)||t===0?t:t<0?-1:1}});var Cx=P((Hee,Nx)=>{"use strict";g();Nx.exports=Object.getOwnPropertyDescriptor});var xs=P((Fee,Lx)=>{"use strict";g();var vd=Cx();if(vd)try{vd([],"length")}catch{vd=null}Lx.exports=vd});var Bf=P((zee,Mx)=>{"use strict";g();var yd=Object.defineProperty||!1;if(yd)try{yd({},"a",{value:1})}catch{yd=!1}Mx.exports=yd});var Hx=P((Vee,qx)=>{"use strict";g();var Dx=typeof Symbol<"u"&&Symbol,gH=gd();qx.exports=function(){return typeof Dx!="function"||typeof Symbol!="function"||typeof Dx("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:gH()}});var s0=P((Wee,Ux)=>{"use strict";g();Ux.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var u0=P((Zee,Fx)=>{"use strict";g();var mH=md();Fx.exports=mH.getPrototypeOf||null});var Kx=P((Xee,zx)=>{"use strict";g();var vH="Function.prototype.bind called on incompatible ",yH=Object.prototype.toString,bH=Math.max,_H="[object Function]",jx=function(t,r){for(var i=[],n=0;n<t.length;n+=1)i[n]=t[n];for(var o=0;o<r.length;o+=1)i[o+t.length]=r[o];return i},wH=function(t,r){for(var i=[],n=r||0,o=0;n<t.length;n+=1,o+=1)i[o]=t[n];return i},SH=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r};zx.exports=function(t){var r=this;if(typeof r!="function"||yH.apply(r)!==_H)throw new TypeError(vH+r);for(var i=wH(arguments,1),n,o=function(){if(this instanceof n){var l=r.apply(this,jx(i,arguments));return Object(l)===l?l:this}return r.apply(t,jx(i,arguments))},a=bH(0,r.length-i.length),s=[],u=0;u<a;u++)s[u]="$"+u;if(n=Function("binder","return function ("+SH(s,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var c=function(){};c.prototype=r.prototype,n.prototype=new c,c.prototype=null}return n}});var qu=P((Qee,Vx)=>{"use strict";g();var EH=Kx();Vx.exports=Function.prototype.bind||EH});var bd=P((tte,Gx)=>{"use strict";g();Gx.exports=Function.prototype.call});var _d=P((ite,Wx)=>{"use strict";g();Wx.exports=Function.prototype.apply});var Zx=P((ote,Yx)=>{"use strict";g();Yx.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var c0=P((ste,$x)=>{"use strict";g();var xH=qu(),OH=_d(),IH=bd(),AH=Zx();$x.exports=AH||xH.call(IH,OH)});var wd=P((cte,Xx)=>{"use strict";g();var TH=qu(),PH=Es(),RH=bd(),kH=c0();Xx.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new PH("a function is required");return kH(TH,RH,t)}});var i1=P((lte,r1)=>{"use strict";g();var BH=wd(),Jx=xs(),e1;try{e1=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var f0=!!e1&&Jx&&Jx(Object.prototype,"__proto__"),t1=Object,Qx=t1.getPrototypeOf;r1.exports=f0&&typeof f0.get=="function"?BH([f0.get]):typeof Qx=="function"?function(t){return Qx(t==null?t:t1(t))}:!1});var Sd=P((dte,s1)=>{"use strict";g();var n1=s0(),o1=u0(),a1=i1();s1.exports=n1?function(t){return n1(t)}:o1?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return o1(t)}:a1?function(t){return a1(t)}:null});var l0=P((gte,u1)=>{"use strict";g();var NH=Function.prototype.call,CH=Object.prototype.hasOwnProperty,LH=qu();u1.exports=LH.call(NH,CH)});var Od=P((vte,p1)=>{"use strict";g();var Ke,MH=md(),DH=ax(),qH=ux(),HH=fx(),UH=hx(),ju=a0(),Fu=Es(),FH=mx(),jH=yx(),zH=_x(),KH=Sx(),VH=xx(),GH=Ix(),WH=Tx(),YH=Bx(),h1=Function,h0=function(e){try{return h1('"use strict"; return ('+e+").constructor;")()}catch{}},Nf=xs(),ZH=Bf(),d0=function(){throw new Fu},$H=Nf?(function(){try{return arguments.callee,d0}catch{try{return Nf(arguments,"callee").get}catch{return d0}}})():d0,Hu=Hx()(),Kr=Sd(),XH=u0(),JH=s0(),d1=_d(),Cf=bd(),Uu={},QH=typeof Uint8Array>"u"||!Kr?Ke:Kr(Uint8Array),Os={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ke:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ke:ArrayBuffer,"%ArrayIteratorPrototype%":Hu&&Kr?Kr([][Symbol.iterator]()):Ke,"%AsyncFromSyncIteratorPrototype%":Ke,"%AsyncFunction%":Uu,"%AsyncGenerator%":Uu,"%AsyncGeneratorFunction%":Uu,"%AsyncIteratorPrototype%":Uu,"%Atomics%":typeof Atomics>"u"?Ke:Atomics,"%BigInt%":typeof BigInt>"u"?Ke:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ke:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ke:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ke:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":DH,"%eval%":eval,"%EvalError%":qH,"%Float16Array%":typeof Float16Array>"u"?Ke:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Ke:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ke:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ke:FinalizationRegistry,"%Function%":h1,"%GeneratorFunction%":Uu,"%Int8Array%":typeof Int8Array>"u"?Ke:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ke:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ke:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Hu&&Kr?Kr(Kr([][Symbol.iterator]())):Ke,"%JSON%":typeof JSON=="object"?JSON:Ke,"%Map%":typeof Map>"u"?Ke:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Hu||!Kr?Ke:Kr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":MH,"%Object.getOwnPropertyDescriptor%":Nf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ke:Promise,"%Proxy%":typeof Proxy>"u"?Ke:Proxy,"%RangeError%":HH,"%ReferenceError%":UH,"%Reflect%":typeof Reflect>"u"?Ke:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ke:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Hu||!Kr?Ke:Kr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ke:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Hu&&Kr?Kr(""[Symbol.iterator]()):Ke,"%Symbol%":Hu?Symbol:Ke,"%SyntaxError%":ju,"%ThrowTypeError%":$H,"%TypedArray%":QH,"%TypeError%":Fu,"%Uint8Array%":typeof Uint8Array>"u"?Ke:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ke:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ke:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ke:Uint32Array,"%URIError%":FH,"%WeakMap%":typeof WeakMap>"u"?Ke:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ke:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ke:WeakSet,"%Function.prototype.call%":Cf,"%Function.prototype.apply%":d1,"%Object.defineProperty%":ZH,"%Object.getPrototypeOf%":XH,"%Math.abs%":jH,"%Math.floor%":zH,"%Math.max%":KH,"%Math.min%":VH,"%Math.pow%":GH,"%Math.round%":WH,"%Math.sign%":YH,"%Reflect.getPrototypeOf%":JH};if(Kr)try{null.error}catch(e){c1=Kr(Kr(e)),Os["%Error.prototype%"]=c1}var c1,eU=function e(t){var r;if(t==="%AsyncFunction%")r=h0("async function () {}");else if(t==="%GeneratorFunction%")r=h0("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=h0("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Kr&&(r=Kr(n.prototype))}return Os[t]=r,r},f1={__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"]},Lf=qu(),Ed=l0(),tU=Lf.call(Cf,Array.prototype.concat),rU=Lf.call(d1,Array.prototype.splice),l1=Lf.call(Cf,String.prototype.replace),xd=Lf.call(Cf,String.prototype.slice),iU=Lf.call(Cf,RegExp.prototype.exec),nU=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oU=/\\(\\)?/g,aU=function(t){var r=xd(t,0,1),i=xd(t,-1);if(r==="%"&&i!=="%")throw new ju("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new ju("invalid intrinsic syntax, expected opening `%`");var n=[];return l1(t,nU,function(o,a,s,u){n[n.length]=s?l1(u,oU,"$1"):a||o}),n},sU=function(t,r){var i=t,n;if(Ed(f1,i)&&(n=f1[i],i="%"+n[0]+"%"),Ed(Os,i)){var o=Os[i];if(o===Uu&&(o=eU(i)),typeof o>"u"&&!r)throw new Fu("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:o}}throw new ju("intrinsic "+t+" does not exist!")};p1.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Fu("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Fu('"allowMissing" argument must be a boolean');if(iU(/^%?[^%]*%?$/,t)===null)throw new ju("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=aU(t),n=i.length>0?i[0]:"",o=sU("%"+n+"%",r),a=o.name,s=o.value,u=!1,c=o.alias;c&&(n=c[0],rU(i,tU([0,1],c)));for(var l=1,d=!0;l<i.length;l+=1){var p=i[l],y=xd(p,0,1),_=xd(p,-1);if((y==='"'||y==="'"||y==="`"||_==='"'||_==="'"||_==="`")&&y!==_)throw new ju("property names with quotes must have matching quotes");if((p==="constructor"||!d)&&(u=!0),n+="."+p,a="%"+n+"%",Ed(Os,a))s=Os[a];else if(s!=null){if(!(p in s)){if(!r)throw new Fu("base intrinsic for "+t+" exists, but the property is not available.");return}if(Nf&&l+1>=i.length){var T=Nf(s,p);d=!!T,d&&"get"in T&&!("originalValue"in T.get)?s=T.get:s=s[p]}else d=Ed(s,p),s=s[p];d&&!u&&(Os[a]=s)}}return s}});var _a=P((bte,v1)=>{"use strict";g();var g1=Od(),m1=wd(),uU=m1([g1("%String.prototype.indexOf%")]);v1.exports=function(t,r){var i=g1(t,!!r);return typeof i=="function"&&uU(t,".prototype.")>-1?m1([i]):i}});var _1=P((wte,b1)=>{"use strict";g();var cU=kf()(),fU=_a(),p0=fU("Object.prototype.toString"),Id=function(t){return cU&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:p0(t)==="[object Arguments]"},y1=function(t){return Id(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&p0(t)!=="[object Array]"&&"callee"in t&&p0(t.callee)==="[object Function]"},lU=(function(){return Id(arguments)})();Id.isLegacyArguments=y1;b1.exports=lU?Id:y1});var I1=P((Ete,O1)=>{"use strict";g();var w1=_a(),hU=kf()(),dU=l0(),pU=xs(),v0;hU?(S1=w1("RegExp.prototype.exec"),g0={},Ad=function(){throw g0},m0={toString:Ad,valueOf:Ad},typeof Symbol.toPrimitive=="symbol"&&(m0[Symbol.toPrimitive]=Ad),v0=function(t){if(!t||typeof t!="object")return!1;var r=pU(t,"lastIndex"),i=r&&dU(r,"value");if(!i)return!1;try{S1(t,m0)}catch(n){return n===g0}}):(E1=w1("Object.prototype.toString"),x1="[object RegExp]",v0=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:E1(t)===x1});var S1,g0,Ad,m0,E1,x1;O1.exports=v0});var T1=P((Ote,A1)=>{"use strict";g();var gU=_a(),mU=I1(),vU=gU("RegExp.prototype.exec"),yU=Es();A1.exports=function(t){if(!mU(t))throw new yU("`regex` must be a RegExp");return function(i){return vU(t,i)!==null}}});var R1=P((Ate,P1)=>{"use strict";g();var bU=function*(){}.constructor;P1.exports=()=>bU});var C1=P((Pte,N1)=>{"use strict";g();var B1=_a(),_U=T1(),wU=_U(/^\s*(?:function)?\*/),SU=kf()(),k1=Sd(),EU=B1("Object.prototype.toString"),xU=B1("Function.prototype.toString"),OU=R1();N1.exports=function(t){if(typeof t!="function")return!1;if(wU(xU(t)))return!0;if(!SU){var r=EU(t);return r==="[object GeneratorFunction]"}if(!k1)return!1;var i=OU();return i&&k1(t)===i.prototype}});var q1=P((kte,D1)=>{"use strict";g();var M1=Function.prototype.toString,zu=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,b0,Td;if(typeof zu=="function"&&typeof Object.defineProperty=="function")try{b0=Object.defineProperty({},"length",{get:function(){throw Td}}),Td={},zu(function(){throw 42},null,b0)}catch(e){e!==Td&&(zu=null)}else zu=null;var IU=/^\s*class\b/,_0=function(t){try{var r=M1.call(t);return IU.test(r)}catch{return!1}},y0=function(t){try{return _0(t)?!1:(M1.call(t),!0)}catch{return!1}},Pd=Object.prototype.toString,AU="[object Object]",TU="[object Function]",PU="[object GeneratorFunction]",RU="[object HTMLAllCollection]",kU="[object HTML document.all class]",BU="[object HTMLCollection]",NU=typeof Symbol=="function"&&!!Symbol.toStringTag,CU=!(0 in[,]),w0=function(){return!1};typeof document=="object"&&(L1=document.all,Pd.call(L1)===Pd.call(document.all)&&(w0=function(t){if((CU||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Pd.call(t);return(r===RU||r===kU||r===BU||r===AU)&&t("")==null}catch{}return!1}));var L1;D1.exports=zu?function(t){if(w0(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{zu(t,null,b0)}catch(r){if(r!==Td)return!1}return!_0(t)&&y0(t)}:function(t){if(w0(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(NU)return y0(t);if(_0(t))return!1;var r=Pd.call(t);return r!==TU&&r!==PU&&!/^\[object HTML/.test(r)?!1:y0(t)}});var F1=P((Nte,U1)=>{"use strict";g();var LU=q1(),MU=Object.prototype.toString,H1=Object.prototype.hasOwnProperty,DU=function(t,r,i){for(var n=0,o=t.length;n<o;n++)H1.call(t,n)&&(i==null?r(t[n],n,t):r.call(i,t[n],n,t))},qU=function(t,r,i){for(var n=0,o=t.length;n<o;n++)i==null?r(t.charAt(n),n,t):r.call(i,t.charAt(n),n,t)},HU=function(t,r,i){for(var n in t)H1.call(t,n)&&(i==null?r(t[n],n,t):r.call(i,t[n],n,t))};function UU(e){return MU.call(e)==="[object Array]"}U1.exports=function(t,r,i){if(!LU(r))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=i),UU(t)?DU(t,r,n):typeof t=="string"?qU(t,r,n):HU(t,r,n)}});var z1=P((Lte,j1)=>{"use strict";g();j1.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var V1=P((Dte,K1)=>{"use strict";g();var S0=z1(),FU=globalThis;K1.exports=function(){for(var t=[],r=0;r<S0.length;r++)typeof FU[S0[r]]=="function"&&(t[t.length]=S0[r]);return t}});var E0=P((Hte,Y1)=>{"use strict";g();var G1=Bf(),jU=a0(),Ku=Es(),W1=xs();Y1.exports=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new Ku("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ku("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ku("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ku("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ku("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ku("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!W1&&W1(t,r);if(G1)G1(t,r,{configurable:a===null&&u?u.configurable:!a,enumerable:n===null&&u?u.enumerable:!n,value:i,writable:o===null&&u?u.writable:!o});else if(s||!n&&!o&&!a)t[r]=i;else throw new jU("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var O0=P((Fte,$1)=>{"use strict";g();var x0=Bf(),Z1=function(){return!!x0};Z1.hasArrayLengthDefineBug=function(){if(!x0)return null;try{return x0([],"length",{value:1}).length!==1}catch{return!0}};$1.exports=Z1});var tO=P((zte,eO)=>{"use strict";g();var zU=Od(),X1=E0(),KU=O0()(),J1=xs(),Q1=Es(),VU=zU("%Math.floor%");eO.exports=function(t,r){if(typeof t!="function")throw new Q1("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||VU(r)!==r)throw new Q1("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&J1){var a=J1(t,"length");a&&!a.configurable&&(n=!1),a&&!a.writable&&(o=!1)}return(n||o||!i)&&(KU?X1(t,"length",r,!0,!0):X1(t,"length",r)),t}});var iO=P((Vte,rO)=>{"use strict";g();var GU=qu(),WU=_d(),YU=c0();rO.exports=function(){return YU(GU,WU,arguments)}});var Mf=P((Wte,Rd)=>{"use strict";g();var ZU=tO(),nO=Bf(),$U=wd(),oO=iO();Rd.exports=function(t){var r=$U(arguments),i=1+t.length-(arguments.length-1);return ZU(r,i>0?i:0,!0)};nO?nO(Rd.exports,"apply",{value:oO}):Rd.exports.apply=oO});var P0=P((Zte,cO)=>{"use strict";g();var Nd=F1(),XU=V1(),aO=Mf(),A0=_a(),Bd=xs(),kd=Sd(),JU=A0("Object.prototype.toString"),uO=kf()(),sO=globalThis,I0=XU(),T0=A0("String.prototype.slice"),QU=A0("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i<t.length;i+=1)if(t[i]===r)return i;return-1},Cd={__proto__:null};uO&&Bd&&kd?Nd(I0,function(e){var t=new sO[e];if(Symbol.toStringTag in t&&kd){var r=kd(t),i=Bd(r,Symbol.toStringTag);if(!i&&r){var n=kd(r);i=Bd(n,Symbol.toStringTag)}if(i&&i.get){var o=aO(i.get);Cd["$"+e]=o}}}):Nd(I0,function(e){var t=new sO[e],r=t.slice||t.set;if(r){var i=aO(r);Cd["$"+e]=i}});var eF=function(t){var r=!1;return Nd(Cd,function(i,n){if(!r)try{"$"+i(t)===n&&(r=T0(n,1))}catch{}}),r},tF=function(t){var r=!1;return Nd(Cd,function(i,n){if(!r)try{i(t),r=T0(n,1)}catch{}}),r};cO.exports=function(t){if(!t||typeof t!="object")return!1;if(!uO){var r=T0(JU(t),8,-1);return QU(I0,r)>-1?r:r!=="Object"?!1:tF(t)}return Bd?eF(t):null}});var R0=P((Xte,fO)=>{"use strict";g();var rF=P0();fO.exports=function(t){return!!rF(t)}});var xO=P(Ve=>{"use strict";g();var iF=_1(),nF=C1(),bn=P0(),lO=R0();function Vu(e){return e.call.bind(e)}var hO=typeof BigInt<"u",dO=typeof Symbol<"u",Ji=Vu(Object.prototype.toString),oF=Vu(Number.prototype.valueOf),aF=Vu(String.prototype.valueOf),sF=Vu(Boolean.prototype.valueOf);hO&&(pO=Vu(BigInt.prototype.valueOf));var pO;dO&&(gO=Vu(Symbol.prototype.valueOf));var gO;function qf(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch{return!1}}Ve.isArgumentsObject=iF;Ve.isGeneratorFunction=nF;Ve.isTypedArray=lO;function uF(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Ve.isPromise=uF;function cF(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):lO(e)||vO(e)}Ve.isArrayBufferView=cF;function fF(e){return bn(e)==="Uint8Array"}Ve.isUint8Array=fF;function lF(e){return bn(e)==="Uint8ClampedArray"}Ve.isUint8ClampedArray=lF;function hF(e){return bn(e)==="Uint16Array"}Ve.isUint16Array=hF;function dF(e){return bn(e)==="Uint32Array"}Ve.isUint32Array=dF;function pF(e){return bn(e)==="Int8Array"}Ve.isInt8Array=pF;function gF(e){return bn(e)==="Int16Array"}Ve.isInt16Array=gF;function mF(e){return bn(e)==="Int32Array"}Ve.isInt32Array=mF;function vF(e){return bn(e)==="Float32Array"}Ve.isFloat32Array=vF;function yF(e){return bn(e)==="Float64Array"}Ve.isFloat64Array=yF;function bF(e){return bn(e)==="BigInt64Array"}Ve.isBigInt64Array=bF;function _F(e){return bn(e)==="BigUint64Array"}Ve.isBigUint64Array=_F;function Ld(e){return Ji(e)==="[object Map]"}Ld.working=typeof Map<"u"&&Ld(new Map);function wF(e){return typeof Map>"u"?!1:Ld.working?Ld(e):e instanceof Map}Ve.isMap=wF;function Md(e){return Ji(e)==="[object Set]"}Md.working=typeof Set<"u"&&Md(new Set);function SF(e){return typeof Set>"u"?!1:Md.working?Md(e):e instanceof Set}Ve.isSet=SF;function Dd(e){return Ji(e)==="[object WeakMap]"}Dd.working=typeof WeakMap<"u"&&Dd(new WeakMap);function EF(e){return typeof WeakMap>"u"?!1:Dd.working?Dd(e):e instanceof WeakMap}Ve.isWeakMap=EF;function B0(e){return Ji(e)==="[object WeakSet]"}B0.working=typeof WeakSet<"u"&&B0(new WeakSet);function xF(e){return B0(e)}Ve.isWeakSet=xF;function qd(e){return Ji(e)==="[object ArrayBuffer]"}qd.working=typeof ArrayBuffer<"u"&&qd(new ArrayBuffer);function mO(e){return typeof ArrayBuffer>"u"?!1:qd.working?qd(e):e instanceof ArrayBuffer}Ve.isArrayBuffer=mO;function Hd(e){return Ji(e)==="[object DataView]"}Hd.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Hd(new DataView(new ArrayBuffer(1),0,1));function vO(e){return typeof DataView>"u"?!1:Hd.working?Hd(e):e instanceof DataView}Ve.isDataView=vO;var k0=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Df(e){return Ji(e)==="[object SharedArrayBuffer]"}function yO(e){return typeof k0>"u"?!1:(typeof Df.working>"u"&&(Df.working=Df(new k0)),Df.working?Df(e):e instanceof k0)}Ve.isSharedArrayBuffer=yO;function OF(e){return Ji(e)==="[object AsyncFunction]"}Ve.isAsyncFunction=OF;function IF(e){return Ji(e)==="[object Map Iterator]"}Ve.isMapIterator=IF;function AF(e){return Ji(e)==="[object Set Iterator]"}Ve.isSetIterator=AF;function TF(e){return Ji(e)==="[object Generator]"}Ve.isGeneratorObject=TF;function PF(e){return Ji(e)==="[object WebAssembly.Module]"}Ve.isWebAssemblyCompiledModule=PF;function bO(e){return qf(e,oF)}Ve.isNumberObject=bO;function _O(e){return qf(e,aF)}Ve.isStringObject=_O;function wO(e){return qf(e,sF)}Ve.isBooleanObject=wO;function SO(e){return hO&&qf(e,pO)}Ve.isBigIntObject=SO;function EO(e){return dO&&qf(e,gO)}Ve.isSymbolObject=EO;function RF(e){return bO(e)||_O(e)||wO(e)||SO(e)||EO(e)}Ve.isBoxedPrimitive=RF;function kF(e){return typeof Uint8Array<"u"&&(mO(e)||yO(e))}Ve.isAnyArrayBuffer=kF;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Ve,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var IO=P((tre,OO)=>{g();OO.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var Qi=P(Ge=>{g();var AO=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},BF=/%[sdj%]/g;Ge.format=function(e){if(!Gd(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(wa(arguments[r]));return t.join(" ")}for(var r=1,i=arguments,n=i.length,o=String(e).replace(BF,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}}),a=i[r];r<n;a=i[++r])Vd(a)||!Gu(a)?o+=" "+a:o+=" "+wa(a);return o};Ge.deprecate=function(e,t){if(typeof b.default<"u"&&b.default.noDeprecation===!0)return e;if(typeof b.default>"u")return function(){return Ge.deprecate(e,t).apply(this,arguments)};var r=!1;function i(){if(!r){if(b.default.throwDeprecation)throw new Error(t);b.default.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}return i};var Ud={},TO=/^$/;b.default.env.NODE_DEBUG&&(Fd=b.default.env.NODE_DEBUG,Fd=Fd.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),TO=new RegExp("^"+Fd+"$","i"));var Fd;Ge.debuglog=function(e){if(e=e.toUpperCase(),!Ud[e])if(TO.test(e)){var t=b.default.pid;Ud[e]=function(){var r=Ge.format.apply(Ge,arguments);console.error("%s %d: %s",e,t,r)}}else Ud[e]=function(){};return Ud[e]};function wa(e,t){var r={seen:[],stylize:CF};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),M0(t)?r.showHidden=t:t&&Ge._extend(r,t),As(r.showHidden)&&(r.showHidden=!1),As(r.depth)&&(r.depth=2),As(r.colors)&&(r.colors=!1),As(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=NF),zd(r,e,r.depth)}Ge.inspect=wa;wa.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]};wa.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function NF(e,t){var r=wa.styles[t];return r?"\x1B["+wa.colors[r][0]+"m"+e+"\x1B["+wa.colors[r][1]+"m":e}function CF(e,t){return e}function LF(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function zd(e,t,r){if(e.customInspect&&t&&jd(t.inspect)&&t.inspect!==Ge.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);return Gd(i)||(i=zd(e,i,r)),i}var n=MF(e,t);if(n)return n;var o=Object.keys(t),a=LF(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Uf(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return N0(t);if(o.length===0){if(jd(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Hf(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Kd(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Uf(t))return N0(t)}var u="",c=!1,l=["{","}"];if(PO(t)&&(c=!0,l=["[","]"]),jd(t)){var d=t.name?": "+t.name:"";u=" [Function"+d+"]"}if(Hf(t)&&(u=" "+RegExp.prototype.toString.call(t)),Kd(t)&&(u=" "+Date.prototype.toUTCString.call(t)),Uf(t)&&(u=" "+N0(t)),o.length===0&&(!c||t.length==0))return l[0]+u+l[1];if(r<0)return Hf(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var p;return c?p=DF(e,t,r,a,o):p=o.map(function(y){return L0(e,t,r,a,y,c)}),e.seen.pop(),qF(p,u,l)}function MF(e,t){if(As(t))return e.stylize("undefined","undefined");if(Gd(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(RO(t))return e.stylize(""+t,"number");if(M0(t))return e.stylize(""+t,"boolean");if(Vd(t))return e.stylize("null","null")}function N0(e){return"["+Error.prototype.toString.call(e)+"]"}function DF(e,t,r,i,n){for(var o=[],a=0,s=t.length;a<s;++a)kO(t,String(a))?o.push(L0(e,t,r,i,String(a),!0)):o.push("");return n.forEach(function(u){u.match(/^\d+$/)||o.push(L0(e,t,r,i,u,!0))}),o}function L0(e,t,r,i,n,o){var a,s,u;if(u=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]},u.get?u.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),kO(i,n)||(a="["+n+"]"),s||(e.seen.indexOf(u.value)<0?(Vd(r)?s=zd(e,u.value,null):s=zd(e,u.value,r-1),s.indexOf(`
|
|
1
|
+
var bsvGDAF=(()=>{var wq=Object.create;var Tf=Object.defineProperty;var Sq=Object.getOwnPropertyDescriptor;var Eq=Object.getOwnPropertyNames;var xq=Object.getPrototypeOf,Oq=Object.prototype.hasOwnProperty;var Iq=(e,t,r)=>t in e?Tf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var jr=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Br=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(i){throw r=[i],i}};var P=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Pf=(e,t)=>{for(var r in t)Tf(e,r,{get:t[r],enumerable:!0})},gE=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Eq(t))!Oq.call(e,n)&&n!==r&&Tf(e,n,{get:()=>t[n],enumerable:!(i=Sq(t,n))||i.enumerable});return e};var mE=(e,t,r)=>(r=e!=null?wq(xq(e)):{},gE(t||!e||!e.__esModule?Tf(r,"default",{value:e,enumerable:!0}):r,e)),$i=e=>gE(Tf({},"__esModule",{value:!0}),e);var ee=(e,t,r)=>Iq(e,typeof t!="symbol"?t+"":t,r);var wE=P((HQ,_E)=>{g();var Zt=_E.exports={},zn,Kn;function zv(){throw new Error("setTimeout has not been defined")}function Kv(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?zn=setTimeout:zn=zv}catch{zn=zv}try{typeof clearTimeout=="function"?Kn=clearTimeout:Kn=Kv}catch{Kn=Kv}})();function vE(e){if(zn===setTimeout)return setTimeout(e,0);if((zn===zv||!zn)&&setTimeout)return zn=setTimeout,setTimeout(e,0);try{return zn(e,0)}catch{try{return zn.call(null,e,0)}catch{return zn.call(this,e,0)}}}function Aq(e){if(Kn===clearTimeout)return clearTimeout(e);if((Kn===Kv||!Kn)&&clearTimeout)return Kn=clearTimeout,clearTimeout(e);try{return Kn(e)}catch{try{return Kn.call(null,e)}catch{return Kn.call(this,e)}}}var Co=[],ku=!1,bs,sd=-1;function Tq(){!ku||!bs||(ku=!1,bs.length?Co=bs.concat(Co):sd=-1,Co.length&&yE())}function yE(){if(!ku){var e=vE(Tq);ku=!0;for(var t=Co.length;t;){for(bs=Co,Co=[];++sd<t;)bs&&bs[sd].run();sd=-1,t=Co.length}bs=null,ku=!1,Aq(e)}}Zt.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];Co.push(new bE(e,t)),Co.length===1&&!ku&&vE(yE)};function bE(e,t){this.fun=e,this.array=t}bE.prototype.run=function(){this.fun.apply(null,this.array)};Zt.title="browser";Zt.browser=!0;Zt.env={};Zt.argv=[];Zt.version="";Zt.versions={};function Lo(){}Zt.on=Lo;Zt.addListener=Lo;Zt.once=Lo;Zt.off=Lo;Zt.removeListener=Lo;Zt.removeAllListeners=Lo;Zt.emit=Lo;Zt.prependListener=Lo;Zt.prependOnceListener=Lo;Zt.listeners=function(e){return[]};Zt.binding=function(e){throw new Error("process.binding is not supported")};Zt.cwd=function(){return"/"};Zt.chdir=function(e){throw new Error("process.chdir is not supported")};Zt.umask=function(){return 0}});var xE=P(ud=>{"use strict";g();ud.byteLength=Rq;ud.toByteArray=Bq;ud.fromByteArray=Lq;var Vn=[],Xi=[],Pq=typeof Uint8Array<"u"?Uint8Array:Array,Vv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_s=0,SE=Vv.length;_s<SE;++_s)Vn[_s]=Vv[_s],Xi[Vv.charCodeAt(_s)]=_s;var _s,SE;Xi[45]=62;Xi[95]=63;function EE(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 Rq(e){var t=EE(e),r=t[0],i=t[1];return(r+i)*3/4-i}function kq(e,t,r){return(t+r)*3/4-r}function Bq(e){var t,r=EE(e),i=r[0],n=r[1],o=new Pq(kq(e,i,n)),a=0,s=n>0?i-4:i,u;for(u=0;u<s;u+=4)t=Xi[e.charCodeAt(u)]<<18|Xi[e.charCodeAt(u+1)]<<12|Xi[e.charCodeAt(u+2)]<<6|Xi[e.charCodeAt(u+3)],o[a++]=t>>16&255,o[a++]=t>>8&255,o[a++]=t&255;return n===2&&(t=Xi[e.charCodeAt(u)]<<2|Xi[e.charCodeAt(u+1)]>>4,o[a++]=t&255),n===1&&(t=Xi[e.charCodeAt(u)]<<10|Xi[e.charCodeAt(u+1)]<<4|Xi[e.charCodeAt(u+2)]>>2,o[a++]=t>>8&255,o[a++]=t&255),o}function Nq(e){return Vn[e>>18&63]+Vn[e>>12&63]+Vn[e>>6&63]+Vn[e&63]}function Cq(e,t,r){for(var i,n=[],o=t;o<r;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(Nq(i));return n.join("")}function Lq(e){for(var t,r=e.length,i=r%3,n=[],o=16383,a=0,s=r-i;a<s;a+=o)n.push(Cq(e,a,a+o>s?s:a+o));return i===1?(t=e[r-1],n.push(Vn[t>>2]+Vn[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(Vn[t>>10]+Vn[t>>4&63]+Vn[t<<2&63]+"=")),n.join("")}});var OE=P(Gv=>{g();Gv.read=function(e,t,r,i,n){var o,a,s=n*8-i-1,u=(1<<s)-1,c=u>>1,l=-7,d=r?n-1:0,p=r?-1:1,y=e[t+d];for(d+=p,o=y&(1<<-l)-1,y>>=-l,l+=s;l>0;o=o*256+e[t+d],d+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=i;l>0;a=a*256+e[t+d],d+=p,l-=8);if(o===0)o=1-c;else{if(o===u)return a?NaN:(y?-1:1)*(1/0);a=a+Math.pow(2,i),o=o-c}return(y?-1:1)*a*Math.pow(2,o-i)};Gv.write=function(e,t,r,i,n,o){var a,s,u,c=o*8-n-1,l=(1<<c)-1,d=l>>1,p=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=i?0:o-1,_=i?1:-1,T=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+d>=1?t+=p/u:t+=p*Math.pow(2,1-d),t*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,n),a=a+d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),a=0));n>=8;e[r+y]=s&255,y+=_,s/=256,n-=8);for(a=a<<n|s,c+=n;c>0;e[r+y]=a&255,y+=_,a/=256,c-=8);e[r+y-_]|=T*128}});var jt=P(Lu=>{"use strict";g();var Wv=xE(),Nu=OE(),IE=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Lu.Buffer=J;Lu.SlowBuffer=Fq;Lu.INSPECT_MAX_BYTES=50;var cd=2147483647;Lu.kMaxLength=cd;J.TYPED_ARRAY_SUPPORT=Mq();!J.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 Mq(){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(J.prototype,"parent",{enumerable:!0,get:function(){if(J.isBuffer(this))return this.buffer}});Object.defineProperty(J.prototype,"offset",{enumerable:!0,get:function(){if(J.isBuffer(this))return this.byteOffset}});function Mo(e){if(e>cd)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,J.prototype),t}function J(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 Xv(e)}return RE(e,t,r)}J.poolSize=8192;function RE(e,t,r){if(typeof e=="string")return qq(e,t);if(ArrayBuffer.isView(e))return Hq(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(Gn(e,ArrayBuffer)||e&&Gn(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Gn(e,SharedArrayBuffer)||e&&Gn(e.buffer,SharedArrayBuffer)))return Zv(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 J.from(i,t,r);let n=Uq(e);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return J.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)}J.from=function(e,t,r){return RE(e,t,r)};Object.setPrototypeOf(J.prototype,Uint8Array.prototype);Object.setPrototypeOf(J,Uint8Array);function kE(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 Dq(e,t,r){return kE(e),e<=0?Mo(e):t!==void 0?typeof r=="string"?Mo(e).fill(t,r):Mo(e).fill(t):Mo(e)}J.alloc=function(e,t,r){return Dq(e,t,r)};function Xv(e){return kE(e),Mo(e<0?0:Jv(e)|0)}J.allocUnsafe=function(e){return Xv(e)};J.allocUnsafeSlow=function(e){return Xv(e)};function qq(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!J.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=BE(e,t)|0,i=Mo(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}function Yv(e){let t=e.length<0?0:Jv(e.length)|0,r=Mo(t);for(let i=0;i<t;i+=1)r[i]=e[i]&255;return r}function Hq(e){if(Gn(e,Uint8Array)){let t=new Uint8Array(e);return Zv(t.buffer,t.byteOffset,t.byteLength)}return Yv(e)}function Zv(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,J.prototype),i}function Uq(e){if(J.isBuffer(e)){let t=Jv(e.length)|0,r=Mo(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||e0(e.length)?Mo(0):Yv(e);if(e.type==="Buffer"&&Array.isArray(e.data))return Yv(e.data)}function Jv(e){if(e>=cd)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+cd.toString(16)+" bytes");return e|0}function Fq(e){return+e!=e&&(e=0),J.alloc(+e)}J.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==J.prototype};J.compare=function(t,r){if(Gn(t,Uint8Array)&&(t=J.from(t,t.offset,t.byteLength)),Gn(r,Uint8Array)&&(r=J.from(r,r.offset,r.byteLength)),!J.isBuffer(t)||!J.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 o=0,a=Math.min(i,n);o<a;++o)if(t[o]!==r[o]){i=t[o],n=r[o];break}return i<n?-1:n<i?1:0};J.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}};J.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return J.alloc(0);let i;if(r===void 0)for(r=0,i=0;i<t.length;++i)r+=t[i].length;let n=J.allocUnsafe(r),o=0;for(i=0;i<t.length;++i){let a=t[i];if(Gn(a,Uint8Array))o+a.length>n.length?(J.isBuffer(a)||(a=J.from(a)),a.copy(n,o)):Uint8Array.prototype.set.call(n,a,o);else if(J.isBuffer(a))a.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return n};function BE(e,t){if(J.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Gn(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 $v(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return FE(e).length;default:if(n)return i?-1:$v(e).length;t=(""+t).toLowerCase(),n=!0}}J.byteLength=BE;function jq(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 Jq(this,t,r);case"utf8":case"utf-8":return CE(this,t,r);case"ascii":return $q(this,t,r);case"latin1":case"binary":return Xq(this,t,r);case"base64":return Yq(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qq(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}J.prototype._isBuffer=!0;function ws(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}J.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)ws(this,r,r+1);return this};J.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)ws(this,r,r+3),ws(this,r+1,r+2);return this};J.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)ws(this,r,r+7),ws(this,r+1,r+6),ws(this,r+2,r+5),ws(this,r+3,r+4);return this};J.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?CE(this,0,t):jq.apply(this,arguments)};J.prototype.toLocaleString=J.prototype.toString;J.prototype.equals=function(t){if(!J.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:J.compare(this,t)===0};J.prototype.inspect=function(){let t="",r=Lu.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};IE&&(J.prototype[IE]=J.prototype.inspect);J.prototype.compare=function(t,r,i,n,o){if(Gn(t,Uint8Array)&&(t=J.from(t,t.offset,t.byteLength)),!J.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),o===void 0&&(o=this.length),r<0||i>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&r>=i)return 0;if(n>=o)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,o>>>=0,this===t)return 0;let a=o-n,s=i-r,u=Math.min(a,s),c=this.slice(n,o),l=t.slice(r,i);for(let d=0;d<u;++d)if(c[d]!==l[d]){a=c[d],s=l[d];break}return a<s?-1:s<a?1:0};function NE(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,e0(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=J.from(t,i)),J.isBuffer(t))return t.length===0?-1:AE(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):AE(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function AE(e,t,r,i,n){let o=1,a=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;o=2,a/=2,s/=2,r/=2}function u(l,d){return o===1?l[d]:l.readUInt16BE(d*o)}let c;if(n){let l=-1;for(c=r;c<a;c++)if(u(e,c)===u(t,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===s)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(r+s>a&&(r=a-s),c=r;c>=0;c--){let l=!0;for(let d=0;d<s;d++)if(u(e,c+d)!==u(t,d)){l=!1;break}if(l)return c}return-1}J.prototype.includes=function(t,r,i){return this.indexOf(t,r,i)!==-1};J.prototype.indexOf=function(t,r,i){return NE(this,t,r,i,!0)};J.prototype.lastIndexOf=function(t,r,i){return NE(this,t,r,i,!1)};function zq(e,t,r,i){r=Number(r)||0;let n=e.length-r;i?(i=Number(i),i>n&&(i=n)):i=n;let o=t.length;i>o/2&&(i=o/2);let a;for(a=0;a<i;++a){let s=parseInt(t.substr(a*2,2),16);if(e0(s))return a;e[r+a]=s}return a}function Kq(e,t,r,i){return fd($v(t,e.length-r),e,r,i)}function Vq(e,t,r,i){return fd(iH(t),e,r,i)}function Gq(e,t,r,i){return fd(FE(t),e,r,i)}function Wq(e,t,r,i){return fd(nH(t,e.length-r),e,r,i)}J.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 o=this.length-r;if((i===void 0||i>o)&&(i=o),t.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let a=!1;for(;;)switch(n){case"hex":return zq(this,t,r,i);case"utf8":case"utf-8":return Kq(this,t,r,i);case"ascii":case"latin1":case"binary":return Vq(this,t,r,i);case"base64":return Gq(this,t,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wq(this,t,r,i);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}};J.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Yq(e,t,r){return t===0&&r===e.length?Wv.fromByteArray(e):Wv.fromByteArray(e.slice(t,r))}function CE(e,t,r){r=Math.min(e.length,r);let i=[],n=t;for(;n<r;){let o=e[n],a=null,s=o>239?4:o>223?3:o>191?2:1;if(n+s<=r){let u,c,l,d;switch(s){case 1:o<128&&(a=o);break;case 2:u=e[n+1],(u&192)===128&&(d=(o&31)<<6|u&63,d>127&&(a=d));break;case 3:u=e[n+1],c=e[n+2],(u&192)===128&&(c&192)===128&&(d=(o&15)<<12|(u&63)<<6|c&63,d>2047&&(d<55296||d>57343)&&(a=d));break;case 4:u=e[n+1],c=e[n+2],l=e[n+3],(u&192)===128&&(c&192)===128&&(l&192)===128&&(d=(o&15)<<18|(u&63)<<12|(c&63)<<6|l&63,d>65535&&d<1114112&&(a=d))}}a===null?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|a&1023),i.push(a),n+=s}return Zq(i)}var TE=4096;function Zq(e){let t=e.length;if(t<=TE)return String.fromCharCode.apply(String,e);let r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=TE));return r}function $q(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 Xq(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 Jq(e,t,r){let i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);let n="";for(let o=t;o<r;++o)n+=oH[e[o]];return n}function Qq(e,t,r){let i=e.slice(t,r),n="";for(let o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}J.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,J.prototype),n};function zr(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")}J.prototype.readUintLE=J.prototype.readUIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||zr(t,r,this.length);let n=this[t],o=1,a=0;for(;++a<r&&(o*=256);)n+=this[t+a]*o;return n};J.prototype.readUintBE=J.prototype.readUIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||zr(t,r,this.length);let n=this[t+--r],o=1;for(;r>0&&(o*=256);)n+=this[t+--r]*o;return n};J.prototype.readUint8=J.prototype.readUInt8=function(t,r){return t=t>>>0,r||zr(t,1,this.length),this[t]};J.prototype.readUint16LE=J.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||zr(t,2,this.length),this[t]|this[t+1]<<8};J.prototype.readUint16BE=J.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||zr(t,2,this.length),this[t]<<8|this[t+1]};J.prototype.readUint32LE=J.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||zr(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};J.prototype.readUint32BE=J.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||zr(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};J.prototype.readBigUInt64LE=ba(function(t){t=t>>>0,Cu(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Rf(t,this.length-8);let n=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,o=this[++t]+this[++t]*2**8+this[++t]*2**16+i*2**24;return BigInt(n)+(BigInt(o)<<BigInt(32))});J.prototype.readBigUInt64BE=ba(function(t){t=t>>>0,Cu(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Rf(t,this.length-8);let n=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],o=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i;return(BigInt(n)<<BigInt(32))+BigInt(o)});J.prototype.readIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||zr(t,r,this.length);let n=this[t],o=1,a=0;for(;++a<r&&(o*=256);)n+=this[t+a]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*r)),n};J.prototype.readIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||zr(t,r,this.length);let n=r,o=1,a=this[t+--n];for(;n>0&&(o*=256);)a+=this[t+--n]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};J.prototype.readInt8=function(t,r){return t=t>>>0,r||zr(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};J.prototype.readInt16LE=function(t,r){t=t>>>0,r||zr(t,2,this.length);let i=this[t]|this[t+1]<<8;return i&32768?i|4294901760:i};J.prototype.readInt16BE=function(t,r){t=t>>>0,r||zr(t,2,this.length);let i=this[t+1]|this[t]<<8;return i&32768?i|4294901760:i};J.prototype.readInt32LE=function(t,r){return t=t>>>0,r||zr(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};J.prototype.readInt32BE=function(t,r){return t=t>>>0,r||zr(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};J.prototype.readBigInt64LE=ba(function(t){t=t>>>0,Cu(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Rf(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)});J.prototype.readBigInt64BE=ba(function(t){t=t>>>0,Cu(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&Rf(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)});J.prototype.readFloatLE=function(t,r){return t=t>>>0,r||zr(t,4,this.length),Nu.read(this,t,!0,23,4)};J.prototype.readFloatBE=function(t,r){return t=t>>>0,r||zr(t,4,this.length),Nu.read(this,t,!1,23,4)};J.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||zr(t,8,this.length),Nu.read(this,t,!0,52,8)};J.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||zr(t,8,this.length),Nu.read(this,t,!1,52,8)};function Oi(e,t,r,i,n,o){if(!J.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<o)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}J.prototype.writeUintLE=J.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;Oi(this,t,r,i,s,0)}let o=1,a=0;for(this[r]=t&255;++a<i&&(o*=256);)this[r+a]=t/o&255;return r+i};J.prototype.writeUintBE=J.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;Oi(this,t,r,i,s,0)}let o=i-1,a=1;for(this[r+o]=t&255;--o>=0&&(a*=256);)this[r+o]=t/a&255;return r+i};J.prototype.writeUint8=J.prototype.writeUInt8=function(t,r,i){return t=+t,r=r>>>0,i||Oi(this,t,r,1,255,0),this[r]=t&255,r+1};J.prototype.writeUint16LE=J.prototype.writeUInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};J.prototype.writeUint16BE=J.prototype.writeUInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};J.prototype.writeUint32LE=J.prototype.writeUInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(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};J.prototype.writeUint32BE=J.prototype.writeUInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(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 LE(e,t,r,i,n){UE(t,i,n,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,r}function ME(e,t,r,i,n){UE(t,i,n,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a=a>>8,e[r+2]=a,a=a>>8,e[r+1]=a,a=a>>8,e[r]=a,r+8}J.prototype.writeBigUInt64LE=ba(function(t,r=0){return LE(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});J.prototype.writeBigUInt64BE=ba(function(t,r=0){return ME(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});J.prototype.writeIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let u=Math.pow(2,8*i-1);Oi(this,t,r,i,u-1,-u)}let o=0,a=1,s=0;for(this[r]=t&255;++o<i&&(a*=256);)t<0&&s===0&&this[r+o-1]!==0&&(s=1),this[r+o]=(t/a>>0)-s&255;return r+i};J.prototype.writeIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let u=Math.pow(2,8*i-1);Oi(this,t,r,i,u-1,-u)}let o=i-1,a=1,s=0;for(this[r+o]=t&255;--o>=0&&(a*=256);)t<0&&s===0&&this[r+o+1]!==0&&(s=1),this[r+o]=(t/a>>0)-s&255;return r+i};J.prototype.writeInt8=function(t,r,i){return t=+t,r=r>>>0,i||Oi(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};J.prototype.writeInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};J.prototype.writeInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};J.prototype.writeInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(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};J.prototype.writeInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||Oi(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};J.prototype.writeBigInt64LE=ba(function(t,r=0){return LE(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});J.prototype.writeBigInt64BE=ba(function(t,r=0){return ME(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function DE(e,t,r,i,n,o){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function qE(e,t,r,i,n){return t=+t,r=r>>>0,n||DE(e,t,r,4,34028234663852886e22,-34028234663852886e22),Nu.write(e,t,r,i,23,4),r+4}J.prototype.writeFloatLE=function(t,r,i){return qE(this,t,r,!0,i)};J.prototype.writeFloatBE=function(t,r,i){return qE(this,t,r,!1,i)};function HE(e,t,r,i,n){return t=+t,r=r>>>0,n||DE(e,t,r,8,17976931348623157e292,-17976931348623157e292),Nu.write(e,t,r,i,52,8),r+8}J.prototype.writeDoubleLE=function(t,r,i){return HE(this,t,r,!0,i)};J.prototype.writeDoubleBE=function(t,r,i){return HE(this,t,r,!1,i)};J.prototype.copy=function(t,r,i,n){if(!J.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 o=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),o};J.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"&&!J.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(t.length===1){let a=t.charCodeAt(0);(n==="utf8"&&a<128||n==="latin1")&&(t=a)}}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 o;if(typeof t=="number")for(o=r;o<i;++o)this[o]=t;else{let a=J.isBuffer(t)?t:J.from(t,n),s=a.length;if(s===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<i-r;++o)this[o+r]=a[o%s]}return this};var Bu={};function Qv(e,t,r){Bu[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}`}}}Qv("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Qv("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);Qv("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=PE(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=PE(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i},RangeError);function PE(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 eH(e,t,r){Cu(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Rf(t,e.length-(r+1))}function UE(e,t,r,i,n,o){if(e>r||e<t){let a=typeof t=="bigint"?"n":"",s;throw o>3?t===0||t===BigInt(0)?s=`>= 0${a} and < 2${a} ** ${(o+1)*8}${a}`:s=`>= -(2${a} ** ${(o+1)*8-1}${a}) and < 2 ** ${(o+1)*8-1}${a}`:s=`>= ${t}${a} and <= ${r}${a}`,new Bu.ERR_OUT_OF_RANGE("value",s,e)}eH(i,n,o)}function Cu(e,t){if(typeof e!="number")throw new Bu.ERR_INVALID_ARG_TYPE(t,"number",e)}function Rf(e,t,r){throw Math.floor(e)!==e?(Cu(e,r),new Bu.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new Bu.ERR_BUFFER_OUT_OF_BOUNDS:new Bu.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var tH=/[^+/0-9A-Za-z-_]/g;function rH(e){if(e=e.split("=")[0],e=e.trim().replace(tH,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function $v(e,t){t=t||1/0;let r,i=e.length,n=null,o=[];for(let a=0;a<i;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function iH(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function nH(e,t){let r,i,n,o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}function FE(e){return Wv.toByteArray(rH(e))}function fd(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 Gn(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function e0(e){return e!==e}var oH=(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 ba(e){return typeof BigInt>"u"?aH:e}function aH(){throw new Error("BigInt not supported")}});var b,f,g=Br(()=>{b=mE(wE()),f=mE(jt())});var ld=P((jE,t0)=>{g();(function(e,t){"use strict";function r(S,h){if(!S)throw new Error(h||"Assertion failed")}function i(S,h){S.super_=h;var v=function(){};v.prototype=h.prototype,S.prototype=new v,S.prototype.constructor=S}function n(S,h,v){if(n.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,S!==null&&((h==="le"||h==="be")&&(v=h,h=10),this._init(S||0,h||10,v||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=jt().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,v){return h.cmp(v)>0?h:v},n.min=function(h,v){return h.cmp(v)<0?h:v},n.prototype._init=function(h,v,w){if(typeof h=="number")return this._initNumber(h,v,w);if(typeof h=="object")return this._initArray(h,v,w);v==="hex"&&(v=16),r(v===(v|0)&&v>=2&&v<=36),h=h.toString().replace(/\s+/g,"");var E=0;h[0]==="-"&&(E++,this.negative=1),E<h.length&&(v===16?this._parseHex(h,E,w):(this._parseBase(h,v,E),w==="le"&&this._initArray(this.toArray(),v,w)))},n.prototype._initNumber=function(h,v,w){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),w==="le"&&this._initArray(this.toArray(),v,w)},n.prototype._initArray=function(h,v,w){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 E=0;E<this.length;E++)this.words[E]=0;var A,L,N=0;if(w==="be")for(E=h.length-1,A=0;E>=0;E-=3)L=h[E]|h[E-1]<<8|h[E-2]<<16,this.words[A]|=L<<N&67108863,this.words[A+1]=L>>>26-N&67108863,N+=24,N>=26&&(N-=26,A++);else if(w==="le")for(E=0,A=0;E<h.length;E+=3)L=h[E]|h[E+1]<<8|h[E+2]<<16,this.words[A]|=L<<N&67108863,this.words[A+1]=L>>>26-N&67108863,N+=24,N>=26&&(N-=26,A++);return this.strip()};function a(S,h){var v=S.charCodeAt(h);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function s(S,h,v){var w=a(S,v);return v-1>=h&&(w|=a(S,v-1)<<4),w}n.prototype._parseHex=function(h,v,w){this.length=Math.ceil((h.length-v)/6),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var A=0,L=0,N;if(w==="be")for(E=h.length-1;E>=v;E-=2)N=s(h,v,E)<<A,this.words[L]|=N&67108863,A>=18?(A-=18,L+=1,this.words[L]|=N>>>26):A+=8;else{var x=h.length-v;for(E=x%2===0?v+1:v;E<h.length;E+=2)N=s(h,v,E)<<A,this.words[L]|=N&67108863,A>=18?(A-=18,L+=1,this.words[L]|=N>>>26):A+=8}this.strip()};function u(S,h,v,w){for(var E=0,A=Math.min(S.length,v),L=h;L<A;L++){var N=S.charCodeAt(L)-48;E*=w,N>=49?E+=N-49+10:N>=17?E+=N-17+10:E+=N}return E}n.prototype._parseBase=function(h,v,w){this.words=[0],this.length=1;for(var E=0,A=1;A<=67108863;A*=v)E++;E--,A=A/v|0;for(var L=h.length-w,N=L%E,x=Math.min(L,L-N)+w,m=0,O=w;O<x;O+=E)m=u(h,O,O+E,v),this.imuln(A),this.words[0]+m<67108864?this.words[0]+=m:this._iaddn(m);if(N!==0){var z=1;for(m=u(h,O,h.length,v),O=0;O<N;O++)z*=v;this.imuln(z),this.words[0]+m<67108864?this.words[0]+=m:this._iaddn(m)}this.strip()},n.prototype.copy=function(h){h.words=new Array(this.length);for(var v=0;v<this.length;v++)h.words[v]=this.words[v];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 c=["","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"],l=[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],d=[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,v){h=h||10,v=v|0||1;var w;if(h===16||h==="hex"){w="";for(var E=0,A=0,L=0;L<this.length;L++){var N=this.words[L],x=((N<<E|A)&16777215).toString(16);A=N>>>24-E&16777215,E+=2,E>=26&&(E-=26,L--),A!==0||L!==this.length-1?w=c[6-x.length]+x+w:w=x+w}for(A!==0&&(w=A.toString(16)+w);w.length%v!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(h===(h|0)&&h>=2&&h<=36){var m=l[h],O=d[h];w="";var z=this.clone();for(z.negative=0;!z.isZero();){var W=z.modn(O).toString(h);z=z.idivn(O),z.isZero()?w=W+w:w=c[m-W.length]+W+w}for(this.isZero()&&(w="0"+w);w.length%v!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}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,v){return r(typeof o<"u"),this.toArrayLike(o,h,v)},n.prototype.toArray=function(h,v){return this.toArrayLike(Array,h,v)},n.prototype.toArrayLike=function(h,v,w){var E=this.byteLength(),A=w||Math.max(1,E);r(E<=A,"byte array longer than desired length"),r(A>0,"Requested array length <= 0"),this.strip();var L=v==="le",N=new h(A),x,m,O=this.clone();if(L){for(m=0;!O.isZero();m++)x=O.andln(255),O.iushrn(8),N[m]=x;for(;m<A;m++)N[m]=0}else{for(m=0;m<A-E;m++)N[m]=0;for(m=0;!O.isZero();m++)x=O.andln(255),O.iushrn(8),N[A-m-1]=x}return N},Math.clz32?n.prototype._countBits=function(h){return 32-Math.clz32(h)}:n.prototype._countBits=function(h){var v=h,w=0;return v>=4096&&(w+=13,v>>>=13),v>=64&&(w+=7,v>>>=7),v>=8&&(w+=4,v>>>=4),v>=2&&(w+=2,v>>>=2),w+v},n.prototype._zeroBits=function(h){if(h===0)return 26;var v=h,w=0;return(v&8191)===0&&(w+=13,v>>>=13),(v&127)===0&&(w+=7,v>>>=7),(v&15)===0&&(w+=4,v>>>=4),(v&3)===0&&(w+=2,v>>>=2),(v&1)===0&&w++,w},n.prototype.bitLength=function(){var h=this.words[this.length-1],v=this._countBits(h);return(this.length-1)*26+v};function p(S){for(var h=new Array(S.bitLength()),v=0;v<h.length;v++){var w=v/26|0,E=v%26;h[v]=(S.words[w]&1<<E)>>>E}return h}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,v=0;v<this.length;v++){var w=this._zeroBits(this.words[v]);if(h+=w,w!==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 v=0;v<h.length;v++)this.words[v]=this.words[v]|h.words[v];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 v;this.length>h.length?v=h:v=this;for(var w=0;w<v.length;w++)this.words[w]=this.words[w]&h.words[w];return this.length=v.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 v,w;this.length>h.length?(v=this,w=h):(v=h,w=this);for(var E=0;E<w.length;E++)this.words[E]=v.words[E]^w.words[E];if(this!==v)for(;E<v.length;E++)this.words[E]=v.words[E];return this.length=v.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 v=Math.ceil(h/26)|0,w=h%26;this._expand(v),w>0&&v--;for(var E=0;E<v;E++)this.words[E]=~this.words[E]&67108863;for(w>0&&(this.words[E]=~this.words[E]&67108863>>26-w,E++);E<this.length;E++)this.words[E]=0;return this.strip()},n.prototype.notn=function(h){return this.clone().inotn(h)},n.prototype.setn=function(h,v){r(typeof h=="number"&&h>=0);var w=h/26|0,E=h%26;return this._expand(w+1),v?this.words[w]=this.words[w]|1<<E:this.words[w]=this.words[w]&~(1<<E),this.strip()},n.prototype.iadd=function(h){var v;if(this.negative!==0&&h.negative===0)return this.negative=0,v=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,v=this.isub(h),h.negative=1,v._normSign();var w,E;this.length>h.length?(w=this,E=h):(w=h,E=this);for(var A=0,L=0;L<E.length;L++)v=(w.words[L]|0)+(E.words[L]|0)+A,this.words[L]=v&67108863,A=v>>>26;for(;A!==0&&L<w.length;L++)v=(w.words[L]|0)+A,this.words[L]=v&67108863,A=v>>>26;if(this.length=w.length,A!==0)this.words[this.length]=A,this.length++;else if(w!==this)for(;L<w.length;L++)this.words[L]=w.words[L];return this},n.prototype.add=function(h){var v;return h.negative!==0&&this.negative===0?(h.negative=0,v=this.sub(h),h.negative^=1,v):h.negative===0&&this.negative!==0?(this.negative=0,v=h.sub(this),this.negative=1,v):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 v=this.iadd(h);return h.negative=1,v._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var w=this.cmp(h);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;var E,A;w>0?(E=this,A=h):(E=h,A=this);for(var L=0,N=0;N<A.length;N++)v=(E.words[N]|0)-(A.words[N]|0)+L,L=v>>26,this.words[N]=v&67108863;for(;L!==0&&N<E.length;N++)v=(E.words[N]|0)+L,L=v>>26,this.words[N]=v&67108863;if(L===0&&N<E.length&&E!==this)for(;N<E.length;N++)this.words[N]=E.words[N];return this.length=Math.max(this.length,N),E!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(h){return this.clone().isub(h)};function y(S,h,v){v.negative=h.negative^S.negative;var w=S.length+h.length|0;v.length=w,w=w-1|0;var E=S.words[0]|0,A=h.words[0]|0,L=E*A,N=L&67108863,x=L/67108864|0;v.words[0]=N;for(var m=1;m<w;m++){for(var O=x>>>26,z=x&67108863,W=Math.min(m,h.length-1),te=Math.max(0,m-S.length+1);te<=W;te++){var ie=m-te|0;E=S.words[ie]|0,A=h.words[te]|0,L=E*A+z,O+=L/67108864|0,z=L&67108863}v.words[m]=z|0,x=O|0}return x!==0?v.words[m]=x|0:v.length--,v.strip()}var _=function(h,v,w){var E=h.words,A=v.words,L=w.words,N=0,x,m,O,z=E[0]|0,W=z&8191,te=z>>>13,ie=E[1]|0,se=ie&8191,ae=ie>>>13,we=E[2]|0,ve=we&8191,C=we>>>13,V=E[3]|0,Y=V&8191,X=V>>>13,de=E[4]|0,ue=de&8191,le=de>>>13,ye=E[5]|0,ge=ye&8191,be=ye>>>13,ke=E[6]|0,Le=ke&8191,me=ke>>>13,Ee=E[7]|0,Re=Ee&8191,ze=Ee>>>13,xi=E[8]|0,kt=xi&8191,Et=xi>>>13,ad=E[9]|0,Ft=ad&8191,tr=ad>>>13,oE=A[0]|0,rr=oE&8191,ir=oE>>>13,aE=A[1]|0,nr=aE&8191,or=aE>>>13,sE=A[2]|0,ar=sE&8191,sr=sE>>>13,uE=A[3]|0,ur=uE&8191,cr=uE>>>13,cE=A[4]|0,fr=cE&8191,lr=cE>>>13,fE=A[5]|0,hr=fE&8191,dr=fE>>>13,lE=A[6]|0,pr=lE&8191,gr=lE>>>13,hE=A[7]|0,mr=hE&8191,vr=hE>>>13,dE=A[8]|0,yr=dE&8191,br=dE>>>13,pE=A[9]|0,_r=pE&8191,wr=pE>>>13;w.negative=h.negative^v.negative,w.length=19,x=Math.imul(W,rr),m=Math.imul(W,ir),m=m+Math.imul(te,rr)|0,O=Math.imul(te,ir);var xv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(xv>>>26)|0,xv&=67108863,x=Math.imul(se,rr),m=Math.imul(se,ir),m=m+Math.imul(ae,rr)|0,O=Math.imul(ae,ir),x=x+Math.imul(W,nr)|0,m=m+Math.imul(W,or)|0,m=m+Math.imul(te,nr)|0,O=O+Math.imul(te,or)|0;var Ov=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Ov>>>26)|0,Ov&=67108863,x=Math.imul(ve,rr),m=Math.imul(ve,ir),m=m+Math.imul(C,rr)|0,O=Math.imul(C,ir),x=x+Math.imul(se,nr)|0,m=m+Math.imul(se,or)|0,m=m+Math.imul(ae,nr)|0,O=O+Math.imul(ae,or)|0,x=x+Math.imul(W,ar)|0,m=m+Math.imul(W,sr)|0,m=m+Math.imul(te,ar)|0,O=O+Math.imul(te,sr)|0;var Iv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Iv>>>26)|0,Iv&=67108863,x=Math.imul(Y,rr),m=Math.imul(Y,ir),m=m+Math.imul(X,rr)|0,O=Math.imul(X,ir),x=x+Math.imul(ve,nr)|0,m=m+Math.imul(ve,or)|0,m=m+Math.imul(C,nr)|0,O=O+Math.imul(C,or)|0,x=x+Math.imul(se,ar)|0,m=m+Math.imul(se,sr)|0,m=m+Math.imul(ae,ar)|0,O=O+Math.imul(ae,sr)|0,x=x+Math.imul(W,ur)|0,m=m+Math.imul(W,cr)|0,m=m+Math.imul(te,ur)|0,O=O+Math.imul(te,cr)|0;var Av=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Av>>>26)|0,Av&=67108863,x=Math.imul(ue,rr),m=Math.imul(ue,ir),m=m+Math.imul(le,rr)|0,O=Math.imul(le,ir),x=x+Math.imul(Y,nr)|0,m=m+Math.imul(Y,or)|0,m=m+Math.imul(X,nr)|0,O=O+Math.imul(X,or)|0,x=x+Math.imul(ve,ar)|0,m=m+Math.imul(ve,sr)|0,m=m+Math.imul(C,ar)|0,O=O+Math.imul(C,sr)|0,x=x+Math.imul(se,ur)|0,m=m+Math.imul(se,cr)|0,m=m+Math.imul(ae,ur)|0,O=O+Math.imul(ae,cr)|0,x=x+Math.imul(W,fr)|0,m=m+Math.imul(W,lr)|0,m=m+Math.imul(te,fr)|0,O=O+Math.imul(te,lr)|0;var Tv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Tv>>>26)|0,Tv&=67108863,x=Math.imul(ge,rr),m=Math.imul(ge,ir),m=m+Math.imul(be,rr)|0,O=Math.imul(be,ir),x=x+Math.imul(ue,nr)|0,m=m+Math.imul(ue,or)|0,m=m+Math.imul(le,nr)|0,O=O+Math.imul(le,or)|0,x=x+Math.imul(Y,ar)|0,m=m+Math.imul(Y,sr)|0,m=m+Math.imul(X,ar)|0,O=O+Math.imul(X,sr)|0,x=x+Math.imul(ve,ur)|0,m=m+Math.imul(ve,cr)|0,m=m+Math.imul(C,ur)|0,O=O+Math.imul(C,cr)|0,x=x+Math.imul(se,fr)|0,m=m+Math.imul(se,lr)|0,m=m+Math.imul(ae,fr)|0,O=O+Math.imul(ae,lr)|0,x=x+Math.imul(W,hr)|0,m=m+Math.imul(W,dr)|0,m=m+Math.imul(te,hr)|0,O=O+Math.imul(te,dr)|0;var Pv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Pv>>>26)|0,Pv&=67108863,x=Math.imul(Le,rr),m=Math.imul(Le,ir),m=m+Math.imul(me,rr)|0,O=Math.imul(me,ir),x=x+Math.imul(ge,nr)|0,m=m+Math.imul(ge,or)|0,m=m+Math.imul(be,nr)|0,O=O+Math.imul(be,or)|0,x=x+Math.imul(ue,ar)|0,m=m+Math.imul(ue,sr)|0,m=m+Math.imul(le,ar)|0,O=O+Math.imul(le,sr)|0,x=x+Math.imul(Y,ur)|0,m=m+Math.imul(Y,cr)|0,m=m+Math.imul(X,ur)|0,O=O+Math.imul(X,cr)|0,x=x+Math.imul(ve,fr)|0,m=m+Math.imul(ve,lr)|0,m=m+Math.imul(C,fr)|0,O=O+Math.imul(C,lr)|0,x=x+Math.imul(se,hr)|0,m=m+Math.imul(se,dr)|0,m=m+Math.imul(ae,hr)|0,O=O+Math.imul(ae,dr)|0,x=x+Math.imul(W,pr)|0,m=m+Math.imul(W,gr)|0,m=m+Math.imul(te,pr)|0,O=O+Math.imul(te,gr)|0;var Rv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Rv>>>26)|0,Rv&=67108863,x=Math.imul(Re,rr),m=Math.imul(Re,ir),m=m+Math.imul(ze,rr)|0,O=Math.imul(ze,ir),x=x+Math.imul(Le,nr)|0,m=m+Math.imul(Le,or)|0,m=m+Math.imul(me,nr)|0,O=O+Math.imul(me,or)|0,x=x+Math.imul(ge,ar)|0,m=m+Math.imul(ge,sr)|0,m=m+Math.imul(be,ar)|0,O=O+Math.imul(be,sr)|0,x=x+Math.imul(ue,ur)|0,m=m+Math.imul(ue,cr)|0,m=m+Math.imul(le,ur)|0,O=O+Math.imul(le,cr)|0,x=x+Math.imul(Y,fr)|0,m=m+Math.imul(Y,lr)|0,m=m+Math.imul(X,fr)|0,O=O+Math.imul(X,lr)|0,x=x+Math.imul(ve,hr)|0,m=m+Math.imul(ve,dr)|0,m=m+Math.imul(C,hr)|0,O=O+Math.imul(C,dr)|0,x=x+Math.imul(se,pr)|0,m=m+Math.imul(se,gr)|0,m=m+Math.imul(ae,pr)|0,O=O+Math.imul(ae,gr)|0,x=x+Math.imul(W,mr)|0,m=m+Math.imul(W,vr)|0,m=m+Math.imul(te,mr)|0,O=O+Math.imul(te,vr)|0;var kv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(kv>>>26)|0,kv&=67108863,x=Math.imul(kt,rr),m=Math.imul(kt,ir),m=m+Math.imul(Et,rr)|0,O=Math.imul(Et,ir),x=x+Math.imul(Re,nr)|0,m=m+Math.imul(Re,or)|0,m=m+Math.imul(ze,nr)|0,O=O+Math.imul(ze,or)|0,x=x+Math.imul(Le,ar)|0,m=m+Math.imul(Le,sr)|0,m=m+Math.imul(me,ar)|0,O=O+Math.imul(me,sr)|0,x=x+Math.imul(ge,ur)|0,m=m+Math.imul(ge,cr)|0,m=m+Math.imul(be,ur)|0,O=O+Math.imul(be,cr)|0,x=x+Math.imul(ue,fr)|0,m=m+Math.imul(ue,lr)|0,m=m+Math.imul(le,fr)|0,O=O+Math.imul(le,lr)|0,x=x+Math.imul(Y,hr)|0,m=m+Math.imul(Y,dr)|0,m=m+Math.imul(X,hr)|0,O=O+Math.imul(X,dr)|0,x=x+Math.imul(ve,pr)|0,m=m+Math.imul(ve,gr)|0,m=m+Math.imul(C,pr)|0,O=O+Math.imul(C,gr)|0,x=x+Math.imul(se,mr)|0,m=m+Math.imul(se,vr)|0,m=m+Math.imul(ae,mr)|0,O=O+Math.imul(ae,vr)|0,x=x+Math.imul(W,yr)|0,m=m+Math.imul(W,br)|0,m=m+Math.imul(te,yr)|0,O=O+Math.imul(te,br)|0;var Bv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Bv>>>26)|0,Bv&=67108863,x=Math.imul(Ft,rr),m=Math.imul(Ft,ir),m=m+Math.imul(tr,rr)|0,O=Math.imul(tr,ir),x=x+Math.imul(kt,nr)|0,m=m+Math.imul(kt,or)|0,m=m+Math.imul(Et,nr)|0,O=O+Math.imul(Et,or)|0,x=x+Math.imul(Re,ar)|0,m=m+Math.imul(Re,sr)|0,m=m+Math.imul(ze,ar)|0,O=O+Math.imul(ze,sr)|0,x=x+Math.imul(Le,ur)|0,m=m+Math.imul(Le,cr)|0,m=m+Math.imul(me,ur)|0,O=O+Math.imul(me,cr)|0,x=x+Math.imul(ge,fr)|0,m=m+Math.imul(ge,lr)|0,m=m+Math.imul(be,fr)|0,O=O+Math.imul(be,lr)|0,x=x+Math.imul(ue,hr)|0,m=m+Math.imul(ue,dr)|0,m=m+Math.imul(le,hr)|0,O=O+Math.imul(le,dr)|0,x=x+Math.imul(Y,pr)|0,m=m+Math.imul(Y,gr)|0,m=m+Math.imul(X,pr)|0,O=O+Math.imul(X,gr)|0,x=x+Math.imul(ve,mr)|0,m=m+Math.imul(ve,vr)|0,m=m+Math.imul(C,mr)|0,O=O+Math.imul(C,vr)|0,x=x+Math.imul(se,yr)|0,m=m+Math.imul(se,br)|0,m=m+Math.imul(ae,yr)|0,O=O+Math.imul(ae,br)|0,x=x+Math.imul(W,_r)|0,m=m+Math.imul(W,wr)|0,m=m+Math.imul(te,_r)|0,O=O+Math.imul(te,wr)|0;var Nv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Nv>>>26)|0,Nv&=67108863,x=Math.imul(Ft,nr),m=Math.imul(Ft,or),m=m+Math.imul(tr,nr)|0,O=Math.imul(tr,or),x=x+Math.imul(kt,ar)|0,m=m+Math.imul(kt,sr)|0,m=m+Math.imul(Et,ar)|0,O=O+Math.imul(Et,sr)|0,x=x+Math.imul(Re,ur)|0,m=m+Math.imul(Re,cr)|0,m=m+Math.imul(ze,ur)|0,O=O+Math.imul(ze,cr)|0,x=x+Math.imul(Le,fr)|0,m=m+Math.imul(Le,lr)|0,m=m+Math.imul(me,fr)|0,O=O+Math.imul(me,lr)|0,x=x+Math.imul(ge,hr)|0,m=m+Math.imul(ge,dr)|0,m=m+Math.imul(be,hr)|0,O=O+Math.imul(be,dr)|0,x=x+Math.imul(ue,pr)|0,m=m+Math.imul(ue,gr)|0,m=m+Math.imul(le,pr)|0,O=O+Math.imul(le,gr)|0,x=x+Math.imul(Y,mr)|0,m=m+Math.imul(Y,vr)|0,m=m+Math.imul(X,mr)|0,O=O+Math.imul(X,vr)|0,x=x+Math.imul(ve,yr)|0,m=m+Math.imul(ve,br)|0,m=m+Math.imul(C,yr)|0,O=O+Math.imul(C,br)|0,x=x+Math.imul(se,_r)|0,m=m+Math.imul(se,wr)|0,m=m+Math.imul(ae,_r)|0,O=O+Math.imul(ae,wr)|0;var Cv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Cv>>>26)|0,Cv&=67108863,x=Math.imul(Ft,ar),m=Math.imul(Ft,sr),m=m+Math.imul(tr,ar)|0,O=Math.imul(tr,sr),x=x+Math.imul(kt,ur)|0,m=m+Math.imul(kt,cr)|0,m=m+Math.imul(Et,ur)|0,O=O+Math.imul(Et,cr)|0,x=x+Math.imul(Re,fr)|0,m=m+Math.imul(Re,lr)|0,m=m+Math.imul(ze,fr)|0,O=O+Math.imul(ze,lr)|0,x=x+Math.imul(Le,hr)|0,m=m+Math.imul(Le,dr)|0,m=m+Math.imul(me,hr)|0,O=O+Math.imul(me,dr)|0,x=x+Math.imul(ge,pr)|0,m=m+Math.imul(ge,gr)|0,m=m+Math.imul(be,pr)|0,O=O+Math.imul(be,gr)|0,x=x+Math.imul(ue,mr)|0,m=m+Math.imul(ue,vr)|0,m=m+Math.imul(le,mr)|0,O=O+Math.imul(le,vr)|0,x=x+Math.imul(Y,yr)|0,m=m+Math.imul(Y,br)|0,m=m+Math.imul(X,yr)|0,O=O+Math.imul(X,br)|0,x=x+Math.imul(ve,_r)|0,m=m+Math.imul(ve,wr)|0,m=m+Math.imul(C,_r)|0,O=O+Math.imul(C,wr)|0;var Lv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Lv>>>26)|0,Lv&=67108863,x=Math.imul(Ft,ur),m=Math.imul(Ft,cr),m=m+Math.imul(tr,ur)|0,O=Math.imul(tr,cr),x=x+Math.imul(kt,fr)|0,m=m+Math.imul(kt,lr)|0,m=m+Math.imul(Et,fr)|0,O=O+Math.imul(Et,lr)|0,x=x+Math.imul(Re,hr)|0,m=m+Math.imul(Re,dr)|0,m=m+Math.imul(ze,hr)|0,O=O+Math.imul(ze,dr)|0,x=x+Math.imul(Le,pr)|0,m=m+Math.imul(Le,gr)|0,m=m+Math.imul(me,pr)|0,O=O+Math.imul(me,gr)|0,x=x+Math.imul(ge,mr)|0,m=m+Math.imul(ge,vr)|0,m=m+Math.imul(be,mr)|0,O=O+Math.imul(be,vr)|0,x=x+Math.imul(ue,yr)|0,m=m+Math.imul(ue,br)|0,m=m+Math.imul(le,yr)|0,O=O+Math.imul(le,br)|0,x=x+Math.imul(Y,_r)|0,m=m+Math.imul(Y,wr)|0,m=m+Math.imul(X,_r)|0,O=O+Math.imul(X,wr)|0;var Mv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Mv>>>26)|0,Mv&=67108863,x=Math.imul(Ft,fr),m=Math.imul(Ft,lr),m=m+Math.imul(tr,fr)|0,O=Math.imul(tr,lr),x=x+Math.imul(kt,hr)|0,m=m+Math.imul(kt,dr)|0,m=m+Math.imul(Et,hr)|0,O=O+Math.imul(Et,dr)|0,x=x+Math.imul(Re,pr)|0,m=m+Math.imul(Re,gr)|0,m=m+Math.imul(ze,pr)|0,O=O+Math.imul(ze,gr)|0,x=x+Math.imul(Le,mr)|0,m=m+Math.imul(Le,vr)|0,m=m+Math.imul(me,mr)|0,O=O+Math.imul(me,vr)|0,x=x+Math.imul(ge,yr)|0,m=m+Math.imul(ge,br)|0,m=m+Math.imul(be,yr)|0,O=O+Math.imul(be,br)|0,x=x+Math.imul(ue,_r)|0,m=m+Math.imul(ue,wr)|0,m=m+Math.imul(le,_r)|0,O=O+Math.imul(le,wr)|0;var Dv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Dv>>>26)|0,Dv&=67108863,x=Math.imul(Ft,hr),m=Math.imul(Ft,dr),m=m+Math.imul(tr,hr)|0,O=Math.imul(tr,dr),x=x+Math.imul(kt,pr)|0,m=m+Math.imul(kt,gr)|0,m=m+Math.imul(Et,pr)|0,O=O+Math.imul(Et,gr)|0,x=x+Math.imul(Re,mr)|0,m=m+Math.imul(Re,vr)|0,m=m+Math.imul(ze,mr)|0,O=O+Math.imul(ze,vr)|0,x=x+Math.imul(Le,yr)|0,m=m+Math.imul(Le,br)|0,m=m+Math.imul(me,yr)|0,O=O+Math.imul(me,br)|0,x=x+Math.imul(ge,_r)|0,m=m+Math.imul(ge,wr)|0,m=m+Math.imul(be,_r)|0,O=O+Math.imul(be,wr)|0;var qv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(qv>>>26)|0,qv&=67108863,x=Math.imul(Ft,pr),m=Math.imul(Ft,gr),m=m+Math.imul(tr,pr)|0,O=Math.imul(tr,gr),x=x+Math.imul(kt,mr)|0,m=m+Math.imul(kt,vr)|0,m=m+Math.imul(Et,mr)|0,O=O+Math.imul(Et,vr)|0,x=x+Math.imul(Re,yr)|0,m=m+Math.imul(Re,br)|0,m=m+Math.imul(ze,yr)|0,O=O+Math.imul(ze,br)|0,x=x+Math.imul(Le,_r)|0,m=m+Math.imul(Le,wr)|0,m=m+Math.imul(me,_r)|0,O=O+Math.imul(me,wr)|0;var Hv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Hv>>>26)|0,Hv&=67108863,x=Math.imul(Ft,mr),m=Math.imul(Ft,vr),m=m+Math.imul(tr,mr)|0,O=Math.imul(tr,vr),x=x+Math.imul(kt,yr)|0,m=m+Math.imul(kt,br)|0,m=m+Math.imul(Et,yr)|0,O=O+Math.imul(Et,br)|0,x=x+Math.imul(Re,_r)|0,m=m+Math.imul(Re,wr)|0,m=m+Math.imul(ze,_r)|0,O=O+Math.imul(ze,wr)|0;var Uv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Uv>>>26)|0,Uv&=67108863,x=Math.imul(Ft,yr),m=Math.imul(Ft,br),m=m+Math.imul(tr,yr)|0,O=Math.imul(tr,br),x=x+Math.imul(kt,_r)|0,m=m+Math.imul(kt,wr)|0,m=m+Math.imul(Et,_r)|0,O=O+Math.imul(Et,wr)|0;var Fv=(N+x|0)+((m&8191)<<13)|0;N=(O+(m>>>13)|0)+(Fv>>>26)|0,Fv&=67108863,x=Math.imul(Ft,_r),m=Math.imul(Ft,wr),m=m+Math.imul(tr,_r)|0,O=Math.imul(tr,wr);var jv=(N+x|0)+((m&8191)<<13)|0;return N=(O+(m>>>13)|0)+(jv>>>26)|0,jv&=67108863,L[0]=xv,L[1]=Ov,L[2]=Iv,L[3]=Av,L[4]=Tv,L[5]=Pv,L[6]=Rv,L[7]=kv,L[8]=Bv,L[9]=Nv,L[10]=Cv,L[11]=Lv,L[12]=Mv,L[13]=Dv,L[14]=qv,L[15]=Hv,L[16]=Uv,L[17]=Fv,L[18]=jv,N!==0&&(L[19]=N,w.length++),w};Math.imul||(_=y);function T(S,h,v){v.negative=h.negative^S.negative,v.length=S.length+h.length;for(var w=0,E=0,A=0;A<v.length-1;A++){var L=E;E=0;for(var N=w&67108863,x=Math.min(A,h.length-1),m=Math.max(0,A-S.length+1);m<=x;m++){var O=A-m,z=S.words[O]|0,W=h.words[m]|0,te=z*W,ie=te&67108863;L=L+(te/67108864|0)|0,ie=ie+N|0,N=ie&67108863,L=L+(ie>>>26)|0,E+=L>>>26,L&=67108863}v.words[A]=N,w=L,L=E}return w!==0?v.words[A]=w:v.length--,v.strip()}function R(S,h,v){var w=new B;return w.mulp(S,h,v)}n.prototype.mulTo=function(h,v){var w,E=this.length+h.length;return this.length===10&&h.length===10?w=_(this,h,v):E<63?w=y(this,h,v):E<1024?w=T(this,h,v):w=R(this,h,v),w};function B(S,h){this.x=S,this.y=h}B.prototype.makeRBT=function(h){for(var v=new Array(h),w=n.prototype._countBits(h)-1,E=0;E<h;E++)v[E]=this.revBin(E,w,h);return v},B.prototype.revBin=function(h,v,w){if(h===0||h===w-1)return h;for(var E=0,A=0;A<v;A++)E|=(h&1)<<v-A-1,h>>=1;return E},B.prototype.permute=function(h,v,w,E,A,L){for(var N=0;N<L;N++)E[N]=v[h[N]],A[N]=w[h[N]]},B.prototype.transform=function(h,v,w,E,A,L){this.permute(L,h,v,w,E,A);for(var N=1;N<A;N<<=1)for(var x=N<<1,m=Math.cos(2*Math.PI/x),O=Math.sin(2*Math.PI/x),z=0;z<A;z+=x)for(var W=m,te=O,ie=0;ie<N;ie++){var se=w[z+ie],ae=E[z+ie],we=w[z+ie+N],ve=E[z+ie+N],C=W*we-te*ve;ve=W*ve+te*we,we=C,w[z+ie]=se+we,E[z+ie]=ae+ve,w[z+ie+N]=se-we,E[z+ie+N]=ae-ve,ie!==x&&(C=m*W-O*te,te=m*te+O*W,W=C)}},B.prototype.guessLen13b=function(h,v){var w=Math.max(v,h)|1,E=w&1,A=0;for(w=w/2|0;w;w=w>>>1)A++;return 1<<A+1+E},B.prototype.conjugate=function(h,v,w){if(!(w<=1))for(var E=0;E<w/2;E++){var A=h[E];h[E]=h[w-E-1],h[w-E-1]=A,A=v[E],v[E]=-v[w-E-1],v[w-E-1]=-A}},B.prototype.normalize13b=function(h,v){for(var w=0,E=0;E<v/2;E++){var A=Math.round(h[2*E+1]/v)*8192+Math.round(h[2*E]/v)+w;h[E]=A&67108863,A<67108864?w=0:w=A/67108864|0}return h},B.prototype.convert13b=function(h,v,w,E){for(var A=0,L=0;L<v;L++)A=A+(h[L]|0),w[2*L]=A&8191,A=A>>>13,w[2*L+1]=A&8191,A=A>>>13;for(L=2*v;L<E;++L)w[L]=0;r(A===0),r((A&-8192)===0)},B.prototype.stub=function(h){for(var v=new Array(h),w=0;w<h;w++)v[w]=0;return v},B.prototype.mulp=function(h,v,w){var E=2*this.guessLen13b(h.length,v.length),A=this.makeRBT(E),L=this.stub(E),N=new Array(E),x=new Array(E),m=new Array(E),O=new Array(E),z=new Array(E),W=new Array(E),te=w.words;te.length=E,this.convert13b(h.words,h.length,N,E),this.convert13b(v.words,v.length,O,E),this.transform(N,L,x,m,E,A),this.transform(O,L,z,W,E,A);for(var ie=0;ie<E;ie++){var se=x[ie]*z[ie]-m[ie]*W[ie];m[ie]=x[ie]*W[ie]+m[ie]*z[ie],x[ie]=se}return this.conjugate(x,m,E),this.transform(x,m,te,L,E,A),this.conjugate(te,L,E),this.normalize13b(te,E),w.negative=h.negative^v.negative,w.length=h.length+v.length,w.strip()},n.prototype.mul=function(h){var v=new n(null);return v.words=new Array(this.length+h.length),this.mulTo(h,v)},n.prototype.mulf=function(h){var v=new n(null);return v.words=new Array(this.length+h.length),R(this,h,v)},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 v=0,w=0;w<this.length;w++){var E=(this.words[w]|0)*h,A=(E&67108863)+(v&67108863);v>>=26,v+=E/67108864|0,v+=A>>>26,this.words[w]=A&67108863}return v!==0&&(this.words[w]=v,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 v=p(h);if(v.length===0)return new n(1);for(var w=this,E=0;E<v.length&&v[E]===0;E++,w=w.sqr());if(++E<v.length)for(var A=w.sqr();E<v.length;E++,A=A.sqr())v[E]!==0&&(w=w.mul(A));return w},n.prototype.iushln=function(h){r(typeof h=="number"&&h>=0);var v=h%26,w=(h-v)/26,E=67108863>>>26-v<<26-v,A;if(v!==0){var L=0;for(A=0;A<this.length;A++){var N=this.words[A]&E,x=(this.words[A]|0)-N<<v;this.words[A]=x|L,L=N>>>26-v}L&&(this.words[A]=L,this.length++)}if(w!==0){for(A=this.length-1;A>=0;A--)this.words[A+w]=this.words[A];for(A=0;A<w;A++)this.words[A]=0;this.length+=w}return this.strip()},n.prototype.ishln=function(h){return r(this.negative===0),this.iushln(h)},n.prototype.iushrn=function(h,v,w){r(typeof h=="number"&&h>=0);var E;v?E=(v-v%26)/26:E=0;var A=h%26,L=Math.min((h-A)/26,this.length),N=67108863^67108863>>>A<<A,x=w;if(E-=L,E=Math.max(0,E),x){for(var m=0;m<L;m++)x.words[m]=this.words[m];x.length=L}if(L!==0)if(this.length>L)for(this.length-=L,m=0;m<this.length;m++)this.words[m]=this.words[m+L];else this.words[0]=0,this.length=1;var O=0;for(m=this.length-1;m>=0&&(O!==0||m>=E);m--){var z=this.words[m]|0;this.words[m]=O<<26-A|z>>>A,O=z&N}return x&&O!==0&&(x.words[x.length++]=O),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(h,v,w){return r(this.negative===0),this.iushrn(h,v,w)},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 v=h%26,w=(h-v)/26,E=1<<v;if(this.length<=w)return!1;var A=this.words[w];return!!(A&E)},n.prototype.imaskn=function(h){r(typeof h=="number"&&h>=0);var v=h%26,w=(h-v)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(v!==0&&w++,this.length=Math.min(w,this.length),v!==0){var E=67108863^67108863>>>v<<v;this.words[this.length-1]&=E}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 v=0;v<this.length&&this.words[v]>=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+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 v=0;v<this.length&&this.words[v]<0;v++)this.words[v]+=67108864,this.words[v+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,v,w){var E=h.length+w,A;this._expand(E);var L,N=0;for(A=0;A<h.length;A++){L=(this.words[A+w]|0)+N;var x=(h.words[A]|0)*v;L-=x&67108863,N=(L>>26)-(x/67108864|0),this.words[A+w]=L&67108863}for(;A<this.length-w;A++)L=(this.words[A+w]|0)+N,N=L>>26,this.words[A+w]=L&67108863;if(N===0)return this.strip();for(r(N===-1),N=0,A=0;A<this.length;A++)L=-(this.words[A]|0)+N,N=L>>26,this.words[A]=L&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(h,v){var w=this.length-h.length,E=this.clone(),A=h,L=A.words[A.length-1]|0,N=this._countBits(L);w=26-N,w!==0&&(A=A.ushln(w),E.iushln(w),L=A.words[A.length-1]|0);var x=E.length-A.length,m;if(v!=="mod"){m=new n(null),m.length=x+1,m.words=new Array(m.length);for(var O=0;O<m.length;O++)m.words[O]=0}var z=E.clone()._ishlnsubmul(A,1,x);z.negative===0&&(E=z,m&&(m.words[x]=1));for(var W=x-1;W>=0;W--){var te=(E.words[A.length+W]|0)*67108864+(E.words[A.length+W-1]|0);for(te=Math.min(te/L|0,67108863),E._ishlnsubmul(A,te,W);E.negative!==0;)te--,E.negative=0,E._ishlnsubmul(A,1,W),E.isZero()||(E.negative^=1);m&&(m.words[W]=te)}return m&&m.strip(),E.strip(),v!=="div"&&w!==0&&E.iushrn(w),{div:m||null,mod:E}},n.prototype.divmod=function(h,v,w){if(r(!h.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var E,A,L;return this.negative!==0&&h.negative===0?(L=this.neg().divmod(h,v),v!=="mod"&&(E=L.div.neg()),v!=="div"&&(A=L.mod.neg(),w&&A.negative!==0&&A.iadd(h)),{div:E,mod:A}):this.negative===0&&h.negative!==0?(L=this.divmod(h.neg(),v),v!=="mod"&&(E=L.div.neg()),{div:E,mod:L.mod}):(this.negative&h.negative)!==0?(L=this.neg().divmod(h.neg(),v),v!=="div"&&(A=L.mod.neg(),w&&A.negative!==0&&A.isub(h)),{div:L.div,mod:A}):h.length>this.length||this.cmp(h)<0?{div:new n(0),mod:this}:h.length===1?v==="div"?{div:this.divn(h.words[0]),mod:null}:v==="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,v)},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 v=this.divmod(h);if(v.mod.isZero())return v.div;var w=v.mod.abs(),E=h.abs().iushrn(1),A=h.words[0]&1,L=w.cmp(E);if(L<0||A===1&&L===0)return v.div;var N=new n(1);return N.negative=this.negative^h.negative,v.div.iadd(N)},n.prototype.modn=function(h){r(h<=67108863);for(var v=(1<<26)%h,w=0,E=this.length-1;E>=0;E--)w=(v*w+(this.words[E]|0))%h;return w},n.prototype.idivn=function(h){r(h<=67108863);for(var v=0,w=this.length-1;w>=0;w--){var E=(this.words[w]|0)+v*67108864;this.words[w]=E/h|0,v=E%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 v=this,w=h.clone();v.negative!==0?v=v.umod(h):v=v.clone();for(var E=new n(1),A=new n(0),L=new n(0),N=new n(1),x=0;v.isEven()&&w.isEven();)v.iushrn(1),w.iushrn(1),++x;for(var m=w.clone(),O=v.clone();!v.isZero();){for(var z=0,W=1;(v.words[0]&W)===0&&z<26;++z,W<<=1);if(z>0)for(v.iushrn(z);z-- >0;)(E.isOdd()||A.isOdd())&&(E.iadd(m),A.isub(O)),E.iushrn(1),A.iushrn(1);for(var te=0,ie=1;(w.words[0]&ie)===0&&te<26;++te,ie<<=1);if(te>0)for(w.iushrn(te);te-- >0;)(L.isOdd()||N.isOdd())&&(L.iadd(m),N.isub(O)),L.iushrn(1),N.iushrn(1);v.cmp(w)>=0?(v.isub(w),E.isub(L),A.isub(N)):(w.isub(v),L.isub(E),N.isub(A))}return{a:L,b:N,gcd:w.iushln(x)}},n.prototype._invmp=function(h){r(h.negative===0),r(!h.isZero());var v=this,w=h.clone();v.negative!==0?v=v.umod(h):v=v.clone();for(var E=new n(1),A=new n(0),L=w.clone();v.cmpn(1)>0&&w.cmpn(1)>0;){for(var N=0,x=1;(v.words[0]&x)===0&&N<26;++N,x<<=1);if(N>0)for(v.iushrn(N);N-- >0;)E.isOdd()&&E.iadd(L),E.iushrn(1);for(var m=0,O=1;(w.words[0]&O)===0&&m<26;++m,O<<=1);if(m>0)for(w.iushrn(m);m-- >0;)A.isOdd()&&A.iadd(L),A.iushrn(1);v.cmp(w)>=0?(v.isub(w),E.isub(A)):(w.isub(v),A.isub(E))}var z;return v.cmpn(1)===0?z=E:z=A,z.cmpn(0)<0&&z.iadd(h),z},n.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var v=this.clone(),w=h.clone();v.negative=0,w.negative=0;for(var E=0;v.isEven()&&w.isEven();E++)v.iushrn(1),w.iushrn(1);do{for(;v.isEven();)v.iushrn(1);for(;w.isEven();)w.iushrn(1);var A=v.cmp(w);if(A<0){var L=v;v=w,w=L}else if(A===0||w.cmpn(1)===0)break;v.isub(w)}while(!0);return w.iushln(E)},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 v=h%26,w=(h-v)/26,E=1<<v;if(this.length<=w)return this._expand(w+1),this.words[w]|=E,this;for(var A=E,L=w;A!==0&&L<this.length;L++){var N=this.words[L]|0;N+=A,A=N>>>26,N&=67108863,this.words[L]=N}return A!==0&&(this.words[L]=A,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(h){var v=h<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;this.strip();var w;if(this.length>1)w=1;else{v&&(h=-h),r(h<=67108863,"Number is too big");var E=this.words[0]|0;w=E===h?0:E<h?-1:1}return this.negative!==0?-w|0:w},n.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var v=this.ucmp(h);return this.negative!==0?-v|0:v},n.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var v=0,w=this.length-1;w>=0;w--){var E=this.words[w]|0,A=h.words[w]|0;if(E!==A){E<A?v=-1:E>A&&(v=1);break}}return v},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 K(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 H={k256:null,p224:null,p192:null,p25519:null};function F(S,h){this.name=S,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()}F.prototype._tmp=function(){var h=new n(null);return h.words=new Array(Math.ceil(this.n/13)),h},F.prototype.ireduce=function(h){var v=h,w;do this.split(v,this.tmp),v=this.imulK(v),v=v.iadd(this.tmp),w=v.bitLength();while(w>this.n);var E=w<this.n?-1:v.ucmp(this.p);return E===0?(v.words[0]=0,v.length=1):E>0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},F.prototype.split=function(h,v){h.iushrn(this.n,0,v)},F.prototype.imulK=function(h){return h.imul(this.k)};function I(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(I,F),I.prototype.split=function(h,v){for(var w=4194303,E=Math.min(h.length,9),A=0;A<E;A++)v.words[A]=h.words[A];if(v.length=E,h.length<=9){h.words[0]=0,h.length=1;return}var L=h.words[9];for(v.words[v.length++]=L&w,A=10;A<h.length;A++){var N=h.words[A]|0;h.words[A-10]=(N&w)<<4|L>>>22,L=N}L>>>=22,h.words[A-10]=L,L===0&&h.length>10?h.length-=10:h.length-=9},I.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var v=0,w=0;w<h.length;w++){var E=h.words[w]|0;v+=E*977,h.words[w]=v&67108863,v=E*64+(v/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function k(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(k,F);function D(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(D,F);function j(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(j,F),j.prototype.imulK=function(h){for(var v=0,w=0;w<h.length;w++){var E=(h.words[w]|0)*19+v,A=E&67108863;E>>>=26,h.words[w]=A,v=E}return v!==0&&(h.words[h.length++]=v),h},n._prime=function(h){if(H[h])return H[h];var v;if(h==="k256")v=new I;else if(h==="p224")v=new k;else if(h==="p192")v=new D;else if(h==="p25519")v=new j;else throw new Error("Unknown prime "+h);return H[h]=v,v};function K(S){if(typeof S=="string"){var h=n._prime(S);this.m=h.p,this.prime=h}else r(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}K.prototype._verify1=function(h){r(h.negative===0,"red works only with positives"),r(h.red,"red works only with red numbers")},K.prototype._verify2=function(h,v){r((h.negative|v.negative)===0,"red works only with positives"),r(h.red&&h.red===v.red,"red works only with red numbers")},K.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):h.umod(this.m)._forceRed(this)},K.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},K.prototype.add=function(h,v){this._verify2(h,v);var w=h.add(v);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},K.prototype.iadd=function(h,v){this._verify2(h,v);var w=h.iadd(v);return w.cmp(this.m)>=0&&w.isub(this.m),w},K.prototype.sub=function(h,v){this._verify2(h,v);var w=h.sub(v);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},K.prototype.isub=function(h,v){this._verify2(h,v);var w=h.isub(v);return w.cmpn(0)<0&&w.iadd(this.m),w},K.prototype.shl=function(h,v){return this._verify1(h),this.imod(h.ushln(v))},K.prototype.imul=function(h,v){return this._verify2(h,v),this.imod(h.imul(v))},K.prototype.mul=function(h,v){return this._verify2(h,v),this.imod(h.mul(v))},K.prototype.isqr=function(h){return this.imul(h,h.clone())},K.prototype.sqr=function(h){return this.mul(h,h)},K.prototype.sqrt=function(h){if(h.isZero())return h.clone();var v=this.m.andln(3);if(r(v%2===1),v===3){var w=this.m.add(new n(1)).iushrn(2);return this.pow(h,w)}for(var E=this.m.subn(1),A=0;!E.isZero()&&E.andln(1)===0;)A++,E.iushrn(1);r(!E.isZero());var L=new n(1).toRed(this),N=L.redNeg(),x=this.m.subn(1).iushrn(1),m=this.m.bitLength();for(m=new n(2*m*m).toRed(this);this.pow(m,x).cmp(N)!==0;)m.redIAdd(N);for(var O=this.pow(m,E),z=this.pow(h,E.addn(1).iushrn(1)),W=this.pow(h,E),te=A;W.cmp(L)!==0;){for(var ie=W,se=0;ie.cmp(L)!==0;se++)ie=ie.redSqr();r(se<te);var ae=this.pow(O,new n(1).iushln(te-se-1));z=z.redMul(ae),O=ae.redSqr(),W=W.redMul(O),te=se}return z},K.prototype.invm=function(h){var v=h._invmp(this.m);return v.negative!==0?(v.negative=0,this.imod(v).redNeg()):this.imod(v)},K.prototype.pow=function(h,v){if(v.isZero())return new n(1).toRed(this);if(v.cmpn(1)===0)return h.clone();var w=4,E=new Array(1<<w);E[0]=new n(1).toRed(this),E[1]=h;for(var A=2;A<E.length;A++)E[A]=this.mul(E[A-1],h);var L=E[0],N=0,x=0,m=v.bitLength()%26;for(m===0&&(m=26),A=v.length-1;A>=0;A--){for(var O=v.words[A],z=m-1;z>=0;z--){var W=O>>z&1;if(L!==E[0]&&(L=this.sqr(L)),W===0&&N===0){x=0;continue}N<<=1,N|=W,x++,!(x!==w&&(A!==0||z!==0))&&(L=this.mul(L,E[N]),x=0,N=0)}m=26}return L},K.prototype.convertTo=function(h){var v=h.umod(this.m);return v===h?v.clone():v},K.prototype.convertFrom=function(h){var v=h.clone();return v.red=null,v},n.mont=function(h){return new G(h)};function G(S){K.call(this,S),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(G,K),G.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},G.prototype.convertFrom=function(h){var v=this.imod(h.mul(this.rinv));return v.red=null,v},G.prototype.imul=function(h,v){if(h.isZero()||v.isZero())return h.words[0]=0,h.length=1,h;var w=h.imul(v),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),A=w.isub(E).iushrn(this.shift),L=A;return A.cmp(this.m)>=0?L=A.isub(this.m):A.cmpn(0)<0&&(L=A.iadd(this.m)),L._forceRed(this)},G.prototype.mul=function(h,v){if(h.isZero()||v.isZero())return new n(0)._forceRed(this);var w=h.mul(v),E=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),A=w.isub(E).iushrn(this.shift),L=A;return A.cmp(this.m)>=0?L=A.isub(this.m):A.cmpn(0)<0&&(L=A.iadd(this.m)),L._forceRed(this)},G.prototype.invm=function(h){var v=this.imod(h._invmp(this.m).mul(this.r2));return v._forceRed(this)}})(typeof t0>"u"||t0,jE)});var vt=P(($Q,r0)=>{g();typeof Object.create=="function"?r0.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:r0.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 Qr=P((i0,KE)=>{g();var hd=jt(),Wn=hd.Buffer;function zE(e,t){for(var r in e)t[r]=e[r]}Wn.from&&Wn.alloc&&Wn.allocUnsafe&&Wn.allocUnsafeSlow?KE.exports=hd:(zE(hd,i0),i0.Buffer=Ss);function Ss(e,t,r){return Wn(e,t,r)}Ss.prototype=Object.create(Wn.prototype);zE(Wn,Ss);Ss.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Wn(e,t,r)};Ss.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Wn(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Ss.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Wn(e)};Ss.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return hd.SlowBuffer(e)}});var Du=P((QQ,n0)=>{"use strict";g();var Mu=typeof Reflect=="object"?Reflect:null,VE=Mu&&typeof Mu.apply=="function"?Mu.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},dd;Mu&&typeof Mu.ownKeys=="function"?dd=Mu.ownKeys:Object.getOwnPropertySymbols?dd=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:dd=function(t){return Object.getOwnPropertyNames(t)};function sH(e){console&&console.warn&&console.warn(e)}var WE=Number.isNaN||function(t){return t!==t};function gt(){gt.init.call(this)}n0.exports=gt;n0.exports.once=lH;gt.EventEmitter=gt;gt.prototype._events=void 0;gt.prototype._eventsCount=0;gt.prototype._maxListeners=void 0;var GE=10;function pd(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(gt,"defaultMaxListeners",{enumerable:!0,get:function(){return GE},set:function(e){if(typeof e!="number"||e<0||WE(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");GE=e}});gt.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};gt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||WE(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 YE(e){return e._maxListeners===void 0?gt.defaultMaxListeners:e._maxListeners}gt.prototype.getMaxListeners=function(){return YE(this)};gt.prototype.emit=function(t){for(var r=[],i=1;i<arguments.length;i++)r.push(arguments[i]);var n=t==="error",o=this._events;if(o!==void 0)n=n&&o.error===void 0;else if(!n)return!1;if(n){var a;if(r.length>0&&(a=r[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[t];if(u===void 0)return!1;if(typeof u=="function")VE(u,this,r);else for(var c=u.length,l=QE(u,c),i=0;i<c;++i)VE(l[i],this,r);return!0};function ZE(e,t,r,i){var n,o,a;if(pd(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),a===void 0)a=o[t]=r,++e._eventsCount;else if(typeof a=="function"?a=o[t]=i?[r,a]:[a,r]:i?a.unshift(r):a.push(r),n=YE(e),n>0&&a.length>n&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,sH(s)}return e}gt.prototype.addListener=function(t,r){return ZE(this,t,r,!1)};gt.prototype.on=gt.prototype.addListener;gt.prototype.prependListener=function(t,r){return ZE(this,t,r,!0)};function uH(){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 $E(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=uH.bind(i);return n.listener=r,i.wrapFn=n,n}gt.prototype.once=function(t,r){return pd(r),this.on(t,$E(this,t,r)),this};gt.prototype.prependOnceListener=function(t,r){return pd(r),this.prependListener(t,$E(this,t,r)),this};gt.prototype.removeListener=function(t,r){var i,n,o,a,s;if(pd(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(o=-1,a=i.length-1;a>=0;a--)if(i[a]===r||i[a].listener===r){s=i[a].listener,o=a;break}if(o<0)return this;o===0?i.shift():cH(i,o),i.length===1&&(n[t]=i[0]),n.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};gt.prototype.off=gt.prototype.removeListener;gt.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 o=Object.keys(i),a;for(n=0;n<o.length;++n)a=o[n],a!=="removeListener"&&this.removeAllListeners(a);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 XE(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?fH(n):QE(n,n.length)}gt.prototype.listeners=function(t){return XE(this,t,!0)};gt.prototype.rawListeners=function(t){return XE(this,t,!1)};gt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):JE.call(e,t)};gt.prototype.listenerCount=JE;function JE(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}gt.prototype.eventNames=function(){return this._eventsCount>0?dd(this._events):[]};function QE(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}function cH(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function fH(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function lH(e,t){return new Promise(function(r,i){function n(a){e.removeListener(t,o),i(a)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",n),r([].slice.call(arguments))}ex(e,t,o,{once:!0}),t!=="error"&&hH(e,n,{once:!0})})}function hH(e,t,r){typeof e.on=="function"&&ex(e,"error",t,r)}function ex(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(o){i.once&&e.removeEventListener(t,n),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var o0=P((tee,tx)=>{g();tx.exports=Du().EventEmitter});var gd=P((iee,rx)=>{"use strict";g();rx.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 o 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 a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[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 kf=P((oee,ix)=>{"use strict";g();var dH=gd();ix.exports=function(){return dH()&&!!Symbol.toStringTag}});var md=P((see,nx)=>{"use strict";g();nx.exports=Object});var ax=P((cee,ox)=>{"use strict";g();ox.exports=Error});var ux=P((lee,sx)=>{"use strict";g();sx.exports=EvalError});var fx=P((dee,cx)=>{"use strict";g();cx.exports=RangeError});var hx=P((gee,lx)=>{"use strict";g();lx.exports=ReferenceError});var a0=P((vee,dx)=>{"use strict";g();dx.exports=SyntaxError});var Es=P((bee,px)=>{"use strict";g();px.exports=TypeError});var mx=P((wee,gx)=>{"use strict";g();gx.exports=URIError});var yx=P((Eee,vx)=>{"use strict";g();vx.exports=Math.abs});var _x=P((Oee,bx)=>{"use strict";g();bx.exports=Math.floor});var Sx=P((Aee,wx)=>{"use strict";g();wx.exports=Math.max});var xx=P((Pee,Ex)=>{"use strict";g();Ex.exports=Math.min});var Ix=P((kee,Ox)=>{"use strict";g();Ox.exports=Math.pow});var Tx=P((Nee,Ax)=>{"use strict";g();Ax.exports=Math.round});var Rx=P((Lee,Px)=>{"use strict";g();Px.exports=Number.isNaN||function(t){return t!==t}});var Bx=P((Dee,kx)=>{"use strict";g();var pH=Rx();kx.exports=function(t){return pH(t)||t===0?t:t<0?-1:1}});var Cx=P((Hee,Nx)=>{"use strict";g();Nx.exports=Object.getOwnPropertyDescriptor});var xs=P((Fee,Lx)=>{"use strict";g();var vd=Cx();if(vd)try{vd([],"length")}catch{vd=null}Lx.exports=vd});var Bf=P((zee,Mx)=>{"use strict";g();var yd=Object.defineProperty||!1;if(yd)try{yd({},"a",{value:1})}catch{yd=!1}Mx.exports=yd});var Hx=P((Vee,qx)=>{"use strict";g();var Dx=typeof Symbol<"u"&&Symbol,gH=gd();qx.exports=function(){return typeof Dx!="function"||typeof Symbol!="function"||typeof Dx("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:gH()}});var s0=P((Wee,Ux)=>{"use strict";g();Ux.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var u0=P((Zee,Fx)=>{"use strict";g();var mH=md();Fx.exports=mH.getPrototypeOf||null});var Kx=P((Xee,zx)=>{"use strict";g();var vH="Function.prototype.bind called on incompatible ",yH=Object.prototype.toString,bH=Math.max,_H="[object Function]",jx=function(t,r){for(var i=[],n=0;n<t.length;n+=1)i[n]=t[n];for(var o=0;o<r.length;o+=1)i[o+t.length]=r[o];return i},wH=function(t,r){for(var i=[],n=r||0,o=0;n<t.length;n+=1,o+=1)i[o]=t[n];return i},SH=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r};zx.exports=function(t){var r=this;if(typeof r!="function"||yH.apply(r)!==_H)throw new TypeError(vH+r);for(var i=wH(arguments,1),n,o=function(){if(this instanceof n){var l=r.apply(this,jx(i,arguments));return Object(l)===l?l:this}return r.apply(t,jx(i,arguments))},a=bH(0,r.length-i.length),s=[],u=0;u<a;u++)s[u]="$"+u;if(n=Function("binder","return function ("+SH(s,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var c=function(){};c.prototype=r.prototype,n.prototype=new c,c.prototype=null}return n}});var qu=P((Qee,Vx)=>{"use strict";g();var EH=Kx();Vx.exports=Function.prototype.bind||EH});var bd=P((tte,Gx)=>{"use strict";g();Gx.exports=Function.prototype.call});var _d=P((ite,Wx)=>{"use strict";g();Wx.exports=Function.prototype.apply});var Zx=P((ote,Yx)=>{"use strict";g();Yx.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var c0=P((ste,$x)=>{"use strict";g();var xH=qu(),OH=_d(),IH=bd(),AH=Zx();$x.exports=AH||xH.call(IH,OH)});var wd=P((cte,Xx)=>{"use strict";g();var TH=qu(),PH=Es(),RH=bd(),kH=c0();Xx.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new PH("a function is required");return kH(TH,RH,t)}});var i1=P((lte,r1)=>{"use strict";g();var BH=wd(),Jx=xs(),e1;try{e1=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var f0=!!e1&&Jx&&Jx(Object.prototype,"__proto__"),t1=Object,Qx=t1.getPrototypeOf;r1.exports=f0&&typeof f0.get=="function"?BH([f0.get]):typeof Qx=="function"?function(t){return Qx(t==null?t:t1(t))}:!1});var Sd=P((dte,s1)=>{"use strict";g();var n1=s0(),o1=u0(),a1=i1();s1.exports=n1?function(t){return n1(t)}:o1?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return o1(t)}:a1?function(t){return a1(t)}:null});var l0=P((gte,u1)=>{"use strict";g();var NH=Function.prototype.call,CH=Object.prototype.hasOwnProperty,LH=qu();u1.exports=LH.call(NH,CH)});var Od=P((vte,p1)=>{"use strict";g();var Ke,MH=md(),DH=ax(),qH=ux(),HH=fx(),UH=hx(),ju=a0(),Fu=Es(),FH=mx(),jH=yx(),zH=_x(),KH=Sx(),VH=xx(),GH=Ix(),WH=Tx(),YH=Bx(),h1=Function,h0=function(e){try{return h1('"use strict"; return ('+e+").constructor;")()}catch{}},Nf=xs(),ZH=Bf(),d0=function(){throw new Fu},$H=Nf?(function(){try{return arguments.callee,d0}catch{try{return Nf(arguments,"callee").get}catch{return d0}}})():d0,Hu=Hx()(),Kr=Sd(),XH=u0(),JH=s0(),d1=_d(),Cf=bd(),Uu={},QH=typeof Uint8Array>"u"||!Kr?Ke:Kr(Uint8Array),Os={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ke:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ke:ArrayBuffer,"%ArrayIteratorPrototype%":Hu&&Kr?Kr([][Symbol.iterator]()):Ke,"%AsyncFromSyncIteratorPrototype%":Ke,"%AsyncFunction%":Uu,"%AsyncGenerator%":Uu,"%AsyncGeneratorFunction%":Uu,"%AsyncIteratorPrototype%":Uu,"%Atomics%":typeof Atomics>"u"?Ke:Atomics,"%BigInt%":typeof BigInt>"u"?Ke:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ke:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ke:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ke:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":DH,"%eval%":eval,"%EvalError%":qH,"%Float16Array%":typeof Float16Array>"u"?Ke:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Ke:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ke:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ke:FinalizationRegistry,"%Function%":h1,"%GeneratorFunction%":Uu,"%Int8Array%":typeof Int8Array>"u"?Ke:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ke:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ke:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Hu&&Kr?Kr(Kr([][Symbol.iterator]())):Ke,"%JSON%":typeof JSON=="object"?JSON:Ke,"%Map%":typeof Map>"u"?Ke:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Hu||!Kr?Ke:Kr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":MH,"%Object.getOwnPropertyDescriptor%":Nf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ke:Promise,"%Proxy%":typeof Proxy>"u"?Ke:Proxy,"%RangeError%":HH,"%ReferenceError%":UH,"%Reflect%":typeof Reflect>"u"?Ke:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ke:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Hu||!Kr?Ke:Kr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ke:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Hu&&Kr?Kr(""[Symbol.iterator]()):Ke,"%Symbol%":Hu?Symbol:Ke,"%SyntaxError%":ju,"%ThrowTypeError%":$H,"%TypedArray%":QH,"%TypeError%":Fu,"%Uint8Array%":typeof Uint8Array>"u"?Ke:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ke:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ke:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ke:Uint32Array,"%URIError%":FH,"%WeakMap%":typeof WeakMap>"u"?Ke:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ke:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ke:WeakSet,"%Function.prototype.call%":Cf,"%Function.prototype.apply%":d1,"%Object.defineProperty%":ZH,"%Object.getPrototypeOf%":XH,"%Math.abs%":jH,"%Math.floor%":zH,"%Math.max%":KH,"%Math.min%":VH,"%Math.pow%":GH,"%Math.round%":WH,"%Math.sign%":YH,"%Reflect.getPrototypeOf%":JH};if(Kr)try{null.error}catch(e){c1=Kr(Kr(e)),Os["%Error.prototype%"]=c1}var c1,eU=function e(t){var r;if(t==="%AsyncFunction%")r=h0("async function () {}");else if(t==="%GeneratorFunction%")r=h0("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=h0("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Kr&&(r=Kr(n.prototype))}return Os[t]=r,r},f1={__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"]},Lf=qu(),Ed=l0(),tU=Lf.call(Cf,Array.prototype.concat),rU=Lf.call(d1,Array.prototype.splice),l1=Lf.call(Cf,String.prototype.replace),xd=Lf.call(Cf,String.prototype.slice),iU=Lf.call(Cf,RegExp.prototype.exec),nU=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oU=/\\(\\)?/g,aU=function(t){var r=xd(t,0,1),i=xd(t,-1);if(r==="%"&&i!=="%")throw new ju("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new ju("invalid intrinsic syntax, expected opening `%`");var n=[];return l1(t,nU,function(o,a,s,u){n[n.length]=s?l1(u,oU,"$1"):a||o}),n},sU=function(t,r){var i=t,n;if(Ed(f1,i)&&(n=f1[i],i="%"+n[0]+"%"),Ed(Os,i)){var o=Os[i];if(o===Uu&&(o=eU(i)),typeof o>"u"&&!r)throw new Fu("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:o}}throw new ju("intrinsic "+t+" does not exist!")};p1.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Fu("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Fu('"allowMissing" argument must be a boolean');if(iU(/^%?[^%]*%?$/,t)===null)throw new ju("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=aU(t),n=i.length>0?i[0]:"",o=sU("%"+n+"%",r),a=o.name,s=o.value,u=!1,c=o.alias;c&&(n=c[0],rU(i,tU([0,1],c)));for(var l=1,d=!0;l<i.length;l+=1){var p=i[l],y=xd(p,0,1),_=xd(p,-1);if((y==='"'||y==="'"||y==="`"||_==='"'||_==="'"||_==="`")&&y!==_)throw new ju("property names with quotes must have matching quotes");if((p==="constructor"||!d)&&(u=!0),n+="."+p,a="%"+n+"%",Ed(Os,a))s=Os[a];else if(s!=null){if(!(p in s)){if(!r)throw new Fu("base intrinsic for "+t+" exists, but the property is not available.");return}if(Nf&&l+1>=i.length){var T=Nf(s,p);d=!!T,d&&"get"in T&&!("originalValue"in T.get)?s=T.get:s=s[p]}else d=Ed(s,p),s=s[p];d&&!u&&(Os[a]=s)}}return s}});var _a=P((bte,v1)=>{"use strict";g();var g1=Od(),m1=wd(),uU=m1([g1("%String.prototype.indexOf%")]);v1.exports=function(t,r){var i=g1(t,!!r);return typeof i=="function"&&uU(t,".prototype.")>-1?m1([i]):i}});var _1=P((wte,b1)=>{"use strict";g();var cU=kf()(),fU=_a(),p0=fU("Object.prototype.toString"),Id=function(t){return cU&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:p0(t)==="[object Arguments]"},y1=function(t){return Id(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&p0(t)!=="[object Array]"&&"callee"in t&&p0(t.callee)==="[object Function]"},lU=(function(){return Id(arguments)})();Id.isLegacyArguments=y1;b1.exports=lU?Id:y1});var I1=P((Ete,O1)=>{"use strict";g();var w1=_a(),hU=kf()(),dU=l0(),pU=xs(),v0;hU?(S1=w1("RegExp.prototype.exec"),g0={},Ad=function(){throw g0},m0={toString:Ad,valueOf:Ad},typeof Symbol.toPrimitive=="symbol"&&(m0[Symbol.toPrimitive]=Ad),v0=function(t){if(!t||typeof t!="object")return!1;var r=pU(t,"lastIndex"),i=r&&dU(r,"value");if(!i)return!1;try{S1(t,m0)}catch(n){return n===g0}}):(E1=w1("Object.prototype.toString"),x1="[object RegExp]",v0=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:E1(t)===x1});var S1,g0,Ad,m0,E1,x1;O1.exports=v0});var T1=P((Ote,A1)=>{"use strict";g();var gU=_a(),mU=I1(),vU=gU("RegExp.prototype.exec"),yU=Es();A1.exports=function(t){if(!mU(t))throw new yU("`regex` must be a RegExp");return function(i){return vU(t,i)!==null}}});var R1=P((Ate,P1)=>{"use strict";g();var bU=function*(){}.constructor;P1.exports=()=>bU});var C1=P((Pte,N1)=>{"use strict";g();var B1=_a(),_U=T1(),wU=_U(/^\s*(?:function)?\*/),SU=kf()(),k1=Sd(),EU=B1("Object.prototype.toString"),xU=B1("Function.prototype.toString"),OU=R1();N1.exports=function(t){if(typeof t!="function")return!1;if(wU(xU(t)))return!0;if(!SU){var r=EU(t);return r==="[object GeneratorFunction]"}if(!k1)return!1;var i=OU();return i&&k1(t)===i.prototype}});var q1=P((kte,D1)=>{"use strict";g();var M1=Function.prototype.toString,zu=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,b0,Td;if(typeof zu=="function"&&typeof Object.defineProperty=="function")try{b0=Object.defineProperty({},"length",{get:function(){throw Td}}),Td={},zu(function(){throw 42},null,b0)}catch(e){e!==Td&&(zu=null)}else zu=null;var IU=/^\s*class\b/,_0=function(t){try{var r=M1.call(t);return IU.test(r)}catch{return!1}},y0=function(t){try{return _0(t)?!1:(M1.call(t),!0)}catch{return!1}},Pd=Object.prototype.toString,AU="[object Object]",TU="[object Function]",PU="[object GeneratorFunction]",RU="[object HTMLAllCollection]",kU="[object HTML document.all class]",BU="[object HTMLCollection]",NU=typeof Symbol=="function"&&!!Symbol.toStringTag,CU=!(0 in[,]),w0=function(){return!1};typeof document=="object"&&(L1=document.all,Pd.call(L1)===Pd.call(document.all)&&(w0=function(t){if((CU||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Pd.call(t);return(r===RU||r===kU||r===BU||r===AU)&&t("")==null}catch{}return!1}));var L1;D1.exports=zu?function(t){if(w0(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{zu(t,null,b0)}catch(r){if(r!==Td)return!1}return!_0(t)&&y0(t)}:function(t){if(w0(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(NU)return y0(t);if(_0(t))return!1;var r=Pd.call(t);return r!==TU&&r!==PU&&!/^\[object HTML/.test(r)?!1:y0(t)}});var F1=P((Nte,U1)=>{"use strict";g();var LU=q1(),MU=Object.prototype.toString,H1=Object.prototype.hasOwnProperty,DU=function(t,r,i){for(var n=0,o=t.length;n<o;n++)H1.call(t,n)&&(i==null?r(t[n],n,t):r.call(i,t[n],n,t))},qU=function(t,r,i){for(var n=0,o=t.length;n<o;n++)i==null?r(t.charAt(n),n,t):r.call(i,t.charAt(n),n,t)},HU=function(t,r,i){for(var n in t)H1.call(t,n)&&(i==null?r(t[n],n,t):r.call(i,t[n],n,t))};function UU(e){return MU.call(e)==="[object Array]"}U1.exports=function(t,r,i){if(!LU(r))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=i),UU(t)?DU(t,r,n):typeof t=="string"?qU(t,r,n):HU(t,r,n)}});var z1=P((Lte,j1)=>{"use strict";g();j1.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var V1=P((Dte,K1)=>{"use strict";g();var S0=z1(),FU=globalThis;K1.exports=function(){for(var t=[],r=0;r<S0.length;r++)typeof FU[S0[r]]=="function"&&(t[t.length]=S0[r]);return t}});var E0=P((Hte,Y1)=>{"use strict";g();var G1=Bf(),jU=a0(),Ku=Es(),W1=xs();Y1.exports=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new Ku("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ku("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ku("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ku("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ku("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ku("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!W1&&W1(t,r);if(G1)G1(t,r,{configurable:a===null&&u?u.configurable:!a,enumerable:n===null&&u?u.enumerable:!n,value:i,writable:o===null&&u?u.writable:!o});else if(s||!n&&!o&&!a)t[r]=i;else throw new jU("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var O0=P((Fte,$1)=>{"use strict";g();var x0=Bf(),Z1=function(){return!!x0};Z1.hasArrayLengthDefineBug=function(){if(!x0)return null;try{return x0([],"length",{value:1}).length!==1}catch{return!0}};$1.exports=Z1});var tO=P((zte,eO)=>{"use strict";g();var zU=Od(),X1=E0(),KU=O0()(),J1=xs(),Q1=Es(),VU=zU("%Math.floor%");eO.exports=function(t,r){if(typeof t!="function")throw new Q1("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||VU(r)!==r)throw new Q1("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&J1){var a=J1(t,"length");a&&!a.configurable&&(n=!1),a&&!a.writable&&(o=!1)}return(n||o||!i)&&(KU?X1(t,"length",r,!0,!0):X1(t,"length",r)),t}});var iO=P((Vte,rO)=>{"use strict";g();var GU=qu(),WU=_d(),YU=c0();rO.exports=function(){return YU(GU,WU,arguments)}});var Mf=P((Wte,Rd)=>{"use strict";g();var ZU=tO(),nO=Bf(),$U=wd(),oO=iO();Rd.exports=function(t){var r=$U(arguments),i=1+t.length-(arguments.length-1);return ZU(r,i>0?i:0,!0)};nO?nO(Rd.exports,"apply",{value:oO}):Rd.exports.apply=oO});var P0=P((Zte,cO)=>{"use strict";g();var Nd=F1(),XU=V1(),aO=Mf(),A0=_a(),Bd=xs(),kd=Sd(),JU=A0("Object.prototype.toString"),uO=kf()(),sO=globalThis,I0=XU(),T0=A0("String.prototype.slice"),QU=A0("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i<t.length;i+=1)if(t[i]===r)return i;return-1},Cd={__proto__:null};uO&&Bd&&kd?Nd(I0,function(e){var t=new sO[e];if(Symbol.toStringTag in t&&kd){var r=kd(t),i=Bd(r,Symbol.toStringTag);if(!i&&r){var n=kd(r);i=Bd(n,Symbol.toStringTag)}if(i&&i.get){var o=aO(i.get);Cd["$"+e]=o}}}):Nd(I0,function(e){var t=new sO[e],r=t.slice||t.set;if(r){var i=aO(r);Cd["$"+e]=i}});var eF=function(t){var r=!1;return Nd(Cd,function(i,n){if(!r)try{"$"+i(t)===n&&(r=T0(n,1))}catch{}}),r},tF=function(t){var r=!1;return Nd(Cd,function(i,n){if(!r)try{i(t),r=T0(n,1)}catch{}}),r};cO.exports=function(t){if(!t||typeof t!="object")return!1;if(!uO){var r=T0(JU(t),8,-1);return QU(I0,r)>-1?r:r!=="Object"?!1:tF(t)}return Bd?eF(t):null}});var R0=P((Xte,fO)=>{"use strict";g();var rF=P0();fO.exports=function(t){return!!rF(t)}});var xO=P(Ve=>{"use strict";g();var iF=_1(),nF=C1(),bn=P0(),lO=R0();function Vu(e){return e.call.bind(e)}var hO=typeof BigInt<"u",dO=typeof Symbol<"u",Ji=Vu(Object.prototype.toString),oF=Vu(Number.prototype.valueOf),aF=Vu(String.prototype.valueOf),sF=Vu(Boolean.prototype.valueOf);hO&&(pO=Vu(BigInt.prototype.valueOf));var pO;dO&&(gO=Vu(Symbol.prototype.valueOf));var gO;function qf(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch{return!1}}Ve.isArgumentsObject=iF;Ve.isGeneratorFunction=nF;Ve.isTypedArray=lO;function uF(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Ve.isPromise=uF;function cF(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):lO(e)||vO(e)}Ve.isArrayBufferView=cF;function fF(e){return bn(e)==="Uint8Array"}Ve.isUint8Array=fF;function lF(e){return bn(e)==="Uint8ClampedArray"}Ve.isUint8ClampedArray=lF;function hF(e){return bn(e)==="Uint16Array"}Ve.isUint16Array=hF;function dF(e){return bn(e)==="Uint32Array"}Ve.isUint32Array=dF;function pF(e){return bn(e)==="Int8Array"}Ve.isInt8Array=pF;function gF(e){return bn(e)==="Int16Array"}Ve.isInt16Array=gF;function mF(e){return bn(e)==="Int32Array"}Ve.isInt32Array=mF;function vF(e){return bn(e)==="Float32Array"}Ve.isFloat32Array=vF;function yF(e){return bn(e)==="Float64Array"}Ve.isFloat64Array=yF;function bF(e){return bn(e)==="BigInt64Array"}Ve.isBigInt64Array=bF;function _F(e){return bn(e)==="BigUint64Array"}Ve.isBigUint64Array=_F;function Ld(e){return Ji(e)==="[object Map]"}Ld.working=typeof Map<"u"&&Ld(new Map);function wF(e){return typeof Map>"u"?!1:Ld.working?Ld(e):e instanceof Map}Ve.isMap=wF;function Md(e){return Ji(e)==="[object Set]"}Md.working=typeof Set<"u"&&Md(new Set);function SF(e){return typeof Set>"u"?!1:Md.working?Md(e):e instanceof Set}Ve.isSet=SF;function Dd(e){return Ji(e)==="[object WeakMap]"}Dd.working=typeof WeakMap<"u"&&Dd(new WeakMap);function EF(e){return typeof WeakMap>"u"?!1:Dd.working?Dd(e):e instanceof WeakMap}Ve.isWeakMap=EF;function B0(e){return Ji(e)==="[object WeakSet]"}B0.working=typeof WeakSet<"u"&&B0(new WeakSet);function xF(e){return B0(e)}Ve.isWeakSet=xF;function qd(e){return Ji(e)==="[object ArrayBuffer]"}qd.working=typeof ArrayBuffer<"u"&&qd(new ArrayBuffer);function mO(e){return typeof ArrayBuffer>"u"?!1:qd.working?qd(e):e instanceof ArrayBuffer}Ve.isArrayBuffer=mO;function Hd(e){return Ji(e)==="[object DataView]"}Hd.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Hd(new DataView(new ArrayBuffer(1),0,1));function vO(e){return typeof DataView>"u"?!1:Hd.working?Hd(e):e instanceof DataView}Ve.isDataView=vO;var k0=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Df(e){return Ji(e)==="[object SharedArrayBuffer]"}function yO(e){return typeof k0>"u"?!1:(typeof Df.working>"u"&&(Df.working=Df(new k0)),Df.working?Df(e):e instanceof k0)}Ve.isSharedArrayBuffer=yO;function OF(e){return Ji(e)==="[object AsyncFunction]"}Ve.isAsyncFunction=OF;function IF(e){return Ji(e)==="[object Map Iterator]"}Ve.isMapIterator=IF;function AF(e){return Ji(e)==="[object Set Iterator]"}Ve.isSetIterator=AF;function TF(e){return Ji(e)==="[object Generator]"}Ve.isGeneratorObject=TF;function PF(e){return Ji(e)==="[object WebAssembly.Module]"}Ve.isWebAssemblyCompiledModule=PF;function bO(e){return qf(e,oF)}Ve.isNumberObject=bO;function _O(e){return qf(e,aF)}Ve.isStringObject=_O;function wO(e){return qf(e,sF)}Ve.isBooleanObject=wO;function SO(e){return hO&&qf(e,pO)}Ve.isBigIntObject=SO;function EO(e){return dO&&qf(e,gO)}Ve.isSymbolObject=EO;function RF(e){return bO(e)||_O(e)||wO(e)||SO(e)||EO(e)}Ve.isBoxedPrimitive=RF;function kF(e){return typeof Uint8Array<"u"&&(mO(e)||yO(e))}Ve.isAnyArrayBuffer=kF;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Ve,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var IO=P((tre,OO)=>{g();OO.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var Qi=P(Ge=>{g();var AO=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},BF=/%[sdj%]/g;Ge.format=function(e){if(!Gd(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(wa(arguments[r]));return t.join(" ")}for(var r=1,i=arguments,n=i.length,o=String(e).replace(BF,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}}),a=i[r];r<n;a=i[++r])Vd(a)||!Gu(a)?o+=" "+a:o+=" "+wa(a);return o};Ge.deprecate=function(e,t){if(typeof b.default<"u"&&b.default.noDeprecation===!0)return e;if(typeof b.default>"u")return function(){return Ge.deprecate(e,t).apply(this,arguments)};var r=!1;function i(){if(!r){if(b.default.throwDeprecation)throw new Error(t);b.default.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}return i};var Ud={},TO=/^$/;b.default.env.NODE_DEBUG&&(Fd=b.default.env.NODE_DEBUG,Fd=Fd.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),TO=new RegExp("^"+Fd+"$","i"));var Fd;Ge.debuglog=function(e){if(e=e.toUpperCase(),!Ud[e])if(TO.test(e)){var t=b.default.pid;Ud[e]=function(){var r=Ge.format.apply(Ge,arguments);console.error("%s %d: %s",e,t,r)}}else Ud[e]=function(){};return Ud[e]};function wa(e,t){var r={seen:[],stylize:CF};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),M0(t)?r.showHidden=t:t&&Ge._extend(r,t),As(r.showHidden)&&(r.showHidden=!1),As(r.depth)&&(r.depth=2),As(r.colors)&&(r.colors=!1),As(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=NF),zd(r,e,r.depth)}Ge.inspect=wa;wa.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]};wa.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function NF(e,t){var r=wa.styles[t];return r?"\x1B["+wa.colors[r][0]+"m"+e+"\x1B["+wa.colors[r][1]+"m":e}function CF(e,t){return e}function LF(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function zd(e,t,r){if(e.customInspect&&t&&jd(t.inspect)&&t.inspect!==Ge.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);return Gd(i)||(i=zd(e,i,r)),i}var n=MF(e,t);if(n)return n;var o=Object.keys(t),a=LF(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Uf(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return N0(t);if(o.length===0){if(jd(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Hf(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Kd(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Uf(t))return N0(t)}var u="",c=!1,l=["{","}"];if(PO(t)&&(c=!0,l=["[","]"]),jd(t)){var d=t.name?": "+t.name:"";u=" [Function"+d+"]"}if(Hf(t)&&(u=" "+RegExp.prototype.toString.call(t)),Kd(t)&&(u=" "+Date.prototype.toUTCString.call(t)),Uf(t)&&(u=" "+N0(t)),o.length===0&&(!c||t.length==0))return l[0]+u+l[1];if(r<0)return Hf(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var p;return c?p=DF(e,t,r,a,o):p=o.map(function(y){return L0(e,t,r,a,y,c)}),e.seen.pop(),qF(p,u,l)}function MF(e,t){if(As(t))return e.stylize("undefined","undefined");if(Gd(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(RO(t))return e.stylize(""+t,"number");if(M0(t))return e.stylize(""+t,"boolean");if(Vd(t))return e.stylize("null","null")}function N0(e){return"["+Error.prototype.toString.call(e)+"]"}function DF(e,t,r,i,n){for(var o=[],a=0,s=t.length;a<s;++a)kO(t,String(a))?o.push(L0(e,t,r,i,String(a),!0)):o.push("");return n.forEach(function(u){u.match(/^\d+$/)||o.push(L0(e,t,r,i,u,!0))}),o}function L0(e,t,r,i,n,o){var a,s,u;if(u=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]},u.get?u.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),kO(i,n)||(a="["+n+"]"),s||(e.seen.indexOf(u.value)<0?(Vd(r)?s=zd(e,u.value,null):s=zd(e,u.value,r-1),s.indexOf(`
|
|
2
2
|
`)>-1&&(o?s=s.split(`
|
|
3
3
|
`).map(function(c){return" "+c}).join(`
|
|
4
4
|
`).slice(2):s=`
|
|
@@ -7,10 +7,10 @@ var bsvGDAF=(()=>{var wq=Object.create;var Tf=Object.defineProperty;var Sq=Objec
|
|
|
7
7
|
`))):s=e.stylize("[Circular]","special")),As(a)){if(o&&n.match(/^\d+$/))return s;a=JSON.stringify(""+n),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function qF(e,t,r){var i=0,n=e.reduce(function(o,a){return i++,a.indexOf(`
|
|
8
8
|
`)>=0&&i++,o+a.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(t===""?"":t+`
|
|
9
9
|
`)+" "+e.join(`,
|
|
10
|
-
`)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}Ge.types=xO();function PO(e){return Array.isArray(e)}Ge.isArray=PO;function M0(e){return typeof e=="boolean"}Ge.isBoolean=M0;function Vd(e){return e===null}Ge.isNull=Vd;function HF(e){return e==null}Ge.isNullOrUndefined=HF;function RO(e){return typeof e=="number"}Ge.isNumber=RO;function Gd(e){return typeof e=="string"}Ge.isString=Gd;function UF(e){return typeof e=="symbol"}Ge.isSymbol=UF;function As(e){return e===void 0}Ge.isUndefined=As;function Hf(e){return Gu(e)&&D0(e)==="[object RegExp]"}Ge.isRegExp=Hf;Ge.types.isRegExp=Hf;function Gu(e){return typeof e=="object"&&e!==null}Ge.isObject=Gu;function Kd(e){return Gu(e)&&D0(e)==="[object Date]"}Ge.isDate=Kd;Ge.types.isDate=Kd;function Uf(e){return Gu(e)&&(D0(e)==="[object Error]"||e instanceof Error)}Ge.isError=Uf;Ge.types.isNativeError=Uf;function jd(e){return typeof e=="function"}Ge.isFunction=jd;function FF(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Ge.isPrimitive=FF;Ge.isBuffer=IO();function D0(e){return Object.prototype.toString.call(e)}function C0(e){return e<10?"0"+e.toString(10):e.toString(10)}var jF=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function zF(){var e=new Date,t=[C0(e.getHours()),C0(e.getMinutes()),C0(e.getSeconds())].join(":");return[e.getDate(),jF[e.getMonth()],t].join(" ")}Ge.log=function(){console.log("%s - %s",zF(),Ge.format.apply(Ge,arguments))};Ge.inherits=vt();Ge._extend=function(e,t){if(!t||!Gu(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};function kO(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Is=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ge.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(Is&&t[Is]){var r=t[Is];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,Is,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,o=new Promise(function(u,c){i=u,n=c}),a=[],s=0;s<arguments.length;s++)a.push(arguments[s]);a.push(function(u,c){u?n(u):i(c)});try{t.apply(this,a)}catch(u){n(u)}return o}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Is&&Object.defineProperty(r,Is,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,AO(t))};Ge.promisify.custom=Is;function KF(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function VF(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 o=this,a=function(){return n.apply(o,arguments)};e.apply(this,r).then(function(s){b.default.nextTick(a.bind(null,null,s))},function(s){b.default.nextTick(KF.bind(null,s,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,AO(e)),t}Ge.callbackify=VF});var DO=P((ore,MO)=>{"use strict";g();function BO(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 NO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BO(Object(r),!0).forEach(function(i){GF(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BO(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function GF(e,t,r){return t=LO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CO(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,LO(i.key),i)}}function YF(e,t,r){return t&&CO(e.prototype,t),r&&CO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function LO(e){var t=ZF(e,"string");return typeof t=="symbol"?t:String(t)}function ZF(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 $F=jt(),Wd=$F.Buffer,XF=Qi(),q0=XF.inspect,JF=q0&&q0.custom||"inspect";function QF(e,t,r){Wd.prototype.copy.call(e,t,r)}MO.exports=(function(){function e(){WF(this,e),this.head=null,this.tail=null,this.length=0}return YF(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 Wd.alloc(0);for(var i=Wd.allocUnsafe(r>>>0),n=this.head,o=0;n;)QF(n.data,i,o),o+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,o=i.data;for(r-=o.length;i=i.next;){var a=i.data,s=r>a.length?a.length:r;if(s===a.length?o+=a:o+=a.slice(0,r),r-=s,r===0){s===a.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(s));break}++n}return this.length-=n,o}},{key:"_getBuffer",value:function(r){var i=Wd.allocUnsafe(r),n=this.head,o=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var a=n.data,s=r>a.length?a.length:r;if(a.copy(i,i.length-r,0,s),r-=s,r===0){s===a.length?(++o,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(s));break}++o}return this.length-=o,i}},{key:JF,value:function(r,i){return q0(this,NO(NO({},i),{},{depth:0,customInspect:!1}))}}]),e})()});var U0=P((sre,HO)=>{"use strict";g();function e8(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,b.default.nextTick(H0,this,e)):b.default.nextTick(H0,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?r._writableState?r._writableState.errorEmitted?b.default.nextTick(Yd,r):(r._writableState.errorEmitted=!0,b.default.nextTick(qO,r,o)):b.default.nextTick(qO,r,o):t?(b.default.nextTick(Yd,r),t(o)):b.default.nextTick(Yd,r)}),this)}function qO(e,t){H0(e,t),Yd(e)}function Yd(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function t8(){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 H0(e,t){e.emit("error",t)}function r8(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}HO.exports={destroy:e8,undestroy:t8,errorOrDestroy:r8}});var Ts=P((cre,jO)=>{"use strict";g();function i8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var FO={};function en(e,t,r){r||(r=Error);function i(o,a,s){return typeof t=="string"?t:t(o,a,s)}var n=(function(o){i8(a,o);function a(s,u,c){return o.call(this,i(s,u,c))||this}return a})(r);n.prototype.name=r.name,n.prototype.code=e,FO[e]=n}function UO(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 n8(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o8(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a8(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}en("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);en("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&n8(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(o8(e," argument"))n="The ".concat(e," ").concat(i," ").concat(UO(t,"type"));else{var o=a8(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(o," ").concat(i," ").concat(UO(t,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);en("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");en("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});en("ERR_STREAM_PREMATURE_CLOSE","Premature close");en("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});en("ERR_MULTIPLE_CALLBACK","Callback called multiple times");en("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");en("ERR_STREAM_WRITE_AFTER_END","write after end");en("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);en("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);en("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");jO.exports.codes=FO});var F0=P((lre,zO)=>{"use strict";g();var s8=Ts().codes.ERR_INVALID_OPT_VALUE;function u8(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function c8(e,t,r,i){var n=u8(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var o=i?r:"highWaterMark";throw new s8(o,n)}return Math.floor(n)}return e.objectMode?16:16*1024}zO.exports={getHighWaterMark:c8}});var z0=P((dre,KO)=>{g();KO.exports=f8;function f8(e,t){if(j0("noDeprecation"))return e;var r=!1;function i(){if(!r){if(j0("throwDeprecation"))throw new Error(t);j0("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function j0(e){try{if(!globalThis.localStorage)return!1}catch{return!1}var t=globalThis.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var G0=P((gre,$O)=>{"use strict";g();$O.exports=zt;function GO(e){var t=this;this.next=null,this.entry=null,this.finish=function(){D8(t,e)}}var Wu;zt.WritableState=jf;var l8={deprecate:z0()},WO=o0(),$d=jt().Buffer,h8=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d8(e){return $d.from(e)}function p8(e){return $d.isBuffer(e)||e instanceof h8}var V0=U0(),g8=F0(),m8=g8.getHighWaterMark,Sa=Ts().codes,v8=Sa.ERR_INVALID_ARG_TYPE,y8=Sa.ERR_METHOD_NOT_IMPLEMENTED,b8=Sa.ERR_MULTIPLE_CALLBACK,_8=Sa.ERR_STREAM_CANNOT_PIPE,w8=Sa.ERR_STREAM_DESTROYED,S8=Sa.ERR_STREAM_NULL_VALUES,E8=Sa.ERR_STREAM_WRITE_AFTER_END,x8=Sa.ERR_UNKNOWN_ENCODING,Yu=V0.errorOrDestroy;vt()(zt,WO);function O8(){}function jf(e,t,r){Wu=Wu||Ps(),e=e||{},typeof r!="boolean"&&(r=t instanceof Wu),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m8(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){B8(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 GO(this)}jf.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(jf.prototype,"buffer",{get:l8.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Zd;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Zd=Function.prototype[Symbol.hasInstance],Object.defineProperty(zt,Symbol.hasInstance,{value:function(t){return Zd.call(this,t)?!0:this!==zt?!1:t&&t._writableState instanceof jf}})):Zd=function(t){return t instanceof this};function zt(e){Wu=Wu||Ps();var t=this instanceof Wu;if(!t&&!Zd.call(zt,this))return new zt(e);this._writableState=new jf(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)),WO.call(this)}zt.prototype.pipe=function(){Yu(this,new _8)};function I8(e,t){var r=new E8;Yu(e,r),b.default.nextTick(t,r)}function A8(e,t,r,i){var n;return r===null?n=new S8:typeof r!="string"&&!t.objectMode&&(n=new v8("chunk",["string","Buffer"],r)),n?(Yu(e,n),b.default.nextTick(i,n),!1):!0}zt.prototype.write=function(e,t,r){var i=this._writableState,n=!1,o=!i.objectMode&&p8(e);return o&&!$d.isBuffer(e)&&(e=d8(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=O8),i.ending?I8(this,r):(o||A8(this,i,e,r))&&(i.pendingcb++,n=P8(this,i,o,e,t,r)),n};zt.prototype.cork=function(){this._writableState.corked++};zt.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&YO(this,e))};zt.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 x8(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(zt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function T8(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=$d.from(t,r)),t}Object.defineProperty(zt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function P8(e,t,r,i,n,o){if(!r){var a=T8(t,i,n);i!==a&&(r=!0,n="buffer",i=a)}var s=t.objectMode?1:i.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else K0(e,t,!1,s,i,n,o);return u}function K0(e,t,r,i,n,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w8("write")):r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function R8(e,t,r,i,n){--t.pendingcb,r?(b.default.nextTick(n,i),b.default.nextTick(Ff,e,t),e._writableState.errorEmitted=!0,Yu(e,i)):(n(i),e._writableState.errorEmitted=!0,Yu(e,i),Ff(e,t))}function k8(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function B8(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new b8;if(k8(r),t)R8(e,r,i,t,n);else{var o=ZO(r)||e.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&YO(e,r),i?b.default.nextTick(VO,e,r,o,n):VO(e,r,o,n)}}function VO(e,t,r,i){r||N8(e,t),t.pendingcb--,i(),Ff(e,t)}function N8(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function YO(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,K0(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new GO(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,d=t.objectMode?1:u.length;if(K0(e,t,!1,d,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}zt.prototype._write=function(e,t,r){r(new y8("_write()"))};zt.prototype._writev=null;zt.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||M8(this,i,r),this};Object.defineProperty(zt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ZO(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function C8(e,t){e._final(function(r){t.pendingcb--,r&&Yu(e,r),t.prefinished=!0,e.emit("prefinish"),Ff(e,t)})}function L8(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,b.default.nextTick(C8,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Ff(e,t){var r=ZO(t);if(r&&(L8(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 M8(e,t,r){t.ending=!0,Ff(e,t),r&&(t.finished?b.default.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function D8(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(zt.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});zt.prototype.destroy=V0.destroy;zt.prototype._undestroy=V0.undestroy;zt.prototype._destroy=function(e,t){t(e)}});var Ps=P((vre,JO)=>{"use strict";g();var q8=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};JO.exports=Yn;var XO=Z0(),Y0=G0();vt()(Yn,XO);for(W0=q8(Y0.prototype),Xd=0;Xd<W0.length;Xd++)Jd=W0[Xd],Yn.prototype[Jd]||(Yn.prototype[Jd]=Y0.prototype[Jd]);var W0,Jd,Xd;function Yn(e){if(!(this instanceof Yn))return new Yn(e);XO.call(this,e),Y0.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",H8)))}Object.defineProperty(Yn.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Yn.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Yn.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function H8(){this._writableState.ended||b.default.nextTick(U8,this)}function U8(e){e.end()}Object.defineProperty(Yn.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 tI=P(($0,eI)=>{g();var Qd=jt(),Do=Qd.Buffer;function QO(e,t){for(var r in e)t[r]=e[r]}Do.from&&Do.alloc&&Do.allocUnsafe&&Do.allocUnsafeSlow?eI.exports=Qd:(QO(Qd,$0),$0.Buffer=Zu);function Zu(e,t,r){return Do(e,t,r)}QO(Do,Zu);Zu.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Do(e,t,r)};Zu.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Do(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Zu.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Do(e)};Zu.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Qd.SlowBuffer(e)}});var $u=P(iI=>{"use strict";g();var J0=tI().Buffer,rI=J0.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 F8(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 j8(e){var t=F8(e);if(typeof t!="string"&&(J0.isEncoding===rI||!rI(e)))throw new Error("Unknown encoding: "+e);return t||e}iI.StringDecoder=zf;function zf(e){this.encoding=j8(e);var t;switch(this.encoding){case"utf16le":this.text=Y8,this.end=Z8,t=4;break;case"utf8":this.fillLast=V8,t=4;break;case"base64":this.text=$8,this.end=X8,t=3;break;default:this.write=J8,this.end=Q8;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=J0.allocUnsafe(t)}zf.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||""};zf.prototype.end=W8;zf.prototype.text=G8;zf.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 X0(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function z8(e,t,r){var i=t.length-1;if(i<r)return 0;var n=X0(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=X0(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=X0(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function K8(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 V8(e){var t=this.lastTotal-this.lastNeed,r=K8(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 G8(e,t){var r=z8(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 W8(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function Y8(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 Z8(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 $8(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 X8(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function J8(e){return e.toString(this.encoding)}function Q8(e){return e&&e.length?this.write(e):""}});var ep=P((Sre,aI)=>{"use strict";g();var nI=Ts().codes.ERR_STREAM_PREMATURE_CLOSE;function e4(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 t4(){}function r4(e){return e.setHeader&&typeof e.abort=="function"}function oI(e,t,r){if(typeof t=="function")return oI(e,null,t);t||(t={}),r=e4(r||t4);var i=t.readable||t.readable!==!1&&e.readable,n=t.writable||t.writable!==!1&&e.writable,o=function(){e.writable||s()},a=e._writableState&&e._writableState.finished,s=function(){n=!1,a=!0,i||r.call(e)},u=e._readableState&&e._readableState.endEmitted,c=function(){i=!1,u=!0,n||r.call(e)},l=function(_){r.call(e,_)},d=function(){var _;if(i&&!u)return(!e._readableState||!e._readableState.ended)&&(_=new nI),r.call(e,_);if(n&&!a)return(!e._writableState||!e._writableState.ended)&&(_=new nI),r.call(e,_)},p=function(){e.req.on("finish",s)};return r4(e)?(e.on("complete",s),e.on("abort",d),e.req?p():e.on("request",p)):n&&!e._writableState&&(e.on("end",o),e.on("close",o)),e.on("end",c),e.on("finish",s),t.error!==!1&&e.on("error",l),e.on("close",d),function(){e.removeListener("complete",s),e.removeListener("abort",d),e.removeListener("request",p),e.req&&e.req.removeListener("finish",s),e.removeListener("end",o),e.removeListener("close",o),e.removeListener("finish",s),e.removeListener("end",c),e.removeListener("error",l),e.removeListener("close",d)}}aI.exports=oI});var uI=P((xre,sI)=>{"use strict";g();var tp;function Ea(e,t,r){return t=i4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i4(e){var t=n4(e,"string");return typeof t=="symbol"?t:String(t)}function n4(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 o4=ep(),xa=Symbol("lastResolve"),Rs=Symbol("lastReject"),Kf=Symbol("error"),rp=Symbol("ended"),ks=Symbol("lastPromise"),Q0=Symbol("handlePromise"),Bs=Symbol("stream");function Oa(e,t){return{value:e,done:t}}function a4(e){var t=e[xa];if(t!==null){var r=e[Bs].read();r!==null&&(e[ks]=null,e[xa]=null,e[Rs]=null,t(Oa(r,!1)))}}function s4(e){b.default.nextTick(a4,e)}function u4(e,t){return function(r,i){e.then(function(){if(t[rp]){r(Oa(void 0,!0));return}t[Q0](r,i)},i)}}var c4=Object.getPrototypeOf(function(){}),f4=Object.setPrototypeOf((tp={get stream(){return this[Bs]},next:function(){var t=this,r=this[Kf];if(r!==null)return Promise.reject(r);if(this[rp])return Promise.resolve(Oa(void 0,!0));if(this[Bs].destroyed)return new Promise(function(a,s){b.default.nextTick(function(){t[Kf]?s(t[Kf]):a(Oa(void 0,!0))})});var i=this[ks],n;if(i)n=new Promise(u4(i,this));else{var o=this[Bs].read();if(o!==null)return Promise.resolve(Oa(o,!1));n=new Promise(this[Q0])}return this[ks]=n,n}},Ea(tp,Symbol.asyncIterator,function(){return this}),Ea(tp,"return",function(){var t=this;return new Promise(function(r,i){t[Bs].destroy(null,function(n){if(n){i(n);return}r(Oa(void 0,!0))})})}),tp),c4),l4=function(t){var r,i=Object.create(f4,(r={},Ea(r,Bs,{value:t,writable:!0}),Ea(r,xa,{value:null,writable:!0}),Ea(r,Rs,{value:null,writable:!0}),Ea(r,Kf,{value:null,writable:!0}),Ea(r,rp,{value:t._readableState.endEmitted,writable:!0}),Ea(r,Q0,{value:function(o,a){var s=i[Bs].read();s?(i[ks]=null,i[xa]=null,i[Rs]=null,o(Oa(s,!1))):(i[xa]=o,i[Rs]=a)},writable:!0}),r));return i[ks]=null,o4(t,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=i[Rs];o!==null&&(i[ks]=null,i[xa]=null,i[Rs]=null,o(n)),i[Kf]=n;return}var a=i[xa];a!==null&&(i[ks]=null,i[xa]=null,i[Rs]=null,a(Oa(void 0,!0))),i[rp]=!0}),t.on("readable",s4.bind(null,i)),i};sI.exports=l4});var fI=P((Ire,cI)=>{g();cI.exports=function(){throw new Error("Readable.from is not available in the browser")}});var Z0=P((Pre,_I)=>{"use strict";g();_I.exports=ot;var Xu;ot.ReadableState=pI;var Tre=Du().EventEmitter,dI=function(t,r){return t.listeners(r).length},Gf=o0(),ip=jt().Buffer,h4=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d4(e){return ip.from(e)}function p4(e){return ip.isBuffer(e)||e instanceof h4}var ey=Qi(),Ue;ey&&ey.debuglog?Ue=ey.debuglog("stream"):Ue=function(){};var g4=DO(),sy=U0(),m4=F0(),v4=m4.getHighWaterMark,np=Ts().codes,y4=np.ERR_INVALID_ARG_TYPE,b4=np.ERR_STREAM_PUSH_AFTER_EOF,_4=np.ERR_METHOD_NOT_IMPLEMENTED,w4=np.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ju,ty,ry;vt()(ot,Gf);var Vf=sy.errorOrDestroy,iy=["error","close","destroy","pause","resume"];function S4(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 pI(e,t,r){Xu=Xu||Ps(),e=e||{},typeof r!="boolean"&&(r=t instanceof Xu),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v4(this,e,"readableHighWaterMark",r),this.buffer=new g4,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&&(Ju||(Ju=$u().StringDecoder),this.decoder=new Ju(e.encoding),this.encoding=e.encoding)}function ot(e){if(Xu=Xu||Ps(),!(this instanceof ot))return new ot(e);var t=this instanceof Xu;this._readableState=new pI(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Gf.call(this)}Object.defineProperty(ot.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});ot.prototype.destroy=sy.destroy;ot.prototype._undestroy=sy.undestroy;ot.prototype._destroy=function(e,t){t(e)};ot.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=ip.from(e,t),t=""),i=!0),gI(this,e,t,!1,i)};ot.prototype.unshift=function(e){return gI(this,e,null,!0,!1)};function gI(e,t,r,i,n){Ue("readableAddChunk",t);var o=e._readableState;if(t===null)o.reading=!1,O4(e,o);else{var a;if(n||(a=E4(o,t)),a)Vf(e,a);else if(o.objectMode||t&&t.length>0)if(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==ip.prototype&&(t=d4(t)),i)o.endEmitted?Vf(e,new w4):ny(e,o,t,!0);else if(o.ended)Vf(e,new b4);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?ny(e,o,t,!1):ay(e,o)):ny(e,o,t,!1)}else i||(o.reading=!1,ay(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function ny(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&&op(e)),ay(e,t)}function E4(e,t){var r;return!p4(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new y4("chunk",["string","Buffer","Uint8Array"],t)),r}ot.prototype.isPaused=function(){return this._readableState.flowing===!1};ot.prototype.setEncoding=function(e){Ju||(Ju=$u().StringDecoder);var t=new Ju(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 lI=1073741824;function x4(e){return e>=lI?e=lI:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function hI(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=x4(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}ot.prototype.read=function(e){Ue("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 Ue("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?oy(this):op(this),null;if(e=hI(e,t),e===0&&t.ended)return t.length===0&&oy(this),null;var i=t.needReadable;Ue("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,Ue("length less than watermark",i)),t.ended||t.reading?(i=!1,Ue("reading or ended",i)):i&&(Ue("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=hI(r,t)));var n;return e>0?n=yI(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&&oy(this)),n!==null&&this.emit("data",n),n};function O4(e,t){if(Ue("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?op(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,mI(e)))}}function op(e){var t=e._readableState;Ue("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(Ue("emitReadable",t.flowing),t.emittedReadable=!0,b.default.nextTick(mI,e))}function mI(e){var t=e._readableState;Ue("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,uy(e)}function ay(e,t){t.readingMore||(t.readingMore=!0,b.default.nextTick(I4,e,t))}function I4(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(Ue("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}ot.prototype._read=function(e){Vf(this,new _4("_read()"))};ot.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,Ue("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==b.default.stdout&&e!==b.default.stderr,o=n?s:T;i.endEmitted?b.default.nextTick(o):r.once("end",o),e.on("unpipe",a);function a(R,B){Ue("onunpipe"),R===r&&B&&B.hasUnpiped===!1&&(B.hasUnpiped=!0,l())}function s(){Ue("onend"),e.end()}var u=A4(r);e.on("drain",u);var c=!1;function l(){Ue("cleanup"),e.removeListener("close",y),e.removeListener("finish",_),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",a),r.removeListener("end",s),r.removeListener("end",T),r.removeListener("data",d),c=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}r.on("data",d);function d(R){Ue("ondata");var B=e.write(R);Ue("dest.write",B),B===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&bI(i.pipes,e)!==-1)&&!c&&(Ue("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function p(R){Ue("onerror",R),T(),e.removeListener("error",p),dI(e,"error")===0&&Vf(e,R)}S4(e,"error",p);function y(){e.removeListener("finish",_),T()}e.once("close",y);function _(){Ue("onfinish"),e.removeListener("close",y),T()}e.once("finish",_);function T(){Ue("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(Ue("pipe resume"),r.resume()),e};function A4(e){return function(){var r=e._readableState;Ue("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&dI(e,"data")&&(r.flowing=!0,uy(e))}}ot.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 o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=bI(t.pipes,e);return a===-1?this:(t.pipes.splice(a,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};ot.prototype.on=function(e,t){var r=Gf.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,Ue("on readable",i.length,i.reading),i.length?op(this):i.reading||b.default.nextTick(T4,this)),r};ot.prototype.addListener=ot.prototype.on;ot.prototype.removeListener=function(e,t){var r=Gf.prototype.removeListener.call(this,e,t);return e==="readable"&&b.default.nextTick(vI,this),r};ot.prototype.removeAllListeners=function(e){var t=Gf.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&b.default.nextTick(vI,this),t};function vI(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 T4(e){Ue("readable nexttick read 0"),e.read(0)}ot.prototype.resume=function(){var e=this._readableState;return e.flowing||(Ue("resume"),e.flowing=!e.readableListening,P4(this,e)),e.paused=!1,this};function P4(e,t){t.resumeScheduled||(t.resumeScheduled=!0,b.default.nextTick(R4,e,t))}function R4(e,t){Ue("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),uy(e),t.flowing&&!t.reading&&e.read(0)}ot.prototype.pause=function(){return Ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function uy(e){var t=e._readableState;for(Ue("flow",t.flowing);t.flowing&&e.read()!==null;);}ot.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(Ue("wrapped end"),r.decoder&&!r.ended){var a=r.decoder.end();a&&a.length&&t.push(a)}t.push(null)}),e.on("data",function(a){if(Ue("wrapped data"),r.decoder&&(a=r.decoder.write(a)),!(r.objectMode&&a==null)&&!(!r.objectMode&&(!a||!a.length))){var s=t.push(a);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 o=0;o<iy.length;o++)e.on(iy[o],this.emit.bind(this,iy[o]));return this._read=function(a){Ue("wrapped _read",a),i&&(i=!1,e.resume())},this};typeof Symbol=="function"&&(ot.prototype[Symbol.asyncIterator]=function(){return ty===void 0&&(ty=uI()),ty(this)});Object.defineProperty(ot.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(ot.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(ot.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});ot._fromList=yI;Object.defineProperty(ot.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function yI(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 oy(e){var t=e._readableState;Ue("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,b.default.nextTick(k4,t,e))}function k4(e,t){if(Ue("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"&&(ot.from=function(e,t){return ry===void 0&&(ry=fI()),ry(ot,e,t)});function bI(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var cy=P((kre,SI)=>{"use strict";g();SI.exports=qo;var ap=Ts().codes,B4=ap.ERR_METHOD_NOT_IMPLEMENTED,N4=ap.ERR_MULTIPLE_CALLBACK,C4=ap.ERR_TRANSFORM_ALREADY_TRANSFORMING,L4=ap.ERR_TRANSFORM_WITH_LENGTH_0,sp=Ps();vt()(qo,sp);function M4(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new N4);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 qo(e){if(!(this instanceof qo))return new qo(e);sp.call(this,e),this._transformState={afterTransform:M4.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",D4)}function D4(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){wI(e,t,r)}):wI(this,null,null)}qo.prototype.push=function(e,t){return this._transformState.needTransform=!1,sp.prototype.push.call(this,e,t)};qo.prototype._transform=function(e,t,r){r(new B4("_transform()"))};qo.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)}};qo.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};qo.prototype._destroy=function(e,t){sp.prototype._destroy.call(this,e,function(r){t(r)})};function wI(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new L4;if(e._transformState.transforming)throw new C4;return e.push(null)}});var OI=P((Nre,xI)=>{"use strict";g();xI.exports=Wf;var EI=cy();vt()(Wf,EI);function Wf(e){if(!(this instanceof Wf))return new Wf(e);EI.call(this,e)}Wf.prototype._transform=function(e,t,r){r(null,e)}});var RI=P((Lre,PI)=>{"use strict";g();var fy;function q4(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var TI=Ts().codes,H4=TI.ERR_MISSING_ARGS,U4=TI.ERR_STREAM_DESTROYED;function II(e){if(e)throw e}function F4(e){return e.setHeader&&typeof e.abort=="function"}function j4(e,t,r,i){i=q4(i);var n=!1;e.on("close",function(){n=!0}),fy===void 0&&(fy=ep()),fy(e,{readable:t,writable:r},function(a){if(a)return i(a);n=!0,i()});var o=!1;return function(a){if(!n&&!o){if(o=!0,F4(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(a||new U4("pipe"))}}}function AI(e){e()}function z4(e,t){return e.pipe(t)}function K4(e){return!e.length||typeof e[e.length-1]!="function"?II:e.pop()}function V4(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=K4(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new H4("streams");var n,o=t.map(function(a,s){var u=s<t.length-1,c=s>0;return j4(a,u,c,function(l){n||(n=l),l&&o.forEach(AI),!u&&(o.forEach(AI),i(n))})});return t.reduce(z4)}PI.exports=V4});var up=P((Dre,kI)=>{g();kI.exports=tn;var ly=Du().EventEmitter,G4=vt();G4(tn,ly);tn.Readable=Z0();tn.Writable=G0();tn.Duplex=Ps();tn.Transform=cy();tn.PassThrough=OI();tn.finished=ep();tn.pipeline=RI();tn.Stream=tn;function tn(){ly.call(this)}tn.prototype.pipe=function(e,t){var r=this;function i(l){e.writable&&e.write(l)===!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",a),r.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,typeof e.destroy=="function"&&e.destroy())}function u(l){if(c(),ly.listenerCount(this,"error")===0)throw l}r.on("error",u),e.on("error",u);function c(){r.removeListener("data",i),e.removeListener("drain",n),r.removeListener("end",a),r.removeListener("close",s),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}});var CI=P((Hre,NI)=>{"use strict";g();var Zn=Qr().Buffer,BI=up().Transform,W4=vt();function Ia(e){BI.call(this),this._block=Zn.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}W4(Ia,BI);Ia.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(n){i=n}r(i)};Ia.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};var Y4=typeof Uint8Array<"u",Z4=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Zn.prototype instanceof Uint8Array||Zn.TYPED_ARRAY_SUPPORT);function $4(e,t){if(e instanceof Zn)return e;if(typeof e=="string")return Zn.from(e,t);if(Z4&&ArrayBuffer.isView(e)){if(e.byteLength===0)return Zn.alloc(0);var r=Zn.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(Y4&&e instanceof Uint8Array||Zn.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return Zn.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}Ia.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");e=$4(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 o=0,a=e.length*8;a>0;++o)this._length[o]+=a,a=this._length[o]/4294967296|0,a>0&&(this._length[o]-=4294967296*a);return this};Ia.prototype._update=function(){throw new Error("_update is not implemented")};Ia.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};Ia.prototype._digest=function(){throw new Error("_digest is not implemented")};NI.exports=Ia});var hy=P((Fre,MI)=>{"use strict";g();var X4=vt(),LI=CI(),J4=Qr().Buffer,Q4=new Array(16);function cp(){LI.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}X4(cp,LI);cp.prototype._update=function(){for(var e=Q4,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var r=this._a,i=this._b,n=this._c,o=this._d;r=ni(r,i,n,o,e[0],3614090360,7),o=ni(o,r,i,n,e[1],3905402710,12),n=ni(n,o,r,i,e[2],606105819,17),i=ni(i,n,o,r,e[3],3250441966,22),r=ni(r,i,n,o,e[4],4118548399,7),o=ni(o,r,i,n,e[5],1200080426,12),n=ni(n,o,r,i,e[6],2821735955,17),i=ni(i,n,o,r,e[7],4249261313,22),r=ni(r,i,n,o,e[8],1770035416,7),o=ni(o,r,i,n,e[9],2336552879,12),n=ni(n,o,r,i,e[10],4294925233,17),i=ni(i,n,o,r,e[11],2304563134,22),r=ni(r,i,n,o,e[12],1804603682,7),o=ni(o,r,i,n,e[13],4254626195,12),n=ni(n,o,r,i,e[14],2792965006,17),i=ni(i,n,o,r,e[15],1236535329,22),r=oi(r,i,n,o,e[1],4129170786,5),o=oi(o,r,i,n,e[6],3225465664,9),n=oi(n,o,r,i,e[11],643717713,14),i=oi(i,n,o,r,e[0],3921069994,20),r=oi(r,i,n,o,e[5],3593408605,5),o=oi(o,r,i,n,e[10],38016083,9),n=oi(n,o,r,i,e[15],3634488961,14),i=oi(i,n,o,r,e[4],3889429448,20),r=oi(r,i,n,o,e[9],568446438,5),o=oi(o,r,i,n,e[14],3275163606,9),n=oi(n,o,r,i,e[3],4107603335,14),i=oi(i,n,o,r,e[8],1163531501,20),r=oi(r,i,n,o,e[13],2850285829,5),o=oi(o,r,i,n,e[2],4243563512,9),n=oi(n,o,r,i,e[7],1735328473,14),i=oi(i,n,o,r,e[12],2368359562,20),r=ai(r,i,n,o,e[5],4294588738,4),o=ai(o,r,i,n,e[8],2272392833,11),n=ai(n,o,r,i,e[11],1839030562,16),i=ai(i,n,o,r,e[14],4259657740,23),r=ai(r,i,n,o,e[1],2763975236,4),o=ai(o,r,i,n,e[4],1272893353,11),n=ai(n,o,r,i,e[7],4139469664,16),i=ai(i,n,o,r,e[10],3200236656,23),r=ai(r,i,n,o,e[13],681279174,4),o=ai(o,r,i,n,e[0],3936430074,11),n=ai(n,o,r,i,e[3],3572445317,16),i=ai(i,n,o,r,e[6],76029189,23),r=ai(r,i,n,o,e[9],3654602809,4),o=ai(o,r,i,n,e[12],3873151461,11),n=ai(n,o,r,i,e[15],530742520,16),i=ai(i,n,o,r,e[2],3299628645,23),r=si(r,i,n,o,e[0],4096336452,6),o=si(o,r,i,n,e[7],1126891415,10),n=si(n,o,r,i,e[14],2878612391,15),i=si(i,n,o,r,e[5],4237533241,21),r=si(r,i,n,o,e[12],1700485571,6),o=si(o,r,i,n,e[3],2399980690,10),n=si(n,o,r,i,e[10],4293915773,15),i=si(i,n,o,r,e[1],2240044497,21),r=si(r,i,n,o,e[8],1873313359,6),o=si(o,r,i,n,e[15],4264355552,10),n=si(n,o,r,i,e[6],2734768916,15),i=si(i,n,o,r,e[13],1309151649,21),r=si(r,i,n,o,e[4],4149444226,6),o=si(o,r,i,n,e[11],3174756917,10),n=si(n,o,r,i,e[2],718787259,15),i=si(i,n,o,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+o|0};cp.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=J4.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 fp(e,t){return e<<t|e>>>32-t}function ni(e,t,r,i,n,o,a){return fp(e+(t&r|~t&i)+n+o|0,a)+t|0}function oi(e,t,r,i,n,o,a){return fp(e+(t&i|r&~i)+n+o|0,a)+t|0}function ai(e,t,r,i,n,o,a){return fp(e+(t^r^i)+n+o|0,a)+t|0}function si(e,t,r,i,n,o,a){return fp(e+(r^(t|~i))+n+o|0,a)+t|0}MI.exports=cp});var qI=P((zre,DI)=>{g();var e5={}.toString;DI.exports=Array.isArray||function(e){return e5.call(e)=="[object Array]"}});var UI=P((Vre,HI)=>{"use strict";g();var t5=Es(),r5=_a(),i5=r5("TypedArray.prototype.buffer",!0),n5=R0();HI.exports=i5||function(t){if(!n5(t))throw new t5("Not a Typed Array");return t.buffer}});var lp=P((Wre,jI)=>{"use strict";g();var _n=Qr().Buffer,o5=qI(),a5=UI(),s5=ArrayBuffer.isView||function(t){try{return a5(t),!0}catch{return!1}},u5=typeof Uint8Array<"u",FI=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",c5=FI&&(_n.prototype instanceof Uint8Array||_n.TYPED_ARRAY_SUPPORT);jI.exports=function(t,r){if(_n.isBuffer(t))return t.constructor&&!("isBuffer"in t)?_n.from(t):t;if(typeof t=="string")return _n.from(t,r);if(FI&&s5(t)){if(t.byteLength===0)return _n.alloc(0);if(c5){var i=_n.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),o=_n.from(n);if(o.length===t.byteLength)return o}if(u5&&t instanceof Uint8Array)return _n.from(t);var a=o5(t);if(a)for(var s=0;s<t.length;s+=1){var u=t[s];if(typeof u!="number"||u<0||u>255||~~u!==u)throw new RangeError("Array items must be numbers in the range 0-255.")}if(a||_n.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return _n.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var GI=P((Zre,VI)=>{"use strict";g();var f5=Qr().Buffer,l5=lp(),KI=typeof Uint8Array<"u",h5=KI&&typeof ArrayBuffer<"u",zI=h5&&ArrayBuffer.isView;VI.exports=function(e,t){if(typeof e=="string"||f5.isBuffer(e)||KI&&e instanceof Uint8Array||zI&&zI(e))return l5(e,t);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var Yf=P((Xre,dy)=>{"use strict";g();typeof b.default>"u"||!b.default.version||b.default.version.indexOf("v0.")===0||b.default.version.indexOf("v1.")===0&&b.default.version.indexOf("v1.8.")!==0?dy.exports={nextTick:d5}:dy.exports=b.default;function d5(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,o,a;switch(n){case 0:case 1:return b.default.nextTick(e);case 2:return b.default.nextTick(function(){e.call(null,t)});case 3:return b.default.nextTick(function(){e.call(null,t,r)});case 4:return b.default.nextTick(function(){e.call(null,t,r,i)});default:for(o=new Array(n-1),a=0;a<o.length;)o[a++]=arguments[a];return b.default.nextTick(function(){e.apply(null,o)})}}});var YI=P((Qre,WI)=>{g();var p5={}.toString;WI.exports=Array.isArray||function(e){return p5.call(e)=="[object Array]"}});var py=P((tie,ZI)=>{g();ZI.exports=Du().EventEmitter});var dp=P((gy,XI)=>{g();var hp=jt(),Ho=hp.Buffer;function $I(e,t){for(var r in e)t[r]=e[r]}Ho.from&&Ho.alloc&&Ho.allocUnsafe&&Ho.allocUnsafeSlow?XI.exports=hp:($I(hp,gy),gy.Buffer=Qu);function Qu(e,t,r){return Ho(e,t,r)}$I(Ho,Qu);Qu.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Ho(e,t,r)};Qu.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Ho(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Qu.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ho(e)};Qu.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return hp.SlowBuffer(e)}});var ec=P(ui=>{g();function g5(e){return Array.isArray?Array.isArray(e):pp(e)==="[object Array]"}ui.isArray=g5;function m5(e){return typeof e=="boolean"}ui.isBoolean=m5;function v5(e){return e===null}ui.isNull=v5;function y5(e){return e==null}ui.isNullOrUndefined=y5;function b5(e){return typeof e=="number"}ui.isNumber=b5;function _5(e){return typeof e=="string"}ui.isString=_5;function w5(e){return typeof e=="symbol"}ui.isSymbol=w5;function S5(e){return e===void 0}ui.isUndefined=S5;function E5(e){return pp(e)==="[object RegExp]"}ui.isRegExp=E5;function x5(e){return typeof e=="object"&&e!==null}ui.isObject=x5;function O5(e){return pp(e)==="[object Date]"}ui.isDate=O5;function I5(e){return pp(e)==="[object Error]"||e instanceof Error}ui.isError=I5;function A5(e){return typeof e=="function"}ui.isFunction=A5;function T5(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}ui.isPrimitive=T5;ui.isBuffer=jt().Buffer.isBuffer;function pp(e){return Object.prototype.toString.call(e)}});var QI=P((aie,my)=>{"use strict";g();function P5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var JI=dp().Buffer,Zf=Qi();function R5(e,t,r){e.copy(t,r)}my.exports=(function(){function e(){P5(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 JI.alloc(0);for(var i=JI.allocUnsafe(r>>>0),n=this.head,o=0;n;)R5(n.data,i,o),o+=n.data.length,n=n.next;return i},e})();Zf&&Zf.inspect&&Zf.inspect.custom&&(my.exports.prototype[Zf.inspect.custom]=function(){var e=Zf.inspect({length:this.length});return this.constructor.name+" "+e})});var vy=P((uie,eA)=>{"use strict";g();var gp=Yf();function k5(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,gp.nextTick(mp,this,e)):gp.nextTick(mp,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,gp.nextTick(mp,r,o)):gp.nextTick(mp,r,o):t&&t(o)}),this)}function B5(){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 mp(e,t){e.emit("error",t)}eA.exports={destroy:k5,undestroy:B5}});var by=P((fie,uA)=>{"use strict";g();var Ns=Yf();uA.exports=Sr;function rA(e){var t=this;this.next=null,this.entry=null,this.finish=function(){$5(t,e)}}var N5=!b.default.browser&&["v0.10","v0.9."].indexOf(b.default.version.slice(0,5))>-1?setImmediate:Ns.nextTick,tc;Sr.WritableState=Xf;var iA=Object.create(ec());iA.inherits=vt();var C5={deprecate:z0()},nA=py(),yp=dp().Buffer,L5=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function M5(e){return yp.from(e)}function D5(e){return yp.isBuffer(e)||e instanceof L5}var oA=vy();iA.inherits(Sr,nA);function q5(){}function Xf(e,t){tc=tc||Cs(),e=e||{};var r=t instanceof tc;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,n=e.writableHighWaterMark,o=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(s){V5(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 rA(this)}Xf.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Xf.prototype,"buffer",{get:C5.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var vp;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(vp=Function.prototype[Symbol.hasInstance],Object.defineProperty(Sr,Symbol.hasInstance,{value:function(e){return vp.call(this,e)?!0:this!==Sr?!1:e&&e._writableState instanceof Xf}})):vp=function(e){return e instanceof this};function Sr(e){if(tc=tc||Cs(),!vp.call(Sr,this)&&!(this instanceof tc))return new Sr(e);this._writableState=new Xf(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)),nA.call(this)}Sr.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function H5(e,t){var r=new Error("write after end");e.emit("error",r),Ns.nextTick(t,r)}function U5(e,t,r,i){var n=!0,o=!1;return r===null?o=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),Ns.nextTick(i,o),n=!1),n}Sr.prototype.write=function(e,t,r){var i=this._writableState,n=!1,o=!i.objectMode&&D5(e);return o&&!yp.isBuffer(e)&&(e=M5(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=q5),i.ended?H5(this,r):(o||U5(this,i,e,r))&&(i.pendingcb++,n=j5(this,i,o,e,t,r)),n};Sr.prototype.cork=function(){var e=this._writableState;e.corked++};Sr.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&aA(this,e))};Sr.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 F5(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=yp.from(t,r)),t}Object.defineProperty(Sr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function j5(e,t,r,i,n,o){if(!r){var a=F5(t,i,n);i!==a&&(r=!0,n="buffer",i=a)}var s=t.objectMode?1:i.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else yy(e,t,!1,s,i,n,o);return u}function yy(e,t,r,i,n,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function z5(e,t,r,i,n){--t.pendingcb,r?(Ns.nextTick(n,i),Ns.nextTick($f,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),$f(e,t))}function K5(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function V5(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(K5(r),t)z5(e,r,i,t,n);else{var o=sA(r);!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&aA(e,r),i?N5(tA,e,r,o,n):tA(e,r,o,n)}}function tA(e,t,r,i){r||G5(e,t),t.pendingcb--,i(),$f(e,t)}function G5(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function aA(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,yy(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new rA(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,d=t.objectMode?1:u.length;if(yy(e,t,!1,d,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Sr.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};Sr.prototype._writev=null;Sr.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||Z5(this,i,r)};function sA(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function W5(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),$f(e,t)})}function Y5(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Ns.nextTick(W5,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function $f(e,t){var r=sA(t);return r&&(Y5(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function Z5(e,t,r){t.ending=!0,$f(e,t),r&&(t.finished?Ns.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function $5(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(Sr.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});Sr.prototype.destroy=oA.destroy;Sr.prototype._undestroy=oA.undestroy;Sr.prototype._destroy=function(e,t){this.end(),t(e)}});var Cs=P((hie,hA)=>{"use strict";g();var cA=Yf(),X5=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};hA.exports=Uo;var fA=Object.create(ec());fA.inherits=vt();var lA=Sy(),wy=by();fA.inherits(Uo,lA);for(_y=X5(wy.prototype),bp=0;bp<_y.length;bp++)_p=_y[bp],Uo.prototype[_p]||(Uo.prototype[_p]=wy.prototype[_p]);var _y,_p,bp;function Uo(e){if(!(this instanceof Uo))return new Uo(e);lA.call(this,e),wy.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",J5)}Object.defineProperty(Uo.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function J5(){this.allowHalfOpen||this._writableState.ended||cA.nextTick(Q5,this)}function Q5(e){e.end()}Object.defineProperty(Uo.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)}});Uo.prototype._destroy=function(e,t){this.push(null),this.end(),cA.nextTick(t,e)}});var Sy=P((gie,xA)=>{"use strict";g();var ic=Yf();xA.exports=At;var ej=YI(),Jf;At.ReadableState=bA;var pie=Du().EventEmitter,mA=function(e,t){return e.listeners(t).length},Ay=py(),Qf=dp().Buffer,tj=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function rj(e){return Qf.from(e)}function ij(e){return Qf.isBuffer(e)||e instanceof tj}var vA=Object.create(ec());vA.inherits=vt();var Ey=Qi(),ft=void 0;Ey&&Ey.debuglog?ft=Ey.debuglog("stream"):ft=function(){};var nj=QI(),yA=vy(),rc;vA.inherits(At,Ay);var xy=["error","close","destroy","pause","resume"];function oj(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):ej(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function bA(e,t){Jf=Jf||Cs(),e=e||{};var r=t instanceof Jf;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,n=e.readableHighWaterMark,o=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new nj,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&&(rc||(rc=$u().StringDecoder),this.decoder=new rc(e.encoding),this.encoding=e.encoding)}function At(e){if(Jf=Jf||Cs(),!(this instanceof At))return new At(e);this._readableState=new bA(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ay.call(this)}Object.defineProperty(At.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});At.prototype.destroy=yA.destroy;At.prototype._undestroy=yA.undestroy;At.prototype._destroy=function(e,t){this.push(null),t(e)};At.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=Qf.from(e,t),t=""),i=!0),_A(this,e,t,!1,i)};At.prototype.unshift=function(e){return _A(this,e,null,!0,!1)};function _A(e,t,r,i,n){var o=e._readableState;if(t===null)o.reading=!1,cj(e,o);else{var a;n||(a=aj(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==Qf.prototype&&(t=rj(t)),i?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Oy(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?Oy(e,o,t,!1):wA(e,o)):Oy(e,o,t,!1))):i||(o.reading=!1)}return sj(o)}function Oy(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&&wp(e)),wA(e,t)}function aj(e,t){var r;return!ij(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function sj(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}At.prototype.isPaused=function(){return this._readableState.flowing===!1};At.prototype.setEncoding=function(e){return rc||(rc=$u().StringDecoder),this._readableState.decoder=new rc(e),this._readableState.encoding=e,this};var dA=8388608;function uj(e){return e>=dA?e=dA:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function pA(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=uj(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}At.prototype.read=function(e){ft("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 ft("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Iy(this):wp(this),null;if(e=pA(e,t),e===0&&t.ended)return t.length===0&&Iy(this),null;var i=t.needReadable;ft("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,ft("length less than watermark",i)),t.ended||t.reading?(i=!1,ft("reading or ended",i)):i&&(ft("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=pA(r,t)));var n;return e>0?n=SA(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&&Iy(this)),n!==null&&this.emit("data",n),n};function cj(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,wp(e)}}function wp(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(ft("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?ic.nextTick(gA,e):gA(e))}function gA(e){ft("emit readable"),e.emit("readable"),Ty(e)}function wA(e,t){t.readingMore||(t.readingMore=!0,ic.nextTick(fj,e,t))}function fj(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(ft("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}At.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};At.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,ft("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==b.default.stdout&&e!==b.default.stderr,o=n?s:R;i.endEmitted?ic.nextTick(o):r.once("end",o),e.on("unpipe",a);function a(B,H){ft("onunpipe"),B===r&&H&&H.hasUnpiped===!1&&(H.hasUnpiped=!0,l())}function s(){ft("onend"),e.end()}var u=lj(r);e.on("drain",u);var c=!1;function l(){ft("cleanup"),e.removeListener("close",_),e.removeListener("finish",T),e.removeListener("drain",u),e.removeListener("error",y),e.removeListener("unpipe",a),r.removeListener("end",s),r.removeListener("end",R),r.removeListener("data",p),c=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}var d=!1;r.on("data",p);function p(B){ft("ondata"),d=!1;var H=e.write(B);H===!1&&!d&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&EA(i.pipes,e)!==-1)&&!c&&(ft("false write response, pause",i.awaitDrain),i.awaitDrain++,d=!0),r.pause())}function y(B){ft("onerror",B),R(),e.removeListener("error",y),mA(e,"error")===0&&e.emit("error",B)}oj(e,"error",y);function _(){e.removeListener("finish",T),R()}e.once("close",_);function T(){ft("onfinish"),e.removeListener("close",_),R()}e.once("finish",T);function R(){ft("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(ft("pipe resume"),r.resume()),e};function lj(e){return function(){var t=e._readableState;ft("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&mA(e,"data")&&(t.flowing=!0,Ty(e))}}At.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 o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=EA(t.pipes,e);return a===-1?this:(t.pipes.splice(a,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};At.prototype.on=function(e,t){var r=Ay.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&&wp(this):ic.nextTick(hj,this))}return r};At.prototype.addListener=At.prototype.on;function hj(e){ft("readable nexttick read 0"),e.read(0)}At.prototype.resume=function(){var e=this._readableState;return e.flowing||(ft("resume"),e.flowing=!0,dj(this,e)),this};function dj(e,t){t.resumeScheduled||(t.resumeScheduled=!0,ic.nextTick(pj,e,t))}function pj(e,t){t.reading||(ft("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Ty(e),t.flowing&&!t.reading&&e.read(0)}At.prototype.pause=function(){return ft("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ft("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ty(e){var t=e._readableState;for(ft("flow",t.flowing);t.flowing&&e.read()!==null;);}At.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(ft("wrapped end"),r.decoder&&!r.ended){var a=r.decoder.end();a&&a.length&&t.push(a)}t.push(null)}),e.on("data",function(a){if(ft("wrapped data"),r.decoder&&(a=r.decoder.write(a)),!(r.objectMode&&a==null)&&!(!r.objectMode&&(!a||!a.length))){var s=t.push(a);s||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(a){return function(){return e[a].apply(e,arguments)}})(n));for(var o=0;o<xy.length;o++)e.on(xy[o],this.emit.bind(this,xy[o]));return this._read=function(a){ft("wrapped _read",a),i&&(i=!1,e.resume())},this};Object.defineProperty(At.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});At._fromList=SA;function SA(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=gj(e,t.buffer,t.decoder),r}function gj(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?mj(e,t):vj(e,t),i}function mj(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?n+=o:n+=o.slice(0,e),e-=a,e===0){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}function vj(e,t){var r=Qf.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),e-=a,e===0){a===o.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++n}return t.length-=n,r}function Iy(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,ic.nextTick(yj,t,e))}function yj(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function EA(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var Py=P((vie,AA)=>{"use strict";g();AA.exports=Fo;var Sp=Cs(),IA=Object.create(ec());IA.inherits=vt();IA.inherits(Fo,Sp);function bj(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 Fo(e){if(!(this instanceof Fo))return new Fo(e);Sp.call(this,e),this._transformState={afterTransform:bj.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",_j)}function _j(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){OA(e,t,r)}):OA(this,null,null)}Fo.prototype.push=function(e,t){return this._transformState.needTransform=!1,Sp.prototype.push.call(this,e,t)};Fo.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Fo.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)}};Fo.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};Fo.prototype._destroy=function(e,t){var r=this;Sp.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function OA(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 kA=P((bie,RA)=>{"use strict";g();RA.exports=el;var TA=Py(),PA=Object.create(ec());PA.inherits=vt();PA.inherits(el,TA);function el(e){if(!(this instanceof el))return new el(e);TA.call(this,e)}el.prototype._transform=function(e,t,r){r(null,e)}});var NA=P(($n,BA)=>{g();$n=BA.exports=Sy();$n.Stream=$n;$n.Readable=$n;$n.Writable=by();$n.Duplex=Cs();$n.Transform=Py();$n.PassThrough=kA()});var MA=P((Sie,LA)=>{"use strict";g();var wj=Qr().Buffer,Sj=GI(),CA=NA().Transform,Ej=vt();function Aa(e){CA.call(this),this._block=wj.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Ej(Aa,CA);Aa.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(n){i=n}r(i)};Aa.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};Aa.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");for(var r=Sj(e,t),i=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)i[o]=r[n],o+=1,n+=1;this._update(),this._blockOffset=0}for(;n<r.length;)i[this._blockOffset]=r[n],this._blockOffset+=1,n+=1;for(var a=0,s=r.length*8;s>0;++a)this._length[a]+=s,s=this._length[a]/4294967296|0,s>0&&(this._length[a]-=4294967296*s);return this};Aa.prototype._update=function(){throw new Error("_update is not implemented")};Aa.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};Aa.prototype._digest=function(){throw new Error("_digest is not implemented")};LA.exports=Aa});var ky=P((xie,zA)=>{"use strict";g();var Ry=jt().Buffer,xj=vt(),jA=MA(),Oj=new Array(16),tl=[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],rl=[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],il=[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],nl=[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],ol=[0,1518500249,1859775393,2400959708,2840853838],al=[1352829926,1548603684,1836072691,2053994217,0];function Ls(e,t){return e<<t|e>>>32-t}function DA(e,t,r,i,n,o,a,s){return Ls(e+(t^r^i)+o+a|0,s)+n|0}function qA(e,t,r,i,n,o,a,s){return Ls(e+(t&r|~t&i)+o+a|0,s)+n|0}function HA(e,t,r,i,n,o,a,s){return Ls(e+((t|~r)^i)+o+a|0,s)+n|0}function UA(e,t,r,i,n,o,a,s){return Ls(e+(t&i|r&~i)+o+a|0,s)+n|0}function FA(e,t,r,i,n,o,a,s){return Ls(e+(t^(r|~i))+o+a|0,s)+n|0}function Ep(){jA.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}xj(Ep,jA);Ep.prototype._update=function(){for(var e=Oj,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,o=this._d|0,a=this._e|0,s=this._a|0,u=this._b|0,c=this._c|0,l=this._d|0,d=this._e|0,p=0;p<80;p+=1){var y,_;p<16?(y=DA(r,i,n,o,a,e[tl[p]],ol[0],il[p]),_=FA(s,u,c,l,d,e[rl[p]],al[0],nl[p])):p<32?(y=qA(r,i,n,o,a,e[tl[p]],ol[1],il[p]),_=UA(s,u,c,l,d,e[rl[p]],al[1],nl[p])):p<48?(y=HA(r,i,n,o,a,e[tl[p]],ol[2],il[p]),_=HA(s,u,c,l,d,e[rl[p]],al[2],nl[p])):p<64?(y=UA(r,i,n,o,a,e[tl[p]],ol[3],il[p]),_=qA(s,u,c,l,d,e[rl[p]],al[3],nl[p])):(y=FA(r,i,n,o,a,e[tl[p]],ol[4],il[p]),_=DA(s,u,c,l,d,e[rl[p]],al[4],nl[p])),r=a,a=o,o=Ls(n,10),n=i,i=y,s=d,d=l,l=Ls(c,10),c=u,u=_}var T=this._b+n+l|0;this._b=this._c+o+d|0,this._c=this._d+a+s|0,this._d=this._e+r+u|0,this._e=this._a+i+c|0,this._a=T};Ep.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=Ry.alloc?Ry.alloc(20):new Ry(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};zA.exports=Ep});var Ms=P((Iie,KA)=>{"use strict";g();var Ij=Qr().Buffer,Aj=lp();function xp(e,t){this._block=Ij.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}xp.prototype.update=function(e,t){e=Aj(e,t||"utf8");for(var r=this._block,i=this._blockSize,n=e.length,o=this._len,a=0;a<n;){for(var s=o%i,u=Math.min(n-a,i-s),c=0;c<u;c++)r[s+c]=e[a+c];o+=u,a+=u,o%i===0&&this._update(r)}return this._len+=n,this};xp.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 o=this._hash();return e?o.toString(e):o};xp.prototype._update=function(){throw new Error("_update must be implemented by subclass")};KA.exports=xp});var WA=P((Tie,GA)=>{"use strict";g();var Tj=vt(),VA=Ms(),Pj=Qr().Buffer,Rj=[1518500249,1859775393,-1894007588,-899497514],kj=new Array(80);function sl(){this.init(),this._w=kj,VA.call(this,64,56)}Tj(sl,VA);sl.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Bj(e){return e<<5|e>>>27}function Nj(e){return e<<30|e>>>2}function Cj(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}sl.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,o=this._d|0,a=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 u=0;u<80;++u){var c=~~(u/20),l=Bj(r)+Cj(c,i,n,o)+a+t[u]+Rj[c]|0;a=o,o=n,n=Nj(i),i=r,r=l}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0};sl.prototype._hash=function(){var e=Pj.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};GA.exports=sl});var $A=P((Rie,ZA)=>{"use strict";g();var Lj=vt(),YA=Ms(),Mj=Qr().Buffer,Dj=[1518500249,1859775393,-1894007588,-899497514],qj=new Array(80);function ul(){this.init(),this._w=qj,YA.call(this,64,56)}Lj(ul,YA);ul.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Hj(e){return e<<1|e>>>31}function Uj(e){return e<<5|e>>>27}function Fj(e){return e<<30|e>>>2}function jj(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}ul.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,o=this._d|0,a=this._e|0,s=0;s<16;++s)t[s]=e.readInt32BE(s*4);for(;s<80;++s)t[s]=Hj(t[s-3]^t[s-8]^t[s-14]^t[s-16]);for(var u=0;u<80;++u){var c=~~(u/20),l=Uj(r)+jj(c,i,n,o)+a+t[u]+Dj[c]|0;a=o,o=n,n=Fj(i),i=r,r=l}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0};ul.prototype._hash=function(){var e=Mj.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};ZA.exports=ul});var By=P((Bie,JA)=>{"use strict";g();var zj=vt(),XA=Ms(),Kj=Qr().Buffer,Vj=[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],Gj=new Array(64);function cl(){this.init(),this._w=Gj,XA.call(this,64,56)}zj(cl,XA);cl.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 Wj(e,t,r){return r^e&(t^r)}function Yj(e,t,r){return e&t|r&(e|t)}function Zj(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function $j(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function Xj(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function Jj(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}cl.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,o=this._d|0,a=this._e|0,s=this._f|0,u=this._g|0,c=this._h|0,l=0;l<16;++l)t[l]=e.readInt32BE(l*4);for(;l<64;++l)t[l]=Jj(t[l-2])+t[l-7]+Xj(t[l-15])+t[l-16]|0;for(var d=0;d<64;++d){var p=c+$j(a)+Wj(a,s,u)+Vj[d]+t[d]|0,y=Zj(r)+Yj(r,i,n)|0;c=u,u=s,s=a,a=o+p|0,o=n,n=i,i=r,r=p+y|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=s+this._f|0,this._g=u+this._g|0,this._h=c+this._h|0};cl.prototype._hash=function(){var e=Kj.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};JA.exports=cl});var eT=P((Cie,QA)=>{"use strict";g();var Qj=vt(),ez=By(),tz=Ms(),rz=Qr().Buffer,iz=new Array(64);function Op(){this.init(),this._w=iz,tz.call(this,64,56)}Qj(Op,ez);Op.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};Op.prototype._hash=function(){var e=rz.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};QA.exports=Op});var Ny=P((Mie,sT)=>{"use strict";g();var nz=vt(),aT=Ms(),oz=Qr().Buffer,tT=[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],az=new Array(160);function fl(){this.init(),this._w=az,aT.call(this,128,112)}nz(fl,aT);fl.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 rT(e,t,r){return r^e&(t^r)}function iT(e,t,r){return e&t|r&(e|t)}function nT(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function oT(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function sz(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function uz(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function cz(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function fz(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function Vr(e,t){return e>>>0<t>>>0?1:0}fl.prototype._update=function(e){for(var t=this._w,r=this._ah|0,i=this._bh|0,n=this._ch|0,o=this._dh|0,a=this._eh|0,s=this._fh|0,u=this._gh|0,c=this._hh|0,l=this._al|0,d=this._bl|0,p=this._cl|0,y=this._dl|0,_=this._el|0,T=this._fl|0,R=this._gl|0,B=this._hl|0,H=0;H<32;H+=2)t[H]=e.readInt32BE(H*4),t[H+1]=e.readInt32BE(H*4+4);for(;H<160;H+=2){var F=t[H-30],I=t[H-30+1],k=sz(F,I),D=uz(I,F);F=t[H-4],I=t[H-4+1];var j=cz(F,I),K=fz(I,F),G=t[H-14],S=t[H-14+1],h=t[H-32],v=t[H-32+1],w=D+S|0,E=k+G+Vr(w,D)|0;w=w+K|0,E=E+j+Vr(w,K)|0,w=w+v|0,E=E+h+Vr(w,v)|0,t[H]=E,t[H+1]=w}for(var A=0;A<160;A+=2){E=t[A],w=t[A+1];var L=iT(r,i,n),N=iT(l,d,p),x=nT(r,l),m=nT(l,r),O=oT(a,_),z=oT(_,a),W=tT[A],te=tT[A+1],ie=rT(a,s,u),se=rT(_,T,R),ae=B+z|0,we=c+O+Vr(ae,B)|0;ae=ae+se|0,we=we+ie+Vr(ae,se)|0,ae=ae+te|0,we=we+W+Vr(ae,te)|0,ae=ae+w|0,we=we+E+Vr(ae,w)|0;var me=m+N|0,C=x+L+Vr(me,m)|0;c=u,B=R,u=s,R=T,s=a,T=_,_=y+ae|0,a=o+we+Vr(_,y)|0,o=n,y=p,n=i,p=d,i=r,d=l,l=ae+me|0,r=we+C+Vr(l,ae)|0}this._al=this._al+l|0,this._bl=this._bl+d|0,this._cl=this._cl+p|0,this._dl=this._dl+y|0,this._el=this._el+_|0,this._fl=this._fl+T|0,this._gl=this._gl+R|0,this._hl=this._hl+B|0,this._ah=this._ah+r+Vr(this._al,l)|0,this._bh=this._bh+i+Vr(this._bl,d)|0,this._ch=this._ch+n+Vr(this._cl,p)|0,this._dh=this._dh+o+Vr(this._dl,y)|0,this._eh=this._eh+a+Vr(this._el,_)|0,this._fh=this._fh+s+Vr(this._fl,T)|0,this._gh=this._gh+u+Vr(this._gl,R)|0,this._hh=this._hh+c+Vr(this._hl,B)|0};fl.prototype._hash=function(){var e=oz.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};sT.exports=fl});var cT=P((qie,uT)=>{"use strict";g();var lz=vt(),hz=Ny(),dz=Ms(),pz=Qr().Buffer,gz=new Array(160);function Ip(){this.init(),this._w=gz,dz.call(this,128,112)}lz(Ip,hz);Ip.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};Ip.prototype._hash=function(){var e=pz.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};uT.exports=Ip});var Cy=P((Uie,jo)=>{"use strict";g();jo.exports=function(t){var r=t.toLowerCase(),i=jo.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i};jo.exports.sha=WA();jo.exports.sha1=$A();jo.exports.sha224=eT();jo.exports.sha256=By();jo.exports.sha384=cT();jo.exports.sha512=Ny()});var Ap=P((jie,lT)=>{"use strict";g();var mz=Qr().Buffer,fT=up().Transform,vz=$u().StringDecoder,yz=vt(),bz=lp();function wn(e){fT.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}yz(wn,fT);wn.prototype.update=function(e,t,r){var i=bz(e,t),n=this._update(i);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)};wn.prototype.setAutoPadding=function(){};wn.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};wn.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};wn.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};wn.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)}};wn.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)};wn.prototype._finalOrDigest=function(e){var t=this.__final()||mz.alloc(0);return e&&(t=this._toString(t,e,!0)),t};wn.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new vz(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};lT.exports=wn});var pT=P((Kie,dT)=>{"use strict";g();var _z=vt(),wz=hy(),Sz=ky(),Ez=Cy(),hT=Ap();function Tp(e){hT.call(this,"digest"),this._hash=e}_z(Tp,hT);Tp.prototype._update=function(e){this._hash.update(e)};Tp.prototype._final=function(){return this._hash.digest()};dT.exports=function(t){return t=t.toLowerCase(),t==="md5"?new wz:t==="rmd160"||t==="ripemd160"?new Sz:new Tp(Ez(t))}});var vT=P((Gie,mT)=>{"use strict";g();var xz=vt(),Ds=Qr().Buffer,gT=Ap(),Oz=Ds.alloc(128),nc=64;function Pp(e,t){gT.call(this,"digest"),typeof t=="string"&&(t=Ds.from(t)),this._alg=e,this._key=t,t.length>nc?t=e(t):t.length<nc&&(t=Ds.concat([t,Oz],nc));for(var r=this._ipad=Ds.allocUnsafe(nc),i=this._opad=Ds.allocUnsafe(nc),n=0;n<nc;n++)r[n]=t[n]^54,i[n]=t[n]^92;this._hash=[r]}xz(Pp,gT);Pp.prototype._update=function(e){this._hash.push(e)};Pp.prototype._final=function(){var e=this._alg(Ds.concat(this._hash));return this._alg(Ds.concat([this._opad,e]))};mT.exports=Pp});var bT=P((Yie,yT)=>{g();var Iz=hy();yT.exports=function(e){return new Iz().update(e).digest()}});var ST=P(($ie,wT)=>{"use strict";g();var Az=vt(),Tz=vT(),_T=Ap(),ll=Qr().Buffer,Pz=bT(),Ly=ky(),My=Cy(),Rz=ll.alloc(128);function hl(e,t){_T.call(this,"digest"),typeof t=="string"&&(t=ll.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 Ly:My(e);t=i.update(t).digest()}else t.length<r&&(t=ll.concat([t,Rz],r));for(var n=this._ipad=ll.allocUnsafe(r),o=this._opad=ll.allocUnsafe(r),a=0;a<r;a++)n[a]=t[a]^54,o[a]=t[a]^92;this._hash=e==="rmd160"?new Ly:My(e),this._hash.update(n)}Az(hl,_T);hl.prototype._update=function(e){this._hash.update(e)};hl.prototype._final=function(){var e=this._hash.digest(),t=this._alg==="rmd160"?new Ly:My(this._alg);return t.update(this._opad).update(e).digest()};wT.exports=function(t,r){return t=t.toLowerCase(),t==="rmd160"||t==="ripemd160"?new hl("rmd160",r):t==="md5"?new Tz(Pz,r):new hl(t,r)}});var ET=P((Jie,qy)=>{"use strict";g();var Dy=65536,kz=4294967295;function Bz(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
10
|
+
`)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}Ge.types=xO();function PO(e){return Array.isArray(e)}Ge.isArray=PO;function M0(e){return typeof e=="boolean"}Ge.isBoolean=M0;function Vd(e){return e===null}Ge.isNull=Vd;function HF(e){return e==null}Ge.isNullOrUndefined=HF;function RO(e){return typeof e=="number"}Ge.isNumber=RO;function Gd(e){return typeof e=="string"}Ge.isString=Gd;function UF(e){return typeof e=="symbol"}Ge.isSymbol=UF;function As(e){return e===void 0}Ge.isUndefined=As;function Hf(e){return Gu(e)&&D0(e)==="[object RegExp]"}Ge.isRegExp=Hf;Ge.types.isRegExp=Hf;function Gu(e){return typeof e=="object"&&e!==null}Ge.isObject=Gu;function Kd(e){return Gu(e)&&D0(e)==="[object Date]"}Ge.isDate=Kd;Ge.types.isDate=Kd;function Uf(e){return Gu(e)&&(D0(e)==="[object Error]"||e instanceof Error)}Ge.isError=Uf;Ge.types.isNativeError=Uf;function jd(e){return typeof e=="function"}Ge.isFunction=jd;function FF(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Ge.isPrimitive=FF;Ge.isBuffer=IO();function D0(e){return Object.prototype.toString.call(e)}function C0(e){return e<10?"0"+e.toString(10):e.toString(10)}var jF=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function zF(){var e=new Date,t=[C0(e.getHours()),C0(e.getMinutes()),C0(e.getSeconds())].join(":");return[e.getDate(),jF[e.getMonth()],t].join(" ")}Ge.log=function(){console.log("%s - %s",zF(),Ge.format.apply(Ge,arguments))};Ge.inherits=vt();Ge._extend=function(e,t){if(!t||!Gu(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};function kO(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Is=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ge.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(Is&&t[Is]){var r=t[Is];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,Is,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,o=new Promise(function(u,c){i=u,n=c}),a=[],s=0;s<arguments.length;s++)a.push(arguments[s]);a.push(function(u,c){u?n(u):i(c)});try{t.apply(this,a)}catch(u){n(u)}return o}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Is&&Object.defineProperty(r,Is,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,AO(t))};Ge.promisify.custom=Is;function KF(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function VF(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 o=this,a=function(){return n.apply(o,arguments)};e.apply(this,r).then(function(s){b.default.nextTick(a.bind(null,null,s))},function(s){b.default.nextTick(KF.bind(null,s,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,AO(e)),t}Ge.callbackify=VF});var DO=P((ore,MO)=>{"use strict";g();function BO(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 NO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BO(Object(r),!0).forEach(function(i){GF(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BO(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function GF(e,t,r){return t=LO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CO(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,LO(i.key),i)}}function YF(e,t,r){return t&&CO(e.prototype,t),r&&CO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function LO(e){var t=ZF(e,"string");return typeof t=="symbol"?t:String(t)}function ZF(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 $F=jt(),Wd=$F.Buffer,XF=Qi(),q0=XF.inspect,JF=q0&&q0.custom||"inspect";function QF(e,t,r){Wd.prototype.copy.call(e,t,r)}MO.exports=(function(){function e(){WF(this,e),this.head=null,this.tail=null,this.length=0}return YF(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 Wd.alloc(0);for(var i=Wd.allocUnsafe(r>>>0),n=this.head,o=0;n;)QF(n.data,i,o),o+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,o=i.data;for(r-=o.length;i=i.next;){var a=i.data,s=r>a.length?a.length:r;if(s===a.length?o+=a:o+=a.slice(0,r),r-=s,r===0){s===a.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(s));break}++n}return this.length-=n,o}},{key:"_getBuffer",value:function(r){var i=Wd.allocUnsafe(r),n=this.head,o=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var a=n.data,s=r>a.length?a.length:r;if(a.copy(i,i.length-r,0,s),r-=s,r===0){s===a.length?(++o,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(s));break}++o}return this.length-=o,i}},{key:JF,value:function(r,i){return q0(this,NO(NO({},i),{},{depth:0,customInspect:!1}))}}]),e})()});var U0=P((sre,HO)=>{"use strict";g();function e8(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,b.default.nextTick(H0,this,e)):b.default.nextTick(H0,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?r._writableState?r._writableState.errorEmitted?b.default.nextTick(Yd,r):(r._writableState.errorEmitted=!0,b.default.nextTick(qO,r,o)):b.default.nextTick(qO,r,o):t?(b.default.nextTick(Yd,r),t(o)):b.default.nextTick(Yd,r)}),this)}function qO(e,t){H0(e,t),Yd(e)}function Yd(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function t8(){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 H0(e,t){e.emit("error",t)}function r8(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}HO.exports={destroy:e8,undestroy:t8,errorOrDestroy:r8}});var Ts=P((cre,jO)=>{"use strict";g();function i8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var FO={};function en(e,t,r){r||(r=Error);function i(o,a,s){return typeof t=="string"?t:t(o,a,s)}var n=(function(o){i8(a,o);function a(s,u,c){return o.call(this,i(s,u,c))||this}return a})(r);n.prototype.name=r.name,n.prototype.code=e,FO[e]=n}function UO(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 n8(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o8(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a8(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}en("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);en("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&n8(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(o8(e," argument"))n="The ".concat(e," ").concat(i," ").concat(UO(t,"type"));else{var o=a8(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(o," ").concat(i," ").concat(UO(t,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);en("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");en("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});en("ERR_STREAM_PREMATURE_CLOSE","Premature close");en("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});en("ERR_MULTIPLE_CALLBACK","Callback called multiple times");en("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");en("ERR_STREAM_WRITE_AFTER_END","write after end");en("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);en("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);en("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");jO.exports.codes=FO});var F0=P((lre,zO)=>{"use strict";g();var s8=Ts().codes.ERR_INVALID_OPT_VALUE;function u8(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function c8(e,t,r,i){var n=u8(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var o=i?r:"highWaterMark";throw new s8(o,n)}return Math.floor(n)}return e.objectMode?16:16*1024}zO.exports={getHighWaterMark:c8}});var z0=P((dre,KO)=>{g();KO.exports=f8;function f8(e,t){if(j0("noDeprecation"))return e;var r=!1;function i(){if(!r){if(j0("throwDeprecation"))throw new Error(t);j0("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function j0(e){try{if(!globalThis.localStorage)return!1}catch{return!1}var t=globalThis.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var G0=P((gre,$O)=>{"use strict";g();$O.exports=zt;function GO(e){var t=this;this.next=null,this.entry=null,this.finish=function(){D8(t,e)}}var Wu;zt.WritableState=jf;var l8={deprecate:z0()},WO=o0(),$d=jt().Buffer,h8=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d8(e){return $d.from(e)}function p8(e){return $d.isBuffer(e)||e instanceof h8}var V0=U0(),g8=F0(),m8=g8.getHighWaterMark,Sa=Ts().codes,v8=Sa.ERR_INVALID_ARG_TYPE,y8=Sa.ERR_METHOD_NOT_IMPLEMENTED,b8=Sa.ERR_MULTIPLE_CALLBACK,_8=Sa.ERR_STREAM_CANNOT_PIPE,w8=Sa.ERR_STREAM_DESTROYED,S8=Sa.ERR_STREAM_NULL_VALUES,E8=Sa.ERR_STREAM_WRITE_AFTER_END,x8=Sa.ERR_UNKNOWN_ENCODING,Yu=V0.errorOrDestroy;vt()(zt,WO);function O8(){}function jf(e,t,r){Wu=Wu||Ps(),e=e||{},typeof r!="boolean"&&(r=t instanceof Wu),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m8(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){B8(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 GO(this)}jf.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(jf.prototype,"buffer",{get:l8.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Zd;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Zd=Function.prototype[Symbol.hasInstance],Object.defineProperty(zt,Symbol.hasInstance,{value:function(t){return Zd.call(this,t)?!0:this!==zt?!1:t&&t._writableState instanceof jf}})):Zd=function(t){return t instanceof this};function zt(e){Wu=Wu||Ps();var t=this instanceof Wu;if(!t&&!Zd.call(zt,this))return new zt(e);this._writableState=new jf(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)),WO.call(this)}zt.prototype.pipe=function(){Yu(this,new _8)};function I8(e,t){var r=new E8;Yu(e,r),b.default.nextTick(t,r)}function A8(e,t,r,i){var n;return r===null?n=new S8:typeof r!="string"&&!t.objectMode&&(n=new v8("chunk",["string","Buffer"],r)),n?(Yu(e,n),b.default.nextTick(i,n),!1):!0}zt.prototype.write=function(e,t,r){var i=this._writableState,n=!1,o=!i.objectMode&&p8(e);return o&&!$d.isBuffer(e)&&(e=d8(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=O8),i.ending?I8(this,r):(o||A8(this,i,e,r))&&(i.pendingcb++,n=P8(this,i,o,e,t,r)),n};zt.prototype.cork=function(){this._writableState.corked++};zt.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&YO(this,e))};zt.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 x8(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(zt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function T8(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=$d.from(t,r)),t}Object.defineProperty(zt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function P8(e,t,r,i,n,o){if(!r){var a=T8(t,i,n);i!==a&&(r=!0,n="buffer",i=a)}var s=t.objectMode?1:i.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else K0(e,t,!1,s,i,n,o);return u}function K0(e,t,r,i,n,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w8("write")):r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function R8(e,t,r,i,n){--t.pendingcb,r?(b.default.nextTick(n,i),b.default.nextTick(Ff,e,t),e._writableState.errorEmitted=!0,Yu(e,i)):(n(i),e._writableState.errorEmitted=!0,Yu(e,i),Ff(e,t))}function k8(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function B8(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new b8;if(k8(r),t)R8(e,r,i,t,n);else{var o=ZO(r)||e.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&YO(e,r),i?b.default.nextTick(VO,e,r,o,n):VO(e,r,o,n)}}function VO(e,t,r,i){r||N8(e,t),t.pendingcb--,i(),Ff(e,t)}function N8(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function YO(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,K0(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new GO(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,d=t.objectMode?1:u.length;if(K0(e,t,!1,d,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}zt.prototype._write=function(e,t,r){r(new y8("_write()"))};zt.prototype._writev=null;zt.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||M8(this,i,r),this};Object.defineProperty(zt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ZO(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function C8(e,t){e._final(function(r){t.pendingcb--,r&&Yu(e,r),t.prefinished=!0,e.emit("prefinish"),Ff(e,t)})}function L8(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,b.default.nextTick(C8,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Ff(e,t){var r=ZO(t);if(r&&(L8(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 M8(e,t,r){t.ending=!0,Ff(e,t),r&&(t.finished?b.default.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function D8(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(zt.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});zt.prototype.destroy=V0.destroy;zt.prototype._undestroy=V0.undestroy;zt.prototype._destroy=function(e,t){t(e)}});var Ps=P((vre,JO)=>{"use strict";g();var q8=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};JO.exports=Yn;var XO=Z0(),Y0=G0();vt()(Yn,XO);for(W0=q8(Y0.prototype),Xd=0;Xd<W0.length;Xd++)Jd=W0[Xd],Yn.prototype[Jd]||(Yn.prototype[Jd]=Y0.prototype[Jd]);var W0,Jd,Xd;function Yn(e){if(!(this instanceof Yn))return new Yn(e);XO.call(this,e),Y0.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",H8)))}Object.defineProperty(Yn.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Yn.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Yn.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function H8(){this._writableState.ended||b.default.nextTick(U8,this)}function U8(e){e.end()}Object.defineProperty(Yn.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 tI=P(($0,eI)=>{g();var Qd=jt(),Do=Qd.Buffer;function QO(e,t){for(var r in e)t[r]=e[r]}Do.from&&Do.alloc&&Do.allocUnsafe&&Do.allocUnsafeSlow?eI.exports=Qd:(QO(Qd,$0),$0.Buffer=Zu);function Zu(e,t,r){return Do(e,t,r)}QO(Do,Zu);Zu.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Do(e,t,r)};Zu.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Do(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Zu.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Do(e)};Zu.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Qd.SlowBuffer(e)}});var $u=P(iI=>{"use strict";g();var J0=tI().Buffer,rI=J0.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 F8(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 j8(e){var t=F8(e);if(typeof t!="string"&&(J0.isEncoding===rI||!rI(e)))throw new Error("Unknown encoding: "+e);return t||e}iI.StringDecoder=zf;function zf(e){this.encoding=j8(e);var t;switch(this.encoding){case"utf16le":this.text=Y8,this.end=Z8,t=4;break;case"utf8":this.fillLast=V8,t=4;break;case"base64":this.text=$8,this.end=X8,t=3;break;default:this.write=J8,this.end=Q8;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=J0.allocUnsafe(t)}zf.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||""};zf.prototype.end=W8;zf.prototype.text=G8;zf.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 X0(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function z8(e,t,r){var i=t.length-1;if(i<r)return 0;var n=X0(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=X0(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=X0(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function K8(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 V8(e){var t=this.lastTotal-this.lastNeed,r=K8(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 G8(e,t){var r=z8(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 W8(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function Y8(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 Z8(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 $8(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 X8(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function J8(e){return e.toString(this.encoding)}function Q8(e){return e&&e.length?this.write(e):""}});var ep=P((Sre,aI)=>{"use strict";g();var nI=Ts().codes.ERR_STREAM_PREMATURE_CLOSE;function e4(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 t4(){}function r4(e){return e.setHeader&&typeof e.abort=="function"}function oI(e,t,r){if(typeof t=="function")return oI(e,null,t);t||(t={}),r=e4(r||t4);var i=t.readable||t.readable!==!1&&e.readable,n=t.writable||t.writable!==!1&&e.writable,o=function(){e.writable||s()},a=e._writableState&&e._writableState.finished,s=function(){n=!1,a=!0,i||r.call(e)},u=e._readableState&&e._readableState.endEmitted,c=function(){i=!1,u=!0,n||r.call(e)},l=function(_){r.call(e,_)},d=function(){var _;if(i&&!u)return(!e._readableState||!e._readableState.ended)&&(_=new nI),r.call(e,_);if(n&&!a)return(!e._writableState||!e._writableState.ended)&&(_=new nI),r.call(e,_)},p=function(){e.req.on("finish",s)};return r4(e)?(e.on("complete",s),e.on("abort",d),e.req?p():e.on("request",p)):n&&!e._writableState&&(e.on("end",o),e.on("close",o)),e.on("end",c),e.on("finish",s),t.error!==!1&&e.on("error",l),e.on("close",d),function(){e.removeListener("complete",s),e.removeListener("abort",d),e.removeListener("request",p),e.req&&e.req.removeListener("finish",s),e.removeListener("end",o),e.removeListener("close",o),e.removeListener("finish",s),e.removeListener("end",c),e.removeListener("error",l),e.removeListener("close",d)}}aI.exports=oI});var uI=P((xre,sI)=>{"use strict";g();var tp;function Ea(e,t,r){return t=i4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i4(e){var t=n4(e,"string");return typeof t=="symbol"?t:String(t)}function n4(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 o4=ep(),xa=Symbol("lastResolve"),Rs=Symbol("lastReject"),Kf=Symbol("error"),rp=Symbol("ended"),ks=Symbol("lastPromise"),Q0=Symbol("handlePromise"),Bs=Symbol("stream");function Oa(e,t){return{value:e,done:t}}function a4(e){var t=e[xa];if(t!==null){var r=e[Bs].read();r!==null&&(e[ks]=null,e[xa]=null,e[Rs]=null,t(Oa(r,!1)))}}function s4(e){b.default.nextTick(a4,e)}function u4(e,t){return function(r,i){e.then(function(){if(t[rp]){r(Oa(void 0,!0));return}t[Q0](r,i)},i)}}var c4=Object.getPrototypeOf(function(){}),f4=Object.setPrototypeOf((tp={get stream(){return this[Bs]},next:function(){var t=this,r=this[Kf];if(r!==null)return Promise.reject(r);if(this[rp])return Promise.resolve(Oa(void 0,!0));if(this[Bs].destroyed)return new Promise(function(a,s){b.default.nextTick(function(){t[Kf]?s(t[Kf]):a(Oa(void 0,!0))})});var i=this[ks],n;if(i)n=new Promise(u4(i,this));else{var o=this[Bs].read();if(o!==null)return Promise.resolve(Oa(o,!1));n=new Promise(this[Q0])}return this[ks]=n,n}},Ea(tp,Symbol.asyncIterator,function(){return this}),Ea(tp,"return",function(){var t=this;return new Promise(function(r,i){t[Bs].destroy(null,function(n){if(n){i(n);return}r(Oa(void 0,!0))})})}),tp),c4),l4=function(t){var r,i=Object.create(f4,(r={},Ea(r,Bs,{value:t,writable:!0}),Ea(r,xa,{value:null,writable:!0}),Ea(r,Rs,{value:null,writable:!0}),Ea(r,Kf,{value:null,writable:!0}),Ea(r,rp,{value:t._readableState.endEmitted,writable:!0}),Ea(r,Q0,{value:function(o,a){var s=i[Bs].read();s?(i[ks]=null,i[xa]=null,i[Rs]=null,o(Oa(s,!1))):(i[xa]=o,i[Rs]=a)},writable:!0}),r));return i[ks]=null,o4(t,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=i[Rs];o!==null&&(i[ks]=null,i[xa]=null,i[Rs]=null,o(n)),i[Kf]=n;return}var a=i[xa];a!==null&&(i[ks]=null,i[xa]=null,i[Rs]=null,a(Oa(void 0,!0))),i[rp]=!0}),t.on("readable",s4.bind(null,i)),i};sI.exports=l4});var fI=P((Ire,cI)=>{g();cI.exports=function(){throw new Error("Readable.from is not available in the browser")}});var Z0=P((Pre,_I)=>{"use strict";g();_I.exports=ot;var Xu;ot.ReadableState=pI;var Tre=Du().EventEmitter,dI=function(t,r){return t.listeners(r).length},Gf=o0(),ip=jt().Buffer,h4=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d4(e){return ip.from(e)}function p4(e){return ip.isBuffer(e)||e instanceof h4}var ey=Qi(),Ue;ey&&ey.debuglog?Ue=ey.debuglog("stream"):Ue=function(){};var g4=DO(),sy=U0(),m4=F0(),v4=m4.getHighWaterMark,np=Ts().codes,y4=np.ERR_INVALID_ARG_TYPE,b4=np.ERR_STREAM_PUSH_AFTER_EOF,_4=np.ERR_METHOD_NOT_IMPLEMENTED,w4=np.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ju,ty,ry;vt()(ot,Gf);var Vf=sy.errorOrDestroy,iy=["error","close","destroy","pause","resume"];function S4(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 pI(e,t,r){Xu=Xu||Ps(),e=e||{},typeof r!="boolean"&&(r=t instanceof Xu),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v4(this,e,"readableHighWaterMark",r),this.buffer=new g4,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&&(Ju||(Ju=$u().StringDecoder),this.decoder=new Ju(e.encoding),this.encoding=e.encoding)}function ot(e){if(Xu=Xu||Ps(),!(this instanceof ot))return new ot(e);var t=this instanceof Xu;this._readableState=new pI(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Gf.call(this)}Object.defineProperty(ot.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});ot.prototype.destroy=sy.destroy;ot.prototype._undestroy=sy.undestroy;ot.prototype._destroy=function(e,t){t(e)};ot.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=ip.from(e,t),t=""),i=!0),gI(this,e,t,!1,i)};ot.prototype.unshift=function(e){return gI(this,e,null,!0,!1)};function gI(e,t,r,i,n){Ue("readableAddChunk",t);var o=e._readableState;if(t===null)o.reading=!1,O4(e,o);else{var a;if(n||(a=E4(o,t)),a)Vf(e,a);else if(o.objectMode||t&&t.length>0)if(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==ip.prototype&&(t=d4(t)),i)o.endEmitted?Vf(e,new w4):ny(e,o,t,!0);else if(o.ended)Vf(e,new b4);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?ny(e,o,t,!1):ay(e,o)):ny(e,o,t,!1)}else i||(o.reading=!1,ay(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function ny(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&&op(e)),ay(e,t)}function E4(e,t){var r;return!p4(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new y4("chunk",["string","Buffer","Uint8Array"],t)),r}ot.prototype.isPaused=function(){return this._readableState.flowing===!1};ot.prototype.setEncoding=function(e){Ju||(Ju=$u().StringDecoder);var t=new Ju(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 lI=1073741824;function x4(e){return e>=lI?e=lI:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function hI(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=x4(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}ot.prototype.read=function(e){Ue("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 Ue("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?oy(this):op(this),null;if(e=hI(e,t),e===0&&t.ended)return t.length===0&&oy(this),null;var i=t.needReadable;Ue("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,Ue("length less than watermark",i)),t.ended||t.reading?(i=!1,Ue("reading or ended",i)):i&&(Ue("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=hI(r,t)));var n;return e>0?n=yI(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&&oy(this)),n!==null&&this.emit("data",n),n};function O4(e,t){if(Ue("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?op(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,mI(e)))}}function op(e){var t=e._readableState;Ue("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(Ue("emitReadable",t.flowing),t.emittedReadable=!0,b.default.nextTick(mI,e))}function mI(e){var t=e._readableState;Ue("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,uy(e)}function ay(e,t){t.readingMore||(t.readingMore=!0,b.default.nextTick(I4,e,t))}function I4(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(Ue("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}ot.prototype._read=function(e){Vf(this,new _4("_read()"))};ot.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,Ue("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==b.default.stdout&&e!==b.default.stderr,o=n?s:T;i.endEmitted?b.default.nextTick(o):r.once("end",o),e.on("unpipe",a);function a(R,B){Ue("onunpipe"),R===r&&B&&B.hasUnpiped===!1&&(B.hasUnpiped=!0,l())}function s(){Ue("onend"),e.end()}var u=A4(r);e.on("drain",u);var c=!1;function l(){Ue("cleanup"),e.removeListener("close",y),e.removeListener("finish",_),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",a),r.removeListener("end",s),r.removeListener("end",T),r.removeListener("data",d),c=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}r.on("data",d);function d(R){Ue("ondata");var B=e.write(R);Ue("dest.write",B),B===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&bI(i.pipes,e)!==-1)&&!c&&(Ue("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function p(R){Ue("onerror",R),T(),e.removeListener("error",p),dI(e,"error")===0&&Vf(e,R)}S4(e,"error",p);function y(){e.removeListener("finish",_),T()}e.once("close",y);function _(){Ue("onfinish"),e.removeListener("close",y),T()}e.once("finish",_);function T(){Ue("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(Ue("pipe resume"),r.resume()),e};function A4(e){return function(){var r=e._readableState;Ue("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&dI(e,"data")&&(r.flowing=!0,uy(e))}}ot.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 o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=bI(t.pipes,e);return a===-1?this:(t.pipes.splice(a,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};ot.prototype.on=function(e,t){var r=Gf.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,Ue("on readable",i.length,i.reading),i.length?op(this):i.reading||b.default.nextTick(T4,this)),r};ot.prototype.addListener=ot.prototype.on;ot.prototype.removeListener=function(e,t){var r=Gf.prototype.removeListener.call(this,e,t);return e==="readable"&&b.default.nextTick(vI,this),r};ot.prototype.removeAllListeners=function(e){var t=Gf.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&b.default.nextTick(vI,this),t};function vI(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 T4(e){Ue("readable nexttick read 0"),e.read(0)}ot.prototype.resume=function(){var e=this._readableState;return e.flowing||(Ue("resume"),e.flowing=!e.readableListening,P4(this,e)),e.paused=!1,this};function P4(e,t){t.resumeScheduled||(t.resumeScheduled=!0,b.default.nextTick(R4,e,t))}function R4(e,t){Ue("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),uy(e),t.flowing&&!t.reading&&e.read(0)}ot.prototype.pause=function(){return Ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function uy(e){var t=e._readableState;for(Ue("flow",t.flowing);t.flowing&&e.read()!==null;);}ot.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(Ue("wrapped end"),r.decoder&&!r.ended){var a=r.decoder.end();a&&a.length&&t.push(a)}t.push(null)}),e.on("data",function(a){if(Ue("wrapped data"),r.decoder&&(a=r.decoder.write(a)),!(r.objectMode&&a==null)&&!(!r.objectMode&&(!a||!a.length))){var s=t.push(a);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 o=0;o<iy.length;o++)e.on(iy[o],this.emit.bind(this,iy[o]));return this._read=function(a){Ue("wrapped _read",a),i&&(i=!1,e.resume())},this};typeof Symbol=="function"&&(ot.prototype[Symbol.asyncIterator]=function(){return ty===void 0&&(ty=uI()),ty(this)});Object.defineProperty(ot.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(ot.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(ot.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});ot._fromList=yI;Object.defineProperty(ot.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function yI(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 oy(e){var t=e._readableState;Ue("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,b.default.nextTick(k4,t,e))}function k4(e,t){if(Ue("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"&&(ot.from=function(e,t){return ry===void 0&&(ry=fI()),ry(ot,e,t)});function bI(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var cy=P((kre,SI)=>{"use strict";g();SI.exports=qo;var ap=Ts().codes,B4=ap.ERR_METHOD_NOT_IMPLEMENTED,N4=ap.ERR_MULTIPLE_CALLBACK,C4=ap.ERR_TRANSFORM_ALREADY_TRANSFORMING,L4=ap.ERR_TRANSFORM_WITH_LENGTH_0,sp=Ps();vt()(qo,sp);function M4(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new N4);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 qo(e){if(!(this instanceof qo))return new qo(e);sp.call(this,e),this._transformState={afterTransform:M4.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",D4)}function D4(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){wI(e,t,r)}):wI(this,null,null)}qo.prototype.push=function(e,t){return this._transformState.needTransform=!1,sp.prototype.push.call(this,e,t)};qo.prototype._transform=function(e,t,r){r(new B4("_transform()"))};qo.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)}};qo.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};qo.prototype._destroy=function(e,t){sp.prototype._destroy.call(this,e,function(r){t(r)})};function wI(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new L4;if(e._transformState.transforming)throw new C4;return e.push(null)}});var OI=P((Nre,xI)=>{"use strict";g();xI.exports=Wf;var EI=cy();vt()(Wf,EI);function Wf(e){if(!(this instanceof Wf))return new Wf(e);EI.call(this,e)}Wf.prototype._transform=function(e,t,r){r(null,e)}});var RI=P((Lre,PI)=>{"use strict";g();var fy;function q4(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var TI=Ts().codes,H4=TI.ERR_MISSING_ARGS,U4=TI.ERR_STREAM_DESTROYED;function II(e){if(e)throw e}function F4(e){return e.setHeader&&typeof e.abort=="function"}function j4(e,t,r,i){i=q4(i);var n=!1;e.on("close",function(){n=!0}),fy===void 0&&(fy=ep()),fy(e,{readable:t,writable:r},function(a){if(a)return i(a);n=!0,i()});var o=!1;return function(a){if(!n&&!o){if(o=!0,F4(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(a||new U4("pipe"))}}}function AI(e){e()}function z4(e,t){return e.pipe(t)}function K4(e){return!e.length||typeof e[e.length-1]!="function"?II:e.pop()}function V4(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=K4(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new H4("streams");var n,o=t.map(function(a,s){var u=s<t.length-1,c=s>0;return j4(a,u,c,function(l){n||(n=l),l&&o.forEach(AI),!u&&(o.forEach(AI),i(n))})});return t.reduce(z4)}PI.exports=V4});var up=P((Dre,kI)=>{g();kI.exports=tn;var ly=Du().EventEmitter,G4=vt();G4(tn,ly);tn.Readable=Z0();tn.Writable=G0();tn.Duplex=Ps();tn.Transform=cy();tn.PassThrough=OI();tn.finished=ep();tn.pipeline=RI();tn.Stream=tn;function tn(){ly.call(this)}tn.prototype.pipe=function(e,t){var r=this;function i(l){e.writable&&e.write(l)===!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",a),r.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,typeof e.destroy=="function"&&e.destroy())}function u(l){if(c(),ly.listenerCount(this,"error")===0)throw l}r.on("error",u),e.on("error",u);function c(){r.removeListener("data",i),e.removeListener("drain",n),r.removeListener("end",a),r.removeListener("close",s),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}});var CI=P((Hre,NI)=>{"use strict";g();var Zn=Qr().Buffer,BI=up().Transform,W4=vt();function Ia(e){BI.call(this),this._block=Zn.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}W4(Ia,BI);Ia.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(n){i=n}r(i)};Ia.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};var Y4=typeof Uint8Array<"u",Z4=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Zn.prototype instanceof Uint8Array||Zn.TYPED_ARRAY_SUPPORT);function $4(e,t){if(e instanceof Zn)return e;if(typeof e=="string")return Zn.from(e,t);if(Z4&&ArrayBuffer.isView(e)){if(e.byteLength===0)return Zn.alloc(0);var r=Zn.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(Y4&&e instanceof Uint8Array||Zn.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return Zn.from(e);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}Ia.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");e=$4(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 o=0,a=e.length*8;a>0;++o)this._length[o]+=a,a=this._length[o]/4294967296|0,a>0&&(this._length[o]-=4294967296*a);return this};Ia.prototype._update=function(){throw new Error("_update is not implemented")};Ia.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};Ia.prototype._digest=function(){throw new Error("_digest is not implemented")};NI.exports=Ia});var hy=P((Fre,MI)=>{"use strict";g();var X4=vt(),LI=CI(),J4=Qr().Buffer,Q4=new Array(16);function cp(){LI.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}X4(cp,LI);cp.prototype._update=function(){for(var e=Q4,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var r=this._a,i=this._b,n=this._c,o=this._d;r=ni(r,i,n,o,e[0],3614090360,7),o=ni(o,r,i,n,e[1],3905402710,12),n=ni(n,o,r,i,e[2],606105819,17),i=ni(i,n,o,r,e[3],3250441966,22),r=ni(r,i,n,o,e[4],4118548399,7),o=ni(o,r,i,n,e[5],1200080426,12),n=ni(n,o,r,i,e[6],2821735955,17),i=ni(i,n,o,r,e[7],4249261313,22),r=ni(r,i,n,o,e[8],1770035416,7),o=ni(o,r,i,n,e[9],2336552879,12),n=ni(n,o,r,i,e[10],4294925233,17),i=ni(i,n,o,r,e[11],2304563134,22),r=ni(r,i,n,o,e[12],1804603682,7),o=ni(o,r,i,n,e[13],4254626195,12),n=ni(n,o,r,i,e[14],2792965006,17),i=ni(i,n,o,r,e[15],1236535329,22),r=oi(r,i,n,o,e[1],4129170786,5),o=oi(o,r,i,n,e[6],3225465664,9),n=oi(n,o,r,i,e[11],643717713,14),i=oi(i,n,o,r,e[0],3921069994,20),r=oi(r,i,n,o,e[5],3593408605,5),o=oi(o,r,i,n,e[10],38016083,9),n=oi(n,o,r,i,e[15],3634488961,14),i=oi(i,n,o,r,e[4],3889429448,20),r=oi(r,i,n,o,e[9],568446438,5),o=oi(o,r,i,n,e[14],3275163606,9),n=oi(n,o,r,i,e[3],4107603335,14),i=oi(i,n,o,r,e[8],1163531501,20),r=oi(r,i,n,o,e[13],2850285829,5),o=oi(o,r,i,n,e[2],4243563512,9),n=oi(n,o,r,i,e[7],1735328473,14),i=oi(i,n,o,r,e[12],2368359562,20),r=ai(r,i,n,o,e[5],4294588738,4),o=ai(o,r,i,n,e[8],2272392833,11),n=ai(n,o,r,i,e[11],1839030562,16),i=ai(i,n,o,r,e[14],4259657740,23),r=ai(r,i,n,o,e[1],2763975236,4),o=ai(o,r,i,n,e[4],1272893353,11),n=ai(n,o,r,i,e[7],4139469664,16),i=ai(i,n,o,r,e[10],3200236656,23),r=ai(r,i,n,o,e[13],681279174,4),o=ai(o,r,i,n,e[0],3936430074,11),n=ai(n,o,r,i,e[3],3572445317,16),i=ai(i,n,o,r,e[6],76029189,23),r=ai(r,i,n,o,e[9],3654602809,4),o=ai(o,r,i,n,e[12],3873151461,11),n=ai(n,o,r,i,e[15],530742520,16),i=ai(i,n,o,r,e[2],3299628645,23),r=si(r,i,n,o,e[0],4096336452,6),o=si(o,r,i,n,e[7],1126891415,10),n=si(n,o,r,i,e[14],2878612391,15),i=si(i,n,o,r,e[5],4237533241,21),r=si(r,i,n,o,e[12],1700485571,6),o=si(o,r,i,n,e[3],2399980690,10),n=si(n,o,r,i,e[10],4293915773,15),i=si(i,n,o,r,e[1],2240044497,21),r=si(r,i,n,o,e[8],1873313359,6),o=si(o,r,i,n,e[15],4264355552,10),n=si(n,o,r,i,e[6],2734768916,15),i=si(i,n,o,r,e[13],1309151649,21),r=si(r,i,n,o,e[4],4149444226,6),o=si(o,r,i,n,e[11],3174756917,10),n=si(n,o,r,i,e[2],718787259,15),i=si(i,n,o,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+o|0};cp.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=J4.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 fp(e,t){return e<<t|e>>>32-t}function ni(e,t,r,i,n,o,a){return fp(e+(t&r|~t&i)+n+o|0,a)+t|0}function oi(e,t,r,i,n,o,a){return fp(e+(t&i|r&~i)+n+o|0,a)+t|0}function ai(e,t,r,i,n,o,a){return fp(e+(t^r^i)+n+o|0,a)+t|0}function si(e,t,r,i,n,o,a){return fp(e+(r^(t|~i))+n+o|0,a)+t|0}MI.exports=cp});var qI=P((zre,DI)=>{g();var e5={}.toString;DI.exports=Array.isArray||function(e){return e5.call(e)=="[object Array]"}});var UI=P((Vre,HI)=>{"use strict";g();var t5=Es(),r5=_a(),i5=r5("TypedArray.prototype.buffer",!0),n5=R0();HI.exports=i5||function(t){if(!n5(t))throw new t5("Not a Typed Array");return t.buffer}});var lp=P((Wre,jI)=>{"use strict";g();var _n=Qr().Buffer,o5=qI(),a5=UI(),s5=ArrayBuffer.isView||function(t){try{return a5(t),!0}catch{return!1}},u5=typeof Uint8Array<"u",FI=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",c5=FI&&(_n.prototype instanceof Uint8Array||_n.TYPED_ARRAY_SUPPORT);jI.exports=function(t,r){if(_n.isBuffer(t))return t.constructor&&!("isBuffer"in t)?_n.from(t):t;if(typeof t=="string")return _n.from(t,r);if(FI&&s5(t)){if(t.byteLength===0)return _n.alloc(0);if(c5){var i=_n.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),o=_n.from(n);if(o.length===t.byteLength)return o}if(u5&&t instanceof Uint8Array)return _n.from(t);var a=o5(t);if(a)for(var s=0;s<t.length;s+=1){var u=t[s];if(typeof u!="number"||u<0||u>255||~~u!==u)throw new RangeError("Array items must be numbers in the range 0-255.")}if(a||_n.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return _n.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var GI=P((Zre,VI)=>{"use strict";g();var f5=Qr().Buffer,l5=lp(),KI=typeof Uint8Array<"u",h5=KI&&typeof ArrayBuffer<"u",zI=h5&&ArrayBuffer.isView;VI.exports=function(e,t){if(typeof e=="string"||f5.isBuffer(e)||KI&&e instanceof Uint8Array||zI&&zI(e))return l5(e,t);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var Yf=P((Xre,dy)=>{"use strict";g();typeof b.default>"u"||!b.default.version||b.default.version.indexOf("v0.")===0||b.default.version.indexOf("v1.")===0&&b.default.version.indexOf("v1.8.")!==0?dy.exports={nextTick:d5}:dy.exports=b.default;function d5(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,o,a;switch(n){case 0:case 1:return b.default.nextTick(e);case 2:return b.default.nextTick(function(){e.call(null,t)});case 3:return b.default.nextTick(function(){e.call(null,t,r)});case 4:return b.default.nextTick(function(){e.call(null,t,r,i)});default:for(o=new Array(n-1),a=0;a<o.length;)o[a++]=arguments[a];return b.default.nextTick(function(){e.apply(null,o)})}}});var YI=P((Qre,WI)=>{g();var p5={}.toString;WI.exports=Array.isArray||function(e){return p5.call(e)=="[object Array]"}});var py=P((tie,ZI)=>{g();ZI.exports=Du().EventEmitter});var dp=P((gy,XI)=>{g();var hp=jt(),Ho=hp.Buffer;function $I(e,t){for(var r in e)t[r]=e[r]}Ho.from&&Ho.alloc&&Ho.allocUnsafe&&Ho.allocUnsafeSlow?XI.exports=hp:($I(hp,gy),gy.Buffer=Qu);function Qu(e,t,r){return Ho(e,t,r)}$I(Ho,Qu);Qu.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Ho(e,t,r)};Qu.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Ho(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Qu.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ho(e)};Qu.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return hp.SlowBuffer(e)}});var ec=P(ui=>{g();function g5(e){return Array.isArray?Array.isArray(e):pp(e)==="[object Array]"}ui.isArray=g5;function m5(e){return typeof e=="boolean"}ui.isBoolean=m5;function v5(e){return e===null}ui.isNull=v5;function y5(e){return e==null}ui.isNullOrUndefined=y5;function b5(e){return typeof e=="number"}ui.isNumber=b5;function _5(e){return typeof e=="string"}ui.isString=_5;function w5(e){return typeof e=="symbol"}ui.isSymbol=w5;function S5(e){return e===void 0}ui.isUndefined=S5;function E5(e){return pp(e)==="[object RegExp]"}ui.isRegExp=E5;function x5(e){return typeof e=="object"&&e!==null}ui.isObject=x5;function O5(e){return pp(e)==="[object Date]"}ui.isDate=O5;function I5(e){return pp(e)==="[object Error]"||e instanceof Error}ui.isError=I5;function A5(e){return typeof e=="function"}ui.isFunction=A5;function T5(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}ui.isPrimitive=T5;ui.isBuffer=jt().Buffer.isBuffer;function pp(e){return Object.prototype.toString.call(e)}});var QI=P((aie,my)=>{"use strict";g();function P5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var JI=dp().Buffer,Zf=Qi();function R5(e,t,r){e.copy(t,r)}my.exports=(function(){function e(){P5(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 JI.alloc(0);for(var i=JI.allocUnsafe(r>>>0),n=this.head,o=0;n;)R5(n.data,i,o),o+=n.data.length,n=n.next;return i},e})();Zf&&Zf.inspect&&Zf.inspect.custom&&(my.exports.prototype[Zf.inspect.custom]=function(){var e=Zf.inspect({length:this.length});return this.constructor.name+" "+e})});var vy=P((uie,eA)=>{"use strict";g();var gp=Yf();function k5(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,gp.nextTick(mp,this,e)):gp.nextTick(mp,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,gp.nextTick(mp,r,o)):gp.nextTick(mp,r,o):t&&t(o)}),this)}function B5(){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 mp(e,t){e.emit("error",t)}eA.exports={destroy:k5,undestroy:B5}});var by=P((fie,uA)=>{"use strict";g();var Ns=Yf();uA.exports=Sr;function rA(e){var t=this;this.next=null,this.entry=null,this.finish=function(){$5(t,e)}}var N5=!b.default.browser&&["v0.10","v0.9."].indexOf(b.default.version.slice(0,5))>-1?setImmediate:Ns.nextTick,tc;Sr.WritableState=Xf;var iA=Object.create(ec());iA.inherits=vt();var C5={deprecate:z0()},nA=py(),yp=dp().Buffer,L5=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function M5(e){return yp.from(e)}function D5(e){return yp.isBuffer(e)||e instanceof L5}var oA=vy();iA.inherits(Sr,nA);function q5(){}function Xf(e,t){tc=tc||Cs(),e=e||{};var r=t instanceof tc;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,n=e.writableHighWaterMark,o=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(s){V5(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 rA(this)}Xf.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Xf.prototype,"buffer",{get:C5.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var vp;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(vp=Function.prototype[Symbol.hasInstance],Object.defineProperty(Sr,Symbol.hasInstance,{value:function(e){return vp.call(this,e)?!0:this!==Sr?!1:e&&e._writableState instanceof Xf}})):vp=function(e){return e instanceof this};function Sr(e){if(tc=tc||Cs(),!vp.call(Sr,this)&&!(this instanceof tc))return new Sr(e);this._writableState=new Xf(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)),nA.call(this)}Sr.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function H5(e,t){var r=new Error("write after end");e.emit("error",r),Ns.nextTick(t,r)}function U5(e,t,r,i){var n=!0,o=!1;return r===null?o=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),Ns.nextTick(i,o),n=!1),n}Sr.prototype.write=function(e,t,r){var i=this._writableState,n=!1,o=!i.objectMode&&D5(e);return o&&!yp.isBuffer(e)&&(e=M5(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=q5),i.ended?H5(this,r):(o||U5(this,i,e,r))&&(i.pendingcb++,n=j5(this,i,o,e,t,r)),n};Sr.prototype.cork=function(){var e=this._writableState;e.corked++};Sr.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&aA(this,e))};Sr.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 F5(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=yp.from(t,r)),t}Object.defineProperty(Sr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function j5(e,t,r,i,n,o){if(!r){var a=F5(t,i,n);i!==a&&(r=!0,n="buffer",i=a)}var s=t.objectMode?1:i.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else yy(e,t,!1,s,i,n,o);return u}function yy(e,t,r,i,n,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function z5(e,t,r,i,n){--t.pendingcb,r?(Ns.nextTick(n,i),Ns.nextTick($f,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),$f(e,t))}function K5(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function V5(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(K5(r),t)z5(e,r,i,t,n);else{var o=sA(r);!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&aA(e,r),i?N5(tA,e,r,o,n):tA(e,r,o,n)}}function tA(e,t,r,i){r||G5(e,t),t.pendingcb--,i(),$f(e,t)}function G5(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function aA(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,yy(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new rA(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,d=t.objectMode?1:u.length;if(yy(e,t,!1,d,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Sr.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};Sr.prototype._writev=null;Sr.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||Z5(this,i,r)};function sA(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function W5(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),$f(e,t)})}function Y5(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Ns.nextTick(W5,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function $f(e,t){var r=sA(t);return r&&(Y5(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function Z5(e,t,r){t.ending=!0,$f(e,t),r&&(t.finished?Ns.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function $5(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(Sr.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});Sr.prototype.destroy=oA.destroy;Sr.prototype._undestroy=oA.undestroy;Sr.prototype._destroy=function(e,t){this.end(),t(e)}});var Cs=P((hie,hA)=>{"use strict";g();var cA=Yf(),X5=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};hA.exports=Uo;var fA=Object.create(ec());fA.inherits=vt();var lA=Sy(),wy=by();fA.inherits(Uo,lA);for(_y=X5(wy.prototype),bp=0;bp<_y.length;bp++)_p=_y[bp],Uo.prototype[_p]||(Uo.prototype[_p]=wy.prototype[_p]);var _y,_p,bp;function Uo(e){if(!(this instanceof Uo))return new Uo(e);lA.call(this,e),wy.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",J5)}Object.defineProperty(Uo.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function J5(){this.allowHalfOpen||this._writableState.ended||cA.nextTick(Q5,this)}function Q5(e){e.end()}Object.defineProperty(Uo.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)}});Uo.prototype._destroy=function(e,t){this.push(null),this.end(),cA.nextTick(t,e)}});var Sy=P((gie,xA)=>{"use strict";g();var ic=Yf();xA.exports=At;var ej=YI(),Jf;At.ReadableState=bA;var pie=Du().EventEmitter,mA=function(e,t){return e.listeners(t).length},Ay=py(),Qf=dp().Buffer,tj=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function rj(e){return Qf.from(e)}function ij(e){return Qf.isBuffer(e)||e instanceof tj}var vA=Object.create(ec());vA.inherits=vt();var Ey=Qi(),ft=void 0;Ey&&Ey.debuglog?ft=Ey.debuglog("stream"):ft=function(){};var nj=QI(),yA=vy(),rc;vA.inherits(At,Ay);var xy=["error","close","destroy","pause","resume"];function oj(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):ej(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function bA(e,t){Jf=Jf||Cs(),e=e||{};var r=t instanceof Jf;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,n=e.readableHighWaterMark,o=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new nj,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&&(rc||(rc=$u().StringDecoder),this.decoder=new rc(e.encoding),this.encoding=e.encoding)}function At(e){if(Jf=Jf||Cs(),!(this instanceof At))return new At(e);this._readableState=new bA(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ay.call(this)}Object.defineProperty(At.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});At.prototype.destroy=yA.destroy;At.prototype._undestroy=yA.undestroy;At.prototype._destroy=function(e,t){this.push(null),t(e)};At.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=Qf.from(e,t),t=""),i=!0),_A(this,e,t,!1,i)};At.prototype.unshift=function(e){return _A(this,e,null,!0,!1)};function _A(e,t,r,i,n){var o=e._readableState;if(t===null)o.reading=!1,cj(e,o);else{var a;n||(a=aj(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==Qf.prototype&&(t=rj(t)),i?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Oy(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?Oy(e,o,t,!1):wA(e,o)):Oy(e,o,t,!1))):i||(o.reading=!1)}return sj(o)}function Oy(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&&wp(e)),wA(e,t)}function aj(e,t){var r;return!ij(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function sj(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}At.prototype.isPaused=function(){return this._readableState.flowing===!1};At.prototype.setEncoding=function(e){return rc||(rc=$u().StringDecoder),this._readableState.decoder=new rc(e),this._readableState.encoding=e,this};var dA=8388608;function uj(e){return e>=dA?e=dA:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function pA(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=uj(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}At.prototype.read=function(e){ft("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 ft("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Iy(this):wp(this),null;if(e=pA(e,t),e===0&&t.ended)return t.length===0&&Iy(this),null;var i=t.needReadable;ft("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,ft("length less than watermark",i)),t.ended||t.reading?(i=!1,ft("reading or ended",i)):i&&(ft("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=pA(r,t)));var n;return e>0?n=SA(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&&Iy(this)),n!==null&&this.emit("data",n),n};function cj(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,wp(e)}}function wp(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(ft("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?ic.nextTick(gA,e):gA(e))}function gA(e){ft("emit readable"),e.emit("readable"),Ty(e)}function wA(e,t){t.readingMore||(t.readingMore=!0,ic.nextTick(fj,e,t))}function fj(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(ft("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}At.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};At.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,ft("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==b.default.stdout&&e!==b.default.stderr,o=n?s:R;i.endEmitted?ic.nextTick(o):r.once("end",o),e.on("unpipe",a);function a(B,H){ft("onunpipe"),B===r&&H&&H.hasUnpiped===!1&&(H.hasUnpiped=!0,l())}function s(){ft("onend"),e.end()}var u=lj(r);e.on("drain",u);var c=!1;function l(){ft("cleanup"),e.removeListener("close",_),e.removeListener("finish",T),e.removeListener("drain",u),e.removeListener("error",y),e.removeListener("unpipe",a),r.removeListener("end",s),r.removeListener("end",R),r.removeListener("data",p),c=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}var d=!1;r.on("data",p);function p(B){ft("ondata"),d=!1;var H=e.write(B);H===!1&&!d&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&EA(i.pipes,e)!==-1)&&!c&&(ft("false write response, pause",i.awaitDrain),i.awaitDrain++,d=!0),r.pause())}function y(B){ft("onerror",B),R(),e.removeListener("error",y),mA(e,"error")===0&&e.emit("error",B)}oj(e,"error",y);function _(){e.removeListener("finish",T),R()}e.once("close",_);function T(){ft("onfinish"),e.removeListener("close",_),R()}e.once("finish",T);function R(){ft("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(ft("pipe resume"),r.resume()),e};function lj(e){return function(){var t=e._readableState;ft("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&mA(e,"data")&&(t.flowing=!0,Ty(e))}}At.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 o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=EA(t.pipes,e);return a===-1?this:(t.pipes.splice(a,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};At.prototype.on=function(e,t){var r=Ay.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&&wp(this):ic.nextTick(hj,this))}return r};At.prototype.addListener=At.prototype.on;function hj(e){ft("readable nexttick read 0"),e.read(0)}At.prototype.resume=function(){var e=this._readableState;return e.flowing||(ft("resume"),e.flowing=!0,dj(this,e)),this};function dj(e,t){t.resumeScheduled||(t.resumeScheduled=!0,ic.nextTick(pj,e,t))}function pj(e,t){t.reading||(ft("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Ty(e),t.flowing&&!t.reading&&e.read(0)}At.prototype.pause=function(){return ft("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ft("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ty(e){var t=e._readableState;for(ft("flow",t.flowing);t.flowing&&e.read()!==null;);}At.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(ft("wrapped end"),r.decoder&&!r.ended){var a=r.decoder.end();a&&a.length&&t.push(a)}t.push(null)}),e.on("data",function(a){if(ft("wrapped data"),r.decoder&&(a=r.decoder.write(a)),!(r.objectMode&&a==null)&&!(!r.objectMode&&(!a||!a.length))){var s=t.push(a);s||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(a){return function(){return e[a].apply(e,arguments)}})(n));for(var o=0;o<xy.length;o++)e.on(xy[o],this.emit.bind(this,xy[o]));return this._read=function(a){ft("wrapped _read",a),i&&(i=!1,e.resume())},this};Object.defineProperty(At.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});At._fromList=SA;function SA(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=gj(e,t.buffer,t.decoder),r}function gj(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?mj(e,t):vj(e,t),i}function mj(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?n+=o:n+=o.slice(0,e),e-=a,e===0){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}function vj(e,t){var r=Qf.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),e-=a,e===0){a===o.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++n}return t.length-=n,r}function Iy(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,ic.nextTick(yj,t,e))}function yj(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function EA(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var Py=P((vie,AA)=>{"use strict";g();AA.exports=Fo;var Sp=Cs(),IA=Object.create(ec());IA.inherits=vt();IA.inherits(Fo,Sp);function bj(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 Fo(e){if(!(this instanceof Fo))return new Fo(e);Sp.call(this,e),this._transformState={afterTransform:bj.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",_j)}function _j(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){OA(e,t,r)}):OA(this,null,null)}Fo.prototype.push=function(e,t){return this._transformState.needTransform=!1,Sp.prototype.push.call(this,e,t)};Fo.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Fo.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)}};Fo.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};Fo.prototype._destroy=function(e,t){var r=this;Sp.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function OA(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 kA=P((bie,RA)=>{"use strict";g();RA.exports=el;var TA=Py(),PA=Object.create(ec());PA.inherits=vt();PA.inherits(el,TA);function el(e){if(!(this instanceof el))return new el(e);TA.call(this,e)}el.prototype._transform=function(e,t,r){r(null,e)}});var NA=P(($n,BA)=>{g();$n=BA.exports=Sy();$n.Stream=$n;$n.Readable=$n;$n.Writable=by();$n.Duplex=Cs();$n.Transform=Py();$n.PassThrough=kA()});var MA=P((Sie,LA)=>{"use strict";g();var wj=Qr().Buffer,Sj=GI(),CA=NA().Transform,Ej=vt();function Aa(e){CA.call(this),this._block=wj.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Ej(Aa,CA);Aa.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(n){i=n}r(i)};Aa.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};Aa.prototype.update=function(e,t){if(this._finalized)throw new Error("Digest already called");for(var r=Sj(e,t),i=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)i[o]=r[n],o+=1,n+=1;this._update(),this._blockOffset=0}for(;n<r.length;)i[this._blockOffset]=r[n],this._blockOffset+=1,n+=1;for(var a=0,s=r.length*8;s>0;++a)this._length[a]+=s,s=this._length[a]/4294967296|0,s>0&&(this._length[a]-=4294967296*s);return this};Aa.prototype._update=function(){throw new Error("_update is not implemented")};Aa.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};Aa.prototype._digest=function(){throw new Error("_digest is not implemented")};LA.exports=Aa});var ky=P((xie,zA)=>{"use strict";g();var Ry=jt().Buffer,xj=vt(),jA=MA(),Oj=new Array(16),tl=[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],rl=[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],il=[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],nl=[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],ol=[0,1518500249,1859775393,2400959708,2840853838],al=[1352829926,1548603684,1836072691,2053994217,0];function Ls(e,t){return e<<t|e>>>32-t}function DA(e,t,r,i,n,o,a,s){return Ls(e+(t^r^i)+o+a|0,s)+n|0}function qA(e,t,r,i,n,o,a,s){return Ls(e+(t&r|~t&i)+o+a|0,s)+n|0}function HA(e,t,r,i,n,o,a,s){return Ls(e+((t|~r)^i)+o+a|0,s)+n|0}function UA(e,t,r,i,n,o,a,s){return Ls(e+(t&i|r&~i)+o+a|0,s)+n|0}function FA(e,t,r,i,n,o,a,s){return Ls(e+(t^(r|~i))+o+a|0,s)+n|0}function Ep(){jA.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}xj(Ep,jA);Ep.prototype._update=function(){for(var e=Oj,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,o=this._d|0,a=this._e|0,s=this._a|0,u=this._b|0,c=this._c|0,l=this._d|0,d=this._e|0,p=0;p<80;p+=1){var y,_;p<16?(y=DA(r,i,n,o,a,e[tl[p]],ol[0],il[p]),_=FA(s,u,c,l,d,e[rl[p]],al[0],nl[p])):p<32?(y=qA(r,i,n,o,a,e[tl[p]],ol[1],il[p]),_=UA(s,u,c,l,d,e[rl[p]],al[1],nl[p])):p<48?(y=HA(r,i,n,o,a,e[tl[p]],ol[2],il[p]),_=HA(s,u,c,l,d,e[rl[p]],al[2],nl[p])):p<64?(y=UA(r,i,n,o,a,e[tl[p]],ol[3],il[p]),_=qA(s,u,c,l,d,e[rl[p]],al[3],nl[p])):(y=FA(r,i,n,o,a,e[tl[p]],ol[4],il[p]),_=DA(s,u,c,l,d,e[rl[p]],al[4],nl[p])),r=a,a=o,o=Ls(n,10),n=i,i=y,s=d,d=l,l=Ls(c,10),c=u,u=_}var T=this._b+n+l|0;this._b=this._c+o+d|0,this._c=this._d+a+s|0,this._d=this._e+r+u|0,this._e=this._a+i+c|0,this._a=T};Ep.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=Ry.alloc?Ry.alloc(20):new Ry(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};zA.exports=Ep});var Ms=P((Iie,KA)=>{"use strict";g();var Ij=Qr().Buffer,Aj=lp();function xp(e,t){this._block=Ij.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}xp.prototype.update=function(e,t){e=Aj(e,t||"utf8");for(var r=this._block,i=this._blockSize,n=e.length,o=this._len,a=0;a<n;){for(var s=o%i,u=Math.min(n-a,i-s),c=0;c<u;c++)r[s+c]=e[a+c];o+=u,a+=u,o%i===0&&this._update(r)}return this._len+=n,this};xp.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 o=this._hash();return e?o.toString(e):o};xp.prototype._update=function(){throw new Error("_update must be implemented by subclass")};KA.exports=xp});var WA=P((Tie,GA)=>{"use strict";g();var Tj=vt(),VA=Ms(),Pj=Qr().Buffer,Rj=[1518500249,1859775393,-1894007588,-899497514],kj=new Array(80);function sl(){this.init(),this._w=kj,VA.call(this,64,56)}Tj(sl,VA);sl.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Bj(e){return e<<5|e>>>27}function Nj(e){return e<<30|e>>>2}function Cj(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}sl.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,o=this._d|0,a=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 u=0;u<80;++u){var c=~~(u/20),l=Bj(r)+Cj(c,i,n,o)+a+t[u]+Rj[c]|0;a=o,o=n,n=Nj(i),i=r,r=l}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0};sl.prototype._hash=function(){var e=Pj.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};GA.exports=sl});var $A=P((Rie,ZA)=>{"use strict";g();var Lj=vt(),YA=Ms(),Mj=Qr().Buffer,Dj=[1518500249,1859775393,-1894007588,-899497514],qj=new Array(80);function ul(){this.init(),this._w=qj,YA.call(this,64,56)}Lj(ul,YA);ul.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Hj(e){return e<<1|e>>>31}function Uj(e){return e<<5|e>>>27}function Fj(e){return e<<30|e>>>2}function jj(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}ul.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,o=this._d|0,a=this._e|0,s=0;s<16;++s)t[s]=e.readInt32BE(s*4);for(;s<80;++s)t[s]=Hj(t[s-3]^t[s-8]^t[s-14]^t[s-16]);for(var u=0;u<80;++u){var c=~~(u/20),l=Uj(r)+jj(c,i,n,o)+a+t[u]+Dj[c]|0;a=o,o=n,n=Fj(i),i=r,r=l}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0};ul.prototype._hash=function(){var e=Mj.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};ZA.exports=ul});var By=P((Bie,JA)=>{"use strict";g();var zj=vt(),XA=Ms(),Kj=Qr().Buffer,Vj=[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],Gj=new Array(64);function cl(){this.init(),this._w=Gj,XA.call(this,64,56)}zj(cl,XA);cl.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 Wj(e,t,r){return r^e&(t^r)}function Yj(e,t,r){return e&t|r&(e|t)}function Zj(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function $j(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function Xj(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function Jj(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}cl.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,n=this._c|0,o=this._d|0,a=this._e|0,s=this._f|0,u=this._g|0,c=this._h|0,l=0;l<16;++l)t[l]=e.readInt32BE(l*4);for(;l<64;++l)t[l]=Jj(t[l-2])+t[l-7]+Xj(t[l-15])+t[l-16]|0;for(var d=0;d<64;++d){var p=c+$j(a)+Wj(a,s,u)+Vj[d]+t[d]|0,y=Zj(r)+Yj(r,i,n)|0;c=u,u=s,s=a,a=o+p|0,o=n,n=i,i=r,r=p+y|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=s+this._f|0,this._g=u+this._g|0,this._h=c+this._h|0};cl.prototype._hash=function(){var e=Kj.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};JA.exports=cl});var eT=P((Cie,QA)=>{"use strict";g();var Qj=vt(),ez=By(),tz=Ms(),rz=Qr().Buffer,iz=new Array(64);function Op(){this.init(),this._w=iz,tz.call(this,64,56)}Qj(Op,ez);Op.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};Op.prototype._hash=function(){var e=rz.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};QA.exports=Op});var Ny=P((Mie,sT)=>{"use strict";g();var nz=vt(),aT=Ms(),oz=Qr().Buffer,tT=[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],az=new Array(160);function fl(){this.init(),this._w=az,aT.call(this,128,112)}nz(fl,aT);fl.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 rT(e,t,r){return r^e&(t^r)}function iT(e,t,r){return e&t|r&(e|t)}function nT(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function oT(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function sz(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function uz(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function cz(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function fz(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function Vr(e,t){return e>>>0<t>>>0?1:0}fl.prototype._update=function(e){for(var t=this._w,r=this._ah|0,i=this._bh|0,n=this._ch|0,o=this._dh|0,a=this._eh|0,s=this._fh|0,u=this._gh|0,c=this._hh|0,l=this._al|0,d=this._bl|0,p=this._cl|0,y=this._dl|0,_=this._el|0,T=this._fl|0,R=this._gl|0,B=this._hl|0,H=0;H<32;H+=2)t[H]=e.readInt32BE(H*4),t[H+1]=e.readInt32BE(H*4+4);for(;H<160;H+=2){var F=t[H-30],I=t[H-30+1],k=sz(F,I),D=uz(I,F);F=t[H-4],I=t[H-4+1];var j=cz(F,I),K=fz(I,F),G=t[H-14],S=t[H-14+1],h=t[H-32],v=t[H-32+1],w=D+S|0,E=k+G+Vr(w,D)|0;w=w+K|0,E=E+j+Vr(w,K)|0,w=w+v|0,E=E+h+Vr(w,v)|0,t[H]=E,t[H+1]=w}for(var A=0;A<160;A+=2){E=t[A],w=t[A+1];var L=iT(r,i,n),N=iT(l,d,p),x=nT(r,l),m=nT(l,r),O=oT(a,_),z=oT(_,a),W=tT[A],te=tT[A+1],ie=rT(a,s,u),se=rT(_,T,R),ae=B+z|0,we=c+O+Vr(ae,B)|0;ae=ae+se|0,we=we+ie+Vr(ae,se)|0,ae=ae+te|0,we=we+W+Vr(ae,te)|0,ae=ae+w|0,we=we+E+Vr(ae,w)|0;var ve=m+N|0,C=x+L+Vr(ve,m)|0;c=u,B=R,u=s,R=T,s=a,T=_,_=y+ae|0,a=o+we+Vr(_,y)|0,o=n,y=p,n=i,p=d,i=r,d=l,l=ae+ve|0,r=we+C+Vr(l,ae)|0}this._al=this._al+l|0,this._bl=this._bl+d|0,this._cl=this._cl+p|0,this._dl=this._dl+y|0,this._el=this._el+_|0,this._fl=this._fl+T|0,this._gl=this._gl+R|0,this._hl=this._hl+B|0,this._ah=this._ah+r+Vr(this._al,l)|0,this._bh=this._bh+i+Vr(this._bl,d)|0,this._ch=this._ch+n+Vr(this._cl,p)|0,this._dh=this._dh+o+Vr(this._dl,y)|0,this._eh=this._eh+a+Vr(this._el,_)|0,this._fh=this._fh+s+Vr(this._fl,T)|0,this._gh=this._gh+u+Vr(this._gl,R)|0,this._hh=this._hh+c+Vr(this._hl,B)|0};fl.prototype._hash=function(){var e=oz.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};sT.exports=fl});var cT=P((qie,uT)=>{"use strict";g();var lz=vt(),hz=Ny(),dz=Ms(),pz=Qr().Buffer,gz=new Array(160);function Ip(){this.init(),this._w=gz,dz.call(this,128,112)}lz(Ip,hz);Ip.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};Ip.prototype._hash=function(){var e=pz.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};uT.exports=Ip});var Cy=P((Uie,jo)=>{"use strict";g();jo.exports=function(t){var r=t.toLowerCase(),i=jo.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i};jo.exports.sha=WA();jo.exports.sha1=$A();jo.exports.sha224=eT();jo.exports.sha256=By();jo.exports.sha384=cT();jo.exports.sha512=Ny()});var Ap=P((jie,lT)=>{"use strict";g();var mz=Qr().Buffer,fT=up().Transform,vz=$u().StringDecoder,yz=vt(),bz=lp();function wn(e){fT.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}yz(wn,fT);wn.prototype.update=function(e,t,r){var i=bz(e,t),n=this._update(i);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)};wn.prototype.setAutoPadding=function(){};wn.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};wn.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};wn.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};wn.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)}};wn.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)};wn.prototype._finalOrDigest=function(e){var t=this.__final()||mz.alloc(0);return e&&(t=this._toString(t,e,!0)),t};wn.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new vz(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};lT.exports=wn});var pT=P((Kie,dT)=>{"use strict";g();var _z=vt(),wz=hy(),Sz=ky(),Ez=Cy(),hT=Ap();function Tp(e){hT.call(this,"digest"),this._hash=e}_z(Tp,hT);Tp.prototype._update=function(e){this._hash.update(e)};Tp.prototype._final=function(){return this._hash.digest()};dT.exports=function(t){return t=t.toLowerCase(),t==="md5"?new wz:t==="rmd160"||t==="ripemd160"?new Sz:new Tp(Ez(t))}});var vT=P((Gie,mT)=>{"use strict";g();var xz=vt(),Ds=Qr().Buffer,gT=Ap(),Oz=Ds.alloc(128),nc=64;function Pp(e,t){gT.call(this,"digest"),typeof t=="string"&&(t=Ds.from(t)),this._alg=e,this._key=t,t.length>nc?t=e(t):t.length<nc&&(t=Ds.concat([t,Oz],nc));for(var r=this._ipad=Ds.allocUnsafe(nc),i=this._opad=Ds.allocUnsafe(nc),n=0;n<nc;n++)r[n]=t[n]^54,i[n]=t[n]^92;this._hash=[r]}xz(Pp,gT);Pp.prototype._update=function(e){this._hash.push(e)};Pp.prototype._final=function(){var e=this._alg(Ds.concat(this._hash));return this._alg(Ds.concat([this._opad,e]))};mT.exports=Pp});var bT=P((Yie,yT)=>{g();var Iz=hy();yT.exports=function(e){return new Iz().update(e).digest()}});var ST=P(($ie,wT)=>{"use strict";g();var Az=vt(),Tz=vT(),_T=Ap(),ll=Qr().Buffer,Pz=bT(),Ly=ky(),My=Cy(),Rz=ll.alloc(128);function hl(e,t){_T.call(this,"digest"),typeof t=="string"&&(t=ll.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 Ly:My(e);t=i.update(t).digest()}else t.length<r&&(t=ll.concat([t,Rz],r));for(var n=this._ipad=ll.allocUnsafe(r),o=this._opad=ll.allocUnsafe(r),a=0;a<r;a++)n[a]=t[a]^54,o[a]=t[a]^92;this._hash=e==="rmd160"?new Ly:My(e),this._hash.update(n)}Az(hl,_T);hl.prototype._update=function(e){this._hash.update(e)};hl.prototype._final=function(){var e=this._hash.digest(),t=this._alg==="rmd160"?new Ly:My(this._alg);return t.update(this._opad).update(e).digest()};wT.exports=function(t,r){return t=t.toLowerCase(),t==="rmd160"||t==="ripemd160"?new hl("rmd160",r):t==="md5"?new Tz(Pz,r):new hl(t,r)}});var ET=P((Jie,qy)=>{"use strict";g();var Dy=65536,kz=4294967295;function Bz(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
11
11
|
Use Chrome, Firefox or Internet Explorer 11`)}var Nz=Qr().Buffer,Rp=globalThis.crypto||globalThis.msCrypto;Rp&&Rp.getRandomValues?qy.exports=Cz:qy.exports=Bz;function Cz(e,t){if(e>kz)throw new RangeError("requested too many random bytes");var r=Nz.allocUnsafe(e);if(e>0)if(e>Dy)for(var i=0;i<e;i+=Dy)Rp.getRandomValues(r.slice(i,i+Dy));else Rp.getRandomValues(r);return typeof t=="function"?b.default.nextTick(function(){t(null,r)}):r}});var Kt=P(kp=>{"use strict";g();kp.createHash=pT();kp.createHmac=ST();kp.randomBytes=ET()});var Ui=P((rne,OT)=>{"use strict";g();var xT=65536;function qs(){}qs.getRandomBuffer=function(e){var t=typeof globalThis<"u"?globalThis.crypto:void 0;if(t&&typeof t.getRandomValues=="function")return qs._fromGetRandomValues(t,e);try{var r=Kt();if(r&&typeof r.randomBytes=="function")return r.randomBytes(e)}catch{}throw new Error("bsv: no CSPRNG available in this environment (needs globalThis.crypto.getRandomValues or node crypto)")};qs._fromGetRandomValues=function(e,t){for(var r=f.Buffer.alloc(t),i=0;i<t;i+=xT){var n=new Uint8Array(Math.min(xT,t-i));e.getRandomValues(n),f.Buffer.from(n).copy(r,i)}return r};qs.getRandomBufferNode=function(e){var t=Kt();return t.randomBytes(e)};qs.getRandomBufferBrowser=function(e){var t=typeof globalThis<"u"?globalThis:{},r=null;if(t.crypto&&typeof t.crypto.getRandomValues=="function"?r=t.crypto:t.msCrypto&&typeof t.msCrypto.getRandomValues=="function"&&(r=t.msCrypto),!r)throw new Error("window.crypto.getRandomValues not available");return qs._fromGetRandomValues(r,e)};OT.exports=qs});var Qe=P((nne,IT)=>{"use strict";g();var Lz=Ui(),xt={};xt.isArray=e=>Array.isArray(e);xt.isNumber=e=>typeof e=="number";xt.isObject=e=>e&&typeof e=="object";xt.isString=e=>typeof e=="string";xt.isUndefined=e=>typeof e>"u";xt.isFunction=e=>typeof e=="function";xt.isNull=e=>e===null;xt.isDate=e=>e instanceof Date;xt.extend=(e,t)=>Object.assign(e,t);xt.noop=()=>{};xt.every=(e,t)=>e.every(t||(r=>r));xt.map=(e,t)=>Array.from(e).map(t||(r=>r));xt.includes=(e,t)=>e.includes(t);xt.each=(e,t)=>e.forEach(t);xt.clone=e=>Object.assign({},e);xt.pick=(e,t)=>{let r={};return t.forEach(i=>{typeof e[i]<"u"&&(r[i]=e[i])}),r};xt.values=e=>Object.values(e);xt.filter=(e,t)=>e.filter(t);xt.reduce=(e,t,r)=>e.reduce(t,r);xt.without=(e,t)=>e.filter(r=>r!==t);xt.shuffle=e=>{let t=e.slice(0);for(let r=t.length-1;r>0;r--){let n=Lz.getRandomBuffer(4).readUInt32BE(0)/4294967296,o=Math.floor(n*(r+1));[t[r],t[o]]=[t[o],t[r]]}return t};xt.difference=(e,t)=>e.filter(r=>!t.includes(r));xt.findIndex=(e,t)=>e.findIndex(t);xt.some=(e,t)=>e.some(t);xt.range=e=>[...Array(e).keys()];IT.exports=xt});var TT=P((ane,AT)=>{"use strict";g();var Mz="https://docs.moneybutton.com/";AT.exports=[{name:"InvalidB58Char",message:"Invalid Base58 character: {0} in {1}"},{name:"InvalidB58Checksum",message:"Invalid Base58 checksum for {0}"},{name:"InvalidNetwork",message:"Invalid version for network: got {0}"},{name:"InvalidState",message:"Invalid state: {0}"},{name:"NotImplemented",message:"Function {0} was not implemented yet"},{name:"InvalidNetworkArgument",message:'Invalid network: must be "livenet" or "testnet", got {0}'},{name:"InvalidArgument",message:function(){return"Invalid Argument"+(arguments[0]?": "+arguments[0]:"")+(arguments[1]?" Documentation: "+Mz+arguments[1]:"")}},{name:"AbstractMethodInvoked",message:"Abstract Method Invocation: {0}"},{name:"InvalidArgumentType",message:function(){return"Invalid Argument for "+arguments[2]+", expected "+arguments[1]+" but got "+typeof arguments[0]}},{name:"Unit",message:"Internal Error on Unit {0}",errors:[{name:"UnknownCode",message:"Unrecognized unit code: {0}"},{name:"InvalidRate",message:"Invalid exchange rate: {0}"}]},{name:"MerkleBlock",message:"Internal Error on MerkleBlock {0}",errors:[{name:"InvalidMerkleTree",message:"This MerkleBlock contain an invalid Merkle Tree"}]},{name:"Transaction",message:"Internal Error on Transaction {0}",errors:[{name:"Input",message:"Internal Error on Input {0}",errors:[{name:"MissingScript",message:"Need a script to create an input"},{name:"UnsupportedScript",message:"Unsupported input script type: {0}"},{name:"MissingPreviousOutput",message:"No previous output information."}]},{name:"NeedMoreInfo",message:"{0}"},{name:"InvalidSorting",message:"The sorting function provided did not return the change output as one of the array elements"},{name:"InvalidOutputAmountSum",message:"{0}"},{name:"MissingSignatures",message:"Some inputs have not been fully signed"},{name:"InvalidIndex",message:"Invalid index: {0} is not between 0, {1}"},{name:"UnableToVerifySignature",message:"Unable to verify signature: {0}"},{name:"DustOutputs",message:"Dust amount detected in one output"},{name:"InvalidSatoshis",message:"Output satoshis are invalid"},{name:"FeeError",message:"Internal Error on Fee {0}",errors:[{name:"TooSmall",message:"Fee is too small: {0}"},{name:"TooLarge",message:"Fee is too large: {0}"},{name:"Different",message:"Unspent value is different from specified fee: {0}"}]},{name:"ChangeAddressMissing",message:"Change address is missing"},{name:"BlockHeightTooHigh",message:"Block Height can be at most 2^32 -1"},{name:"NLockTimeOutOfRange",message:"Block Height can only be between 0 and 499 999 999"},{name:"LockTimeTooEarly",message:"Lock Time can't be earlier than UNIX date 500 000 000"}]},{name:"Script",message:"Internal Error on Script {0}",errors:[{name:"UnrecognizedAddress",message:"Expected argument {0} to be an address"},{name:"CantDeriveAddress",message:"Can't derive address associated with script {0}, needs to be p2pkh in, p2pkh out, p2sh in, or p2sh out."},{name:"InvalidBuffer",message:"Invalid script buffer: can't parse valid script from given buffer {0}"}]},{name:"HDPrivateKey",message:"Internal Error on HDPrivateKey {0}",errors:[{name:"InvalidDerivationArgument",message:"Invalid derivation argument {0}, expected string, or number and boolean"},{name:"InvalidEntropyArgument",message:"Invalid entropy: must be an hexa string or binary buffer, got {0}",errors:[{name:"TooMuchEntropy",message:'Invalid entropy: more than 512 bits is non standard, got "{0}"'},{name:"NotEnoughEntropy",message:'Invalid entropy: at least 128 bits needed, got "{0}"'}]},{name:"InvalidLength",message:"Invalid length for xprivkey string in {0}"},{name:"InvalidPath",message:"Invalid derivation path: {0}"},{name:"UnrecognizedArgument",message:'Invalid argument: creating a HDPrivateKey requires a string, buffer, json or object, got "{0}"'}]},{name:"HDPublicKey",message:"Internal Error on HDPublicKey {0}",errors:[{name:"ArgumentIsPrivateExtended",message:"Argument is an extended private key: {0}"},{name:"InvalidDerivationArgument",message:"Invalid derivation argument: got {0}"},{name:"InvalidLength",message:'Invalid length for xpubkey: got "{0}"'},{name:"InvalidPath",message:'Invalid derivation path, it should look like: "m/1/100", got "{0}"'},{name:"InvalidIndexCantDeriveHardened",message:"Invalid argument: creating a hardened path requires an HDPrivateKey"},{name:"MustSupplyArgument",message:"Must supply an argument to create a HDPublicKey"},{name:"UnrecognizedArgument",message:"Invalid argument for creation, must be string, json, buffer, or object"}]}]});var ci=P((une,Uy)=>{"use strict";g();var Hy=Qe();function Dz(e,t){return e.replace("{0}",t[0]).replace("{1}",t[1]).replace("{2}",t[2])}var PT=function(e,t){var r=function(){if(Hy.isString(t.message))this.message=Dz(t.message,arguments);else if(Hy.isFunction(t.message))this.message=t.message.apply(null,arguments);else throw new Error("Invalid error definition for "+t.name);this.stack=this.message+`
|
|
12
12
|
`+new Error().stack};return r.prototype=Object.create(e.prototype),r.prototype.name=e.prototype.name+t.name,e[t.name]=r,t.errors&&RT(r,t.errors),r},RT=function(e,t){Hy.each(t,function(r){PT(e,r)})},qz=function(e,t){return RT(e,t),e},oc={};oc.Error=function(){this.message="Internal error",this.stack=this.message+`
|
|
13
|
-
`+new Error().stack};oc.Error.prototype=Object.create(Error.prototype);oc.Error.prototype.name="bsv.Error";var Hz=TT();qz(oc.Error,Hz);Uy.exports=oc.Error;Uy.exports.extend=function(e){return PT(oc.Error,e)}});var Oe=P((fne,kT)=>{"use strict";g();var dl=ci(),Uz=Qe();kT.exports={checkState:function(e,t){if(!e)throw new dl.InvalidState(t)},checkArgument:function(e,t,r,i){if(!e)throw new dl.InvalidArgument(t,r,i)},checkArgumentType:function(e,t,r){if(r=r||"(unknown name)",Uz.isString(t)){if(t==="Buffer"){var i=jt();if(!i.Buffer.isBuffer(e))throw new dl.InvalidArgumentType(e,t,r)}else if(typeof e!==t)throw new dl.InvalidArgumentType(e,t,r)}else if(!(e instanceof t))throw new dl.InvalidArgumentType(e,t.name,r)}}});var Ze=P((hne,LT)=>{"use strict";g();var st=ld(),NT=Oe(),CT=Qe(),Bp=function(e){for(var t=f.Buffer.alloc(e.length),r=0;r<e.length;r++)t[r]=e[e.length-1-r];return t};st.Zero=new st(0);st.One=new st(1);st.Minus1=new st(-1);st.fromNumber=function(e){return NT.checkArgument(CT.isNumber(e)),new st(e)};st.fromString=function(e,t){return NT.checkArgument(CT.isString(e)),new st(e,t)};st.fromBuffer=function(e,t){typeof t<"u"&&t.endian==="little"&&(e=Bp(e));var r=e.toString("hex"),i=new st(r,16);return i};st.fromSM=function(e,t){var r;if(e.length===0)return st.fromBuffer(f.Buffer.from([0]));var i="big";return t&&(i=t.endian),i==="little"&&(e=Bp(e)),e[0]&128?(e[0]=e[0]&127,r=st.fromBuffer(e),r.neg().copy(r)):r=st.fromBuffer(e),r};st.prototype.toNumber=function(){return parseInt(this.toString(10),10)};st.prototype.toBuffer=function(e){var t,r;if(e&&e.size){r=this.toString(16,2);var i=r.length/2;t=f.Buffer.from(r,"hex"),i===e.size||(i>e.size?t=st.trim(t,i):i<e.size&&(t=st.pad(t,i,e.size)))}else r=this.toString(16,2),t=f.Buffer.from(r,"hex");return typeof e<"u"&&e.endian==="little"&&(t=Bp(t)),t};st.prototype.toSMBigEndian=function(){var e;return this.cmp(st.Zero)===-1?(e=this.neg().toBuffer(),e[0]&128?e=f.Buffer.concat([f.Buffer.from([128]),e]):e[0]=e[0]|128):(e=this.toBuffer(),e[0]&128&&(e=f.Buffer.concat([f.Buffer.from([0]),e]))),e.length===1&&e[0]===0&&(e=f.Buffer.from([])),e};st.prototype.toSM=function(e){var t=e?e.endian:"big",r=this.toSMBigEndian();return t==="little"&&(r=Bp(r)),r};function BT(e,t){var r=new Error(e);return r.scriptErr=t,r}st.fromScriptNumBuffer=function(e,t,r){var i=r||4;if(e.length>i)throw BT("script number overflow","SCRIPT_ERR_SCRIPTNUM_OVERFLOW");if(t&&e.length>0&&(e[e.length-1]&127)===0&&(e.length<=1||(e[e.length-2]&128)===0))throw BT("non-minimally encoded script number","SCRIPT_ERR_SCRIPTNUM_MINENCODE");return st.fromSM(e,{endian:"little"})};st.prototype.toScriptNumBuffer=function(){return this.toSM({endian:"little"})};st.trim=function(e,t){return e.slice(t-e.length,e.length)};st.pad=function(e,t,r){for(var i=f.Buffer.alloc(r),n=0;n<e.length;n++)i[i.length-1-n]=e[e.length-1-n];for(n=0;n<r-t;n++)i[n]=0;return i};st.prototype.toHex=function(...e){return this.toBuffer(...e).toString("hex")};st.fromHex=function(e,...t){return st.fromBuffer(f.Buffer.from(e,"hex"),...t)};LT.exports=st});var ei=P((pne,qT)=>{"use strict";g();var DT=Qe(),Fz=Oe(),MT=function(t){return DT.isString(t)?/^[0-9a-fA-F]+$/.test(t):!1};qT.exports={isValidJSON:function(t){var r;if(!DT.isString(t))return!1;try{r=JSON.parse(t)}catch{return!1}return typeof r=="object"},isHexa:MT,isHexaString:MT,defineImmutable:function(t,r){return Object.keys(r).forEach(function(i){Object.defineProperty(t,i,{configurable:!1,enumerable:!0,value:r[i]})}),t},isNaturalNumber:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&t>=0},integerAsBuffer:function(t){Fz.checkArgumentType(t,"number","integer");let r=f.Buffer.allocUnsafe(4);return r.writeUInt32BE(t,0),r}}});function jz(e,t=!1){return t?{h:Number(e&Np),l:Number(e>>HT&Np)}:{h:Number(e>>HT&Np)|0,l:Number(e&Np)|0}}function UT(e,t=!1){let r=e.length,i=new Uint32Array(r),n=new Uint32Array(r);for(let o=0;o<r;o++){let{h:a,l:s}=jz(e[o],t);[i[o],n[o]]=[a,s]}return[i,n]}function FT(e,t,r,i){let n=zz(r),o=Kz(r);e.setUint32(t,i?o:n,i),e.setUint32(t+4,i?n:o,i)}function Xn(e,t,r,i){let n=(t>>>0)+(i>>>0);return{h:e+r+(n/2**32|0)|0,l:n|0}}var Np,HT,zz,Kz,Fy,jy,Hs,Us,pl,gl,jT,zT,KT,VT,GT,WT,zy=Br(()=>{g();Np=BigInt(4294967295),HT=BigInt(32);zz=e=>e/2**32|0,Kz=e=>e>>>0;Fy=(e,t,r)=>e>>>r,jy=(e,t,r)=>e<<32-r|t>>>r,Hs=(e,t,r)=>e>>>r|t<<32-r,Us=(e,t,r)=>e<<32-r|t>>>r,pl=(e,t,r)=>e<<64-r|t>>>r-32,gl=(e,t,r)=>e>>>r-32|t<<64-r;jT=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),zT=(e,t,r,i)=>t+r+i+(e/2**32|0)|0,KT=(e,t,r,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0),VT=(e,t,r,i,n)=>t+r+i+n+(e/2**32|0)|0,GT=(e,t,r,i,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0)+(n>>>0),WT=(e,t,r,i,n,o)=>t+r+i+n+o+(e/2**32|0)|0});function Cp(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in e&&e.BYTES_PER_ELEMENT===1}function zo(e,t=""){if(typeof e!="number")throw new TypeError(Ky(t)+"expected number, got "+typeof e);if(!Number.isSafeInteger(e)||e<0)throw new RangeError(Ky(t)+"expected integer >= 0, got "+e);return e}function Jn(e,t,r=""){if(Cp(e)&&(t===void 0||e.length===t))return e;t!==void 0&&zo(t,"length");let i=Cp(e),n=t!==void 0?` of length ${t}`:"",o=i?`length=${e.length}`:`type=${typeof e}`,a=Ky(r)+"expected Uint8Array"+n+", got "+o;throw i?new RangeError(a):new TypeError(a)}function Lp(e){if(typeof e!="function"||typeof e.create!="function")throw new TypeError("expected hash wrapped by utils.createHasher");if(zo(e.outputLen),zo(e.blockLen),e.outputLen<1||e.blockLen<1)throw new Error("hash blockLen / outputLen must be >= 1")}function ac(e,t=!0){if(e.destroyed)throw new Error("hash was destroyed");if(t&&e.finished)throw new Error("digest() was already called")}function Mp(e,t){Jn(e,void 0,"output");let r=t.outputLen;if(!(e.length>=r))throw new RangeError('"output" expected length >= '+r)}function Ii(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Dp(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Sn(e,t){return e<<32-t|e>>>t}function Ko(e,t){return e<<t|e>>>32-t>>>0}function qp(e){if(Jn(e),$T)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=Gz[e[r]];return t}function ZT(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function Vy(e){if(typeof e!="string")throw new TypeError("hex string expected, got "+typeof e);if($T)try{return Uint8Array.fromHex(e)}catch(n){throw n instanceof SyntaxError?new RangeError(n.message):n}let t=e.length,r=t/2;if(t%2)throw new RangeError("hex string expected, got unpadded hex of length "+t);let i=new Uint8Array(r);for(let n=0,o=0;n<r;n++,o+=2){let a=ZT(e.charCodeAt(o)),s=ZT(e.charCodeAt(o+1));if(a===void 0||s===void 0){let u=e[o]+e[o+1];throw new RangeError('hex string expected, got non-hex character "'+u+'" at index '+o)}i[n]=a*16+s}return i}function Vo(e){if(typeof e!="string")throw new TypeError("string expected");return new Uint8Array(new TextEncoder().encode(e))}function XT(...e){let t=0;for(let i=0;i<e.length;i++){let n=e[i];Jn(n),t+=n.length}let r=new Uint8Array(t);for(let i=0,n=0;i<e.length;i++){let o=e[i];r.set(o,n),n+=o.length}return r}function Wz(e,t,r="opts"){return YT(e,"defaults"),t!==void 0&&YT(t,r),Object.assign(e,t)}function En(e,t={}){if(typeof e!="function")throw new TypeError('"hashCons" expected function, got type='+typeof e);t=Wz({},t,"info");let r=(n,o)=>e(o).update(n).digest(),i=e(void 0);return r.outputLen=i.outputLen,r.blockLen=i.blockLen,r.canXOF=i.canXOF,r.create=n=>e(n),Object.assign(r,t),Object.freeze(r)}function ml(e=32){zo(e,"bytesLength");let t=typeof globalThis=="object"?globalThis.crypto:null;if(typeof t?.getRandomValues!="function")throw new Error("crypto.getRandomValues must be defined");if(e>65536)throw new RangeError(`"bytesLength" expected <= 65536, got ${e}`);return t.getRandomValues(new Uint8Array(e))}var Ky,YT,$T,Gz,Fs,Go=Br(()=>{g();Ky=e=>e?`"${e}" `:"";YT=(e,t)=>{if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError((t==="object"?"":`"${t}" `)+"expected object, got type="+typeof e)};$T=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Gz=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));Fs=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])})});function sc(e,t,r){return e&t^~e&r}function Hp(e,t,r){return e&t^e&r^t&r}var Wo,JT,QT,eP,tP,Gy=Br(()=>{g();zy();Go();Wo=class{constructor(t,r,i,n){ee(this,"blockLen");ee(this,"outputLen");ee(this,"canXOF",!1);ee(this,"padOffset");ee(this,"isLE");ee(this,"buffer");ee(this,"view");ee(this,"finished",!1);ee(this,"length",0);ee(this,"pos",0);ee(this,"destroyed",!1);this.blockLen=t,this.outputLen=r,this.padOffset=i,this.isLE=n,this.buffer=new Uint8Array(t),this.view=Dp(this.buffer)}update(t){ac(this),Jn(t);let{view:r,buffer:i,blockLen:n}=this,o=t.length,a=!1;for(let s=0;s<o;){let u=Math.min(n-this.pos,o-s);if(u===n){let c=Dp(t);for(;n<=o-s;s+=n)this.process(c,s);a=!0;continue}i.set(s===0&&u===o?t:t.subarray(s,s+u),this.pos),this.pos+=u,s+=u,this.pos===n&&(this.process(r,0),this.pos=0,a=!0)}return this.length+=t.length,a&&this.roundClean(),this}digestInto(t){ac(this),Mp(t,this),this.finished=!0;let{buffer:r,view:i,blockLen:n,isLE:o}=this,{pos:a}=this;r[a++]=128,r.fill(0,a),this.padOffset>n-a&&(this.process(i,0),r.fill(0)),FT(i,n-8,this.length*8,o),this.process(i,0),this.roundClean();let s=t===r?i:Dp(t),u=this.outputLen,c=u/4,l=this.get();if(u%4||c>l.length)throw new Error("invalid outputLen");for(let d=0;d<c;d++)s.setUint32(4*d,l[d],o)}digest(){let{buffer:t,outputLen:r}=this;this.digestInto(t);let i=t.slice(0,r);return this.destroy(),i}_cloneIntoMeta(t){let{buffer:r,length:i,finished:n,destroyed:o,pos:a}=this;return t.destroyed=o,t.finished=n,t.length=i,t.pos=a,a&&t.buffer.set(r),t}clone(){return this._cloneInto()}},JT=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),QT=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),eP=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),tP=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])});var Wp={};Pf(Wp,{_SHA224:()=>jp,_SHA256:()=>Fp,_SHA384:()=>Kp,_SHA512:()=>zp,_SHA512_224:()=>Vp,_SHA512_256:()=>Gp,sha224:()=>Qz,sha256:()=>ka,sha384:()=>tK,sha512:()=>eK,sha512_224:()=>iK,sha512_256:()=>rK});var Yz,Ta,Up,Fp,jp,rP,Zz,$z,Pa,Ra,uc,zp,Kp,Xz,Jz,Vp,Gp,ka,Qz,eK,tK,rK,iK,vl=Br(()=>{g();Gy();zy();Go();Yz=Uint32Array.from([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]),Ta=new Uint32Array(64),Up=class extends Wo{constructor(r,i){super(64,r,8,!1);ee(this,"A",0);ee(this,"B",0);ee(this,"C",0);ee(this,"D",0);ee(this,"E",0);ee(this,"F",0);ee(this,"G",0);ee(this,"H",0);this.A=i[0]|0,this.B=i[1]|0,this.C=i[2]|0,this.D=i[3]|0,this.E=i[4]|0,this.F=i[5]|0,this.G=i[6]|0,this.H=i[7]|0}get(){let{A:r,B:i,C:n,D:o,E:a,F:s,G:u,H:c}=this;return[r,i,n,o,a,s,u,c]}set(r,i,n,o,a,s,u,c){this.A=r|0,this.B=i|0,this.C=n|0,this.D=o|0,this.E=a|0,this.F=s|0,this.G=u|0,this.H=c|0}_cloneInto(r){return(r||(r=new this.constructor)).set(...this.get()),this._cloneIntoMeta(r)}process(r,i){for(let p=0;p<16;p++,i+=4)Ta[p]=r.getUint32(i,!1);for(let p=16;p<64;p++){let y=Ta[p-15],_=Ta[p-2],T=Sn(y,7)^Sn(y,18)^y>>>3,R=Sn(_,17)^Sn(_,19)^_>>>10;Ta[p]=R+Ta[p-7]+T+Ta[p-16]|0}let{A:n,B:o,C:a,D:s,E:u,F:c,G:l,H:d}=this;for(let p=0;p<64;p++){let y=Sn(u,6)^Sn(u,11)^Sn(u,25),_=d+y+sc(u,c,l)+Yz[p]+Ta[p]|0,R=(Sn(n,2)^Sn(n,13)^Sn(n,22))+Hp(n,o,a)|0;d=l,l=c,c=u,u=s+_|0,s=a,a=o,o=n,n=_+R|0}n=n+this.A|0,o=o+this.B|0,a=a+this.C|0,s=s+this.D|0,u=u+this.E|0,c=c+this.F|0,l=l+this.G|0,d=d+this.H|0,this.set(n,o,a,s,u,c,l,d)}roundClean(){Ii(Ta)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),Ii(this.buffer)}},Fp=class extends Up{constructor(){super(32,JT)}},jp=class extends Up{constructor(){super(28,QT)}},rP=UT(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),Zz=rP[0],$z=rP[1],Pa=new Uint32Array(80),Ra=new Uint32Array(80),uc=class extends Wo{constructor(r,i){super(128,r,16,!1);ee(this,"Ah",0);ee(this,"Al",0);ee(this,"Bh",0);ee(this,"Bl",0);ee(this,"Ch",0);ee(this,"Cl",0);ee(this,"Dh",0);ee(this,"Dl",0);ee(this,"Eh",0);ee(this,"El",0);ee(this,"Fh",0);ee(this,"Fl",0);ee(this,"Gh",0);ee(this,"Gl",0);ee(this,"Hh",0);ee(this,"Hl",0);this.Ah=i[0]|0,this.Al=i[1]|0,this.Bh=i[2]|0,this.Bl=i[3]|0,this.Ch=i[4]|0,this.Cl=i[5]|0,this.Dh=i[6]|0,this.Dl=i[7]|0,this.Eh=i[8]|0,this.El=i[9]|0,this.Fh=i[10]|0,this.Fl=i[11]|0,this.Gh=i[12]|0,this.Gl=i[13]|0,this.Hh=i[14]|0,this.Hl=i[15]|0}get(){let{Ah:r,Al:i,Bh:n,Bl:o,Ch:a,Cl:s,Dh:u,Dl:c,Eh:l,El:d,Fh:p,Fl:y,Gh:_,Gl:T,Hh:R,Hl:B}=this;return[r,i,n,o,a,s,u,c,l,d,p,y,_,T,R,B]}set(r,i,n,o,a,s,u,c,l,d,p,y,_,T,R,B){this.Ah=r|0,this.Al=i|0,this.Bh=n|0,this.Bl=o|0,this.Ch=a|0,this.Cl=s|0,this.Dh=u|0,this.Dl=c|0,this.Eh=l|0,this.El=d|0,this.Fh=p|0,this.Fl=y|0,this.Gh=_|0,this.Gl=T|0,this.Hh=R|0,this.Hl=B|0}_cloneInto(r){return(r||(r=new this.constructor)).set(...this.get()),this._cloneIntoMeta(r)}process(r,i){for(let I=0;I<16;I++,i+=4)Pa[I]=r.getUint32(i),Ra[I]=r.getUint32(i+=4);for(let I=16;I<80;I++){let k=Pa[I-15]|0,D=Ra[I-15]|0,j=Hs(k,D,1)^Hs(k,D,8)^Fy(k,D,7),K=Us(k,D,1)^Us(k,D,8)^jy(k,D,7),G=Pa[I-2]|0,S=Ra[I-2]|0,h=Hs(G,S,19)^pl(G,S,61)^Fy(G,S,6),v=Us(G,S,19)^gl(G,S,61)^jy(G,S,6),w=KT(K,v,Ra[I-7],Ra[I-16]),E=VT(w,j,h,Pa[I-7],Pa[I-16]);Pa[I]=E|0,Ra[I]=w|0}let{Ah:n,Al:o,Bh:a,Bl:s,Ch:u,Cl:c,Dh:l,Dl:d,Eh:p,El:y,Fh:_,Fl:T,Gh:R,Gl:B,Hh:H,Hl:F}=this;for(let I=0;I<80;I++){let k=Hs(p,y,14)^Hs(p,y,18)^pl(p,y,41),D=Us(p,y,14)^Us(p,y,18)^gl(p,y,41),j=p&_^~p&R,K=y&T^~y&B,G=GT(F,D,K,$z[I],Ra[I]),S=WT(G,H,k,j,Zz[I],Pa[I]),h=G|0,v=Hs(n,o,28)^pl(n,o,34)^pl(n,o,39),w=Us(n,o,28)^gl(n,o,34)^gl(n,o,39),E=n&a^n&u^a&u,A=o&s^o&c^s&c;H=R|0,F=B|0,R=_|0,B=T|0,_=p|0,T=y|0,{h:p,l:y}=Xn(l|0,d|0,S|0,h|0),l=u|0,d=c|0,u=a|0,c=s|0,a=n|0,s=o|0;let L=jT(h,w,A);n=zT(L,S,v,E),o=L|0}({h:n,l:o}=Xn(this.Ah|0,this.Al|0,n|0,o|0)),{h:a,l:s}=Xn(this.Bh|0,this.Bl|0,a|0,s|0),{h:u,l:c}=Xn(this.Ch|0,this.Cl|0,u|0,c|0),{h:l,l:d}=Xn(this.Dh|0,this.Dl|0,l|0,d|0),{h:p,l:y}=Xn(this.Eh|0,this.El|0,p|0,y|0),{h:_,l:T}=Xn(this.Fh|0,this.Fl|0,_|0,T|0),{h:R,l:B}=Xn(this.Gh|0,this.Gl|0,R|0,B|0),{h:H,l:F}=Xn(this.Hh|0,this.Hl|0,H|0,F|0),this.set(n,o,a,s,u,c,l,d,p,y,_,T,R,B,H,F)}roundClean(){Ii(Pa,Ra)}destroy(){this.destroyed=!0,Ii(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},zp=class extends uc{constructor(){super(64,tP)}},Kp=class extends uc{constructor(){super(48,eP)}},Xz=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),Jz=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Vp=class extends uc{constructor(){super(28,Xz)}},Gp=class extends uc{constructor(){super(32,Jz)}},ka=En(()=>new Fp,Fs(1)),Qz=En(()=>new jp,Fs(4)),eK=En(()=>new zp,Fs(3)),tK=En(()=>new Kp,Fs(2)),rK=En(()=>new Gp,Fs(6)),iK=En(()=>new Vp,Fs(5))});function $t(e,t,r=()=>{}){if(!Array.isArray(e))throw new TypeError(`"${t}" expected array, got type=${typeof e}`);for(let i=0;i<e.length;i++)r(e[i],`${t}[${i}]`);return e}function yl(e,t=""){if(typeof e!="string"){let r=t&&`"${t}" `;throw new TypeError(r+"expected string, got type="+typeof e)}return e}function Ba(e,t="object"){if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError(t==="object"?"expected valid options object":`"${t}" expected object, got type=${typeof e}`);return e}function js(e,t){if(typeof e!="function")throw new TypeError(`"${t}" is invalid: expected function, got ${typeof e}`);return e}function eo(e,t=""){if(typeof e!="boolean")throw new TypeError(nK(t)+"expected boolean, got type="+typeof e);return e}function Zp(e){if(typeof e=="bigint"){if(!Na(e))throw new RangeError("positive bigint expected, got "+e)}else Wy(e);return e}function Xt(e,t=""){if(typeof e!="number"){let r=t&&`"${t}" `;throw new TypeError(r+"expected number, got type="+typeof e)}if(!Number.isSafeInteger(e)){let r=t&&`"${t}" `;throw new RangeError(r+"expected safe integer, got "+e)}}function bl(e){let t=Zp(e).toString(16);return t.length&1?"0"+t:t}function nP(e){if(typeof e!="string")throw new TypeError("hex string expected, got "+typeof e);return e===""?Yp:BigInt("0x"+e)}function Nr(e){return nP(qp(e))}function fc(e){return nP(qp(Xp(Jn(e)).reverse()))}function $p(e,t){if(zo(t),t===0)throw new Error("zero output length is invalid");e=Zp(e);let r=t*2,i=e.toString(16);if(i.length>r)throw new RangeError("number is too large");return Vy(i.padStart(r,"0"))}function Yy(e,t){return $p(e,t).reverse()}function Xp(e){return Uint8Array.from(Ce(e))}function lc(e){if(typeof e!="string")throw new TypeError("ascii string expected, got "+typeof e);return Uint8Array.from(e,(t,r)=>{let i=t.charCodeAt(0);if(t.length!==1||i>127)throw new RangeError(`string contains non-ASCII character "${e[r]}" with code ${i} at position ${r}`);return i})}function Na(e){return typeof e=="bigint"&&Yp<=e}function Zy(e,t,r){return Na(e)&&Na(t)&&Na(r)&&t<=e&&e<r}function $y(e,t,r,i){if(!Zy(t,r,i))throw new RangeError("expected valid "+e+": "+r+" <= n < "+i+", got "+t)}function hc(e){if(e<Yp)throw new Error("expected non-negative bigint, got "+e);return e===Yp?0:e.toString(2).length}function oP(e,t,r){if(zo(e,"hashLen"),zo(t,"qByteLen"),typeof r!="function")throw new TypeError("hmacFn must be a function");let i=R=>new Uint8Array(R),n=Uint8Array.of(),o=Uint8Array.of(0),a=Uint8Array.of(1),s=1e3,u=i(e),c=i(e),l=0,d=()=>{u.fill(1),c.fill(0),l=0},p=(...R)=>r(c,lt(u,...R)),y=(R=n)=>{c=p(o,R),u=p(),R.length!==0&&(c=p(a,R),u=p())},_=()=>{if(l++>=s)throw new Error("drbg: tried max amount of iterations");let R=0,B=[];for(;R<t;){u=p();let H=u.slice();B.push(H),R+=u.length}return lt(...B)};return(R,B)=>{d(),y(R);let H;for(;(H=B(_()))===void 0;)y();return d(),H}}function yt(e,t={},r={},i="object"){Ba(e,i),Ba(t,"fields"),Ba(r,"optFields");function n(a,s,u){let c=i==="object"?`param "${String(a)}"`:`"${i}.${String(a)}"`,l=e[a];if(!Object.hasOwn(e,a)&&(u?l!==void 0:s!=="function"))throw new TypeError(`${c} is invalid: expected own property`);if(u&&l===void 0)return;let d=typeof l;if(d!==s||l===null)throw new TypeError(`${c} is invalid: expected ${s}, got ${d}`)}let o=(a,s)=>Object.entries(a).forEach(([u,c])=>n(u,c,s));o(t,!1),o(r,!0)}var Ce,Wy,Yo,lt,cc,Qn,mi,Yp,iP,nK,_l,Ca=Br(()=>{g();Go();Ce=(e,t,r)=>Jn(e,t,r),Wy=zo;Yo=qp,lt=(...e)=>XT(...e),cc=e=>Vy(e),Qn=Cp,mi=e=>ml(e),Yp=BigInt(0),iP=BigInt(1),nK=e=>e?`"${e}" `:"";_l=e=>(Xt(e,"n"),(iP<<BigInt(e))-iP)});function vi(e,t){if(t<=Cr)throw new Error("mod: expected positive modulus, got "+t);let r=e%t;return r>=Cr?r:t+r}function hP(e,t,r){if(r<=mt)throw new Error("pow: expected modulus > 1, got "+r);if(typeof t!="bigint")throw new TypeError("invalid exponent: expected bigint, got "+typeof t);if(t<Cr)throw new Error("invalid exponent, negatives unsupported");if(t===Cr)return mt;if(t===mt)return e;let i=e%r;if(i<Cr&&(i+=r),t<uK){let s=mt;for(;t>Cr;)t&mt&&(s=s*i%r),i=i*i%r,t>>=mt;return s}let n=[];for(;t>Cr;)n.push(Number(t&sK)),t>>=Jy;let o=new Array(16);o[0]=mt,o[1]=i;for(let s=2;s<16;s++)o[s]=o[s-1]*i%r;let a=o[n[n.length-1]];for(let s=n.length-2;s>=0;s--){a=a*a%r,a=a*a%r,a=a*a%r,a=a*a%r;let u=n[s];u!==0&&(a=a*o[u]%r)}return a}function Fi(e,t,r){if(r<=mt)throw new Error("pow2: expected modulus > 1, got "+r);if(t<Cr)throw new Error("pow2: expected non-negative exponent, got "+t);let i=e;for(;t-- >Cr;)i*=i,i%=r;return i}function aP(e,t){if(e===Cr)throw new Error("invert: expected non-zero number");if(t<=mt)throw new Error("invert: expected modulus > 1, got "+t);let r=vi(e,t),i=t,n=Cr,o=mt;for(;r!==Cr;){let s=i/r,u=i-r*s,c=n-o*s;i=r,r=u,n=o,o=c}if(i!==mt)throw new Error("invert: does not exist");return vi(n,t)}function dP(e,t){if(t<=mt)throw new Error("invertCt: expected prime modulus > 1, got "+t);let r=vi(e,t);if(r===Cr)throw new Error("invertCt: expected non-zero number");let i=hP(r,t-La,t);if(vi(r*i,t)!==mt)throw new Error("invertCt: does not exist");return i}function Qy(e,t,r){let i=e;if(!i.eql(i.sqr(t),r))throw new Error("Cannot find square root")}function eb(e,t){if((e&mt)===Cr)throw new Error(t+": expected odd modulus, got "+e)}function pP(e,t){let r=e,i=(r.ORDER+mt)/Jy,n=r.pow(t,i);return Qy(r,n,t),n}function cK(e,t){let r=e,i=(r.ORDER-cP)/fP,n=r.mul(t,La),o=r.pow(n,i),a=r.mul(t,o),s=r.mul(r.mul(a,La),o),u=r.mul(a,r.sub(s,r.ONE));return Qy(r,u,t),u}function fK(e){let t=pc(e),r=gP(e),i=r(t,t.neg(t.ONE)),n=r(t,i),o=r(t,t.neg(i)),a=(e+oK)/lP;return((s,u)=>{let c=s,l=c.pow(u,a),d=c.mul(l,i),p=c.mul(l,n),y=c.mul(l,o),_=c.eql(c.sqr(d),u),T=c.eql(c.sqr(p),u);l=c.cmov(l,d,_),d=c.cmov(y,p,T);let R=c.eql(c.sqr(d),u),B=c.cmov(l,d,R);return Qy(c,B,u),B})}function gP(e){if(e<uP)throw new Error("sqrt is not defined for small field");eb(e,"tonelliShanks");let t=e-mt,r=0;for(;t%La===Cr;)t/=La,r++;let i=La,n=pc(e);for(;Xy(n,i)===1;)if(i++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return pP;let o=n.pow(i,t),a=(t+mt)/La;return function(u,c){let l=u;if(l.is0(c))return c;if(Xy(l,c)!==1)throw new Error("Cannot find square root");let d=r,p=l.mul(l.ONE,o),y=l.pow(c,t),_=l.pow(c,a);for(;!l.eql(y,l.ONE);){if(l.is0(y))throw new Error("Cannot find square root: probably non-prime P");let T=1,R=l.sqr(y);for(;!l.eql(R,l.ONE);)if(T++,R=l.sqr(R),T===d)throw new Error("Cannot find square root");let B=mt<<BigInt(d-T-1),H=l.pow(p,B);d=T,p=l.sqr(H),y=l.mul(y,p),_=l.mul(_,H)}return _}}function lK(e){return eb(e,"Fp.sqrt"),e%Jy===uP?pP:e%fP===cP?cK:e%lP===aK?fK(e):gP(e)}function rn(e){if(Ba(e,"field"),typeof e.ORDER!="bigint")throw new TypeError('param "ORDER" is invalid: expected bigint, got '+typeof e.ORDER);Xt(e.BYTES,"BYTES"),Xt(e.BITS,"BITS");for(let t of hK)js(e[t],"field."+t);if(e.BYTES<1||e.BITS<1)throw new Error("invalid field: expected BYTES/BITS > 0");if(e.ORDER<=mt)throw new Error("invalid field: expected ORDER > 1, got "+e.ORDER);return e}function dc(e,t,r=!1){rn(e),$t(t,"nums"),eo(r,"passZero");let i=e,n=new Array(t.length).fill(r?i.ZERO:void 0),o=t.reduce((s,u,c)=>i.is0(u)?s:(n[c]=s,i.mul(s,u)),i.ONE),a=i.inv(o);return t.reduceRight((s,u,c)=>i.is0(u)?s:(n[c]=i.mul(s,n[c]),i.mul(s,u)),a),n}function Xy(e,t){rn(e);let r=e;eb(r.ORDER,"FpLegendre");let i=(r.ORDER-mt)/La,n=r.pow(t,i),o=r.eql(n,r.ONE),a=r.eql(n,r.ZERO),s=r.eql(n,r.neg(r.ONE));if(!o&&!a&&!s)throw new Error("invalid Legendre symbol result");return o?1:a?0:-1}function tb(e,t){return Xy(e,t)!==-1}function dK(e,t){if(t!==void 0&&Wy(t),e<=Cr)throw new Error("invalid n length: expected positive n, got "+e);if(t!==void 0&&t<1)throw new Error("invalid n length: expected positive bit length, got "+t);let r=hc(e);if(t!==void 0&&t<r)throw new Error(`invalid n length: expected nBitLength (${t}) >= bitLen(n) (${r})`);let i=t!==void 0?t:r,n=Math.ceil(i/8);return{nBitLength:i,nByteLength:n}}function pc(e,t={}){return Object.freeze(Jp.prototype),new Jp(e,t)}function mP(e){if(typeof e!="bigint")throw new Error("field order must be bigint");if(e<=mt)throw new Error("field order must be greater than 1");let t=hc(e-mt);return Math.ceil(t/8)}function gc(e){let t=mP(e);return t+Math.ceil(t/2)}function zs(e,t,r=!1){Ce(e);let i=e.length,n=mP(t),o=Math.max(gc(t),16);if(i<o||i>1024)throw new Error("expected "+o+"-1024 bytes of input, got "+i);let a=r?fc(e):Nr(e),s=vi(a,t-mt)+mt;return r?Yy(s,n):$p(s,n)}var Cr,mt,La,uP,Jy,cP,oK,fP,aK,sK,lP,uK,hK,sP,Jp,Ks=Br(()=>{g();Ca();Cr=BigInt(0),mt=BigInt(1),La=BigInt(2),uP=BigInt(3),Jy=BigInt(4),cP=BigInt(5),oK=BigInt(7),fP=BigInt(8),aK=BigInt(9),sK=BigInt(15),lP=BigInt(16),uK=BigInt("0x10000000000000000");hK=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];sP=new WeakMap,Jp=class{constructor(t,r={}){ee(this,"ORDER");ee(this,"BITS");ee(this,"BYTES");ee(this,"isLE");ee(this,"ZERO",Cr);ee(this,"ONE",mt);ee(this,"_lengths");ee(this,"_mod");if(t<=mt)throw new Error("invalid field: expected ORDER > 1, got "+t);let i;this.isLE=!1,r!=null&&typeof r=="object"&&(typeof r.BITS=="number"&&(i=r.BITS),typeof r.sqrt=="function"&&Object.defineProperty(this,"sqrt",{value:r.sqrt,enumerable:!0}),typeof r.isLE=="boolean"&&(this.isLE=r.isLE),r.allowedLengths&&(this._lengths=Object.freeze(r.allowedLengths.slice())),typeof r.modFromBytes=="boolean"&&(this._mod=r.modFromBytes));let{nBitLength:n,nByteLength:o}=dK(t,i);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");this.ORDER=t,this.BITS=n,this.BYTES=o,Object.freeze(this)}create(t){return vi(t,this.ORDER)}isValid(t){if(typeof t!="bigint")throw new TypeError("invalid field element: expected bigint, got "+typeof t);return Cr<=t&&t<this.ORDER}is0(t){return t===Cr}isValidNot0(t){return!this.is0(t)&&this.isValid(t)}isOdd(t){return(t&mt)===mt}neg(t){return vi(-t,this.ORDER)}eql(t,r){return t===r}sqr(t){return vi(t*t,this.ORDER)}add(t,r){return vi(t+r,this.ORDER)}sub(t,r){return vi(t-r,this.ORDER)}mul(t,r){return vi(t*r,this.ORDER)}pow(t,r){return hP(t,r,this.ORDER)}div(t,r){return vi(t*aP(r,this.ORDER),this.ORDER)}sqrN(t){return t*t}addN(t,r){return t+r}subN(t,r){return t-r}mulN(t,r){return t*r}inv(t){return aP(t,this.ORDER)}sqrt(t){let r=sP.get(this);return r||sP.set(this,r=lK(this.ORDER)),r(this,t)}toBytes(t){return this.isLE?Yy(t,this.BYTES):$p(t,this.BYTES)}fromBytes(t,r=!1){Ce(t);let{_lengths:i,BYTES:n,isLE:o,ORDER:a,_mod:s}=this;if(i){if(t.length<1||!i.includes(t.length)||t.length>n)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+t.length);let c=new Uint8Array(n);c.set(t,o?0:c.length-t.length),t=c}if(t.length!==n)throw new Error("Field.fromBytes: expected "+n+" bytes, got "+t.length);let u=o?fc(t):Nr(t);if(s&&(u=vi(u,a)),!r&&!this.isValid(u))throw new Error("invalid field element: outside of range 0..ORDER");return u}invertBatch(t){return dc(this,t,!0)}cmov(t,r,i){return eo(i,"condition"),i?r:t}}});function Ma(e){let t=e;if(typeof t!="function")throw new TypeError('"Point" expected constructor, got type='+typeof e);js(t.fromAffine,"Point.fromAffine"),js(t.fromBytes,"Point.fromBytes"),js(t.fromHex,"Point.fromHex"),Ba(t.BASE,"Point.BASE"),Ba(t.ZERO,"Point.ZERO"),rn(t.Fp),rn(t.Fn)}function _P(e,t){Ma(e),wP(t,e);let r=dc(e.Fp,t.map(i=>i.Z));return t.map((i,n)=>e.fromAffine(i.toAffine(r[n])))}function mK(e,t,r=1){if(!Number.isSafeInteger(e)||e<r||e>t)throw new Error("invalid window size, expected ["+r+".."+t+"], got W="+e)}function vK(e,t){let r=e*(4*t+128);if(r>yP)throw new Error("invalid window size: table would need ~"+Math.ceil(r/2**20)+" MiB, max "+yP/2**20+" MiB")}function ob(e,t){if(e!==void 0){js(e,"randomBytes");try{let r=e(t);if(!Qn(r)||r.length!==t)return}catch{return}return e}}function wP(e,t){$t(e,"points"),e.forEach((r,i)=>{if(!(r instanceof t))throw new Error("invalid point at index "+i)})}function yK(e,t,r){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((i,n)=>{if(!(r===void 0?t.isValid(i):Na(i)&&i<r))throw new Error("invalid scalar at index "+n)})}function ib(e){return SP.get(e)||1}function bK(e,t){let r=e.double(),i=[e];for(let n=1;n<t;n++)i.push(i[n-1].add(r));return i}function _K(e,t){let r=2**t,i=r/2,n=BigInt(r-1),o=[];for(;e>nb;){let a=0;e&wl&&(a=Number(e&n),a>=i&&(a-=r),e-=BigInt(a)),o.push(a),e>>=wl}return o}function wK(e,t,r){let i=2**t,n=i/2,o=BigInt(i-1),a=BigInt(t),s=[];for(let u=0;u<r;u++){let c=Number(e&o);e>>=a,c>n&&(c-=i,e+=wl),s.push(c)}if(e!==nb)throw new Error("invalid wnaf");return s}function SK(e,t,r){let i=0;for(let o of r)i=Math.max(i,o.length);let n=e;for(let o=i-1;o>=0;o--){o!==i-1&&(n=n.double());for(let a=0;a<r.length;a++){let s=r[a][o];if(s){let u=t[a][Math.abs(s)-1>>1];n=n.add(s<0?u.negate():u)}}}return n}function mc(e,t,r,i=!1){if(Ma(e),wP(t,e),eo(i,"allowOversized"),yK(r,e.Fn,i?e.Fn.ORDER**pK:void 0),t.length!==r.length)throw new Error("arrays of points and scalars must have equal length");let n=t.map(a=>bK(a,4)),o=r.map(a=>_K(a,4));return SK(e.ZERO,n,o)}function bP(e,t,r){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return rn(t),t}else return pc(e,{isLE:r})}function EP(e,t,r={},i){if(e!=="weierstrass"&&e!=="edwards")throw new Error('expected curve type "weierstrass" or "edwards"');if(i===void 0&&(i=e==="edwards"),!t||typeof t!="object")throw new Error(`expected valid ${e} CURVE object`);yt(r);for(let u of["p","n","h"]){let c=t[u];if(!(Na(c)&&c!==nb))throw new Error(`CURVE.${u} must be positive bigint`)}let n=bP(t.p,r.Fp,i),o=bP(t.n,r.Fn,i),s=["Gx","Gy","a",e==="weierstrass"?"b":"d"];for(let u of s)if(!n.isValid(t[u]))throw new Error(`CURVE.${u} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:n,Fn:o}}function eg(e,t){return function(i){let n=e(i);return{secretKey:n,publicKey:t(n)}}}var nb,wl,pK,rb,vP,gK,yP,SP,Qp,tg=Br(()=>{g();Ca();Ks();nb=BigInt(0),wl=BigInt(1),pK=BigInt(4),rb=16,vP=128,gK=5,yP=2**31;SP=new WeakMap;Qp=class{constructor(t,r){ee(this,"Point");ee(this,"BASE");ee(this,"ZERO");ee(this,"randomBytes");ee(this,"wnafPrecomputes",new WeakMap);ee(this,"baseCanBeBlinded");ee(this,"bits");Ma(t),this.randomBytes=ob(r,rb),this.Point=t,this.BASE=t.BASE,this.ZERO=t.ZERO,this.bits=t.Fn.BITS}buildWnafTable(t,r,i){let n=Math.ceil(i/r)+1,o=2**(r-1),a=[],s=t;for(let u=0;u<n;u++){let c=s;for(let l=0;l<o;l++)a.push(c),c=c.add(s);s=a[a.length-1].double()}return{W:r,bits:i,windows:n,comp:a}}wnafCachedCT(t,r){let{W:i,windows:n,comp:o}=t,a=2**(i-1),s=wK(r,i,n),u=this.ZERO,c=this.BASE;for(let l=0;l<n;l++){let d=s[l],p=l*a,y=Math.abs(d)-1,_=o[p];for(let R=1;R<a;R++)_=R===y?o[p+R]:_;let T=_.negate();d===0?c=c.add(o[p]):u=u.add(d<0?T:_)}return{p:u,f:c}}getWnafPrecomputes(t,r,i,n){let o=this.wnafPrecomputes.get(r),a=o?.find(s=>s.W===t&&s.bits===i);return a||(a=this.buildWnafTable(r,t,i),typeof n=="function"&&(a={...a,comp:n(a.comp)}),o||(o=[],this.wnafPrecomputes.set(r,o)),o.push(a)),a}assertPoint(t){if(!(t instanceof this.Point))throw new TypeError('"point" expected Point instance, got type='+typeof t)}validateMulInput(t,r){if(this.assertPoint(t),!Zy(r,wl,this.Point.Fn.ORDER))throw new Error("invalid scalar")}runCT(t,r,i,n){let o=ib(t);return o===1?this.fixedWindowCT(t,r,i):this.wnafCachedCT(this.getWnafPrecomputes(o,t,i,n),r)}mulCT(t,r,i){return this.validateMulInput(t,r),this.runCT(t,r,this.bits,i)}mulCTBlinded(t,r,i){if(this.validateMulInput(t,r),this.randomBytes===void 0)throw new Error("randomBytes is required for scalar blinding");let n=this.Point.Fn.BITS+vP,o=this.randomBytes(rb);if(!Qn(o)||o.length!==rb)throw new Error("randomBytes returned invalid byte array");o[0]=o[0]&63|128;let a=r+Nr(o)*this.Point.Fn.ORDER;return this.runCT(t,a,n,i)}fixedWindowCT(t,r,i){let n=gK,o=1<<n,a=_l(n),s=new Array(o);s[0]=this.ZERO;for(let l=1;l<o;l++)s[l]=s[l-1].add(t);let u=Math.ceil(i/n),c=this.ZERO;for(let l=u-1;l>=0;l--){if(l!==u-1)for(let y=0;y<n;y++)c=c.double();let d=Number(r>>BigInt(l*n)&a),p=s[0];for(let y=1;y<o;y++)p=y===d?s[y]:p;c=c.add(p)}return{p:c,f:c}}shouldBlind(t,r){return this.randomBytes===void 0?!1:r===wl?!0:t!==this.BASE?!1:(this.baseCanBeBlinded===void 0&&(this.baseCanBeBlinded=this.mulUnsafe(this.BASE,this.Point.Fn.ORDER).is0()),this.baseCanBeBlinded)}mulSecret(t,r,i,n){return this.shouldBlind(t,i)?this.mulCTBlinded(t,r,n):this.mulCT(t,r,n)}mulUnsafe(t,r,i){if(this.assertPoint(t),!Na(r))throw new Error("invalid scalar");let n=ib(t);if(n===1||r>=this.Point.Fn.ORDER)return mc(this.Point,[t],[r],!0);let o=this.getWnafPrecomputes(n,t,this.bits,i);return this.wnafCachedCT(o,r).p}setWindowSize(t,r){this.assertPoint(t),mK(r,this.bits);let i=Math.ceil((this.bits+vP)/r)+1;vK(i*2**(r-1),this.Point.Fp.BYTES),SP.set(t,r),this.wnafPrecomputes.delete(t)}hasWindowSize(t){return ib(t)!==1}}});function ab(e,t="n"){if(typeof e!="number")throw new TypeError(`wrong u32 integer "${t}": expected number, got type=${typeof e}`);if(!Number.isSafeInteger(e)||e<0||e>4294967295)throw new RangeError(`wrong u32 integer "${t}": expected 0..4294967295, got ${e}`);return e}function xP(e){return ab(e,"x"),(e&e-1)===0&&e!==0}function EK(e){if(ab(e),e<=1)return 1;if(e>2147483648)throw new Error("nextPowerOfTwo overflow: result does not fit u32");return 1<<rg(e-1)+1>>>0}function rg(e){return ab(e),31-Math.clz32(e)}function OP(e,t,r,i,n){rn(e);let o=e,a=r||((d,p)=>new Array(d).fill(p??o.ZERO)),s=d=>{if(Array.isArray(d))return!0;if(!ArrayBuffer.isView(d))return!1;let p=d;return typeof p.length=="number"&&typeof p.slice=="function"&&typeof p[Symbol.iterator]=="function"},u=(d,p)=>{if(!s(p))throw new TypeError(`"${d}" expected polynomial, got type=${typeof p}`)},c=(d,p)=>{u("a",d);let y=d.length;if(p!==void 0&&(u("b",p),p.length!==y))throw new Error(`poly: mismatched lengths ${y} vs ${p.length}`);if(n!==void 0&&y!==n)throw new Error(`poly: expected fixed length ${n}, got ${y}`);return y};function l(d,p,y=!1,_){if(!xP(p))throw new Error("poly.lagrange: expected power of two length, got "+p);let T=_||(y?t.brp(rg(p)):t.roots(rg(p)));for(let R=0;R<p;R++)if(o.eql(d,T[R]))return R;return-1}return{roots:t,create:a,length:n,extend:(d,p)=>{c(d);let y=a(p,o.ZERO);for(let _=0;_<Math.min(d.length,p);_++)y[_]=d[_];return y},degree:d=>{c(d);for(let p=d.length-1;p>=0;p--)if(!o.is0(d[p]))return p;return-1},add:(d,p)=>{let y=c(d,p),_=a(y);for(let T=0;T<y;T++)_[T]=o.add(d[T],p[T]);return _},sub:(d,p)=>{let y=c(d,p),_=a(y);for(let T=0;T<y;T++)_[T]=o.sub(d[T],p[T]);return _},dot:(d,p)=>{let y=c(d,p),_=a(y);for(let T=0;T<y;T++)_[T]=o.mul(d[T],p[T]);return _},mul:(d,p)=>{if(s(p)){let y=c(d,p);if(i){let _=i.direct(d,!1,!0),T=i.direct(p,!1,!0);for(let R=0;R<_.length;R++)_[R]=o.mul(_[R],T[R]);return i.inverse(_,!0,!1)}else{let _=a(y);for(let T=0;T<y;T++)for(let R=0;R<y;R++){let B=(T+R)%y;_[B]=o.add(_[B],o.mul(d[T],p[R]))}return _}}else{let y=a(c(d));for(let _=0;_<y.length;_++)y[_]=o.mul(d[_],p);return y}},convolve(d,p){u("a",d),u("b",p);let y=EK(d.length+p.length-1);return this.mul(this.extend(d,y),this.extend(p,y))},shift(d,p){u("p",d);let y=a(d.length);if(n!==void 0&&d.length!==n)throw new Error(`poly: expected fixed length ${n}, got ${d.length}`);if(!d.length)return y;y[0]=d[0];for(let _=1,T=o.ONE;_<d.length;_++)T=o.mul(T,p),y[_]=o.mul(d[_],T);return y},clone:d=>{c(d);let p=a(d.length);for(let y=0;y<d.length;y++)p[y]=d[y];return p},eval:(d,p)=>{c(d,p);let y=o.ZERO;for(let _=0;_<d.length;_++)y=o.add(y,o.mul(d[_],p[_]));return y},monomial:{basis:(d,p)=>{let y=a(p),_=o.ONE;for(let T=0;T<p;T++)y[T]=_,_=o.mul(_,d);return y},eval:(d,p)=>{c(d);let y=o.ZERO;for(let _=d.length-1;_>=0;_--)y=o.add(o.mul(y,p),d[_]);return y}},lagrange:{basis:(d,p,y=!1,_)=>{if(!xP(p))throw new Error("poly.lagrange: expected power of two length, got "+p);let T=rg(p),R=_||(y?t.brp(T):t.roots(T)),B=a(p),H=l(d,p,y,_);if(H!==-1)return B[H]=o.ONE,B;let F=o.pow(d,BigInt(p)),I=o.mul(o.sub(F,o.ONE),o.inv(BigInt(p))),k=a(p);for(let j=0;j<p;j++)k[j]=o.sub(d,R[j]);let D=o.invertBatch(k);for(let j=0;j<p;j++)B[j]=o.mul(I,o.mul(R[j],D[j]));return B},eval(d,p,y=!1){c(d);let _=l(p,d.length,y);if(_!==-1)return d[_];let T=this.basis(p,d.length,y),R=o.ZERO;for(let B=0;B<d.length;B++)o.is0(d[B])||(R=o.add(R,o.mul(d[B],T[B])));return R}},vanishing(d){if(u("roots",d),n!==void 0&&d.length!==n)throw new Error(`poly: expected fixed length ${n}, got ${d.length}`);let p=a(d.length+1,o.ZERO);p[0]=o.ONE;for(let y of d){let _=o.neg(y);for(let T=p.length-1;T>0;T--)p[T]=o.add(o.mul(p[T],_),p[T-1]);p[0]=o.mul(p[0],_)}return p}}}var IP=Br(()=>{g();Ks()});function Vs(e,t){if(Xt(e),Xt(t),t<0||t>4)throw new Error("invalid I2OSP length: "+t);if(e<0||e>2**(8*t)-1)throw new Error("invalid I2OSP input: "+e);let r=Array.from({length:t}).fill(0);for(let i=t-1;i>=0;i--)r[i]=e&255,e>>>=8;return new Uint8Array(r)}function OK(e,t){let r=new Uint8Array(e.length);for(let i=0;i<e.length;i++)r[i]=e[i]^t[i];return r}function RP(e){if(!Qn(e)&&typeof e!="string")throw new Error("DST must be Uint8Array or ascii string");let t=typeof e=="string"?lc(e):e;if(t.length===0)throw new Error("DST must be non-empty");return t}function IK(e,t,r,i){if(Ce(e),Xt(r),typeof i!="function")throw new Error("expand_message_xmd: expected hash function");Xt(i.outputLen,"hash.outputLen"),Xt(i.blockLen,"hash.blockLen"),t=RP(t),t.length>255&&(t=i(lt(lc("H2C-OVERSIZE-DST-"),t)));let{outputLen:n,blockLen:o}=i,a=Math.ceil(r/n);if(r>65535||a>255)throw new Error("expand_message_xmd: invalid lenInBytes");let s=lt(t,Vs(t.length,1)),u=new Uint8Array(o),c=Vs(r,2),l=new Array(a),d=i(lt(u,e,c,Vs(0,1),s));l[0]=i(lt(d,Vs(1,1),s));for(let y=1;y<a;y++){let _=[OK(d,l[y-1]),Vs(y+1,1),s];l[y]=i(lt(..._))}return lt(...l).slice(0,r)}function AK(e,t,r,i,n){if(Ce(e),Xt(r),Xt(i,"k"),i<0)throw new Error("expand_message_xof: invalid k");if(typeof n!="function")throw new Error("expand_message_xof: expected XOF function");if(typeof n.create!="function")throw new Error("expand_message_xof: expected XOF create");if(t=RP(t),r<0||r>65535)throw new Error("expand_message_xof: invalid lenInBytes");if(t.length>255){let o=Math.ceil(2*i/8);t=n.create({dkLen:o}).update(lc("H2C-OVERSIZE-DST-")).update(t).digest()}if(t.length>255)throw new Error("expand_message_xof: invalid DST");return n.create({dkLen:r}).update(e).update(Vs(r,2)).update(t).update(Vs(t.length,1)).digest()}function sb(e,t,r){yt(r,{p:"bigint",m:"number",k:"number",hash:"function"});let{p:i,k:n,m:o,hash:a,expand:s,DST:u}=r;if(Xt(a.outputLen,"valid hash"),Ce(e),Xt(t),Xt(o,"m"),Xt(n,"k"),i<=BigInt(1))throw new Error("hash_to_field: expected valid field characteristic");if(t<1)throw new Error("hash_to_field: expected count >= 1");if(o<1)throw new Error("hash_to_field: expected m >= 1");if(n<0)throw new Error("hash_to_field: invalid k");let c=i.toString(2).length,l=Math.ceil((c+n)/8),d=t*o*l,p;if(s==="xmd")p=IK(e,u,d,a);else if(s==="xof")p=AK(e,u,d,n,a);else if(s==="_internal_pass")p=e;else throw new Error('expand must be "xmd" or "xof"');let y=new Array(t);for(let _=0;_<t;_++){let T=new Array(o);for(let R=0;R<o;R++){let B=l*(R+_*o),H=p.subarray(B,B+l);T[R]=vi(xK(H),i)}y[_]=T}return y}function kP(e,t){rn(e),$t(t,"map");let r=t.map((i,n)=>{if($t(i,"map["+n+"]"),i.length<1)throw new Error("isogenyMap: expected non-empty coefficients");return Array.from(i).reverse()});return(i,n)=>{let[o,a,s,u]=r.map(p=>p.reduce((y,_)=>e.add(e.mul(y,i),_))),c=e.is0(a)||e.is0(u),[l,d]=dc(e,[a,u],!0);return i=e.mul(o,l),n=e.mul(n,e.mul(s,d)),c?{x:e.ZERO,y:e.ZERO}:{x:i,y:n}}}function BP(e,t,r){if(typeof t!="function")throw new Error("mapToCurve() must be defined");yt(r);let i=u=>Object.freeze({...u,DST:Qn(u.DST)?Xp(u.DST):u.DST,...u.encodeDST===void 0?{}:{encodeDST:Qn(u.encodeDST)?Xp(u.encodeDST):u.encodeDST}}),n=i(r),o=u=>u&&u.DST!==void 0?{DST:u.DST}:void 0;function a(u){return e.fromAffine(t(u))}function s(u){let c=u.clearCofactor();return c.equals(e.ZERO)?e.ZERO:(c.assertValidity(),c)}return Object.freeze({get defaults(){return i(n)},Point:e,hashToCurve(u,c){let l=Object.assign({},n,o(c)),d=sb(u,2,l),p=a(d[0]),y=a(d[1]);return s(p.add(y))},encodeToCurve(u,c){let l=n.encodeDST===void 0?{}:{DST:n.encodeDST},d=Object.assign({},n,l,o(c)),p=sb(u,1,d),y=a(p[0]);return s(y)},mapToCurve(u){if(n.m===1){if(typeof u!="bigint")throw new Error("expected bigint (m=1)");return s(a([u]))}if(!Array.isArray(u))throw new Error("expected array of bigints");if(u.length!==n.m)throw new Error(`expected array of ${n.m} bigints`);for(let c of u)if(typeof c!="bigint")throw new Error("expected array of bigints");return s(a(u))},hashToScalar(u,c){let l=e.Fn.ORDER,d=Object.assign({},n,{DST:TK},o(c),{p:l,m:1});return sb(u,1,d)[0][0]}})}function PK(e,t){let r=rn(e),i=r.ORDER,n=AP;for(let T=i-to;T%Da===AP;T/=Da)n+=to;let o=n,a=Da<<o-to-to,s=a*Da,u=(i-to)/s,c=(u-to)/Da,l=s-to,d=a,p=r.pow(t,u),y=r.pow(t,(u+to)/Da),_=(T,R)=>{let B=p,H=r.pow(R,l),F=r.sqr(H);F=r.mul(F,R);let I=r.mul(T,F);I=r.pow(I,c),I=r.mul(I,H),H=r.mul(I,R),F=r.mul(I,T);let k=r.mul(F,H);I=r.pow(k,d);let D=r.eql(I,r.ONE);H=r.mul(F,y),I=r.mul(k,B),F=r.cmov(H,F,D),k=r.cmov(I,k,D);for(let j=o;j>to;j--){let K=j-Da;K=Da<<K-to;let G=r.pow(k,K),S=r.eql(G,r.ONE);H=r.mul(F,B),B=r.mul(B,B),G=r.mul(k,B),F=r.cmov(H,F,S),k=r.cmov(G,k,S)}return{isValid:!r.is0(R)&&(D||r.is0(T)),value:F}};if(r.ORDER%PP===TP){let T=(r.ORDER-TP)/PP,R=r.sqrt(r.neg(t));_=(B,H)=>{let F=r.sqr(H),I=r.mul(B,H);F=r.mul(F,I);let k=r.pow(F,T);k=r.mul(k,I);let D=r.mul(k,R),j=r.mul(r.sqr(k),H),K=r.eql(j,B),G=r.cmov(D,k,K);return{isValid:!r.is0(H)&&K,value:G}}}return _}function NP(e,t){let r=rn(e);yt(t,{},{},"opts");let{A:i,B:n,Z:o}=t;if(!r.isValidNot0(i)||!r.isValidNot0(n)||!r.isValid(o))throw new Error("mapToCurveSimpleSWU: invalid opts");if(r.eql(o,r.neg(r.ONE))||tb(r,o))throw new Error("mapToCurveSimpleSWU: invalid opts");let a=r.mul(n,r.inv(r.mul(o,i))),s=r.add(r.add(r.mul(r.sqr(a),a),r.mul(i,a)),n);if(!tb(r,s))throw new Error("mapToCurveSimpleSWU: invalid opts");let u=PK(r,o);if(!r.isOdd)throw new Error("Field does not have .isOdd()");return c=>{let l,d,p,y,_,T,R,B;l=r.sqr(c),l=r.mul(l,o),d=r.sqr(l),d=r.add(d,l),p=r.add(d,r.ONE),p=r.mul(p,n),y=r.cmov(o,r.neg(d),!r.eql(d,r.ZERO)),y=r.mul(y,i),d=r.sqr(p),T=r.sqr(y),_=r.mul(T,i),d=r.add(d,_),d=r.mul(d,p),T=r.mul(T,y),_=r.mul(T,n),d=r.add(d,_),R=r.mul(l,p);let{isValid:H,value:F}=u(d,T);B=r.mul(l,c),B=r.mul(B,F),R=r.cmov(R,p,H),B=r.cmov(B,F,H);let I=r.isOdd(c)===r.isOdd(B);B=r.cmov(r.neg(B),B,I);let k=dc(r,[y],!0)[0];return R=r.mul(R,k),{x:R,y:B}}}var AP,to,Da,TP,PP,xK,TK,CP=Br(()=>{g();Ca();Ks();AP=BigInt(0),to=BigInt(1),Da=BigInt(2),TP=BigInt(3),PP=BigInt(4),xK=Nr;TK="HashToScalar-"});function ub(e){yt(e,{name:"string",hash:"function"},{hashToScalar:"function",validatePoint:"function",parsePublicKey:"function",adjustScalar:"function",adjustPoint:"function",challenge:"function",adjustNonces:"function",adjustSecret:"function",adjustPublic:"function",adjustGroupCommitmentShare:"function",adjustDKG:"function"}),Ma(e.Point);let{Point:t}=e,r=e.Fn===void 0?t.Fn:e.Fn,i=e.hash,n=e.hashToScalar===void 0?(C,V={DST:new Uint8Array})=>{let Y=i(lt(V.DST,C));return r.create(r.isLE?fc(Y):Nr(Y))}:e.hashToScalar,o=Vo(e.H1!==void 0?e.H1:e.name+"rho"),a=Vo(e.H2!==void 0?e.H2:e.name+"chal"),s=Vo(e.H3!==void 0?e.H3:e.name+"nonce"),u=Vo(e.H4!==void 0?e.H4:e.name+"msg"),c=Vo(e.H5!==void 0?e.H5:e.name+"com"),l=Vo(e.HDKG!==void 0?e.HDKG:e.name+"dkg"),d=Vo(e.HID!==void 0?e.HID:e.name+"id"),p=C=>n(C,{DST:o}),y=C=>n(C,{DST:a}),_=C=>n(C,{DST:s}),T=C=>i(lt(u,C)),R=C=>i(lt(c,C)),B=C=>n(C,{DST:l}),H=C=>n(C,{DST:d}),F=(C=mi)=>{if(typeof C!="function")throw new TypeError('"rng" expected function, got type='+typeof C);let V=zs(C(gc(r.ORDER)),r.ORDER,r.isLE);return r.isLE?fc(V):Nr(V)},I=C=>C.toBytes(),k=C=>{let V=t.fromBytes(C);return e.validatePoint&&e.validatePoint(V),V},D=(C,V)=>({identifier:C,hiding:I(t.BASE.multiply(r.fromBytes(V.hiding))),binding:I(t.BASE.multiply(r.fromBytes(V.binding)))}),j=e.adjustPoint===void 0?C=>C:e.adjustPoint,K=C=>{if(!r.isValid(C)||r.is0(C))throw new Error("Invalid identifier "+C);return C},G=C=>Yo(r.toBytes(K(C))),S=(C,V="identifier")=>{yl(C,V);let Y=K(r.fromBytes(cc(C)));if(G(Y)!==C)throw new Error("expected canonical identifier hex");return Y},h={encode:(C,V)=>{let Y=lt(I(C),r.toBytes(V));return e.adjustTx&&(Y=e.adjustTx.encode(Y)),Y},decode:C=>{e.adjustTx&&(C=e.adjustTx.decode(C));let V=C.subarray(0,-r.BYTES),Y=k(V);if(I(Y).length!==V.length)throw new Error("invalid signature encoding");let X=r.fromBytes(C.subarray(-r.BYTES));return{R:Y,z:X}}},v=(C=mi)=>{let V=F(C);e.adjustScalar&&(V=e.adjustScalar(V));let Y=t.BASE.multiply(V);return{scalar:V,point:Y}},w="roots are unavailable in FROST polynomial mode",E={info:{G:r.ZERO,oddFactor:r.ZERO,powerOfTwo:0},roots(){throw new Error(w)},brp(){throw new Error(w)},inverse(){throw new Error(w)},omega(){throw new Error(w)},clear(){}},A=OP(r,E),L=(C,V)=>mc(t,C,V),N=(C,V)=>{if(!V.length)throw new Error("empty coefficients");return A.monomial.eval(V,C)},x=(C,V)=>{let Y="invalid parameters";if(!C.some(le=>r.eql(le,V)))throw new Error(Y);let X=new Set(C);if(X.size!==C.length)throw new Error(Y);if(!X.has(V))throw new Error(Y);let de=r.ONE,ue=r.ONE;for(let le of C)r.eql(le,V)||(de=r.mul(de,le),ue=r.mul(ue,r.sub(le,V)));return r.div(de,ue)},m=(C,V)=>{let Y=A.monomial.basis(C,V.length);return L(V,Y)},O=(C,V,Y,X=mi)=>{if(ro(C),V!==void 0&&Ce(V,r.BYTES,"secret"),Y!==void 0&&$t(Y,"coeffs"),typeof X!="function")throw new TypeError('"rng" expected function, got type='+typeof X);let de=V===void 0?F(X):r.fromBytes(V);if(!Y){Y=[];for(let ve=0;ve<C.min-1;ve++)Y.push(F(X))}if(Y.length!==C.min-1)throw new Error("wrong coefficients length");let ue=[de,...Y],le=ue.map(ve=>t.BASE.multiply(ve));return{coefficients:ue,commitment:le,secret:de}},z={challenge:(C,V,Y)=>B(lt(r.toBytes(C),I(V),I(Y))),compute(C,V,Y,X=mi){if(V.length<1)throw new Error("coefficients should have at least one element");let{point:de,scalar:ue}=v(X),le=Y[0],ve=this.challenge(C,le,de),ge=r.add(ue,r.mul(V[0],ve));return h.encode(de,ge)},validate(C,V,Y){if(V.length<1)throw new Error("commitment should have at least one element");let{R:X,z:de}=h.decode(Y),ue=k(V[0]),le=this.challenge(C,ue,X);if(!X.equals(t.BASE.multiplyUnsafe(de).subtract(ue.multiplyUnsafe(le))))throw new Error("invalid proof of knowledge")}},W={challenge:(C,V,Y)=>e.challenge?e.challenge(C,V,Y):y(lt(I(C),I(V),Y)),sign(C,V,Y=mi){let{point:X,scalar:de}=v(Y),ue=t.BASE.multiply(V),le=this.challenge(X,ue,C),ve=r.add(de,r.mul(le,V));return[X,ve]},verify(C,V,Y,X){e.adjustPoint&&(X=e.adjustPoint(X)),e.adjustPoint&&(V=e.adjustPoint(V));let de=this.challenge(V,X,C),ue=t.BASE.multiplyUnsafe(Y),le=X.multiplyUnsafe(de),ve=ue.subtract(le).subtract(V);return ve.clearCofactor&&(ve=ve.clearCofactor()),t.ZERO.equals(ve)}},te=(C,V,Y)=>{if(!t.BASE.multiply(Y).equals(m(C,V)))throw new Error("invalid secret share")},ie={fromNumber(C){if(!Number.isSafeInteger(C))throw new Error("expected safe interger");return G(BigInt(C))},derive(C){return yl(C,"s"),G(H(Vo(C)))}},se=(C,V=mi)=>_(lt(V(32),r.toBytes(C))),ae=(C,V,Y)=>{let X=V.map(Ee=>[Ee.identifier,S(Ee.identifier),k(Ee.hiding),k(Ee.binding)]);X.sort((Ee,Re)=>Ee[1]<Re[1]?-1:Ee[1]>Re[1]?1:0);let de=[];for(let[Ee,Re,ze,xi]of X)de.push(r.toBytes(Re),I(ze),I(xi));let ue=R(lt(...de)),le=lt(I(C),T(Y),ue),ve={};for(let[Ee,Re]of X)ve[Ee]=p(lt(le,r.toBytes(Re)));let ge=t.ZERO,ye=[],ke=[];for(let[Ee,Re,ze,xi]of X){if(t.ZERO.equals(ze)||t.ZERO.equals(xi))throw new Error("infinity commitment");ge=ge.add(ze),ye.push(xi),ke.push(ve[Ee])}let Le=ge.add(L(ye,ke));return{identifiers:X.map(Ee=>Ee[1]),groupCommitment:Le,bindingFactors:ve}},we=(C,V,Y,X)=>{let de=j(k(C)),ue=S(X),{identifiers:le,groupCommitment:ve,bindingFactors:ge}=ae(de,V,Y),ye=ge[X],ke=x(le,ue),Le=W.challenge(ve,de,Y);return{lambda:ke,challenge:Le,bindingFactor:ye,groupCommitment:ve}};Object.freeze(ie);let me={Identifier:ie,DKG:Object.freeze({round1:(C,V,Y,X=mi)=>{let de=S(C,"id");ro(V);let{coefficients:ue,commitment:le}=O(V,Y,void 0,X),ve=z.compute(de,ue,le,X),ge=le.map(I),ye={identifier:G(de),commitment:ge,proofOfKnowledge:ve},ke={identifier:de,coefficients:ue,commitment:le.map(I),signers:{min:V.min,max:V.max},step:1};return{public:ye,secret:ke}},round2:(C,V)=>{if(yt(C,{identifier:"bigint",commitment:"object",signers:"object"},{coefficients:"object",round2Cache:"object",step:"number"},"secret"),ro(C.signers,"secret.signers"),$t(V,"others"),V.length!==C.signers.max-1)throw new Error("wrong number of round1 packages");if(!C.coefficients||C.step===3)throw new Error("round3 package used in round2");if(C.round2Cache!==void 0)return C.round2Cache;let Y={};for(let X of V){if(X.commitment.length!==C.signers.min)throw new Error("wrong number of commitments");let de=S(X.identifier);if(de===C.identifier)throw new Error("duplicate id="+G(de));z.validate(de,X.commitment,X.proofOfKnowledge);for(let le of X.commitment)k(le);if(Y[X.identifier])throw new Error("Duplicate id="+de);let ue=r.toBytes(N(de,C.coefficients));Y[X.identifier]={identifier:G(C.identifier),signingShare:ue}}return C.round2Cache=Y,C.step=2,Y},round3:(C,V,Y)=>{if(yt(C,{identifier:"bigint",commitment:"object",signers:"object"},{coefficients:"object",round2Cache:"object",step:"number"},"secret"),ro(C.signers,"secret.signers"),$t(V,"round1"),$t(Y,"round2"),V.length!==C.signers.max-1)throw new Error("wrong length of round1 packages");if(!C.coefficients||C.step!==2)throw new Error("round2 package used in round3");if(Y.length!==V.length)throw new Error("wrong length of round2 packages");let X={};for(let Ee of V){if(!Ee.identifier||!Ee.commitment)throw new Error("wrong round1 share");X[Ee.identifier]={...Ee}}for(let Ee of Y){if(!Ee.identifier||!Ee.signingShare)throw new Error("wrong round2 share");if(!X[Ee.identifier])throw new Error("round1 share for "+Ee.identifier+" is missing");X[Ee.identifier].signingShare=Ee.signingShare}if(Object.keys(X).length!==V.length)throw new Error("mismatch identifiers between rounds");let de=r.ZERO;if(C.commitment.length!==C.signers.min)throw new Error("wrong commitments length");let ue=C.commitment.map(k),le=N(C.identifier,C.coefficients);te(C.identifier,ue,le);let ve=ue.map(I),ge={[G(C.identifier)]:ve};for(let Ee in X){let Re=X[Ee];if(!Re.signingShare||!Re.commitment)throw new Error("mismatch identifiers");let ze=S(Ee),xi=r.fromBytes(Re.signingShare),kt=Re.commitment.map(k);te(C.identifier,kt,xi),de=r.add(de,xi);let Et=G(ze);if(ge[Et])throw new Error("duplicated id="+Et);ge[Et]=Re.commitment}de=r.add(de,le);let ye=new Array(C.signers.min).fill(t.ZERO);for(let Ee in ge){let Re=ge[Ee];if(Re.length!==C.signers.min)throw new Error("wrong commitments length");for(let ze=0;ze<Re.length;ze++)ye[ze]=ye[ze].add(k(Re[ze]))}let ke=ye.map(I),Le={};for(let Ee in ge)Le[Ee]=I(m(S(Ee),ye));let be={public:{signers:{min:C.signers.min,max:C.signers.max},commitments:ke,verifyingShares:Object.fromEntries(Object.entries(Le).map(([Ee,Re])=>[Ee,Re.slice()]))},secret:{identifier:G(C.identifier),signingShare:r.toBytes(de)}};e.adjustDKG&&(be=e.adjustDKG(be));for(let Ee=0;Ee<C.coefficients.length;Ee++)C.coefficients[Ee]-=C.coefficients[Ee];return delete C.coefficients,delete C.round2Cache,C.step=3,be},clean(C){if(yt(C,{identifier:"bigint",commitment:"object",signers:"object"},{coefficients:"object",round2Cache:"object",step:"number"},"secret"),C.identifier-=C.identifier,C.coefficients)for(let V=0;V<C.coefficients.length;V++)C.coefficients[V]-=C.coefficients[V];delete C.round2Cache,C.step=3}}),trustedDealer(C,V,Y,X=mi){if(ro(C),V===void 0){V=[];for(let ye=1;ye<=C.max;ye++)V.push(ie.fromNumber(ye))}else if($t(V,"identifiers"),V.length!==C.max)throw new Error("identifiers should be array of "+C.max);let de={};for(let ye of V){let ke=S(ye);if(ye in de)throw new Error("duplicated id="+ye);de[ye]=ke}let ue=O(C,Y,void 0,X),le=ue.commitment.map(I),ve={},ge={};for(let ye of V){let ke=N(de[ye],ue.coefficients);ge[ye]=I(t.BASE.multiply(ke)),ve[ye]={identifier:ye,signingShare:r.toBytes(ke)}}return{public:{signers:{min:C.min,max:C.max},commitments:le,verifyingShares:ge},secretShares:ve}},validateSecret(C,V){yt(C,{identifier:"string",signingShare:"object"},{},"secret"),Ce(C.signingShare,r.BYTES,"secret.signingShare"),yt(V,{signers:"object",commitments:"object",verifyingShares:"object"},{},"pub"),ro(V.signers,"pub.signers"),$t(V.commitments,"pub.commitments");let Y=S(C.identifier),X=V.commitments.map(k),de=r.fromBytes(C.signingShare);te(Y,X,de)},commit(C,V=mi){if(yt(C,{identifier:"string",signingShare:"object"},{},"secret"),Ce(C.signingShare,r.BYTES,"secret.signingShare"),typeof V!="function")throw new TypeError('"rng" expected function, got type='+typeof V);let Y=r.fromBytes(C.signingShare),X=se(Y,V),de=se(Y,V),ue={hiding:r.toBytes(X),binding:r.toBytes(de)};return{nonces:ue,commitments:D(C.identifier,ue)}},signShare(C,V,Y,X,de){yt(C,{identifier:"string",signingShare:"object"},{},"secret"),Ce(C.signingShare,r.BYTES,"secret.signingShare"),yt(V,{signers:"object",commitments:"object",verifyingShares:"object"},{},"pub"),ro(V.signers,"pub.signers"),$t(V.commitments,"pub.commitments"),yt(Y,{hiding:"object",binding:"object"},{},"nonces"),Ce(Y.hiding,r.BYTES,"nonces.hiding"),Ce(Y.binding,r.BYTES,"nonces.binding"),$t(X,"commitmentList"),Ce(de,void 0,"msg"),LP(V.signers,X.length);let ue=r.fromBytes(Y.hiding),le=r.fromBytes(Y.binding);if(r.is0(ue)||r.is0(le))throw new Error("signing nonces already used");let ve={identifier:C.identifier,hiding:I(t.BASE.multiply(ue)),binding:I(t.BASE.multiply(le))},ge=X.find(Ft=>Ft.identifier===C.identifier);if(!ge)throw new Error("missing signer commitment");if(Yo(ge.hiding)!==Yo(ve.hiding)||Yo(ge.binding)!==Yo(ve.binding))throw new Error("incorrect signer commitment");e.adjustSecret&&(C=e.adjustSecret(C,V)),e.adjustPublic&&(V=e.adjustPublic(V));let ye=r.fromBytes(C.signingShare),{lambda:ke,challenge:Le,bindingFactor:be,groupCommitment:Ee}=we(V.commitments[0],X,de,C.identifier),Re=e.adjustNonces?e.adjustNonces(Ee,Y):Y,ze=e.adjustNonces?r.fromBytes(Re.hiding):ue,xi=e.adjustNonces?r.fromBytes(Re.binding):le,kt=r.mul(r.mul(ke,ye),Le),Et=r.mul(xi,be),ad=r.toBytes(r.add(r.add(ze,Et),kt));return Y.hiding.fill(0),Y.binding.fill(0),ad},verifyShare(C,V,Y,X,de){yt(C,{signers:"object",commitments:"object",verifyingShares:"object"},{},"pub"),ro(C.signers,"pub.signers"),$t(C.commitments,"pub.commitments"),$t(V,"commitmentList"),Ce(Y,void 0,"msg"),S(X),Ce(de,r.BYTES,"sigShare"),e.adjustPublic&&(C=e.adjustPublic(C));let ue=V.find(xi=>xi.identifier===X);if(!ue)throw new Error("cannot find identifier commitment");let le=k(C.verifyingShares[X]),ve=k(ue.hiding),ge=k(ue.binding),{lambda:ye,challenge:ke,bindingFactor:Le,groupCommitment:be}=we(C.commitments[0],V,Y,X),Ee=ve.add(ge.multiplyUnsafe(Le));e.adjustGroupCommitmentShare&&(Ee=e.adjustGroupCommitmentShare(be,Ee));let Re=t.BASE.multiplyUnsafe(r.fromBytes(de)),ze=Ee.add(le.multiplyUnsafe(r.mul(ke,ye)));return Re.equals(ze)},aggregate(C,V,Y,X){yt(C,{signers:"object",commitments:"object",verifyingShares:"object"},{},"pub"),ro(C.signers,"pub.signers"),$t(C.commitments,"pub.commitments"),$t(V,"commitmentList"),Ce(Y,void 0,"msg"),yt(X,{},{},"sigShares");let de=C;e.adjustPublic&&(C=e.adjustPublic(C));try{LP(C.signers,V.length)}catch{throw new Gs("aggregation failed",[])}let ue=V.map(ke=>ke.identifier),le=new Set;for(let ke of ue){if(le.has(ke))throw new Gs("aggregation failed",[]);le.add(ke)}if(ue.length!==Object.keys(X).length)throw new Gs("aggregation failed",[]);for(let ke of ue)if(!(ke in X)||!(ke in C.verifyingShares))throw new Gs("aggregation failed",[]);let ve=k(C.commitments[0]),{groupCommitment:ge}=ae(ve,V,Y),ye=r.ZERO;for(let ke of ue)ye=r.add(ye,r.fromBytes(X[ke]));if(!W.verify(Y,ge,ye,ve)){let ke=[];for(let Le of ue)this.verifyShare(de,V,Y,Le,X[Le])||ke.push(Le);throw new Gs("aggregation failed",ke)}return h.encode(ge,ye)},sign(C,V){let Y=r.fromBytes(V);e.adjustScalar&&(Y=e.adjustScalar(Y));let[X,de]=W.sign(C,Y);return h.encode(X,de)},verify(C,V,Y){let X=e.parsePublicKey?e.parsePublicKey(Y):k(Y),{R:de,z:ue}=h.decode(C);return W.verify(V,de,ue,X)},combineSecret(C,V){if($t(C,"shares"),ro(V),C.length<V.min||C.length>V.max)throw new Error("wrong secret shares array");let Y=[],X={};for(let le of C){let ve=S(le.identifier),ge=G(ve);if(X[ge])throw new Error("duplicated id="+ge);X[ge]=!0,Y.push([ve,r.fromBytes(le.signingShare)])}let de=Y.map(([le])=>le),ue=r.ZERO;for(let[le,ve]of Y)ue=r.add(ue,r.mul(ve,x(de,le)));return r.toBytes(ue)},utils:Object.freeze({Fn:r,randomScalar:(C=mi)=>r.toBytes(v(C).scalar),generateSecretPolynomial:(C,V,Y,X)=>{let de=O(C,V,Y,X);return{...de,commitment:de.commitment.map(I)}}})};return Object.freeze(me)}var ro,LP,Gs,MP=Br(()=>{g();Go();Ca();tg();IP();Ks();ro=(e,t="signers")=>{if(yt(e,{min:"number",max:"number"},{},t),Xt(e.min,t+".min"),Xt(e.max,t+".max"),e.min<2||e.max<2||e.min>e.max)throw new Error("Wrong signers info: min="+e.min+" max="+e.max)},LP=(e,t)=>{if(t<e.min||t>e.max)throw new Error("Wrong number of commitments="+t)},Gs=class extends Error{constructor(r,i){super(r);ee(this,"cheaters");this.cheaters=i}}});var fb={};Pf(fb,{_HMAC:()=>Sl,hmac:()=>cb});var Sl,cb,ig=Br(()=>{g();Go();Sl=class{constructor(t,r){ee(this,"oHash");ee(this,"iHash");ee(this,"blockLen");ee(this,"outputLen");ee(this,"canXOF",!1);ee(this,"finished",!1);ee(this,"destroyed",!1);if(Lp(t),Jn(r,void 0,"key"),this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("expected Hash instance");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,n=new Uint8Array(i);n.set(r.length>i?t.create().update(r).digest():r);for(let o=0;o<n.length;o++)n[o]^=54;this.iHash.update(n),this.oHash=t.create();for(let o=0;o<n.length;o++)n[o]^=106;this.oHash.update(n),Ii(n)}update(t){return ac(this),this.iHash.update(t),this}digestInto(t){ac(this),Mp(t,this),this.finished=!0;let r=t.subarray(0,this.outputLen);this.iHash.digestInto(r),this.oHash.update(r),this.oHash.digestInto(r),this.destroy()}digest(){let t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));let{oHash:r,iHash:i,finished:n,destroyed:o,blockLen:a,outputLen:s,canXOF:u}=this;return t=t,t.finished=n,t.destroyed=o,t.blockLen=a,t.outputLen=s,t.canXOF=u,t.oHash=r._cloneInto(t.oHash),t.iHash=i._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},cb=(()=>{let e=((t,r,i)=>new Sl(t,r).update(i).digest());return e.create=(t,r)=>new Sl(t,r),e})()});var RK,lb,Zo,hb,DP=Br(()=>{g();Ca();RK=BigInt(0),lb=class extends Error{constructor(t=""){super(t)}},Zo={Err:lb,_tlv:{encode:(e,t)=>{let{Err:r}=Zo;if(Xt(e,"tag"),e<0||e>255)throw new r("tlv.encode: wrong tag");if(yl(t,"data"),t.length&1)throw new r("tlv.encode: unpadded data");let i=t.length/2,n=bl(i);if(n.length/2&128)throw new r("tlv.encode: long form length too big");let o=i>127?bl(n.length/2|128):"";return bl(e)+o+n+t},decode(e,t){let{Err:r}=Zo;t=Ce(t,void 0,"DER data");let i=0;if(e<0||e>255)throw new r("tlv.decode: wrong tag");if(t.length<2||t[i++]!==e)throw new r("tlv.decode: wrong tlv");let n=t[i++],o=!!(n&128),a=0;if(!o)a=n;else{let u=n&127;if(!u)throw new r("tlv.decode(long): indefinite length not supported");if(u>4)throw new r("tlv.decode(long): byte length is too big");let c=t.subarray(i,i+u);if(c.length!==u)throw new r("tlv.decode: length bytes not complete");if(c[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(let l of c)a=a<<8|l;if(i+=u,a<128)throw new r("tlv.decode(long): not minimal encoding")}let s=t.subarray(i,i+a);if(s.length!==a)throw new r("tlv.decode: wrong value length");return{v:s,l:t.subarray(i+a)}}},_int:{encode(e){let{Err:t}=Zo;if(Zp(e),e<RK)throw new t("integer: negative integers are not allowed");let r=bl(e);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){let{Err:t}=Zo;if(e.length<1)throw new t("invalid signature integer: empty");if(e[0]&128)throw new t("invalid signature integer: negative");if(e.length>1&&e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return Nr(e)}},toSig(e){let{Err:t,_int:r,_tlv:i}=Zo,n=Ce(e,void 0,"signature"),{v:o,l:a}=i.decode(48,n);if(a.length)throw new t("invalid signature: left bytes after parsing");let{v:s,l:u}=i.decode(2,o),{v:c,l}=i.decode(2,u);if(l.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(s),s:r.decode(c)}},hexFromSig(e){let{_tlv:t,_int:r}=Zo;yt(e,{r:"bigint",s:"bigint"},{},"sig");let i=t.encode(2,r.encode(e.r)),n=t.encode(2,r.encode(e.s)),o=i+n;return t.encode(48,o)}},hb=(Object.freeze(Zo._tlv),Object.freeze(Zo._int),Object.freeze(Zo))});function kK(e,t,r){$y("scalar",e,$o,r);let[[i,n],[o,a]]=t,s=qP(a*e,r),u=qP(-n*e,r),c=e-s*i-u*o,l=-s*n-u*a,d=c<$o,p=l<$o;d&&(c=-c),p&&(l=-l);let y=_l(Math.ceil(hc(r)/2))+Ws;if(c<$o||c>=y||l<$o||l>=y)throw new Error("splitScalar (endomorphism): failed for k");return{k1neg:d,k1:c,k2neg:p,k2:l}}function gb(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function db(e,t){yt(e);let r={};for(let i of Object.keys(t))r[i]=e[i]===void 0?t[i]:e[i];return eo(r.lowS,"lowS"),eo(r.prehash,"prehash"),r.format!==void 0&&gb(r.format),r}function UP(e,t={}){let r=EP("weierstrass",e,t),i=r.Fp,n=r.Fn,o=r.CURVE,{h:a,n:s}=o;yt(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",randomBytes:"function"});let{endo:u,allowInfinityPoint:c}=t,l=t.randomBytes===void 0?mi:t.randomBytes;if(u&&(!i.is0(o.a)||typeof u.beta!="bigint"||!Array.isArray(u.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');let d=jP(i,n);function p(){if(!i.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function y(L,N,x){if(c&&N.is0())return Uint8Array.of(0);let{x:m,y:O}=N.toAffine(),z=i.toBytes(m);if(eo(x,"isCompressed"),x){p();let W=!i.isOdd(O);return lt(FP(W),z)}else return lt(Uint8Array.of(4),z,i.toBytes(O))}function _(L){Ce(L,void 0,"Point");let{publicKey:N,publicKeyUncompressed:x}=d,m=L.length,O=L[0],z=L.subarray(1);if(c&&m===1&&O===0)return{x:i.ZERO,y:i.ZERO};if(m===N&&(O===2||O===3)){let W=i.fromBytes(z);if(!i.isValid(W))throw new Error("bad point: is not on curve, wrong x");let te=F(W),ie;try{ie=i.sqrt(te)}catch(we){let me=we instanceof Error?": "+we.message:"";throw new Error("bad point: is not on curve, sqrt error"+me)}p();let se=i.isOdd(ie);return(O&1)===1!==se&&(ie=i.neg(ie)),{x:W,y:ie}}else if(m===x&&O===4){let W=i.BYTES,te=i.fromBytes(z.subarray(0,W)),ie=i.fromBytes(z.subarray(W,W*2));if(!I(te,ie))throw new Error("bad point: is not on curve");return{x:te,y:ie}}else throw new Error(`bad point: got length ${m}, expected compressed=${N} or uncompressed=${x}`)}let T=t.toBytes===void 0?y:t.toBytes,R=t.fromBytes===void 0?_:t.fromBytes,B=i.mul(o.b,pb),H=i.is0(o.a)?L=>i.ZERO:L=>i.mul(o.a,L);function F(L){let N=i.sqr(L),x=i.mul(N,L);return i.add(i.add(x,i.mul(L,o.a)),o.b)}function I(L,N){let x=i.sqr(N),m=F(L);return i.eql(x,m)}if(!I(o.Gx,o.Gy))throw new Error("bad curve params: generator point");let k=i.mul(i.pow(o.a,pb),BK),D=i.mul(i.sqr(o.b),BigInt(27));if(i.is0(i.add(k,D)))throw new Error("bad curve params: a or b");function j(L,N,x=!1){if(!i.isValid(N)||x&&i.is0(N))throw new Error(`bad point coordinate ${L}`);return N}function K(L){if(!(L instanceof v))throw new Error("Weierstrass Point expected")}function G(L){if(!u||!u.basises)throw new Error("no endo");return kK(L,u.basises,n.ORDER)}function S(L,N,x,m){if(!n.isValid(m))throw new RangeError("invalid scalar: out of range");if(u){let{k1neg:O,k1:z,k2neg:W,k2:te}=G(m),ie=new v(i.mul(x.X,u.beta),x.Y,x.Z);L.push(O?x.negate():x,W?ie.negate():ie),N.push(z,te)}else L.push(x),N.push(m)}let h=new WeakSet,A=class A{constructor(N,x,m){ee(this,"X");ee(this,"Y");ee(this,"Z");this.X=j("x",N),this.Y=j("y",x,!0),this.Z=j("z",m),Object.freeze(this)}static CURVE(){return o}static fromAffine(N){let{x,y:m}=N||{};if(!N||!i.isValid(x)||!i.isValid(m))throw new Error("invalid affine point");if(N instanceof A)throw new Error("projective point not allowed");return i.is0(x)&&i.is0(m)?A.ZERO:new A(x,m,i.ONE)}static fromBytes(N){let x=A.fromAffine(R(Ce(N,void 0,"point")));return x.assertValidity(),x}static fromHex(N){return A.fromBytes(cc(N))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(N=6,x=!0){return E.setWindowSize(this,N),x||this.multiply(pb),this}assertValidity(){let N=this;if(N.is0()){if(t.allowInfinityPoint&&i.is0(N.X)&&i.eql(N.Y,i.ONE)&&i.is0(N.Z))return;throw new Error("bad point: ZERO")}if(h.has(N))return;let{x,y:m}=N.toAffine();if(!i.isValid(x)||!i.isValid(m))throw new Error("bad point: x or y not field elements");if(!I(x,m))throw new Error("bad point: equation left != right");if(!N.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");h.add(N)}hasEvenY(){let{y:N}=this.toAffine();if(!i.isOdd)throw new Error("Field doesn't support isOdd");return!i.isOdd(N)}equals(N){K(N);let{X:x,Y:m,Z:O}=this,{X:z,Y:W,Z:te}=N,ie=i.eql(i.mul(x,te),i.mul(z,O)),se=i.eql(i.mul(m,te),i.mul(W,O));return ie&&se}negate(){return new A(this.X,i.neg(this.Y),this.Z)}double(){let{X:N,Y:x,Z:m}=this,O=i.ZERO,z=i.ZERO,W=i.ZERO,te=i.mul(N,N),ie=i.mul(x,x),se=i.mul(m,m),ae=i.mul(N,x);return ae=i.add(ae,ae),W=i.mul(N,m),W=i.add(W,W),O=H(W),z=i.mul(B,se),z=i.add(O,z),O=i.sub(ie,z),z=i.add(ie,z),z=i.mul(O,z),O=i.mul(ae,O),W=i.mul(B,W),se=H(se),ae=i.sub(te,se),ae=H(ae),ae=i.add(ae,W),W=i.add(te,te),te=i.add(W,te),te=i.add(te,se),te=i.mul(te,ae),z=i.add(z,te),se=i.mul(x,m),se=i.add(se,se),te=i.mul(se,ae),O=i.sub(O,te),W=i.mul(se,ie),W=i.add(W,W),W=i.add(W,W),new A(O,z,W)}add(N){K(N);let{X:x,Y:m,Z:O}=this,{X:z,Y:W,Z:te}=N,ie=i.ZERO,se=i.ZERO,ae=i.ZERO,we=i.mul(x,z),me=i.mul(m,W),C=i.mul(O,te),V=i.add(x,m),Y=i.add(z,W);V=i.mul(V,Y),Y=i.add(we,me),V=i.sub(V,Y),Y=i.add(x,O);let X=i.add(z,te);return Y=i.mul(Y,X),X=i.add(we,C),Y=i.sub(Y,X),X=i.add(m,O),ie=i.add(W,te),X=i.mul(X,ie),ie=i.add(me,C),X=i.sub(X,ie),ae=H(Y),ie=i.mul(B,C),ae=i.add(ie,ae),ie=i.sub(me,ae),ae=i.add(me,ae),se=i.mul(ie,ae),me=i.add(we,we),me=i.add(me,we),C=H(C),Y=i.mul(B,Y),me=i.add(me,C),C=i.sub(we,C),C=H(C),Y=i.add(Y,C),we=i.mul(me,Y),se=i.add(se,we),we=i.mul(X,Y),ie=i.mul(V,ie),ie=i.sub(ie,we),we=i.mul(V,me),ae=i.mul(X,ae),ae=i.add(ae,we),new A(ie,se,ae)}subtract(N){return K(N),this.add(N.negate())}is0(){return this.equals(A.ZERO)}multiply(N){if(!n.isValidNot0(N))throw new RangeError("invalid scalar: out of range");let{p:x,f:m}=E.mulSecret(this,N,a,w);return w([x,m])[0]}multiplyUnsafe(N){let x=this,m=N;if(!n.isValid(m))throw new RangeError("invalid scalar: out of range");if(m===$o||x.is0())return A.ZERO;if(m===Ws)return x;if(E.hasWindowSize(this))return E.mulUnsafe(x,m,w);let O=[],z=[];return S(O,z,x,m),mc(A,O,z)}mulAddUnsafe(N,x,m){K(x);let O=[],z=[];return S(O,z,this,N),S(O,z,x,m),mc(A,O,z)}toAffine(N){let x=this,m=N;if(m!=null&&!i.isValid(m))throw new RangeError('"invertedZ" expected valid field element');let{X:O,Y:z,Z:W}=x;if(i.eql(W,i.ONE))return{x:O,y:z};let te=x.is0();m==null&&(m=te?i.ONE:i.inv(W));let ie=i.mul(O,m),se=i.mul(z,m),ae=i.mul(W,m);if(te)return{x:i.ZERO,y:i.ZERO};if(!i.eql(ae,i.ONE))throw new Error("invZ was invalid");return{x:ie,y:se}}isTorsionFree(){let{isTorsionFree:N}=t;return a===Ws?!0:N?N(A,this):E.mulUnsafe(this,s).is0()}clearCofactor(){let{clearCofactor:N}=t;return a===Ws?this:N?N(A,this):this.multiplyUnsafe(a)}isSmallOrder(){return a===Ws?this.is0():this.clearCofactor().is0()}toBytes(N=!0){return eo(N,"isCompressed"),this.assertValidity(),T(A,this,N)}toHex(N=!0){return Yo(this.toBytes(N))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}};ee(A,"BASE",new A(o.Gx,o.Gy,i.ONE)),ee(A,"ZERO",new A(i.ZERO,i.ONE,i.ZERO)),ee(A,"Fp",i),ee(A,"Fn",n);let v=A,w=L=>_P(v,L),E=new Qp(v,l);return E.bits>=6&&v.BASE.precompute(6),Object.freeze(v.prototype),Object.freeze(v),v}function FP(e){return Uint8Array.of(e?2:3)}function jP(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function NK(e,t={}){Ma(e);let{Fn:r}=e,i=t.randomBytes===void 0?mi:t.randomBytes,n=Object.assign(jP(e.Fp,r),{seed:Math.max(gc(r.ORDER),16)});function o(y){try{let _=r.fromBytes(y);return r.isValidNot0(_)}catch{return!1}}function a(y,_){let{publicKey:T,publicKeyUncompressed:R}=n;try{let B=y.length;return _===!0&&B!==T||_===!1&&B!==R?!1:!!e.fromBytes(y)}catch{return!1}}function s(y){return y=y===void 0?i(n.seed):y,zs(Ce(y,n.seed,"seed"),r.ORDER)}function u(y,_=!0){return e.BASE.multiply(r.fromBytes(y)).toBytes(_)}function c(y){let{secretKey:_,publicKey:T,publicKeyUncompressed:R}=n,B=r._lengths;if(!Qn(y))return;let H=Ce(y,void 0,"key").length,F=H===T||H===R,I=H===_||!!B?.includes(H);if(!(F&&I))return F}function l(y,_,T=!0){if(c(y)===!0)throw new Error("first arg must be private key");if(c(_)===!1)throw new Error("second arg must be public key");let R=r.fromBytes(y);return e.fromBytes(_).multiply(R).toBytes(T)}let d={isValidSecretKey:o,isValidPublicKey:a,randomSecretKey:s},p=eg(s,u);return Object.freeze(d),Object.freeze(n),Object.freeze({getPublicKey:u,getSharedSecret:l,keygen:p,Point:e,utils:d,lengths:n})}function zP(e,t,r={}){Ma(e);let i=t;Lp(i),yt(r,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});let n=Object.assign({},r),o=n.randomBytes===void 0?mi:n.randomBytes,a=n.hmac===void 0?(O,z)=>cb(i,O,z):n.hmac,{Fp:s,Fn:u}=e,{ORDER:c,BITS:l}=u,d=gc(c),p=ob(o,d),{keygen:y,getPublicKey:_,getSharedSecret:T,utils:R,lengths:B}=NK(e,n),H={prehash:!0,lowS:typeof n.lowS=="boolean"?n.lowS:!0,format:"compact",extraEntropy:!1},F=c*HP+Ws<s.ORDER;function I(O){let z=c>>Ws;return O>z}function k(O,z){if(!u.isValidNot0(z))throw new Error(`invalid signature ${O}: out of range 1..Point.Fn.ORDER`);return z}function D(){if(!s.isOdd)throw new Error("Field doesn't support isOdd")}function j(O,z,W){return D(),(O===W?0:2)|Number(s.isOdd(z))}function K(){if(F)throw new Error('"recovered" sig type is not supported for cofactor >2 curves')}function G(O,z){gb(z);let W=B.signature,te=z==="compact"?W:z==="recovered"?W+1:void 0;return Ce(O,te)}class S{constructor(z,W,te){ee(this,"r");ee(this,"s");ee(this,"recovery");if(this.r=k("r",z),this.s=k("s",W),te!=null){if(K(),![0,1,2,3].includes(te))throw new Error("invalid recovery id");this.recovery=te}Object.freeze(this)}static fromBytes(z,W=H.format){G(z,W);let te;if(W==="der"){let{r:we,s:me}=hb.toSig(Ce(z));return new S(we,me)}W==="recovered"&&(te=z[0],W="compact",z=z.subarray(1));let ie=B.signature/2,se=z.subarray(0,ie),ae=z.subarray(ie,ie*2);return new S(u.fromBytes(se),u.fromBytes(ae),te)}static fromHex(z,W){return this.fromBytes(cc(z),W)}assertRecovery(){let{recovery:z}=this;if(z==null)throw new Error("invalid recovery id: must be present");return z}addRecoveryBit(z){return new S(this.r,this.s,z)}recoverPublicKey(z){let{r:W,s:te}=this,ie=this.assertRecovery(),se=ie===2||ie===3?W+c:W;if(!s.isValid(se))throw new Error("invalid recovery id: sig.r+curve.n != R.x");let ae=s.toBytes(se),we=e.fromBytes(lt(FP((ie&1)===0),ae)),me=u.inv(se),C=v(Ce(z,void 0,"msgHash")),V=u.create(-C*me),Y=u.create(te*me),X=e.BASE.mulAddUnsafe(V,we,Y);if(X.is0())throw new Error("invalid recovery: point at infinify");return X.assertValidity(),X}hasHighS(){return I(this.s)}toBytes(z=H.format){if(gb(z),z==="der")return cc(hb.hexFromSig(this));let{r:W,s:te}=this,ie=u.toBytes(W),se=u.toBytes(te);return z==="recovered"?(K(),lt(Uint8Array.of(this.assertRecovery()),ie,se)):lt(ie,se)}toHex(z){return Yo(this.toBytes(z))}}Object.freeze(S.prototype),Object.freeze(S);let h=n.bits2int===void 0?function(z){if(z.length>8192)throw new Error("input is too large");let W=Nr(z),te=z.length*8-l;return te>0?W>>BigInt(te):W}:n.bits2int,v=n.bits2int_modN===void 0?function(z){return u.create(h(z))}:n.bits2int_modN,w=_l(l);function E(O){return $y("num < 2^"+l,O,$o,w),u.toBytes(O)}function A(O,z){return Ce(O,void 0,"message"),z?Ce(i(O),void 0,"prehashed message"):O}function L(O,z,W){let{lowS:te,prehash:ie,extraEntropy:se}=db(W,H);O=A(O,ie);let ae=v(O),we=u.fromBytes(z);if(!u.isValidNot0(we))throw new Error("invalid private key");let me=[E(we),E(ae)];if(se!=null&&se!==!1){let X=se===!0?o(B.secretKey):se;me.push(Ce(X,void 0,"extraEntropy"))}let C=lt(...me),V=ae;function Y(X){let de=h(X);if(!u.isValidNot0(de))return;let ue=e.BASE.multiply(de).toAffine(),le=u.create(ue.x);if(le===$o)return;let ve;if(p!==void 0){let ke=Nr(zs(p(d),c)),Le=u.inv(u.mul(ke,de)),be=u.mul(ke,V),Ee=u.mul(ke,we);ve=u.create(Le*u.create(be+Ee*le))}else{let ke=dP(de,c);ve=u.create(ke*u.create(V+le*we))}if(ve===$o)return;let ge=j(ue.x,ue.y,le),ye=ve;return te&&I(ve)&&(ye=u.neg(ve),ge^=1),new S(le,ye,F?void 0:ge)}return{seed:C,k2sig:Y}}function N(O,z,W={}){let{seed:te,k2sig:ie}=L(O,z,W);return oP(i.outputLen,u.BYTES,a)(te,ie).toBytes(W.format)}function x(O,z,W,te={}){let{lowS:ie,prehash:se,format:ae}=db(te,H);if(W=Ce(W,void 0,"publicKey"),z=A(z,se),!Qn(O)){let we=O instanceof S?", use sig.toBytes()":"";throw new Error("verify expects Uint8Array signature"+we)}G(O,ae);try{let we=S.fromBytes(O,ae),me=e.fromBytes(W);if(ie&&we.hasHighS())return!1;let{r:C,s:V}=we,Y=v(z),X=u.inv(V),de=u.create(Y*X),ue=u.create(C*X),le=e.BASE.mulAddUnsafe(de,me,ue);if(le.is0())return!1;let ve=le.toAffine();return!(u.create(ve.x)!==C||ae==="recovered"&&we.recovery!==j(ve.x,ve.y,C))}catch{return!1}}function m(O,z,W={}){let{prehash:te}=db(W,H);return z=A(z,te),S.fromBytes(O,"recovered").recoverPublicKey(z).toBytes()}return Object.freeze({keygen:y,getPublicKey:_,getSharedSecret:T,utils:R,lengths:B,Point:e,sign:N,verify:x,recoverPublicKey:m,Signature:S,hash:i})}var qP,$o,Ws,HP,pb,BK,KP=Br(()=>{g();ig();Go();Ca();tg();DP();Ks();qP=(e,t)=>(e+(e>=0?t:-t)/HP)/t;$o=BigInt(0),Ws=BigInt(1),HP=BigInt(2),pb=BigInt(3),BK=BigInt(4)});var Ol={};Pf(Ol,{__TEST:()=>qK,schnorr:()=>HK,schnorr_FROST:()=>KK,secp256k1:()=>MK,secp256k1_FROST:()=>jK,secp256k1_hasher:()=>yb});function LK(e){let t=ng.p,r=BigInt(3),i=BigInt(6),n=BigInt(11),o=BigInt(22),a=BigInt(23),s=BigInt(44),u=BigInt(88),c=e*e*e%t,l=c*c*e%t,d=Fi(l,r,t)*l%t,p=Fi(d,r,t)*l%t,y=Fi(p,VP,t)*c%t,_=Fi(y,n,t)*y%t,T=Fi(_,o,t)*_%t,R=Fi(T,s,t)*T%t,B=Fi(R,u,t)*R%t,H=Fi(B,s,t)*T%t,F=Fi(H,r,t)*l%t,I=Fi(F,a,t)*_%t,k=Fi(I,i,t)*c%t,D=Fi(k,VP,t);if(!xn.eql(xn.sqr(D),e))throw new Error("Cannot find square root");return D}function El(e,...t){let r=GP[e];if(r===void 0){let i=ka(lc(e));r=lt(i,i),GP[e]=r}return ka(lt(r,...t))}function $P(e){let{Fn:t,BASE:r}=bt,i=t.fromBytes(Ce(e,32,"secretKey")),o=r.multiply(i).toAffine();return{scalar:io(o.y)?i:t.neg(i),bytes:ZP(o)}}function og(e){let t=xn;if(!t.isValidNot0(e))throw new Error("invalid x: Fail if x \u2265 p");let r=t.sqr(e),i=t.add(t.mulN(r,e),BigInt(7)),n=t.sqrt(i);io(n)||(n=t.neg(n));let o=bt.fromAffine({x:e,y:n});return o.assertValidity(),o}function vb(...e){return bt.Fn.create(vc(El("BIP0340/challenge",...e)))}function WP(e){return $P(e).bytes}function DK(e,t,r=ml(32)){let{Fn:i,BASE:n}=bt,o=Ce(e,void 0,"message"),{bytes:a,scalar:s}=$P(t),u=Ce(r,32,"auxRand"),c=i.toBytes(s^vc(El("BIP0340/aux",u))),l=El("BIP0340/nonce",c,a,o),d=i.create(vc(l));if(d===mb)throw new Error("sign failed: k is zero");let y=n.multiply(d).toAffine(),_=io(y.y)?d:i.neg(d),T=ZP(y),R=vb(T,a,o),B=new Uint8Array(64);if(B.set(T,0),B.set(i.toBytes(i.create(_+R*s)),32),!XP(B,o,a))throw new Error("sign: Invalid signature produced");return B}function XP(e,t,r){let{Fp:i,Fn:n,BASE:o}=bt,a=Ce(e,64,"signature"),s=Ce(t,void 0,"message"),u=Ce(r,32,"publicKey");try{let c=og(vc(u)),l=a.subarray(0,32),d=vc(l);if(!i.isValidNot0(d))return!1;let p=vc(a.subarray(32,64));if(!n.isValidNot0(p))return!1;let y=vb(l,xl(c),s),_=o.mulAddUnsafe(p,c,n.neg(y)),{x:T,y:R}=_.toAffine();return!(_.is0()||!io(R)||!i.eql(T,d))}catch{return!1}}function JP(e,t){if(t===void 0)return mb;let r=xl(e),i=Nr(El("TapTweak",r,t));if(!bt.Fn.isValid(i))throw new Error("invalid TapTweak hash");return i}function bb(e){let t=bt.fromBytes(e.commitments[0]);return io(t.y)?e:{signers:{min:e.signers.min,max:e.signers.max},commitments:e.commitments.map(r=>bt.fromBytes(r).negate().toBytes()),verifyingShares:Object.fromEntries(Object.entries(e.verifyingShares).map(([r,i])=>[r,bt.fromBytes(i).negate().toBytes()]))}}function QP(e,t){let r=bt.fromBytes(t.commitments[0]);if(io(r.y))return e;let i=bt.Fn;return{...e,signingShare:i.toBytes(i.neg(i.fromBytes(e.signingShare)))}}function zK(e,t){if(io(e.y))return t;let r=bt.Fn;return{binding:r.toBytes(r.neg(r.fromBytes(t.binding))),hiding:r.toBytes(r.neg(r.fromBytes(t.hiding)))}}function e2(e,t,r){let i=bt.Fn,n=QP(e,t),o=bb(t),a=JP(bt.fromBytes(o.commitments[0]),r),s=i.toBytes(i.add(i.fromBytes(n.signingShare),a));return{identifier:n.identifier,signingShare:s}}function t2(e,t){let r=bb(e),i=JP(bt.fromBytes(r.commitments[0]),t);if(i===mb)return r;let n=bt.BASE.multiply(i),o=r.commitments.map((s,u)=>(u===0?bt.fromBytes(s).add(n):bt.fromBytes(s)).toBytes()),a={};for(let s in r.verifyingShares)a[s]=bt.fromBytes(r.verifyingShares[s]).add(n).toBytes();return{signers:{min:r.signers.min,max:r.signers.max},commitments:o,verifyingShares:a}}var ng,CK,mb,VP,xn,bt,MK,GP,xl,ZP,io,vc,qK,HK,UK,YP,FK,yb,jK,KK,Il=Br(()=>{g();vl();Go();tg();MP();CP();Ks();KP();Ca();ng={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},CK={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},mb=BigInt(0),VP=BigInt(2);xn=pc(ng.p,{sqrt:LK}),bt=UP(ng,{Fp:xn,endo:CK}),MK=zP(bt,ka),GP=Object.create(null);xl=e=>e.toBytes(!0).slice(1),ZP=({x:e})=>xn.toBytes(e),io=e=>!xn.isOdd(e);vc=Nr;qK=Object.freeze({lift_x:og,frostTweakPublic:t2,frostTweakSecret:e2}),HK=(()=>{let r=i=>(i=i===void 0?ml(48):i,zs(Ce(i,48,"seed"),ng.n));return Object.freeze({keygen:eg(r,WP),getPublicKey:WP,sign:DK,verify:XP,Point:bt,utils:Object.freeze({randomSecretKey:r,taggedHash:El,lift_x:og,pointToBytes:xl}),lengths:Object.freeze({secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48})})})(),UK=kP(xn,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(t=>BigInt(t)))),FK=()=>YP||(YP=NP(xn,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:xn.create(BigInt("-11"))})),yb=BP(bt,e=>{let{x:t,y:r}=FK()(xn.create(e[0]));return UK(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:xn.ORDER,m:1,k:128,expand:"xmd",hash:ka}),jK=ub({name:"FROST-secp256k1-SHA256-v1",Point:bt,hashToScalar:yb.hashToScalar,hash:ka});KK=ub({name:"FROST-secp256k1-SHA256-TR-v1",Point:bt,hashToScalar:yb.hashToScalar,hash:ka,parsePublicKey(e){if(e.length===32)return og(Nr(e));if(e.length===33)return bt.fromBytes(e);throw new Error(`expected x-only or compressed public key, got length=${e.length}`)},adjustScalar(e){let t=bt.BASE.multiply(e);return io(t.y)?e:bt.Fn.neg(e)},adjustPoint:e=>io(e.y)?e:e.negate(),challenge(e,t,r){return vb(xl(e),xl(t),r)},adjustNonces:zK,adjustGroupCommitmentShare:(e,t)=>io(e.y)?t:t.negate(),adjustPublic:bb,adjustSecret:QP,adjustTx:{encode:e=>e.subarray(1),decode:e=>lt(Uint8Array.of(2),e)},adjustDKG:e=>{let t=new Uint8Array(0);return{public:t2(e.public,t),secret:e2(e.secret,e.public,t)}}})});var nn=P((Ooe,o2)=>{"use strict";g();var r2=Ze(),{secp256k1:VK}=(Il(),$i(Ol)),Tl=VK.Point,ag=Tl.Fn.ORDER;function GK(e){return BigInt("0x"+(e.toString(16)||"0"))}function _b(e){var t=e.toString(16);return t.length%2&&(t="0"+t),new r2(t,16)}function sg(e){if(e==null)throw new Error("Invalid Point");if(typeof e=="bigint")return e;if(typeof e=="number")return BigInt(e);if(typeof e=="string")return BigInt(e.indexOf("0x")===0?e:"0x"+e);if(typeof e.toString=="function")return GK(e);throw new Error("Invalid Point")}function Al(e){var t=Object.create(_t.prototype);return t._p=e,t}function i2(e,t){var r=sg(t).toString(16).padStart(64,"0");return Tl.fromHex((e?"03":"02")+r)}function n2(e,t){var r;try{r=i2((t&1n)===1n,e)}catch{throw new Error("Point does not lie on the curve")}if(r.toAffine().y!==t)throw new Error("Invalid y value for curve.")}function _t(e,t,r){if(!(this instanceof _t))return new _t(e,t,r);var i,n;try{i=sg(e),n=sg(t)}catch{throw new Error("Invalid Point")}n2(i,n);try{this._p=Tl.fromAffine({x:i,y:n})}catch{throw new Error("Invalid Point")}return this}_t.fromX=function(t,r){try{var i=Al(i2(t,r))}catch{throw new Error("Invalid X")}return i.validate(),i};_t.getG=function(){return Al(Tl.BASE)};_t.getN=function(){return _b(ag)};_t.prototype.getX=function(){return _b(this._p.toAffine().x)};_t.prototype.getY=function(){return _b(this._p.toAffine().y)};Object.defineProperty(_t.prototype,"x",{configurable:!0,enumerable:!0,get:function(){return this.getX()}});Object.defineProperty(_t.prototype,"y",{configurable:!0,enumerable:!0,get:function(){return this.getY()}});_t.prototype.mul=function(t){var r=(sg(t)%ag+ag)%ag;return r===0n||this._p.is0()?Al(Tl.ZERO):Al(this._p.multiply(r))};_t.prototype.add=function(t){return Al(this._p.add(t._p))};_t.prototype.mulAdd=function(t,r,i){return this.mul(t).add(r.mul(i))};_t.prototype.eq=function(t){return this._p.equals(t._p)};_t.prototype.isInfinity=function(){return this._p.is0()};_t.prototype.validate=function(){if(this.isInfinity())throw new Error("Point cannot be equal to Infinity");var t=this._p.toAffine();return n2(t.x,t.y),this};_t.pointToCompressed=function(t){var r=t.getX().toBuffer({size:32}),i=t.getY().toBuffer({size:32}),n,o=i[i.length-1]%2;return o?n=f.Buffer.from([3]):n=f.Buffer.from([2]),f.Buffer.concat([n,r])};_t.pointFromCompressed=function(e){if(e.length!==33)throw new Error("invalid buffer length");var t=e[0],r;if(t===3)r=!0;else if(t===2)r=!1;else throw new Error("invalid value of compressed prefix");var i=r2.fromBuffer(e.slice(1,33));return _t.fromX(r,i)};_t.prototype.toBuffer=function(){return _t.pointToCompressed(this)};_t.prototype.toHex=function(){return this.toBuffer().toString("hex")};_t.fromBuffer=function(e){return _t.pointFromCompressed(e)};_t.fromHex=function(e){return _t.fromBuffer(f.Buffer.from(e,"hex"))};o2.exports=_t});var ut=P((Aoe,s2)=>{"use strict";g();var Ys=Ze(),WK=Qe(),yi=Oe(),YK=ei(),$e=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t instanceof Ys)this.set({r:t,s:r});else if(t){var i=t;this.set(i)}};$e.prototype.set=function(e){return this.r=e.r||this.r||void 0,this.s=e.s||this.s||void 0,this.i=typeof e.i<"u"?e.i:this.i,this.compressed=typeof e.compressed<"u"?e.compressed:this.compressed,this.nhashtype=e.nhashtype||this.nhashtype||void 0,this};$e.fromCompact=function(e){yi.checkArgument(f.Buffer.isBuffer(e),"Argument is expected to be a Buffer");var t=new $e,r=!0,i=e.slice(0,1)[0]-27-4;i<0&&(r=!1,i=i+4);var n=e.slice(1,33),o=e.slice(33,65);return yi.checkArgument(i===0||i===1||i===2||i===3,new Error("i must be 0, 1, 2, or 3")),yi.checkArgument(n.length===32,new Error("r must be 32 bytes")),yi.checkArgument(o.length===32,new Error("s must be 32 bytes")),t.compressed=r,t.i=i,t.r=Ys.fromBuffer(n),t.s=Ys.fromBuffer(o),t};$e.fromDER=$e.fromBuffer=function(e,t){var r=$e.parseDER(e,t),i=new $e;return i.r=r.r,i.s=r.s,i};$e.fromTxFormat=function(e){var t=e.readUInt8(e.length-1),r=e.slice(0,e.length-1),i=$e.fromDER(r,!1);return i.nhashtype=t,i};$e.fromString=function(e){var t=f.Buffer.from(e,"hex");return $e.fromDER(t)};function a2(e,t){yi.checkArgument(t.length>0,new Error("Length of "+e+" is zero")),yi.checkArgument(!(t[0]&128),new Error("Value of "+e+" is negative")),yi.checkArgument(!(t.length>1&&t[0]===0&&!(t[1]&128)),new Error("Value of "+e+" is excessively padded"))}$e.parseDER=function(e,t){yi.checkArgument(f.Buffer.isBuffer(e),new Error("DER formatted signature should be a buffer")),WK.isUndefined(t)&&(t=!0);var r=e[0];yi.checkArgument(r===48,new Error("Header byte should be 0x30"));var i=e[1],n=e.slice(2).length;yi.checkArgument(!t||i===n,new Error("Length byte should length of what follows")),i=i<n?i:n;var o=e[2];yi.checkArgument(o===2,new Error("Integer byte for r should be 0x02"));var a=e[3],s=e.slice(4,4+a),u=Ys.fromBuffer(s),c=e[4]===0;yi.checkArgument(a===s.length,new Error("Length of r incorrect"));var l=e[4+a+0];yi.checkArgument(l===2,new Error("Integer byte for s should be 0x02"));var d=e[4+a+1],p=e.slice(4+a+2,4+a+2+d),y=Ys.fromBuffer(p),_=e[4+a+2]===0;yi.checkArgument(d===p.length,new Error("Length of s incorrect"));var T=4+a+2+d;yi.checkArgument(i===T-2,new Error("Length of signature incorrect")),t&&(a2("r",s),a2("s",p));var R={header:r,length:i,rheader:o,rlength:a,rneg:c,rbuf:s,r:u,sheader:l,slength:d,sneg:_,sbuf:p,s:y};return R};$e.prototype.toCompact=function(e,t){if(e=typeof e=="number"?e:this.i,t=typeof t=="boolean"?t:this.compressed,!(e===0||e===1||e===2||e===3))throw new Error("i must be equal to 0, 1, 2, or 3");var r=e+27+4;t===!1&&(r=r-4);var i=f.Buffer.from([r]),n=this.r.toBuffer({size:32}),o=this.s.toBuffer({size:32});return f.Buffer.concat([i,n,o])};$e.prototype.toBuffer=$e.prototype.toDER=function(){var e=this.r.toBuffer(),t=this.s.toBuffer(),r=!!(e[0]&128),i=!!(t[0]&128),n=r?f.Buffer.concat([f.Buffer.from([0]),e]):e,o=i?f.Buffer.concat([f.Buffer.from([0]),t]):t,a=n.length,s=o.length,u=2+a+2+s,c=2,l=2,d=48,p=f.Buffer.concat([f.Buffer.from([d,u,c,a]),n,f.Buffer.from([l,s]),o]);return p};$e.prototype.toString=function(){var e=this.toDER();return e.toString("hex")};$e.isTxDER=function(e){if(e.length<9||e.length>73||e[0]!==48||e[1]!==e.length-3)return!1;var t=e[3];if(5+t>=e.length)return!1;var r=e[5+t];if(t+r+7!==e.length)return!1;var i=e.slice(4);if(e[2]!==2||t===0||i[0]&128||t>1&&i[0]===0&&!(i[1]&128))return!1;var n=e.slice(6+t);return!(e[6+t-2]!==2||r===0||n[0]&128||r>1&&n[0]===0&&!(n[1]&128))};$e.prototype.hasLowS=function(){return!(this.s.lt(new Ys(1))||this.s.gt(new Ys("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))};$e.prototype.hasDefinedHashtype=function(){if(!YK.isNaturalNumber(this.nhashtype))return!1;var e=this.nhashtype&31;return!(e<$e.SIGHASH_ALL||e>$e.SIGHASH_SINGLE)};$e.prototype.toTxFormat=function(){var e=this.toDER(),t=f.Buffer.alloc(1);return t.writeUInt8(this.nhashtype,0),f.Buffer.concat([e,t])};$e.SIGHASH_ALL=1;$e.SIGHASH_NONE=2;$e.SIGHASH_SINGLE=3;$e.SIGHASH_CHRONICLE=32;$e.SIGHASH_FORKID=64;$e.SIGHASH_ANYONECANPAY=128;$e.prototype.isCanonical=function(){var e=nn(),t=e.getN().shrn(1);return this.s.lte(t)};$e.prototype.toCanonical=function(){if(this.isCanonical())return new $e({r:this.r,s:this.s,i:this.i,compressed:this.compressed,nhashtype:this.nhashtype});var e=nn(),t=e.getN(),r=t.sub(this.s);return new $e({r:this.r,s:r,i:this.i,compressed:this.compressed,nhashtype:this.nhashtype})};$e.prototype.validate=function(){if(!this.r||!this.s)throw new Error("Signature missing r or s component");if(this.r.isZero())throw new Error("Signature r component is zero");if(this.s.isZero())throw new Error("Signature s component is zero");var e=nn(),t=e.getN();if(this.r.gte(t))throw new Error("Signature r component >= curve order");if(this.s.gte(t))throw new Error("Signature s component >= curve order");if(this.r.isNeg())throw new Error("Signature r component is negative");if(this.s.isNeg())throw new Error("Signature s component is negative");return!0};$e.prototype.isValid=function(){try{return this.validate(),!0}catch{return!1}};$e.prototype.applySecurityPatches=function(){var e=nn(),t=e.getN(),r=t.shrn(1);if(this.r.isZero()||this.s.isZero())throw new Error("Invalid signature: zero r or s");if(this.r.gte(t)||this.s.gte(t))throw new Error("Invalid signature: out of range");if(this.s.gt(r))throw new Error("Invalid signature: non-canonical (high) s");return this};s2.exports=$e});var c2=P((Poe,u2)=>{"use strict";g();var ug=Kt(),Xo=Oe(),Er=u2.exports;Er.sha1=function(e){return Xo.checkArgument(f.Buffer.isBuffer(e)),ug.createHash("sha1").update(e).digest()};Er.sha1.blocksize=512;Er.sha256=function(e){return Xo.checkArgument(f.Buffer.isBuffer(e)),ug.createHash("sha256").update(e).digest()};Er.sha256.blocksize=512;Er.sha256sha256=function(e){return Xo.checkArgument(f.Buffer.isBuffer(e)),Er.sha256(Er.sha256(e))};Er.ripemd160=function(e){return Xo.checkArgument(f.Buffer.isBuffer(e)),ug.createHash("ripemd160").update(e).digest()};Er.sha256ripemd160=function(e){return Xo.checkArgument(f.Buffer.isBuffer(e)),Er.ripemd160(Er.sha256(e))};Er.sha512=function(e){return Xo.checkArgument(f.Buffer.isBuffer(e)),ug.createHash("sha512").update(e).digest()};Er.sha512.blocksize=1024;Er.hmac=function(e,t,r){Xo.checkArgument(f.Buffer.isBuffer(t)),Xo.checkArgument(f.Buffer.isBuffer(r)),Xo.checkArgument(e.blocksize);var i=e.blocksize/8;if(r.length>i)r=e(r);else if(r.length<i){var n=f.Buffer.alloc(i);n.fill(0),r.copy(n),r=n}var o=f.Buffer.alloc(i);o.fill(92);var a=f.Buffer.alloc(i);a.fill(54);for(var s=f.Buffer.alloc(i),u=f.Buffer.alloc(i),c=0;c<i;c++)s[c]=o[c]^r[c],u[c]=a[c]^r[c];return e(f.Buffer.concat([s,e(f.Buffer.concat([u,t]))]))};Er.sha256hmac=function(e,t){return Er.hmac(Er.sha256,e,t)};Er.sha512hmac=function(e,t){return Er.hmac(Er.sha512,e,t)}});var m2={};Pf(m2,{_MD5:()=>hg,_RIPEMD160:()=>dg,_SHA1:()=>lg,md5:()=>QK,ripemd160:()=>aV,sha1:()=>ZK});function f2(e,t,r,i){return e===0?t^r^i:e===1?t&r|~t&i:e===2?(t|~r)^i:e===3?t&i|r&~i:t^(r|~i)}var yc,qa,lg,ZK,$K,XK,cg,wb,JK,hg,QK,eV,l2,tV,h2,d2,p2,g2,rV,iV,nV,oV,fg,dg,aV,v2=Br(()=>{g();Gy();Go();yc=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),qa=new Uint32Array(80),lg=class extends Wo{constructor(){super(64,20,8,!1);ee(this,"A",yc[0]|0);ee(this,"B",yc[1]|0);ee(this,"C",yc[2]|0);ee(this,"D",yc[3]|0);ee(this,"E",yc[4]|0)}get(){let{A:r,B:i,C:n,D:o,E:a}=this;return[r,i,n,o,a]}set(r,i,n,o,a){this.A=r|0,this.B=i|0,this.C=n|0,this.D=o|0,this.E=a|0}_cloneInto(r){return(r||(r=new this.constructor)).set(...this.get()),this._cloneIntoMeta(r)}process(r,i){for(let c=0;c<16;c++,i+=4)qa[c]=r.getUint32(i,!1);for(let c=16;c<80;c++)qa[c]=Ko(qa[c-3]^qa[c-8]^qa[c-14]^qa[c-16],1);let{A:n,B:o,C:a,D:s,E:u}=this;for(let c=0;c<80;c++){let l,d;c<20?(l=sc(o,a,s),d=1518500249):c<40?(l=o^a^s,d=1859775393):c<60?(l=Hp(o,a,s),d=2400959708):(l=o^a^s,d=3395469782);let p=Ko(n,5)+l+u+d+qa[c]|0;u=s,s=a,a=Ko(o,30),o=n,n=p}n=n+this.A|0,o=o+this.B|0,a=a+this.C|0,s=s+this.D|0,u=u+this.E|0,this.set(n,o,a,s,u)}roundClean(){Ii(qa)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0),Ii(this.buffer)}},ZK=En(()=>new lg),$K=Math.pow(2,32),XK=Array.from({length:64},(e,t)=>Math.floor($K*Math.abs(Math.sin(t+1)))),cg=yc.slice(0,4),wb=new Uint32Array(16),JK=(()=>{let e=[[7,12,17,22],[5,9,14,20],[4,11,16,23],[6,10,15,21]];return Uint8Array.from({length:64},(t,r)=>e[Math.floor(r/16)][r%4])})(),hg=class extends Wo{constructor(){super(64,16,8,!0);ee(this,"A",cg[0]|0);ee(this,"B",cg[1]|0);ee(this,"C",cg[2]|0);ee(this,"D",cg[3]|0)}get(){let{A:r,B:i,C:n,D:o}=this;return[r,i,n,o]}set(r,i,n,o){this.A=r|0,this.B=i|0,this.C=n|0,this.D=o|0}_cloneInto(r){return(r||(r=new this.constructor)).set(...this.get()),this._cloneIntoMeta(r)}process(r,i){for(let u=0;u<16;u++,i+=4)wb[u]=r.getUint32(i,!0);let{A:n,B:o,C:a,D:s}=this;for(let u=0;u<64;u++){let c,l;u<16?(c=sc(o,a,s),l=u):u<32?(c=sc(s,o,a),l=(5*u+1)%16):u<48?(c=o^a^s,l=(3*u+5)%16):(c=a^(o|~s),l=7*u%16),c=c+n+XK[u]+wb[l],n=s,s=a,a=o,o=o+Ko(c,JK[u])}n=n+this.A|0,o=o+this.B|0,a=a+this.C|0,s=s+this.D|0,this.set(n,o,a,s)}roundClean(){Ii(wb)}destroy(){this.destroyed=!0,this.set(0,0,0,0),Ii(this.buffer)}},QK=En(()=>new hg),eV=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),l2=Uint8Array.from(new Array(16).fill(0).map((e,t)=>t)),tV=l2.map(e=>(9*e+5)%16),h2=(()=>{let r=[[l2],[tV]];for(let i=0;i<4;i++)for(let n of r)n.push(n[i].map(o=>eV[o]));return r})(),d2=h2[0],p2=h2[1],g2=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),rV=d2.map((e,t)=>e.map(r=>g2[t][r])),iV=p2.map((e,t)=>e.map(r=>g2[t][r])),nV=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),oV=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);fg=new Uint32Array(16),dg=class extends Wo{constructor(){super(64,20,8,!0);ee(this,"h0",1732584193);ee(this,"h1",-271733879);ee(this,"h2",-1732584194);ee(this,"h3",271733878);ee(this,"h4",-1009589776)}get(){let{h0:r,h1:i,h2:n,h3:o,h4:a}=this;return[r,i,n,o,a]}set(r,i,n,o,a){this.h0=r|0,this.h1=i|0,this.h2=n|0,this.h3=o|0,this.h4=a|0}_cloneInto(r){return(r||(r=new this.constructor)).set(...this.get()),this._cloneIntoMeta(r)}process(r,i){for(let _=0;_<16;_++,i+=4)fg[_]=r.getUint32(i,!0);let n=this.h0|0,o=n,a=this.h1|0,s=a,u=this.h2|0,c=u,l=this.h3|0,d=l,p=this.h4|0,y=p;for(let _=0;_<5;_++){let T=4-_,R=nV[_],B=oV[_],H=d2[_],F=p2[_],I=rV[_],k=iV[_];for(let D=0;D<16;D++){let j=Ko(n+f2(_,a,u,l)+fg[H[D]]+R,I[D])+p|0;n=p,p=l,l=Ko(u,10)|0,u=a,a=j}for(let D=0;D<16;D++){let j=Ko(o+f2(T,s,c,d)+fg[F[D]]+B,k[D])+y|0;o=y,y=d,d=Ko(c,10)|0,c=s,s=j}}this.set(this.h1+u+d|0,this.h2+l+y|0,this.h3+p+o|0,this.h4+n+s|0,this.h0+a+c|0)}roundClean(){Ii(fg)}destroy(){this.destroyed=!0,Ii(this.buffer),this.set(0,0,0,0,0)}},aV=En(()=>new dg)});var b2=P((Loe,y2)=>{"use strict";g();var{sha256:sV,sha512:uV}=(vl(),$i(Wp)),{sha1:cV,ripemd160:fV}=(v2(),$i(m2)),Jo=Oe(),xr=y2.exports;xr.sha1=function(e){return Jo.checkArgument(f.Buffer.isBuffer(e)),f.Buffer.from(cV(e))};xr.sha1.blocksize=512;xr.sha256=function(e){return Jo.checkArgument(f.Buffer.isBuffer(e)),f.Buffer.from(sV(e))};xr.sha256.blocksize=512;xr.sha256sha256=function(e){return Jo.checkArgument(f.Buffer.isBuffer(e)),xr.sha256(xr.sha256(e))};xr.ripemd160=function(e){return Jo.checkArgument(f.Buffer.isBuffer(e)),f.Buffer.from(fV(e))};xr.sha256ripemd160=function(e){return Jo.checkArgument(f.Buffer.isBuffer(e)),xr.ripemd160(xr.sha256(e))};xr.sha512=function(e){return Jo.checkArgument(f.Buffer.isBuffer(e)),f.Buffer.from(uV(e))};xr.sha512.blocksize=1024;xr.hmac=function(e,t,r){Jo.checkArgument(f.Buffer.isBuffer(t)),Jo.checkArgument(f.Buffer.isBuffer(r)),Jo.checkArgument(e.blocksize);var i=e.blocksize/8;if(r.length>i)r=e(r);else if(r.length<i){var n=f.Buffer.alloc(i);n.fill(0),r.copy(n),r=n}var o=f.Buffer.alloc(i);o.fill(92);var a=f.Buffer.alloc(i);a.fill(54);for(var s=f.Buffer.alloc(i),u=f.Buffer.alloc(i),c=0;c<i;c++)s[c]=o[c]^r[c],u[c]=a[c]^r[c];return e(f.Buffer.concat([s,e(f.Buffer.concat([u,t]))]))};xr.sha256hmac=function(e,t){return xr.hmac(xr.sha256,e,t)};xr.sha512hmac=function(e,t){return xr.hmac(xr.sha512,e,t)}});var Be=P((Doe,w2)=>{"use strict";g();var _2={sha1:"a9993e364706816aba3e25717850c26c9cd0d89d",sha256:"ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad",sha512:"ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f",ripemd160:"8eb208f7e05d987a9b044a8e98c6b087f15a0bfc"};function lV(){var e;try{e=Kt()}catch{return!1}if(!e||typeof e.createHash!="function")return!1;for(var t=Object.keys(_2),r=0;r<t.length;r++){var i=t[r];try{if(e.createHash(i).update("abc").digest("hex")!==_2[i])return!1}catch{return!1}}return!0}w2.exports=lV()?c2():b2()});var ta=P((Hoe,x2)=>{"use strict";g();var Qo=Qe(),Pl=ei(),Zs=[],Rl={};function S2(){}S2.prototype.toString=function(){return this.name};function kl(e,t){if(~Zs.indexOf(e))return e;if(t){Qo.isArray(t)||(t=[t]);for(var r=0;r<Zs.length;r++){var i=Zs[r],n=Qo.pick(i,t),o=Qo.values(n);if(~o.indexOf(e))return i}return}return Rl[e]}function pg(e){for(var t=[],r=0;r<e.length;r++)t.push(e.charCodeAt(r)&31);return t}function Bl(e){var t=new S2;Pl.defineImmutable(t,{name:e.name,alias:e.alias,pubkeyhash:e.pubkeyhash,privatekey:e.privatekey,scripthash:e.scripthash,xpubkey:e.xpubkey,xprivkey:e.xprivkey});var r=e.indexBy||Object.keys(e);return e.cashAddrPrefix&&Qo.extend(t,{cashAddrPrefix:e.cashAddrPrefix,cashAddrPrefixArray:pg(e.cashAddrPrefix)}),e.networkMagic&&Qo.extend(t,{networkMagic:Pl.integerAsBuffer(e.networkMagic)}),e.port&&Qo.extend(t,{port:e.port}),e.dnsSeeds&&Qo.extend(t,{dnsSeeds:e.dnsSeeds}),Zs.push(t),hV(t,r),t}function hV(e,t){for(var r=0;r<t.length;r++){var i=t[r],n=e[i];!Qo.isUndefined(n)&&!Qo.isObject(n)&&(Rl[n]=e)}}function dV(e,t){for(var r=0;r<t.length;r++){var i=t[r];Rl[i]===e&&delete Rl[i]}}function pV(e){for(var t=0;t<Zs.length;t++)Zs[t]===e&&Zs.splice(t,1);dV(e,Object.keys(Rl))}var gg={livenet:3823236072,testnet:4108710900,regtest:3669344250,stn:4224632057},E2=["seed.bitcoinsv.org","seed.bitcoinunlimited.info"],Ha={PORT:18333,NETWORK_MAGIC:gg.testnet,DNS_SEEDS:E2,PREFIX:"testnet",CASHADDRPREFIX:"bchtest"},ea={PORT:18444,NETWORK_MAGIC:gg.regtest,DNS_SEEDS:[],PREFIX:"regtest",CASHADDRPREFIX:"bchreg"},Ua={PORT:9333,NETWORK_MAGIC:gg.stn,DNS_SEEDS:["stn-seed.bitcoinsv.io"],PREFIX:"stn",CASHADDRPREFIX:"bsvstn"},gV={name:"livenet",alias:"mainnet",prefix:"bitcoin",cashAddrPrefix:"bitcoincash",pubkeyhash:0,privatekey:128,scripthash:5,xpubkey:76067358,xprivkey:76066276,networkMagic:gg.livenet,port:8333,dnsSeeds:E2},mV={name:"testnet",prefix:Ha.PREFIX,cashAddrPrefix:Ha.CASHADDRPREFIX,pubkeyhash:111,privatekey:239,scripthash:196,xpubkey:70617039,xprivkey:70615956,networkMagic:Ha.NETWORK_MAGIC},vV={name:"regtest",prefix:ea.PREFIX,cashAddrPrefix:ea.CASHADDRPREFIX,pubkeyhash:111,privatekey:239,scripthash:196,xpubkey:70617039,xprivkey:70615956,networkMagic:ea.NETWORK_MAGIC,port:ea.PORT,dnsSeeds:[],indexBy:["port","name","cashAddrPrefix","networkMagic"]},yV={name:"stn",prefix:Ua.PREFIX,cashAddrPrefix:Ua.CASHADDRPREFIX,pubkeyhash:111,privatekey:239,scripthash:196,xpubkey:70617039,xprivkey:70615956,networkMagic:Ua.NETWORK_MAGIC,indexBy:["port","name","cashAddrPrefix","networkMagic"]};Bl(mV);Bl(yV);Bl(vV);Bl(gV);var Sb=kl("livenet"),bV=kl("regtest"),no=kl("testnet"),_V=kl("stn");Object.defineProperty(no,"port",{enumerable:!0,configurable:!1,get:function(){return this.regtestEnabled?ea.PORT:this.stnEnabled?Ua.PORT:Ha.PORT}});Object.defineProperty(no,"networkMagic",{enumerable:!0,configurable:!1,get:function(){return this.regtestEnabled?Pl.integerAsBuffer(ea.NETWORK_MAGIC):this.stnEnabled?Pl.integerAsBuffer(Ua.NETWORK_MAGIC):Pl.integerAsBuffer(Ha.NETWORK_MAGIC)}});Object.defineProperty(no,"dnsSeeds",{enumerable:!0,configurable:!1,get:function(){return this.regtestEnabled?ea.DNS_SEEDS:this.stnEnabled?Ua.DNS_SEEDS:Ha.DNS_SEEDS}});Object.defineProperty(no,"cashAddrPrefix",{enumerable:!0,configurable:!1,get:function(){return this.regtestEnabled?ea.CASHADDRPREFIX:this.stnEnabled?Ua.CASHADDRPREFIX:Ha.CASHADDRPREFIX}});Object.defineProperty(no,"cashAddrPrefixArray",{enumerable:!0,configurable:!1,get:function(){return this.regtestEnabled?pg(ea.CASHADDRPREFIX):this.stnEnabled?pg(Ua.CASHADDRPREFIX):pg(Ha.CASHADDRPREFIX)}});function wV(){no.regtestEnabled=!0}function SV(){no.regtestEnabled=!1}function EV(){no.stnEnabled=!0}function xV(){no.stnEnabled=!1}x2.exports={add:Bl,remove:pV,defaultNetwork:Sb,livenet:Sb,mainnet:Sb,testnet:no,regtest:bV,stn:_V,get:kl,enableRegtest:wV,disableRegtest:SV,enableStn:EV,disableStn:xV}});var _c=P((Foe,A2)=>{"use strict";g();var Eb=Qe(),O2=jt(),bc="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split(""),I2={};for(Nl=0;Nl<bc.length;Nl++)I2[bc[Nl]]=Nl;var Nl;function OV(e){if(e.length===0)return"";var t=[0],r,i,n;for(r=0;r<e.length;r++){for(i=0,n=e[r];i<t.length;i++)n+=t[i]<<8,t[i]=n%58,n=n/58|0;for(;n>0;)t.push(n%58),n=n/58|0}var o="";for(r=0;e[r]===0&&r<e.length-1;r++)o+=bc[0];for(r=t.length-1;r>=0;r--)o+=bc[t[r]];return o}function IV(e){if(e.length===0)return f.Buffer.alloc(0);var t=[0],r,i,n;for(r=0;r<e.length;r++){var o=I2[e[r]];if(o===void 0)throw new Error("Non-base58 character");for(i=0,n=o;i<t.length;i++)n+=t[i]*58,t[i]=n&255,n>>=8;for(;n>0;)t.push(n&255),n>>=8}for(r=0;e[r]===bc[0]&&r<e.length-1;r++)t.push(0);return f.Buffer.from(t.reverse())}var Gr=function e(t){if(!(this instanceof e))return new e(t);if(f.Buffer.isBuffer(t)){var r=t;this.fromBuffer(r)}else if(typeof t=="string"){var i=t;this.fromString(i)}};Gr.validCharacters=function(t){return O2.Buffer.isBuffer(t)&&(t=t.toString()),Eb.every(Eb.map(t,function(r){return Eb.includes(bc,r)}))};Gr.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this};Gr.encode=function(e){if(!O2.Buffer.isBuffer(e))throw new Error("Input should be a buffer");return OV(e)};Gr.decode=function(e){if(typeof e!="string")throw new Error("Input should be a string");return IV(e)};Gr.prototype.fromBuffer=function(e){return this.buf=e,this};Gr.fromBuffer=function(e){return new Gr().fromBuffer(e)};Gr.fromHex=function(e){return Gr.fromBuffer(f.Buffer.from(e,"hex"))};Gr.prototype.fromString=function(e){var t=Gr.decode(e);return this.buf=t,this};Gr.fromString=function(e){return new Gr().fromString(e)};Gr.prototype.toBuffer=function(){return this.buf};Gr.prototype.toHex=function(){return this.toBuffer().toString("hex")};Gr.prototype.toString=function(){return Gr.encode(this.buf)};A2.exports=Gr});var wc=P((zoe,k2)=>{"use strict";g();var T2=Qe(),mg=_c(),P2=jt(),R2=Be().sha256sha256,Vt=function e(t){if(!(this instanceof e))return new e(t);if(f.Buffer.isBuffer(t)){var r=t;this.fromBuffer(r)}else if(typeof t=="string"){var i=t;this.fromString(i)}};Vt.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this};Vt.validChecksum=function(t,r){return T2.isString(t)&&(t=P2.Buffer.from(mg.decode(t))),T2.isString(r)&&(r=P2.Buffer.from(mg.decode(r))),r||(r=t.slice(-4),t=t.slice(0,-4)),Vt.checksum(t).toString("hex")===r.toString("hex")};Vt.decode=function(e){if(typeof e!="string")throw new Error("Input must be a string");var t=f.Buffer.from(mg.decode(e));if(t.length<4)throw new Error("Input string too short");var r=t.slice(0,-4),i=t.slice(-4),n=R2(r),o=n.slice(0,4);if(i.toString("hex")!==o.toString("hex"))throw new Error("Checksum mismatch");return r};Vt.checksum=function(e){return R2(e).slice(0,4)};Vt.encode=function(e){if(!f.Buffer.isBuffer(e))throw new Error("Input must be a buffer");var t=f.Buffer.alloc(e.length+4),r=Vt.checksum(e);return e.copy(t),r.copy(t,e.length),mg.encode(t)};Vt.prototype.fromBuffer=function(e){return this.buf=e,this};Vt.fromBuffer=function(e){return new Vt().fromBuffer(e)};Vt.fromHex=function(e){return Vt.fromBuffer(f.Buffer.from(e,"hex"))};Vt.prototype.fromString=function(e){var t=Vt.decode(e);return this.buf=t,this};Vt.fromString=function(e){var t=Vt.decode(e);return new Vt(t)};Vt.prototype.toBuffer=function(){return this.buf};Vt.prototype.toHex=function(){return this.toBuffer().toString("hex")};Vt.prototype.toString=function(){return Vt.encode(this.buf)};k2.exports=Vt});var oo=P((Voe,N2)=>{"use strict";g();var Cl=Qe(),B2=Oe(),Sc=Ze(),Jt=function e(t){if(!(this instanceof e))return new e(t);if(!Cl.isUndefined(t))if(f.Buffer.isBuffer(t))this.set({buf:t});else if(Cl.isString(t)){var r=f.Buffer.from(t,"hex");if(r.length*2!==t.length)throw new TypeError("Invalid hex string");this.set({buf:r})}else if(Cl.isObject(t)){var i=t;this.set(i)}else throw new TypeError("Unrecognized argument for BufferReader")};Jt.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this};Jt.prototype.eof=function(){return this.pos>=this.buf.length};Jt.prototype.finished=Jt.prototype.eof;Jt.prototype.read=function(e){B2.checkArgument(!Cl.isUndefined(e),"Must specify a length");var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t};Jt.prototype.readAll=function(){var e=this.buf.slice(this.pos,this.buf.length);return this.pos=this.buf.length,e};Jt.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e};Jt.prototype.readUInt16BE=function(){var e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e};Jt.prototype.readUInt16LE=function(){var e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e};Jt.prototype.readUInt32BE=function(){var e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e};Jt.prototype.readUInt32LE=function(){var e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e};Jt.prototype.readInt32LE=function(){var e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e};Jt.prototype.readUInt64BEBN=function(){var e=this.buf.slice(this.pos,this.pos+8),t=Sc.fromBuffer(e);return this.pos=this.pos+8,t};Jt.prototype.readUInt64LEBN=function(){var e=this.buf.readUInt32LE(this.pos),t=this.buf.readUInt32LE(this.pos+4),r=t*4294967296+e,i;if(r<=9007199254740991)i=new Sc(r);else{var n=Array.prototype.slice.call(this.buf,this.pos,this.pos+8);i=new Sc(n,10,"le")}return this.pos=this.pos+8,i};Jt.prototype.readVarintNum=function(){var e=this.readUInt8();switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:var t=this.readUInt64LEBN(),r=t.toNumber();if(r<=Math.pow(2,53))return r;throw new Error("number too large to retain precision - use readVarintBN");default:return e}};Jt.prototype.readVarLengthBuffer=function(){var e=this.readVarintNum(),t=this.read(e);return B2.checkState(t.length===e,"Invalid length while reading varlength buffer. Expected to read: "+e+" and read "+t.length),t};Jt.prototype.readVarintBuf=function(){var e=this.buf.readUInt8(this.pos);switch(e){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}};Jt.prototype.readVarintBN=function(){var e=this.readUInt8();switch(e){case 253:return new Sc(this.readUInt16LE());case 254:return new Sc(this.readUInt32LE());case 255:return this.readUInt64LEBN();default:return new Sc(e)}};Jt.prototype.reverse=function(){for(var e=f.Buffer.alloc(this.buf.length),t=0;t<e.length;t++)e[t]=this.buf[this.buf.length-1-t];return this.buf=e,this};Jt.prototype.readReverse=function(e){Cl.isUndefined(e)&&(e=this.buf.length);var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,f.Buffer.from(t).reverse()};N2.exports=Jt});var Ib=P((Woe,D2)=>{"use strict";g();function Fa(e){"@babel/helpers - typeof";return Fa=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},Fa(e)}function C2(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,TV(i.key),i)}}function AV(e,t,r){return t&&C2(e.prototype,t),r&&C2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function TV(e){var t=PV(e,"string");return Fa(t)==="symbol"?t:String(t)}function PV(e,t){if(Fa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Fa(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kV(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&&Ob(e,t)}function Ob(e,t){return Ob=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Ob(e,t)}function BV(e){var t=LV();return function(){var i=vg(e),n;if(t){var o=vg(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return NV(this,n)}}function NV(e,t){if(t&&(Fa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CV(e)}function CV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LV(){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 vg(e){return vg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vg(e)}var M2={},Ec,xb;function Ll(e,t,r){r||(r=Error);function i(o,a,s){return typeof t=="string"?t:t(o,a,s)}var n=(function(o){kV(s,o);var a=BV(s);function s(u,c,l){var d;return RV(this,s),d=a.call(this,i(u,c,l)),d.code=e,d}return AV(s)})(r);M2[e]=n}function L2(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 MV(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function DV(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function qV(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Ll("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);Ll("ERR_INVALID_ARG_TYPE",function(e,t,r){Ec===void 0&&(Ec=ja()),Ec(typeof e=="string","'name' must be a string");var i;typeof t=="string"&&MV(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(DV(e," argument"))n="The ".concat(e," ").concat(i," ").concat(L2(t,"type"));else{var o=qV(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(o," ").concat(i," ").concat(L2(t,"type"))}return n+=". Received type ".concat(Fa(r)),n},TypeError);Ll("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";xb===void 0&&(xb=Qi());var i=xb.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)},TypeError,RangeError);Ll("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(Fa(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError);Ll("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Ec===void 0&&(Ec=ja()),Ec(t.length>0,"At least one arg needs to be specified");var i="The ",n=t.length;switch(t=t.map(function(o){return'"'.concat(o,'"')}),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);D2.exports.codes=M2});var W2=P((Zoe,G2)=>{"use strict";g();function q2(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 H2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q2(Object(r),!0).forEach(function(i){HV(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q2(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function HV(e,t,r){return t=z2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U2(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,z2(i.key),i)}}function FV(e,t,r){return t&&U2(e.prototype,t),r&&U2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function z2(e){var t=jV(e,"string");return Ai(t)==="symbol"?t:String(t)}function jV(e,t){if(Ai(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Ai(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zV(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&&Hl(e,t)}function KV(e){var t=V2();return function(){var i=Ul(e),n;if(t){var o=Ul(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return K2(this,n)}}function K2(e,t){if(t&&(Ai(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ab(e)}function Ab(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tb(e){var t=typeof Map=="function"?new Map:void 0;return Tb=function(i){if(i===null||!VV(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 yg(i,arguments,Ul(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Hl(n,i)},Tb(e)}function yg(e,t,r){return V2()?yg=Reflect.construct.bind():yg=function(n,o,a){var s=[null];s.push.apply(s,o);var u=Function.bind.apply(n,s),c=new u;return a&&Hl(c,a.prototype),c},yg.apply(null,arguments)}function V2(){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 VV(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Hl(e,t){return Hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Hl(e,t)}function Ul(e){return Ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ul(e)}function Ai(e){"@babel/helpers - typeof";return Ai=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},Ai(e)}var GV=Qi(),Pb=GV.inspect,WV=Ib(),YV=WV.codes.ERR_INVALID_ARG_TYPE;function F2(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function ZV(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 On="",Ml="",Dl="",ti="",$s={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:"},$V=10;function j2(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 ql(e){return Pb(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function XV(e,t,r){var i="",n="",o=0,a="",s=!1,u=ql(e),c=u.split(`
|
|
13
|
+
`+new Error().stack};oc.Error.prototype=Object.create(Error.prototype);oc.Error.prototype.name="bsv.Error";var Hz=TT();qz(oc.Error,Hz);Uy.exports=oc.Error;Uy.exports.extend=function(e){return PT(oc.Error,e)}});var Oe=P((fne,kT)=>{"use strict";g();var dl=ci(),Uz=Qe();kT.exports={checkState:function(e,t){if(!e)throw new dl.InvalidState(t)},checkArgument:function(e,t,r,i){if(!e)throw new dl.InvalidArgument(t,r,i)},checkArgumentType:function(e,t,r){if(r=r||"(unknown name)",Uz.isString(t)){if(t==="Buffer"){var i=jt();if(!i.Buffer.isBuffer(e))throw new dl.InvalidArgumentType(e,t,r)}else if(typeof e!==t)throw new dl.InvalidArgumentType(e,t,r)}else if(!(e instanceof t))throw new dl.InvalidArgumentType(e,t.name,r)}}});var Ze=P((hne,LT)=>{"use strict";g();var st=ld(),NT=Oe(),CT=Qe(),Bp=function(e){for(var t=f.Buffer.alloc(e.length),r=0;r<e.length;r++)t[r]=e[e.length-1-r];return t};st.Zero=new st(0);st.One=new st(1);st.Minus1=new st(-1);st.fromNumber=function(e){return NT.checkArgument(CT.isNumber(e)),new st(e)};st.fromString=function(e,t){return NT.checkArgument(CT.isString(e)),new st(e,t)};st.fromBuffer=function(e,t){typeof t<"u"&&t.endian==="little"&&(e=Bp(e));var r=e.toString("hex"),i=new st(r,16);return i};st.fromSM=function(e,t){var r;if(e.length===0)return st.fromBuffer(f.Buffer.from([0]));var i="big";return t&&(i=t.endian),i==="little"&&(e=Bp(e)),e[0]&128?(e[0]=e[0]&127,r=st.fromBuffer(e),r.neg().copy(r)):r=st.fromBuffer(e),r};st.prototype.toNumber=function(){return parseInt(this.toString(10),10)};st.prototype.toBuffer=function(e){var t,r;if(e&&e.size){r=this.toString(16,2);var i=r.length/2;t=f.Buffer.from(r,"hex"),i===e.size||(i>e.size?t=st.trim(t,i):i<e.size&&(t=st.pad(t,i,e.size)))}else r=this.toString(16,2),t=f.Buffer.from(r,"hex");return typeof e<"u"&&e.endian==="little"&&(t=Bp(t)),t};st.prototype.toSMBigEndian=function(){var e;return this.cmp(st.Zero)===-1?(e=this.neg().toBuffer(),e[0]&128?e=f.Buffer.concat([f.Buffer.from([128]),e]):e[0]=e[0]|128):(e=this.toBuffer(),e[0]&128&&(e=f.Buffer.concat([f.Buffer.from([0]),e]))),e.length===1&&e[0]===0&&(e=f.Buffer.from([])),e};st.prototype.toSM=function(e){var t=e?e.endian:"big",r=this.toSMBigEndian();return t==="little"&&(r=Bp(r)),r};function BT(e,t){var r=new Error(e);return r.scriptErr=t,r}st.fromScriptNumBuffer=function(e,t,r){var i=r||4;if(e.length>i)throw BT("script number overflow","SCRIPT_ERR_SCRIPTNUM_OVERFLOW");if(t&&e.length>0&&(e[e.length-1]&127)===0&&(e.length<=1||(e[e.length-2]&128)===0))throw BT("non-minimally encoded script number","SCRIPT_ERR_SCRIPTNUM_MINENCODE");return st.fromSM(e,{endian:"little"})};st.prototype.toScriptNumBuffer=function(){return this.toSM({endian:"little"})};st.trim=function(e,t){return e.slice(t-e.length,e.length)};st.pad=function(e,t,r){for(var i=f.Buffer.alloc(r),n=0;n<e.length;n++)i[i.length-1-n]=e[e.length-1-n];for(n=0;n<r-t;n++)i[n]=0;return i};st.prototype.toHex=function(...e){return this.toBuffer(...e).toString("hex")};st.fromHex=function(e,...t){return st.fromBuffer(f.Buffer.from(e,"hex"),...t)};LT.exports=st});var ei=P((pne,qT)=>{"use strict";g();var DT=Qe(),Fz=Oe(),MT=function(t){return DT.isString(t)?/^[0-9a-fA-F]+$/.test(t):!1};qT.exports={isValidJSON:function(t){var r;if(!DT.isString(t))return!1;try{r=JSON.parse(t)}catch{return!1}return typeof r=="object"},isHexa:MT,isHexaString:MT,defineImmutable:function(t,r){return Object.keys(r).forEach(function(i){Object.defineProperty(t,i,{configurable:!1,enumerable:!0,value:r[i]})}),t},isNaturalNumber:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&t>=0},integerAsBuffer:function(t){Fz.checkArgumentType(t,"number","integer");let r=f.Buffer.allocUnsafe(4);return r.writeUInt32BE(t,0),r}}});function jz(e,t=!1){return t?{h:Number(e&Np),l:Number(e>>HT&Np)}:{h:Number(e>>HT&Np)|0,l:Number(e&Np)|0}}function UT(e,t=!1){let r=e.length,i=new Uint32Array(r),n=new Uint32Array(r);for(let o=0;o<r;o++){let{h:a,l:s}=jz(e[o],t);[i[o],n[o]]=[a,s]}return[i,n]}function FT(e,t,r,i){let n=zz(r),o=Kz(r);e.setUint32(t,i?o:n,i),e.setUint32(t+4,i?n:o,i)}function Xn(e,t,r,i){let n=(t>>>0)+(i>>>0);return{h:e+r+(n/2**32|0)|0,l:n|0}}var Np,HT,zz,Kz,Fy,jy,Hs,Us,pl,gl,jT,zT,KT,VT,GT,WT,zy=Br(()=>{g();Np=BigInt(4294967295),HT=BigInt(32);zz=e=>e/2**32|0,Kz=e=>e>>>0;Fy=(e,t,r)=>e>>>r,jy=(e,t,r)=>e<<32-r|t>>>r,Hs=(e,t,r)=>e>>>r|t<<32-r,Us=(e,t,r)=>e<<32-r|t>>>r,pl=(e,t,r)=>e<<64-r|t>>>r-32,gl=(e,t,r)=>e>>>r-32|t<<64-r;jT=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),zT=(e,t,r,i)=>t+r+i+(e/2**32|0)|0,KT=(e,t,r,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0),VT=(e,t,r,i,n)=>t+r+i+n+(e/2**32|0)|0,GT=(e,t,r,i,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0)+(n>>>0),WT=(e,t,r,i,n,o)=>t+r+i+n+o+(e/2**32|0)|0});function Cp(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in e&&e.BYTES_PER_ELEMENT===1}function zo(e,t=""){if(typeof e!="number")throw new TypeError(Ky(t)+"expected number, got "+typeof e);if(!Number.isSafeInteger(e)||e<0)throw new RangeError(Ky(t)+"expected integer >= 0, got "+e);return e}function Jn(e,t,r=""){if(Cp(e)&&(t===void 0||e.length===t))return e;t!==void 0&&zo(t,"length");let i=Cp(e),n=t!==void 0?` of length ${t}`:"",o=i?`length=${e.length}`:`type=${typeof e}`,a=Ky(r)+"expected Uint8Array"+n+", got "+o;throw i?new RangeError(a):new TypeError(a)}function Lp(e){if(typeof e!="function"||typeof e.create!="function")throw new TypeError("expected hash wrapped by utils.createHasher");if(zo(e.outputLen),zo(e.blockLen),e.outputLen<1||e.blockLen<1)throw new Error("hash blockLen / outputLen must be >= 1")}function ac(e,t=!0){if(e.destroyed)throw new Error("hash was destroyed");if(t&&e.finished)throw new Error("digest() was already called")}function Mp(e,t){Jn(e,void 0,"output");let r=t.outputLen;if(!(e.length>=r))throw new RangeError('"output" expected length >= '+r)}function Ii(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Dp(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Sn(e,t){return e<<32-t|e>>>t}function Ko(e,t){return e<<t|e>>>32-t>>>0}function qp(e){if(Jn(e),$T)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=Gz[e[r]];return t}function ZT(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function Vy(e){if(typeof e!="string")throw new TypeError("hex string expected, got "+typeof e);if($T)try{return Uint8Array.fromHex(e)}catch(n){throw n instanceof SyntaxError?new RangeError(n.message):n}let t=e.length,r=t/2;if(t%2)throw new RangeError("hex string expected, got unpadded hex of length "+t);let i=new Uint8Array(r);for(let n=0,o=0;n<r;n++,o+=2){let a=ZT(e.charCodeAt(o)),s=ZT(e.charCodeAt(o+1));if(a===void 0||s===void 0){let u=e[o]+e[o+1];throw new RangeError('hex string expected, got non-hex character "'+u+'" at index '+o)}i[n]=a*16+s}return i}function Vo(e){if(typeof e!="string")throw new TypeError("string expected");return new Uint8Array(new TextEncoder().encode(e))}function XT(...e){let t=0;for(let i=0;i<e.length;i++){let n=e[i];Jn(n),t+=n.length}let r=new Uint8Array(t);for(let i=0,n=0;i<e.length;i++){let o=e[i];r.set(o,n),n+=o.length}return r}function Wz(e,t,r="opts"){return YT(e,"defaults"),t!==void 0&&YT(t,r),Object.assign(e,t)}function En(e,t={}){if(typeof e!="function")throw new TypeError('"hashCons" expected function, got type='+typeof e);t=Wz({},t,"info");let r=(n,o)=>e(o).update(n).digest(),i=e(void 0);return r.outputLen=i.outputLen,r.blockLen=i.blockLen,r.canXOF=i.canXOF,r.create=n=>e(n),Object.assign(r,t),Object.freeze(r)}function ml(e=32){zo(e,"bytesLength");let t=typeof globalThis=="object"?globalThis.crypto:null;if(typeof t?.getRandomValues!="function")throw new Error("crypto.getRandomValues must be defined");if(e>65536)throw new RangeError(`"bytesLength" expected <= 65536, got ${e}`);return t.getRandomValues(new Uint8Array(e))}var Ky,YT,$T,Gz,Fs,Go=Br(()=>{g();Ky=e=>e?`"${e}" `:"";YT=(e,t)=>{if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError((t==="object"?"":`"${t}" `)+"expected object, got type="+typeof e)};$T=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Gz=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));Fs=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])})});function sc(e,t,r){return e&t^~e&r}function Hp(e,t,r){return e&t^e&r^t&r}var Wo,JT,QT,eP,tP,Gy=Br(()=>{g();zy();Go();Wo=class{constructor(t,r,i,n){ee(this,"blockLen");ee(this,"outputLen");ee(this,"canXOF",!1);ee(this,"padOffset");ee(this,"isLE");ee(this,"buffer");ee(this,"view");ee(this,"finished",!1);ee(this,"length",0);ee(this,"pos",0);ee(this,"destroyed",!1);this.blockLen=t,this.outputLen=r,this.padOffset=i,this.isLE=n,this.buffer=new Uint8Array(t),this.view=Dp(this.buffer)}update(t){ac(this),Jn(t);let{view:r,buffer:i,blockLen:n}=this,o=t.length,a=!1;for(let s=0;s<o;){let u=Math.min(n-this.pos,o-s);if(u===n){let c=Dp(t);for(;n<=o-s;s+=n)this.process(c,s);a=!0;continue}i.set(s===0&&u===o?t:t.subarray(s,s+u),this.pos),this.pos+=u,s+=u,this.pos===n&&(this.process(r,0),this.pos=0,a=!0)}return this.length+=t.length,a&&this.roundClean(),this}digestInto(t){ac(this),Mp(t,this),this.finished=!0;let{buffer:r,view:i,blockLen:n,isLE:o}=this,{pos:a}=this;r[a++]=128,r.fill(0,a),this.padOffset>n-a&&(this.process(i,0),r.fill(0)),FT(i,n-8,this.length*8,o),this.process(i,0),this.roundClean();let s=t===r?i:Dp(t),u=this.outputLen,c=u/4,l=this.get();if(u%4||c>l.length)throw new Error("invalid outputLen");for(let d=0;d<c;d++)s.setUint32(4*d,l[d],o)}digest(){let{buffer:t,outputLen:r}=this;this.digestInto(t);let i=t.slice(0,r);return this.destroy(),i}_cloneIntoMeta(t){let{buffer:r,length:i,finished:n,destroyed:o,pos:a}=this;return t.destroyed=o,t.finished=n,t.length=i,t.pos=a,a&&t.buffer.set(r),t}clone(){return this._cloneInto()}},JT=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),QT=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),eP=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),tP=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])});var Wp={};Pf(Wp,{_SHA224:()=>jp,_SHA256:()=>Fp,_SHA384:()=>Kp,_SHA512:()=>zp,_SHA512_224:()=>Vp,_SHA512_256:()=>Gp,sha224:()=>Qz,sha256:()=>ka,sha384:()=>tK,sha512:()=>eK,sha512_224:()=>iK,sha512_256:()=>rK});var Yz,Ta,Up,Fp,jp,rP,Zz,$z,Pa,Ra,uc,zp,Kp,Xz,Jz,Vp,Gp,ka,Qz,eK,tK,rK,iK,vl=Br(()=>{g();Gy();zy();Go();Yz=Uint32Array.from([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]),Ta=new Uint32Array(64),Up=class extends Wo{constructor(r,i){super(64,r,8,!1);ee(this,"A",0);ee(this,"B",0);ee(this,"C",0);ee(this,"D",0);ee(this,"E",0);ee(this,"F",0);ee(this,"G",0);ee(this,"H",0);this.A=i[0]|0,this.B=i[1]|0,this.C=i[2]|0,this.D=i[3]|0,this.E=i[4]|0,this.F=i[5]|0,this.G=i[6]|0,this.H=i[7]|0}get(){let{A:r,B:i,C:n,D:o,E:a,F:s,G:u,H:c}=this;return[r,i,n,o,a,s,u,c]}set(r,i,n,o,a,s,u,c){this.A=r|0,this.B=i|0,this.C=n|0,this.D=o|0,this.E=a|0,this.F=s|0,this.G=u|0,this.H=c|0}_cloneInto(r){return(r||(r=new this.constructor)).set(...this.get()),this._cloneIntoMeta(r)}process(r,i){for(let p=0;p<16;p++,i+=4)Ta[p]=r.getUint32(i,!1);for(let p=16;p<64;p++){let y=Ta[p-15],_=Ta[p-2],T=Sn(y,7)^Sn(y,18)^y>>>3,R=Sn(_,17)^Sn(_,19)^_>>>10;Ta[p]=R+Ta[p-7]+T+Ta[p-16]|0}let{A:n,B:o,C:a,D:s,E:u,F:c,G:l,H:d}=this;for(let p=0;p<64;p++){let y=Sn(u,6)^Sn(u,11)^Sn(u,25),_=d+y+sc(u,c,l)+Yz[p]+Ta[p]|0,R=(Sn(n,2)^Sn(n,13)^Sn(n,22))+Hp(n,o,a)|0;d=l,l=c,c=u,u=s+_|0,s=a,a=o,o=n,n=_+R|0}n=n+this.A|0,o=o+this.B|0,a=a+this.C|0,s=s+this.D|0,u=u+this.E|0,c=c+this.F|0,l=l+this.G|0,d=d+this.H|0,this.set(n,o,a,s,u,c,l,d)}roundClean(){Ii(Ta)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),Ii(this.buffer)}},Fp=class extends Up{constructor(){super(32,JT)}},jp=class extends Up{constructor(){super(28,QT)}},rP=UT(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),Zz=rP[0],$z=rP[1],Pa=new Uint32Array(80),Ra=new Uint32Array(80),uc=class extends Wo{constructor(r,i){super(128,r,16,!1);ee(this,"Ah",0);ee(this,"Al",0);ee(this,"Bh",0);ee(this,"Bl",0);ee(this,"Ch",0);ee(this,"Cl",0);ee(this,"Dh",0);ee(this,"Dl",0);ee(this,"Eh",0);ee(this,"El",0);ee(this,"Fh",0);ee(this,"Fl",0);ee(this,"Gh",0);ee(this,"Gl",0);ee(this,"Hh",0);ee(this,"Hl",0);this.Ah=i[0]|0,this.Al=i[1]|0,this.Bh=i[2]|0,this.Bl=i[3]|0,this.Ch=i[4]|0,this.Cl=i[5]|0,this.Dh=i[6]|0,this.Dl=i[7]|0,this.Eh=i[8]|0,this.El=i[9]|0,this.Fh=i[10]|0,this.Fl=i[11]|0,this.Gh=i[12]|0,this.Gl=i[13]|0,this.Hh=i[14]|0,this.Hl=i[15]|0}get(){let{Ah:r,Al:i,Bh:n,Bl:o,Ch:a,Cl:s,Dh:u,Dl:c,Eh:l,El:d,Fh:p,Fl:y,Gh:_,Gl:T,Hh:R,Hl:B}=this;return[r,i,n,o,a,s,u,c,l,d,p,y,_,T,R,B]}set(r,i,n,o,a,s,u,c,l,d,p,y,_,T,R,B){this.Ah=r|0,this.Al=i|0,this.Bh=n|0,this.Bl=o|0,this.Ch=a|0,this.Cl=s|0,this.Dh=u|0,this.Dl=c|0,this.Eh=l|0,this.El=d|0,this.Fh=p|0,this.Fl=y|0,this.Gh=_|0,this.Gl=T|0,this.Hh=R|0,this.Hl=B|0}_cloneInto(r){return(r||(r=new this.constructor)).set(...this.get()),this._cloneIntoMeta(r)}process(r,i){for(let I=0;I<16;I++,i+=4)Pa[I]=r.getUint32(i),Ra[I]=r.getUint32(i+=4);for(let I=16;I<80;I++){let k=Pa[I-15]|0,D=Ra[I-15]|0,j=Hs(k,D,1)^Hs(k,D,8)^Fy(k,D,7),K=Us(k,D,1)^Us(k,D,8)^jy(k,D,7),G=Pa[I-2]|0,S=Ra[I-2]|0,h=Hs(G,S,19)^pl(G,S,61)^Fy(G,S,6),v=Us(G,S,19)^gl(G,S,61)^jy(G,S,6),w=KT(K,v,Ra[I-7],Ra[I-16]),E=VT(w,j,h,Pa[I-7],Pa[I-16]);Pa[I]=E|0,Ra[I]=w|0}let{Ah:n,Al:o,Bh:a,Bl:s,Ch:u,Cl:c,Dh:l,Dl:d,Eh:p,El:y,Fh:_,Fl:T,Gh:R,Gl:B,Hh:H,Hl:F}=this;for(let I=0;I<80;I++){let k=Hs(p,y,14)^Hs(p,y,18)^pl(p,y,41),D=Us(p,y,14)^Us(p,y,18)^gl(p,y,41),j=p&_^~p&R,K=y&T^~y&B,G=GT(F,D,K,$z[I],Ra[I]),S=WT(G,H,k,j,Zz[I],Pa[I]),h=G|0,v=Hs(n,o,28)^pl(n,o,34)^pl(n,o,39),w=Us(n,o,28)^gl(n,o,34)^gl(n,o,39),E=n&a^n&u^a&u,A=o&s^o&c^s&c;H=R|0,F=B|0,R=_|0,B=T|0,_=p|0,T=y|0,{h:p,l:y}=Xn(l|0,d|0,S|0,h|0),l=u|0,d=c|0,u=a|0,c=s|0,a=n|0,s=o|0;let L=jT(h,w,A);n=zT(L,S,v,E),o=L|0}({h:n,l:o}=Xn(this.Ah|0,this.Al|0,n|0,o|0)),{h:a,l:s}=Xn(this.Bh|0,this.Bl|0,a|0,s|0),{h:u,l:c}=Xn(this.Ch|0,this.Cl|0,u|0,c|0),{h:l,l:d}=Xn(this.Dh|0,this.Dl|0,l|0,d|0),{h:p,l:y}=Xn(this.Eh|0,this.El|0,p|0,y|0),{h:_,l:T}=Xn(this.Fh|0,this.Fl|0,_|0,T|0),{h:R,l:B}=Xn(this.Gh|0,this.Gl|0,R|0,B|0),{h:H,l:F}=Xn(this.Hh|0,this.Hl|0,H|0,F|0),this.set(n,o,a,s,u,c,l,d,p,y,_,T,R,B,H,F)}roundClean(){Ii(Pa,Ra)}destroy(){this.destroyed=!0,Ii(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},zp=class extends uc{constructor(){super(64,tP)}},Kp=class extends uc{constructor(){super(48,eP)}},Xz=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),Jz=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Vp=class extends uc{constructor(){super(28,Xz)}},Gp=class extends uc{constructor(){super(32,Jz)}},ka=En(()=>new Fp,Fs(1)),Qz=En(()=>new jp,Fs(4)),eK=En(()=>new zp,Fs(3)),tK=En(()=>new Kp,Fs(2)),rK=En(()=>new Gp,Fs(6)),iK=En(()=>new Vp,Fs(5))});function $t(e,t,r=()=>{}){if(!Array.isArray(e))throw new TypeError(`"${t}" expected array, got type=${typeof e}`);for(let i=0;i<e.length;i++)r(e[i],`${t}[${i}]`);return e}function yl(e,t=""){if(typeof e!="string"){let r=t&&`"${t}" `;throw new TypeError(r+"expected string, got type="+typeof e)}return e}function Ba(e,t="object"){if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError(t==="object"?"expected valid options object":`"${t}" expected object, got type=${typeof e}`);return e}function js(e,t){if(typeof e!="function")throw new TypeError(`"${t}" is invalid: expected function, got ${typeof e}`);return e}function eo(e,t=""){if(typeof e!="boolean")throw new TypeError(nK(t)+"expected boolean, got type="+typeof e);return e}function Zp(e){if(typeof e=="bigint"){if(!Na(e))throw new RangeError("positive bigint expected, got "+e)}else Wy(e);return e}function Xt(e,t=""){if(typeof e!="number"){let r=t&&`"${t}" `;throw new TypeError(r+"expected number, got type="+typeof e)}if(!Number.isSafeInteger(e)){let r=t&&`"${t}" `;throw new RangeError(r+"expected safe integer, got "+e)}}function bl(e){let t=Zp(e).toString(16);return t.length&1?"0"+t:t}function nP(e){if(typeof e!="string")throw new TypeError("hex string expected, got "+typeof e);return e===""?Yp:BigInt("0x"+e)}function Nr(e){return nP(qp(e))}function fc(e){return nP(qp(Xp(Jn(e)).reverse()))}function $p(e,t){if(zo(t),t===0)throw new Error("zero output length is invalid");e=Zp(e);let r=t*2,i=e.toString(16);if(i.length>r)throw new RangeError("number is too large");return Vy(i.padStart(r,"0"))}function Yy(e,t){return $p(e,t).reverse()}function Xp(e){return Uint8Array.from(Ce(e))}function lc(e){if(typeof e!="string")throw new TypeError("ascii string expected, got "+typeof e);return Uint8Array.from(e,(t,r)=>{let i=t.charCodeAt(0);if(t.length!==1||i>127)throw new RangeError(`string contains non-ASCII character "${e[r]}" with code ${i} at position ${r}`);return i})}function Na(e){return typeof e=="bigint"&&Yp<=e}function Zy(e,t,r){return Na(e)&&Na(t)&&Na(r)&&t<=e&&e<r}function $y(e,t,r,i){if(!Zy(t,r,i))throw new RangeError("expected valid "+e+": "+r+" <= n < "+i+", got "+t)}function hc(e){if(e<Yp)throw new Error("expected non-negative bigint, got "+e);return e===Yp?0:e.toString(2).length}function oP(e,t,r){if(zo(e,"hashLen"),zo(t,"qByteLen"),typeof r!="function")throw new TypeError("hmacFn must be a function");let i=R=>new Uint8Array(R),n=Uint8Array.of(),o=Uint8Array.of(0),a=Uint8Array.of(1),s=1e3,u=i(e),c=i(e),l=0,d=()=>{u.fill(1),c.fill(0),l=0},p=(...R)=>r(c,lt(u,...R)),y=(R=n)=>{c=p(o,R),u=p(),R.length!==0&&(c=p(a,R),u=p())},_=()=>{if(l++>=s)throw new Error("drbg: tried max amount of iterations");let R=0,B=[];for(;R<t;){u=p();let H=u.slice();B.push(H),R+=u.length}return lt(...B)};return(R,B)=>{d(),y(R);let H;for(;(H=B(_()))===void 0;)y();return d(),H}}function yt(e,t={},r={},i="object"){Ba(e,i),Ba(t,"fields"),Ba(r,"optFields");function n(a,s,u){let c=i==="object"?`param "${String(a)}"`:`"${i}.${String(a)}"`,l=e[a];if(!Object.hasOwn(e,a)&&(u?l!==void 0:s!=="function"))throw new TypeError(`${c} is invalid: expected own property`);if(u&&l===void 0)return;let d=typeof l;if(d!==s||l===null)throw new TypeError(`${c} is invalid: expected ${s}, got ${d}`)}let o=(a,s)=>Object.entries(a).forEach(([u,c])=>n(u,c,s));o(t,!1),o(r,!0)}var Ce,Wy,Yo,lt,cc,Qn,mi,Yp,iP,nK,_l,Ca=Br(()=>{g();Go();Ce=(e,t,r)=>Jn(e,t,r),Wy=zo;Yo=qp,lt=(...e)=>XT(...e),cc=e=>Vy(e),Qn=Cp,mi=e=>ml(e),Yp=BigInt(0),iP=BigInt(1),nK=e=>e?`"${e}" `:"";_l=e=>(Xt(e,"n"),(iP<<BigInt(e))-iP)});function vi(e,t){if(t<=Cr)throw new Error("mod: expected positive modulus, got "+t);let r=e%t;return r>=Cr?r:t+r}function hP(e,t,r){if(r<=mt)throw new Error("pow: expected modulus > 1, got "+r);if(typeof t!="bigint")throw new TypeError("invalid exponent: expected bigint, got "+typeof t);if(t<Cr)throw new Error("invalid exponent, negatives unsupported");if(t===Cr)return mt;if(t===mt)return e;let i=e%r;if(i<Cr&&(i+=r),t<uK){let s=mt;for(;t>Cr;)t&mt&&(s=s*i%r),i=i*i%r,t>>=mt;return s}let n=[];for(;t>Cr;)n.push(Number(t&sK)),t>>=Jy;let o=new Array(16);o[0]=mt,o[1]=i;for(let s=2;s<16;s++)o[s]=o[s-1]*i%r;let a=o[n[n.length-1]];for(let s=n.length-2;s>=0;s--){a=a*a%r,a=a*a%r,a=a*a%r,a=a*a%r;let u=n[s];u!==0&&(a=a*o[u]%r)}return a}function Fi(e,t,r){if(r<=mt)throw new Error("pow2: expected modulus > 1, got "+r);if(t<Cr)throw new Error("pow2: expected non-negative exponent, got "+t);let i=e;for(;t-- >Cr;)i*=i,i%=r;return i}function aP(e,t){if(e===Cr)throw new Error("invert: expected non-zero number");if(t<=mt)throw new Error("invert: expected modulus > 1, got "+t);let r=vi(e,t),i=t,n=Cr,o=mt;for(;r!==Cr;){let s=i/r,u=i-r*s,c=n-o*s;i=r,r=u,n=o,o=c}if(i!==mt)throw new Error("invert: does not exist");return vi(n,t)}function dP(e,t){if(t<=mt)throw new Error("invertCt: expected prime modulus > 1, got "+t);let r=vi(e,t);if(r===Cr)throw new Error("invertCt: expected non-zero number");let i=hP(r,t-La,t);if(vi(r*i,t)!==mt)throw new Error("invertCt: does not exist");return i}function Qy(e,t,r){let i=e;if(!i.eql(i.sqr(t),r))throw new Error("Cannot find square root")}function eb(e,t){if((e&mt)===Cr)throw new Error(t+": expected odd modulus, got "+e)}function pP(e,t){let r=e,i=(r.ORDER+mt)/Jy,n=r.pow(t,i);return Qy(r,n,t),n}function cK(e,t){let r=e,i=(r.ORDER-cP)/fP,n=r.mul(t,La),o=r.pow(n,i),a=r.mul(t,o),s=r.mul(r.mul(a,La),o),u=r.mul(a,r.sub(s,r.ONE));return Qy(r,u,t),u}function fK(e){let t=pc(e),r=gP(e),i=r(t,t.neg(t.ONE)),n=r(t,i),o=r(t,t.neg(i)),a=(e+oK)/lP;return((s,u)=>{let c=s,l=c.pow(u,a),d=c.mul(l,i),p=c.mul(l,n),y=c.mul(l,o),_=c.eql(c.sqr(d),u),T=c.eql(c.sqr(p),u);l=c.cmov(l,d,_),d=c.cmov(y,p,T);let R=c.eql(c.sqr(d),u),B=c.cmov(l,d,R);return Qy(c,B,u),B})}function gP(e){if(e<uP)throw new Error("sqrt is not defined for small field");eb(e,"tonelliShanks");let t=e-mt,r=0;for(;t%La===Cr;)t/=La,r++;let i=La,n=pc(e);for(;Xy(n,i)===1;)if(i++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return pP;let o=n.pow(i,t),a=(t+mt)/La;return function(u,c){let l=u;if(l.is0(c))return c;if(Xy(l,c)!==1)throw new Error("Cannot find square root");let d=r,p=l.mul(l.ONE,o),y=l.pow(c,t),_=l.pow(c,a);for(;!l.eql(y,l.ONE);){if(l.is0(y))throw new Error("Cannot find square root: probably non-prime P");let T=1,R=l.sqr(y);for(;!l.eql(R,l.ONE);)if(T++,R=l.sqr(R),T===d)throw new Error("Cannot find square root");let B=mt<<BigInt(d-T-1),H=l.pow(p,B);d=T,p=l.sqr(H),y=l.mul(y,p),_=l.mul(_,H)}return _}}function lK(e){return eb(e,"Fp.sqrt"),e%Jy===uP?pP:e%fP===cP?cK:e%lP===aK?fK(e):gP(e)}function rn(e){if(Ba(e,"field"),typeof e.ORDER!="bigint")throw new TypeError('param "ORDER" is invalid: expected bigint, got '+typeof e.ORDER);Xt(e.BYTES,"BYTES"),Xt(e.BITS,"BITS");for(let t of hK)js(e[t],"field."+t);if(e.BYTES<1||e.BITS<1)throw new Error("invalid field: expected BYTES/BITS > 0");if(e.ORDER<=mt)throw new Error("invalid field: expected ORDER > 1, got "+e.ORDER);return e}function dc(e,t,r=!1){rn(e),$t(t,"nums"),eo(r,"passZero");let i=e,n=new Array(t.length).fill(r?i.ZERO:void 0),o=t.reduce((s,u,c)=>i.is0(u)?s:(n[c]=s,i.mul(s,u)),i.ONE),a=i.inv(o);return t.reduceRight((s,u,c)=>i.is0(u)?s:(n[c]=i.mul(s,n[c]),i.mul(s,u)),a),n}function Xy(e,t){rn(e);let r=e;eb(r.ORDER,"FpLegendre");let i=(r.ORDER-mt)/La,n=r.pow(t,i),o=r.eql(n,r.ONE),a=r.eql(n,r.ZERO),s=r.eql(n,r.neg(r.ONE));if(!o&&!a&&!s)throw new Error("invalid Legendre symbol result");return o?1:a?0:-1}function tb(e,t){return Xy(e,t)!==-1}function dK(e,t){if(t!==void 0&&Wy(t),e<=Cr)throw new Error("invalid n length: expected positive n, got "+e);if(t!==void 0&&t<1)throw new Error("invalid n length: expected positive bit length, got "+t);let r=hc(e);if(t!==void 0&&t<r)throw new Error(`invalid n length: expected nBitLength (${t}) >= bitLen(n) (${r})`);let i=t!==void 0?t:r,n=Math.ceil(i/8);return{nBitLength:i,nByteLength:n}}function pc(e,t={}){return Object.freeze(Jp.prototype),new Jp(e,t)}function mP(e){if(typeof e!="bigint")throw new Error("field order must be bigint");if(e<=mt)throw new Error("field order must be greater than 1");let t=hc(e-mt);return Math.ceil(t/8)}function gc(e){let t=mP(e);return t+Math.ceil(t/2)}function zs(e,t,r=!1){Ce(e);let i=e.length,n=mP(t),o=Math.max(gc(t),16);if(i<o||i>1024)throw new Error("expected "+o+"-1024 bytes of input, got "+i);let a=r?fc(e):Nr(e),s=vi(a,t-mt)+mt;return r?Yy(s,n):$p(s,n)}var Cr,mt,La,uP,Jy,cP,oK,fP,aK,sK,lP,uK,hK,sP,Jp,Ks=Br(()=>{g();Ca();Cr=BigInt(0),mt=BigInt(1),La=BigInt(2),uP=BigInt(3),Jy=BigInt(4),cP=BigInt(5),oK=BigInt(7),fP=BigInt(8),aK=BigInt(9),sK=BigInt(15),lP=BigInt(16),uK=BigInt("0x10000000000000000");hK=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];sP=new WeakMap,Jp=class{constructor(t,r={}){ee(this,"ORDER");ee(this,"BITS");ee(this,"BYTES");ee(this,"isLE");ee(this,"ZERO",Cr);ee(this,"ONE",mt);ee(this,"_lengths");ee(this,"_mod");if(t<=mt)throw new Error("invalid field: expected ORDER > 1, got "+t);let i;this.isLE=!1,r!=null&&typeof r=="object"&&(typeof r.BITS=="number"&&(i=r.BITS),typeof r.sqrt=="function"&&Object.defineProperty(this,"sqrt",{value:r.sqrt,enumerable:!0}),typeof r.isLE=="boolean"&&(this.isLE=r.isLE),r.allowedLengths&&(this._lengths=Object.freeze(r.allowedLengths.slice())),typeof r.modFromBytes=="boolean"&&(this._mod=r.modFromBytes));let{nBitLength:n,nByteLength:o}=dK(t,i);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");this.ORDER=t,this.BITS=n,this.BYTES=o,Object.freeze(this)}create(t){return vi(t,this.ORDER)}isValid(t){if(typeof t!="bigint")throw new TypeError("invalid field element: expected bigint, got "+typeof t);return Cr<=t&&t<this.ORDER}is0(t){return t===Cr}isValidNot0(t){return!this.is0(t)&&this.isValid(t)}isOdd(t){return(t&mt)===mt}neg(t){return vi(-t,this.ORDER)}eql(t,r){return t===r}sqr(t){return vi(t*t,this.ORDER)}add(t,r){return vi(t+r,this.ORDER)}sub(t,r){return vi(t-r,this.ORDER)}mul(t,r){return vi(t*r,this.ORDER)}pow(t,r){return hP(t,r,this.ORDER)}div(t,r){return vi(t*aP(r,this.ORDER),this.ORDER)}sqrN(t){return t*t}addN(t,r){return t+r}subN(t,r){return t-r}mulN(t,r){return t*r}inv(t){return aP(t,this.ORDER)}sqrt(t){let r=sP.get(this);return r||sP.set(this,r=lK(this.ORDER)),r(this,t)}toBytes(t){return this.isLE?Yy(t,this.BYTES):$p(t,this.BYTES)}fromBytes(t,r=!1){Ce(t);let{_lengths:i,BYTES:n,isLE:o,ORDER:a,_mod:s}=this;if(i){if(t.length<1||!i.includes(t.length)||t.length>n)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+t.length);let c=new Uint8Array(n);c.set(t,o?0:c.length-t.length),t=c}if(t.length!==n)throw new Error("Field.fromBytes: expected "+n+" bytes, got "+t.length);let u=o?fc(t):Nr(t);if(s&&(u=vi(u,a)),!r&&!this.isValid(u))throw new Error("invalid field element: outside of range 0..ORDER");return u}invertBatch(t){return dc(this,t,!0)}cmov(t,r,i){return eo(i,"condition"),i?r:t}}});function Ma(e){let t=e;if(typeof t!="function")throw new TypeError('"Point" expected constructor, got type='+typeof e);js(t.fromAffine,"Point.fromAffine"),js(t.fromBytes,"Point.fromBytes"),js(t.fromHex,"Point.fromHex"),Ba(t.BASE,"Point.BASE"),Ba(t.ZERO,"Point.ZERO"),rn(t.Fp),rn(t.Fn)}function _P(e,t){Ma(e),wP(t,e);let r=dc(e.Fp,t.map(i=>i.Z));return t.map((i,n)=>e.fromAffine(i.toAffine(r[n])))}function mK(e,t,r=1){if(!Number.isSafeInteger(e)||e<r||e>t)throw new Error("invalid window size, expected ["+r+".."+t+"], got W="+e)}function vK(e,t){let r=e*(4*t+128);if(r>yP)throw new Error("invalid window size: table would need ~"+Math.ceil(r/2**20)+" MiB, max "+yP/2**20+" MiB")}function ob(e,t){if(e!==void 0){js(e,"randomBytes");try{let r=e(t);if(!Qn(r)||r.length!==t)return}catch{return}return e}}function wP(e,t){$t(e,"points"),e.forEach((r,i)=>{if(!(r instanceof t))throw new Error("invalid point at index "+i)})}function yK(e,t,r){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((i,n)=>{if(!(r===void 0?t.isValid(i):Na(i)&&i<r))throw new Error("invalid scalar at index "+n)})}function ib(e){return SP.get(e)||1}function bK(e,t){let r=e.double(),i=[e];for(let n=1;n<t;n++)i.push(i[n-1].add(r));return i}function _K(e,t){let r=2**t,i=r/2,n=BigInt(r-1),o=[];for(;e>nb;){let a=0;e&wl&&(a=Number(e&n),a>=i&&(a-=r),e-=BigInt(a)),o.push(a),e>>=wl}return o}function wK(e,t,r){let i=2**t,n=i/2,o=BigInt(i-1),a=BigInt(t),s=[];for(let u=0;u<r;u++){let c=Number(e&o);e>>=a,c>n&&(c-=i,e+=wl),s.push(c)}if(e!==nb)throw new Error("invalid wnaf");return s}function SK(e,t,r){let i=0;for(let o of r)i=Math.max(i,o.length);let n=e;for(let o=i-1;o>=0;o--){o!==i-1&&(n=n.double());for(let a=0;a<r.length;a++){let s=r[a][o];if(s){let u=t[a][Math.abs(s)-1>>1];n=n.add(s<0?u.negate():u)}}}return n}function mc(e,t,r,i=!1){if(Ma(e),wP(t,e),eo(i,"allowOversized"),yK(r,e.Fn,i?e.Fn.ORDER**pK:void 0),t.length!==r.length)throw new Error("arrays of points and scalars must have equal length");let n=t.map(a=>bK(a,4)),o=r.map(a=>_K(a,4));return SK(e.ZERO,n,o)}function bP(e,t,r){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return rn(t),t}else return pc(e,{isLE:r})}function EP(e,t,r={},i){if(e!=="weierstrass"&&e!=="edwards")throw new Error('expected curve type "weierstrass" or "edwards"');if(i===void 0&&(i=e==="edwards"),!t||typeof t!="object")throw new Error(`expected valid ${e} CURVE object`);yt(r);for(let u of["p","n","h"]){let c=t[u];if(!(Na(c)&&c!==nb))throw new Error(`CURVE.${u} must be positive bigint`)}let n=bP(t.p,r.Fp,i),o=bP(t.n,r.Fn,i),s=["Gx","Gy","a",e==="weierstrass"?"b":"d"];for(let u of s)if(!n.isValid(t[u]))throw new Error(`CURVE.${u} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:n,Fn:o}}function eg(e,t){return function(i){let n=e(i);return{secretKey:n,publicKey:t(n)}}}var nb,wl,pK,rb,vP,gK,yP,SP,Qp,tg=Br(()=>{g();Ca();Ks();nb=BigInt(0),wl=BigInt(1),pK=BigInt(4),rb=16,vP=128,gK=5,yP=2**31;SP=new WeakMap;Qp=class{constructor(t,r){ee(this,"Point");ee(this,"BASE");ee(this,"ZERO");ee(this,"randomBytes");ee(this,"wnafPrecomputes",new WeakMap);ee(this,"baseCanBeBlinded");ee(this,"bits");Ma(t),this.randomBytes=ob(r,rb),this.Point=t,this.BASE=t.BASE,this.ZERO=t.ZERO,this.bits=t.Fn.BITS}buildWnafTable(t,r,i){let n=Math.ceil(i/r)+1,o=2**(r-1),a=[],s=t;for(let u=0;u<n;u++){let c=s;for(let l=0;l<o;l++)a.push(c),c=c.add(s);s=a[a.length-1].double()}return{W:r,bits:i,windows:n,comp:a}}wnafCachedCT(t,r){let{W:i,windows:n,comp:o}=t,a=2**(i-1),s=wK(r,i,n),u=this.ZERO,c=this.BASE;for(let l=0;l<n;l++){let d=s[l],p=l*a,y=Math.abs(d)-1,_=o[p];for(let R=1;R<a;R++)_=R===y?o[p+R]:_;let T=_.negate();d===0?c=c.add(o[p]):u=u.add(d<0?T:_)}return{p:u,f:c}}getWnafPrecomputes(t,r,i,n){let o=this.wnafPrecomputes.get(r),a=o?.find(s=>s.W===t&&s.bits===i);return a||(a=this.buildWnafTable(r,t,i),typeof n=="function"&&(a={...a,comp:n(a.comp)}),o||(o=[],this.wnafPrecomputes.set(r,o)),o.push(a)),a}assertPoint(t){if(!(t instanceof this.Point))throw new TypeError('"point" expected Point instance, got type='+typeof t)}validateMulInput(t,r){if(this.assertPoint(t),!Zy(r,wl,this.Point.Fn.ORDER))throw new Error("invalid scalar")}runCT(t,r,i,n){let o=ib(t);return o===1?this.fixedWindowCT(t,r,i):this.wnafCachedCT(this.getWnafPrecomputes(o,t,i,n),r)}mulCT(t,r,i){return this.validateMulInput(t,r),this.runCT(t,r,this.bits,i)}mulCTBlinded(t,r,i){if(this.validateMulInput(t,r),this.randomBytes===void 0)throw new Error("randomBytes is required for scalar blinding");let n=this.Point.Fn.BITS+vP,o=this.randomBytes(rb);if(!Qn(o)||o.length!==rb)throw new Error("randomBytes returned invalid byte array");o[0]=o[0]&63|128;let a=r+Nr(o)*this.Point.Fn.ORDER;return this.runCT(t,a,n,i)}fixedWindowCT(t,r,i){let n=gK,o=1<<n,a=_l(n),s=new Array(o);s[0]=this.ZERO;for(let l=1;l<o;l++)s[l]=s[l-1].add(t);let u=Math.ceil(i/n),c=this.ZERO;for(let l=u-1;l>=0;l--){if(l!==u-1)for(let y=0;y<n;y++)c=c.double();let d=Number(r>>BigInt(l*n)&a),p=s[0];for(let y=1;y<o;y++)p=y===d?s[y]:p;c=c.add(p)}return{p:c,f:c}}shouldBlind(t,r){return this.randomBytes===void 0?!1:r===wl?!0:t!==this.BASE?!1:(this.baseCanBeBlinded===void 0&&(this.baseCanBeBlinded=this.mulUnsafe(this.BASE,this.Point.Fn.ORDER).is0()),this.baseCanBeBlinded)}mulSecret(t,r,i,n){return this.shouldBlind(t,i)?this.mulCTBlinded(t,r,n):this.mulCT(t,r,n)}mulUnsafe(t,r,i){if(this.assertPoint(t),!Na(r))throw new Error("invalid scalar");let n=ib(t);if(n===1||r>=this.Point.Fn.ORDER)return mc(this.Point,[t],[r],!0);let o=this.getWnafPrecomputes(n,t,this.bits,i);return this.wnafCachedCT(o,r).p}setWindowSize(t,r){this.assertPoint(t),mK(r,this.bits);let i=Math.ceil((this.bits+vP)/r)+1;vK(i*2**(r-1),this.Point.Fp.BYTES),SP.set(t,r),this.wnafPrecomputes.delete(t)}hasWindowSize(t){return ib(t)!==1}}});function ab(e,t="n"){if(typeof e!="number")throw new TypeError(`wrong u32 integer "${t}": expected number, got type=${typeof e}`);if(!Number.isSafeInteger(e)||e<0||e>4294967295)throw new RangeError(`wrong u32 integer "${t}": expected 0..4294967295, got ${e}`);return e}function xP(e){return ab(e,"x"),(e&e-1)===0&&e!==0}function EK(e){if(ab(e),e<=1)return 1;if(e>2147483648)throw new Error("nextPowerOfTwo overflow: result does not fit u32");return 1<<rg(e-1)+1>>>0}function rg(e){return ab(e),31-Math.clz32(e)}function OP(e,t,r,i,n){rn(e);let o=e,a=r||((d,p)=>new Array(d).fill(p??o.ZERO)),s=d=>{if(Array.isArray(d))return!0;if(!ArrayBuffer.isView(d))return!1;let p=d;return typeof p.length=="number"&&typeof p.slice=="function"&&typeof p[Symbol.iterator]=="function"},u=(d,p)=>{if(!s(p))throw new TypeError(`"${d}" expected polynomial, got type=${typeof p}`)},c=(d,p)=>{u("a",d);let y=d.length;if(p!==void 0&&(u("b",p),p.length!==y))throw new Error(`poly: mismatched lengths ${y} vs ${p.length}`);if(n!==void 0&&y!==n)throw new Error(`poly: expected fixed length ${n}, got ${y}`);return y};function l(d,p,y=!1,_){if(!xP(p))throw new Error("poly.lagrange: expected power of two length, got "+p);let T=_||(y?t.brp(rg(p)):t.roots(rg(p)));for(let R=0;R<p;R++)if(o.eql(d,T[R]))return R;return-1}return{roots:t,create:a,length:n,extend:(d,p)=>{c(d);let y=a(p,o.ZERO);for(let _=0;_<Math.min(d.length,p);_++)y[_]=d[_];return y},degree:d=>{c(d);for(let p=d.length-1;p>=0;p--)if(!o.is0(d[p]))return p;return-1},add:(d,p)=>{let y=c(d,p),_=a(y);for(let T=0;T<y;T++)_[T]=o.add(d[T],p[T]);return _},sub:(d,p)=>{let y=c(d,p),_=a(y);for(let T=0;T<y;T++)_[T]=o.sub(d[T],p[T]);return _},dot:(d,p)=>{let y=c(d,p),_=a(y);for(let T=0;T<y;T++)_[T]=o.mul(d[T],p[T]);return _},mul:(d,p)=>{if(s(p)){let y=c(d,p);if(i){let _=i.direct(d,!1,!0),T=i.direct(p,!1,!0);for(let R=0;R<_.length;R++)_[R]=o.mul(_[R],T[R]);return i.inverse(_,!0,!1)}else{let _=a(y);for(let T=0;T<y;T++)for(let R=0;R<y;R++){let B=(T+R)%y;_[B]=o.add(_[B],o.mul(d[T],p[R]))}return _}}else{let y=a(c(d));for(let _=0;_<y.length;_++)y[_]=o.mul(d[_],p);return y}},convolve(d,p){u("a",d),u("b",p);let y=EK(d.length+p.length-1);return this.mul(this.extend(d,y),this.extend(p,y))},shift(d,p){u("p",d);let y=a(d.length);if(n!==void 0&&d.length!==n)throw new Error(`poly: expected fixed length ${n}, got ${d.length}`);if(!d.length)return y;y[0]=d[0];for(let _=1,T=o.ONE;_<d.length;_++)T=o.mul(T,p),y[_]=o.mul(d[_],T);return y},clone:d=>{c(d);let p=a(d.length);for(let y=0;y<d.length;y++)p[y]=d[y];return p},eval:(d,p)=>{c(d,p);let y=o.ZERO;for(let _=0;_<d.length;_++)y=o.add(y,o.mul(d[_],p[_]));return y},monomial:{basis:(d,p)=>{let y=a(p),_=o.ONE;for(let T=0;T<p;T++)y[T]=_,_=o.mul(_,d);return y},eval:(d,p)=>{c(d);let y=o.ZERO;for(let _=d.length-1;_>=0;_--)y=o.add(o.mul(y,p),d[_]);return y}},lagrange:{basis:(d,p,y=!1,_)=>{if(!xP(p))throw new Error("poly.lagrange: expected power of two length, got "+p);let T=rg(p),R=_||(y?t.brp(T):t.roots(T)),B=a(p),H=l(d,p,y,_);if(H!==-1)return B[H]=o.ONE,B;let F=o.pow(d,BigInt(p)),I=o.mul(o.sub(F,o.ONE),o.inv(BigInt(p))),k=a(p);for(let j=0;j<p;j++)k[j]=o.sub(d,R[j]);let D=o.invertBatch(k);for(let j=0;j<p;j++)B[j]=o.mul(I,o.mul(R[j],D[j]));return B},eval(d,p,y=!1){c(d);let _=l(p,d.length,y);if(_!==-1)return d[_];let T=this.basis(p,d.length,y),R=o.ZERO;for(let B=0;B<d.length;B++)o.is0(d[B])||(R=o.add(R,o.mul(d[B],T[B])));return R}},vanishing(d){if(u("roots",d),n!==void 0&&d.length!==n)throw new Error(`poly: expected fixed length ${n}, got ${d.length}`);let p=a(d.length+1,o.ZERO);p[0]=o.ONE;for(let y of d){let _=o.neg(y);for(let T=p.length-1;T>0;T--)p[T]=o.add(o.mul(p[T],_),p[T-1]);p[0]=o.mul(p[0],_)}return p}}}var IP=Br(()=>{g();Ks()});function Vs(e,t){if(Xt(e),Xt(t),t<0||t>4)throw new Error("invalid I2OSP length: "+t);if(e<0||e>2**(8*t)-1)throw new Error("invalid I2OSP input: "+e);let r=Array.from({length:t}).fill(0);for(let i=t-1;i>=0;i--)r[i]=e&255,e>>>=8;return new Uint8Array(r)}function OK(e,t){let r=new Uint8Array(e.length);for(let i=0;i<e.length;i++)r[i]=e[i]^t[i];return r}function RP(e){if(!Qn(e)&&typeof e!="string")throw new Error("DST must be Uint8Array or ascii string");let t=typeof e=="string"?lc(e):e;if(t.length===0)throw new Error("DST must be non-empty");return t}function IK(e,t,r,i){if(Ce(e),Xt(r),typeof i!="function")throw new Error("expand_message_xmd: expected hash function");Xt(i.outputLen,"hash.outputLen"),Xt(i.blockLen,"hash.blockLen"),t=RP(t),t.length>255&&(t=i(lt(lc("H2C-OVERSIZE-DST-"),t)));let{outputLen:n,blockLen:o}=i,a=Math.ceil(r/n);if(r>65535||a>255)throw new Error("expand_message_xmd: invalid lenInBytes");let s=lt(t,Vs(t.length,1)),u=new Uint8Array(o),c=Vs(r,2),l=new Array(a),d=i(lt(u,e,c,Vs(0,1),s));l[0]=i(lt(d,Vs(1,1),s));for(let y=1;y<a;y++){let _=[OK(d,l[y-1]),Vs(y+1,1),s];l[y]=i(lt(..._))}return lt(...l).slice(0,r)}function AK(e,t,r,i,n){if(Ce(e),Xt(r),Xt(i,"k"),i<0)throw new Error("expand_message_xof: invalid k");if(typeof n!="function")throw new Error("expand_message_xof: expected XOF function");if(typeof n.create!="function")throw new Error("expand_message_xof: expected XOF create");if(t=RP(t),r<0||r>65535)throw new Error("expand_message_xof: invalid lenInBytes");if(t.length>255){let o=Math.ceil(2*i/8);t=n.create({dkLen:o}).update(lc("H2C-OVERSIZE-DST-")).update(t).digest()}if(t.length>255)throw new Error("expand_message_xof: invalid DST");return n.create({dkLen:r}).update(e).update(Vs(r,2)).update(t).update(Vs(t.length,1)).digest()}function sb(e,t,r){yt(r,{p:"bigint",m:"number",k:"number",hash:"function"});let{p:i,k:n,m:o,hash:a,expand:s,DST:u}=r;if(Xt(a.outputLen,"valid hash"),Ce(e),Xt(t),Xt(o,"m"),Xt(n,"k"),i<=BigInt(1))throw new Error("hash_to_field: expected valid field characteristic");if(t<1)throw new Error("hash_to_field: expected count >= 1");if(o<1)throw new Error("hash_to_field: expected m >= 1");if(n<0)throw new Error("hash_to_field: invalid k");let c=i.toString(2).length,l=Math.ceil((c+n)/8),d=t*o*l,p;if(s==="xmd")p=IK(e,u,d,a);else if(s==="xof")p=AK(e,u,d,n,a);else if(s==="_internal_pass")p=e;else throw new Error('expand must be "xmd" or "xof"');let y=new Array(t);for(let _=0;_<t;_++){let T=new Array(o);for(let R=0;R<o;R++){let B=l*(R+_*o),H=p.subarray(B,B+l);T[R]=vi(xK(H),i)}y[_]=T}return y}function kP(e,t){rn(e),$t(t,"map");let r=t.map((i,n)=>{if($t(i,"map["+n+"]"),i.length<1)throw new Error("isogenyMap: expected non-empty coefficients");return Array.from(i).reverse()});return(i,n)=>{let[o,a,s,u]=r.map(p=>p.reduce((y,_)=>e.add(e.mul(y,i),_))),c=e.is0(a)||e.is0(u),[l,d]=dc(e,[a,u],!0);return i=e.mul(o,l),n=e.mul(n,e.mul(s,d)),c?{x:e.ZERO,y:e.ZERO}:{x:i,y:n}}}function BP(e,t,r){if(typeof t!="function")throw new Error("mapToCurve() must be defined");yt(r);let i=u=>Object.freeze({...u,DST:Qn(u.DST)?Xp(u.DST):u.DST,...u.encodeDST===void 0?{}:{encodeDST:Qn(u.encodeDST)?Xp(u.encodeDST):u.encodeDST}}),n=i(r),o=u=>u&&u.DST!==void 0?{DST:u.DST}:void 0;function a(u){return e.fromAffine(t(u))}function s(u){let c=u.clearCofactor();return c.equals(e.ZERO)?e.ZERO:(c.assertValidity(),c)}return Object.freeze({get defaults(){return i(n)},Point:e,hashToCurve(u,c){let l=Object.assign({},n,o(c)),d=sb(u,2,l),p=a(d[0]),y=a(d[1]);return s(p.add(y))},encodeToCurve(u,c){let l=n.encodeDST===void 0?{}:{DST:n.encodeDST},d=Object.assign({},n,l,o(c)),p=sb(u,1,d),y=a(p[0]);return s(y)},mapToCurve(u){if(n.m===1){if(typeof u!="bigint")throw new Error("expected bigint (m=1)");return s(a([u]))}if(!Array.isArray(u))throw new Error("expected array of bigints");if(u.length!==n.m)throw new Error(`expected array of ${n.m} bigints`);for(let c of u)if(typeof c!="bigint")throw new Error("expected array of bigints");return s(a(u))},hashToScalar(u,c){let l=e.Fn.ORDER,d=Object.assign({},n,{DST:TK},o(c),{p:l,m:1});return sb(u,1,d)[0][0]}})}function PK(e,t){let r=rn(e),i=r.ORDER,n=AP;for(let T=i-to;T%Da===AP;T/=Da)n+=to;let o=n,a=Da<<o-to-to,s=a*Da,u=(i-to)/s,c=(u-to)/Da,l=s-to,d=a,p=r.pow(t,u),y=r.pow(t,(u+to)/Da),_=(T,R)=>{let B=p,H=r.pow(R,l),F=r.sqr(H);F=r.mul(F,R);let I=r.mul(T,F);I=r.pow(I,c),I=r.mul(I,H),H=r.mul(I,R),F=r.mul(I,T);let k=r.mul(F,H);I=r.pow(k,d);let D=r.eql(I,r.ONE);H=r.mul(F,y),I=r.mul(k,B),F=r.cmov(H,F,D),k=r.cmov(I,k,D);for(let j=o;j>to;j--){let K=j-Da;K=Da<<K-to;let G=r.pow(k,K),S=r.eql(G,r.ONE);H=r.mul(F,B),B=r.mul(B,B),G=r.mul(k,B),F=r.cmov(H,F,S),k=r.cmov(G,k,S)}return{isValid:!r.is0(R)&&(D||r.is0(T)),value:F}};if(r.ORDER%PP===TP){let T=(r.ORDER-TP)/PP,R=r.sqrt(r.neg(t));_=(B,H)=>{let F=r.sqr(H),I=r.mul(B,H);F=r.mul(F,I);let k=r.pow(F,T);k=r.mul(k,I);let D=r.mul(k,R),j=r.mul(r.sqr(k),H),K=r.eql(j,B),G=r.cmov(D,k,K);return{isValid:!r.is0(H)&&K,value:G}}}return _}function NP(e,t){let r=rn(e);yt(t,{},{},"opts");let{A:i,B:n,Z:o}=t;if(!r.isValidNot0(i)||!r.isValidNot0(n)||!r.isValid(o))throw new Error("mapToCurveSimpleSWU: invalid opts");if(r.eql(o,r.neg(r.ONE))||tb(r,o))throw new Error("mapToCurveSimpleSWU: invalid opts");let a=r.mul(n,r.inv(r.mul(o,i))),s=r.add(r.add(r.mul(r.sqr(a),a),r.mul(i,a)),n);if(!tb(r,s))throw new Error("mapToCurveSimpleSWU: invalid opts");let u=PK(r,o);if(!r.isOdd)throw new Error("Field does not have .isOdd()");return c=>{let l,d,p,y,_,T,R,B;l=r.sqr(c),l=r.mul(l,o),d=r.sqr(l),d=r.add(d,l),p=r.add(d,r.ONE),p=r.mul(p,n),y=r.cmov(o,r.neg(d),!r.eql(d,r.ZERO)),y=r.mul(y,i),d=r.sqr(p),T=r.sqr(y),_=r.mul(T,i),d=r.add(d,_),d=r.mul(d,p),T=r.mul(T,y),_=r.mul(T,n),d=r.add(d,_),R=r.mul(l,p);let{isValid:H,value:F}=u(d,T);B=r.mul(l,c),B=r.mul(B,F),R=r.cmov(R,p,H),B=r.cmov(B,F,H);let I=r.isOdd(c)===r.isOdd(B);B=r.cmov(r.neg(B),B,I);let k=dc(r,[y],!0)[0];return R=r.mul(R,k),{x:R,y:B}}}var AP,to,Da,TP,PP,xK,TK,CP=Br(()=>{g();Ca();Ks();AP=BigInt(0),to=BigInt(1),Da=BigInt(2),TP=BigInt(3),PP=BigInt(4),xK=Nr;TK="HashToScalar-"});function ub(e){yt(e,{name:"string",hash:"function"},{hashToScalar:"function",validatePoint:"function",parsePublicKey:"function",adjustScalar:"function",adjustPoint:"function",challenge:"function",adjustNonces:"function",adjustSecret:"function",adjustPublic:"function",adjustGroupCommitmentShare:"function",adjustDKG:"function"}),Ma(e.Point);let{Point:t}=e,r=e.Fn===void 0?t.Fn:e.Fn,i=e.hash,n=e.hashToScalar===void 0?(C,V={DST:new Uint8Array})=>{let Y=i(lt(V.DST,C));return r.create(r.isLE?fc(Y):Nr(Y))}:e.hashToScalar,o=Vo(e.H1!==void 0?e.H1:e.name+"rho"),a=Vo(e.H2!==void 0?e.H2:e.name+"chal"),s=Vo(e.H3!==void 0?e.H3:e.name+"nonce"),u=Vo(e.H4!==void 0?e.H4:e.name+"msg"),c=Vo(e.H5!==void 0?e.H5:e.name+"com"),l=Vo(e.HDKG!==void 0?e.HDKG:e.name+"dkg"),d=Vo(e.HID!==void 0?e.HID:e.name+"id"),p=C=>n(C,{DST:o}),y=C=>n(C,{DST:a}),_=C=>n(C,{DST:s}),T=C=>i(lt(u,C)),R=C=>i(lt(c,C)),B=C=>n(C,{DST:l}),H=C=>n(C,{DST:d}),F=(C=mi)=>{if(typeof C!="function")throw new TypeError('"rng" expected function, got type='+typeof C);let V=zs(C(gc(r.ORDER)),r.ORDER,r.isLE);return r.isLE?fc(V):Nr(V)},I=C=>C.toBytes(),k=C=>{let V=t.fromBytes(C);return e.validatePoint&&e.validatePoint(V),V},D=(C,V)=>({identifier:C,hiding:I(t.BASE.multiply(r.fromBytes(V.hiding))),binding:I(t.BASE.multiply(r.fromBytes(V.binding)))}),j=e.adjustPoint===void 0?C=>C:e.adjustPoint,K=C=>{if(!r.isValid(C)||r.is0(C))throw new Error("Invalid identifier "+C);return C},G=C=>Yo(r.toBytes(K(C))),S=(C,V="identifier")=>{yl(C,V);let Y=K(r.fromBytes(cc(C)));if(G(Y)!==C)throw new Error("expected canonical identifier hex");return Y},h={encode:(C,V)=>{let Y=lt(I(C),r.toBytes(V));return e.adjustTx&&(Y=e.adjustTx.encode(Y)),Y},decode:C=>{e.adjustTx&&(C=e.adjustTx.decode(C));let V=C.subarray(0,-r.BYTES),Y=k(V);if(I(Y).length!==V.length)throw new Error("invalid signature encoding");let X=r.fromBytes(C.subarray(-r.BYTES));return{R:Y,z:X}}},v=(C=mi)=>{let V=F(C);e.adjustScalar&&(V=e.adjustScalar(V));let Y=t.BASE.multiply(V);return{scalar:V,point:Y}},w="roots are unavailable in FROST polynomial mode",E={info:{G:r.ZERO,oddFactor:r.ZERO,powerOfTwo:0},roots(){throw new Error(w)},brp(){throw new Error(w)},inverse(){throw new Error(w)},omega(){throw new Error(w)},clear(){}},A=OP(r,E),L=(C,V)=>mc(t,C,V),N=(C,V)=>{if(!V.length)throw new Error("empty coefficients");return A.monomial.eval(V,C)},x=(C,V)=>{let Y="invalid parameters";if(!C.some(le=>r.eql(le,V)))throw new Error(Y);let X=new Set(C);if(X.size!==C.length)throw new Error(Y);if(!X.has(V))throw new Error(Y);let de=r.ONE,ue=r.ONE;for(let le of C)r.eql(le,V)||(de=r.mul(de,le),ue=r.mul(ue,r.sub(le,V)));return r.div(de,ue)},m=(C,V)=>{let Y=A.monomial.basis(C,V.length);return L(V,Y)},O=(C,V,Y,X=mi)=>{if(ro(C),V!==void 0&&Ce(V,r.BYTES,"secret"),Y!==void 0&&$t(Y,"coeffs"),typeof X!="function")throw new TypeError('"rng" expected function, got type='+typeof X);let de=V===void 0?F(X):r.fromBytes(V);if(!Y){Y=[];for(let ye=0;ye<C.min-1;ye++)Y.push(F(X))}if(Y.length!==C.min-1)throw new Error("wrong coefficients length");let ue=[de,...Y],le=ue.map(ye=>t.BASE.multiply(ye));return{coefficients:ue,commitment:le,secret:de}},z={challenge:(C,V,Y)=>B(lt(r.toBytes(C),I(V),I(Y))),compute(C,V,Y,X=mi){if(V.length<1)throw new Error("coefficients should have at least one element");let{point:de,scalar:ue}=v(X),le=Y[0],ye=this.challenge(C,le,de),ge=r.add(ue,r.mul(V[0],ye));return h.encode(de,ge)},validate(C,V,Y){if(V.length<1)throw new Error("commitment should have at least one element");let{R:X,z:de}=h.decode(Y),ue=k(V[0]),le=this.challenge(C,ue,X);if(!X.equals(t.BASE.multiplyUnsafe(de).subtract(ue.multiplyUnsafe(le))))throw new Error("invalid proof of knowledge")}},W={challenge:(C,V,Y)=>e.challenge?e.challenge(C,V,Y):y(lt(I(C),I(V),Y)),sign(C,V,Y=mi){let{point:X,scalar:de}=v(Y),ue=t.BASE.multiply(V),le=this.challenge(X,ue,C),ye=r.add(de,r.mul(le,V));return[X,ye]},verify(C,V,Y,X){e.adjustPoint&&(X=e.adjustPoint(X)),e.adjustPoint&&(V=e.adjustPoint(V));let de=this.challenge(V,X,C),ue=t.BASE.multiplyUnsafe(Y),le=X.multiplyUnsafe(de),ye=ue.subtract(le).subtract(V);return ye.clearCofactor&&(ye=ye.clearCofactor()),t.ZERO.equals(ye)}},te=(C,V,Y)=>{if(!t.BASE.multiply(Y).equals(m(C,V)))throw new Error("invalid secret share")},ie={fromNumber(C){if(!Number.isSafeInteger(C))throw new Error("expected safe interger");return G(BigInt(C))},derive(C){return yl(C,"s"),G(H(Vo(C)))}},se=(C,V=mi)=>_(lt(V(32),r.toBytes(C))),ae=(C,V,Y)=>{let X=V.map(Ee=>[Ee.identifier,S(Ee.identifier),k(Ee.hiding),k(Ee.binding)]);X.sort((Ee,Re)=>Ee[1]<Re[1]?-1:Ee[1]>Re[1]?1:0);let de=[];for(let[Ee,Re,ze,xi]of X)de.push(r.toBytes(Re),I(ze),I(xi));let ue=R(lt(...de)),le=lt(I(C),T(Y),ue),ye={};for(let[Ee,Re]of X)ye[Ee]=p(lt(le,r.toBytes(Re)));let ge=t.ZERO,be=[],ke=[];for(let[Ee,Re,ze,xi]of X){if(t.ZERO.equals(ze)||t.ZERO.equals(xi))throw new Error("infinity commitment");ge=ge.add(ze),be.push(xi),ke.push(ye[Ee])}let Le=ge.add(L(be,ke));return{identifiers:X.map(Ee=>Ee[1]),groupCommitment:Le,bindingFactors:ye}},we=(C,V,Y,X)=>{let de=j(k(C)),ue=S(X),{identifiers:le,groupCommitment:ye,bindingFactors:ge}=ae(de,V,Y),be=ge[X],ke=x(le,ue),Le=W.challenge(ye,de,Y);return{lambda:ke,challenge:Le,bindingFactor:be,groupCommitment:ye}};Object.freeze(ie);let ve={Identifier:ie,DKG:Object.freeze({round1:(C,V,Y,X=mi)=>{let de=S(C,"id");ro(V);let{coefficients:ue,commitment:le}=O(V,Y,void 0,X),ye=z.compute(de,ue,le,X),ge=le.map(I),be={identifier:G(de),commitment:ge,proofOfKnowledge:ye},ke={identifier:de,coefficients:ue,commitment:le.map(I),signers:{min:V.min,max:V.max},step:1};return{public:be,secret:ke}},round2:(C,V)=>{if(yt(C,{identifier:"bigint",commitment:"object",signers:"object"},{coefficients:"object",round2Cache:"object",step:"number"},"secret"),ro(C.signers,"secret.signers"),$t(V,"others"),V.length!==C.signers.max-1)throw new Error("wrong number of round1 packages");if(!C.coefficients||C.step===3)throw new Error("round3 package used in round2");if(C.round2Cache!==void 0)return C.round2Cache;let Y={};for(let X of V){if(X.commitment.length!==C.signers.min)throw new Error("wrong number of commitments");let de=S(X.identifier);if(de===C.identifier)throw new Error("duplicate id="+G(de));z.validate(de,X.commitment,X.proofOfKnowledge);for(let le of X.commitment)k(le);if(Y[X.identifier])throw new Error("Duplicate id="+de);let ue=r.toBytes(N(de,C.coefficients));Y[X.identifier]={identifier:G(C.identifier),signingShare:ue}}return C.round2Cache=Y,C.step=2,Y},round3:(C,V,Y)=>{if(yt(C,{identifier:"bigint",commitment:"object",signers:"object"},{coefficients:"object",round2Cache:"object",step:"number"},"secret"),ro(C.signers,"secret.signers"),$t(V,"round1"),$t(Y,"round2"),V.length!==C.signers.max-1)throw new Error("wrong length of round1 packages");if(!C.coefficients||C.step!==2)throw new Error("round2 package used in round3");if(Y.length!==V.length)throw new Error("wrong length of round2 packages");let X={};for(let Ee of V){if(!Ee.identifier||!Ee.commitment)throw new Error("wrong round1 share");X[Ee.identifier]={...Ee}}for(let Ee of Y){if(!Ee.identifier||!Ee.signingShare)throw new Error("wrong round2 share");if(!X[Ee.identifier])throw new Error("round1 share for "+Ee.identifier+" is missing");X[Ee.identifier].signingShare=Ee.signingShare}if(Object.keys(X).length!==V.length)throw new Error("mismatch identifiers between rounds");let de=r.ZERO;if(C.commitment.length!==C.signers.min)throw new Error("wrong commitments length");let ue=C.commitment.map(k),le=N(C.identifier,C.coefficients);te(C.identifier,ue,le);let ye=ue.map(I),ge={[G(C.identifier)]:ye};for(let Ee in X){let Re=X[Ee];if(!Re.signingShare||!Re.commitment)throw new Error("mismatch identifiers");let ze=S(Ee),xi=r.fromBytes(Re.signingShare),kt=Re.commitment.map(k);te(C.identifier,kt,xi),de=r.add(de,xi);let Et=G(ze);if(ge[Et])throw new Error("duplicated id="+Et);ge[Et]=Re.commitment}de=r.add(de,le);let be=new Array(C.signers.min).fill(t.ZERO);for(let Ee in ge){let Re=ge[Ee];if(Re.length!==C.signers.min)throw new Error("wrong commitments length");for(let ze=0;ze<Re.length;ze++)be[ze]=be[ze].add(k(Re[ze]))}let ke=be.map(I),Le={};for(let Ee in ge)Le[Ee]=I(m(S(Ee),be));let me={public:{signers:{min:C.signers.min,max:C.signers.max},commitments:ke,verifyingShares:Object.fromEntries(Object.entries(Le).map(([Ee,Re])=>[Ee,Re.slice()]))},secret:{identifier:G(C.identifier),signingShare:r.toBytes(de)}};e.adjustDKG&&(me=e.adjustDKG(me));for(let Ee=0;Ee<C.coefficients.length;Ee++)C.coefficients[Ee]-=C.coefficients[Ee];return delete C.coefficients,delete C.round2Cache,C.step=3,me},clean(C){if(yt(C,{identifier:"bigint",commitment:"object",signers:"object"},{coefficients:"object",round2Cache:"object",step:"number"},"secret"),C.identifier-=C.identifier,C.coefficients)for(let V=0;V<C.coefficients.length;V++)C.coefficients[V]-=C.coefficients[V];delete C.round2Cache,C.step=3}}),trustedDealer(C,V,Y,X=mi){if(ro(C),V===void 0){V=[];for(let be=1;be<=C.max;be++)V.push(ie.fromNumber(be))}else if($t(V,"identifiers"),V.length!==C.max)throw new Error("identifiers should be array of "+C.max);let de={};for(let be of V){let ke=S(be);if(be in de)throw new Error("duplicated id="+be);de[be]=ke}let ue=O(C,Y,void 0,X),le=ue.commitment.map(I),ye={},ge={};for(let be of V){let ke=N(de[be],ue.coefficients);ge[be]=I(t.BASE.multiply(ke)),ye[be]={identifier:be,signingShare:r.toBytes(ke)}}return{public:{signers:{min:C.min,max:C.max},commitments:le,verifyingShares:ge},secretShares:ye}},validateSecret(C,V){yt(C,{identifier:"string",signingShare:"object"},{},"secret"),Ce(C.signingShare,r.BYTES,"secret.signingShare"),yt(V,{signers:"object",commitments:"object",verifyingShares:"object"},{},"pub"),ro(V.signers,"pub.signers"),$t(V.commitments,"pub.commitments");let Y=S(C.identifier),X=V.commitments.map(k),de=r.fromBytes(C.signingShare);te(Y,X,de)},commit(C,V=mi){if(yt(C,{identifier:"string",signingShare:"object"},{},"secret"),Ce(C.signingShare,r.BYTES,"secret.signingShare"),typeof V!="function")throw new TypeError('"rng" expected function, got type='+typeof V);let Y=r.fromBytes(C.signingShare),X=se(Y,V),de=se(Y,V),ue={hiding:r.toBytes(X),binding:r.toBytes(de)};return{nonces:ue,commitments:D(C.identifier,ue)}},signShare(C,V,Y,X,de){yt(C,{identifier:"string",signingShare:"object"},{},"secret"),Ce(C.signingShare,r.BYTES,"secret.signingShare"),yt(V,{signers:"object",commitments:"object",verifyingShares:"object"},{},"pub"),ro(V.signers,"pub.signers"),$t(V.commitments,"pub.commitments"),yt(Y,{hiding:"object",binding:"object"},{},"nonces"),Ce(Y.hiding,r.BYTES,"nonces.hiding"),Ce(Y.binding,r.BYTES,"nonces.binding"),$t(X,"commitmentList"),Ce(de,void 0,"msg"),LP(V.signers,X.length);let ue=r.fromBytes(Y.hiding),le=r.fromBytes(Y.binding);if(r.is0(ue)||r.is0(le))throw new Error("signing nonces already used");let ye={identifier:C.identifier,hiding:I(t.BASE.multiply(ue)),binding:I(t.BASE.multiply(le))},ge=X.find(Ft=>Ft.identifier===C.identifier);if(!ge)throw new Error("missing signer commitment");if(Yo(ge.hiding)!==Yo(ye.hiding)||Yo(ge.binding)!==Yo(ye.binding))throw new Error("incorrect signer commitment");e.adjustSecret&&(C=e.adjustSecret(C,V)),e.adjustPublic&&(V=e.adjustPublic(V));let be=r.fromBytes(C.signingShare),{lambda:ke,challenge:Le,bindingFactor:me,groupCommitment:Ee}=we(V.commitments[0],X,de,C.identifier),Re=e.adjustNonces?e.adjustNonces(Ee,Y):Y,ze=e.adjustNonces?r.fromBytes(Re.hiding):ue,xi=e.adjustNonces?r.fromBytes(Re.binding):le,kt=r.mul(r.mul(ke,be),Le),Et=r.mul(xi,me),ad=r.toBytes(r.add(r.add(ze,Et),kt));return Y.hiding.fill(0),Y.binding.fill(0),ad},verifyShare(C,V,Y,X,de){yt(C,{signers:"object",commitments:"object",verifyingShares:"object"},{},"pub"),ro(C.signers,"pub.signers"),$t(C.commitments,"pub.commitments"),$t(V,"commitmentList"),Ce(Y,void 0,"msg"),S(X),Ce(de,r.BYTES,"sigShare"),e.adjustPublic&&(C=e.adjustPublic(C));let ue=V.find(xi=>xi.identifier===X);if(!ue)throw new Error("cannot find identifier commitment");let le=k(C.verifyingShares[X]),ye=k(ue.hiding),ge=k(ue.binding),{lambda:be,challenge:ke,bindingFactor:Le,groupCommitment:me}=we(C.commitments[0],V,Y,X),Ee=ye.add(ge.multiplyUnsafe(Le));e.adjustGroupCommitmentShare&&(Ee=e.adjustGroupCommitmentShare(me,Ee));let Re=t.BASE.multiplyUnsafe(r.fromBytes(de)),ze=Ee.add(le.multiplyUnsafe(r.mul(ke,be)));return Re.equals(ze)},aggregate(C,V,Y,X){yt(C,{signers:"object",commitments:"object",verifyingShares:"object"},{},"pub"),ro(C.signers,"pub.signers"),$t(C.commitments,"pub.commitments"),$t(V,"commitmentList"),Ce(Y,void 0,"msg"),yt(X,{},{},"sigShares");let de=C;e.adjustPublic&&(C=e.adjustPublic(C));try{LP(C.signers,V.length)}catch{throw new Gs("aggregation failed",[])}let ue=V.map(ke=>ke.identifier),le=new Set;for(let ke of ue){if(le.has(ke))throw new Gs("aggregation failed",[]);le.add(ke)}if(ue.length!==Object.keys(X).length)throw new Gs("aggregation failed",[]);for(let ke of ue)if(!(ke in X)||!(ke in C.verifyingShares))throw new Gs("aggregation failed",[]);let ye=k(C.commitments[0]),{groupCommitment:ge}=ae(ye,V,Y),be=r.ZERO;for(let ke of ue)be=r.add(be,r.fromBytes(X[ke]));if(!W.verify(Y,ge,be,ye)){let ke=[];for(let Le of ue)this.verifyShare(de,V,Y,Le,X[Le])||ke.push(Le);throw new Gs("aggregation failed",ke)}return h.encode(ge,be)},sign(C,V){let Y=r.fromBytes(V);e.adjustScalar&&(Y=e.adjustScalar(Y));let[X,de]=W.sign(C,Y);return h.encode(X,de)},verify(C,V,Y){let X=e.parsePublicKey?e.parsePublicKey(Y):k(Y),{R:de,z:ue}=h.decode(C);return W.verify(V,de,ue,X)},combineSecret(C,V){if($t(C,"shares"),ro(V),C.length<V.min||C.length>V.max)throw new Error("wrong secret shares array");let Y=[],X={};for(let le of C){let ye=S(le.identifier),ge=G(ye);if(X[ge])throw new Error("duplicated id="+ge);X[ge]=!0,Y.push([ye,r.fromBytes(le.signingShare)])}let de=Y.map(([le])=>le),ue=r.ZERO;for(let[le,ye]of Y)ue=r.add(ue,r.mul(ye,x(de,le)));return r.toBytes(ue)},utils:Object.freeze({Fn:r,randomScalar:(C=mi)=>r.toBytes(v(C).scalar),generateSecretPolynomial:(C,V,Y,X)=>{let de=O(C,V,Y,X);return{...de,commitment:de.commitment.map(I)}}})};return Object.freeze(ve)}var ro,LP,Gs,MP=Br(()=>{g();Go();Ca();tg();IP();Ks();ro=(e,t="signers")=>{if(yt(e,{min:"number",max:"number"},{},t),Xt(e.min,t+".min"),Xt(e.max,t+".max"),e.min<2||e.max<2||e.min>e.max)throw new Error("Wrong signers info: min="+e.min+" max="+e.max)},LP=(e,t)=>{if(t<e.min||t>e.max)throw new Error("Wrong number of commitments="+t)},Gs=class extends Error{constructor(r,i){super(r);ee(this,"cheaters");this.cheaters=i}}});var fb={};Pf(fb,{_HMAC:()=>Sl,hmac:()=>cb});var Sl,cb,ig=Br(()=>{g();Go();Sl=class{constructor(t,r){ee(this,"oHash");ee(this,"iHash");ee(this,"blockLen");ee(this,"outputLen");ee(this,"canXOF",!1);ee(this,"finished",!1);ee(this,"destroyed",!1);if(Lp(t),Jn(r,void 0,"key"),this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("expected Hash instance");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,n=new Uint8Array(i);n.set(r.length>i?t.create().update(r).digest():r);for(let o=0;o<n.length;o++)n[o]^=54;this.iHash.update(n),this.oHash=t.create();for(let o=0;o<n.length;o++)n[o]^=106;this.oHash.update(n),Ii(n)}update(t){return ac(this),this.iHash.update(t),this}digestInto(t){ac(this),Mp(t,this),this.finished=!0;let r=t.subarray(0,this.outputLen);this.iHash.digestInto(r),this.oHash.update(r),this.oHash.digestInto(r),this.destroy()}digest(){let t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));let{oHash:r,iHash:i,finished:n,destroyed:o,blockLen:a,outputLen:s,canXOF:u}=this;return t=t,t.finished=n,t.destroyed=o,t.blockLen=a,t.outputLen=s,t.canXOF=u,t.oHash=r._cloneInto(t.oHash),t.iHash=i._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},cb=(()=>{let e=((t,r,i)=>new Sl(t,r).update(i).digest());return e.create=(t,r)=>new Sl(t,r),e})()});var RK,lb,Zo,hb,DP=Br(()=>{g();Ca();RK=BigInt(0),lb=class extends Error{constructor(t=""){super(t)}},Zo={Err:lb,_tlv:{encode:(e,t)=>{let{Err:r}=Zo;if(Xt(e,"tag"),e<0||e>255)throw new r("tlv.encode: wrong tag");if(yl(t,"data"),t.length&1)throw new r("tlv.encode: unpadded data");let i=t.length/2,n=bl(i);if(n.length/2&128)throw new r("tlv.encode: long form length too big");let o=i>127?bl(n.length/2|128):"";return bl(e)+o+n+t},decode(e,t){let{Err:r}=Zo;t=Ce(t,void 0,"DER data");let i=0;if(e<0||e>255)throw new r("tlv.decode: wrong tag");if(t.length<2||t[i++]!==e)throw new r("tlv.decode: wrong tlv");let n=t[i++],o=!!(n&128),a=0;if(!o)a=n;else{let u=n&127;if(!u)throw new r("tlv.decode(long): indefinite length not supported");if(u>4)throw new r("tlv.decode(long): byte length is too big");let c=t.subarray(i,i+u);if(c.length!==u)throw new r("tlv.decode: length bytes not complete");if(c[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(let l of c)a=a<<8|l;if(i+=u,a<128)throw new r("tlv.decode(long): not minimal encoding")}let s=t.subarray(i,i+a);if(s.length!==a)throw new r("tlv.decode: wrong value length");return{v:s,l:t.subarray(i+a)}}},_int:{encode(e){let{Err:t}=Zo;if(Zp(e),e<RK)throw new t("integer: negative integers are not allowed");let r=bl(e);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){let{Err:t}=Zo;if(e.length<1)throw new t("invalid signature integer: empty");if(e[0]&128)throw new t("invalid signature integer: negative");if(e.length>1&&e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return Nr(e)}},toSig(e){let{Err:t,_int:r,_tlv:i}=Zo,n=Ce(e,void 0,"signature"),{v:o,l:a}=i.decode(48,n);if(a.length)throw new t("invalid signature: left bytes after parsing");let{v:s,l:u}=i.decode(2,o),{v:c,l}=i.decode(2,u);if(l.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(s),s:r.decode(c)}},hexFromSig(e){let{_tlv:t,_int:r}=Zo;yt(e,{r:"bigint",s:"bigint"},{},"sig");let i=t.encode(2,r.encode(e.r)),n=t.encode(2,r.encode(e.s)),o=i+n;return t.encode(48,o)}},hb=(Object.freeze(Zo._tlv),Object.freeze(Zo._int),Object.freeze(Zo))});function kK(e,t,r){$y("scalar",e,$o,r);let[[i,n],[o,a]]=t,s=qP(a*e,r),u=qP(-n*e,r),c=e-s*i-u*o,l=-s*n-u*a,d=c<$o,p=l<$o;d&&(c=-c),p&&(l=-l);let y=_l(Math.ceil(hc(r)/2))+Ws;if(c<$o||c>=y||l<$o||l>=y)throw new Error("splitScalar (endomorphism): failed for k");return{k1neg:d,k1:c,k2neg:p,k2:l}}function gb(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function db(e,t){yt(e);let r={};for(let i of Object.keys(t))r[i]=e[i]===void 0?t[i]:e[i];return eo(r.lowS,"lowS"),eo(r.prehash,"prehash"),r.format!==void 0&&gb(r.format),r}function UP(e,t={}){let r=EP("weierstrass",e,t),i=r.Fp,n=r.Fn,o=r.CURVE,{h:a,n:s}=o;yt(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",randomBytes:"function"});let{endo:u,allowInfinityPoint:c}=t,l=t.randomBytes===void 0?mi:t.randomBytes;if(u&&(!i.is0(o.a)||typeof u.beta!="bigint"||!Array.isArray(u.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');let d=jP(i,n);function p(){if(!i.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function y(L,N,x){if(c&&N.is0())return Uint8Array.of(0);let{x:m,y:O}=N.toAffine(),z=i.toBytes(m);if(eo(x,"isCompressed"),x){p();let W=!i.isOdd(O);return lt(FP(W),z)}else return lt(Uint8Array.of(4),z,i.toBytes(O))}function _(L){Ce(L,void 0,"Point");let{publicKey:N,publicKeyUncompressed:x}=d,m=L.length,O=L[0],z=L.subarray(1);if(c&&m===1&&O===0)return{x:i.ZERO,y:i.ZERO};if(m===N&&(O===2||O===3)){let W=i.fromBytes(z);if(!i.isValid(W))throw new Error("bad point: is not on curve, wrong x");let te=F(W),ie;try{ie=i.sqrt(te)}catch(we){let ve=we instanceof Error?": "+we.message:"";throw new Error("bad point: is not on curve, sqrt error"+ve)}p();let se=i.isOdd(ie);return(O&1)===1!==se&&(ie=i.neg(ie)),{x:W,y:ie}}else if(m===x&&O===4){let W=i.BYTES,te=i.fromBytes(z.subarray(0,W)),ie=i.fromBytes(z.subarray(W,W*2));if(!I(te,ie))throw new Error("bad point: is not on curve");return{x:te,y:ie}}else throw new Error(`bad point: got length ${m}, expected compressed=${N} or uncompressed=${x}`)}let T=t.toBytes===void 0?y:t.toBytes,R=t.fromBytes===void 0?_:t.fromBytes,B=i.mul(o.b,pb),H=i.is0(o.a)?L=>i.ZERO:L=>i.mul(o.a,L);function F(L){let N=i.sqr(L),x=i.mul(N,L);return i.add(i.add(x,i.mul(L,o.a)),o.b)}function I(L,N){let x=i.sqr(N),m=F(L);return i.eql(x,m)}if(!I(o.Gx,o.Gy))throw new Error("bad curve params: generator point");let k=i.mul(i.pow(o.a,pb),BK),D=i.mul(i.sqr(o.b),BigInt(27));if(i.is0(i.add(k,D)))throw new Error("bad curve params: a or b");function j(L,N,x=!1){if(!i.isValid(N)||x&&i.is0(N))throw new Error(`bad point coordinate ${L}`);return N}function K(L){if(!(L instanceof v))throw new Error("Weierstrass Point expected")}function G(L){if(!u||!u.basises)throw new Error("no endo");return kK(L,u.basises,n.ORDER)}function S(L,N,x,m){if(!n.isValid(m))throw new RangeError("invalid scalar: out of range");if(u){let{k1neg:O,k1:z,k2neg:W,k2:te}=G(m),ie=new v(i.mul(x.X,u.beta),x.Y,x.Z);L.push(O?x.negate():x,W?ie.negate():ie),N.push(z,te)}else L.push(x),N.push(m)}let h=new WeakSet,A=class A{constructor(N,x,m){ee(this,"X");ee(this,"Y");ee(this,"Z");this.X=j("x",N),this.Y=j("y",x,!0),this.Z=j("z",m),Object.freeze(this)}static CURVE(){return o}static fromAffine(N){let{x,y:m}=N||{};if(!N||!i.isValid(x)||!i.isValid(m))throw new Error("invalid affine point");if(N instanceof A)throw new Error("projective point not allowed");return i.is0(x)&&i.is0(m)?A.ZERO:new A(x,m,i.ONE)}static fromBytes(N){let x=A.fromAffine(R(Ce(N,void 0,"point")));return x.assertValidity(),x}static fromHex(N){return A.fromBytes(cc(N))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(N=6,x=!0){return E.setWindowSize(this,N),x||this.multiply(pb),this}assertValidity(){let N=this;if(N.is0()){if(t.allowInfinityPoint&&i.is0(N.X)&&i.eql(N.Y,i.ONE)&&i.is0(N.Z))return;throw new Error("bad point: ZERO")}if(h.has(N))return;let{x,y:m}=N.toAffine();if(!i.isValid(x)||!i.isValid(m))throw new Error("bad point: x or y not field elements");if(!I(x,m))throw new Error("bad point: equation left != right");if(!N.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");h.add(N)}hasEvenY(){let{y:N}=this.toAffine();if(!i.isOdd)throw new Error("Field doesn't support isOdd");return!i.isOdd(N)}equals(N){K(N);let{X:x,Y:m,Z:O}=this,{X:z,Y:W,Z:te}=N,ie=i.eql(i.mul(x,te),i.mul(z,O)),se=i.eql(i.mul(m,te),i.mul(W,O));return ie&&se}negate(){return new A(this.X,i.neg(this.Y),this.Z)}double(){let{X:N,Y:x,Z:m}=this,O=i.ZERO,z=i.ZERO,W=i.ZERO,te=i.mul(N,N),ie=i.mul(x,x),se=i.mul(m,m),ae=i.mul(N,x);return ae=i.add(ae,ae),W=i.mul(N,m),W=i.add(W,W),O=H(W),z=i.mul(B,se),z=i.add(O,z),O=i.sub(ie,z),z=i.add(ie,z),z=i.mul(O,z),O=i.mul(ae,O),W=i.mul(B,W),se=H(se),ae=i.sub(te,se),ae=H(ae),ae=i.add(ae,W),W=i.add(te,te),te=i.add(W,te),te=i.add(te,se),te=i.mul(te,ae),z=i.add(z,te),se=i.mul(x,m),se=i.add(se,se),te=i.mul(se,ae),O=i.sub(O,te),W=i.mul(se,ie),W=i.add(W,W),W=i.add(W,W),new A(O,z,W)}add(N){K(N);let{X:x,Y:m,Z:O}=this,{X:z,Y:W,Z:te}=N,ie=i.ZERO,se=i.ZERO,ae=i.ZERO,we=i.mul(x,z),ve=i.mul(m,W),C=i.mul(O,te),V=i.add(x,m),Y=i.add(z,W);V=i.mul(V,Y),Y=i.add(we,ve),V=i.sub(V,Y),Y=i.add(x,O);let X=i.add(z,te);return Y=i.mul(Y,X),X=i.add(we,C),Y=i.sub(Y,X),X=i.add(m,O),ie=i.add(W,te),X=i.mul(X,ie),ie=i.add(ve,C),X=i.sub(X,ie),ae=H(Y),ie=i.mul(B,C),ae=i.add(ie,ae),ie=i.sub(ve,ae),ae=i.add(ve,ae),se=i.mul(ie,ae),ve=i.add(we,we),ve=i.add(ve,we),C=H(C),Y=i.mul(B,Y),ve=i.add(ve,C),C=i.sub(we,C),C=H(C),Y=i.add(Y,C),we=i.mul(ve,Y),se=i.add(se,we),we=i.mul(X,Y),ie=i.mul(V,ie),ie=i.sub(ie,we),we=i.mul(V,ve),ae=i.mul(X,ae),ae=i.add(ae,we),new A(ie,se,ae)}subtract(N){return K(N),this.add(N.negate())}is0(){return this.equals(A.ZERO)}multiply(N){if(!n.isValidNot0(N))throw new RangeError("invalid scalar: out of range");let{p:x,f:m}=E.mulSecret(this,N,a,w);return w([x,m])[0]}multiplyUnsafe(N){let x=this,m=N;if(!n.isValid(m))throw new RangeError("invalid scalar: out of range");if(m===$o||x.is0())return A.ZERO;if(m===Ws)return x;if(E.hasWindowSize(this))return E.mulUnsafe(x,m,w);let O=[],z=[];return S(O,z,x,m),mc(A,O,z)}mulAddUnsafe(N,x,m){K(x);let O=[],z=[];return S(O,z,this,N),S(O,z,x,m),mc(A,O,z)}toAffine(N){let x=this,m=N;if(m!=null&&!i.isValid(m))throw new RangeError('"invertedZ" expected valid field element');let{X:O,Y:z,Z:W}=x;if(i.eql(W,i.ONE))return{x:O,y:z};let te=x.is0();m==null&&(m=te?i.ONE:i.inv(W));let ie=i.mul(O,m),se=i.mul(z,m),ae=i.mul(W,m);if(te)return{x:i.ZERO,y:i.ZERO};if(!i.eql(ae,i.ONE))throw new Error("invZ was invalid");return{x:ie,y:se}}isTorsionFree(){let{isTorsionFree:N}=t;return a===Ws?!0:N?N(A,this):E.mulUnsafe(this,s).is0()}clearCofactor(){let{clearCofactor:N}=t;return a===Ws?this:N?N(A,this):this.multiplyUnsafe(a)}isSmallOrder(){return a===Ws?this.is0():this.clearCofactor().is0()}toBytes(N=!0){return eo(N,"isCompressed"),this.assertValidity(),T(A,this,N)}toHex(N=!0){return Yo(this.toBytes(N))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}};ee(A,"BASE",new A(o.Gx,o.Gy,i.ONE)),ee(A,"ZERO",new A(i.ZERO,i.ONE,i.ZERO)),ee(A,"Fp",i),ee(A,"Fn",n);let v=A,w=L=>_P(v,L),E=new Qp(v,l);return E.bits>=6&&v.BASE.precompute(6),Object.freeze(v.prototype),Object.freeze(v),v}function FP(e){return Uint8Array.of(e?2:3)}function jP(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function NK(e,t={}){Ma(e);let{Fn:r}=e,i=t.randomBytes===void 0?mi:t.randomBytes,n=Object.assign(jP(e.Fp,r),{seed:Math.max(gc(r.ORDER),16)});function o(y){try{let _=r.fromBytes(y);return r.isValidNot0(_)}catch{return!1}}function a(y,_){let{publicKey:T,publicKeyUncompressed:R}=n;try{let B=y.length;return _===!0&&B!==T||_===!1&&B!==R?!1:!!e.fromBytes(y)}catch{return!1}}function s(y){return y=y===void 0?i(n.seed):y,zs(Ce(y,n.seed,"seed"),r.ORDER)}function u(y,_=!0){return e.BASE.multiply(r.fromBytes(y)).toBytes(_)}function c(y){let{secretKey:_,publicKey:T,publicKeyUncompressed:R}=n,B=r._lengths;if(!Qn(y))return;let H=Ce(y,void 0,"key").length,F=H===T||H===R,I=H===_||!!B?.includes(H);if(!(F&&I))return F}function l(y,_,T=!0){if(c(y)===!0)throw new Error("first arg must be private key");if(c(_)===!1)throw new Error("second arg must be public key");let R=r.fromBytes(y);return e.fromBytes(_).multiply(R).toBytes(T)}let d={isValidSecretKey:o,isValidPublicKey:a,randomSecretKey:s},p=eg(s,u);return Object.freeze(d),Object.freeze(n),Object.freeze({getPublicKey:u,getSharedSecret:l,keygen:p,Point:e,utils:d,lengths:n})}function zP(e,t,r={}){Ma(e);let i=t;Lp(i),yt(r,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});let n=Object.assign({},r),o=n.randomBytes===void 0?mi:n.randomBytes,a=n.hmac===void 0?(O,z)=>cb(i,O,z):n.hmac,{Fp:s,Fn:u}=e,{ORDER:c,BITS:l}=u,d=gc(c),p=ob(o,d),{keygen:y,getPublicKey:_,getSharedSecret:T,utils:R,lengths:B}=NK(e,n),H={prehash:!0,lowS:typeof n.lowS=="boolean"?n.lowS:!0,format:"compact",extraEntropy:!1},F=c*HP+Ws<s.ORDER;function I(O){let z=c>>Ws;return O>z}function k(O,z){if(!u.isValidNot0(z))throw new Error(`invalid signature ${O}: out of range 1..Point.Fn.ORDER`);return z}function D(){if(!s.isOdd)throw new Error("Field doesn't support isOdd")}function j(O,z,W){return D(),(O===W?0:2)|Number(s.isOdd(z))}function K(){if(F)throw new Error('"recovered" sig type is not supported for cofactor >2 curves')}function G(O,z){gb(z);let W=B.signature,te=z==="compact"?W:z==="recovered"?W+1:void 0;return Ce(O,te)}class S{constructor(z,W,te){ee(this,"r");ee(this,"s");ee(this,"recovery");if(this.r=k("r",z),this.s=k("s",W),te!=null){if(K(),![0,1,2,3].includes(te))throw new Error("invalid recovery id");this.recovery=te}Object.freeze(this)}static fromBytes(z,W=H.format){G(z,W);let te;if(W==="der"){let{r:we,s:ve}=hb.toSig(Ce(z));return new S(we,ve)}W==="recovered"&&(te=z[0],W="compact",z=z.subarray(1));let ie=B.signature/2,se=z.subarray(0,ie),ae=z.subarray(ie,ie*2);return new S(u.fromBytes(se),u.fromBytes(ae),te)}static fromHex(z,W){return this.fromBytes(cc(z),W)}assertRecovery(){let{recovery:z}=this;if(z==null)throw new Error("invalid recovery id: must be present");return z}addRecoveryBit(z){return new S(this.r,this.s,z)}recoverPublicKey(z){let{r:W,s:te}=this,ie=this.assertRecovery(),se=ie===2||ie===3?W+c:W;if(!s.isValid(se))throw new Error("invalid recovery id: sig.r+curve.n != R.x");let ae=s.toBytes(se),we=e.fromBytes(lt(FP((ie&1)===0),ae)),ve=u.inv(se),C=v(Ce(z,void 0,"msgHash")),V=u.create(-C*ve),Y=u.create(te*ve),X=e.BASE.mulAddUnsafe(V,we,Y);if(X.is0())throw new Error("invalid recovery: point at infinify");return X.assertValidity(),X}hasHighS(){return I(this.s)}toBytes(z=H.format){if(gb(z),z==="der")return cc(hb.hexFromSig(this));let{r:W,s:te}=this,ie=u.toBytes(W),se=u.toBytes(te);return z==="recovered"?(K(),lt(Uint8Array.of(this.assertRecovery()),ie,se)):lt(ie,se)}toHex(z){return Yo(this.toBytes(z))}}Object.freeze(S.prototype),Object.freeze(S);let h=n.bits2int===void 0?function(z){if(z.length>8192)throw new Error("input is too large");let W=Nr(z),te=z.length*8-l;return te>0?W>>BigInt(te):W}:n.bits2int,v=n.bits2int_modN===void 0?function(z){return u.create(h(z))}:n.bits2int_modN,w=_l(l);function E(O){return $y("num < 2^"+l,O,$o,w),u.toBytes(O)}function A(O,z){return Ce(O,void 0,"message"),z?Ce(i(O),void 0,"prehashed message"):O}function L(O,z,W){let{lowS:te,prehash:ie,extraEntropy:se}=db(W,H);O=A(O,ie);let ae=v(O),we=u.fromBytes(z);if(!u.isValidNot0(we))throw new Error("invalid private key");let ve=[E(we),E(ae)];if(se!=null&&se!==!1){let X=se===!0?o(B.secretKey):se;ve.push(Ce(X,void 0,"extraEntropy"))}let C=lt(...ve),V=ae;function Y(X){let de=h(X);if(!u.isValidNot0(de))return;let ue=e.BASE.multiply(de).toAffine(),le=u.create(ue.x);if(le===$o)return;let ye;if(p!==void 0){let ke=Nr(zs(p(d),c)),Le=u.inv(u.mul(ke,de)),me=u.mul(ke,V),Ee=u.mul(ke,we);ye=u.create(Le*u.create(me+Ee*le))}else{let ke=dP(de,c);ye=u.create(ke*u.create(V+le*we))}if(ye===$o)return;let ge=j(ue.x,ue.y,le),be=ye;return te&&I(ye)&&(be=u.neg(ye),ge^=1),new S(le,be,F?void 0:ge)}return{seed:C,k2sig:Y}}function N(O,z,W={}){let{seed:te,k2sig:ie}=L(O,z,W);return oP(i.outputLen,u.BYTES,a)(te,ie).toBytes(W.format)}function x(O,z,W,te={}){let{lowS:ie,prehash:se,format:ae}=db(te,H);if(W=Ce(W,void 0,"publicKey"),z=A(z,se),!Qn(O)){let we=O instanceof S?", use sig.toBytes()":"";throw new Error("verify expects Uint8Array signature"+we)}G(O,ae);try{let we=S.fromBytes(O,ae),ve=e.fromBytes(W);if(ie&&we.hasHighS())return!1;let{r:C,s:V}=we,Y=v(z),X=u.inv(V),de=u.create(Y*X),ue=u.create(C*X),le=e.BASE.mulAddUnsafe(de,ve,ue);if(le.is0())return!1;let ye=le.toAffine();return!(u.create(ye.x)!==C||ae==="recovered"&&we.recovery!==j(ye.x,ye.y,C))}catch{return!1}}function m(O,z,W={}){let{prehash:te}=db(W,H);return z=A(z,te),S.fromBytes(O,"recovered").recoverPublicKey(z).toBytes()}return Object.freeze({keygen:y,getPublicKey:_,getSharedSecret:T,utils:R,lengths:B,Point:e,sign:N,verify:x,recoverPublicKey:m,Signature:S,hash:i})}var qP,$o,Ws,HP,pb,BK,KP=Br(()=>{g();ig();Go();Ca();tg();DP();Ks();qP=(e,t)=>(e+(e>=0?t:-t)/HP)/t;$o=BigInt(0),Ws=BigInt(1),HP=BigInt(2),pb=BigInt(3),BK=BigInt(4)});var Ol={};Pf(Ol,{__TEST:()=>qK,schnorr:()=>HK,schnorr_FROST:()=>KK,secp256k1:()=>MK,secp256k1_FROST:()=>jK,secp256k1_hasher:()=>yb});function LK(e){let t=ng.p,r=BigInt(3),i=BigInt(6),n=BigInt(11),o=BigInt(22),a=BigInt(23),s=BigInt(44),u=BigInt(88),c=e*e*e%t,l=c*c*e%t,d=Fi(l,r,t)*l%t,p=Fi(d,r,t)*l%t,y=Fi(p,VP,t)*c%t,_=Fi(y,n,t)*y%t,T=Fi(_,o,t)*_%t,R=Fi(T,s,t)*T%t,B=Fi(R,u,t)*R%t,H=Fi(B,s,t)*T%t,F=Fi(H,r,t)*l%t,I=Fi(F,a,t)*_%t,k=Fi(I,i,t)*c%t,D=Fi(k,VP,t);if(!xn.eql(xn.sqr(D),e))throw new Error("Cannot find square root");return D}function El(e,...t){let r=GP[e];if(r===void 0){let i=ka(lc(e));r=lt(i,i),GP[e]=r}return ka(lt(r,...t))}function $P(e){let{Fn:t,BASE:r}=bt,i=t.fromBytes(Ce(e,32,"secretKey")),o=r.multiply(i).toAffine();return{scalar:io(o.y)?i:t.neg(i),bytes:ZP(o)}}function og(e){let t=xn;if(!t.isValidNot0(e))throw new Error("invalid x: Fail if x \u2265 p");let r=t.sqr(e),i=t.add(t.mulN(r,e),BigInt(7)),n=t.sqrt(i);io(n)||(n=t.neg(n));let o=bt.fromAffine({x:e,y:n});return o.assertValidity(),o}function vb(...e){return bt.Fn.create(vc(El("BIP0340/challenge",...e)))}function WP(e){return $P(e).bytes}function DK(e,t,r=ml(32)){let{Fn:i,BASE:n}=bt,o=Ce(e,void 0,"message"),{bytes:a,scalar:s}=$P(t),u=Ce(r,32,"auxRand"),c=i.toBytes(s^vc(El("BIP0340/aux",u))),l=El("BIP0340/nonce",c,a,o),d=i.create(vc(l));if(d===mb)throw new Error("sign failed: k is zero");let y=n.multiply(d).toAffine(),_=io(y.y)?d:i.neg(d),T=ZP(y),R=vb(T,a,o),B=new Uint8Array(64);if(B.set(T,0),B.set(i.toBytes(i.create(_+R*s)),32),!XP(B,o,a))throw new Error("sign: Invalid signature produced");return B}function XP(e,t,r){let{Fp:i,Fn:n,BASE:o}=bt,a=Ce(e,64,"signature"),s=Ce(t,void 0,"message"),u=Ce(r,32,"publicKey");try{let c=og(vc(u)),l=a.subarray(0,32),d=vc(l);if(!i.isValidNot0(d))return!1;let p=vc(a.subarray(32,64));if(!n.isValidNot0(p))return!1;let y=vb(l,xl(c),s),_=o.mulAddUnsafe(p,c,n.neg(y)),{x:T,y:R}=_.toAffine();return!(_.is0()||!io(R)||!i.eql(T,d))}catch{return!1}}function JP(e,t){if(t===void 0)return mb;let r=xl(e),i=Nr(El("TapTweak",r,t));if(!bt.Fn.isValid(i))throw new Error("invalid TapTweak hash");return i}function bb(e){let t=bt.fromBytes(e.commitments[0]);return io(t.y)?e:{signers:{min:e.signers.min,max:e.signers.max},commitments:e.commitments.map(r=>bt.fromBytes(r).negate().toBytes()),verifyingShares:Object.fromEntries(Object.entries(e.verifyingShares).map(([r,i])=>[r,bt.fromBytes(i).negate().toBytes()]))}}function QP(e,t){let r=bt.fromBytes(t.commitments[0]);if(io(r.y))return e;let i=bt.Fn;return{...e,signingShare:i.toBytes(i.neg(i.fromBytes(e.signingShare)))}}function zK(e,t){if(io(e.y))return t;let r=bt.Fn;return{binding:r.toBytes(r.neg(r.fromBytes(t.binding))),hiding:r.toBytes(r.neg(r.fromBytes(t.hiding)))}}function e2(e,t,r){let i=bt.Fn,n=QP(e,t),o=bb(t),a=JP(bt.fromBytes(o.commitments[0]),r),s=i.toBytes(i.add(i.fromBytes(n.signingShare),a));return{identifier:n.identifier,signingShare:s}}function t2(e,t){let r=bb(e),i=JP(bt.fromBytes(r.commitments[0]),t);if(i===mb)return r;let n=bt.BASE.multiply(i),o=r.commitments.map((s,u)=>(u===0?bt.fromBytes(s).add(n):bt.fromBytes(s)).toBytes()),a={};for(let s in r.verifyingShares)a[s]=bt.fromBytes(r.verifyingShares[s]).add(n).toBytes();return{signers:{min:r.signers.min,max:r.signers.max},commitments:o,verifyingShares:a}}var ng,CK,mb,VP,xn,bt,MK,GP,xl,ZP,io,vc,qK,HK,UK,YP,FK,yb,jK,KK,Il=Br(()=>{g();vl();Go();tg();MP();CP();Ks();KP();Ca();ng={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},CK={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},mb=BigInt(0),VP=BigInt(2);xn=pc(ng.p,{sqrt:LK}),bt=UP(ng,{Fp:xn,endo:CK}),MK=zP(bt,ka),GP=Object.create(null);xl=e=>e.toBytes(!0).slice(1),ZP=({x:e})=>xn.toBytes(e),io=e=>!xn.isOdd(e);vc=Nr;qK=Object.freeze({lift_x:og,frostTweakPublic:t2,frostTweakSecret:e2}),HK=(()=>{let r=i=>(i=i===void 0?ml(48):i,zs(Ce(i,48,"seed"),ng.n));return Object.freeze({keygen:eg(r,WP),getPublicKey:WP,sign:DK,verify:XP,Point:bt,utils:Object.freeze({randomSecretKey:r,taggedHash:El,lift_x:og,pointToBytes:xl}),lengths:Object.freeze({secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48})})})(),UK=kP(xn,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(t=>BigInt(t)))),FK=()=>YP||(YP=NP(xn,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:xn.create(BigInt("-11"))})),yb=BP(bt,e=>{let{x:t,y:r}=FK()(xn.create(e[0]));return UK(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:xn.ORDER,m:1,k:128,expand:"xmd",hash:ka}),jK=ub({name:"FROST-secp256k1-SHA256-v1",Point:bt,hashToScalar:yb.hashToScalar,hash:ka});KK=ub({name:"FROST-secp256k1-SHA256-TR-v1",Point:bt,hashToScalar:yb.hashToScalar,hash:ka,parsePublicKey(e){if(e.length===32)return og(Nr(e));if(e.length===33)return bt.fromBytes(e);throw new Error(`expected x-only or compressed public key, got length=${e.length}`)},adjustScalar(e){let t=bt.BASE.multiply(e);return io(t.y)?e:bt.Fn.neg(e)},adjustPoint:e=>io(e.y)?e:e.negate(),challenge(e,t,r){return vb(xl(e),xl(t),r)},adjustNonces:zK,adjustGroupCommitmentShare:(e,t)=>io(e.y)?t:t.negate(),adjustPublic:bb,adjustSecret:QP,adjustTx:{encode:e=>e.subarray(1),decode:e=>lt(Uint8Array.of(2),e)},adjustDKG:e=>{let t=new Uint8Array(0);return{public:t2(e.public,t),secret:e2(e.secret,e.public,t)}}})});var nn=P((Ooe,o2)=>{"use strict";g();var r2=Ze(),{secp256k1:VK}=(Il(),$i(Ol)),Tl=VK.Point,ag=Tl.Fn.ORDER;function GK(e){return BigInt("0x"+(e.toString(16)||"0"))}function _b(e){var t=e.toString(16);return t.length%2&&(t="0"+t),new r2(t,16)}function sg(e){if(e==null)throw new Error("Invalid Point");if(typeof e=="bigint")return e;if(typeof e=="number")return BigInt(e);if(typeof e=="string")return BigInt(e.indexOf("0x")===0?e:"0x"+e);if(typeof e.toString=="function")return GK(e);throw new Error("Invalid Point")}function Al(e){var t=Object.create(_t.prototype);return t._p=e,t}function i2(e,t){var r=sg(t).toString(16).padStart(64,"0");return Tl.fromHex((e?"03":"02")+r)}function n2(e,t){var r;try{r=i2((t&1n)===1n,e)}catch{throw new Error("Point does not lie on the curve")}if(r.toAffine().y!==t)throw new Error("Invalid y value for curve.")}function _t(e,t,r){if(!(this instanceof _t))return new _t(e,t,r);var i,n;try{i=sg(e),n=sg(t)}catch{throw new Error("Invalid Point")}n2(i,n);try{this._p=Tl.fromAffine({x:i,y:n})}catch{throw new Error("Invalid Point")}return this}_t.fromX=function(t,r){try{var i=Al(i2(t,r))}catch{throw new Error("Invalid X")}return i.validate(),i};_t.getG=function(){return Al(Tl.BASE)};_t.getN=function(){return _b(ag)};_t.prototype.getX=function(){return _b(this._p.toAffine().x)};_t.prototype.getY=function(){return _b(this._p.toAffine().y)};Object.defineProperty(_t.prototype,"x",{configurable:!0,enumerable:!0,get:function(){return this.getX()}});Object.defineProperty(_t.prototype,"y",{configurable:!0,enumerable:!0,get:function(){return this.getY()}});_t.prototype.mul=function(t){var r=(sg(t)%ag+ag)%ag;return r===0n||this._p.is0()?Al(Tl.ZERO):Al(this._p.multiply(r))};_t.prototype.add=function(t){return Al(this._p.add(t._p))};_t.prototype.mulAdd=function(t,r,i){return this.mul(t).add(r.mul(i))};_t.prototype.eq=function(t){return this._p.equals(t._p)};_t.prototype.isInfinity=function(){return this._p.is0()};_t.prototype.validate=function(){if(this.isInfinity())throw new Error("Point cannot be equal to Infinity");var t=this._p.toAffine();return n2(t.x,t.y),this};_t.pointToCompressed=function(t){var r=t.getX().toBuffer({size:32}),i=t.getY().toBuffer({size:32}),n,o=i[i.length-1]%2;return o?n=f.Buffer.from([3]):n=f.Buffer.from([2]),f.Buffer.concat([n,r])};_t.pointFromCompressed=function(e){if(e.length!==33)throw new Error("invalid buffer length");var t=e[0],r;if(t===3)r=!0;else if(t===2)r=!1;else throw new Error("invalid value of compressed prefix");var i=r2.fromBuffer(e.slice(1,33));return _t.fromX(r,i)};_t.prototype.toBuffer=function(){return _t.pointToCompressed(this)};_t.prototype.toHex=function(){return this.toBuffer().toString("hex")};_t.fromBuffer=function(e){return _t.pointFromCompressed(e)};_t.fromHex=function(e){return _t.fromBuffer(f.Buffer.from(e,"hex"))};o2.exports=_t});var ut=P((Aoe,s2)=>{"use strict";g();var Ys=Ze(),WK=Qe(),yi=Oe(),YK=ei(),$e=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t instanceof Ys)this.set({r:t,s:r});else if(t){var i=t;this.set(i)}};$e.prototype.set=function(e){return this.r=e.r||this.r||void 0,this.s=e.s||this.s||void 0,this.i=typeof e.i<"u"?e.i:this.i,this.compressed=typeof e.compressed<"u"?e.compressed:this.compressed,this.nhashtype=e.nhashtype||this.nhashtype||void 0,this};$e.fromCompact=function(e){yi.checkArgument(f.Buffer.isBuffer(e),"Argument is expected to be a Buffer");var t=new $e,r=!0,i=e.slice(0,1)[0]-27-4;i<0&&(r=!1,i=i+4);var n=e.slice(1,33),o=e.slice(33,65);return yi.checkArgument(i===0||i===1||i===2||i===3,new Error("i must be 0, 1, 2, or 3")),yi.checkArgument(n.length===32,new Error("r must be 32 bytes")),yi.checkArgument(o.length===32,new Error("s must be 32 bytes")),t.compressed=r,t.i=i,t.r=Ys.fromBuffer(n),t.s=Ys.fromBuffer(o),t};$e.fromDER=$e.fromBuffer=function(e,t){var r=$e.parseDER(e,t),i=new $e;return i.r=r.r,i.s=r.s,i};$e.fromTxFormat=function(e){var t=e.readUInt8(e.length-1),r=e.slice(0,e.length-1),i=$e.fromDER(r,!1);return i.nhashtype=t,i};$e.fromString=function(e){var t=f.Buffer.from(e,"hex");return $e.fromDER(t)};function a2(e,t){yi.checkArgument(t.length>0,new Error("Length of "+e+" is zero")),yi.checkArgument(!(t[0]&128),new Error("Value of "+e+" is negative")),yi.checkArgument(!(t.length>1&&t[0]===0&&!(t[1]&128)),new Error("Value of "+e+" is excessively padded"))}$e.parseDER=function(e,t){yi.checkArgument(f.Buffer.isBuffer(e),new Error("DER formatted signature should be a buffer")),WK.isUndefined(t)&&(t=!0);var r=e[0];yi.checkArgument(r===48,new Error("Header byte should be 0x30"));var i=e[1],n=e.slice(2).length;yi.checkArgument(!t||i===n,new Error("Length byte should length of what follows")),i=i<n?i:n;var o=e[2];yi.checkArgument(o===2,new Error("Integer byte for r should be 0x02"));var a=e[3],s=e.slice(4,4+a),u=Ys.fromBuffer(s),c=e[4]===0;yi.checkArgument(a===s.length,new Error("Length of r incorrect"));var l=e[4+a+0];yi.checkArgument(l===2,new Error("Integer byte for s should be 0x02"));var d=e[4+a+1],p=e.slice(4+a+2,4+a+2+d),y=Ys.fromBuffer(p),_=e[4+a+2]===0;yi.checkArgument(d===p.length,new Error("Length of s incorrect"));var T=4+a+2+d;yi.checkArgument(i===T-2,new Error("Length of signature incorrect")),t&&(a2("r",s),a2("s",p));var R={header:r,length:i,rheader:o,rlength:a,rneg:c,rbuf:s,r:u,sheader:l,slength:d,sneg:_,sbuf:p,s:y};return R};$e.prototype.toCompact=function(e,t){if(e=typeof e=="number"?e:this.i,t=typeof t=="boolean"?t:this.compressed,!(e===0||e===1||e===2||e===3))throw new Error("i must be equal to 0, 1, 2, or 3");var r=e+27+4;t===!1&&(r=r-4);var i=f.Buffer.from([r]),n=this.r.toBuffer({size:32}),o=this.s.toBuffer({size:32});return f.Buffer.concat([i,n,o])};$e.prototype.toBuffer=$e.prototype.toDER=function(){var e=this.r.toBuffer(),t=this.s.toBuffer(),r=!!(e[0]&128),i=!!(t[0]&128),n=r?f.Buffer.concat([f.Buffer.from([0]),e]):e,o=i?f.Buffer.concat([f.Buffer.from([0]),t]):t,a=n.length,s=o.length,u=2+a+2+s,c=2,l=2,d=48,p=f.Buffer.concat([f.Buffer.from([d,u,c,a]),n,f.Buffer.from([l,s]),o]);return p};$e.prototype.toString=function(){var e=this.toDER();return e.toString("hex")};$e.isTxDER=function(e){if(e.length<9||e.length>73||e[0]!==48||e[1]!==e.length-3)return!1;var t=e[3];if(5+t>=e.length)return!1;var r=e[5+t];if(t+r+7!==e.length)return!1;var i=e.slice(4);if(e[2]!==2||t===0||i[0]&128||t>1&&i[0]===0&&!(i[1]&128))return!1;var n=e.slice(6+t);return!(e[6+t-2]!==2||r===0||n[0]&128||r>1&&n[0]===0&&!(n[1]&128))};$e.prototype.hasLowS=function(){return!(this.s.lt(new Ys(1))||this.s.gt(new Ys("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))};$e.prototype.hasDefinedHashtype=function(){if(!YK.isNaturalNumber(this.nhashtype))return!1;var e=this.nhashtype&31;return!(e<$e.SIGHASH_ALL||e>$e.SIGHASH_SINGLE)};$e.prototype.toTxFormat=function(){var e=this.toDER(),t=f.Buffer.alloc(1);return t.writeUInt8(this.nhashtype,0),f.Buffer.concat([e,t])};$e.SIGHASH_ALL=1;$e.SIGHASH_NONE=2;$e.SIGHASH_SINGLE=3;$e.SIGHASH_CHRONICLE=32;$e.SIGHASH_FORKID=64;$e.SIGHASH_ANYONECANPAY=128;$e.prototype.isCanonical=function(){var e=nn(),t=e.getN().shrn(1);return this.s.lte(t)};$e.prototype.toCanonical=function(){if(this.isCanonical())return new $e({r:this.r,s:this.s,i:this.i,compressed:this.compressed,nhashtype:this.nhashtype});var e=nn(),t=e.getN(),r=t.sub(this.s);return new $e({r:this.r,s:r,i:this.i,compressed:this.compressed,nhashtype:this.nhashtype})};$e.prototype.validate=function(){if(!this.r||!this.s)throw new Error("Signature missing r or s component");if(this.r.isZero())throw new Error("Signature r component is zero");if(this.s.isZero())throw new Error("Signature s component is zero");var e=nn(),t=e.getN();if(this.r.gte(t))throw new Error("Signature r component >= curve order");if(this.s.gte(t))throw new Error("Signature s component >= curve order");if(this.r.isNeg())throw new Error("Signature r component is negative");if(this.s.isNeg())throw new Error("Signature s component is negative");return!0};$e.prototype.isValid=function(){try{return this.validate(),!0}catch{return!1}};$e.prototype.applySecurityPatches=function(){var e=nn(),t=e.getN(),r=t.shrn(1);if(this.r.isZero()||this.s.isZero())throw new Error("Invalid signature: zero r or s");if(this.r.gte(t)||this.s.gte(t))throw new Error("Invalid signature: out of range");if(this.s.gt(r))throw new Error("Invalid signature: non-canonical (high) s");return this};s2.exports=$e});var c2=P((Poe,u2)=>{"use strict";g();var ug=Kt(),Xo=Oe(),Er=u2.exports;Er.sha1=function(e){return Xo.checkArgument(f.Buffer.isBuffer(e)),ug.createHash("sha1").update(e).digest()};Er.sha1.blocksize=512;Er.sha256=function(e){return Xo.checkArgument(f.Buffer.isBuffer(e)),ug.createHash("sha256").update(e).digest()};Er.sha256.blocksize=512;Er.sha256sha256=function(e){return Xo.checkArgument(f.Buffer.isBuffer(e)),Er.sha256(Er.sha256(e))};Er.ripemd160=function(e){return Xo.checkArgument(f.Buffer.isBuffer(e)),ug.createHash("ripemd160").update(e).digest()};Er.sha256ripemd160=function(e){return Xo.checkArgument(f.Buffer.isBuffer(e)),Er.ripemd160(Er.sha256(e))};Er.sha512=function(e){return Xo.checkArgument(f.Buffer.isBuffer(e)),ug.createHash("sha512").update(e).digest()};Er.sha512.blocksize=1024;Er.hmac=function(e,t,r){Xo.checkArgument(f.Buffer.isBuffer(t)),Xo.checkArgument(f.Buffer.isBuffer(r)),Xo.checkArgument(e.blocksize);var i=e.blocksize/8;if(r.length>i)r=e(r);else if(r.length<i){var n=f.Buffer.alloc(i);n.fill(0),r.copy(n),r=n}var o=f.Buffer.alloc(i);o.fill(92);var a=f.Buffer.alloc(i);a.fill(54);for(var s=f.Buffer.alloc(i),u=f.Buffer.alloc(i),c=0;c<i;c++)s[c]=o[c]^r[c],u[c]=a[c]^r[c];return e(f.Buffer.concat([s,e(f.Buffer.concat([u,t]))]))};Er.sha256hmac=function(e,t){return Er.hmac(Er.sha256,e,t)};Er.sha512hmac=function(e,t){return Er.hmac(Er.sha512,e,t)}});var m2={};Pf(m2,{_MD5:()=>hg,_RIPEMD160:()=>dg,_SHA1:()=>lg,md5:()=>QK,ripemd160:()=>aV,sha1:()=>ZK});function f2(e,t,r,i){return e===0?t^r^i:e===1?t&r|~t&i:e===2?(t|~r)^i:e===3?t&i|r&~i:t^(r|~i)}var yc,qa,lg,ZK,$K,XK,cg,wb,JK,hg,QK,eV,l2,tV,h2,d2,p2,g2,rV,iV,nV,oV,fg,dg,aV,v2=Br(()=>{g();Gy();Go();yc=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),qa=new Uint32Array(80),lg=class extends Wo{constructor(){super(64,20,8,!1);ee(this,"A",yc[0]|0);ee(this,"B",yc[1]|0);ee(this,"C",yc[2]|0);ee(this,"D",yc[3]|0);ee(this,"E",yc[4]|0)}get(){let{A:r,B:i,C:n,D:o,E:a}=this;return[r,i,n,o,a]}set(r,i,n,o,a){this.A=r|0,this.B=i|0,this.C=n|0,this.D=o|0,this.E=a|0}_cloneInto(r){return(r||(r=new this.constructor)).set(...this.get()),this._cloneIntoMeta(r)}process(r,i){for(let c=0;c<16;c++,i+=4)qa[c]=r.getUint32(i,!1);for(let c=16;c<80;c++)qa[c]=Ko(qa[c-3]^qa[c-8]^qa[c-14]^qa[c-16],1);let{A:n,B:o,C:a,D:s,E:u}=this;for(let c=0;c<80;c++){let l,d;c<20?(l=sc(o,a,s),d=1518500249):c<40?(l=o^a^s,d=1859775393):c<60?(l=Hp(o,a,s),d=2400959708):(l=o^a^s,d=3395469782);let p=Ko(n,5)+l+u+d+qa[c]|0;u=s,s=a,a=Ko(o,30),o=n,n=p}n=n+this.A|0,o=o+this.B|0,a=a+this.C|0,s=s+this.D|0,u=u+this.E|0,this.set(n,o,a,s,u)}roundClean(){Ii(qa)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0),Ii(this.buffer)}},ZK=En(()=>new lg),$K=Math.pow(2,32),XK=Array.from({length:64},(e,t)=>Math.floor($K*Math.abs(Math.sin(t+1)))),cg=yc.slice(0,4),wb=new Uint32Array(16),JK=(()=>{let e=[[7,12,17,22],[5,9,14,20],[4,11,16,23],[6,10,15,21]];return Uint8Array.from({length:64},(t,r)=>e[Math.floor(r/16)][r%4])})(),hg=class extends Wo{constructor(){super(64,16,8,!0);ee(this,"A",cg[0]|0);ee(this,"B",cg[1]|0);ee(this,"C",cg[2]|0);ee(this,"D",cg[3]|0)}get(){let{A:r,B:i,C:n,D:o}=this;return[r,i,n,o]}set(r,i,n,o){this.A=r|0,this.B=i|0,this.C=n|0,this.D=o|0}_cloneInto(r){return(r||(r=new this.constructor)).set(...this.get()),this._cloneIntoMeta(r)}process(r,i){for(let u=0;u<16;u++,i+=4)wb[u]=r.getUint32(i,!0);let{A:n,B:o,C:a,D:s}=this;for(let u=0;u<64;u++){let c,l;u<16?(c=sc(o,a,s),l=u):u<32?(c=sc(s,o,a),l=(5*u+1)%16):u<48?(c=o^a^s,l=(3*u+5)%16):(c=a^(o|~s),l=7*u%16),c=c+n+XK[u]+wb[l],n=s,s=a,a=o,o=o+Ko(c,JK[u])}n=n+this.A|0,o=o+this.B|0,a=a+this.C|0,s=s+this.D|0,this.set(n,o,a,s)}roundClean(){Ii(wb)}destroy(){this.destroyed=!0,this.set(0,0,0,0),Ii(this.buffer)}},QK=En(()=>new hg),eV=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),l2=Uint8Array.from(new Array(16).fill(0).map((e,t)=>t)),tV=l2.map(e=>(9*e+5)%16),h2=(()=>{let r=[[l2],[tV]];for(let i=0;i<4;i++)for(let n of r)n.push(n[i].map(o=>eV[o]));return r})(),d2=h2[0],p2=h2[1],g2=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),rV=d2.map((e,t)=>e.map(r=>g2[t][r])),iV=p2.map((e,t)=>e.map(r=>g2[t][r])),nV=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),oV=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);fg=new Uint32Array(16),dg=class extends Wo{constructor(){super(64,20,8,!0);ee(this,"h0",1732584193);ee(this,"h1",-271733879);ee(this,"h2",-1732584194);ee(this,"h3",271733878);ee(this,"h4",-1009589776)}get(){let{h0:r,h1:i,h2:n,h3:o,h4:a}=this;return[r,i,n,o,a]}set(r,i,n,o,a){this.h0=r|0,this.h1=i|0,this.h2=n|0,this.h3=o|0,this.h4=a|0}_cloneInto(r){return(r||(r=new this.constructor)).set(...this.get()),this._cloneIntoMeta(r)}process(r,i){for(let _=0;_<16;_++,i+=4)fg[_]=r.getUint32(i,!0);let n=this.h0|0,o=n,a=this.h1|0,s=a,u=this.h2|0,c=u,l=this.h3|0,d=l,p=this.h4|0,y=p;for(let _=0;_<5;_++){let T=4-_,R=nV[_],B=oV[_],H=d2[_],F=p2[_],I=rV[_],k=iV[_];for(let D=0;D<16;D++){let j=Ko(n+f2(_,a,u,l)+fg[H[D]]+R,I[D])+p|0;n=p,p=l,l=Ko(u,10)|0,u=a,a=j}for(let D=0;D<16;D++){let j=Ko(o+f2(T,s,c,d)+fg[F[D]]+B,k[D])+y|0;o=y,y=d,d=Ko(c,10)|0,c=s,s=j}}this.set(this.h1+u+d|0,this.h2+l+y|0,this.h3+p+o|0,this.h4+n+s|0,this.h0+a+c|0)}roundClean(){Ii(fg)}destroy(){this.destroyed=!0,Ii(this.buffer),this.set(0,0,0,0,0)}},aV=En(()=>new dg)});var b2=P((Loe,y2)=>{"use strict";g();var{sha256:sV,sha512:uV}=(vl(),$i(Wp)),{sha1:cV,ripemd160:fV}=(v2(),$i(m2)),Jo=Oe(),xr=y2.exports;xr.sha1=function(e){return Jo.checkArgument(f.Buffer.isBuffer(e)),f.Buffer.from(cV(e))};xr.sha1.blocksize=512;xr.sha256=function(e){return Jo.checkArgument(f.Buffer.isBuffer(e)),f.Buffer.from(sV(e))};xr.sha256.blocksize=512;xr.sha256sha256=function(e){return Jo.checkArgument(f.Buffer.isBuffer(e)),xr.sha256(xr.sha256(e))};xr.ripemd160=function(e){return Jo.checkArgument(f.Buffer.isBuffer(e)),f.Buffer.from(fV(e))};xr.sha256ripemd160=function(e){return Jo.checkArgument(f.Buffer.isBuffer(e)),xr.ripemd160(xr.sha256(e))};xr.sha512=function(e){return Jo.checkArgument(f.Buffer.isBuffer(e)),f.Buffer.from(uV(e))};xr.sha512.blocksize=1024;xr.hmac=function(e,t,r){Jo.checkArgument(f.Buffer.isBuffer(t)),Jo.checkArgument(f.Buffer.isBuffer(r)),Jo.checkArgument(e.blocksize);var i=e.blocksize/8;if(r.length>i)r=e(r);else if(r.length<i){var n=f.Buffer.alloc(i);n.fill(0),r.copy(n),r=n}var o=f.Buffer.alloc(i);o.fill(92);var a=f.Buffer.alloc(i);a.fill(54);for(var s=f.Buffer.alloc(i),u=f.Buffer.alloc(i),c=0;c<i;c++)s[c]=o[c]^r[c],u[c]=a[c]^r[c];return e(f.Buffer.concat([s,e(f.Buffer.concat([u,t]))]))};xr.sha256hmac=function(e,t){return xr.hmac(xr.sha256,e,t)};xr.sha512hmac=function(e,t){return xr.hmac(xr.sha512,e,t)}});var Be=P((Doe,w2)=>{"use strict";g();var _2={sha1:"a9993e364706816aba3e25717850c26c9cd0d89d",sha256:"ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad",sha512:"ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f",ripemd160:"8eb208f7e05d987a9b044a8e98c6b087f15a0bfc"};function lV(){var e;try{e=Kt()}catch{return!1}if(!e||typeof e.createHash!="function")return!1;for(var t=Object.keys(_2),r=0;r<t.length;r++){var i=t[r];try{if(e.createHash(i).update("abc").digest("hex")!==_2[i])return!1}catch{return!1}}return!0}w2.exports=lV()?c2():b2()});var ta=P((Hoe,x2)=>{"use strict";g();var Qo=Qe(),Pl=ei(),Zs=[],Rl={};function S2(){}S2.prototype.toString=function(){return this.name};function kl(e,t){if(~Zs.indexOf(e))return e;if(t){Qo.isArray(t)||(t=[t]);for(var r=0;r<Zs.length;r++){var i=Zs[r],n=Qo.pick(i,t),o=Qo.values(n);if(~o.indexOf(e))return i}return}return Rl[e]}function pg(e){for(var t=[],r=0;r<e.length;r++)t.push(e.charCodeAt(r)&31);return t}function Bl(e){var t=new S2;Pl.defineImmutable(t,{name:e.name,alias:e.alias,pubkeyhash:e.pubkeyhash,privatekey:e.privatekey,scripthash:e.scripthash,xpubkey:e.xpubkey,xprivkey:e.xprivkey});var r=e.indexBy||Object.keys(e);return e.cashAddrPrefix&&Qo.extend(t,{cashAddrPrefix:e.cashAddrPrefix,cashAddrPrefixArray:pg(e.cashAddrPrefix)}),e.networkMagic&&Qo.extend(t,{networkMagic:Pl.integerAsBuffer(e.networkMagic)}),e.port&&Qo.extend(t,{port:e.port}),e.dnsSeeds&&Qo.extend(t,{dnsSeeds:e.dnsSeeds}),Zs.push(t),hV(t,r),t}function hV(e,t){for(var r=0;r<t.length;r++){var i=t[r],n=e[i];!Qo.isUndefined(n)&&!Qo.isObject(n)&&(Rl[n]=e)}}function dV(e,t){for(var r=0;r<t.length;r++){var i=t[r];Rl[i]===e&&delete Rl[i]}}function pV(e){for(var t=0;t<Zs.length;t++)Zs[t]===e&&Zs.splice(t,1);dV(e,Object.keys(Rl))}var gg={livenet:3823236072,testnet:4108710900,regtest:3669344250,stn:4224632057},E2=["seed.bitcoinsv.org","seed.bitcoinunlimited.info"],Ha={PORT:18333,NETWORK_MAGIC:gg.testnet,DNS_SEEDS:E2,PREFIX:"testnet",CASHADDRPREFIX:"bchtest"},ea={PORT:18444,NETWORK_MAGIC:gg.regtest,DNS_SEEDS:[],PREFIX:"regtest",CASHADDRPREFIX:"bchreg"},Ua={PORT:9333,NETWORK_MAGIC:gg.stn,DNS_SEEDS:["stn-seed.bitcoinsv.io"],PREFIX:"stn",CASHADDRPREFIX:"bsvstn"},gV={name:"livenet",alias:"mainnet",prefix:"bitcoin",cashAddrPrefix:"bitcoincash",pubkeyhash:0,privatekey:128,scripthash:5,xpubkey:76067358,xprivkey:76066276,networkMagic:gg.livenet,port:8333,dnsSeeds:E2},mV={name:"testnet",prefix:Ha.PREFIX,cashAddrPrefix:Ha.CASHADDRPREFIX,pubkeyhash:111,privatekey:239,scripthash:196,xpubkey:70617039,xprivkey:70615956,networkMagic:Ha.NETWORK_MAGIC},vV={name:"regtest",prefix:ea.PREFIX,cashAddrPrefix:ea.CASHADDRPREFIX,pubkeyhash:111,privatekey:239,scripthash:196,xpubkey:70617039,xprivkey:70615956,networkMagic:ea.NETWORK_MAGIC,port:ea.PORT,dnsSeeds:[],indexBy:["port","name","cashAddrPrefix","networkMagic"]},yV={name:"stn",prefix:Ua.PREFIX,cashAddrPrefix:Ua.CASHADDRPREFIX,pubkeyhash:111,privatekey:239,scripthash:196,xpubkey:70617039,xprivkey:70615956,networkMagic:Ua.NETWORK_MAGIC,indexBy:["port","name","cashAddrPrefix","networkMagic"]};Bl(mV);Bl(yV);Bl(vV);Bl(gV);var Sb=kl("livenet"),bV=kl("regtest"),no=kl("testnet"),_V=kl("stn");Object.defineProperty(no,"port",{enumerable:!0,configurable:!1,get:function(){return this.regtestEnabled?ea.PORT:this.stnEnabled?Ua.PORT:Ha.PORT}});Object.defineProperty(no,"networkMagic",{enumerable:!0,configurable:!1,get:function(){return this.regtestEnabled?Pl.integerAsBuffer(ea.NETWORK_MAGIC):this.stnEnabled?Pl.integerAsBuffer(Ua.NETWORK_MAGIC):Pl.integerAsBuffer(Ha.NETWORK_MAGIC)}});Object.defineProperty(no,"dnsSeeds",{enumerable:!0,configurable:!1,get:function(){return this.regtestEnabled?ea.DNS_SEEDS:this.stnEnabled?Ua.DNS_SEEDS:Ha.DNS_SEEDS}});Object.defineProperty(no,"cashAddrPrefix",{enumerable:!0,configurable:!1,get:function(){return this.regtestEnabled?ea.CASHADDRPREFIX:this.stnEnabled?Ua.CASHADDRPREFIX:Ha.CASHADDRPREFIX}});Object.defineProperty(no,"cashAddrPrefixArray",{enumerable:!0,configurable:!1,get:function(){return this.regtestEnabled?pg(ea.CASHADDRPREFIX):this.stnEnabled?pg(Ua.CASHADDRPREFIX):pg(Ha.CASHADDRPREFIX)}});function wV(){no.regtestEnabled=!0}function SV(){no.regtestEnabled=!1}function EV(){no.stnEnabled=!0}function xV(){no.stnEnabled=!1}x2.exports={add:Bl,remove:pV,defaultNetwork:Sb,livenet:Sb,mainnet:Sb,testnet:no,regtest:bV,stn:_V,get:kl,enableRegtest:wV,disableRegtest:SV,enableStn:EV,disableStn:xV}});var _c=P((Foe,A2)=>{"use strict";g();var Eb=Qe(),O2=jt(),bc="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split(""),I2={};for(Nl=0;Nl<bc.length;Nl++)I2[bc[Nl]]=Nl;var Nl;function OV(e){if(e.length===0)return"";var t=[0],r,i,n;for(r=0;r<e.length;r++){for(i=0,n=e[r];i<t.length;i++)n+=t[i]<<8,t[i]=n%58,n=n/58|0;for(;n>0;)t.push(n%58),n=n/58|0}var o="";for(r=0;e[r]===0&&r<e.length-1;r++)o+=bc[0];for(r=t.length-1;r>=0;r--)o+=bc[t[r]];return o}function IV(e){if(e.length===0)return f.Buffer.alloc(0);var t=[0],r,i,n;for(r=0;r<e.length;r++){var o=I2[e[r]];if(o===void 0)throw new Error("Non-base58 character");for(i=0,n=o;i<t.length;i++)n+=t[i]*58,t[i]=n&255,n>>=8;for(;n>0;)t.push(n&255),n>>=8}for(r=0;e[r]===bc[0]&&r<e.length-1;r++)t.push(0);return f.Buffer.from(t.reverse())}var Gr=function e(t){if(!(this instanceof e))return new e(t);if(f.Buffer.isBuffer(t)){var r=t;this.fromBuffer(r)}else if(typeof t=="string"){var i=t;this.fromString(i)}};Gr.validCharacters=function(t){return O2.Buffer.isBuffer(t)&&(t=t.toString()),Eb.every(Eb.map(t,function(r){return Eb.includes(bc,r)}))};Gr.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this};Gr.encode=function(e){if(!O2.Buffer.isBuffer(e))throw new Error("Input should be a buffer");return OV(e)};Gr.decode=function(e){if(typeof e!="string")throw new Error("Input should be a string");return IV(e)};Gr.prototype.fromBuffer=function(e){return this.buf=e,this};Gr.fromBuffer=function(e){return new Gr().fromBuffer(e)};Gr.fromHex=function(e){return Gr.fromBuffer(f.Buffer.from(e,"hex"))};Gr.prototype.fromString=function(e){var t=Gr.decode(e);return this.buf=t,this};Gr.fromString=function(e){return new Gr().fromString(e)};Gr.prototype.toBuffer=function(){return this.buf};Gr.prototype.toHex=function(){return this.toBuffer().toString("hex")};Gr.prototype.toString=function(){return Gr.encode(this.buf)};A2.exports=Gr});var wc=P((zoe,k2)=>{"use strict";g();var T2=Qe(),mg=_c(),P2=jt(),R2=Be().sha256sha256,Vt=function e(t){if(!(this instanceof e))return new e(t);if(f.Buffer.isBuffer(t)){var r=t;this.fromBuffer(r)}else if(typeof t=="string"){var i=t;this.fromString(i)}};Vt.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this};Vt.validChecksum=function(t,r){return T2.isString(t)&&(t=P2.Buffer.from(mg.decode(t))),T2.isString(r)&&(r=P2.Buffer.from(mg.decode(r))),r||(r=t.slice(-4),t=t.slice(0,-4)),Vt.checksum(t).toString("hex")===r.toString("hex")};Vt.decode=function(e){if(typeof e!="string")throw new Error("Input must be a string");var t=f.Buffer.from(mg.decode(e));if(t.length<4)throw new Error("Input string too short");var r=t.slice(0,-4),i=t.slice(-4),n=R2(r),o=n.slice(0,4);if(i.toString("hex")!==o.toString("hex"))throw new Error("Checksum mismatch");return r};Vt.checksum=function(e){return R2(e).slice(0,4)};Vt.encode=function(e){if(!f.Buffer.isBuffer(e))throw new Error("Input must be a buffer");var t=f.Buffer.alloc(e.length+4),r=Vt.checksum(e);return e.copy(t),r.copy(t,e.length),mg.encode(t)};Vt.prototype.fromBuffer=function(e){return this.buf=e,this};Vt.fromBuffer=function(e){return new Vt().fromBuffer(e)};Vt.fromHex=function(e){return Vt.fromBuffer(f.Buffer.from(e,"hex"))};Vt.prototype.fromString=function(e){var t=Vt.decode(e);return this.buf=t,this};Vt.fromString=function(e){var t=Vt.decode(e);return new Vt(t)};Vt.prototype.toBuffer=function(){return this.buf};Vt.prototype.toHex=function(){return this.toBuffer().toString("hex")};Vt.prototype.toString=function(){return Vt.encode(this.buf)};k2.exports=Vt});var oo=P((Voe,N2)=>{"use strict";g();var Cl=Qe(),B2=Oe(),Sc=Ze(),Jt=function e(t){if(!(this instanceof e))return new e(t);if(!Cl.isUndefined(t))if(f.Buffer.isBuffer(t))this.set({buf:t});else if(Cl.isString(t)){var r=f.Buffer.from(t,"hex");if(r.length*2!==t.length)throw new TypeError("Invalid hex string");this.set({buf:r})}else if(Cl.isObject(t)){var i=t;this.set(i)}else throw new TypeError("Unrecognized argument for BufferReader")};Jt.prototype.set=function(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this};Jt.prototype.eof=function(){return this.pos>=this.buf.length};Jt.prototype.finished=Jt.prototype.eof;Jt.prototype.read=function(e){B2.checkArgument(!Cl.isUndefined(e),"Must specify a length");var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t};Jt.prototype.readAll=function(){var e=this.buf.slice(this.pos,this.buf.length);return this.pos=this.buf.length,e};Jt.prototype.readUInt8=function(){var e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e};Jt.prototype.readUInt16BE=function(){var e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e};Jt.prototype.readUInt16LE=function(){var e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e};Jt.prototype.readUInt32BE=function(){var e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e};Jt.prototype.readUInt32LE=function(){var e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e};Jt.prototype.readInt32LE=function(){var e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e};Jt.prototype.readUInt64BEBN=function(){var e=this.buf.slice(this.pos,this.pos+8),t=Sc.fromBuffer(e);return this.pos=this.pos+8,t};Jt.prototype.readUInt64LEBN=function(){var e=this.buf.readUInt32LE(this.pos),t=this.buf.readUInt32LE(this.pos+4),r=t*4294967296+e,i;if(r<=9007199254740991)i=new Sc(r);else{var n=Array.prototype.slice.call(this.buf,this.pos,this.pos+8);i=new Sc(n,10,"le")}return this.pos=this.pos+8,i};Jt.prototype.readVarintNum=function(){var e=this.readUInt8();switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:var t=this.readUInt64LEBN(),r=t.toNumber();if(r<=Math.pow(2,53))return r;throw new Error("number too large to retain precision - use readVarintBN");default:return e}};Jt.prototype.readVarLengthBuffer=function(){var e=this.readVarintNum(),t=this.read(e);return B2.checkState(t.length===e,"Invalid length while reading varlength buffer. Expected to read: "+e+" and read "+t.length),t};Jt.prototype.readVarintBuf=function(){var e=this.buf.readUInt8(this.pos);switch(e){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}};Jt.prototype.readVarintBN=function(){var e=this.readUInt8();switch(e){case 253:return new Sc(this.readUInt16LE());case 254:return new Sc(this.readUInt32LE());case 255:return this.readUInt64LEBN();default:return new Sc(e)}};Jt.prototype.reverse=function(){for(var e=f.Buffer.alloc(this.buf.length),t=0;t<e.length;t++)e[t]=this.buf[this.buf.length-1-t];return this.buf=e,this};Jt.prototype.readReverse=function(e){Cl.isUndefined(e)&&(e=this.buf.length);var t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,f.Buffer.from(t).reverse()};N2.exports=Jt});var Ib=P((Woe,D2)=>{"use strict";g();function Fa(e){"@babel/helpers - typeof";return Fa=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},Fa(e)}function C2(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,TV(i.key),i)}}function AV(e,t,r){return t&&C2(e.prototype,t),r&&C2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function TV(e){var t=PV(e,"string");return Fa(t)==="symbol"?t:String(t)}function PV(e,t){if(Fa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Fa(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kV(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&&Ob(e,t)}function Ob(e,t){return Ob=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Ob(e,t)}function BV(e){var t=LV();return function(){var i=vg(e),n;if(t){var o=vg(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return NV(this,n)}}function NV(e,t){if(t&&(Fa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CV(e)}function CV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LV(){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 vg(e){return vg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vg(e)}var M2={},Ec,xb;function Ll(e,t,r){r||(r=Error);function i(o,a,s){return typeof t=="string"?t:t(o,a,s)}var n=(function(o){kV(s,o);var a=BV(s);function s(u,c,l){var d;return RV(this,s),d=a.call(this,i(u,c,l)),d.code=e,d}return AV(s)})(r);M2[e]=n}function L2(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 MV(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function DV(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function qV(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Ll("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);Ll("ERR_INVALID_ARG_TYPE",function(e,t,r){Ec===void 0&&(Ec=ja()),Ec(typeof e=="string","'name' must be a string");var i;typeof t=="string"&&MV(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(DV(e," argument"))n="The ".concat(e," ").concat(i," ").concat(L2(t,"type"));else{var o=qV(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(o," ").concat(i," ").concat(L2(t,"type"))}return n+=". Received type ".concat(Fa(r)),n},TypeError);Ll("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";xb===void 0&&(xb=Qi());var i=xb.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)},TypeError,RangeError);Ll("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(Fa(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError);Ll("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Ec===void 0&&(Ec=ja()),Ec(t.length>0,"At least one arg needs to be specified");var i="The ",n=t.length;switch(t=t.map(function(o){return'"'.concat(o,'"')}),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);D2.exports.codes=M2});var W2=P((Zoe,G2)=>{"use strict";g();function q2(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 H2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q2(Object(r),!0).forEach(function(i){HV(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q2(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function HV(e,t,r){return t=z2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U2(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,z2(i.key),i)}}function FV(e,t,r){return t&&U2(e.prototype,t),r&&U2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function z2(e){var t=jV(e,"string");return Ai(t)==="symbol"?t:String(t)}function jV(e,t){if(Ai(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Ai(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zV(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&&Hl(e,t)}function KV(e){var t=V2();return function(){var i=Ul(e),n;if(t){var o=Ul(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return K2(this,n)}}function K2(e,t){if(t&&(Ai(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ab(e)}function Ab(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tb(e){var t=typeof Map=="function"?new Map:void 0;return Tb=function(i){if(i===null||!VV(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 yg(i,arguments,Ul(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Hl(n,i)},Tb(e)}function yg(e,t,r){return V2()?yg=Reflect.construct.bind():yg=function(n,o,a){var s=[null];s.push.apply(s,o);var u=Function.bind.apply(n,s),c=new u;return a&&Hl(c,a.prototype),c},yg.apply(null,arguments)}function V2(){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 VV(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Hl(e,t){return Hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Hl(e,t)}function Ul(e){return Ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ul(e)}function Ai(e){"@babel/helpers - typeof";return Ai=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},Ai(e)}var GV=Qi(),Pb=GV.inspect,WV=Ib(),YV=WV.codes.ERR_INVALID_ARG_TYPE;function F2(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function ZV(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 On="",Ml="",Dl="",ti="",$s={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:"},$V=10;function j2(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 ql(e){return Pb(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function XV(e,t,r){var i="",n="",o=0,a="",s=!1,u=ql(e),c=u.split(`
|
|
14
14
|
`),l=ql(t).split(`
|
|
15
15
|
`),d=0,p="";if(r==="strictEqual"&&Ai(e)==="object"&&Ai(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),c.length===1&&l.length===1&&c[0]!==l[0]){var y=c[0].length+l[0].length;if(y<=$V){if((Ai(e)!=="object"||e===null)&&(Ai(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat($s[r],`
|
|
16
16
|
|
|
@@ -71,8 +71,8 @@ The flags passed to verify() (0x`+(e>>>0).toString(16)+`) carry no era bit, so t
|
|
|
71
71
|
To validate against BSV as it is today, omit the flags argument or pass Interpreter.mainnetFlags(). If you are deliberately testing pre-Genesis consensus this failure is correct \u2014 set Interpreter.eraDiagnostics = false (or BSV_NO_ERA_HINT=1) to silence this.`,M.eraDiagnostics&&!c_&&(c_=!0,console.warn(`
|
|
72
72
|
[@smartledger/bsv] `+this.eraHint+`
|
|
73
73
|
(shown once per process)
|
|
74
|
-
`))}}};M.prototype.verify=function(e,t,r,i,n,o){this.eraHint=null;var a=this._verifyCore(e,t,r,i,n,o);return a||this._eraDiagnose(n),a};M._resetEraWarning=function(){c_=!1};M.mainnetFlags=function(e){e=e||{};var t=M.SCRIPT_VERIFY_P2SH|M.SCRIPT_VERIFY_STRICTENC|M.SCRIPT_VERIFY_DERSIG|M.SCRIPT_VERIFY_SIGPUSHONLY|M.SCRIPT_VERIFY_LOW_S|M.SCRIPT_VERIFY_NULLFAIL|M.SCRIPT_VERIFY_MINIMALDATA|M.SCRIPT_ENABLE_SIGHASH_FORKID|M.SCRIPT_ENABLE_MAGNETIC_OPCODES|M.SCRIPT_ENABLE_MONOLITH_OPCODES|M.SCRIPT_GENESIS|M.SCRIPT_UTXO_AFTER_GENESIS;return e.afterChronicle!==!1&&(t|=M.SCRIPT_ENABLE_CHRONICLE|M.SCRIPT_UTXO_AFTER_CHRONICLE),t};M.currentConsensusFlags=function(){return M.SCRIPT_ENABLE_MONOLITH_OPCODES|M.SCRIPT_ENABLE_MAGNETIC_OPCODES|M.SCRIPT_GENESIS|M.SCRIPT_UTXO_AFTER_GENESIS|M.SCRIPT_ENABLE_CHRONICLE|M.SCRIPT_UTXO_AFTER_CHRONICLE|M.SCRIPT_ENABLE_SIGHASH_FORKID|M.SCRIPT_VERIFY_SIGPUSHONLY|M.SCRIPT_VERIFY_LOW_S|M.SCRIPT_VERIFY_NULLFAIL};M.useMainnetConsensus=function(e){return e=e||{},M.useGenesisLimits(e.max),M.mainnetFlags(e)};M.SEQUENCE_LOCKTIME_DISABLE_FLAG=1<<31;M.SEQUENCE_LOCKTIME_TYPE_FLAG=1<<22;M.SEQUENCE_LOCKTIME_MASK=65535;M.castToBool=function(e){for(var t=0;t<e.length;t++)if(e[t]!==0)return!(t===e.length-1&&e[t]===128);return!1};M.prototype.checkSignatureEncoding=function(e){var t;if(e.length===0)return!0;if((this.flags&(M.SCRIPT_VERIFY_DERSIG|M.SCRIPT_VERIFY_LOW_S|M.SCRIPT_VERIFY_STRICTENC))!==0&&!Ya.isTxDER(e))return this.errstr="SCRIPT_ERR_SIG_DER_INVALID_FORMAT",!1;if((this.flags&M.SCRIPT_VERIFY_LOW_S)!==0){if(t=Ya.fromTxFormat(e),!t.hasLowS())return this.errstr="SCRIPT_ERR_SIG_DER_HIGH_S",!1}else if((this.flags&M.SCRIPT_VERIFY_STRICTENC)!==0){if(t=Ya.fromTxFormat(e),!t.hasDefinedHashtype())return this.errstr="SCRIPT_ERR_SIG_HASHTYPE",!1;if(!(this.flags&M.SCRIPT_ENABLE_SIGHASH_FORKID)&&t.nhashtype&Ya.SIGHASH_FORKID)return this.errstr="SCRIPT_ERR_ILLEGAL_FORKID",!1;if(!(this.flags&M.SCRIPT_CHRONICLE)&&t.nhashtype&Ya.SIGHASH_CHRONICLE)return this.errstr="SCRIPT_ERR_ILLEGAL_CHRONICLE",!1;if(this.flags&M.SCRIPT_ENABLE_SIGHASH_FORKID&&!(t.nhashtype&Ya.SIGHASH_FORKID))return this.errstr="SCRIPT_ERR_MUST_USE_FORKID",!1}return!0};M.prototype.checkPubkeyEncoding=function(e){return(this.flags&M.SCRIPT_VERIFY_STRICTENC)!==0&&!u_.isValid(e)?(this.errstr="SCRIPT_ERR_PUBKEYTYPE",!1):!0};M.prototype.isAfterGenesis=function(){return(this.flags&M.SCRIPT_UTXO_AFTER_GENESIS)!==0};M.prototype.isAfterChronicle=function(){return(this.flags&(M.SCRIPT_UTXO_AFTER_CHRONICLE|M.SCRIPT_ENABLE_CHRONICLE))!==0};M.prototype.maxScriptElementSize=function(){return this.isAfterGenesis()?M.UNLIMITED:M.MAX_SCRIPT_ELEMENT_SIZE};M.prototype.maxScriptSize=function(){return this.isAfterGenesis()?M.UNLIMITED:M.MAX_SCRIPT_SIZE};M.prototype.maxOpsPerScript=function(){return this.isAfterGenesis()?M.UNLIMITED:M.MAX_OPS_PER_SCRIPT};M.prototype.maxScriptNumLength=function(){return this.isAfterChronicle()?M.MAX_SCRIPT_NUM_LENGTH_AFTER_CHRONICLE:this.isAfterGenesis()?M.MAX_SCRIPT_NUM_LENGTH_AFTER_GENESIS:M.MAXIMUM_ELEMENT_SIZE};M.prototype.maxStackSize=function(){return this.isAfterGenesis()?M.UNLIMITED:M.MAX_STACK_SIZE};M.prototype.maxStackMemoryUsage=function(){return this.isAfterGenesis()?M.MAX_STACK_MEMORY_USAGE_AFTER_GENESIS:M.UNLIMITED};M.prototype.stackMemoryUsage=function(){let e=M.STACK_ELEMENT_OVERHEAD,t=(this.stack.length+this.altstack.length)*e;for(let r=0;r<this.stack.length;r++)t+=this.stack[r].length;for(let r=0;r<this.altstack.length;r++)t+=this.altstack[r].length;return t};M.prototype.checkStackLimits=function(){if(this.stack.length+this.altstack.length>this.maxStackSize())return"SCRIPT_ERR_STACK_SIZE";let e=this.maxStackMemoryUsage();return e!==M.UNLIMITED&&this.stackMemoryUsage()>e?"SCRIPT_ERR_STACK_SIZE":null};M.prototype.maxPubKeysPerMultisig=function(){return this.isAfterGenesis()?M.MAX_PUBKEYS_PER_MULTISIG_AFTER_GENESIS:20};M._isMinimallyEncoded=function(e,t){return t=t||M.MAXIMUM_ELEMENT_SIZE,!(e.length>t||e.length>0&&(e[e.length-1]&127)===0&&(e.length<=1||(e[e.length-2]&128)===0))};M._minimallyEncode=function(e){if(e.length===0)return e;var t=e[e.length-1];if(t&127)return e;if(e.length===1)return f.Buffer.from("");if(e[e.length-2]&128)return e;for(var r=e.length-1;r>0;r--)if(e[r-1]!==0)return e[r-1]&128?e[r++]=t:e[r-1]|=t,e.slice(0,r);return f.Buffer.from("")};M.prototype.evaluate=function(){if(this.script.toBuffer().length>this.maxScriptSize())return this.errstr="SCRIPT_ERR_SCRIPT_SIZE",!1;try{for(;this.pc<this.script.chunks.length;){let r={pc:this.pc,opcode:U.fromNumber(this.script.chunks[this.pc].opcodenum)};var e=this.step();if(!e)return!1;if(this._callbackStep(r),this.returned)return!0;let i=this.checkStackLimits();if(i)return this.errstr=i,!1}let t=this.checkStackLimits();if(t)return this.errstr=t,!1}catch(t){return this.errstr=t.scriptErr||"SCRIPT_ERR_UNKNOWN_ERROR: "+t,!1}return this.vfExec.length>0?(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1):!0};M.prototype._callbackStep=function(e){if(typeof this.stepListener=="function")try{this.stepListener(e,SB(this.stack),SB(this.altstack))}catch(t){console.log(`Error in Step callback:${t}`)}};M.prototype.checkLockTime=function(e){if(!(this.tx.nLockTime<M.LOCKTIME_THRESHOLD&&e.lt(M.LOCKTIME_THRESHOLD_BN)||this.tx.nLockTime>=M.LOCKTIME_THRESHOLD&&e.gte(M.LOCKTIME_THRESHOLD_BN))||e.gt(new Se(this.tx.nLockTime)))return!1;var t=this.tx.inputs[this.nin];return!(!t||t.isFinal())};M.prototype.checkSequence=function(e){var t=this.tx.inputs[this.nin];if(!t)return!1;var r=t.sequenceNumber;if(this.tx.version<2||r&M.SEQUENCE_LOCKTIME_DISABLE_FLAG)return!1;var i=M.SEQUENCE_LOCKTIME_TYPE_FLAG|M.SEQUENCE_LOCKTIME_MASK,n=new Se(r&i),o=e.and(new Se(i)),a=new Se(M.SEQUENCE_LOCKTIME_TYPE_FLAG);return!(!(n.lt(a)&&o.lt(a)||n.gte(a)&&o.gte(a))||o.gt(n))};function d9(e,t){let r=e;for(;r.length<t;)r=f.Buffer.concat([f.Buffer.from([0]),r]);return r}function EB(e){var t=f.Buffer.alloc(4);return t.writeInt32LE(e|0,0),t}M.prototype.step=function(){var e=this;function t(be){return e.stack[e.stack.length+be]}function r(be){switch(be){case U.OP_2MUL:case U.OP_2DIV:if(!e.isAfterChronicle())return!0;break;case U.OP_INVERT:case U.OP_MUL:case U.OP_LSHIFT:case U.OP_RSHIFT:if((e.flags&M.SCRIPT_ENABLE_MAGNETIC_OPCODES)===0)return!0;break;case U.OP_DIV:case U.OP_MOD:case U.OP_SPLIT:case U.OP_CAT:case U.OP_AND:case U.OP_OR:case U.OP_XOR:case U.OP_BIN2NUM:case U.OP_NUM2BIN:return!1;default:break}return!1}var i=(this.flags&M.SCRIPT_VERIFY_MINIMALDATA)!==0,n,o,a,s,u,c,l,d,p,y,_,T,R,B,H,F,I,k=this.script.chunks[this.pc];this.pc++;var D=k.opcodenum,j=this.vfExec.indexOf(!1)===-1&&(!this.nonTopLevelReturnAfterGenesis||D===U.OP_RETURN);if(Wg.isUndefined(D))return this.errstr="SCRIPT_ERR_UNDEFINED_OPCODE",!1;if(k.buf&&k.buf.length>this.maxScriptElementSize())return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;if(D>U.OP_16&&++this.nOpCount>this.maxOpsPerScript())return this.errstr="SCRIPT_ERR_OP_COUNT",!1;if(r(D)&&(!this.isAfterGenesis()||j))return this.errstr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(j&&D>=0&&D<=U.OP_PUSHDATA4){if(i&&!this.script.checkMinimalPush(this.pc-1))return this.errstr="SCRIPT_ERR_MINIMALDATA",!1;if(!k.buf)this.stack.push(M.false);else{if(k.len!==k.buf.length)return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1;this.stack.push(k.buf)}}else if(j||U.OP_IF<=D&&D<=U.OP_ENDIF)switch(D){case U.OP_1NEGATE:case U.OP_1:case U.OP_2:case U.OP_3:case U.OP_4:case U.OP_5:case U.OP_6:case U.OP_7:case U.OP_8:case U.OP_9:case U.OP_10:case U.OP_11:case U.OP_12:case U.OP_13:case U.OP_14:case U.OP_15:case U.OP_16:u=D-(U.OP_1-1),n=new Se(u).toScriptNumBuffer(),this.stack.push(n);break;case U.OP_NOP:break;case U.OP_NOP2:case U.OP_CHECKLOCKTIMEVERIFY:if(!(this.flags&M.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)||this.isAfterGenesis()){if(this.flags&M.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var K=Se.fromScriptNumBuffer(this.stack[this.stack.length-1],i,5);if(K.lt(new Se(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(K))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case U.OP_NOP3:case U.OP_CHECKSEQUENCEVERIFY:if(!(this.flags&M.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY)||this.isAfterGenesis()){if(this.flags&M.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var G=Se.fromScriptNumBuffer(t(-1),i,5);if(G.lt(new Se(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if((G&M.SEQUENCE_LOCKTIME_DISABLE_FLAG)!==0)break;if(!this.checkSequence(G))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case U.OP_NOP1:case U.OP_NOP9:case U.OP_NOP10:if(this.flags&M.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case U.OP_LSHIFTNUM:case U.OP_RSHIFTNUM:if(!this.isAfterChronicle()){if(this.flags&M.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var S=this.maxScriptNumLength(),h=Se.fromScriptNumBuffer(t(-1),i,S);if(h.isNeg())return this.errstr="SCRIPT_ERR_INVALID_NUMBER_RANGE",!1;this.stack.pop();var v=Se.fromScriptNumBuffer(t(-1),i,S);this.stack.pop();var w=h.toNumber(),E=v.isNeg(),A=v.abs(),L;if(D===U.OP_LSHIFTNUM){var N=v.toScriptNumBuffer().length;if(N+Math.floor(w/8)>S)return this.errstr="SCRIPT_ERR_SCRIPTNUM_OVERFLOW",!1;L=A.shln(w)}else L=w>=A.bitLength()?new Se(0):A.shrn(w);if(E&&!L.isZero()&&(L=L.neg()),L.toScriptNumBuffer().length>S)return this.errstr="SCRIPT_ERR_SCRIPTNUM_OVERFLOW",!1;this.stack.push(L.toScriptNumBuffer());break;case U.OP_VER:if(!this.isAfterChronicle())return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1;if(this.tx==null)return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR",!1;this.stack.push(EB(this.tx.version));break;case U.OP_VERIF:case U.OP_VERNOTIF:if(!this.isAfterChronicle()){if(this.isAfterGenesis()&&!j)break;return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}if(F=!1,j){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;if(this.tx==null)return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR",!1;n=t(-1),F=n.length===4&&n.equals(EB(this.tx.version)),D===U.OP_VERNOTIF&&(F=!F),this.stack.pop()}this.vfExec.push(F),this.vfElse.push(!1);break;case U.OP_IF:case U.OP_NOTIF:if(F=!1,j){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;if(n=t(-1),this.flags&M.SCRIPT_VERIFY_MINIMALIF){if(n.length>1)return this.errstr="SCRIPT_ERR_MINIMALIF",!1;if(n.length===1&&n[0]!==1)return this.errstr="SCRIPT_ERR_MINIMALIF",!1}F=M.castToBool(n),D===U.OP_NOTIF&&(F=!F),this.stack.pop()}this.vfExec.push(F),this.vfElse.push(!1);break;case U.OP_ELSE:if(this.vfExec.length===0||this.vfElse[this.vfElse.length-1]&&this.isAfterGenesis())return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec[this.vfExec.length-1]=!this.vfExec[this.vfExec.length-1],this.vfElse[this.vfElse.length-1]=!0;break;case U.OP_ENDIF:if(this.vfExec.length===0)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec.pop(),this.vfElse.pop();break;case U.OP_VERIFY:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(n=t(-1),F=M.castToBool(n),F)this.stack.pop();else return this.errstr="SCRIPT_ERR_VERIFY",!1;break;case U.OP_RETURN:if(this.isAfterGenesis()){if(this.vfExec.length===0){this.returned=!0;break}this.nonTopLevelReturnAfterGenesis=!0;break}return this.errstr="SCRIPT_ERR_OP_RETURN",!1;case U.OP_TOALTSTACK:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altstack.push(this.stack.pop());break;case U.OP_FROMALTSTACK:if(this.altstack.length<1)return this.errstr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altstack.pop());break;case U.OP_2DROP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case U.OP_2DUP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;o=t(-2),a=t(-1),this.stack.push(f.Buffer.from(o)),this.stack.push(f.Buffer.from(a));break;case U.OP_3DUP:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;o=t(-3),a=t(-2);var x=t(-1);this.stack.push(f.Buffer.from(o)),this.stack.push(f.Buffer.from(a)),this.stack.push(f.Buffer.from(x));break;case U.OP_2OVER:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;o=t(-4),a=t(-3),this.stack.push(f.Buffer.from(o)),this.stack.push(f.Buffer.from(a));break;case U.OP_2ROT:if(this.stack.length<6)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;s=this.stack.splice(this.stack.length-6,2),this.stack.push(s[0]),this.stack.push(s[1]);break;case U.OP_2SWAP:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;s=this.stack.splice(this.stack.length-4,2),this.stack.push(s[0]),this.stack.push(s[1]);break;case U.OP_IFDUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;n=t(-1),F=M.castToBool(n),F&&this.stack.push(f.Buffer.from(n));break;case U.OP_DEPTH:n=new Se(this.stack.length).toScriptNumBuffer(),this.stack.push(n);break;case U.OP_DROP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case U.OP_DUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(f.Buffer.from(t(-1)));break;case U.OP_NIP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case U.OP_OVER:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(f.Buffer.from(t(-2)));break;case U.OP_PICK:case U.OP_ROLL:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(n=t(-1),d=Se.fromScriptNumBuffer(n,i,this.maxScriptNumLength()),u=d.toNumber(),this.stack.pop(),u<0||u>=this.stack.length)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;n=t(-u-1),D===U.OP_ROLL&&this.stack.splice(this.stack.length-u-1,1),this.stack.push(f.Buffer.from(n));break;case U.OP_ROT:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;c=t(-3),l=t(-2);var m=t(-1);this.stack[this.stack.length-3]=l,this.stack[this.stack.length-2]=m,this.stack[this.stack.length-1]=c;break;case U.OP_SWAP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;c=t(-2),l=t(-1),this.stack[this.stack.length-2]=l,this.stack[this.stack.length-1]=c;break;case U.OP_TUCK:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,f.Buffer.from(t(-1)));break;case U.OP_SIZE:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;d=new Se(t(-1).length),this.stack.push(d.toScriptNumBuffer());break;case U.OP_AND:case U.OP_OR:case U.OP_XOR:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(o=t(-2),a=t(-1),o.length!==a.length)return this.errstr="SCRIPT_ERR_INVALID_OPERAND_SIZE",!1;switch(D){case U.OP_AND:for(let be=0;be<o.length;be++)o[be]&=a[be];break;case U.OP_OR:for(let be=0;be<o.length;be++)o[be]|=a[be];break;case U.OP_XOR:for(let be=0;be<o.length;be++)o[be]^=a[be];break;default:break}this.stack.pop();break;case U.OP_INVERT:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;n=t(-1);for(let be=0;be<n.length;be++)n[be]=~n[be];break;case U.OP_LSHIFT:case U.OP_RSHIFT:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(o=t(-2),o.length===0)this.stack.pop();else{if(p=new Se(o),y=Se.fromScriptNumBuffer(t(-1),i,this.maxScriptNumLength()),u=y.toNumber(),u<0)return this.errstr="SCRIPT_ERR_INVALID_NUMBER_RANGE",!1;this.stack.pop(),this.stack.pop();let be;D===U.OP_LSHIFT&&(be=p.ushln(u)),D===U.OP_RSHIFT&&(be=p.ushrn(u));let Ee=d9(f.Buffer.from(be.toArray().slice(o.length*-1)),o.length);this.stack.push(Ee)}break;case U.OP_EQUAL:case U.OP_EQUALVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;o=t(-2),a=t(-1);var O=o.toString("hex")===a.toString("hex");if(this.stack.pop(),this.stack.pop(),this.stack.push(O?M.true:M.false),D===U.OP_EQUALVERIFY)if(O)this.stack.pop();else return this.errstr="SCRIPT_ERR_EQUALVERIFY",!1;break;case U.OP_2MUL:case U.OP_2DIV:case U.OP_1ADD:case U.OP_1SUB:case U.OP_NEGATE:case U.OP_ABS:case U.OP_NOT:case U.OP_0NOTEQUAL:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(n=t(-1),d=Se.fromScriptNumBuffer(n,i,this.maxScriptNumLength()),D){case U.OP_2MUL:d=d.mul(new Se(2));break;case U.OP_2DIV:d=d.div(new Se(2));break;case U.OP_1ADD:d=d.add(Se.One);break;case U.OP_1SUB:d=d.sub(Se.One);break;case U.OP_NEGATE:d=d.neg();break;case U.OP_ABS:d.cmp(Se.Zero)<0&&(d=d.neg());break;case U.OP_NOT:d=new Se((d.cmp(Se.Zero)===0)+0);break;case U.OP_0NOTEQUAL:d=new Se((d.cmp(Se.Zero)!==0)+0);break}this.stack.pop(),this.stack.push(d.toScriptNumBuffer());break;case U.OP_ADD:case U.OP_SUB:case U.OP_MUL:case U.OP_MOD:case U.OP_DIV:case U.OP_BOOLAND:case U.OP_BOOLOR:case U.OP_NUMEQUAL:case U.OP_NUMEQUALVERIFY:case U.OP_NUMNOTEQUAL:case U.OP_LESSTHAN:case U.OP_GREATERTHAN:case U.OP_LESSTHANOREQUAL:case U.OP_GREATERTHANOREQUAL:case U.OP_MIN:case U.OP_MAX:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(p=Se.fromScriptNumBuffer(t(-2),i,this.maxScriptNumLength()),y=Se.fromScriptNumBuffer(t(-1),i,this.maxScriptNumLength()),d=new Se(0),D){case U.OP_ADD:d=p.add(y);break;case U.OP_SUB:d=p.sub(y);break;case U.OP_MUL:d=p.mul(y);break;case U.OP_DIV:if(y.cmp(Se.Zero)===0)return this.errstr="SCRIPT_ERR_DIV_BY_ZERO",!1;d=p.div(y);break;case U.OP_MOD:if(y.cmp(Se.Zero)===0)return this.errstr="SCRIPT_ERR_MOD_BY_ZERO",!1;d=p.mod(y);break;case U.OP_BOOLAND:d=new Se((p.cmp(Se.Zero)!==0&&y.cmp(Se.Zero)!==0)+0);break;case U.OP_BOOLOR:d=new Se((p.cmp(Se.Zero)!==0||y.cmp(Se.Zero)!==0)+0);break;case U.OP_NUMEQUAL:d=new Se((p.cmp(y)===0)+0);break;case U.OP_NUMEQUALVERIFY:d=new Se((p.cmp(y)===0)+0);break;case U.OP_NUMNOTEQUAL:d=new Se((p.cmp(y)!==0)+0);break;case U.OP_LESSTHAN:d=new Se((p.cmp(y)<0)+0);break;case U.OP_GREATERTHAN:d=new Se((p.cmp(y)>0)+0);break;case U.OP_LESSTHANOREQUAL:d=new Se((p.cmp(y)<=0)+0);break;case U.OP_GREATERTHANOREQUAL:d=new Se((p.cmp(y)>=0)+0);break;case U.OP_MIN:d=p.cmp(y)<0?p:y;break;case U.OP_MAX:d=p.cmp(y)>0?p:y;break}if(this.stack.pop(),this.stack.pop(),this.stack.push(d.toScriptNumBuffer()),D===U.OP_NUMEQUALVERIFY)if(M.castToBool(t(-1)))this.stack.pop();else return this.errstr="SCRIPT_ERR_NUMEQUALVERIFY",!1;break;case U.OP_WITHIN:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;p=Se.fromScriptNumBuffer(t(-3),i,this.maxScriptNumLength()),y=Se.fromScriptNumBuffer(t(-2),i,this.maxScriptNumLength());var z=Se.fromScriptNumBuffer(t(-1),i,this.maxScriptNumLength());F=y.cmp(p)<=0&&p.cmp(z)<0,this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(F?M.true:M.false);break;case U.OP_RIPEMD160:case U.OP_SHA1:case U.OP_SHA256:case U.OP_HASH160:case U.OP_HASH256:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;n=t(-1);var W;D===U.OP_RIPEMD160?W=eh.ripemd160(n):D===U.OP_SHA1?W=eh.sha1(n):D===U.OP_SHA256?W=eh.sha256(n):D===U.OP_HASH160?W=eh.sha256ripemd160(n):D===U.OP_HASH256&&(W=eh.sha256sha256(n)),this.stack.pop(),this.stack.push(W);break;case U.OP_CODESEPARATOR:this.pbegincodehash=this.pc;break;case U.OP_CHECKSIG:case U.OP_CHECKSIGVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(_=t(-2),T=t(-1),!this.checkSignatureEncoding(_)||!this.checkPubkeyEncoding(T))return!1;R=new th().set({chunks:this.script.chunks.slice(this.pbegincodehash)});var te=new th().add(_);R.findAndDelete(te);try{B=Ya.fromTxFormat(_),H=u_.fromBuffer(T,!1),I=this.tx.verifySignature(B,H,this.nin,R,this.satoshisBN,this.flags)}catch{I=!1}if(!I&&this.flags&M.SCRIPT_VERIFY_NULLFAIL&&_.length)return this.errstr="SCRIPT_ERR_NULLFAIL",!1;if(this.stack.pop(),this.stack.pop(),this.stack.push(I?M.true:M.false),D===U.OP_CHECKSIGVERIFY)if(I)this.stack.pop();else return this.errstr="SCRIPT_ERR_CHECKSIGVERIFY",!1;break;case U.OP_CHECKMULTISIG:case U.OP_CHECKMULTISIGVERIFY:var ie=1;if(this.stack.length<ie)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var se=Se.fromScriptNumBuffer(t(-ie),i,this.maxScriptNumLength()).toNumber();if(se<0||se>this.maxPubKeysPerMultisig())return this.errstr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=se,this.nOpCount>this.maxOpsPerScript())return this.errstr="SCRIPT_ERR_OP_COUNT",!1;var ae=++ie;ie+=se;var we=se+2;if(this.stack.length<ie)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var me=Se.fromScriptNumBuffer(t(-ie),i,this.maxScriptNumLength()).toNumber();if(me<0||me>se)return this.errstr="SCRIPT_ERR_SIG_COUNT",!1;var C=++ie;if(ie+=me,this.stack.length<ie)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;R=new th().set({chunks:this.script.chunks.slice(this.pbegincodehash)});for(var V=0;V<me;V++)_=t(-C-V),R.findAndDelete(new th().add(_));for(I=!0;I&&me>0;){if(_=t(-C),T=t(-ae),!this.checkSignatureEncoding(_)||!this.checkPubkeyEncoding(T))return!1;var Y;try{B=Ya.fromTxFormat(_),H=u_.fromBuffer(T,!1),Y=this.tx.verifySignature(B,H,this.nin,R,this.satoshisBN,this.flags)}catch{Y=!1}Y&&(C++,me--),ae++,se--,me>se&&(I=!1)}for(;ie-- >1;){if(!I&&this.flags&M.SCRIPT_VERIFY_NULLFAIL&&!we&&t(-1).length)return this.errstr="SCRIPT_ERR_NULLFAIL",!1;we>0&&we--,this.stack.pop()}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&M.SCRIPT_VERIFY_NULLDUMMY&&t(-1).length)return this.errstr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(I?M.true:M.false),D===U.OP_CHECKMULTISIGVERIFY)if(I)this.stack.pop();else return this.errstr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1;break;case U.OP_CAT:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(o=t(-2),a=t(-1),o.length+a.length>this.maxScriptElementSize())return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;this.stack[this.stack.length-2]=f.Buffer.concat([o,a]),this.stack.pop();break;case U.OP_SPLIT:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;o=t(-2);var X=Se.fromScriptNumBuffer(t(-1),i,this.maxScriptNumLength()).toNumber();if(X<0||X>o.length)return this.errstr="SCRIPT_ERR_INVALID_SPLIT_RANGE",!1;var de=f.Buffer.from(o);this.stack[this.stack.length-2]=de.slice(0,X),this.stack[this.stack.length-1]=de.slice(X);break;case U.OP_LEFT:case U.OP_RIGHT:if(!this.isAfterChronicle()){if(this.flags&M.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(o=t(-2),u=Se.fromScriptNumBuffer(t(-1),i,this.maxScriptNumLength()).toNumber(),u<0||u>o.length)return this.errstr="SCRIPT_ERR_INVALID_NUMBER_RANGE",!1;this.stack.pop(),D===U.OP_LEFT?this.stack[this.stack.length-1]=f.Buffer.from(o).slice(0,u):this.stack[this.stack.length-1]=f.Buffer.from(o).slice(o.length-u);break;case U.OP_SUBSTR:if(!this.isAfterChronicle()){if(this.flags&M.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;o=t(-3);var ue=Se.fromScriptNumBuffer(t(-1),i,this.maxScriptNumLength()).toNumber(),le=Se.fromScriptNumBuffer(t(-2),i,this.maxScriptNumLength()).toNumber();if(le<0||le>=o.length||ue<0||ue>o.length-le)return this.errstr="SCRIPT_ERR_INVALID_NUMBER_RANGE",!1;this.stack.pop(),this.stack.pop(),this.stack[this.stack.length-1]=f.Buffer.from(o).slice(le,le+ue);break;case U.OP_NUM2BIN:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var ve=Se.fromScriptNumBuffer(t(-1),i,this.maxScriptNumLength()).toNumber();if(ve<0||ve>this.maxScriptElementSize())return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;this.stack.pop();var ge=t(-1);if(ge=M._minimallyEncode(ge),ge.length>ve)return this.errstr="SCRIPT_ERR_IMPOSSIBLE_ENCODING",!1;if(ge.length===ve){this.stack[this.stack.length-1]=ge;break}var ye=0;ge.length>0&&(ye=ge[ge.length-1]&128,ge[ge.length-1]&=127);var ke=f.Buffer.alloc(ve);ge.copy(ke,0);for(var Le=ge.length-1;Le++<ve-2;)ke[Le]=0;ke[Le]=ye,this.stack[this.stack.length-1]=ke;break;case U.OP_BIN2NUM:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(o=t(-1),a=M._minimallyEncode(o),this.stack[this.stack.length-1]=a,!M._isMinimallyEncoded(a,this.maxScriptNumLength()))return this.errstr="SCRIPT_ERR_INVALID_NUMBER_RANGE",!1;break;default:return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}});var tt=P((dse,f_)=>{g();f_.exports=Lg();f_.exports.Interpreter=cn()});var Ti=P((gse,TB)=>{"use strict";g();var l_=Qe(),aa=Oe(),p9=ci(),OB=wc(),ln=ta(),IB=Be(),AB=ei(),h_=Gt();function pe(e,t,r){if(!(this instanceof pe))return new pe(e,t,r);if(l_.isArray(e)&&l_.isNumber(t))return pe.createMultisig(e,t,r);if(e instanceof pe)return e;if(aa.checkArgument(e,"First argument is required, please include address data.","guide/address.html"),t&&!ln.get(t))throw new TypeError('Second argument must be "livenet", "testnet", or "regtest".');if(r&&r!==pe.PayToPublicKeyHash&&r!==pe.PayToScriptHash)throw new TypeError('Third argument must be "pubkeyhash" or "scripthash".');var i=this._classifyArguments(e,t,r);return i.network=i.network||ln.get(t)||ln.defaultNetwork,i.type=i.type||r||pe.PayToPublicKeyHash,AB.defineImmutable(this,{hashBuffer:i.hashBuffer,network:i.network,type:i.type}),this}pe.prototype._classifyArguments=function(e,t,r){if((e instanceof f.Buffer||e instanceof Uint8Array)&&e.length===20)return pe._transformHash(e);if((e instanceof f.Buffer||e instanceof Uint8Array)&&e.length===21)return pe._transformBuffer(e,t,r);if(e instanceof h_)return pe._transformPublicKey(e);if(e instanceof rh())return pe._transformScript(e,t);if(typeof e=="string")return pe._transformString(e,t,r);if(l_.isObject(e))return pe._transformObject(e);throw new TypeError("First argument is an unrecognized data format.")};pe.PayToPublicKeyHash="pubkeyhash";pe.PayToScriptHash="scripthash";pe._transformHash=function(e){var t={};if(!(e instanceof f.Buffer)&&!(e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(e.length!==20)throw new TypeError("Address hashbuffers must be exactly 20 bytes.");return t.hashBuffer=e,t};pe._transformObject=function(e){return aa.checkArgument(e.hash||e.hashBuffer,"Must provide a `hash` or `hashBuffer` property"),aa.checkArgument(e.type,"Must provide a `type` property"),{hashBuffer:e.hash?f.Buffer.from(e.hash,"hex"):e.hashBuffer,network:ln.get(e.network)||ln.defaultNetwork,type:e.type}};pe._classifyFromVersion=function(e){var t={},r=ln.get(e[0],"pubkeyhash"),i=ln.get(e[0],"scripthash");return r?(t.network=r,t.type=pe.PayToPublicKeyHash):i&&(t.network=i,t.type=pe.PayToScriptHash),t};pe._transformBuffer=function(e,t,r){var i={};if(!(e instanceof f.Buffer)&&!(e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(e.length!==21)throw new TypeError("Address buffers must be exactly 21 bytes.");var n=ln.get(t),o=pe._classifyFromVersion(e);if(t&&!n)throw new TypeError("Unknown network");if(!o.network||n&&n!==o.network)throw new TypeError("Address has mismatched network type.");if(!o.type||r&&r!==o.type)throw new TypeError("Address has mismatched type.");return i.hashBuffer=e.slice(1),i.network=o.network,i.type=o.type,i};pe._transformPublicKey=function(e){var t={};if(!(e instanceof h_))throw new TypeError("Address must be an instance of PublicKey.");return t.hashBuffer=IB.sha256ripemd160(e.toBuffer()),t.type=pe.PayToPublicKeyHash,t};pe._transformScript=function(e,t){aa.checkArgument(e instanceof rh(),"script must be a Script instance");var r=e.getAddressInfo(t);if(!r)throw new p9.Script.CantDeriveAddress(e);return r};pe.createMultisig=function(e,t,r){return r=r||e[0].network||ln.defaultNetwork,pe.payingTo(rh().buildMultisigOut(e,t),r)};pe._transformString=function(e,t,r){if(typeof e!="string")throw new TypeError("data parameter supplied is not a string.");if(e.length<27)throw new Error("Invalid Address string provided");e=e.trim();var i=ln.get(t);if(t&&!i)throw new TypeError("Unknown network");var n=OB.decode(e);return pe._transformBuffer(n,t,r)};pe.fromPublicKey=function(e,t){var r=pe._transformPublicKey(e);return t=t||ln.defaultNetwork,new pe(r.hashBuffer,t,r.type)};pe.fromPrivateKey=function(e,t){let r=h_.fromPrivateKey(e);return t=t||e.network||ln.defaultNetwork,pe.fromPublicKey(r,t)};pe.fromPublicKeyHash=function(e,t){var r=pe._transformHash(e);return new pe(r.hashBuffer,t,pe.PayToPublicKeyHash)};pe.fromScriptHash=function(e,t){aa.checkArgument(e,"hash parameter is required");var r=pe._transformHash(e);return new pe(r.hashBuffer,t,pe.PayToScriptHash)};pe.payingTo=function(e,t){return aa.checkArgument(e,"script is required"),aa.checkArgument(e instanceof rh(),"script must be instance of Script"),pe.fromScriptHash(IB.sha256ripemd160(e.toBuffer()),t)};pe.fromScript=function(e,t){aa.checkArgument(e instanceof rh(),"script must be a Script instance");var r=pe._transformScript(e,t);return new pe(r.hashBuffer,t,r.type)};pe.fromBuffer=function(e,t,r){var i=pe._transformBuffer(e,t,r);return new pe(i.hashBuffer,i.network,i.type)};pe.fromHex=function(e,t,r){return pe.fromBuffer(f.Buffer.from(e,"hex"),t,r)};pe.fromString=function(e,t,r){var i=pe._transformString(e,t,r);return new pe(i.hashBuffer,i.network,i.type)};pe.fromObject=function(t){aa.checkState(AB.isHexa(t.hash),'Unexpected hash property, "'+t.hash+'", expected to be hex.');var r=f.Buffer.from(t.hash,"hex");return new pe(r,t.network,t.type)};pe.getValidationError=function(e,t,r){var i;try{new pe(e,t,r)}catch(n){i=n}return i};pe.isValid=function(e,t,r){return!pe.getValidationError(e,t,r)};pe.prototype.isPayToPublicKeyHash=function(){return this.type===pe.PayToPublicKeyHash};pe.prototype.isPayToScriptHash=function(){return this.type===pe.PayToScriptHash};pe.prototype.toBuffer=function(){var e=f.Buffer.from([this.network[this.type]]),t=f.Buffer.concat([e,this.hashBuffer]);return t};pe.prototype.toHex=function(){return this.toBuffer().toString("hex")};pe.prototype.toObject=pe.prototype.toJSON=function(){return{hash:this.hashBuffer.toString("hex"),type:this.type,network:this.network.toString()}};pe.prototype.inspect=function(){return"<Address: "+this.toString()+", type: "+this.type+", network: "+this.network+">"};pe.prototype.toString=function(){return OB.encode(this.toBuffer())};TB.exports=pe;function rh(){return tt()}});var Zr=P((vse,BB)=>{"use strict";g();var Yg=Qe(),g9=Ti(),PB=wc(),Za=Ze(),RB=ei(),uo=ta(),p_=nn(),m9=Gt(),v9=Ui(),kB=Oe(),d_="[REDACTED]";function Pe(e,t){if(!(this instanceof Pe))return new Pe(e,t);if(e instanceof Pe)return e;var r=this._classifyArguments(e,t);if(!r.bn||r.bn.cmp(new Za(0))===0)throw new TypeError("Number can not be equal to zero, undefined, null or false");if(!r.bn.lt(p_.getN()))throw new TypeError("Number must be less than N");if(typeof r.network>"u")throw new TypeError('Must specify the network ("livenet" or "testnet")');return RB.defineImmutable(this,{bn:r.bn,compressed:r.compressed,network:r.network}),Object.defineProperty(this,"publicKey",{configurable:!1,enumerable:!0,get:this.toPublicKey.bind(this)}),this}Pe.prototype._classifyArguments=function(e,t){var r={compressed:!0,network:t?uo.get(t):uo.defaultNetwork};if(Yg.isUndefined(e)||Yg.isNull(e))r.bn=Pe._getRandomBN();else if(e instanceof Za)r.bn=e;else if(e instanceof f.Buffer||e instanceof Uint8Array)r=Pe._transformBuffer(e,t);else if(e.bn&&e.network)r=Pe._transformObject(e);else if(!t&&uo.get(e))r.bn=Pe._getRandomBN(),r.network=uo.get(e);else if(typeof e=="string")RB.isHexa(e)?r.bn=new Za(f.Buffer.from(e,"hex")):r=Pe._transformWIF(e,t);else throw new TypeError("First argument is an unrecognized data type.");return r};Pe._getRandomBN=function(){var e,t;do{var r=v9.getRandomBuffer(32);t=Za.fromBuffer(r),e=t.lt(p_.getN())}while(!e);return t};Pe._transformBuffer=function(e,t){var r={};if(e.length===32)return Pe._transformBNBuffer(e,t);if(r.network=uo.get(e[0],"privatekey"),!r.network)throw new Error("Invalid network");if(t&&r.network!==uo.get(t))throw new TypeError("Private key network mismatch");if(e.length===34&&e[33]===1)r.compressed=!0;else if(e.length===33)r.compressed=!1;else throw new Error("Length of buffer must be 33 (uncompressed) or 34 (compressed)");return r.bn=Za.fromBuffer(e.slice(1,33)),r};Pe._transformBNBuffer=function(e,t,r){var i={};return i.network=uo.get(t)||uo.defaultNetwork,i.bn=Za.fromBuffer(e),i.compressed=r===void 0?!0:!!r,i};Pe._transformWIF=function(e,t){return Pe._transformBuffer(PB.decode(e),t)};Pe.fromBuffer=function(e,t,r){return r!==void 0&&e&&e.length===32?new Pe(Pe._transformBNBuffer(e,t,r)):new Pe(e,t)};Pe.fromHex=function(e,t,r){return Pe.fromBuffer(f.Buffer.from(e,"hex"),t,r)};Pe._transformObject=function(e){if(e.bn instanceof Za)return{bn:e.bn,network:uo.get(e.network),compressed:e.compressed};if(typeof e.bn!="string"||!e.bn.length)throw new TypeError("Invalid private key: `bn` must be a hex string");if(e.bn===d_)throw new TypeError('Invalid private key: `bn` is "'+d_+'". JSON.stringify() redacts the secret on purpose \u2014 use toObject() for a round-trippable export, or toWIF().');if(!/^[0-9a-fA-F]+$/.test(e.bn))throw new TypeError("Invalid private key: `bn` is not hexadecimal");var t=new Za(e.bn,"hex");if(t.isZero()||t.gte(p_.getN()))throw new TypeError("Invalid private key: outside the range of valid keys");var r=uo.get(e.network);return{bn:t,network:r,compressed:e.compressed}};Pe.fromString=Pe.fromWIF=function(e,t){return kB.checkArgument(Yg.isString(e),"First argument is expected to be a string."),new Pe(e,t)};Pe.fromObject=Pe.fromJSON=function(e){return kB.checkArgument(Yg.isObject(e),"First argument is expected to be an object."),new Pe(e)};Pe.fromRandom=function(e){var t=Pe._getRandomBN();return new Pe(t,e)};Pe.getValidationError=function(e,t){var r;try{new Pe(e,t)}catch(i){r=i}return r};Pe.isValid=function(e,t){return e?!Pe.getValidationError(e,t):!1};Pe.prototype.toString=function(){return this.toWIF()};Pe.prototype.toWIF=function(){var e=this.network,t=this.compressed,r;return t?r=f.Buffer.concat([f.Buffer.from([e.privatekey]),this.bn.toBuffer({size:32}),f.Buffer.from([1])]):r=f.Buffer.concat([f.Buffer.from([e.privatekey]),this.bn.toBuffer({size:32})]),PB.encode(r)};Pe.prototype.toBigNumber=function(){return this.bn};Pe.prototype.toBuffer=function(){return this.bn.toBuffer({size:32})};Pe.prototype.toHex=function(){return this.toBuffer().toString("hex")};Pe.prototype.toPublicKey=function(){return this._pubkey||(this._pubkey=m9.fromPrivateKey(this)),this._pubkey};Pe.prototype.toAddress=function(e){var t=this.toPublicKey();return g9.fromPublicKey(t,e||this.network)};Pe.prototype.toObject=function(){return{bn:this.bn.toString("hex"),compressed:this.compressed,network:this.network.toString()}};Pe.prototype.toJSON=function(){return{bn:d_,compressed:this.compressed,network:this.network.toString()}};Pe.prototype.inspect=function(){var e=this.compressed?"":", uncompressed";return"<PrivateKey: "+this.toHex()+", network: "+this.network+e+">"};BB.exports=Pe});var Gt=P((bse,CB)=>{"use strict";g();var Bc=Ze(),Nc=nn(),y9=Be(),b9=ei(),NB=ta(),g_=Qe(),eu=Oe();function xe(e,t){if(!(this instanceof xe))return new xe(e,t);if(eu.checkArgument(e,"First argument is required, please include public key data."),e instanceof xe)return e;t=t||{};var r=this._classifyArgs(e,t);return r.point.validate(),b9.defineImmutable(this,{point:r.point,compressed:r.compressed,network:r.network||NB.defaultNetwork}),this}xe.prototype._classifyArgs=function(e,t){var r={compressed:g_.isUndefined(t.compressed)||t.compressed};if(e instanceof Nc)r.point=e;else if(e.x&&e.y)r=xe._transformObject(e);else if(typeof e=="string")r=xe._transformDER(f.Buffer.from(e,"hex"));else if(xe._isBuffer(e))r=xe._transformDER(e);else if(xe._isPrivateKey(e))r=xe._transformPrivateKey(e);else throw new TypeError("First argument is an unrecognized data format.");return r.network||(r.network=g_.isUndefined(t.network)?void 0:NB.get(t.network)),r};xe._isPrivateKey=function(e){var t=Zr();return e instanceof t};xe._isBuffer=function(e){return e instanceof f.Buffer||e instanceof Uint8Array};xe._transformPrivateKey=function(e){eu.checkArgument(xe._isPrivateKey(e),"Must be an instance of PrivateKey");var t={};return t.point=Nc.getG().mul(e.bn),t.compressed=e.compressed,t.network=e.network,t};xe._transformDER=function(e,t){eu.checkArgument(xe._isBuffer(e),"Must be a buffer of DER encoded public key");var r={};t=g_.isUndefined(t)?!0:t;var i,n,o,a;if(e[0]===4||!t&&(e[0]===6||e[0]===7)){if(o=e.slice(1,33),a=e.slice(33,65),o.length!==32||a.length!==32||e.length!==65)throw new TypeError("Length of x and y must be 32 bytes");i=new Bc(o),n=new Bc(a),r.point=new Nc(i,n),r.compressed=!1}else if(e[0]===3)o=e.slice(1),i=new Bc(o),r=xe._transformX(!0,i),r.compressed=!0;else if(e[0]===2)o=e.slice(1),i=new Bc(o),r=xe._transformX(!1,i),r.compressed=!0;else throw new TypeError("Invalid DER format public key");return r};xe._transformX=function(e,t){eu.checkArgument(typeof e=="boolean","Must specify whether y is odd or not (true or false)");var r={};return r.point=Nc.fromX(e,t),r};xe._transformObject=function(e){var t=new Bc(e.x,"hex"),r=new Bc(e.y,"hex"),i=new Nc(t,r);return new xe(i,{compressed:e.compressed})};xe.fromPrivateKey=function(e){eu.checkArgument(xe._isPrivateKey(e),"Must be an instance of PrivateKey");var t=xe._transformPrivateKey(e);return new xe(t.point,{compressed:t.compressed,network:t.network})};xe.fromDER=xe.fromBuffer=function(e,t){eu.checkArgument(xe._isBuffer(e),"Must be a buffer of DER encoded public key");var r=xe._transformDER(e,t);return new xe(r.point,{compressed:r.compressed})};xe.fromPoint=function(e,t){return eu.checkArgument(e instanceof Nc,"First argument must be an instance of Point."),new xe(e,{compressed:t})};xe.fromHex=xe.fromString=function(e,t){var r=f.Buffer.from(e,t||"hex"),i=xe._transformDER(r);return new xe(i.point,{compressed:i.compressed})};xe.fromX=function(e,t){var r=xe._transformX(e,t);return new xe(r.point,{compressed:r.compressed})};xe.getValidationError=function(e){var t;try{new xe(e)}catch(r){t=r}return t};xe.isValid=function(e){return!xe.getValidationError(e)};xe.prototype.toObject=xe.prototype.toJSON=function(){return{x:this.point.getX().toString("hex",2),y:this.point.getY().toString("hex",2),compressed:this.compressed}};xe.prototype.toBuffer=xe.prototype.toDER=function(){var e=this.point.getX(),t=this.point.getY(),r=e.toBuffer({size:32}),i=t.toBuffer({size:32}),n;if(this.compressed){var o=i[i.length-1]%2;return o?n=f.Buffer.from([3]):n=f.Buffer.from([2]),f.Buffer.concat([n,r])}else return n=f.Buffer.from([4]),f.Buffer.concat([n,r,i])};xe.prototype._getID=function(){return y9.sha256ripemd160(this.toBuffer())};xe.prototype.toAddress=function(e){var t=Ti();return t.fromPublicKey(this,e||this.network)};xe.prototype.toString=xe.prototype.toHex=function(){return this.toDER().toString("hex")};xe.prototype.inspect=function(){return"<PublicKey: "+this.toHex()+(this.compressed?"":", uncompressed")+">"};CB.exports=xe});var fn=P((wse,LB)=>{"use strict";g();var ji=Ze(),co=nn(),_9=ut(),w9=Gt(),S9=Ui(),$a=Be(),E9=Qe(),m_=Oe(),St=function e(t){if(!(this instanceof e))return new e(t);t&&this.set(t)};Object.defineProperty(St.prototype,"k",{get:function(){return this._k},set:function(e){this._k=e,this._kFresh=!0},enumerable:!0,configurable:!0});St.prototype.set=function(e){if(this.hashbuf=e.hashbuf||this.hashbuf,this.endian=e.endian||this.endian,this.privkey=e.privkey||this.privkey,this.pubkey=e.pubkey||(this.privkey?this.privkey.publicKey:this.pubkey),e.sig)if(f.Buffer.isBuffer(e.sig)){var t=ut();this.sig=t.fromDER(e.sig)}else this.sig=e.sig;else this.sig=this.sig;return e.k&&(this.k=e.k),this.verified=e.verified||this.verified,this};St.prototype.privkey2pubkey=function(){this.pubkey=this.privkey.toPublicKey()};St.prototype.calci=function(){for(var e=0;e<4;e++){this.sig.i=e;var t;try{t=this.toPublicKey()}catch(r){console.error(r);continue}if(t.point.eq(this.pubkey.point))return this.sig.compressed=this.pubkey.compressed,this}throw this.sig.i=void 0,new Error("Unable to find valid recovery factor")};St.fromString=function(e){var t=JSON.parse(e);return new St(t)};St.prototype.randomK=function(){var e=co.getN(),t;do t=ji.fromBuffer(S9.getRandomBuffer(32));while(!(t.lt(e)&&t.gt(ji.Zero)));return this.k=t,this};St.prototype.deterministicK=function(e){E9.isUndefined(e)&&(e=0);var t=f.Buffer.alloc(32);t.fill(1);var r=f.Buffer.alloc(32);r.fill(0);var i=this.privkey.bn.toBuffer({size:32}),n=this.endian==="little"?f.Buffer.from(this.hashbuf).reverse():this.hashbuf;r=$a.sha256hmac(f.Buffer.concat([t,f.Buffer.from([0]),i,n]),r),t=$a.sha256hmac(t,r),r=$a.sha256hmac(f.Buffer.concat([t,f.Buffer.from([1]),i,n]),r),t=$a.sha256hmac(t,r),t=$a.sha256hmac(t,r);for(var o=ji.fromBuffer(t),a=co.getN(),s=0;s<e||!(o.lt(a)&&o.gt(ji.Zero));s++)r=$a.sha256hmac(f.Buffer.concat([t,f.Buffer.from([0])]),r),t=$a.sha256hmac(t,r),t=$a.sha256hmac(t,r),o=ji.fromBuffer(t);return this.k=o,this};St.prototype.toPublicKey=function(){var e=this.sig.i;m_.checkArgument(e===0||e===1||e===2||e===3,new Error("i must be equal to 0, 1, 2, or 3"));var t=ji.fromBuffer(this.hashbuf),r=this.sig.r,i=this.sig.s,n=e&1,o=e>>1,a=co.getN(),s=co.getG(),u=o?r.add(a):r,c=co.fromX(n,u),l=c.mul(a);if(!l.isInfinity())throw new Error("nR is not a valid curve point");var d=t.neg().umod(a),p=r.invm(a),y=c.mul(i).add(s.mul(d)).mul(p),_=w9.fromPoint(y,this.sig.compressed);return _};St.prototype.sigError=function(){if(!f.Buffer.isBuffer(this.hashbuf)||this.hashbuf.length!==32)return"hashbuf must be a 32 byte buffer";var e=this.sig.r,t=this.sig.s,r=co.getN();try{if(e.lte(ji.Zero)||t.lte(ji.Zero)||e.gte(r)||t.gte(r))return"r and s not in range";var i=ji.fromBuffer(this.hashbuf,this.endian?{endian:this.endian}:void 0),n=t.invm(r),o=n.mul(i).umod(r),a=n.mul(e).umod(r),s=co.getG().mulAdd(o,this.pubkey.point,a);return s.isInfinity()?"p is infinity":s.getX().umod(r).cmp(e)!==0?"Invalid signature":!1}catch(u){return"Signature security validation failed: "+u.message}};St.toLowS=function(e){return e.gt(ji.fromBuffer(f.Buffer.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(e=co.getN().sub(e)),e};St.prototype._findSignature=function(e,t){var r=co.getN(),i=co.getG(),n=0,o,a,s,u;do(!this.k||!this._kFresh||n>0)&&this.deterministicK(n),n++,o=this.k,a=i.mul(o),s=a.x.umod(r),u=o.invm(r).mul(t.add(e.mul(s))).umod(r);while(s.cmp(ji.Zero)<=0||u.cmp(ji.Zero)<=0);return this._kFresh=!1,u=St.toLowS(u),{s:u,r:s}};St.prototype.sign=function(){var e=this.hashbuf,t=this.privkey,r=t.bn;m_.checkState(e&&t&&r,new Error("invalid parameters")),m_.checkState(f.Buffer.isBuffer(e)&&e.length===32,new Error("hashbuf must be a 32 byte buffer"));var i=ji.fromBuffer(e,this.endian?{endian:this.endian}:void 0),n=this._findSignature(r,i);return n.compressed=this.pubkey.compressed,this.sig=new _9(n),this};St.prototype.signRandomK=function(){return this.randomK(),this.sign()};St.prototype.toString=function(){var e={};return this.hashbuf&&(e.hashbuf=this.hashbuf.toString("hex")),this.privkey&&(e.privkey=this.privkey.toString()),this.pubkey&&(e.pubkey=this.pubkey.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)};St.prototype.verify=function(){return this.verified=!this.sigError(),this.verified};St.prototype.verifyBool=function(){return this.verify()===!0};St.sign=function(e,t,r){return St().set({hashbuf:e,endian:r,privkey:t}).sign().sig};St.signWithCalcI=function(e,t,r){return St().set({hashbuf:e,endian:r,privkey:t}).sign().calci().sig};St.signRandomK=function(e,t,r){return St().set({hashbuf:e,endian:r,privkey:t}).signRandomK().sig};St.verify=function(e,t,r,i){return St().set({hashbuf:e,endian:i,sig:t,pubkey:r}).verify()};LB.exports=St});var Zg=P((xse,qB)=>{"use strict";g();var x9=ut(),MB=fn(),v_=Gt(),ih=Zr(),DB=Be(),hn=Oe(),Ese=ci();function dt(e){return this instanceof dt?(this.options=e||{},this.network=this.options.network||"mainnet",this.registry=this.options.registry||null,this):new dt(e)}dt.fromPublicKey=function(e,t){t=t||{},typeof e=="string"&&(e=v_.fromString(e)),hn.checkArgument(e instanceof v_,"Invalid public key");var r=e.toString("hex"),i=t.network||"mainnet",n=t.path||"",o="did:smartledger:"+r;return i!=="mainnet"&&(o+=":"+i),n&&(o+=":"+n),o};dt.fromPrivateKey=function(e,t){return typeof e=="string"&&(e=ih.fromWIF(e)),hn.checkArgument(e instanceof ih,"Invalid private key"),dt.fromPublicKey(e.toPublicKey(),t)};dt.parseDID=function(e){if(hn.checkArgument(typeof e=="string","DID must be a string"),!e.startsWith("did:smartledger:"))throw new Error("Invalid SmartLedger DID format");var t=e.split(":");if(t.length<3)throw new Error("Invalid DID format");var r={method:"smartledger",identifier:t[2],network:"mainnet",path:""};return t.length>3&&t[3]!==""&&(r.network=t[3]),t.length>4&&(r.path=t.slice(4).join(":")),r};dt.isValidDID=function(e){try{var t=dt.parseDID(e);return!(!/^[0-9a-fA-F]{66}$/.test(t.identifier)&&!/^[0-9a-fA-F]{130}$/.test(t.identifier)||!["mainnet","testnet","regtest"].includes(t.network))}catch{return!1}};dt.getPublicKey=function(e){var t=dt.parseDID(e);return v_.fromString(t.identifier)};dt.createDocument=function(e,t){t=t||{},hn.checkArgument(dt.isValidDID(e),"Invalid DID");var r=dt.getPublicKey(e),i=e+"#keys-1",n={"@context":["https://www.w3.org/ns/did/v1","https://w3id.org/security/suites/secp256k1-2019/v1"],id:e,verificationMethod:[{id:i,type:"EcdsaSecp256k1VerificationKey2019",controller:e,publicKeyHex:r.toString("hex")}],authentication:[i],assertionMethod:[i],keyAgreement:[i],capabilityInvocation:[i],capabilityDelegation:[i]};return t.services&&Array.isArray(t.services)&&(n.service=t.services),t.verificationMethods&&(n.verificationMethod=n.verificationMethod.concat(t.verificationMethods)),t.created&&(n.created=t.created),t.updated&&(n.updated=t.updated),n};dt.resolve=async function(e,t){t=t||{};try{hn.checkArgument(dt.isValidDID(e),"Invalid DID");var r=dt.createDocument(e,t);return{"@context":"https://w3id.org/did-resolution/v1",didDocument:r,didResolutionMetadata:{contentType:"application/did+ld+json",retrieved:new Date().toISOString()},didDocumentMetadata:{method:{published:!0,recoveryCommitment:null,updateCommitment:null}}}}catch(i){return{"@context":"https://w3id.org/did-resolution/v1",didDocument:null,didResolutionMetadata:{error:"notFound",errorMessage:i.message},didDocumentMetadata:{}}}};dt.verifyOwnership=function(e,t,r){try{var i=dt.getPublicKey(e),n=DB.sha256(f.Buffer.isBuffer(r)?r:f.Buffer.from(r,"utf8")),o=x9.fromString(t),a=new MB;return a.hashbuf=n,a.pubkey=i,a.sig=o,a.verify()===!0}catch{return!1}};dt.signMessage=function(e,t){hn.checkArgument(t instanceof ih,"Invalid private key");var r=DB.sha256(f.Buffer.isBuffer(e)?e:f.Buffer.from(e,"utf8")),i=new MB;return i.hashbuf=r,i.privkey=t,i.pubkey=t.toPublicKey(),i.sign().toString()};dt.createProofOfOwnership=function(e,t){hn.checkArgument(e instanceof ih,"Invalid private key"),hn.checkArgument(typeof t=="string","Challenge must be a string");var r=dt.fromPrivateKey(e),i=new Date().toISOString(),n=t+":"+i+":"+r,o=dt.signMessage(n,e);return{type:"EcdsaSecp256k1Signature2019",created:i,verificationMethod:r+"#keys-1",proofPurpose:"authentication",challenge:t,jws:o}};dt.verifyProofOfOwnership=function(e,t){try{hn.checkArgument(e&&typeof e=="object","Invalid proof object"),hn.checkArgument(typeof t=="string","DID must be a string");var r=e.challenge+":"+e.created+":"+t;return dt.verifyOwnership(t,e.jws,r)}catch{return!1}};dt.createDIDURL=function(e,t){return hn.checkArgument(typeof e=="string","DID must be a string"),hn.checkArgument(typeof t=="string","Fragment must be a string"),e+"#"+t};dt.generateTestDID=function(e){e=e||{};var t=new ih,r=dt.fromPrivateKey(t,e),i=dt.createDocument(r,e);return{did:r,privateKey:t.toWIF(),publicKey:t.toPublicKey().toString("hex"),document:i}};qB.exports=dt});var nh=P((Ise,UB)=>{"use strict";g();var HB={};HB.stringify=function(e){return y_(e,[])};function y_(e,t){if(e===null)return"null";var r=typeof e;if(r==="boolean")return e?"true":"false";if(r==="number"){if(!isFinite(e))throw new Error("Cannot canonicalize non-finite number: "+e);return JSON.stringify(e)}if(r==="string")return JSON.stringify(e);if(r==="bigint")throw new Error("Cannot canonicalize bigint; represent it as a string");if(Array.isArray(e)||r==="object"){if(t.indexOf(e)!==-1)throw new Error("Cannot canonicalize a circular structure");t.push(e);var i;if(Array.isArray(e))i="["+e.map(function(o){return o===void 0?"null":y_(o,t)}).join(",")+"]";else{var n=Object.keys(e).filter(function(o){return e[o]!==void 0&&typeof e[o]!="function"}).sort();i="{"+n.map(function(o){return JSON.stringify(o)+":"+y_(e[o],t)}).join(",")+"}"}return t.pop(),i}throw new Error("Cannot canonicalize value of type: "+r)}UB.exports=HB});var $g=P((Rse,zB)=>{"use strict";g();var O9=Ui(),I9=Zg(),FB=Zr(),Xa=Be(),jB=fn(),Tse=ut(),Ja=Oe(),A9=nh(),Pse=Qe();function It(e,t){return this instanceof It?(typeof e=="string"&&(e=FB.fromWIF(e)),Ja.checkArgument(e instanceof FB,"Invalid private key"),this.privateKey=e,this.publicKey=e.toPublicKey(),this.options=t||{},this.did=I9.fromPrivateKey(e,this.options),this):new It(e,t)}It._sortValue=function(e){return Array.isArray(e)?e.map(function(t){return It._sortValue(t)}):e!==null&&typeof e=="object"?Object.keys(e).sort().reduce(function(t,r){return t[r]=It._sortValue(e[r]),t},{}):e};It._canonicalizeJSON=function(e){return JSON.stringify(It._sortValue(e))};It._canonicalizeJCS=function(e){return A9.stringify(e)};It._hashCredential=function(e,t){var r=t===It.CANONICALIZATION.LEGACY?It._canonicalizeJSON(e):It._canonicalizeJCS(e);return Xa.sha256(f.Buffer.from(r,"utf8"))};It.CANONICALIZATION={JCS:"jcs",LEGACY:"legacy"};It.prototype.createCredential=function(e,t){t=t||{},Ja.checkArgument(e&&typeof e=="object","Invalid credential subject");var r=new Date().toISOString(),i=t.id||"urn:uuid:"+this._generateUUID(),n={"@context":["https://www.w3.org/2018/credentials/v1"],id:i,type:["VerifiableCredential"],issuer:this.did,issuanceDate:r,credentialSubject:e};return t.type&&(Array.isArray(t.type)?n.type=n.type.concat(t.type):n.type.push(t.type)),t.context&&(Array.isArray(t.context)?n["@context"]=n["@context"].concat(t.context):n["@context"].push(t.context)),t.expirationDate&&(n.expirationDate=t.expirationDate),t.termsOfUse&&(n.termsOfUse=t.termsOfUse),t.evidence&&(n.evidence=t.evidence),t.refreshService&&(n.refreshService=t.refreshService),n};It.prototype.signCredential=function(e,t){t=t||{},Ja.checkArgument(e&&typeof e=="object","Invalid credential");var r=JSON.parse(JSON.stringify(e));delete r.proof;var i=It._hashCredential(r),n=new jB;n.hashbuf=i,n.privkey=this.privateKey,n.pubkey=this.publicKey,n.sign();var o=n.sig,a=this._createJWSSignature(i,o),s={type:"EcdsaSecp256k1Signature2019",created:new Date().toISOString(),verificationMethod:this.did+"#keys-1",proofPurpose:t.proofPurpose||"assertionMethod",jws:a};t.challenge&&(s.challenge=t.challenge),t.domain&&(s.domain=t.domain);var u=JSON.parse(JSON.stringify(r));return u.proof=s,u.rootHash=i.toString("hex"),u};It.prototype._createJWSSignature=function(e,t){var r={alg:"ES256K",typ:"JWT"},i=f.Buffer.from(JSON.stringify(r)).toString("base64url"),n=e.toString("base64url"),o=t.toDER().toString("base64url");return i+".."+o};It.prototype.createEmailCredential=function(e,t){t=t||{},Ja.checkArgument(typeof e=="string"&&e.includes("@"),"Invalid email address");var r={id:t.subjectId||"did:smartledger:"+Xa.sha256(f.Buffer.from(e)).toString("hex"),email:e,verified:!0,verificationMethod:"email_verification",verificationTimestamp:new Date().toISOString()},i={type:"EmailVerifiedCredential",context:"https://smartledger.technology/contexts/email/v1",...t},n=this.createCredential(r,i);return this.signCredential(n,t)};It.prototype.createAgeCredential=function(e,t,r){r=r||{},Ja.checkArgument(typeof e=="number"&&e>0,"Invalid age");var i={id:r.subjectId||"urn:uuid:"+this._generateUUID(),ageOver:e,verified:!0,verificationMethod:"age_verification"};t&&(i.birthDateHash=Xa.sha256(f.Buffer.from(t.toISOString())).toString("hex"));var n={type:"AgeVerifiedCredential",context:"https://smartledger.technology/contexts/age/v1",...r},o=this.createCredential(i,n);return this.signCredential(o,r)};It.prototype.createKYCCredential=function(e,t){t=t||{},Ja.checkArgument(e&&typeof e=="object","Invalid KYC data");var r={id:t.subjectId||"urn:uuid:"+this._generateUUID(),kycLevel:e.level||"basic",verified:!0,verificationMethod:"kyc_verification",verificationTimestamp:new Date().toISOString(),verifyingAuthority:e.authority||this.did};e.firstName&&(r.firstNameHash=Xa.sha256(f.Buffer.from(e.firstName)).toString("hex")),e.lastName&&(r.lastNameHash=Xa.sha256(f.Buffer.from(e.lastName)).toString("hex")),e.ssn&&(r.ssnHash=Xa.sha256(f.Buffer.from(e.ssn)).toString("hex"));var i={type:"KYCVerifiedCredential",context:"https://smartledger.technology/contexts/kyc/v1",...t},n=this.createCredential(r,i);return this.signCredential(n,t)};It.prototype.createOrganizationCredential=function(e,t){t=t||{},Ja.checkArgument(e&&typeof e=="object","Invalid organization data");var r={id:t.subjectId||"did:smartledger:org:"+Xa.sha256(f.Buffer.from(e.name||"")).toString("hex"),name:e.name,type:e.type||"Organization",verified:!0,verificationMethod:"organization_verification",verificationTimestamp:new Date().toISOString()};e.taxId&&(r.taxIdHash=Xa.sha256(f.Buffer.from(e.taxId)).toString("hex")),e.incorporationState&&(r.incorporationState=e.incorporationState),e.industry&&(r.industry=e.industry);var i={type:"OrganizationCredential",context:"https://smartledger.technology/contexts/organization/v1",...t},n=this.createCredential(r,i);return this.signCredential(n,t)};It.prototype._generateUUID=function(){var e=O9.getRandomBuffer(16);e[6]=e[6]&15|64,e[8]=e[8]&63|128;var t=e.toString("hex");return[t.substring(0,8),t.substring(8,12),t.substring(12,16),t.substring(16,20),t.substring(20,32)].join("-")};It.prototype.createPresentation=function(e,t){t=t||{},Ja.checkArgument(Array.isArray(e),"Credentials must be an array");var r={"@context":["https://www.w3.org/2018/credentials/v1"],type:["VerifiablePresentation"],id:t.id||"urn:uuid:"+this._generateUUID(),holder:this.did,verifiableCredential:e};t.context&&(Array.isArray(t.context)?r["@context"]=r["@context"].concat(t.context):r["@context"].push(t.context));var i=It._hashCredential(r),n=new jB;n.hashbuf=i,n.privkey=this.privateKey,n.pubkey=this.publicKey,n.sign();var o=n.sig,a=this._createJWSSignature(i,o),s={type:"EcdsaSecp256k1Signature2019",created:new Date().toISOString(),verificationMethod:this.did+"#keys-1",proofPurpose:"authentication",jws:a};return t.challenge&&(s.challenge=t.challenge),t.domain&&(s.domain=t.domain),r.proof=s,r};It.prototype.getIssuerInfo=function(){return{did:this.did,publicKey:this.publicKey.toString("hex"),verificationMethod:this.did+"#keys-1"}};zB.exports=It});var WB=P((Cse,GB)=>{"use strict";g();var Xg=Zg(),sa=$g(),Bse=Gt(),Nse=Be(),KB=fn(),T9=ut(),VB=Oe();function ht(e){return this instanceof ht?(this.options=e||{},this.trustedIssuers=this.options.trustedIssuers||[],this):new ht(e)}ht.verifyCredential=async function(e,t){t=t||{};try{VB.checkArgument(e&&typeof e=="object","Invalid credential");var r={valid:!1,errors:[],warnings:[],checks:{structure:!1,signature:!1,issuer:!1,temporal:!1,schema:!1}},i=ht._validateStructure(e);r.checks.structure=i.valid,i.valid||(r.errors=r.errors.concat(i.errors));var n=await ht._verifySignature(e);r.checks.signature=n.valid,n.valid?(r.issuerDID=n.issuerDID,r.verificationMethod=n.verificationMethod):r.errors=r.errors.concat(n.errors);var o=await ht._validateIssuer(e,t);r.checks.issuer=o.valid,o.valid||(r.errors=r.errors.concat(o.errors)),o.warnings&&(r.warnings=r.warnings.concat(o.warnings));var a=ht._validateTemporal(e);if(r.checks.temporal=a.valid,a.valid||(r.errors=r.errors.concat(a.errors)),a.warnings&&(r.warnings=r.warnings.concat(a.warnings)),t.schema){var s=ht._validateSchema(e,t.schema);r.checks.schema=s.valid,s.valid||(r.errors=r.errors.concat(s.errors))}else r.checks.schema=!0;return r.valid=Object.values(r.checks).every(u=>u===!0),r}catch(u){return{valid:!1,errors:["Verification failed: "+u.message],warnings:[],checks:{structure:!1,signature:!1,issuer:!1,temporal:!1,schema:!1}}}};ht.verifyPresentation=async function(e,t){t=t||{};try{VB.checkArgument(e&&typeof e=="object","Invalid presentation");var r={valid:!1,errors:[],warnings:[],credentialResults:[],presentationValid:!1};if(!e.type||!e.type.includes("VerifiablePresentation"))return r.errors.push("Invalid presentation type"),r;if(!e.holder)return r.errors.push("Missing presentation holder"),r;var i=await ht._verifyPresentationSignature(e);if(r.presentationValid=i.valid,i.valid||(r.errors=r.errors.concat(i.errors)),e.verifiableCredential&&Array.isArray(e.verifiableCredential))for(var n=0;n<e.verifiableCredential.length;n++){var o=e.verifiableCredential[n],a=await ht.verifyCredential(o,t);r.credentialResults.push({index:n,result:a}),a.valid||r.errors.push("Credential "+n+" is invalid")}var s=r.credentialResults.every(u=>u.result.valid);return r.valid=r.presentationValid&&s,r}catch(u){return{valid:!1,errors:["Presentation verification failed: "+u.message],warnings:[],credentialResults:[],presentationValid:!1}}};ht._validateStructure=function(e){var t=[];return e["@context"]?Array.isArray(e["@context"])?e["@context"].includes("https://www.w3.org/2018/credentials/v1")||t.push("Missing required W3C credentials context"):t.push("@context must be an array"):t.push("Missing @context"),e.type?Array.isArray(e.type)?e.type.includes("VerifiableCredential")||t.push("Must include VerifiableCredential type"):t.push("type must be an array"):t.push("Missing type"),e.issuer||t.push("Missing issuer"),e.issuanceDate||t.push("Missing issuanceDate"),e.credentialSubject||t.push("Missing credentialSubject"),e.proof||t.push("Missing proof"),{valid:t.length===0,errors:t}};ht._normalizeDID=function(e){var t=e&&typeof e=="object"?e.id:e;return typeof t!="string"||t.length===0?null:t.split("#")[0]};ht._verifySignature=async function(e){try{var t=e.proof;if(!t)return{valid:!1,errors:["Missing proof"]};if(t.type!=="EcdsaSecp256k1Signature2019")return{valid:!1,errors:["Unsupported proof type: "+t.type]};if(!t.verificationMethod)return{valid:!1,errors:["Missing verification method"]};if(!t.jws)return{valid:!1,errors:["Missing JWS signature"]};var r=t.verificationMethod,i=r.split("#")[0],n=ht._normalizeDID(e.issuer);if(!n)return{valid:!1,errors:["Missing or invalid credential issuer"]};if(n!==i)return{valid:!1,errors:["Verification method DID ("+i+") does not match credential issuer ("+n+")"]};var o=Xg.getPublicKey(i),a=JSON.parse(JSON.stringify(e));delete a.proof,delete a.rootHash;var s=ht._parseJWSSignature(t.jws),u=[sa.CANONICALIZATION.JCS,sa.CANONICALIZATION.LEGACY].some(function(c){var l=new KB;return l.hashbuf=sa._hashCredential(a,c),l.pubkey=o,l.sig=s,l.verify()===!0});return u?{valid:!0,issuerDID:i,verificationMethod:r}:{valid:!1,errors:["Signature verification failed"]}}catch(c){return{valid:!1,errors:["Signature verification error: "+c.message]}}};ht._parseJWSSignature=function(e){var t=e.split(".");if(t.length!==3)throw new Error("Invalid JWS format");var r=t[2],i=f.Buffer.from(r,"base64url");return T9.fromDER(i)};ht._verifyPresentationSignature=async function(e){try{var t=e.proof;if(!t)return{valid:!1,errors:["Missing presentation proof"]};var r=e.holder,i=Xg.getPublicKey(r),n=JSON.parse(JSON.stringify(e));delete n.proof;var o=ht._parseJWSSignature(t.jws),a=[sa.CANONICALIZATION.JCS,sa.CANONICALIZATION.LEGACY].some(function(s){var u=new KB;return u.hashbuf=sa._hashCredential(n,s),u.pubkey=i,u.sig=o,u.verify()===!0});return{valid:a,errors:a?[]:["Presentation signature verification failed"]}}catch(s){return{valid:!1,errors:["Presentation signature error: "+s.message]}}};ht._validateIssuer=async function(e,t){var r=[],i=[];try{var n=e.issuer;if(!Xg.isValidDID(n))return r.push("Invalid issuer DID format"),{valid:!1,errors:r};var o=await Xg.resolve(n);if(!o.didDocument)return r.push("Unable to resolve issuer DID"),{valid:!1,errors:r};if(t.trustedIssuers&&Array.isArray(t.trustedIssuers)){var a=ht._normalizeDID(n),s=t.trustedIssuers.map(function(u){return ht._normalizeDID(u)}).filter(Boolean);if(!a||s.indexOf(a)===-1)return r.push("Issuer not in trusted list"),{valid:!1,errors:r,warnings:i}}return{valid:r.length===0,errors:r,warnings:i}}catch(u){return{valid:!1,errors:["Issuer validation error: "+u.message],warnings:i}}};ht._validateTemporal=function(e){var t=[],r=[],i=new Date;if(e.issuanceDate){var n=new Date(e.issuanceDate);isNaN(n.getTime())?t.push("Invalid issuanceDate format"):n>i&&t.push("Credential issued in the future")}if(e.expirationDate){var o=new Date(e.expirationDate);isNaN(o.getTime())?t.push("Invalid expirationDate format"):o<=i?t.push("Credential has expired"):o<=new Date(i.getTime()+1440*60*1e3)&&r.push("Credential expires within 24 hours")}return{valid:t.length===0,errors:t,warnings:r}};ht._validateSchema=function(e,t){var r=[];if(t.requiredFields&&t.requiredFields.forEach(function(n){ht._getNestedProperty(e,n)||r.push("Missing required field: "+n)}),t.requiredTypes){var i=t.requiredTypes.some(function(n){return e.type&&e.type.includes(n)});i||r.push("Missing required credential type")}return{valid:r.length===0,errors:r}};ht._getNestedProperty=function(e,t){return t.split(".").reduce(function(r,i){return r&&r[i]},e)};ht.verifyCredentialHash=function(e){try{if(!e.rootHash)return!1;var t=JSON.parse(JSON.stringify(e));delete t.proof,delete t.rootHash;var r=f.Buffer.from(e.rootHash,"hex");return[sa.CANONICALIZATION.JCS,sa.CANONICALIZATION.LEGACY].some(function(i){return f.Buffer.compare(sa._hashCredential(t,i),r)===0})}catch{return!1}};ht.extractClaims=function(e){try{var t={issuer:e.issuer,subject:e.credentialSubject.id||"unknown",types:e.type||[],issuanceDate:e.issuanceDate,expirationDate:e.expirationDate,claims:{}};return Object.keys(e.credentialSubject).forEach(function(r){r!=="id"&&(t.claims[r]=e.credentialSubject[r])}),t}catch{return null}};ht.createReport=function(e){var t=[];return t.push("=== Credential Verification Report ==="),t.push("Overall Status: "+(e.valid?"VALID":"INVALID")),t.push(""),t.push("Verification Checks:"),Object.keys(e.checks).forEach(function(r){var i=e.checks[r]?"\u2713":"\u2717";t.push(" "+i+" "+r.charAt(0).toUpperCase()+r.slice(1))}),t.push(""),e.errors.length>0&&(t.push("Errors:"),e.errors.forEach(function(r){t.push(" \u2022 "+r)}),t.push("")),e.warnings.length>0&&(t.push("Warnings:"),e.warnings.forEach(function(r){t.push(" \u2022 "+r)}),t.push("")),e.issuerDID&&t.push("Issuer: "+e.issuerDID),e.verificationMethod&&t.push("Verification Method: "+e.verificationMethod),t.join(`
|
|
75
|
-
`)};GB.exports=ht});var ZB=P((Dse,YB)=>{"use strict";g();var Jg=Ui(),P9=$g(),Ri=Be(),Mse=Ze(),ri=Oe();function Nt(e){return this instanceof Nt?(this.options=e||{},this):new Nt(e)}Nt.createMerkleTree=function(e,t){ri.checkArgument(e&&typeof e=="object","Invalid credential");var r=Nt._extractFields(e),i=t||Jg.getRandomBuffer(32).toString("hex"),n=r.map(function(a,s){var u=Ri.sha256(f.Buffer.from(i+":"+s+":"+a.path,"utf8")).toString("hex"),c=a.path+":"+JSON.stringify(a.value)+":"+u;return{path:a.path,value:a.value,hash:Ri.sha256(f.Buffer.from(c,"utf8")).toString("hex"),salt:u}}),o=Nt._buildMerkleTree(n.map(a=>a.hash));return{salt:i,leaves:n,tree:o,root:o[o.length-1][0]}};Nt.generateSelectiveProof=function(e,t,r){ri.checkArgument(e&&typeof e=="object","Invalid credential"),typeof t=="string"&&(t=[t]),ri.checkArgument(Array.isArray(t),"Disclose paths must be array");var i=Nt.createMerkleTree(e,r),n=[],o=[];return t.forEach(function(a){var s=i.leaves.find(l=>l.path===a);if(s){n.push(s);var u=i.leaves.findIndex(l=>l.path===a),c=Nt._generateMerkleProof(i.tree,u);o.push({path:a,leafIndex:u,proof:c})}}),{type:"SelectiveDisclosureProof",created:new Date().toISOString(),proofPurpose:"selectiveDisclosure",verificationMethod:e.proof?e.proof.verificationMethod:null,credentialRoot:i.root,credentialHash:e.rootHash||P9._hashCredential(e).toString("hex"),disclosedFields:n.map(function(a){return{path:a.path,value:a.value,hash:a.hash,salt:a.salt}}),merkleProofs:o}};Nt.verifySelectiveProof=function(e,t){try{ri.checkArgument(e&&typeof e=="object","Invalid proof"),ri.checkArgument(typeof t=="string","Expected root must be string");for(var r={valid:!1,errors:[],verifiedFields:[]},i=0;i<e.disclosedFields.length;i++){var n=e.disclosedFields[i],o=e.merkleProofs.find(c=>c.path===n.path);if(!o){r.errors.push("Missing Merkle proof for field: "+n.path);continue}if(typeof n.salt!="string"||!n.salt){r.errors.push("Missing per-field salt for: "+n.path);continue}var a=n.path+":"+JSON.stringify(n.value)+":"+n.salt,s=Ri.sha256(f.Buffer.from(a,"utf8")).toString("hex");if(s!==n.hash){r.errors.push("Field hash mismatch for: "+n.path);continue}var u=Nt._verifyMerkleProof(n.hash,o.proof,t);if(!u){r.errors.push("Invalid Merkle proof for: "+n.path);continue}r.verifiedFields.push({path:n.path,value:n.value,verified:!0})}return r.valid=r.errors.length===0&&r.verifiedFields.length>0,r}catch(c){return{valid:!1,errors:["Proof verification failed: "+c.message],verifiedFields:[]}}};Nt.generateAgeProof=function(e,t,r){ri.checkArgument(e instanceof Date,"Birth date must be Date object"),ri.checkArgument(typeof t=="number","Minimum age must be number"),r=r||Jg.getRandomBuffer(32).toString("hex");var i=new Date,n=Math.floor((i-e)/(365.25*24*60*60*1e3));if(n<t)throw new Error("Age requirement not met");var o=e.toISOString().split("T")[0],a=Ri.sha256(f.Buffer.from(o+":"+r,"utf8")).toString("hex"),s={minimumAge:t,ageAttestation:n>=t,timestamp:i.toISOString(),salt:r},u=Ri.sha256(f.Buffer.from(JSON.stringify(s),"utf8")).toString("hex");return{type:"AgeProof",created:new Date().toISOString(),proofPurpose:"ageVerification",minimumAge:t,meetsRequirement:!0,birthDateCommitment:a,ageProofHash:u,challengeResponse:Nt._generateAgeChallenge(e,t,r),opening:{birthDate:o,salt:r}}};Nt.verifyAgeProof=function(e,t,r){try{if(ri.checkArgument(e&&typeof e=="object","Invalid proof"),ri.checkArgument(typeof t=="number","Required age must be number"),e.type!=="AgeProof"||e.minimumAge!==t||!r||typeof r!="object")return!1;var i=r.birthDate;if(typeof i=="string"&&(i=new Date(i)),!(i instanceof Date)||isNaN(i.getTime())||typeof r.salt!="string")return!1;var n=i.toISOString().split("T")[0],o=Ri.sha256(f.Buffer.from(n+":"+r.salt,"utf8")).toString("hex");if(o!==e.birthDateCommitment)return!1;var a=Math.floor((Date.now()-i.getTime())/(365.25*24*60*60*1e3));return a>=t}catch{return!1}};Nt.generateRangeProof=function(e,t,r,i){ri.checkArgument(typeof e=="number","Value must be number"),ri.checkArgument(typeof t=="number","Min must be number"),ri.checkArgument(typeof r=="number","Max must be number"),ri.checkArgument(e>=t&&e<=r,"Value not in range"),i=i||Jg.getRandomBuffer(32).toString("hex");var n=Ri.sha256(f.Buffer.from(e.toString()+":"+i,"utf8")).toString("hex"),o={min:t,max:r,inRange:!0,timestamp:new Date().toISOString(),salt:i},a=Ri.sha256(f.Buffer.from(JSON.stringify(o),"utf8")).toString("hex");return{type:"RangeProof",created:new Date().toISOString(),proofPurpose:"rangeVerification",range:{min:t,max:r},valueCommitment:n,proofHash:a,inRange:!0,opening:{value:e,salt:i}}};Nt.verifyRangeProof=function(e,t,r,i){try{if(ri.checkArgument(e&&typeof e=="object","Invalid proof"),e.type!=="RangeProof"||!e.range||e.range.min!==t||e.range.max!==r||!i||typeof i!="object"||typeof i.value!="number"||typeof i.salt!="string")return!1;var n=Ri.sha256(f.Buffer.from(i.value.toString()+":"+i.salt,"utf8")).toString("hex");return n!==e.valueCommitment?!1:i.value>=t&&i.value<=r}catch{return!1}};Nt._extractFields=function(e,t){t=t||"";var r=[];return Object.keys(e).forEach(function(i){var n=t?t+"."+i:i,o=e[i];o&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)?r=r.concat(Nt._extractFields(o,n)):r.push({path:n,value:o})}),r};Nt._buildMerkleTree=function(e){if(e.length===0)throw new Error("Cannot build tree from empty leaves");for(var t=[e];t[t.length-1].length>1;){for(var r=t[t.length-1],i=[],n=0;n<r.length;n+=2){var o=r[n],a=n+1<r.length?r[n+1]:o,s=o+a,u=Ri.sha256(f.Buffer.from(s,"hex")).toString("hex");i.push(u)}t.push(i)}return t};Nt._generateMerkleProof=function(e,t){for(var r=[],i=t,n=0;n<e.length-1;n++){var o=e[n],a=i%2===0,s=a?i+1:i-1;s<o.length&&r.push({hash:o[s],isLeft:!a}),i=Math.floor(i/2)}return r};Nt._verifyMerkleProof=function(e,t,r){for(var i=e,n=0;n<t.length;n++){var o=t[n],a=o.isLeft?o.hash+i:i+o.hash;i=Ri.sha256(f.Buffer.from(a,"hex")).toString("hex")}return i===r};Nt._generateAgeChallenge=function(e,t,r){var i=Ri.sha256(f.Buffer.from(e.toISOString()+t+r,"utf8"));return i.toString("hex")};Nt.generateMembershipProof=function(e,t,r){ri.checkArgument(Array.isArray(e),"Set must be array"),ri.checkArgument(e.includes(t),"Value not in set"),r=r||Jg.getRandomBuffer(32).toString("hex");var i=e.map(function(o){return Ri.sha256(f.Buffer.from(JSON.stringify(o)+":"+r,"utf8")).toString("hex")}),n=Ri.sha256(f.Buffer.from(JSON.stringify(t)+":"+r,"utf8")).toString("hex");return{type:"MembershipProof",created:new Date().toISOString(),proofPurpose:"membershipVerification",setCommitments:i,valueCommitment:n,isMember:!0}};Nt.verifyMembershipProof=function(e){try{return ri.checkArgument(e&&typeof e=="object","Invalid proof"),e.type!=="MembershipProof"||!Array.isArray(e.setCommitments)?!1:e.setCommitments.includes(e.valueCommitment)&&e.isMember}catch{return!1}};YB.exports=Nt});var __=P((Hse,tN)=>{"use strict";g();var Ar=Qe(),$B=Oe(),XB=Ze(),R9=_c(),Qg=wc(),JB=Be(),em=ah(),tu=ta(),b_=nn(),QB=Gt(),eN=ci(),oh=eN,Cn=eN.HDPublicKey,tm=ja(),Qa=ei();function re(e){if(e instanceof re)return e;if(!(this instanceof re))return new re(e);if(e)if(Ar.isString(e)||f.Buffer.isBuffer(e)){var t=re.getSerializedError(e);if(t){if(f.Buffer.isBuffer(e)&&!re.getSerializedError(e.toString()))return this._buildFromSerialized(e.toString());if(t instanceof Cn.ArgumentIsPrivateExtended)return new em(e).hdPublicKey;throw t}else return this._buildFromSerialized(e)}else{if(Ar.isObject(e))return e instanceof em?this._buildFromPrivate(e):this._buildFromObject(e);throw new Cn.UnrecognizedArgument(e)}else throw new Cn.MustSupplyArgument}re.fromHDPrivateKey=function(e){return new re(e)};re.isValidPath=function(e){if(Ar.isString(e)){var t=em._getDerivationIndexes(e);return t!==null&&Ar.every(t,re.isValidPath)}return Ar.isNumber(e)?e>=0&&e<re.Hardened:!1};re.prototype.derive=function(){throw new Error("derive has been deprecated. use deriveChild or, for the old way, deriveNonCompliantChild.")};re.prototype.deriveChild=function(e,t){if(Ar.isNumber(e))return this._deriveWithNumber(e,t);if(Ar.isString(e))return this._deriveFromString(e);throw new Cn.InvalidDerivationArgument(e)};re.prototype._deriveWithNumber=function(e,t){if(e>=re.Hardened||t)throw new Cn.InvalidIndexCantDeriveHardened;if(e<0)throw new Cn.InvalidPath(e);var r=Qa.integerAsBuffer(e),i=f.Buffer.concat([this.publicKey.toBuffer(),r]),n=JB.sha512hmac(i,this._buffers.chainCode),o=XB.fromBuffer(n.slice(0,32),{size:32}),a=n.slice(32,64),s;try{s=QB.fromPoint(b_.getG().mul(o).add(this.publicKey.point))}catch{return this._deriveWithNumber(e+1)}var u=new re({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:a,publicKey:s});return u};re.prototype._deriveFromString=function(e){if(Ar.includes(e,"'"))throw new Cn.InvalidIndexCantDeriveHardened;if(!re.isValidPath(e))throw new Cn.InvalidPath(e);var t=em._getDerivationIndexes(e),r=t.reduce(function(i,n){return i._deriveWithNumber(n)},this);return r};re.isValidSerialized=function(e,t){return Ar.isNull(re.getSerializedError(e,t))};re.getSerializedError=function(e,t){if(!(Ar.isString(e)||f.Buffer.isBuffer(e)))return new Cn.UnrecognizedArgument("expected buffer or string");if(!R9.validCharacters(e))return new oh.InvalidB58Char("(unknown)",e);try{e=Qg.decode(e)}catch{return new oh.InvalidB58Checksum(e)}if(e.length!==re.DataSize)return new Cn.InvalidLength(e);if(!Ar.isUndefined(t)){var r=re._validateNetwork(e,t);if(r)return r}var i=e.readUInt32BE(0);return i===tu.livenet.xprivkey||i===tu.testnet.xprivkey?new Cn.ArgumentIsPrivateExtended:null};re._validateNetwork=function(e,t){var r=tu.get(t);if(!r)return new oh.InvalidNetworkArgument(t);var i=e.slice(re.VersionStart,re.VersionEnd);return i.readUInt32BE(0)!==r.xpubkey?new oh.InvalidNetwork(i):null};re.prototype._buildFromPrivate=function(e){var t=Ar.clone(e._buffers),r=b_.getG().mul(XB.fromBuffer(t.privateKey));return t.publicKey=b_.pointToCompressed(r),t.version=Qa.integerAsBuffer(tu.get(t.version.readUInt32BE(0)).xpubkey),t.privateKey=void 0,t.checksum=void 0,t.xprivkey=void 0,this._buildFromBuffers(t)};re.prototype._buildFromObject=function(e){var t={version:e.network?Qa.integerAsBuffer(tu.get(e.network).xpubkey):e.version,depth:Ar.isNumber(e.depth)?f.Buffer.from([e.depth&255]):e.depth,parentFingerPrint:Ar.isNumber(e.parentFingerPrint)?Qa.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:Ar.isNumber(e.childIndex)?Qa.integerAsBuffer(e.childIndex):e.childIndex,chainCode:Ar.isString(e.chainCode)?f.Buffer.from(e.chainCode,"hex"):e.chainCode,publicKey:Ar.isString(e.publicKey)?f.Buffer.from(e.publicKey,"hex"):f.Buffer.isBuffer(e.publicKey)?e.publicKey:e.publicKey.toBuffer(),checksum:Ar.isNumber(e.checksum)?Qa.integerAsBuffer(e.checksum):e.checksum};return this._buildFromBuffers(t)};re.prototype._buildFromSerialized=function(e){var t=Qg.decode(e),r={version:t.slice(re.VersionStart,re.VersionEnd),depth:t.slice(re.DepthStart,re.DepthEnd),parentFingerPrint:t.slice(re.ParentFingerPrintStart,re.ParentFingerPrintEnd),childIndex:t.slice(re.ChildIndexStart,re.ChildIndexEnd),chainCode:t.slice(re.ChainCodeStart,re.ChainCodeEnd),publicKey:t.slice(re.PublicKeyStart,re.PublicKeyEnd),checksum:t.slice(re.ChecksumStart,re.ChecksumEnd),xpubkey:e};return this._buildFromBuffers(r)};re.prototype._buildFromBuffers=function(e){re._validateBufferArguments(e),Qa.defineImmutable(this,{_buffers:e});var t=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,e.publicKey],r=f.Buffer.concat(t),i=Qg.checksum(r);if(!e.checksum||!e.checksum.length)e.checksum=i;else if(e.checksum.toString("hex")!==i.toString("hex"))throw new oh.InvalidB58Checksum(r,i);var n=tu.get(e.version.readUInt32BE(0)),o;o=Qg.encode(f.Buffer.concat(t)),e.xpubkey=f.Buffer.from(o);var a=new QB(e.publicKey,{network:n}),s=re.ParentFingerPrintSize,u=JB.sha256ripemd160(a.toBuffer()).slice(0,s);return Qa.defineImmutable(this,{xpubkey:o,network:n,depth:e.depth[0],publicKey:a,fingerPrint:u}),this};re._validateBufferArguments=function(e){var t=function(r,i){var n=e[r];tm(f.Buffer.isBuffer(n),r+" argument is not a buffer, it's "+typeof n),tm(n.length===i,r+" has not the expected size: found "+n.length+", expected "+i)};t("version",re.VersionSize),t("depth",re.DepthSize),t("parentFingerPrint",re.ParentFingerPrintSize),t("childIndex",re.ChildIndexSize),t("chainCode",re.ChainCodeSize),t("publicKey",re.PublicKeySize),e.checksum&&e.checksum.length&&t("checksum",re.CheckSumSize)};re.fromString=function(e){return $B.checkArgument(Ar.isString(e),"No valid string was provided"),new re(e)};re.fromObject=function(e){return $B.checkArgument(Ar.isObject(e),"No valid argument was provided"),new re(e)};re.prototype.toString=function(){return this.xpubkey};re.prototype.inspect=function(){return"<HDPublicKey: "+this.xpubkey+">"};re.prototype.toObject=re.prototype.toJSON=function(){return{network:tu.get(this._buffers.version.readUInt32BE(0)).name,depth:this._buffers.depth[0],fingerPrint:this.fingerPrint.readUInt32BE(0),parentFingerPrint:this._buffers.parentFingerPrint.readUInt32BE(0),childIndex:this._buffers.childIndex.readUInt32BE(0),chainCode:this._buffers.chainCode.toString("hex"),publicKey:this.publicKey.toString(),checksum:this._buffers.checksum.readUInt32BE(0),xpubkey:this.xpubkey}};re.fromBuffer=function(e){return new re(e)};re.fromHex=function(e){return re.fromBuffer(f.Buffer.from(e,"hex"))};re.prototype.toBuffer=function(){return f.Buffer.from(this._buffers.xpubkey)};re.prototype.toHex=function(){return this.toBuffer().toString("hex")};re.Hardened=2147483648;re.RootElementAlias=["m","M"];re.VersionSize=4;re.DepthSize=1;re.ParentFingerPrintSize=4;re.ChildIndexSize=4;re.ChainCodeSize=32;re.PublicKeySize=33;re.CheckSumSize=4;re.DataSize=78;re.SerializedByteSize=82;re.VersionStart=0;re.VersionEnd=re.VersionStart+re.VersionSize;re.DepthStart=re.VersionEnd;re.DepthEnd=re.DepthStart+re.DepthSize;re.ParentFingerPrintStart=re.DepthEnd;re.ParentFingerPrintEnd=re.ParentFingerPrintStart+re.ParentFingerPrintSize;re.ChildIndexStart=re.ParentFingerPrintEnd;re.ChildIndexEnd=re.ChildIndexStart+re.ChildIndexSize;re.ChainCodeStart=re.ChildIndexEnd;re.ChainCodeEnd=re.ChainCodeStart+re.ChainCodeSize;re.PublicKeyStart=re.ChainCodeEnd;re.PublicKeyEnd=re.PublicKeyStart+re.PublicKeySize;re.ChecksumStart=re.PublicKeyEnd;re.ChecksumEnd=re.ChecksumStart+re.CheckSumSize;tm(re.PublicKeyEnd===re.DataSize);tm(re.ChecksumEnd===re.SerializedByteSize);tN.exports=re});var ah=P((Fse,aN)=>{"use strict";g();var rm=ja(),uh=jt(),er=Qe(),iN=Oe(),nN=Ze(),k9=_c(),sh=wc(),w_=Be(),ru=ta(),B9=nn(),oN=Zr(),N9=Ui(),Cc=ci(),lo=Cc.HDPrivateKey,fo=ei(),C9=128,rN=1/8,L9=512;function Z(e){if(e instanceof Z)return e;if(!(this instanceof Z))return new Z(e);if(!e)return this._generateRandomly();if(ru.get(e))return this._generateRandomly(e);if(er.isString(e)||f.Buffer.isBuffer(e))if(Z.isValidSerialized(e))this._buildFromSerialized(e);else if(fo.isValidJSON(e))this._buildFromJSON(e);else if(f.Buffer.isBuffer(e)&&Z.isValidSerialized(e.toString()))this._buildFromSerialized(e.toString());else throw Z.getSerializedError(e);else if(er.isObject(e))this._buildFromObject(e);else throw new lo.UnrecognizedArgument(e)}Z.fromRandom=function(e){return new Z(e)};Z.isValidPath=function(e,t){if(er.isString(e)){var r=Z._getDerivationIndexes(e);return r!==null&&er.every(r,Z.isValidPath)}return er.isNumber(e)?(e<Z.Hardened&&t===!0&&(e+=Z.Hardened),e>=0&&e<Z.MaxIndex):!1};Z._getDerivationIndexes=function(e){var t=e.split("/");if(er.includes(Z.RootElementAlias,e))return[];if(!er.includes(Z.RootElementAlias,t[0]))return null;var r=t.slice(1).map(function(i){var n=i.slice(-1)==="'";if(n&&(i=i.slice(0,-1)),!i||i[0]==="-")return NaN;var o=+i;return n&&(o+=Z.Hardened),o});return er.some(r,isNaN)?null:r};Z.prototype.derive=function(){throw new Error("derive has been deprecated. use deriveChild or, for the old way, deriveNonCompliantChild.")};Z.prototype.deriveChild=function(e,t){if(er.isNumber(e))return this._deriveWithNumber(e,t);if(er.isString(e))return this._deriveFromString(e);throw new lo.InvalidDerivationArgument(e)};Z.prototype.deriveNonCompliantChild=function(e,t){if(er.isNumber(e))return this._deriveWithNumber(e,t,!0);if(er.isString(e))return this._deriveFromString(e,!0);throw new lo.InvalidDerivationArgument(e)};Z.prototype._deriveWithNumber=function(e,t,r){if(!Z.isValidPath(e,t))throw new lo.InvalidPath(e);t=e>=Z.Hardened?!0:t,e<Z.Hardened&&t===!0&&(e+=Z.Hardened);var i=fo.integerAsBuffer(e),n;if(t&&r){var o=this.privateKey.bn.toBuffer();n=f.Buffer.concat([uh.Buffer.from([0]),o,i])}else if(t){var a=this.privateKey.bn.toBuffer({size:32});rm(a.length===32,"length of private key buffer is expected to be 32 bytes"),n=f.Buffer.concat([uh.Buffer.from([0]),a,i])}else n=f.Buffer.concat([this.publicKey.toBuffer(),i]);var s=w_.sha512hmac(n,this._buffers.chainCode),u=nN.fromBuffer(s.slice(0,32),{size:32}),c=s.slice(32,64),l=u.add(this.privateKey.toBigNumber()).umod(B9.getN()).toBuffer({size:32});if(!oN.isValid(l))return this._deriveWithNumber(e+1,null,r);var d=new Z({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:c,privateKey:l});return d};Z.prototype._deriveFromString=function(e,t){if(!Z.isValidPath(e))throw new lo.InvalidPath(e);var r=Z._getDerivationIndexes(e),i=r.reduce(function(n,o){return n._deriveWithNumber(o,null,t)},this);return i};Z.isValidSerialized=function(e,t){return!Z.getSerializedError(e,t)};Z.getSerializedError=function(e,t){if(!(er.isString(e)||f.Buffer.isBuffer(e)))return new lo.UnrecognizedArgument("Expected string or buffer");if(!k9.validCharacters(e))return new Cc.InvalidB58Char("(unknown)",e);try{e=sh.decode(e)}catch{return new Cc.InvalidB58Checksum(e)}if(e.length!==Z.DataLength)return new lo.InvalidLength(e);if(!er.isUndefined(t)){var r=Z._validateNetwork(e,t);if(r)return r}return null};Z._validateNetwork=function(e,t){var r=ru.get(t);if(!r)return new Cc.InvalidNetworkArgument(t);var i=e.slice(0,4);return i.readUInt32BE(0)!==r.xprivkey?new Cc.InvalidNetwork(i):null};Z.fromString=function(e){return iN.checkArgument(er.isString(e),"No valid string was provided"),new Z(e)};Z.fromObject=function(e){return iN.checkArgument(er.isObject(e),"No valid argument was provided"),new Z(e)};Z.prototype._buildFromJSON=function(e){return this._buildFromObject(JSON.parse(e))};Z.prototype._buildFromObject=function(e){var t={version:e.network?fo.integerAsBuffer(ru.get(e.network).xprivkey):e.version,depth:er.isNumber(e.depth)?f.Buffer.from([e.depth&255]):e.depth,parentFingerPrint:er.isNumber(e.parentFingerPrint)?fo.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:er.isNumber(e.childIndex)?fo.integerAsBuffer(e.childIndex):e.childIndex,chainCode:er.isString(e.chainCode)?f.Buffer.from(e.chainCode,"hex"):e.chainCode,privateKey:er.isString(e.privateKey)&&fo.isHexa(e.privateKey)?f.Buffer.from(e.privateKey,"hex"):e.privateKey,checksum:e.checksum?e.checksum.length?e.checksum:fo.integerAsBuffer(e.checksum):void 0};return this._buildFromBuffers(t)};Z.prototype._buildFromSerialized=function(e){var t=sh.decode(e),r={version:t.slice(Z.VersionStart,Z.VersionEnd),depth:t.slice(Z.DepthStart,Z.DepthEnd),parentFingerPrint:t.slice(Z.ParentFingerPrintStart,Z.ParentFingerPrintEnd),childIndex:t.slice(Z.ChildIndexStart,Z.ChildIndexEnd),chainCode:t.slice(Z.ChainCodeStart,Z.ChainCodeEnd),privateKey:t.slice(Z.PrivateKeyStart,Z.PrivateKeyEnd),checksum:t.slice(Z.ChecksumStart,Z.ChecksumEnd),xprivkey:e};return this._buildFromBuffers(r)};Z.prototype._generateRandomly=function(e){return Z.fromSeed(N9.getRandomBuffer(64),e)};Z.fromSeed=function(e,t){if(fo.isHexaString(e)&&(e=f.Buffer.from(e,"hex")),!f.Buffer.isBuffer(e))throw new lo.InvalidEntropyArgument(e);if(e.length<C9*rN)throw new lo.InvalidEntropyArgument.NotEnoughEntropy(e);if(e.length>L9*rN)throw new lo.InvalidEntropyArgument.TooMuchEntropy(e);var r=w_.sha512hmac(e,uh.Buffer.from("Bitcoin seed"));return new Z({network:ru.get(t)||ru.defaultNetwork,depth:0,parentFingerPrint:0,childIndex:0,privateKey:r.slice(0,32),chainCode:r.slice(32,64)})};Z.prototype._calcHDPublicKey=function(){if(!this._hdPublicKey){var e=__();this._hdPublicKey=new e(this)}};Z.prototype._buildFromBuffers=function(e){Z._validateBufferArguments(e),fo.defineImmutable(this,{_buffers:e});var t=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,f.Buffer.alloc(1),e.privateKey],r=uh.Buffer.concat(t);if(!e.checksum||!e.checksum.length)e.checksum=sh.checksum(r);else if(e.checksum.toString()!==sh.checksum(r).toString())throw new Cc.InvalidB58Checksum(r);var i=ru.get(e.version.readUInt32BE(0)),n;n=sh.encode(uh.Buffer.concat(t)),e.xprivkey=f.Buffer.from(n);var o=new oN(nN.fromBuffer(e.privateKey),i),a=o.toPublicKey(),s=Z.ParentFingerPrintSize,u=w_.sha256ripemd160(a.toBuffer()).slice(0,s);return fo.defineImmutable(this,{xprivkey:n,network:i,depth:e.depth[0],privateKey:o,publicKey:a,fingerPrint:u}),this._hdPublicKey=null,Object.defineProperty(this,"hdPublicKey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey}}),Object.defineProperty(this,"xpubkey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey.xpubkey}}),this};Z._validateBufferArguments=function(e){var t=function(r,i){var n=e[r];rm(f.Buffer.isBuffer(n),r+" argument is not a buffer"),rm(n.length===i,r+" has not the expected size: found "+n.length+", expected "+i)};t("version",Z.VersionSize),t("depth",Z.DepthSize),t("parentFingerPrint",Z.ParentFingerPrintSize),t("childIndex",Z.ChildIndexSize),t("chainCode",Z.ChainCodeSize),t("privateKey",Z.PrivateKeySize),e.checksum&&e.checksum.length&&t("checksum",Z.CheckSumSize)};Z.prototype.toString=function(){return this.xprivkey};Z.prototype.inspect=function(){return"<HDPrivateKey: "+this.xprivkey+">"};Z.prototype.toObject=Z.prototype.toJSON=function(){return{network:ru.get(this._buffers.version.readUInt32BE(0),"xprivkey").name,depth:this._buffers.depth[0],fingerPrint:this.fingerPrint.readUInt32BE(0),parentFingerPrint:this._buffers.parentFingerPrint.readUInt32BE(0),childIndex:this._buffers.childIndex.readUInt32BE(0),chainCode:this._buffers.chainCode.toString("hex"),privateKey:this.privateKey.toBuffer().toString("hex"),checksum:this._buffers.checksum.readUInt32BE(0),xprivkey:this.xprivkey}};Z.fromBuffer=function(e){return new Z(e.toString())};Z.fromHex=function(e){return Z.fromBuffer(f.Buffer.from(e,"hex"))};Z.prototype.toBuffer=function(){return f.Buffer.from(this.toString())};Z.prototype.toHex=function(){return this.toBuffer().toString("hex")};Z.DefaultDepth=0;Z.DefaultFingerprint=0;Z.DefaultChildIndex=0;Z.Hardened=2147483648;Z.MaxIndex=2*Z.Hardened;Z.RootElementAlias=["m","M","m'","M'"];Z.VersionSize=4;Z.DepthSize=1;Z.ParentFingerPrintSize=4;Z.ChildIndexSize=4;Z.ChainCodeSize=32;Z.PrivateKeySize=32;Z.CheckSumSize=4;Z.DataLength=78;Z.SerializedByteSize=82;Z.VersionStart=0;Z.VersionEnd=Z.VersionStart+Z.VersionSize;Z.DepthStart=Z.VersionEnd;Z.DepthEnd=Z.DepthStart+Z.DepthSize;Z.ParentFingerPrintStart=Z.DepthEnd;Z.ParentFingerPrintEnd=Z.ParentFingerPrintStart+Z.ParentFingerPrintSize;Z.ChildIndexStart=Z.ParentFingerPrintEnd;Z.ChildIndexEnd=Z.ChildIndexStart+Z.ChildIndexSize;Z.ChainCodeStart=Z.ChildIndexEnd;Z.ChainCodeEnd=Z.ChainCodeStart+Z.ChainCodeSize;Z.PrivateKeyStart=Z.ChainCodeEnd+1;Z.PrivateKeyEnd=Z.PrivateKeyStart+Z.PrivateKeySize;Z.ChecksumStart=Z.PrivateKeyEnd;Z.ChecksumEnd=Z.ChecksumStart+Z.CheckSumSize;rm(Z.ChecksumEnd===Z.SerializedByteSize);aN.exports=Z});var cN=P((zse,uN)=>{"use strict";g();var sN=Kt();function M9(e,t,r,i){var n=64;if(i>(Math.pow(2,32)-1)*n)throw Error("Requested key length too long");if(typeof e!="string"&&!f.Buffer.isBuffer(e))throw new TypeError("key must a string or Buffer");if(typeof t!="string"&&!f.Buffer.isBuffer(t))throw new TypeError("salt must a string or Buffer");typeof e=="string"&&(e=f.Buffer.from(e)),typeof t=="string"&&(t=f.Buffer.from(t));var o=f.Buffer.alloc(i),a=f.Buffer.alloc(n),s=f.Buffer.alloc(n),u=f.Buffer.alloc(t.length+4),c=Math.ceil(i/n),l=i-(c-1)*n;t.copy(u,0,0,t.length);for(var d=1;d<=c;d++){u[t.length+0]=d>>24&255,u[t.length+1]=d>>16&255,u[t.length+2]=d>>8&255,u[t.length+3]=d>>0&255,a=sN.createHmac("sha512",e).update(u).digest(),a.copy(s,0,0,n);for(var p=1;p<r;p++){a=sN.createHmac("sha512",e).update(a).digest();for(var y=0;y<n;y++)s[y]^=a[y]}var _=(d-1)*n,T=d===c?l:n;s.copy(o,_,0,T)}return o}uN.exports=M9});var hN=P((Vse,lN)=>{"use strict";g();var fN=Be();function D9(e,t,r,i){var n=64;if(i>(Math.pow(2,32)-1)*n)throw Error("Requested key length too long");if(typeof e!="string"&&!f.Buffer.isBuffer(e))throw new TypeError("key must a string or Buffer");if(typeof t!="string"&&!f.Buffer.isBuffer(t))throw new TypeError("salt must a string or Buffer");typeof e=="string"&&(e=f.Buffer.from(e)),typeof t=="string"&&(t=f.Buffer.from(t));var o=f.Buffer.alloc(i),a=f.Buffer.alloc(n),s=f.Buffer.alloc(n),u=f.Buffer.alloc(t.length+4),c=Math.ceil(i/n),l=i-(c-1)*n;t.copy(u,0,0,t.length);for(var d=1;d<=c;d++){u[t.length+0]=d>>24&255,u[t.length+1]=d>>16&255,u[t.length+2]=d>>8&255,u[t.length+3]=d>>0&255,a=fN.sha512hmac(u,e),a.copy(s,0,0,n);for(var p=1;p<r;p++){a=fN.sha512hmac(a,e);for(var y=0;y<n;y++)s[y]^=a[y]}var _=(d-1)*n,T=d===c?l:n;s.copy(o,_,0,T)}return o}lN.exports=D9});var pN=P((Wse,dN)=>{"use strict";g();var q9="87aa7cdea5ef619d4ff0b4241a1d6cb02379f4e2ce4ec2787ad0b30545e17cdedaa833b7d6b8a702038b274eaea3f4e4be9d914eeb61f1702e696c203a126854";function H9(){var e;try{e=Kt()}catch{return!1}if(!e||typeof e.createHmac!="function")return!1;try{var t=e.createHmac("sha512",f.Buffer.alloc(20,11)).update("Hi There").digest("hex");return t===q9}catch{return!1}}dN.exports=H9()?cN():hN()});var mN=P((Zse,gN)=>{"use strict";g();var U9={name:"Mnemonic",message:"Internal Error on bsv-mnemonic module {0}",errors:[{name:"InvalidEntropy",message:"Entropy length must be an even multiple of 11 bits: {0}"},{name:"UnknownWordlist",message:"Could not detect the used word list: {0}"},{name:"InvalidMnemonic",message:"Mnemonic string is invalid: {0}"}]};gN.exports=ci().extend(U9)});var yN=P((Xse,vN)=>{"use strict";g();var F9=["\u7684","\u4E00","\u662F","\u5728","\u4E0D","\u4E86","\u6709","\u548C","\u4EBA","\u8FD9","\u4E2D","\u5927","\u4E3A","\u4E0A","\u4E2A","\u56FD","\u6211","\u4EE5","\u8981","\u4ED6","\u65F6","\u6765","\u7528","\u4EEC","\u751F","\u5230","\u4F5C","\u5730","\u4E8E","\u51FA","\u5C31","\u5206","\u5BF9","\u6210","\u4F1A","\u53EF","\u4E3B","\u53D1","\u5E74","\u52A8","\u540C","\u5DE5","\u4E5F","\u80FD","\u4E0B","\u8FC7","\u5B50","\u8BF4","\u4EA7","\u79CD","\u9762","\u800C","\u65B9","\u540E","\u591A","\u5B9A","\u884C","\u5B66","\u6CD5","\u6240","\u6C11","\u5F97","\u7ECF","\u5341","\u4E09","\u4E4B","\u8FDB","\u7740","\u7B49","\u90E8","\u5EA6","\u5BB6","\u7535","\u529B","\u91CC","\u5982","\u6C34","\u5316","\u9AD8","\u81EA","\u4E8C","\u7406","\u8D77","\u5C0F","\u7269","\u73B0","\u5B9E","\u52A0","\u91CF","\u90FD","\u4E24","\u4F53","\u5236","\u673A","\u5F53","\u4F7F","\u70B9","\u4ECE","\u4E1A","\u672C","\u53BB","\u628A","\u6027","\u597D","\u5E94","\u5F00","\u5B83","\u5408","\u8FD8","\u56E0","\u7531","\u5176","\u4E9B","\u7136","\u524D","\u5916","\u5929","\u653F","\u56DB","\u65E5","\u90A3","\u793E","\u4E49","\u4E8B","\u5E73","\u5F62","\u76F8","\u5168","\u8868","\u95F4","\u6837","\u4E0E","\u5173","\u5404","\u91CD","\u65B0","\u7EBF","\u5185","\u6570","\u6B63","\u5FC3","\u53CD","\u4F60","\u660E","\u770B","\u539F","\u53C8","\u4E48","\u5229","\u6BD4","\u6216","\u4F46","\u8D28","\u6C14","\u7B2C","\u5411","\u9053","\u547D","\u6B64","\u53D8","\u6761","\u53EA","\u6CA1","\u7ED3","\u89E3","\u95EE","\u610F","\u5EFA","\u6708","\u516C","\u65E0","\u7CFB","\u519B","\u5F88","\u60C5","\u8005","\u6700","\u7ACB","\u4EE3","\u60F3","\u5DF2","\u901A","\u5E76","\u63D0","\u76F4","\u9898","\u515A","\u7A0B","\u5C55","\u4E94","\u679C","\u6599","\u8C61","\u5458","\u9769","\u4F4D","\u5165","\u5E38","\u6587","\u603B","\u6B21","\u54C1","\u5F0F","\u6D3B","\u8BBE","\u53CA","\u7BA1","\u7279","\u4EF6","\u957F","\u6C42","\u8001","\u5934","\u57FA","\u8D44","\u8FB9","\u6D41","\u8DEF","\u7EA7","\u5C11","\u56FE","\u5C71","\u7EDF","\u63A5","\u77E5","\u8F83","\u5C06","\u7EC4","\u89C1","\u8BA1","\u522B","\u5979","\u624B","\u89D2","\u671F","\u6839","\u8BBA","\u8FD0","\u519C","\u6307","\u51E0","\u4E5D","\u533A","\u5F3A","\u653E","\u51B3","\u897F","\u88AB","\u5E72","\u505A","\u5FC5","\u6218","\u5148","\u56DE","\u5219","\u4EFB","\u53D6","\u636E","\u5904","\u961F","\u5357","\u7ED9","\u8272","\u5149","\u95E8","\u5373","\u4FDD","\u6CBB","\u5317","\u9020","\u767E","\u89C4","\u70ED","\u9886","\u4E03","\u6D77","\u53E3","\u4E1C","\u5BFC","\u5668","\u538B","\u5FD7","\u4E16","\u91D1","\u589E","\u4E89","\u6D4E","\u9636","\u6CB9","\u601D","\u672F","\u6781","\u4EA4","\u53D7","\u8054","\u4EC0","\u8BA4","\u516D","\u5171","\u6743","\u6536","\u8BC1","\u6539","\u6E05","\u7F8E","\u518D","\u91C7","\u8F6C","\u66F4","\u5355","\u98CE","\u5207","\u6253","\u767D","\u6559","\u901F","\u82B1","\u5E26","\u5B89","\u573A","\u8EAB","\u8F66","\u4F8B","\u771F","\u52A1","\u5177","\u4E07","\u6BCF","\u76EE","\u81F3","\u8FBE","\u8D70","\u79EF","\u793A","\u8BAE","\u58F0","\u62A5","\u6597","\u5B8C","\u7C7B","\u516B","\u79BB","\u534E","\u540D","\u786E","\u624D","\u79D1","\u5F20","\u4FE1","\u9A6C","\u8282","\u8BDD","\u7C73","\u6574","\u7A7A","\u5143","\u51B5","\u4ECA","\u96C6","\u6E29","\u4F20","\u571F","\u8BB8","\u6B65","\u7FA4","\u5E7F","\u77F3","\u8BB0","\u9700","\u6BB5","\u7814","\u754C","\u62C9","\u6797","\u5F8B","\u53EB","\u4E14","\u7A76","\u89C2","\u8D8A","\u7EC7","\u88C5","\u5F71","\u7B97","\u4F4E","\u6301","\u97F3","\u4F17","\u4E66","\u5E03","\u590D","\u5BB9","\u513F","\u987B","\u9645","\u5546","\u975E","\u9A8C","\u8FDE","\u65AD","\u6DF1","\u96BE","\u8FD1","\u77FF","\u5343","\u5468","\u59D4","\u7D20","\u6280","\u5907","\u534A","\u529E","\u9752","\u7701","\u5217","\u4E60","\u54CD","\u7EA6","\u652F","\u822C","\u53F2","\u611F","\u52B3","\u4FBF","\u56E2","\u5F80","\u9178","\u5386","\u5E02","\u514B","\u4F55","\u9664","\u6D88","\u6784","\u5E9C","\u79F0","\u592A","\u51C6","\u7CBE","\u503C","\u53F7","\u7387","\u65CF","\u7EF4","\u5212","\u9009","\u6807","\u5199","\u5B58","\u5019","\u6BDB","\u4EB2","\u5FEB","\u6548","\u65AF","\u9662","\u67E5","\u6C5F","\u578B","\u773C","\u738B","\u6309","\u683C","\u517B","\u6613","\u7F6E","\u6D3E","\u5C42","\u7247","\u59CB","\u5374","\u4E13","\u72B6","\u80B2","\u5382","\u4EAC","\u8BC6","\u9002","\u5C5E","\u5706","\u5305","\u706B","\u4F4F","\u8C03","\u6EE1","\u53BF","\u5C40","\u7167","\u53C2","\u7EA2","\u7EC6","\u5F15","\u542C","\u8BE5","\u94C1","\u4EF7","\u4E25","\u9996","\u5E95","\u6DB2","\u5B98","\u5FB7","\u968F","\u75C5","\u82CF","\u5931","\u5C14","\u6B7B","\u8BB2","\u914D","\u5973","\u9EC4","\u63A8","\u663E","\u8C08","\u7F6A","\u795E","\u827A","\u5462","\u5E2D","\u542B","\u4F01","\u671B","\u5BC6","\u6279","\u8425","\u9879","\u9632","\u4E3E","\u7403","\u82F1","\u6C27","\u52BF","\u544A","\u674E","\u53F0","\u843D","\u6728","\u5E2E","\u8F6E","\u7834","\u4E9A","\u5E08","\u56F4","\u6CE8","\u8FDC","\u5B57","\u6750","\u6392","\u4F9B","\u6CB3","\u6001","\u5C01","\u53E6","\u65BD","\u51CF","\u6811","\u6EB6","\u600E","\u6B62","\u6848","\u8A00","\u58EB","\u5747","\u6B66","\u56FA","\u53F6","\u9C7C","\u6CE2","\u89C6","\u4EC5","\u8D39","\u7D27","\u7231","\u5DE6","\u7AE0","\u65E9","\u671D","\u5BB3","\u7EED","\u8F7B","\u670D","\u8BD5","\u98DF","\u5145","\u5175","\u6E90","\u5224","\u62A4","\u53F8","\u8DB3","\u67D0","\u7EC3","\u5DEE","\u81F4","\u677F","\u7530","\u964D","\u9ED1","\u72AF","\u8D1F","\u51FB","\u8303","\u7EE7","\u5174","\u4F3C","\u4F59","\u575A","\u66F2","\u8F93","\u4FEE","\u6545","\u57CE","\u592B","\u591F","\u9001","\u7B14","\u8239","\u5360","\u53F3","\u8D22","\u5403","\u5BCC","\u6625","\u804C","\u89C9","\u6C49","\u753B","\u529F","\u5DF4","\u8DDF","\u867D","\u6742","\u98DE","\u68C0","\u5438","\u52A9","\u5347","\u9633","\u4E92","\u521D","\u521B","\u6297","\u8003","\u6295","\u574F","\u7B56","\u53E4","\u5F84","\u6362","\u672A","\u8DD1","\u7559","\u94A2","\u66FE","\u7AEF","\u8D23","\u7AD9","\u7B80","\u8FF0","\u94B1","\u526F","\u5C3D","\u5E1D","\u5C04","\u8349","\u51B2","\u627F","\u72EC","\u4EE4","\u9650","\u963F","\u5BA3","\u73AF","\u53CC","\u8BF7","\u8D85","\u5FAE","\u8BA9","\u63A7","\u5DDE","\u826F","\u8F74","\u627E","\u5426","\u7EAA","\u76CA","\u4F9D","\u4F18","\u9876","\u7840","\u8F7D","\u5012","\u623F","\u7A81","\u5750","\u7C89","\u654C","\u7565","\u5BA2","\u8881","\u51B7","\u80DC","\u7EDD","\u6790","\u5757","\u5242","\u6D4B","\u4E1D","\u534F","\u8BC9","\u5FF5","\u9648","\u4ECD","\u7F57","\u76D0","\u53CB","\u6D0B","\u9519","\u82E6","\u591C","\u5211","\u79FB","\u9891","\u9010","\u9760","\u6DF7","\u6BCD","\u77ED","\u76AE","\u7EC8","\u805A","\u6C7D","\u6751","\u4E91","\u54EA","\u65E2","\u8DDD","\u536B","\u505C","\u70C8","\u592E","\u5BDF","\u70E7","\u8FC5","\u5883","\u82E5","\u5370","\u6D32","\u523B","\u62EC","\u6FC0","\u5B54","\u641E","\u751A","\u5BA4","\u5F85","\u6838","\u6821","\u6563","\u4FB5","\u5427","\u7532","\u6E38","\u4E45","\u83DC","\u5473","\u65E7","\u6A21","\u6E56","\u8D27","\u635F","\u9884","\u963B","\u6BEB","\u666E","\u7A33","\u4E59","\u5988","\u690D","\u606F","\u6269","\u94F6","\u8BED","\u6325","\u9152","\u5B88","\u62FF","\u5E8F","\u7EB8","\u533B","\u7F3A","\u96E8","\u5417","\u9488","\u5218","\u554A","\u6025","\u5531","\u8BEF","\u8BAD","\u613F","\u5BA1","\u9644","\u83B7","\u8336","\u9C9C","\u7CAE","\u65A4","\u5B69","\u8131","\u786B","\u80A5","\u5584","\u9F99","\u6F14","\u7236","\u6E10","\u8840","\u6B22","\u68B0","\u638C","\u6B4C","\u6C99","\u521A","\u653B","\u8C13","\u76FE","\u8BA8","\u665A","\u7C92","\u4E71","\u71C3","\u77DB","\u4E4E","\u6740","\u836F","\u5B81","\u9C81","\u8D35","\u949F","\u7164","\u8BFB","\u73ED","\u4F2F","\u9999","\u4ECB","\u8FEB","\u53E5","\u4E30","\u57F9","\u63E1","\u5170","\u62C5","\u5F26","\u86CB","\u6C89","\u5047","\u7A7F","\u6267","\u7B54","\u4E50","\u8C01","\u987A","\u70DF","\u7F29","\u5F81","\u8138","\u559C","\u677E","\u811A","\u56F0","\u5F02","\u514D","\u80CC","\u661F","\u798F","\u4E70","\u67D3","\u4E95","\u6982","\u6162","\u6015","\u78C1","\u500D","\u7956","\u7687","\u4FC3","\u9759","\u8865","\u8BC4","\u7FFB","\u8089","\u8DF5","\u5C3C","\u8863","\u5BBD","\u626C","\u68C9","\u5E0C","\u4F24","\u64CD","\u5782","\u79CB","\u5B9C","\u6C22","\u5957","\u7763","\u632F","\u67B6","\u4EAE","\u672B","\u5BAA","\u5E86","\u7F16","\u725B","\u89E6","\u6620","\u96F7","\u9500","\u8BD7","\u5EA7","\u5C45","\u6293","\u88C2","\u80DE","\u547C","\u5A18","\u666F","\u5A01","\u7EFF","\u6676","\u539A","\u76DF","\u8861","\u9E21","\u5B59","\u5EF6","\u5371","\u80F6","\u5C4B","\u4E61","\u4E34","\u9646","\u987E","\u6389","\u5440","\u706F","\u5C81","\u63AA","\u675F","\u8010","\u5267","\u7389","\u8D75","\u8DF3","\u54E5","\u5B63","\u8BFE","\u51EF","\u80E1","\u989D","\u6B3E","\u7ECD","\u5377","\u9F50","\u4F1F","\u84B8","\u6B96","\u6C38","\u5B97","\u82D7","\u5DDD","\u7089","\u5CA9","\u5F31","\u96F6","\u6768","\u594F","\u6CBF","\u9732","\u6746","\u63A2","\u6ED1","\u9547","\u996D","\u6D53","\u822A","\u6000","\u8D76","\u5E93","\u593A","\u4F0A","\u7075","\u7A0E","\u9014","\u706D","\u8D5B","\u5F52","\u53EC","\u9F13","\u64AD","\u76D8","\u88C1","\u9669","\u5EB7","\u552F","\u5F55","\u83CC","\u7EAF","\u501F","\u7CD6","\u76D6","\u6A2A","\u7B26","\u79C1","\u52AA","\u5802","\u57DF","\u67AA","\u6DA6","\u5E45","\u54C8","\u7ADF","\u719F","\u866B","\u6CFD","\u8111","\u58E4","\u78B3","\u6B27","\u904D","\u4FA7","\u5BE8","\u6562","\u5F7B","\u8651","\u659C","\u8584","\u5EAD","\u7EB3","\u5F39","\u9972","\u4F38","\u6298","\u9EA6","\u6E7F","\u6697","\u8377","\u74E6","\u585E","\u5E8A","\u7B51","\u6076","\u6237","\u8BBF","\u5854","\u5947","\u900F","\u6881","\u5200","\u65CB","\u8FF9","\u5361","\u6C2F","\u9047","\u4EFD","\u6BD2","\u6CE5","\u9000","\u6D17","\u6446","\u7070","\u5F69","\u5356","\u8017","\u590F","\u62E9","\u5FD9","\u94DC","\u732E","\u786C","\u4E88","\u7E41","\u5708","\u96EA","\u51FD","\u4EA6","\u62BD","\u7BC7","\u9635","\u9634","\u4E01","\u5C3A","\u8FFD","\u5806","\u96C4","\u8FCE","\u6CDB","\u7238","\u697C","\u907F","\u8C0B","\u5428","\u91CE","\u732A","\u65D7","\u7D2F","\u504F","\u5178","\u9986","\u7D22","\u79E6","\u8102","\u6F6E","\u7237","\u8C46","\u5FFD","\u6258","\u60CA","\u5851","\u9057","\u6108","\u6731","\u66FF","\u7EA4","\u7C97","\u503E","\u5C1A","\u75DB","\u695A","\u8C22","\u594B","\u8D2D","\u78E8","\u541B","\u6C60","\u65C1","\u788E","\u9AA8","\u76D1","\u6355","\u5F1F","\u66B4","\u5272","\u8D2F","\u6B8A","\u91CA","\u8BCD","\u4EA1","\u58C1","\u987F","\u5B9D","\u5348","\u5C18","\u95FB","\u63ED","\u70AE","\u6B8B","\u51AC","\u6865","\u5987","\u8B66","\u7EFC","\u62DB","\u5434","\u4ED8","\u6D6E","\u906D","\u5F90","\u60A8","\u6447","\u8C37","\u8D5E","\u7BB1","\u9694","\u8BA2","\u7537","\u5439","\u56ED","\u7EB7","\u5510","\u8D25","\u5B8B","\u73BB","\u5DE8","\u8015","\u5766","\u8363","\u95ED","\u6E7E","\u952E","\u51E1","\u9A7B","\u9505","\u6551","\u6069","\u5265","\u51DD","\u78B1","\u9F7F","\u622A","\u70BC","\u9EBB","\u7EBA","\u7981","\u5E9F","\u76DB","\u7248","\u7F13","\u51C0","\u775B","\u660C","\u5A5A","\u6D89","\u7B52","\u5634","\u63D2","\u5CB8","\u6717","\u5E84","\u8857","\u85CF","\u59D1","\u8D38","\u8150","\u5974","\u5566","\u60EF","\u4E58","\u4F19","\u6062","\u5300","\u7EB1","\u624E","\u8FA9","\u8033","\u5F6A","\u81E3","\u4EBF","\u7483","\u62B5","\u8109","\u79C0","\u8428","\u4FC4","\u7F51","\u821E","\u5E97","\u55B7","\u7EB5","\u5BF8","\u6C57","\u6302","\u6D2A","\u8D3A","\u95EA","\u67EC","\u7206","\u70EF","\u6D25","\u7A3B","\u5899","\u8F6F","\u52C7","\u50CF","\u6EDA","\u5398","\u8499","\u82B3","\u80AF","\u5761","\u67F1","\u8361","\u817F","\u4EEA","\u65C5","\u5C3E","\u8F67","\u51B0","\u8D21","\u767B","\u9ECE","\u524A","\u94BB","\u52D2","\u9003","\u969C","\u6C28","\u90ED","\u5CF0","\u5E01","\u6E2F","\u4F0F","\u8F68","\u4EA9","\u6BD5","\u64E6","\u83AB","\u523A","\u6D6A","\u79D8","\u63F4","\u682A","\u5065","\u552E","\u80A1","\u5C9B","\u7518","\u6CE1","\u7761","\u7AE5","\u94F8","\u6C64","\u9600","\u4F11","\u6C47","\u820D","\u7267","\u7ED5","\u70B8","\u54F2","\u78F7","\u7EE9","\u670B","\u6DE1","\u5C16","\u542F","\u9677","\u67F4","\u5448","\u5F92","\u989C","\u6CEA","\u7A0D","\u5FD8","\u6CF5","\u84DD","\u62D6","\u6D1E","\u6388","\u955C","\u8F9B","\u58EE","\u950B","\u8D2B","\u865A","\u5F2F","\u6469","\u6CF0","\u5E7C","\u5EF7","\u5C0A","\u7A97","\u7EB2","\u5F04","\u96B6","\u7591","\u6C0F","\u5BAB","\u59D0","\u9707","\u745E","\u602A","\u5C24","\u7434","\u5FAA","\u63CF","\u819C","\u8FDD","\u5939","\u8170","\u7F18","\u73E0","\u7A77","\u68EE","\u679D","\u7AF9","\u6C9F","\u50AC","\u7EF3","\u5FC6","\u90A6","\u5269","\u5E78","\u6D46","\u680F","\u62E5","\u7259","\u8D2E","\u793C","\u6EE4","\u94A0","\u7EB9","\u7F62","\u62CD","\u54B1","\u558A","\u8896","\u57C3","\u52E4","\u7F5A","\u7126","\u6F5C","\u4F0D","\u58A8","\u6B32","\u7F1D","\u59D3","\u520A","\u9971","\u4EFF","\u5956","\u94DD","\u9B3C","\u4E3D","\u8DE8","\u9ED8","\u6316","\u94FE","\u626B","\u559D","\u888B","\u70AD","\u6C61","\u5E55","\u8BF8","\u5F27","\u52B1","\u6885","\u5976","\u6D01","\u707E","\u821F","\u9274","\u82EF","\u8BBC","\u62B1","\u6BC1","\u61C2","\u5BD2","\u667A","\u57D4","\u5BC4","\u5C4A","\u8DC3","\u6E21","\u6311","\u4E39","\u8270","\u8D1D","\u78B0","\u62D4","\u7239","\u6234","\u7801","\u68A6","\u82BD","\u7194","\u8D64","\u6E14","\u54ED","\u656C","\u9897","\u5954","\u94C5","\u4EF2","\u864E","\u7A00","\u59B9","\u4E4F","\u73CD","\u7533","\u684C","\u9075","\u5141","\u9686","\u87BA","\u4ED3","\u9B4F","\u9510","\u6653","\u6C2E","\u517C","\u9690","\u788D","\u8D6B","\u62E8","\u5FE0","\u8083","\u7F38","\u7275","\u62A2","\u535A","\u5DE7","\u58F3","\u5144","\u675C","\u8BAF","\u8BDA","\u78A7","\u7965","\u67EF","\u9875","\u5DE1","\u77E9","\u60B2","\u704C","\u9F84","\u4F26","\u7968","\u5BFB","\u6842","\u94FA","\u5723","\u6050","\u6070","\u90D1","\u8DA3","\u62AC","\u8352","\u817E","\u8D34","\u67D4","\u6EF4","\u731B","\u9614","\u8F86","\u59BB","\u586B","\u64A4","\u50A8","\u7B7E","\u95F9","\u6270","\u7D2B","\u7802","\u9012","\u620F","\u540A","\u9676","\u4F10","\u5582","\u7597","\u74F6","\u5A46","\u629A","\u81C2","\u6478","\u5FCD","\u867E","\u8721","\u90BB","\u80F8","\u5DE9","\u6324","\u5076","\u5F03","\u69FD","\u52B2","\u4E73","\u9093","\u5409","\u4EC1","\u70C2","\u7816","\u79DF","\u4E4C","\u8230","\u4F34","\u74DC","\u6D45","\u4E19","\u6682","\u71E5","\u6A61","\u67F3","\u8FF7","\u6696","\u724C","\u79E7","\u80C6","\u8BE6","\u7C27","\u8E0F","\u74F7","\u8C31","\u5446","\u5BBE","\u7CCA","\u6D1B","\u8F89","\u6124","\u7ADE","\u9699","\u6012","\u7C98","\u4E43","\u7EEA","\u80A9","\u7C4D","\u654F","\u6D82","\u7199","\u7686","\u4FA6","\u60AC","\u6398","\u4EAB","\u7EA0","\u9192","\u72C2","\u9501","\u6DC0","\u6068","\u7272","\u9738","\u722C","\u8D4F","\u9006","\u73A9","\u9675","\u795D","\u79D2","\u6D59","\u8C8C","\u5F79","\u5F7C","\u6089","\u9E2D","\u8D8B","\u51E4","\u6668","\u755C","\u8F88","\u79E9","\u5375","\u7F72","\u68AF","\u708E","\u6EE9","\u68CB","\u9A71","\u7B5B","\u5CE1","\u5192","\u5565","\u5BFF","\u8BD1","\u6D78","\u6CC9","\u5E3D","\u8FDF","\u7845","\u7586","\u8D37","\u6F0F","\u7A3F","\u51A0","\u5AE9","\u80C1","\u82AF","\u7262","\u53DB","\u8680","\u5965","\u9E23","\u5CAD","\u7F8A","\u51ED","\u4E32","\u5858","\u7ED8","\u9175","\u878D","\u76C6","\u9521","\u5E99","\u7B79","\u51BB","\u8F85","\u6444","\u88AD","\u7B4B","\u62D2","\u50DA","\u65F1","\u94BE","\u9E1F","\u6F06","\u6C88","\u7709","\u758F","\u6DFB","\u68D2","\u7A57","\u785D","\u97E9","\u903C","\u626D","\u4FA8","\u51C9","\u633A","\u7897","\u683D","\u7092","\u676F","\u60A3","\u998F","\u529D","\u8C6A","\u8FBD","\u52C3","\u9E3F","\u65E6","\u540F","\u62DC","\u72D7","\u57CB","\u8F8A","\u63A9","\u996E","\u642C","\u9A82","\u8F9E","\u52FE","\u6263","\u4F30","\u848B","\u7ED2","\u96FE","\u4E08","\u6735","\u59C6","\u62DF","\u5B87","\u8F91","\u9655","\u96D5","\u507F","\u84C4","\u5D07","\u526A","\u5021","\u5385","\u54AC","\u9A76","\u85AF","\u5237","\u65A5","\u756A","\u8D4B","\u5949","\u4F5B","\u6D47","\u6F2B","\u66FC","\u6247","\u9499","\u6843","\u6276","\u4ED4","\u8FD4","\u4FD7","\u4E8F","\u8154","\u978B","\u68F1","\u8986","\u6846","\u6084","\u53D4","\u649E","\u9A97","\u52D8","\u65FA","\u6CB8","\u5B64","\u5410","\u5B5F","\u6E20","\u5C48","\u75BE","\u5999","\u60DC","\u4EF0","\u72E0","\u80C0","\u8C10","\u629B","\u9709","\u6851","\u5C97","\u561B","\u8870","\u76D7","\u6E17","\u810F","\u8D56","\u6D8C","\u751C","\u66F9","\u9605","\u808C","\u54E9","\u5389","\u70C3","\u7EAC","\u6BC5","\u6628","\u4F2A","\u75C7","\u716E","\u53F9","\u9489","\u642D","\u830E","\u7B3C","\u9177","\u5077","\u5F13","\u9525","\u6052","\u6770","\u5751","\u9F3B","\u7FFC","\u7EB6","\u53D9","\u72F1","\u902E","\u7F50","\u7EDC","\u68DA","\u6291","\u81A8","\u852C","\u5BFA","\u9AA4","\u7A46","\u51B6","\u67AF","\u518C","\u5C38","\u51F8","\u7EC5","\u576F","\u727A","\u7130","\u8F70","\u6B23","\u664B","\u7626","\u5FA1","\u952D","\u9526","\u4E27","\u65EC","\u953B","\u5784","\u641C","\u6251","\u9080","\u4EAD","\u916F","\u8FC8","\u8212","\u8106","\u9176","\u95F2","\u5FE7","\u915A","\u987D","\u7FBD","\u6DA8","\u5378","\u4ED7","\u966A","\u8F9F","\u60E9","\u676D","\u59DA","\u809A","\u6349","\u98D8","\u6F02","\u6606","\u6B3A","\u543E","\u90CE","\u70F7","\u6C41","\u5475","\u9970","\u8427","\u96C5","\u90AE","\u8FC1","\u71D5","\u6492","\u59FB","\u8D74","\u5BB4","\u70E6","\u503A","\u5E10","\u6591","\u94C3","\u65E8","\u9187","\u8463","\u997C","\u96CF","\u59FF","\u62CC","\u5085","\u8179","\u59A5","\u63C9","\u8D24","\u62C6","\u6B6A","\u8461","\u80FA","\u4E22","\u6D69","\u5FBD","\u6602","\u57AB","\u6321","\u89C8","\u8D2A","\u6170","\u7F34","\u6C6A","\u614C","\u51AF","\u8BFA","\u59DC","\u8C0A","\u51F6","\u52A3","\u8BEC","\u8000","\u660F","\u8EBA","\u76C8","\u9A91","\u4E54","\u6EAA","\u4E1B","\u5362","\u62B9","\u95F7","\u54A8","\u522E","\u9A7E","\u7F06","\u609F","\u6458","\u94D2","\u63B7","\u9887","\u5E7B","\u67C4","\u60E0","\u60E8","\u4F73","\u4EC7","\u814A","\u7A9D","\u6DA4","\u5251","\u77A7","\u5821","\u6CFC","\u8471","\u7F69","\u970D","\u635E","\u80CE","\u82CD","\u6EE8","\u4FE9","\u6345","\u6E58","\u780D","\u971E","\u90B5","\u8404","\u75AF","\u6DEE","\u9042","\u718A","\u7CAA","\u70D8","\u5BBF","\u6863","\u6208","\u9A73","\u5AC2","\u88D5","\u5F99","\u7BAD","\u6350","\u80A0","\u6491","\u6652","\u8FA8","\u6BBF","\u83B2","\u644A","\u6405","\u9171","\u5C4F","\u75AB","\u54C0","\u8521","\u5835","\u6CAB","\u76B1","\u7545","\u53E0","\u9601","\u83B1","\u6572","\u8F96","\u94A9","\u75D5","\u575D","\u5DF7","\u997F","\u7978","\u4E18","\u7384","\u6E9C","\u66F0","\u903B","\u5F6D","\u5C1D","\u537F","\u59A8","\u8247","\u541E","\u97E6","\u6028","\u77EE","\u6B47"];vN.exports=F9});var _N=P((Qse,bN)=>{"use strict";g();var j9=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];bN.exports=j9});var SN=P((tue,wN)=>{"use string";g();var z9=["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","acade\u0301mie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acque\u0301rir","acronyme","acteur","actif","actuel","adepte","ade\u0301quat","adhe\u0301sif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","ae\u0301rer","ae\u0301ronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agre\u0301able","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","alge\u0300bre","algue","alie\u0301ner","aliment","alle\u0301ger","alliage","allouer","allumer","alourdir","alpaga","altesse","alve\u0301ole","amateur","ambigu","ambre","ame\u0301nager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","ane\u0301antir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","ape\u0301ritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","arte\u0301riel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannie\u0300re","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","be\u0301lier","belote","be\u0301ne\u0301fice","berceau","berger","berline","bermuda","besace","besogne","be\u0301tail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","bre\u0300che","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","cafe\u0301ine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","came\u0301ra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","ce\u0301dille","ceinture","ce\u0301leste","cellule","cendrier","censurer","central","cercle","ce\u0301re\u0301bral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","che\u0301quier","chercher","cheval","chien","chiffre","chignon","chime\u0300re","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cine\u0301ma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohe\u0301sion","coiffer","coincer","cole\u0300re","colibri","colline","colmater","colonel","combat","come\u0301die","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","corte\u0300ge","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","cre\u0301ature","cre\u0301diter","cre\u0301meux","creuser","crevette","cribler","crier","cristal","crite\u0300re","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuille\u0300re","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","de\u0301battre","de\u0301biter","de\u0301border","de\u0301brider","de\u0301butant","de\u0301caler","de\u0301cembre","de\u0301chirer","de\u0301cider","de\u0301clarer","de\u0301corer","de\u0301crire","de\u0301cupler","de\u0301dale","de\u0301ductif","de\u0301esse","de\u0301fensif","de\u0301filer","de\u0301frayer","de\u0301gager","de\u0301givrer","de\u0301glutir","de\u0301grafer","de\u0301jeuner","de\u0301lice","de\u0301loger","demander","demeurer","de\u0301molir","de\u0301nicher","de\u0301nouer","dentelle","de\u0301nuder","de\u0301part","de\u0301penser","de\u0301phaser","de\u0301placer","de\u0301poser","de\u0301ranger","de\u0301rober","de\u0301sastre","descente","de\u0301sert","de\u0301signer","de\u0301sobe\u0301ir","dessiner","destrier","de\u0301tacher","de\u0301tester","de\u0301tourer","de\u0301tresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","diffe\u0301rer","dige\u0301rer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","e\u0301blouir","e\u0301carter","e\u0301charpe","e\u0301chelle","e\u0301clairer","e\u0301clipse","e\u0301clore","e\u0301cluse","e\u0301cole","e\u0301conomie","e\u0301corce","e\u0301couter","e\u0301craser","e\u0301cre\u0301mer","e\u0301crivain","e\u0301crou","e\u0301cume","e\u0301cureuil","e\u0301difier","e\u0301duquer","effacer","effectif","effigie","effort","effrayer","effusion","e\u0301galiser","e\u0301garer","e\u0301jecter","e\u0301laborer","e\u0301largir","e\u0301lectron","e\u0301le\u0301gant","e\u0301le\u0301phant","e\u0301le\u0300ve","e\u0301ligible","e\u0301litisme","e\u0301loge","e\u0301lucider","e\u0301luder","emballer","embellir","embryon","e\u0301meraude","e\u0301mission","emmener","e\u0301motion","e\u0301mouvoir","empereur","employer","emporter","emprise","e\u0301mulsion","encadrer","enche\u0300re","enclave","encoche","endiguer","endosser","endroit","enduire","e\u0301nergie","enfance","enfermer","enfouir","engager","engin","englober","e\u0301nigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","e\u0301nume\u0301rer","envahir","enviable","envoyer","enzyme","e\u0301olien","e\u0301paissir","e\u0301pargne","e\u0301patant","e\u0301paule","e\u0301picerie","e\u0301pide\u0301mie","e\u0301pier","e\u0301pilogue","e\u0301pine","e\u0301pisode","e\u0301pitaphe","e\u0301poque","e\u0301preuve","e\u0301prouver","e\u0301puisant","e\u0301querre","e\u0301quipe","e\u0301riger","e\u0301rosion","erreur","e\u0301ruption","escalier","espadon","espe\u0300ce","espie\u0300gle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","e\u0301tage\u0300re","e\u0301taler","e\u0301tanche","e\u0301tatique","e\u0301teindre","e\u0301tendoir","e\u0301ternel","e\u0301thanol","e\u0301thique","ethnie","e\u0301tirer","e\u0301toffer","e\u0301toile","e\u0301tonnant","e\u0301tourdir","e\u0301trange","e\u0301troit","e\u0301tude","euphorie","e\u0301valuer","e\u0301vasion","e\u0301ventail","e\u0301vidence","e\u0301viter","e\u0301volutif","e\u0301voquer","exact","exage\u0301rer","exaucer","exceller","excitant","exclusif","excuse","exe\u0301cuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expe\u0301dier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fe\u0301brile","fe\u0301conder","fe\u0301de\u0301rer","fe\u0301lin","femme","fe\u0301mur","fendoir","fe\u0301odal","fermer","fe\u0301roce","ferveur","festival","feuille","feutre","fe\u0301vrier","fiasco","ficeler","fictif","fide\u0300le","figure","filature","filetage","filie\u0300re","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fle\u0301au","fle\u0300che","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fouge\u0300re","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","fre\u0301gate","freiner","frelon","fre\u0301mir","fre\u0301ne\u0301sie","fre\u0300re","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","ge\u0301ant","ge\u0301latine","ge\u0301lule","gendarme","ge\u0301ne\u0301ral","ge\u0301nie","genou","gentil","ge\u0301ologie","ge\u0301ome\u0300tre","ge\u0301ranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruye\u0300re","gue\u0301pard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","he\u0301lium","he\u0301matome","herbe","he\u0301risson","hermine","he\u0301ron","he\u0301siter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homoge\u0300ne","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygie\u0300ne","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impe\u0301rial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","ine\u0301dit","ineptie","inexact","infini","infliger","informer","infusion","inge\u0301rer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irre\u0301el","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juve\u0301nile","kayak","kimono","kiosque","label","labial","labourer","lace\u0301rer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","le\u0301gal","le\u0301ger","le\u0301gume","lessive","lettre","levier","lexique","le\u0301zard","liasse","libe\u0301rer","libre","licence","licorne","lie\u0300ge","lie\u0300vre","ligature","ligoter","ligue","limer","limite","limonade","limpide","line\u0301aire","lingot","lionceau","liquide","lisie\u0300re","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumie\u0300re","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","male\u0301fice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","mate\u0301riel","matie\u0300re","matraque","maudire","maussade","mauve","maximal","me\u0301chant","me\u0301connu","me\u0301daille","me\u0301decin","me\u0301diter","me\u0301duse","meilleur","me\u0301lange","me\u0301lodie","membre","me\u0301moire","menacer","mener","menhir","mensonge","mentor","mercredi","me\u0301rite","merle","messager","mesure","me\u0301tal","me\u0301te\u0301ore","me\u0301thode","me\u0301tier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","mine\u0301ral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","mure\u0300ne","murmure","muscle","muse\u0301um","musicien","mutation","muter","mutuel","myriade","myrtille","myste\u0300re","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","ne\u0301buleux","nectar","ne\u0301faste","ne\u0301gation","ne\u0301gliger","ne\u0301gocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","nume\u0301ro","nuptial","nuque","nutritif","obe\u0301ir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","oce\u0301an","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","one\u0301reux","onirique","opale","opaque","ope\u0301rer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxyge\u0300ne","ozone","paisible","palace","palmare\u0300s","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","paste\u0300que","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pe\u0301lican","pelle","pelouse","peluche","pendule","pe\u0301ne\u0301trer","pe\u0301nible","pensif","pe\u0301nurie","pe\u0301pite","pe\u0301plum","perdrix","perforer","pe\u0301riode","permuter","perplexe","persil","perte","peser","pe\u0301tale","petit","pe\u0301trir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pie\u0300ce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poe\u0301sie","poe\u0300te","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","ponde\u0301rer","poney","portique","position","posse\u0301der","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","pre\u0301cieux","pre\u0301dire","pre\u0301fixe","pre\u0301lude","pre\u0301nom","pre\u0301sence","pre\u0301texte","pre\u0301voir","primitif","prince","prison","priver","proble\u0300me","proce\u0301der","prodige","profond","progre\u0300s","proie","projeter","prologue","promener","propre","prospe\u0300re","prote\u0301ger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quie\u0301tude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","re\u0301actif","re\u0301agir","re\u0301aliser","re\u0301animer","recevoir","re\u0301citer","re\u0301clamer","re\u0301colter","recruter","reculer","recycler","re\u0301diger","redouter","refaire","re\u0301flexe","re\u0301former","refrain","refuge","re\u0301galien","re\u0301gion","re\u0301glage","re\u0301gulier","re\u0301ite\u0301rer","rejeter","rejouer","relatif","relever","relief","remarque","reme\u0300de","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","re\u0301serve","re\u0301sineux","re\u0301soudre","respect","rester","re\u0301sultat","re\u0301tablir","retenir","re\u0301ticule","retomber","retracer","re\u0301union","re\u0301ussir","revanche","revivre","re\u0301volte","re\u0301vulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivie\u0300re","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","sce\u0301le\u0301rat","sce\u0301nario","sceptre","sche\u0301ma","science","scinder","score","scrutin","sculpter","se\u0301ance","se\u0301cable","se\u0301cher","secouer","se\u0301cre\u0301ter","se\u0301datif","se\u0301duire","seigneur","se\u0301jour","se\u0301lectif","semaine","sembler","semence","se\u0301minal","se\u0301nateur","sensible","sentence","se\u0301parer","se\u0301quence","serein","sergent","se\u0301rieux","serrure","se\u0301rum","service","se\u0301same","se\u0301vir","sevrage","sextuple","side\u0301ral","sie\u0300cle","sie\u0301ger","siffler","sigle","signal","silence","silicium","simple","since\u0300re","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spe\u0301cial","sphe\u0300re","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succe\u0300s","sucre","suffixe","sugge\u0301rer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","syme\u0301trie","synapse","syntaxe","syste\u0300me","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","te\u0301moin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","te\u0301tine","texte","the\u0300me","the\u0301orie","the\u0301rapie","thorax","tibia","tie\u0300de","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tole\u0301rant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","tre\u0300fle","tremper","tre\u0301sor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","ve\u0301ge\u0301tal","ve\u0301hicule","veinard","ve\u0301loce","vendredi","ve\u0301ne\u0301rer","venger","venimeux","ventouse","verdure","ve\u0301rin","vernir","verrou","verser","vertu","veston","ve\u0301te\u0301ran","ve\u0301tuste","vexant","vexer","viaduc","viande","victoire","vidange","vide\u0301o","vignette","vigueur","vilain","village","vinaigre","violon","vipe\u0300re","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xe\u0301non","yacht","ze\u0300bre","ze\u0301nith","zeste","zoologie"];wN.exports=z9});var xN=P((iue,EN)=>{"use strict";g();var K9=["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"];EN.exports=K9});var IN=P((oue,ON)=>{"use strict";g();var V9=["\u3042\u3044\u3053\u304F\u3057\u3093","\u3042\u3044\u3055\u3064","\u3042\u3044\u305F\u3099","\u3042\u304A\u305D\u3099\u3089","\u3042\u304B\u3061\u3083\u3093","\u3042\u304D\u308B","\u3042\u3051\u304B\u3099\u305F","\u3042\u3051\u308B","\u3042\u3053\u304B\u3099\u308C\u308B","\u3042\u3055\u3044","\u3042\u3055\u3072","\u3042\u3057\u3042\u3068","\u3042\u3057\u3099\u308F\u3046","\u3042\u3059\u3099\u304B\u308B","\u3042\u3059\u3099\u304D","\u3042\u305D\u3075\u3099","\u3042\u305F\u3048\u308B","\u3042\u305F\u305F\u3081\u308B","\u3042\u305F\u308A\u307E\u3048","\u3042\u305F\u308B","\u3042\u3064\u3044","\u3042\u3064\u304B\u3046","\u3042\u3063\u3057\u3085\u304F","\u3042\u3064\u307E\u308A","\u3042\u3064\u3081\u308B","\u3042\u3066\u306A","\u3042\u3066\u306F\u307E\u308B","\u3042\u3072\u308B","\u3042\u3075\u3099\u3089","\u3042\u3075\u3099\u308B","\u3042\u3075\u308C\u308B","\u3042\u307E\u3044","\u3042\u307E\u3068\u3099","\u3042\u307E\u3084\u304B\u3059","\u3042\u307E\u308A","\u3042\u307F\u3082\u306E","\u3042\u3081\u308A\u304B","\u3042\u3084\u307E\u308B","\u3042\u3086\u3080","\u3042\u3089\u3044\u304F\u3099\u307E","\u3042\u3089\u3057","\u3042\u3089\u3059\u3057\u3099","\u3042\u3089\u305F\u3081\u308B","\u3042\u3089\u3086\u308B","\u3042\u3089\u308F\u3059","\u3042\u308A\u304B\u3099\u3068\u3046","\u3042\u308F\u305B\u308B","\u3042\u308F\u3066\u308B","\u3042\u3093\u3044","\u3042\u3093\u304B\u3099\u3044","\u3042\u3093\u3053","\u3042\u3093\u305B\u3099\u3093","\u3042\u3093\u3066\u3044","\u3042\u3093\u306A\u3044","\u3042\u3093\u307E\u308A","\u3044\u3044\u305F\u3099\u3059","\u3044\u304A\u3093","\u3044\u304B\u3099\u3044","\u3044\u304B\u3099\u304F","\u3044\u304D\u304A\u3044","\u3044\u304D\u306A\u308A","\u3044\u304D\u3082\u306E","\u3044\u304D\u308B","\u3044\u304F\u3057\u3099","\u3044\u304F\u3075\u3099\u3093","\u3044\u3051\u306F\u3099\u306A","\u3044\u3051\u3093","\u3044\u3053\u3046","\u3044\u3053\u304F","\u3044\u3053\u3064","\u3044\u3055\u307E\u3057\u3044","\u3044\u3055\u3093","\u3044\u3057\u304D","\u3044\u3057\u3099\u3085\u3046","\u3044\u3057\u3099\u3087\u3046","\u3044\u3057\u3099\u308F\u308B","\u3044\u3059\u3099\u307F","\u3044\u3059\u3099\u308C","\u3044\u305B\u3044","\u3044\u305B\u3048\u3072\u3099","\u3044\u305B\u304B\u3044","\u3044\u305B\u304D","\u3044\u305B\u3099\u3093","\u3044\u305D\u3046\u308D\u3046","\u3044\u305D\u304B\u3099\u3057\u3044","\u3044\u305F\u3099\u3044","\u3044\u305F\u3099\u304F","\u3044\u305F\u3059\u3099\u3089","\u3044\u305F\u307F","\u3044\u305F\u308A\u3042","\u3044\u3061\u304A\u3046","\u3044\u3061\u3057\u3099","\u3044\u3061\u3068\u3099","\u3044\u3061\u306F\u3099","\u3044\u3061\u3075\u3099","\u3044\u3061\u308A\u3085\u3046","\u3044\u3064\u304B","\u3044\u3063\u3057\u3085\u3093","\u3044\u3063\u305B\u3044","\u3044\u3063\u305D\u3046","\u3044\u3063\u305F\u3093","\u3044\u3063\u3061","\u3044\u3063\u3066\u3044","\u3044\u3063\u307B\u309A\u3046","\u3044\u3066\u3055\u3099","\u3044\u3066\u3093","\u3044\u3068\u3099\u3046","\u3044\u3068\u3053","\u3044\u306A\u3044","\u3044\u306A\u304B","\u3044\u306D\u3080\u308A","\u3044\u306E\u3061","\u3044\u306E\u308B","\u3044\u306F\u3064","\u3044\u306F\u3099\u308B","\u3044\u306F\u3093","\u3044\u3072\u3099\u304D","\u3044\u3072\u3093","\u3044\u3075\u304F","\u3044\u3078\u3093","\u3044\u307B\u3046","\u3044\u307F\u3093","\u3044\u3082\u3046\u3068","\u3044\u3082\u305F\u308C","\u3044\u3082\u308A","\u3044\u3084\u304B\u3099\u308B","\u3044\u3084\u3059","\u3044\u3088\u304B\u3093","\u3044\u3088\u304F","\u3044\u3089\u3044","\u3044\u3089\u3059\u3068","\u3044\u308A\u304F\u3099\u3061","\u3044\u308A\u3087\u3046","\u3044\u308C\u3044","\u3044\u308C\u3082\u306E","\u3044\u308C\u308B","\u3044\u308D\u3048\u3093\u3072\u309A\u3064","\u3044\u308F\u3044","\u3044\u308F\u3046","\u3044\u308F\u304B\u3093","\u3044\u308F\u306F\u3099","\u3044\u308F\u3086\u308B","\u3044\u3093\u3051\u3099\u3093\u307E\u3081","\u3044\u3093\u3055\u3064","\u3044\u3093\u3057\u3087\u3046","\u3044\u3093\u3088\u3046","\u3046\u3048\u304D","\u3046\u3048\u308B","\u3046\u304A\u3055\u3099","\u3046\u304B\u3099\u3044","\u3046\u304B\u3075\u3099","\u3046\u304B\u3078\u3099\u308B","\u3046\u304D\u308F","\u3046\u304F\u3089\u3044\u306A","\u3046\u304F\u308C\u308C","\u3046\u3051\u305F\u307E\u308F\u308B","\u3046\u3051\u3064\u3051","\u3046\u3051\u3068\u308B","\u3046\u3051\u3082\u3064","\u3046\u3051\u308B","\u3046\u3053\u3099\u304B\u3059","\u3046\u3053\u3099\u304F","\u3046\u3053\u3093","\u3046\u3055\u304D\u3099","\u3046\u3057\u306A\u3046","\u3046\u3057\u308D\u304B\u3099\u307F","\u3046\u3059\u3044","\u3046\u3059\u304D\u3099","\u3046\u3059\u304F\u3099\u3089\u3044","\u3046\u3059\u3081\u308B","\u3046\u305B\u3064","\u3046\u3061\u3042\u308F\u305B","\u3046\u3061\u304B\u3099\u308F","\u3046\u3061\u304D","\u3046\u3061\u3085\u3046","\u3046\u3063\u304B\u308A","\u3046\u3064\u304F\u3057\u3044","\u3046\u3063\u305F\u3048\u308B","\u3046\u3064\u308B","\u3046\u3068\u3099\u3093","\u3046\u306A\u304D\u3099","\u3046\u306A\u3057\u3099","\u3046\u306A\u3059\u3099\u304F","\u3046\u306A\u308B","\u3046\u306D\u308B","\u3046\u306E\u3046","\u3046\u3075\u3099\u3051\u3099","\u3046\u3075\u3099\u3053\u3099\u3048","\u3046\u307E\u308C\u308B","\u3046\u3081\u308B","\u3046\u3082\u3046","\u3046\u3084\u307E\u3046","\u3046\u3088\u304F","\u3046\u3089\u304B\u3099\u3048\u3059","\u3046\u3089\u304F\u3099\u3061","\u3046\u3089\u306A\u3044","\u3046\u308A\u3042\u3051\u3099","\u3046\u308A\u304D\u308C","\u3046\u308B\u3055\u3044","\u3046\u308C\u3057\u3044","\u3046\u308C\u3086\u304D","\u3046\u308C\u308B","\u3046\u308D\u3053","\u3046\u308F\u304D","\u3046\u308F\u3055","\u3046\u3093\u3053\u3046","\u3046\u3093\u3061\u3093","\u3046\u3093\u3066\u3093","\u3046\u3093\u3068\u3099\u3046","\u3048\u3044\u3048\u3093","\u3048\u3044\u304B\u3099","\u3048\u3044\u304D\u3087\u3046","\u3048\u3044\u3053\u3099","\u3048\u3044\u305B\u3044","\u3048\u3044\u3075\u3099\u3093","\u3048\u3044\u3088\u3046","\u3048\u3044\u308F","\u3048\u304A\u308A","\u3048\u304B\u3099\u304A","\u3048\u304B\u3099\u304F","\u3048\u304D\u305F\u3044","\u3048\u304F\u305B\u308B","\u3048\u3057\u3083\u304F","\u3048\u3059\u3066","\u3048\u3064\u3089\u3093","\u3048\u306E\u304F\u3099","\u3048\u307B\u3046\u307E\u304D","\u3048\u307B\u3093","\u3048\u307E\u304D","\u3048\u3082\u3057\u3099","\u3048\u3082\u306E","\u3048\u3089\u3044","\u3048\u3089\u3075\u3099","\u3048\u308A\u3042","\u3048\u3093\u3048\u3093","\u3048\u3093\u304B\u3044","\u3048\u3093\u304D\u3099","\u3048\u3093\u3051\u3099\u304D","\u3048\u3093\u3057\u3085\u3046","\u3048\u3093\u305B\u3099\u3064","\u3048\u3093\u305D\u304F","\u3048\u3093\u3061\u3087\u3046","\u3048\u3093\u3068\u3064","\u304A\u3044\u304B\u3051\u308B","\u304A\u3044\u3053\u3059","\u304A\u3044\u3057\u3044","\u304A\u3044\u3064\u304F","\u304A\u3046\u3048\u3093","\u304A\u3046\u3055\u307E","\u304A\u3046\u3057\u3099","\u304A\u3046\u305B\u3064","\u304A\u3046\u305F\u3044","\u304A\u3046\u3075\u304F","\u304A\u3046\u3078\u3099\u3044","\u304A\u3046\u3088\u3046","\u304A\u3048\u308B","\u304A\u304A\u3044","\u304A\u304A\u3046","\u304A\u304A\u3068\u3099\u304A\u308A","\u304A\u304A\u3084","\u304A\u304A\u3088\u305D","\u304A\u304B\u3048\u308A","\u304A\u304B\u3059\u3099","\u304A\u304B\u3099\u3080","\u304A\u304B\u308F\u308A","\u304A\u304D\u3099\u306A\u3046","\u304A\u304D\u308B","\u304A\u304F\u3055\u307E","\u304A\u304F\u3057\u3099\u3087\u3046","\u304A\u304F\u308A\u304B\u3099\u306A","\u304A\u304F\u308B","\u304A\u304F\u308C\u308B","\u304A\u3053\u3059","\u304A\u3053\u306A\u3046","\u304A\u3053\u308B","\u304A\u3055\u3048\u308B","\u304A\u3055\u306A\u3044","\u304A\u3055\u3081\u308B","\u304A\u3057\u3044\u308C","\u304A\u3057\u3048\u308B","\u304A\u3057\u3099\u304D\u3099","\u304A\u3057\u3099\u3055\u3093","\u304A\u3057\u3083\u308C","\u304A\u305D\u3089\u304F","\u304A\u305D\u308F\u308B","\u304A\u305F\u304B\u3099\u3044","\u304A\u305F\u304F","\u304A\u305F\u3099\u3084\u304B","\u304A\u3061\u3064\u304F","\u304A\u3063\u3068","\u304A\u3064\u308A","\u304A\u3066\u3099\u304B\u3051","\u304A\u3068\u3057\u3082\u306E","\u304A\u3068\u306A\u3057\u3044","\u304A\u3068\u3099\u308A","\u304A\u3068\u3099\u308D\u304B\u3059","\u304A\u306F\u3099\u3055\u3093","\u304A\u307E\u3044\u308A","\u304A\u3081\u3066\u3099\u3068\u3046","\u304A\u3082\u3044\u3066\u3099","\u304A\u3082\u3046","\u304A\u3082\u305F\u3044","\u304A\u3082\u3061\u3083","\u304A\u3084\u3064","\u304A\u3084\u3086\u3072\u3099","\u304A\u3088\u307B\u3099\u3059","\u304A\u3089\u3093\u305F\u3099","\u304A\u308D\u3059","\u304A\u3093\u304B\u3099\u304F","\u304A\u3093\u3051\u3044","\u304A\u3093\u3057\u3083","\u304A\u3093\u305B\u3093","\u304A\u3093\u305F\u3099\u3093","\u304A\u3093\u3061\u3085\u3046","\u304A\u3093\u3068\u3099\u3051\u3044","\u304B\u3042\u3064","\u304B\u3044\u304B\u3099","\u304B\u3099\u3044\u304D","\u304B\u3099\u3044\u3051\u3093","\u304B\u3099\u3044\u3053\u3046","\u304B\u3044\u3055\u3064","\u304B\u3044\u3057\u3083","\u304B\u3044\u3059\u3044\u3088\u304F","\u304B\u3044\u305B\u3099\u3093","\u304B\u3044\u305D\u3099\u3046\u3068\u3099","\u304B\u3044\u3064\u3046","\u304B\u3044\u3066\u3093","\u304B\u3044\u3068\u3046","\u304B\u3044\u3075\u304F","\u304B\u3099\u3044\u3078\u304D","\u304B\u3044\u307B\u3046","\u304B\u3044\u3088\u3046","\u304B\u3099\u3044\u3089\u3044","\u304B\u3044\u308F","\u304B\u3048\u308B","\u304B\u304A\u308A","\u304B\u304B\u3048\u308B","\u304B\u304B\u3099\u304F","\u304B\u304B\u3099\u3057","\u304B\u304B\u3099\u307F","\u304B\u304F\u3053\u3099","\u304B\u304F\u3068\u304F","\u304B\u3055\u3099\u308B","\u304B\u3099\u305D\u3099\u3046","\u304B\u305F\u3044","\u304B\u305F\u3061","\u304B\u3099\u3061\u3087\u3046","\u304B\u3099\u3063\u304D\u3085\u3046","\u304B\u3099\u3063\u3053\u3046","\u304B\u3099\u3063\u3055\u3093","\u304B\u3099\u3063\u3057\u3087\u3046","\u304B\u306A\u3055\u3099\u308F\u3057","\u304B\u306E\u3046","\u304B\u3099\u306F\u304F","\u304B\u3075\u3099\u304B","\u304B\u307B\u3046","\u304B\u307B\u3053\u3099","\u304B\u307E\u3046","\u304B\u307E\u307B\u3099\u3053","\u304B\u3081\u308C\u304A\u3093","\u304B\u3086\u3044","\u304B\u3088\u3046\u3072\u3099","\u304B\u3089\u3044","\u304B\u308B\u3044","\u304B\u308D\u3046","\u304B\u308F\u304F","\u304B\u308F\u3089","\u304B\u3099\u3093\u304B","\u304B\u3093\u3051\u3044","\u304B\u3093\u3053\u3046","\u304B\u3093\u3057\u3083","\u304B\u3093\u305D\u3046","\u304B\u3093\u305F\u3093","\u304B\u3093\u3061","\u304B\u3099\u3093\u306F\u3099\u308B","\u304D\u3042\u3044","\u304D\u3042\u3064","\u304D\u3044\u308D","\u304D\u3099\u3044\u3093","\u304D\u3046\u3044","\u304D\u3046\u3093","\u304D\u3048\u308B","\u304D\u304A\u3046","\u304D\u304A\u304F","\u304D\u304A\u3061","\u304D\u304A\u3093","\u304D\u304B\u3044","\u304D\u304B\u304F","\u304D\u304B\u3093\u3057\u3083","\u304D\u304D\u3066","\u304D\u304F\u306F\u3099\u308A","\u304D\u304F\u3089\u3051\u3099","\u304D\u3051\u3093\u305B\u3044","\u304D\u3053\u3046","\u304D\u3053\u3048\u308B","\u304D\u3053\u304F","\u304D\u3055\u3044","\u304D\u3055\u304F","\u304D\u3055\u307E","\u304D\u3055\u3089\u304D\u3099","\u304D\u3099\u3057\u3099\u304B\u304B\u3099\u304F","\u304D\u3099\u3057\u304D","\u304D\u3099\u3057\u3099\u305F\u3044\u3051\u3093","\u304D\u3099\u3057\u3099\u306B\u3063\u3066\u3044","\u304D\u3099\u3057\u3099\u3085\u3064\u3057\u3083","\u304D\u3059\u3046","\u304D\u305B\u3044","\u304D\u305B\u304D","\u304D\u305B\u3064","\u304D\u305D\u3046","\u304D\u305D\u3099\u304F","\u304D\u305D\u3099\u3093","\u304D\u305F\u3048\u308B","\u304D\u3061\u3087\u3046","\u304D\u3064\u3048\u3093","\u304D\u3099\u3063\u3061\u308A","\u304D\u3064\u3064\u304D","\u304D\u3064\u306D","\u304D\u3066\u3044","\u304D\u3068\u3099\u3046","\u304D\u3068\u3099\u304F","\u304D\u306A\u3044","\u304D\u306A\u304B\u3099","\u304D\u306A\u3053","\u304D\u306C\u3053\u3099\u3057","\u304D\u306D\u3093","\u304D\u306E\u3046","\u304D\u306E\u3057\u305F","\u304D\u306F\u304F","\u304D\u3072\u3099\u3057\u3044","\u304D\u3072\u3093","\u304D\u3075\u304F","\u304D\u3075\u3099\u3093","\u304D\u307B\u3099\u3046","\u304D\u307B\u3093","\u304D\u307E\u308B","\u304D\u307F\u3064","\u304D\u3080\u3059\u3099\u304B\u3057\u3044","\u304D\u3081\u308B","\u304D\u3082\u305F\u3099\u3081\u3057","\u304D\u3082\u3061","\u304D\u3082\u306E","\u304D\u3083\u304F","\u304D\u3084\u304F","\u304D\u3099\u3085\u3046\u306B\u304F","\u304D\u3088\u3046","\u304D\u3087\u3046\u308A\u3085\u3046","\u304D\u3089\u3044","\u304D\u3089\u304F","\u304D\u308A\u3093","\u304D\u308C\u3044","\u304D\u308C\u3064","\u304D\u308D\u304F","\u304D\u3099\u308D\u3093","\u304D\u308F\u3081\u308B","\u304D\u3099\u3093\u3044\u308D","\u304D\u3093\u304B\u304F\u3057\u3099","\u304D\u3093\u3057\u3099\u3087","\u304D\u3093\u3088\u3046\u3072\u3099","\u304F\u3099\u3042\u3044","\u304F\u3044\u3059\u3099","\u304F\u3046\u304B\u3093","\u304F\u3046\u304D","\u304F\u3046\u304F\u3099\u3093","\u304F\u3046\u3053\u3046","\u304F\u3099\u3046\u305B\u3044","\u304F\u3046\u305D\u3046","\u304F\u3099\u3046\u305F\u3089","\u304F\u3046\u3075\u304F","\u304F\u3046\u307B\u3099","\u304F\u304B\u3093","\u304F\u304D\u3087\u3046","\u304F\u3051\u3099\u3093","\u304F\u3099\u3053\u3046","\u304F\u3055\u3044","\u304F\u3055\u304D","\u304F\u3055\u306F\u3099\u306A","\u304F\u3055\u308B","\u304F\u3057\u3083\u307F","\u304F\u3057\u3087\u3046","\u304F\u3059\u306E\u304D","\u304F\u3059\u308A\u3086\u3072\u3099","\u304F\u305B\u3051\u3099","\u304F\u305B\u3093","\u304F\u3099\u305F\u3044\u3066\u304D","\u304F\u305F\u3099\u3055\u308B","\u304F\u305F\u3072\u3099\u308C\u308B","\u304F\u3061\u3053\u307F","\u304F\u3061\u3055\u304D","\u304F\u3064\u3057\u305F","\u304F\u3099\u3063\u3059\u308A","\u304F\u3064\u308D\u304F\u3099","\u304F\u3068\u3046\u3066\u3093","\u304F\u3068\u3099\u304F","\u304F\u306A\u3093","\u304F\u306D\u304F\u306D","\u304F\u306E\u3046","\u304F\u3075\u3046","\u304F\u307F\u3042\u308F\u305B","\u304F\u307F\u305F\u3066\u308B","\u304F\u3081\u308B","\u304F\u3084\u304F\u3057\u3087","\u304F\u3089\u3059","\u304F\u3089\u3078\u3099\u308B","\u304F\u308B\u307E","\u304F\u308C\u308B","\u304F\u308D\u3046","\u304F\u308F\u3057\u3044","\u304F\u3099\u3093\u304B\u3093","\u304F\u3099\u3093\u3057\u3087\u304F","\u304F\u3099\u3093\u305F\u3044","\u304F\u3099\u3093\u3066","\u3051\u3042\u306A","\u3051\u3044\u304B\u304F","\u3051\u3044\u3051\u3093","\u3051\u3044\u3053","\u3051\u3044\u3055\u3064","\u3051\u3099\u3044\u3057\u3099\u3085\u3064","\u3051\u3044\u305F\u3044","\u3051\u3099\u3044\u306E\u3046\u3057\u3099\u3093","\u3051\u3044\u308C\u304D","\u3051\u3044\u308D","\u3051\u304A\u3068\u3059","\u3051\u304A\u308A\u3082\u306E","\u3051\u3099\u304D\u304B","\u3051\u3099\u304D\u3051\u3099\u3093","\u3051\u3099\u304D\u305F\u3099\u3093","\u3051\u3099\u304D\u3061\u3093","\u3051\u3099\u304D\u3068\u3064","\u3051\u3099\u304D\u306F","\u3051\u3099\u304D\u3084\u304F","\u3051\u3099\u3053\u3046","\u3051\u3099\u3053\u304F\u3057\u3099\u3087\u3046","\u3051\u3099\u3055\u3099\u3044","\u3051\u3055\u304D","\u3051\u3099\u3055\u3099\u3093","\u3051\u3057\u304D","\u3051\u3057\u3053\u3099\u3080","\u3051\u3057\u3087\u3046","\u3051\u3099\u3059\u3068","\u3051\u305F\u306F\u3099","\u3051\u3061\u3083\u3063\u3075\u309A","\u3051\u3061\u3089\u3059","\u3051\u3064\u3042\u3064","\u3051\u3064\u3044","\u3051\u3064\u3048\u304D","\u3051\u3063\u3053\u3093","\u3051\u3064\u3057\u3099\u3087","\u3051\u3063\u305B\u304D","\u3051\u3063\u3066\u3044","\u3051\u3064\u307E\u3064","\u3051\u3099\u3064\u3088\u3046\u3072\u3099","\u3051\u3099\u3064\u308C\u3044","\u3051\u3064\u308D\u3093","\u3051\u3099\u3068\u3099\u304F","\u3051\u3068\u306F\u3099\u3059","\u3051\u3068\u308B","\u3051\u306A\u3051\u3099","\u3051\u306A\u3059","\u3051\u306A\u307F","\u3051\u306C\u304D","\u3051\u3099\u306D\u3064","\u3051\u306D\u3093","\u3051\u306F\u3044","\u3051\u3099\u3072\u3093","\u3051\u3075\u3099\u304B\u3044","\u3051\u3099\u307B\u3099\u304F","\u3051\u307E\u308A","\u3051\u307F\u304B\u308B","\u3051\u3080\u3057","\u3051\u3080\u308A","\u3051\u3082\u306E","\u3051\u3089\u3044","\u3051\u308D\u3051\u308D","\u3051\u308F\u3057\u3044","\u3051\u3093\u3044","\u3051\u3093\u3048\u3064","\u3051\u3093\u304A","\u3051\u3093\u304B","\u3051\u3099\u3093\u304D","\u3051\u3093\u3051\u3099\u3093","\u3051\u3093\u3053\u3046","\u3051\u3093\u3055\u304F","\u3051\u3093\u3057\u3085\u3046","\u3051\u3093\u3059\u3046","\u3051\u3099\u3093\u305D\u3046","\u3051\u3093\u3061\u304F","\u3051\u3093\u3066\u3044","\u3051\u3093\u3068\u3046","\u3051\u3093\u306A\u3044","\u3051\u3093\u306B\u3093","\u3051\u3099\u3093\u3075\u3099\u3064","\u3051\u3093\u307E","\u3051\u3093\u307F\u3093","\u3051\u3093\u3081\u3044","\u3051\u3093\u3089\u3093","\u3051\u3093\u308A","\u3053\u3042\u304F\u307E","\u3053\u3044\u306C","\u3053\u3044\u3072\u3099\u3068","\u3053\u3099\u3046\u3044","\u3053\u3046\u3048\u3093","\u3053\u3046\u304A\u3093","\u3053\u3046\u304B\u3093","\u3053\u3099\u3046\u304D\u3085\u3046","\u3053\u3099\u3046\u3051\u3044","\u3053\u3046\u3053\u3046","\u3053\u3046\u3055\u3044","\u3053\u3046\u3057\u3099","\u3053\u3046\u3059\u3044","\u3053\u3099\u3046\u305B\u3044","\u3053\u3046\u305D\u304F","\u3053\u3046\u305F\u3044","\u3053\u3046\u3061\u3083","\u3053\u3046\u3064\u3046","\u3053\u3046\u3066\u3044","\u3053\u3046\u3068\u3099\u3046","\u3053\u3046\u306A\u3044","\u3053\u3046\u306F\u3044","\u3053\u3099\u3046\u307B\u3046","\u3053\u3099\u3046\u307E\u3093","\u3053\u3046\u3082\u304F","\u3053\u3046\u308A\u3064","\u3053\u3048\u308B","\u3053\u304A\u308A","\u3053\u3099\u304B\u3044","\u3053\u3099\u304B\u3099\u3064","\u3053\u3099\u304B\u3093","\u3053\u304F\u3053\u3099","\u3053\u304F\u3055\u3044","\u3053\u304F\u3068\u3046","\u3053\u304F\u306A\u3044","\u3053\u304F\u306F\u304F","\u3053\u304F\u3099\u307E","\u3053\u3051\u3044","\u3053\u3051\u308B","\u3053\u3053\u306E\u304B","\u3053\u3053\u308D","\u3053\u3055\u3081","\u3053\u3057\u3064","\u3053\u3059\u3046","\u3053\u305B\u3044","\u3053\u305B\u304D","\u3053\u305B\u3099\u3093","\u3053\u305D\u305F\u3099\u3066","\u3053\u305F\u3044","\u3053\u305F\u3048\u308B","\u3053\u305F\u3064","\u3053\u3061\u3087\u3046","\u3053\u3063\u304B","\u3053\u3064\u3053\u3064","\u3053\u3064\u306F\u3099\u3093","\u3053\u3064\u3075\u3099","\u3053\u3066\u3044","\u3053\u3066\u3093","\u3053\u3068\u304B\u3099\u3089","\u3053\u3068\u3057","\u3053\u3068\u306F\u3099","\u3053\u3068\u308A","\u3053\u306A\u3053\u3099\u306A","\u3053\u306D\u3053\u306D","\u3053\u306E\u307E\u307E","\u3053\u306E\u307F","\u3053\u306E\u3088","\u3053\u3099\u306F\u3093","\u3053\u3072\u3064\u3057\u3099","\u3053\u3075\u3046","\u3053\u3075\u3093","\u3053\u307B\u3099\u308C\u308B","\u3053\u3099\u307E\u3042\u3075\u3099\u3089","\u3053\u307E\u304B\u3044","\u3053\u3099\u307E\u3059\u308A","\u3053\u307E\u3064\u306A","\u3053\u307E\u308B","\u3053\u3080\u304D\u3099\u3053","\u3053\u3082\u3057\u3099","\u3053\u3082\u3061","\u3053\u3082\u306E","\u3053\u3082\u3093","\u3053\u3084\u304F","\u3053\u3084\u307E","\u3053\u3086\u3046","\u3053\u3086\u3072\u3099","\u3053\u3088\u3044","\u3053\u3088\u3046","\u3053\u308A\u308B","\u3053\u308C\u304F\u3057\u3087\u3093","\u3053\u308D\u3063\u3051","\u3053\u308F\u3082\u3066","\u3053\u308F\u308C\u308B","\u3053\u3093\u3044\u3093","\u3053\u3093\u304B\u3044","\u3053\u3093\u304D","\u3053\u3093\u3057\u3085\u3046","\u3053\u3093\u3059\u3044","\u3053\u3093\u305F\u3099\u3066","\u3053\u3093\u3068\u3093","\u3053\u3093\u306A\u3093","\u3053\u3093\u3072\u3099\u306B","\u3053\u3093\u307B\u309A\u3093","\u3053\u3093\u307E\u3051","\u3053\u3093\u3084","\u3053\u3093\u308C\u3044","\u3053\u3093\u308F\u304F","\u3055\u3099\u3044\u3048\u304D","\u3055\u3044\u304B\u3044","\u3055\u3044\u304D\u3093","\u3055\u3099\u3044\u3051\u3099\u3093","\u3055\u3099\u3044\u3053","\u3055\u3044\u3057\u3087","\u3055\u3044\u305B\u3044","\u3055\u3099\u3044\u305F\u304F","\u3055\u3099\u3044\u3061\u3085\u3046","\u3055\u3044\u3066\u304D","\u3055\u3099\u3044\u308A\u3087\u3046","\u3055\u3046\u306A","\u3055\u304B\u3044\u3057","\u3055\u304B\u3099\u3059","\u3055\u304B\u306A","\u3055\u304B\u307F\u3061","\u3055\u304B\u3099\u308B","\u3055\u304D\u3099\u3087\u3046","\u3055\u304F\u3057","\u3055\u304F\u3072\u3093","\u3055\u304F\u3089","\u3055\u3053\u304F","\u3055\u3053\u3064","\u3055\u3059\u3099\u304B\u308B","\u3055\u3099\u305B\u304D","\u3055\u305F\u3093","\u3055\u3064\u3048\u3044","\u3055\u3099\u3064\u304A\u3093","\u3055\u3099\u3063\u304B","\u3055\u3099\u3064\u304B\u3099\u304F","\u3055\u3063\u304D\u3087\u304F","\u3055\u3099\u3063\u3057","\u3055\u3064\u3057\u3099\u3093","\u3055\u3099\u3063\u305D\u3046","\u3055\u3064\u305F\u306F\u3099","\u3055\u3064\u307E\u3044\u3082","\u3055\u3066\u3044","\u3055\u3068\u3044\u3082","\u3055\u3068\u3046","\u3055\u3068\u304A\u3084","\u3055\u3068\u3057","\u3055\u3068\u308B","\u3055\u306E\u3046","\u3055\u306F\u3099\u304F","\u3055\u3072\u3099\u3057\u3044","\u3055\u3078\u3099\u3064","\u3055\u307B\u3046","\u3055\u307B\u3068\u3099","\u3055\u307E\u3059","\u3055\u307F\u3057\u3044","\u3055\u307F\u305F\u3099\u308C","\u3055\u3080\u3051","\u3055\u3081\u308B","\u3055\u3084\u3048\u3093\u3068\u3099\u3046","\u3055\u3086\u3046","\u3055\u3088\u3046","\u3055\u3088\u304F","\u3055\u3089\u305F\u3099","\u3055\u3099\u308B\u305D\u306F\u3099","\u3055\u308F\u3084\u304B","\u3055\u308F\u308B","\u3055\u3093\u3044\u3093","\u3055\u3093\u304B","\u3055\u3093\u304D\u3083\u304F","\u3055\u3093\u3053\u3046","\u3055\u3093\u3055\u3044","\u3055\u3099\u3093\u3057\u3087","\u3055\u3093\u3059\u3046","\u3055\u3093\u305B\u3044","\u3055\u3093\u305D","\u3055\u3093\u3061","\u3055\u3093\u307E","\u3055\u3093\u307F","\u3055\u3093\u3089\u3093","\u3057\u3042\u3044","\u3057\u3042\u3051\u3099","\u3057\u3042\u3055\u3063\u3066","\u3057\u3042\u308F\u305B","\u3057\u3044\u304F","\u3057\u3044\u3093","\u3057\u3046\u3061","\u3057\u3048\u3044","\u3057\u304A\u3051","\u3057\u304B\u3044","\u3057\u304B\u304F","\u3057\u3099\u304B\u3093","\u3057\u3053\u3099\u3068","\u3057\u3059\u3046","\u3057\u3099\u305F\u3099\u3044","\u3057\u305F\u3046\u3051","\u3057\u305F\u304D\u3099","\u3057\u305F\u3066","\u3057\u305F\u307F","\u3057\u3061\u3087\u3046","\u3057\u3061\u308A\u3093","\u3057\u3063\u304B\u308A","\u3057\u3064\u3057\u3099","\u3057\u3064\u3082\u3093","\u3057\u3066\u3044","\u3057\u3066\u304D","\u3057\u3066\u3064","\u3057\u3099\u3066\u3093","\u3057\u3099\u3068\u3099\u3046","\u3057\u306A\u304D\u3099\u308C","\u3057\u306A\u3082\u306E","\u3057\u306A\u3093","\u3057\u306D\u307E","\u3057\u306D\u3093","\u3057\u306E\u304F\u3099","\u3057\u306E\u3075\u3099","\u3057\u306F\u3044","\u3057\u306F\u3099\u304B\u308A","\u3057\u306F\u3064","\u3057\u306F\u3089\u3044","\u3057\u306F\u3093","\u3057\u3072\u3087\u3046","\u3057\u3075\u304F","\u3057\u3099\u3075\u3099\u3093","\u3057\u3078\u3044","\u3057\u307B\u3046","\u3057\u307B\u3093","\u3057\u307E\u3046","\u3057\u307E\u308B","\u3057\u307F\u3093","\u3057\u3080\u3051\u308B","\u3057\u3099\u3080\u3057\u3087","\u3057\u3081\u3044","\u3057\u3081\u308B","\u3057\u3082\u3093","\u3057\u3083\u3044\u3093","\u3057\u3083\u3046\u3093","\u3057\u3083\u304A\u3093","\u3057\u3099\u3083\u304B\u3099\u3044\u3082","\u3057\u3084\u304F\u3057\u3087","\u3057\u3083\u304F\u307B\u3046","\u3057\u3083\u3051\u3093","\u3057\u3083\u3053","\u3057\u3083\u3055\u3099\u3044","\u3057\u3083\u3057\u3093","\u3057\u3083\u305B\u3093","\u3057\u3083\u305D\u3046","\u3057\u3083\u305F\u3044","\u3057\u3083\u3061\u3087\u3046","\u3057\u3083\u3063\u304D\u3093","\u3057\u3099\u3083\u307E","\u3057\u3083\u308A\u3093","\u3057\u3083\u308C\u3044","\u3057\u3099\u3086\u3046","\u3057\u3099\u3085\u3046\u3057\u3087","\u3057\u3085\u304F\u306F\u304F","\u3057\u3099\u3085\u3057\u3093","\u3057\u3085\u3063\u305B\u304D","\u3057\u3085\u307F","\u3057\u3085\u3089\u306F\u3099","\u3057\u3099\u3085\u3093\u306F\u3099\u3093","\u3057\u3087\u3046\u304B\u3044","\u3057\u3087\u304F\u305F\u304F","\u3057\u3087\u3063\u3051\u3093","\u3057\u3087\u3068\u3099\u3046","\u3057\u3087\u3082\u3064","\u3057\u3089\u305B\u308B","\u3057\u3089\u3078\u3099\u308B","\u3057\u3093\u304B","\u3057\u3093\u3053\u3046","\u3057\u3099\u3093\u3057\u3099\u3083","\u3057\u3093\u305B\u3044\u3057\u3099","\u3057\u3093\u3061\u304F","\u3057\u3093\u308A\u3093","\u3059\u3042\u3051\u3099","\u3059\u3042\u3057","\u3059\u3042\u306A","\u3059\u3099\u3042\u3093","\u3059\u3044\u3048\u3044","\u3059\u3044\u304B","\u3059\u3044\u3068\u3046","\u3059\u3099\u3044\u3075\u3099\u3093","\u3059\u3044\u3088\u3046\u3072\u3099","\u3059\u3046\u304B\u3099\u304F","\u3059\u3046\u3057\u3099\u3064","\u3059\u3046\u305B\u3093","\u3059\u304A\u3068\u3099\u308A","\u3059\u304D\u307E","\u3059\u304F\u3046","\u3059\u304F\u306A\u3044","\u3059\u3051\u308B","\u3059\u3053\u3099\u3044","\u3059\u3053\u3057","\u3059\u3099\u3055\u3093","\u3059\u3059\u3099\u3057\u3044","\u3059\u3059\u3080","\u3059\u3059\u3081\u308B","\u3059\u3063\u304B\u308A","\u3059\u3099\u3063\u3057\u308A","\u3059\u3099\u3063\u3068","\u3059\u3066\u304D","\u3059\u3066\u308B","\u3059\u306D\u308B","\u3059\u306E\u3053","\u3059\u306F\u305F\u3099","\u3059\u306F\u3099\u3089\u3057\u3044","\u3059\u3099\u3072\u3087\u3046","\u3059\u3099\u3075\u3099\u306C\u308C","\u3059\u3075\u3099\u308A","\u3059\u3075\u308C","\u3059\u3078\u3099\u3066","\u3059\u3078\u3099\u308B","\u3059\u3099\u307B\u3046","\u3059\u307B\u3099\u3093","\u3059\u307E\u3044","\u3059\u3081\u3057","\u3059\u3082\u3046","\u3059\u3084\u304D","\u3059\u3089\u3059\u3089","\u3059\u308B\u3081","\u3059\u308C\u3061\u304B\u3099\u3046","\u3059\u308D\u3063\u3068","\u3059\u308F\u308B","\u3059\u3093\u305B\u3099\u3093","\u3059\u3093\u307B\u309A\u3046","\u305B\u3042\u3075\u3099\u3089","\u305B\u3044\u304B\u3064","\u305B\u3044\u3051\u3099\u3093","\u305B\u3044\u3057\u3099","\u305B\u3044\u3088\u3046","\u305B\u304A\u3046","\u305B\u304B\u3044\u304B\u3093","\u305B\u304D\u306B\u3093","\u305B\u304D\u3080","\u305B\u304D\u3086","\u305B\u304D\u3089\u3093\u3046\u3093","\u305B\u3051\u3093","\u305B\u3053\u3046","\u305B\u3059\u3057\u3099","\u305B\u305F\u3044","\u305B\u305F\u3051","\u305B\u3063\u304B\u304F","\u305B\u3063\u304D\u3083\u304F","\u305B\u3099\u3063\u304F","\u305B\u3063\u3051\u3093","\u305B\u3063\u3053\u3064","\u305B\u3063\u3055\u305F\u304F\u307E","\u305B\u3064\u305D\u3099\u304F","\u305B\u3064\u305F\u3099\u3093","\u305B\u3064\u3066\u3099\u3093","\u305B\u3063\u306F\u309A\u3093","\u305B\u3064\u3072\u3099","\u305B\u3064\u3075\u3099\u3093","\u305B\u3064\u3081\u3044","\u305B\u3064\u308A\u3064","\u305B\u306A\u304B","\u305B\u306E\u3072\u3099","\u305B\u306F\u306F\u3099","\u305B\u3072\u3099\u308D","\u305B\u307B\u3099\u306D","\u305B\u307E\u3044","\u305B\u307E\u308B","\u305B\u3081\u308B","\u305B\u3082\u305F\u308C","\u305B\u308A\u3075","\u305B\u3099\u3093\u3042\u304F","\u305B\u3093\u3044","\u305B\u3093\u3048\u3044","\u305B\u3093\u304B","\u305B\u3093\u304D\u3087","\u305B\u3093\u304F","\u305B\u3093\u3051\u3099\u3093","\u305B\u3099\u3093\u3053\u3099","\u305B\u3093\u3055\u3044","\u305B\u3093\u3057\u3085","\u305B\u3093\u3059\u3044","\u305B\u3093\u305B\u3044","\u305B\u3093\u305D\u3099","\u305B\u3093\u305F\u304F","\u305B\u3093\u3061\u3087\u3046","\u305B\u3093\u3066\u3044","\u305B\u3093\u3068\u3046","\u305B\u3093\u306C\u304D","\u305B\u3093\u306D\u3093","\u305B\u3093\u306F\u309A\u3044","\u305B\u3099\u3093\u3075\u3099","\u305B\u3099\u3093\u307B\u309A\u3046","\u305B\u3093\u3080","\u305B\u3093\u3081\u3093\u3057\u3099\u3087","\u305B\u3093\u3082\u3093","\u305B\u3093\u3084\u304F","\u305B\u3093\u3086\u3046","\u305B\u3093\u3088\u3046","\u305B\u3099\u3093\u3089","\u305B\u3099\u3093\u308A\u3083\u304F","\u305B\u3093\u308C\u3044","\u305B\u3093\u308D","\u305D\u3042\u304F","\u305D\u3044\u3068\u3051\u3099\u308B","\u305D\u3044\u306D","\u305D\u3046\u304B\u3099\u3093\u304D\u3087\u3046","\u305D\u3046\u304D","\u305D\u3046\u3053\u3099","\u305D\u3046\u3057\u3093","\u305D\u3046\u305F\u3099\u3093","\u305D\u3046\u306A\u3093","\u305D\u3046\u3072\u3099","\u305D\u3046\u3081\u3093","\u305D\u3046\u308A","\u305D\u3048\u3082\u306E","\u305D\u3048\u3093","\u305D\u304B\u3099\u3044","\u305D\u3051\u3099\u304D","\u305D\u3053\u3046","\u305D\u3053\u305D\u3053","\u305D\u3055\u3099\u3044","\u305D\u3057\u306A","\u305D\u305B\u3044","\u305D\u305B\u3093","\u305D\u305D\u304F\u3099","\u305D\u305F\u3099\u3066\u308B","\u305D\u3064\u3046","\u305D\u3064\u3048\u3093","\u305D\u3063\u304B\u3093","\u305D\u3064\u304D\u3099\u3087\u3046","\u305D\u3063\u3051\u3064","\u305D\u3063\u3053\u3046","\u305D\u3063\u305B\u3093","\u305D\u3063\u3068","\u305D\u3068\u304B\u3099\u308F","\u305D\u3068\u3064\u3099\u3089","\u305D\u306A\u3048\u308B","\u305D\u306A\u305F","\u305D\u3075\u307B\u3099","\u305D\u307B\u3099\u304F","\u305D\u307B\u3099\u308D","\u305D\u307E\u3064","\u305D\u307E\u308B","\u305D\u3080\u304F","\u305D\u3080\u308A\u3048","\u305D\u3081\u308B","\u305D\u3082\u305D\u3082","\u305D\u3088\u304B\u305B\u3099","\u305D\u3089\u307E\u3081","\u305D\u308D\u3046","\u305D\u3093\u304B\u3044","\u305D\u3093\u3051\u3044","\u305D\u3093\u3055\u3099\u3044","\u305D\u3093\u3057\u3064","\u305D\u3093\u305D\u3099\u304F","\u305D\u3093\u3061\u3087\u3046","\u305D\u3099\u3093\u3072\u3099","\u305D\u3099\u3093\u3075\u3099\u3093","\u305D\u3093\u307F\u3093","\u305F\u3042\u3044","\u305F\u3044\u3044\u3093","\u305F\u3044\u3046\u3093","\u305F\u3044\u3048\u304D","\u305F\u3044\u304A\u3046","\u305F\u3099\u3044\u304B\u3099\u304F","\u305F\u3044\u304D","\u305F\u3044\u304F\u3099\u3046","\u305F\u3044\u3051\u3093","\u305F\u3044\u3053","\u305F\u3044\u3055\u3099\u3044","\u305F\u3099\u3044\u3057\u3099\u3087\u3046\u3075\u3099","\u305F\u3099\u3044\u3059\u304D","\u305F\u3044\u305B\u3064","\u305F\u3044\u305D\u3046","\u305F\u3099\u3044\u305F\u3044","\u305F\u3044\u3061\u3087\u3046","\u305F\u3044\u3066\u3044","\u305F\u3099\u3044\u3068\u3099\u3053\u308D","\u305F\u3044\u306A\u3044","\u305F\u3044\u306D\u3064","\u305F\u3044\u306E\u3046","\u305F\u3044\u306F\u3093","\u305F\u3099\u3044\u3072\u3087\u3046","\u305F\u3044\u3075\u3046","\u305F\u3044\u3078\u3093","\u305F\u3044\u307B","\u305F\u3044\u307E\u3064\u306F\u3099\u306A","\u305F\u3044\u307F\u3093\u304F\u3099","\u305F\u3044\u3080","\u305F\u3044\u3081\u3093","\u305F\u3044\u3084\u304D","\u305F\u3044\u3088\u3046","\u305F\u3044\u3089","\u305F\u3044\u308A\u3087\u304F","\u305F\u3044\u308B","\u305F\u3044\u308F\u3093","\u305F\u3046\u3048","\u305F\u3048\u308B","\u305F\u304A\u3059","\u305F\u304A\u308B","\u305F\u304A\u308C\u308B","\u305F\u304B\u3044","\u305F\u304B\u306D","\u305F\u304D\u3072\u3099","\u305F\u304F\u3055\u3093","\u305F\u3053\u304F","\u305F\u3053\u3084\u304D","\u305F\u3055\u3044","\u305F\u3057\u3055\u3099\u3093","\u305F\u3099\u3057\u3099\u3083\u308C","\u305F\u3059\u3051\u308B","\u305F\u3059\u3099\u3055\u308F\u308B","\u305F\u305D\u304B\u3099\u308C","\u305F\u305F\u304B\u3046","\u305F\u305F\u304F","\u305F\u305F\u3099\u3057\u3044","\u305F\u305F\u307F","\u305F\u3061\u306F\u3099\u306A","\u305F\u3099\u3063\u304B\u3044","\u305F\u3099\u3063\u304D\u3083\u304F","\u305F\u3099\u3063\u3053","\u305F\u3099\u3063\u3057\u3085\u3064","\u305F\u3099\u3063\u305F\u3044","\u305F\u3066\u308B","\u305F\u3068\u3048\u308B","\u305F\u306A\u306F\u3099\u305F","\u305F\u306B\u3093","\u305F\u306C\u304D","\u305F\u306E\u3057\u307F","\u305F\u306F\u3064","\u305F\u3075\u3099\u3093","\u305F\u3078\u3099\u308B","\u305F\u307B\u3099\u3046","\u305F\u307E\u3053\u3099","\u305F\u307E\u308B","\u305F\u3099\u3080\u308B","\u305F\u3081\u3044\u304D","\u305F\u3081\u3059","\u305F\u3081\u308B","\u305F\u3082\u3064","\u305F\u3084\u3059\u3044","\u305F\u3088\u308B","\u305F\u3089\u3059","\u305F\u308A\u304D\u307B\u3093\u304B\u3099\u3093","\u305F\u308A\u3087\u3046","\u305F\u308A\u308B","\u305F\u308B\u3068","\u305F\u308C\u308B","\u305F\u308C\u3093\u3068","\u305F\u308D\u3063\u3068","\u305F\u308F\u3080\u308C\u308B","\u305F\u3099\u3093\u3042\u3064","\u305F\u3093\u3044","\u305F\u3093\u304A\u3093","\u305F\u3093\u304B","\u305F\u3093\u304D","\u305F\u3093\u3051\u3093","\u305F\u3093\u3053\u3099","\u305F\u3093\u3055\u3093","\u305F\u3093\u3057\u3099\u3087\u3046\u3072\u3099","\u305F\u3099\u3093\u305B\u3044","\u305F\u3093\u305D\u304F","\u305F\u3093\u305F\u3044","\u305F\u3099\u3093\u3061","\u305F\u3093\u3066\u3044","\u305F\u3093\u3068\u3046","\u305F\u3099\u3093\u306A","\u305F\u3093\u306B\u3093","\u305F\u3099\u3093\u306D\u3064","\u305F\u3093\u306E\u3046","\u305F\u3093\u3072\u309A\u3093","\u305F\u3099\u3093\u307B\u3099\u3046","\u305F\u3093\u307E\u3064","\u305F\u3093\u3081\u3044","\u305F\u3099\u3093\u308C\u3064","\u305F\u3099\u3093\u308D","\u305F\u3099\u3093\u308F","\u3061\u3042\u3044","\u3061\u3042\u3093","\u3061\u3044\u304D","\u3061\u3044\u3055\u3044","\u3061\u3048\u3093","\u3061\u304B\u3044","\u3061\u304B\u3089","\u3061\u304D\u3085\u3046","\u3061\u304D\u3093","\u3061\u3051\u3044\u3059\u3099","\u3061\u3051\u3093","\u3061\u3053\u304F","\u3061\u3055\u3044","\u3061\u3057\u304D","\u3061\u3057\u308A\u3087\u3046","\u3061\u305B\u3044","\u3061\u305D\u3046","\u3061\u305F\u3044","\u3061\u305F\u3093","\u3061\u3061\u304A\u3084","\u3061\u3064\u3057\u3099\u3087","\u3061\u3066\u304D","\u3061\u3066\u3093","\u3061\u306C\u304D","\u3061\u306C\u308A","\u3061\u306E\u3046","\u3061\u3072\u3087\u3046","\u3061\u3078\u3044\u305B\u3093","\u3061\u307B\u3046","\u3061\u307E\u305F","\u3061\u307F\u3064","\u3061\u307F\u3068\u3099\u308D","\u3061\u3081\u3044\u3068\u3099","\u3061\u3083\u3093\u3053\u306A\u3078\u3099","\u3061\u3085\u3046\u3044","\u3061\u3086\u308A\u3087\u304F","\u3061\u3087\u3046\u3057","\u3061\u3087\u3055\u304F\u3051\u3093","\u3061\u3089\u3057","\u3061\u3089\u307F","\u3061\u308A\u304B\u3099\u307F","\u3061\u308A\u3087\u3046","\u3061\u308B\u3068\u3099","\u3061\u308F\u308F","\u3061\u3093\u305F\u3044","\u3061\u3093\u3082\u304F","\u3064\u3044\u304B","\u3064\u3044\u305F\u3061","\u3064\u3046\u304B","\u3064\u3046\u3057\u3099\u3087\u3046","\u3064\u3046\u306F\u3093","\u3064\u3046\u308F","\u3064\u304B\u3046","\u3064\u304B\u308C\u308B","\u3064\u304F\u306D","\u3064\u304F\u308B","\u3064\u3051\u306D","\u3064\u3051\u308B","\u3064\u3053\u3099\u3046","\u3064\u305F\u3048\u308B","\u3064\u3064\u3099\u304F","\u3064\u3064\u3057\u3099","\u3064\u3064\u3080","\u3064\u3068\u3081\u308B","\u3064\u306A\u304B\u3099\u308B","\u3064\u306A\u307F","\u3064\u306D\u3064\u3099\u306D","\u3064\u306E\u308B","\u3064\u3075\u3099\u3059","\u3064\u307E\u3089\u306A\u3044","\u3064\u307E\u308B","\u3064\u307F\u304D","\u3064\u3081\u305F\u3044","\u3064\u3082\u308A","\u3064\u3082\u308B","\u3064\u3088\u3044","\u3064\u308B\u307B\u3099","\u3064\u308B\u307F\u304F","\u3064\u308F\u3082\u306E","\u3064\u308F\u308A","\u3066\u3042\u3057","\u3066\u3042\u3066","\u3066\u3042\u307F","\u3066\u3044\u304A\u3093","\u3066\u3044\u304B","\u3066\u3044\u304D","\u3066\u3044\u3051\u3044","\u3066\u3044\u3053\u304F","\u3066\u3044\u3055\u3064","\u3066\u3044\u3057","\u3066\u3044\u305B\u3044","\u3066\u3044\u305F\u3044","\u3066\u3044\u3068\u3099","\u3066\u3044\u306D\u3044","\u3066\u3044\u3072\u3087\u3046","\u3066\u3044\u3078\u3093","\u3066\u3044\u307B\u3099\u3046","\u3066\u3046\u3061","\u3066\u304A\u304F\u308C","\u3066\u304D\u3068\u3046","\u3066\u304F\u3072\u3099","\u3066\u3099\u3053\u307B\u3099\u3053","\u3066\u3055\u304D\u3099\u3087\u3046","\u3066\u3055\u3051\u3099","\u3066\u3059\u308A","\u3066\u305D\u3046","\u3066\u3061\u304B\u3099\u3044","\u3066\u3061\u3087\u3046","\u3066\u3064\u304B\u3099\u304F","\u3066\u3064\u3064\u3099\u304D","\u3066\u3099\u3063\u306F\u309A","\u3066\u3064\u307B\u3099\u3046","\u3066\u3064\u3084","\u3066\u3099\u306C\u304B\u3048","\u3066\u306C\u304D","\u3066\u306C\u304F\u3099\u3044","\u3066\u306E\u3072\u3089","\u3066\u306F\u3044","\u3066\u3075\u3099\u304F\u308D","\u3066\u3075\u305F\u3099","\u3066\u307B\u3068\u3099\u304D","\u3066\u307B\u3093","\u3066\u307E\u3048","\u3066\u307E\u304D\u3059\u3099\u3057","\u3066\u307F\u3057\u3099\u304B","\u3066\u307F\u3084\u3051\u3099","\u3066\u3089\u3059","\u3066\u308C\u3072\u3099","\u3066\u308F\u3051","\u3066\u308F\u305F\u3057","\u3066\u3099\u3093\u3042\u3064","\u3066\u3093\u3044\u3093","\u3066\u3093\u304B\u3044","\u3066\u3093\u304D","\u3066\u3093\u304F\u3099","\u3066\u3093\u3051\u3093","\u3066\u3093\u3053\u3099\u304F","\u3066\u3093\u3055\u3044","\u3066\u3093\u3057","\u3066\u3093\u3059\u3046","\u3066\u3099\u3093\u3061","\u3066\u3093\u3066\u304D","\u3066\u3093\u3068\u3046","\u3066\u3093\u306A\u3044","\u3066\u3093\u3075\u309A\u3089","\u3066\u3093\u307B\u3099\u3046\u305F\u3099\u3044","\u3066\u3093\u3081\u3064","\u3066\u3093\u3089\u3093\u304B\u3044","\u3066\u3099\u3093\u308A\u3087\u304F","\u3066\u3099\u3093\u308F","\u3068\u3099\u3042\u3044","\u3068\u3044\u308C","\u3068\u3099\u3046\u304B\u3093","\u3068\u3046\u304D\u3085\u3046","\u3068\u3099\u3046\u304F\u3099","\u3068\u3046\u3057","\u3068\u3046\u3080\u304D\u3099","\u3068\u304A\u3044","\u3068\u304A\u304B","\u3068\u304A\u304F","\u3068\u304A\u3059","\u3068\u304A\u308B","\u3068\u304B\u3044","\u3068\u304B\u3059","\u3068\u304D\u304A\u308A","\u3068\u304D\u3068\u3099\u304D","\u3068\u304F\u3044","\u3068\u304F\u3057\u3085\u3046","\u3068\u304F\u3066\u3093","\u3068\u304F\u306B","\u3068\u304F\u3078\u3099\u3064","\u3068\u3051\u3044","\u3068\u3051\u308B","\u3068\u3053\u3084","\u3068\u3055\u304B","\u3068\u3057\u3087\u304B\u3093","\u3068\u305D\u3046","\u3068\u305F\u3093","\u3068\u3061\u3085\u3046","\u3068\u3063\u304D\u3085\u3046","\u3068\u3063\u304F\u3093","\u3068\u3064\u305B\u3099\u3093","\u3068\u3064\u306B\u3085\u3046","\u3068\u3068\u3099\u3051\u308B","\u3068\u3068\u306E\u3048\u308B","\u3068\u306A\u3044","\u3068\u306A\u3048\u308B","\u3068\u306A\u308A","\u3068\u306E\u3055\u307E","\u3068\u306F\u3099\u3059","\u3068\u3099\u3075\u3099\u304B\u3099\u308F","\u3068\u307B\u3046","\u3068\u307E\u308B","\u3068\u3081\u308B","\u3068\u3082\u305F\u3099\u3061","\u3068\u3082\u308B","\u3068\u3099\u3088\u3046\u3072\u3099","\u3068\u3089\u3048\u308B","\u3068\u3093\u304B\u3064","\u3068\u3099\u3093\u3075\u3099\u308A","\u306A\u3044\u304B\u304F","\u306A\u3044\u3053\u3046","\u306A\u3044\u3057\u3087","\u306A\u3044\u3059","\u306A\u3044\u305B\u3093","\u306A\u3044\u305D\u3046","\u306A\u304A\u3059","\u306A\u304B\u3099\u3044","\u306A\u304F\u3059","\u306A\u3051\u3099\u308B","\u306A\u3053\u3046\u3068\u3099","\u306A\u3055\u3051","\u306A\u305F\u3066\u3099\u3053\u3053","\u306A\u3063\u3068\u3046","\u306A\u3064\u3084\u3059\u307F","\u306A\u306A\u304A\u3057","\u306A\u306B\u3053\u3099\u3068","\u306A\u306B\u3082\u306E","\u306A\u306B\u308F","\u306A\u306E\u304B","\u306A\u3075\u305F\u3099","\u306A\u307E\u3044\u304D","\u306A\u307E\u3048","\u306A\u307E\u307F","\u306A\u307F\u305F\u3099","\u306A\u3081\u3089\u304B","\u306A\u3081\u308B","\u306A\u3084\u3080","\u306A\u3089\u3046","\u306A\u3089\u3072\u3099","\u306A\u3089\u3075\u3099","\u306A\u308C\u308B","\u306A\u308F\u3068\u3072\u3099","\u306A\u308F\u306F\u3099\u308A","\u306B\u3042\u3046","\u306B\u3044\u304B\u3099\u305F","\u306B\u3046\u3051","\u306B\u304A\u3044","\u306B\u304B\u3044","\u306B\u304B\u3099\u3066","\u306B\u304D\u3072\u3099","\u306B\u304F\u3057\u307F","\u306B\u304F\u307E\u3093","\u306B\u3051\u3099\u308B","\u306B\u3055\u3093\u304B\u305F\u3093\u305D","\u306B\u3057\u304D","\u306B\u305B\u3082\u306E","\u306B\u3061\u3057\u3099\u3087\u3046","\u306B\u3061\u3088\u3046\u3072\u3099","\u306B\u3063\u304B","\u306B\u3063\u304D","\u306B\u3063\u3051\u3044","\u306B\u3063\u3053\u3046","\u306B\u3063\u3055\u3093","\u306B\u3063\u3057\u3087\u304F","\u306B\u3063\u3059\u3046","\u306B\u3063\u305B\u304D","\u306B\u3063\u3066\u3044","\u306B\u306A\u3046","\u306B\u307B\u3093","\u306B\u307E\u3081","\u306B\u3082\u3064","\u306B\u3084\u308A","\u306B\u3085\u3046\u3044\u3093","\u306B\u308A\u3093\u3057\u3083","\u306B\u308F\u3068\u308A","\u306B\u3093\u3044","\u306B\u3093\u304B","\u306B\u3093\u304D","\u306B\u3093\u3051\u3099\u3093","\u306B\u3093\u3057\u304D","\u306B\u3093\u3059\u3099\u3046","\u306B\u3093\u305D\u3046","\u306B\u3093\u305F\u3044","\u306B\u3093\u3061","\u306B\u3093\u3066\u3044","\u306B\u3093\u306B\u304F","\u306B\u3093\u3075\u309A","\u306B\u3093\u307E\u308A","\u306B\u3093\u3080","\u306B\u3093\u3081\u3044","\u306B\u3093\u3088\u3046","\u306C\u3044\u304F\u304D\u3099","\u306C\u304B\u3059","\u306C\u304F\u3099\u3044\u3068\u308B","\u306C\u304F\u3099\u3046","\u306C\u304F\u3082\u308A","\u306C\u3059\u3080","\u306C\u307E\u3048\u3072\u3099","\u306C\u3081\u308A","\u306C\u3089\u3059","\u306C\u3093\u3061\u3083\u304F","\u306D\u3042\u3051\u3099","\u306D\u3044\u304D","\u306D\u3044\u308B","\u306D\u3044\u308D","\u306D\u304F\u3099\u305B","\u306D\u304F\u305F\u3044","\u306D\u304F\u3089","\u306D\u3053\u305B\u3099","\u306D\u3053\u3080","\u306D\u3055\u3051\u3099","\u306D\u3059\u3053\u3099\u3059","\u306D\u305D\u3078\u3099\u308B","\u306D\u305F\u3099\u3093","\u306D\u3064\u3044","\u306D\u3063\u3057\u3093","\u306D\u3064\u305D\u3099\u3046","\u306D\u3063\u305F\u3044\u304D\u3099\u3087","\u306D\u3075\u3099\u305D\u304F","\u306D\u3075\u305F\u3099","\u306D\u307B\u3099\u3046","\u306D\u307B\u308A\u306F\u307B\u308A","\u306D\u307E\u304D","\u306D\u307E\u308F\u3057","\u306D\u307F\u307F","\u306D\u3080\u3044","\u306D\u3080\u305F\u3044","\u306D\u3082\u3068","\u306D\u3089\u3046","\u306D\u308F\u3055\u3099","\u306D\u3093\u3044\u308A","\u306D\u3093\u304A\u3057","\u306D\u3093\u304B\u3093","\u306D\u3093\u304D\u3093","\u306D\u3093\u304F\u3099","\u306D\u3093\u3055\u3099","\u306D\u3093\u3057","\u306D\u3093\u3061\u3083\u304F","\u306D\u3093\u3068\u3099","\u306D\u3093\u3072\u309A","\u306D\u3093\u3075\u3099\u3064","\u306D\u3093\u307E\u3064","\u306D\u3093\u308A\u3087\u3046","\u306D\u3093\u308C\u3044","\u306E\u3044\u3059\u3099","\u306E\u304A\u3064\u3099\u307E","\u306E\u304B\u3099\u3059","\u306E\u304D\u306A\u307F","\u306E\u3053\u304D\u3099\u308A","\u306E\u3053\u3059","\u306E\u3053\u308B","\u306E\u305B\u308B","\u306E\u305D\u3099\u304F","\u306E\u305D\u3099\u3080","\u306E\u305F\u307E\u3046","\u306E\u3061\u307B\u3068\u3099","\u306E\u3063\u304F","\u306E\u306F\u3099\u3059","\u306E\u306F\u3089","\u306E\u3078\u3099\u308B","\u306E\u307B\u3099\u308B","\u306E\u307F\u3082\u306E","\u306E\u3084\u307E","\u306E\u3089\u3044\u306C","\u306E\u3089\u306D\u3053","\u306E\u308A\u3082\u306E","\u306E\u308A\u3086\u304D","\u306E\u308C\u3093","\u306E\u3093\u304D","\u306F\u3099\u3042\u3044","\u306F\u3042\u304F","\u306F\u3099\u3042\u3055\u3093","\u306F\u3099\u3044\u304B","\u306F\u3099\u3044\u304F","\u306F\u3044\u3051\u3093","\u306F\u3044\u3053\u3099","\u306F\u3044\u3057\u3093","\u306F\u3044\u3059\u3044","\u306F\u3044\u305B\u3093","\u306F\u3044\u305D\u3046","\u306F\u3044\u3061","\u306F\u3099\u3044\u306F\u3099\u3044","\u306F\u3044\u308C\u3064","\u306F\u3048\u308B","\u306F\u304A\u308B","\u306F\u304B\u3044","\u306F\u3099\u304B\u308A","\u306F\u304B\u308B","\u306F\u304F\u3057\u3085","\u306F\u3051\u3093","\u306F\u3053\u3075\u3099","\u306F\u3055\u307F","\u306F\u3055\u3093","\u306F\u3057\u3053\u3099","\u306F\u3099\u3057\u3087","\u306F\u3057\u308B","\u306F\u305B\u308B","\u306F\u309A\u305D\u3053\u3093","\u306F\u305D\u3093","\u306F\u305F\u3093","\u306F\u3061\u307F\u3064","\u306F\u3064\u304A\u3093","\u306F\u3063\u304B\u304F","\u306F\u3064\u3099\u304D","\u306F\u3063\u304D\u308A","\u306F\u3063\u304F\u3064","\u306F\u3063\u3051\u3093","\u306F\u3063\u3053\u3046","\u306F\u3063\u3055\u3093","\u306F\u3063\u3057\u3093","\u306F\u3063\u305F\u3064","\u306F\u3063\u3061\u3085\u3046","\u306F\u3063\u3066\u3093","\u306F\u3063\u3072\u309A\u3087\u3046","\u306F\u3063\u307B\u309A\u3046","\u306F\u306A\u3059","\u306F\u306A\u3072\u3099","\u306F\u306B\u304B\u3080","\u306F\u3075\u3099\u3089\u3057","\u306F\u307F\u304B\u3099\u304D","\u306F\u3080\u304B\u3046","\u306F\u3081\u3064","\u306F\u3084\u3044","\u306F\u3084\u3057","\u306F\u3089\u3046","\u306F\u308D\u3046\u3043\u3093","\u306F\u308F\u3044","\u306F\u3093\u3044","\u306F\u3093\u3048\u3044","\u306F\u3093\u304A\u3093","\u306F\u3093\u304B\u304F","\u306F\u3093\u304D\u3087\u3046","\u306F\u3099\u3093\u304F\u3099\u307F","\u306F\u3093\u3053","\u306F\u3093\u3057\u3083","\u306F\u3093\u3059\u3046","\u306F\u3093\u305F\u3099\u3093","\u306F\u309A\u3093\u3061","\u306F\u309A\u3093\u3064","\u306F\u3093\u3066\u3044","\u306F\u3093\u3068\u3057","\u306F\u3093\u306E\u3046","\u306F\u3093\u306F\u309A","\u306F\u3093\u3075\u3099\u3093","\u306F\u3093\u3078\u309A\u3093","\u306F\u3093\u307B\u3099\u3046\u304D","\u306F\u3093\u3081\u3044","\u306F\u3093\u3089\u3093","\u306F\u3093\u308D\u3093","\u3072\u3044\u304D","\u3072\u3046\u3093","\u3072\u3048\u308B","\u3072\u304B\u304F","\u3072\u304B\u308A","\u3072\u304B\u308B","\u3072\u304B\u3093","\u3072\u304F\u3044","\u3072\u3051\u3064","\u3072\u3053\u3046\u304D","\u3072\u3053\u304F","\u3072\u3055\u3044","\u3072\u3055\u3057\u3075\u3099\u308A","\u3072\u3055\u3093","\u3072\u3099\u3057\u3099\u3085\u3064\u304B\u3093","\u3072\u3057\u3087","\u3072\u305D\u304B","\u3072\u305D\u3080","\u3072\u305F\u3080\u304D","\u3072\u305F\u3099\u308A","\u3072\u305F\u308B","\u3072\u3064\u304D\u3099","\u3072\u3063\u3053\u3057","\u3072\u3063\u3057","\u3072\u3064\u3057\u3099\u3085\u3072\u3093","\u3072\u3063\u3059","\u3072\u3064\u305B\u3099\u3093","\u3072\u309A\u3063\u305F\u308A","\u3072\u309A\u3063\u3061\u308A","\u3072\u3064\u3088\u3046","\u3072\u3066\u3044","\u3072\u3068\u3053\u3099\u307F","\u3072\u306A\u307E\u3064\u308A","\u3072\u306A\u3093","\u3072\u306D\u308B","\u3072\u306F\u3093","\u3072\u3072\u3099\u304F","\u3072\u3072\u3087\u3046","\u3072\u307B\u3046","\u3072\u307E\u308F\u308A","\u3072\u307E\u3093","\u3072\u307F\u3064","\u3072\u3081\u3044","\u3072\u3081\u3057\u3099\u3057","\u3072\u3084\u3051","\u3072\u3084\u3059","\u3072\u3088\u3046","\u3072\u3099\u3087\u3046\u304D","\u3072\u3089\u304B\u3099\u306A","\u3072\u3089\u304F","\u3072\u308A\u3064","\u3072\u308A\u3087\u3046","\u3072\u308B\u307E","\u3072\u308B\u3084\u3059\u307F","\u3072\u308C\u3044","\u3072\u308D\u3044","\u3072\u308D\u3046","\u3072\u308D\u304D","\u3072\u308D\u3086\u304D","\u3072\u3093\u304B\u304F","\u3072\u3093\u3051\u3064","\u3072\u3093\u3053\u3093","\u3072\u3093\u3057\u3085","\u3072\u3093\u305D\u3046","\u3072\u309A\u3093\u3061","\u3072\u3093\u306F\u309A\u3093","\u3072\u3099\u3093\u307B\u3099\u3046","\u3075\u3042\u3093","\u3075\u3044\u3046\u3061","\u3075\u3046\u3051\u3044","\u3075\u3046\u305B\u3093","\u3075\u309A\u3046\u305F\u308D\u3046","\u3075\u3046\u3068\u3046","\u3075\u3046\u3075","\u3075\u3048\u308B","\u3075\u304A\u3093","\u3075\u304B\u3044","\u3075\u304D\u3093","\u3075\u304F\u3055\u3099\u3064","\u3075\u304F\u3075\u3099\u304F\u308D","\u3075\u3053\u3046","\u3075\u3055\u3044","\u3075\u3057\u304D\u3099","\u3075\u3057\u3099\u307F","\u3075\u3059\u307E","\u3075\u305B\u3044","\u3075\u305B\u304F\u3099","\u3075\u305D\u304F","\u3075\u3099\u305F\u306B\u304F","\u3075\u305F\u3093","\u3075\u3061\u3087\u3046","\u3075\u3064\u3046","\u3075\u3064\u304B","\u3075\u3063\u304B\u3064","\u3075\u3063\u304D","\u3075\u3063\u3053\u304F","\u3075\u3099\u3068\u3099\u3046","\u3075\u3068\u308B","\u3075\u3068\u3093","\u3075\u306E\u3046","\u3075\u306F\u3044","\u3075\u3072\u3087\u3046","\u3075\u3078\u3093","\u3075\u307E\u3093","\u3075\u307F\u3093","\u3075\u3081\u3064","\u3075\u3081\u3093","\u3075\u3088\u3046","\u3075\u308A\u3053","\u3075\u308A\u308B","\u3075\u308B\u3044","\u3075\u3093\u3044\u304D","\u3075\u3099\u3093\u304B\u3099\u304F","\u3075\u3099\u3093\u304F\u3099","\u3075\u3093\u3057\u3064","\u3075\u3099\u3093\u305B\u304D","\u3075\u3093\u305D\u3046","\u3075\u3099\u3093\u307B\u309A\u3046","\u3078\u3044\u3042\u3093","\u3078\u3044\u304A\u3093","\u3078\u3044\u304B\u3099\u3044","\u3078\u3044\u304D","\u3078\u3044\u3051\u3099\u3093","\u3078\u3044\u3053\u3046","\u3078\u3044\u3055","\u3078\u3044\u3057\u3083","\u3078\u3044\u305B\u3064","\u3078\u3044\u305D","\u3078\u3044\u305F\u304F","\u3078\u3044\u3066\u3093","\u3078\u3044\u306D\u3064","\u3078\u3044\u308F","\u3078\u304D\u304B\u3099","\u3078\u3053\u3080","\u3078\u3099\u306B\u3044\u308D","\u3078\u3099\u306B\u3057\u3087\u3046\u304B\u3099","\u3078\u3089\u3059","\u3078\u3093\u304B\u3093","\u3078\u3099\u3093\u304D\u3087\u3046","\u3078\u3099\u3093\u3053\u3099\u3057","\u3078\u3093\u3055\u3044","\u3078\u3093\u305F\u3044","\u3078\u3099\u3093\u308A","\u307B\u3042\u3093","\u307B\u3044\u304F","\u307B\u3099\u3046\u304D\u3099\u3087","\u307B\u3046\u3053\u304F","\u307B\u3046\u305D\u3046","\u307B\u3046\u307B\u3046","\u307B\u3046\u3082\u3093","\u307B\u3046\u308A\u3064","\u307B\u3048\u308B","\u307B\u304A\u3093","\u307B\u304B\u3093","\u307B\u304D\u3087\u3046","\u307B\u3099\u304D\u3093","\u307B\u304F\u308D","\u307B\u3051\u3064","\u307B\u3051\u3093","\u307B\u3053\u3046","\u307B\u3053\u308B","\u307B\u3057\u3044","\u307B\u3057\u3064","\u307B\u3057\u3085","\u307B\u3057\u3087\u3046","\u307B\u305B\u3044","\u307B\u305D\u3044","\u307B\u305D\u304F","\u307B\u305F\u3066","\u307B\u305F\u308B","\u307B\u309A\u3061\u3075\u3099\u304F\u308D","\u307B\u3063\u304D\u3087\u304F","\u307B\u3063\u3055","\u307B\u3063\u305F\u3093","\u307B\u3068\u3093\u3068\u3099","\u307B\u3081\u308B","\u307B\u3093\u3044","\u307B\u3093\u304D","\u307B\u3093\u3051","\u307B\u3093\u3057\u3064","\u307B\u3093\u3084\u304F","\u307E\u3044\u306B\u3061","\u307E\u304B\u3044","\u307E\u304B\u305B\u308B","\u307E\u304B\u3099\u308B","\u307E\u3051\u308B","\u307E\u3053\u3068","\u307E\u3055\u3064","\u307E\u3057\u3099\u3081","\u307E\u3059\u304F","\u307E\u305B\u3099\u308B","\u307E\u3064\u308A","\u307E\u3068\u3081","\u307E\u306A\u3075\u3099","\u307E\u306C\u3051","\u307E\u306D\u304F","\u307E\u307B\u3046","\u307E\u3082\u308B","\u307E\u3086\u3051\u3099","\u307E\u3088\u3046","\u307E\u308D\u3084\u304B","\u307E\u308F\u3059","\u307E\u308F\u308A","\u307E\u308F\u308B","\u307E\u3093\u304B\u3099","\u307E\u3093\u304D\u3064","\u307E\u3093\u305D\u3099\u304F","\u307E\u3093\u306A\u304B","\u307F\u3044\u3089","\u307F\u3046\u3061","\u307F\u3048\u308B","\u307F\u304B\u3099\u304F","\u307F\u304B\u305F","\u307F\u304B\u3093","\u307F\u3051\u3093","\u307F\u3053\u3093","\u307F\u3057\u3099\u304B\u3044","\u307F\u3059\u3044","\u307F\u3059\u3048\u308B","\u307F\u305B\u308B","\u307F\u3063\u304B","\u307F\u3064\u304B\u308B","\u307F\u3064\u3051\u308B","\u307F\u3066\u3044","\u307F\u3068\u3081\u308B","\u307F\u306A\u3068","\u307F\u306A\u307F\u304B\u3055\u3044","\u307F\u306D\u3089\u308B","\u307F\u306E\u3046","\u307F\u306E\u304B\u3099\u3059","\u307F\u307B\u3093","\u307F\u3082\u3068","\u307F\u3084\u3051\u3099","\u307F\u3089\u3044","\u307F\u308A\u3087\u304F","\u307F\u308F\u304F","\u307F\u3093\u304B","\u307F\u3093\u305D\u3099\u304F","\u3080\u3044\u304B","\u3080\u3048\u304D","\u3080\u3048\u3093","\u3080\u304B\u3044","\u3080\u304B\u3046","\u3080\u304B\u3048","\u3080\u304B\u3057","\u3080\u304D\u3099\u3061\u3083","\u3080\u3051\u308B","\u3080\u3051\u3099\u3093","\u3080\u3055\u307B\u3099\u308B","\u3080\u3057\u3042\u3064\u3044","\u3080\u3057\u306F\u3099","\u3080\u3057\u3099\u3085\u3093","\u3080\u3057\u308D","\u3080\u3059\u3046","\u3080\u3059\u3053","\u3080\u3059\u3075\u3099","\u3080\u3059\u3081","\u3080\u305B\u308B","\u3080\u305B\u3093","\u3080\u3061\u3085\u3046","\u3080\u306A\u3057\u3044","\u3080\u306E\u3046","\u3080\u3084\u307F","\u3080\u3088\u3046","\u3080\u3089\u3055\u304D","\u3080\u308A\u3087\u3046","\u3080\u308D\u3093","\u3081\u3044\u3042\u3093","\u3081\u3044\u3046\u3093","\u3081\u3044\u3048\u3093","\u3081\u3044\u304B\u304F","\u3081\u3044\u304D\u3087\u304F","\u3081\u3044\u3055\u3044","\u3081\u3044\u3057","\u3081\u3044\u305D\u3046","\u3081\u3044\u3075\u3099\u3064","\u3081\u3044\u308C\u3044","\u3081\u3044\u308F\u304F","\u3081\u304F\u3099\u307E\u308C\u308B","\u3081\u3055\u3099\u3059","\u3081\u3057\u305F","\u3081\u3059\u3099\u3089\u3057\u3044","\u3081\u305F\u3099\u3064","\u3081\u307E\u3044","\u3081\u3084\u3059","\u3081\u3093\u304D\u3087","\u3081\u3093\u305B\u304D","\u3081\u3093\u3068\u3099\u3046","\u3082\u3046\u3057\u3042\u3051\u3099\u308B","\u3082\u3046\u3068\u3099\u3046\u3051\u3093","\u3082\u3048\u308B","\u3082\u304F\u3057","\u3082\u304F\u3066\u304D","\u3082\u304F\u3088\u3046\u3072\u3099","\u3082\u3061\u308D\u3093","\u3082\u3068\u3099\u308B","\u3082\u3089\u3046","\u3082\u3093\u304F","\u3082\u3093\u305F\u3099\u3044","\u3084\u304A\u3084","\u3084\u3051\u308B","\u3084\u3055\u3044","\u3084\u3055\u3057\u3044","\u3084\u3059\u3044","\u3084\u3059\u305F\u308D\u3046","\u3084\u3059\u307F","\u3084\u305B\u308B","\u3084\u305D\u3046","\u3084\u305F\u3044","\u3084\u3061\u3093","\u3084\u3063\u3068","\u3084\u3063\u306F\u309A\u308A","\u3084\u3075\u3099\u308B","\u3084\u3081\u308B","\u3084\u3084\u3053\u3057\u3044","\u3084\u3088\u3044","\u3084\u308F\u3089\u304B\u3044","\u3086\u3046\u304D","\u3086\u3046\u3072\u3099\u3093\u304D\u3087\u304F","\u3086\u3046\u3078\u3099","\u3086\u3046\u3081\u3044","\u3086\u3051\u3064","\u3086\u3057\u3085\u3064","\u3086\u305B\u3093","\u3086\u305D\u3046","\u3086\u305F\u304B","\u3086\u3061\u3083\u304F","\u3086\u3066\u3099\u308B","\u3086\u306B\u3085\u3046","\u3086\u3072\u3099\u308F","\u3086\u3089\u3044","\u3086\u308C\u308B","\u3088\u3046\u3044","\u3088\u3046\u304B","\u3088\u3046\u304D\u3085\u3046","\u3088\u3046\u3057\u3099","\u3088\u3046\u3059","\u3088\u3046\u3061\u3048\u3093","\u3088\u304B\u305B\u3099","\u3088\u304B\u3093","\u3088\u304D\u3093","\u3088\u304F\u305B\u3044","\u3088\u304F\u307B\u3099\u3046","\u3088\u3051\u3044","\u3088\u3053\u3099\u308C\u308B","\u3088\u3055\u3093","\u3088\u3057\u3085\u3046","\u3088\u305D\u3046","\u3088\u305D\u304F","\u3088\u3063\u304B","\u3088\u3066\u3044","\u3088\u3068\u3099\u304B\u3099\u308F\u304F","\u3088\u306D\u3064","\u3088\u3084\u304F","\u3088\u3086\u3046","\u3088\u308D\u3053\u3075\u3099","\u3088\u308D\u3057\u3044","\u3089\u3044\u3046","\u3089\u304F\u304B\u3099\u304D","\u3089\u304F\u3053\u3099","\u3089\u304F\u3055\u3064","\u3089\u304F\u305F\u3099","\u3089\u3057\u3093\u306F\u3099\u3093","\u3089\u305B\u3093","\u3089\u305D\u3099\u304F","\u3089\u305F\u3044","\u3089\u3063\u304B","\u3089\u308C\u3064","\u308A\u3048\u304D","\u308A\u304B\u3044","\u308A\u304D\u3055\u304F","\u308A\u304D\u305B\u3064","\u308A\u304F\u304F\u3099\u3093","\u308A\u304F\u3064","\u308A\u3051\u3093","\u308A\u3053\u3046","\u308A\u305B\u3044","\u308A\u305D\u3046","\u308A\u305D\u304F","\u308A\u3066\u3093","\u308A\u306D\u3093","\u308A\u3086\u3046","\u308A\u3085\u3046\u304B\u3099\u304F","\u308A\u3088\u3046","\u308A\u3087\u3046\u308A","\u308A\u3087\u304B\u3093","\u308A\u3087\u304F\u3061\u3083","\u308A\u3087\u3053\u3046","\u308A\u308A\u304F","\u308A\u308C\u304D","\u308A\u308D\u3093","\u308A\u3093\u3053\u3099","\u308B\u3044\u3051\u3044","\u308B\u3044\u3055\u3044","\u308B\u3044\u3057\u3099","\u308B\u3044\u305B\u304D","\u308B\u3059\u306F\u3099\u3093","\u308B\u308A\u304B\u3099\u308F\u3089","\u308C\u3044\u304B\u3093","\u308C\u3044\u304D\u3099","\u308C\u3044\u305B\u3044","\u308C\u3044\u305D\u3099\u3046\u3053","\u308C\u3044\u3068\u3046","\u308C\u3044\u307B\u3099\u3046","\u308C\u304D\u3057","\u308C\u304D\u305F\u3099\u3044","\u308C\u3093\u3042\u3044","\u308C\u3093\u3051\u3044","\u308C\u3093\u3053\u3093","\u308C\u3093\u3055\u3044","\u308C\u3093\u3057\u3085\u3046","\u308C\u3093\u305D\u3099\u304F","\u308C\u3093\u3089\u304F","\u308D\u3046\u304B","\u308D\u3046\u3053\u3099","\u308D\u3046\u3057\u3099\u3093","\u308D\u3046\u305D\u304F","\u308D\u304F\u304B\u3099","\u308D\u3053\u3064","\u308D\u3057\u3099\u3046\u3089","\u308D\u3057\u3085\u3064","\u308D\u305B\u3093","\u308D\u3066\u3093","\u308D\u3081\u3093","\u308D\u308C\u3064","\u308D\u3093\u304D\u3099","\u308D\u3093\u306F\u309A","\u308D\u3093\u3075\u3099\u3093","\u308D\u3093\u308A","\u308F\u304B\u3059","\u308F\u304B\u3081","\u308F\u304B\u3084\u307E","\u308F\u304B\u308C\u308B","\u308F\u3057\u3064","\u308F\u3057\u3099\u307E\u3057","\u308F\u3059\u308C\u3082\u306E","\u308F\u3089\u3046","\u308F\u308C\u308B"];ON.exports=V9});var TN=P((sue,AN)=>{"use strict";g();var G9=["a\u0301baco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","accio\u0301n","aceite","acelga","acento","aceptar","a\u0301cido","aclarar","acne\u0301","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","ae\u0301reo","afectar","aficio\u0301n","afinar","afirmar","a\u0301gil","agitar","agoni\u0301a","agosto","agotar","agregar","agrio","agua","agudo","a\u0301guila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacra\u0301n","alambre","alarma","alba","a\u0301lbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodo\u0301n","aliado","aliento","alivio","alma","almeja","almi\u0301bar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","a\u0301mbar","a\u0301mbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","ande\u0301n","anemia","a\u0301ngulo","anillo","a\u0301nimo","ani\u0301s","anotar","antena","antiguo","antojo","anual","anular","anuncio","an\u0303adir","an\u0303ejo","an\u0303o","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","aran\u0303a","arar","a\u0301rbitro","a\u0301rbol","arbusto","archivo","arco","arder","ardilla","arduo","a\u0301rea","a\u0301rido","aries","armoni\u0301a","arne\u0301s","aroma","arpa","arpo\u0301n","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","a\u0301spero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","a\u0301tico","atleta","a\u0301tomo","atraer","atroz","atu\u0301n","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avio\u0301n","aviso","ayer","ayuda","ayuno","azafra\u0301n","azar","azote","azu\u0301car","azufre","azul","baba","babor","bache","bahi\u0301a","baile","bajar","balanza","balco\u0301n","balde","bambu\u0301","banco","banda","ban\u0303o","barba","barco","barniz","barro","ba\u0301scula","basto\u0301n","basura","batalla","bateri\u0301a","batir","batuta","bau\u0301l","bazar","bebe\u0301","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsa\u0301i","borde","borrar","bosque","bote","boti\u0301n","bo\u0301veda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufo\u0301n","bu\u0301ho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzo\u0301n","caballo","cabeza","cabina","cabra","cacao","cada\u0301ver","cadena","caer","cafe\u0301","cai\u0301da","caima\u0301n","caja","cajo\u0301n","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","ca\u0301ncer","candil","canela","canguro","canica","canto","can\u0303a","can\u0303o\u0301n","caoba","caos","capaz","capita\u0301n","capote","captar","capucha","cara","carbo\u0301n","ca\u0301rcel","careta","carga","carin\u0303o","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","ce\u0301lebre","celoso","ce\u0301lula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","ce\u0301sped","cetro","chacal","chaleco","champu\u0301","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclo\u0301n","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","cipre\u0301s","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","cli\u0301nica","cobre","coccio\u0301n","cochino","cocina","coco","co\u0301digo","codo","cofre","coger","cohete","coji\u0301n","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","co\u0301modo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazo\u0301n","corbata","corcho","cordo\u0301n","corona","correr","coser","cosmos","costa","cra\u0301neo","cra\u0301ter","crear","crecer","crei\u0301do","crema","cri\u0301a","crimen","cripta","crisis","cromo","cro\u0301nica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupo\u0301n","cu\u0301pula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","da\u0301til","deber","de\u0301bil","de\u0301cada","decir","dedo","defensa","definir","dejar","delfi\u0301n","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvi\u0301o","detalle","detener","deuda","di\u0301a","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difi\u0301cil","digno","dilema","diluir","dinero","directo","dirigir","disco","disen\u0303o","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","drago\u0301n","droga","ducha","duda","duelo","duen\u0303o","dulce","du\u0301o","duque","durar","dureza","duro","e\u0301bano","ebrio","echar","eco","ecuador","edad","edicio\u0301n","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","e\u0301lite","elixir","elogio","eludir","embudo","emitir","emocio\u0301n","empate","empen\u0303o","empleo","empresa","enano","encargo","enchufe","enci\u0301a","enemigo","enero","enfado","enfermo","engan\u0303o","enigma","enlace","enorme","enredo","ensayo","ensen\u0303ar","entero","entrar","envase","envi\u0301o","e\u0301poca","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espi\u0301a","esposa","espuma","esqui\u0301","estar","este","estilo","estufa","etapa","eterno","e\u0301tica","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","e\u0301xito","experto","explicar","exponer","extremo","fa\u0301brica","fa\u0301bula","fachada","fa\u0301cil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","farao\u0301n","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fe\u0301rtil","fervor","festi\u0301n","fiable","fianza","fiar","fibra","ficcio\u0301n","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flu\u0301or","fobia","foca","fogata","fogo\u0301n","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","fra\u0301gil","franja","frase","fraude","frei\u0301r","freno","fresa","fri\u0301o","frito","fruta","fuego","fuente","fuerza","fuga","fumar","funcio\u0301n","funda","furgo\u0301n","furia","fusil","fu\u0301tbol","futuro","gacela","gafas","gaita","gajo","gala","galeri\u0301a","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavila\u0301n","gemelo","gemir","gen","ge\u0301nero","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gra\u0301fico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","gru\u0301a","grueso","grumo","grupo","guante","guapo","guardia","guerra","gui\u0301a","guin\u0303o","guion","guiso","guitarra","gusano","gustar","haber","ha\u0301bil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazan\u0303a","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","he\u0301roe","hervir","hielo","hierro","hi\u0301gado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","hu\u0301medo","humilde","humo","hundir","huraca\u0301n","hurto","icono","ideal","idioma","i\u0301dolo","iglesia","iglu\u0301","igual","ilegal","ilusio\u0301n","imagen","ima\u0301n","imitar","impar","imperio","imponer","impulso","incapaz","i\u0301ndice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","intere\u0301s","i\u0301ntimo","intuir","inu\u0301til","invierno","ira","iris","ironi\u0301a","isla","islote","jabali\u0301","jabo\u0301n","jamo\u0301n","jarabe","jardi\u0301n","jarra","jaula","jazmi\u0301n","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","ju\u0301piter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladro\u0301n","lagarto","la\u0301grima","laguna","laico","lamer","la\u0301mina","la\u0301mpara","lana","lancha","langosta","lanza","la\u0301piz","largo","larva","la\u0301stima","lata","la\u0301tex","latir","laurel","lavar","lazo","leal","leccio\u0301n","leche","lector","leer","legio\u0301n","legumbre","lejano","lengua","lento","len\u0303a","leo\u0301n","leopardo","lesio\u0301n","letal","letra","leve","leyenda","libertad","libro","licor","li\u0301der","lidiar","lienzo","liga","ligero","lima","li\u0301mite","limo\u0301n","limpio","lince","lindo","li\u0301nea","lingote","lino","linterna","li\u0301quido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","locio\u0301n","loco","locura","lo\u0301gica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","mai\u0301z","maldad","maleta","malla","malo","mama\u0301","mambo","mamut","manco","mando","manejar","manga","maniqui\u0301","manjar","mano","manso","manta","man\u0303ana","mapa","ma\u0301quina","mar","marco","marea","marfil","margen","marido","ma\u0301rmol","marro\u0301n","martes","marzo","masa","ma\u0301scara","masivo","matar","materia","matiz","matriz","ma\u0301ximo","mayor","mazorca","mecha","medalla","medio","me\u0301dula","mejilla","mejor","melena","melo\u0301n","memoria","menor","mensaje","mente","menu\u0301","mercado","merengue","me\u0301rito","mes","meso\u0301n","meta","meter","me\u0301todo","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millo\u0301n","mimo","mina","minero","mi\u0301nimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","mocio\u0301n","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","mon\u0303o","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","mo\u0301vil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","mun\u0303eca","mural","muro","mu\u0301sculo","museo","musgo","mu\u0301sica","muslo","na\u0301car","nacio\u0301n","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","na\u0301usea","naval","nave","navidad","necio","ne\u0301ctar","negar","negocio","negro","neo\u0301n","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","nin\u0303ez","nin\u0303o","ni\u0301tido","nivel","nobleza","noche","no\u0301mina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","nu\u0301cleo","nudillo","nudo","nuera","nueve","nuez","nulo","nu\u0301mero","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","oce\u0301ano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oi\u0301do","oi\u0301r","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opcio\u0301n","o\u0301pera","opinar","oponer","optar","o\u0301ptica","opuesto","oracio\u0301n","orador","oral","o\u0301rbita","orca","orden","oreja","o\u0301rgano","orgi\u0301a","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadi\u0301a","oscuro","osezno","oso","ostra","oton\u0303o","otro","oveja","o\u0301vulo","o\u0301xido","oxi\u0301geno","oyente","ozono","pacto","padre","paella","pa\u0301gina","pago","pai\u0301s","pa\u0301jaro","palabra","palco","paleta","pa\u0301lido","palma","paloma","palpar","pan","panal","pa\u0301nico","pantera","pan\u0303uelo","papa\u0301","papel","papilla","paquete","parar","parcela","pared","parir","paro","pa\u0301rpado","parque","pa\u0301rrafo","parte","pasar","paseo","pasio\u0301n","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peato\u0301n","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldan\u0303o","pelea","peligro","pellejo","pelo","peluca","pena","pensar","pen\u0303o\u0301n","peo\u0301n","peor","pepino","pequen\u0303o","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pe\u0301simo","pestan\u0303a","pe\u0301talo","petro\u0301leo","pez","pezun\u0303a","picar","picho\u0301n","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","pin\u0303a","piojo","pipa","pirata","pisar","piscina","piso","pista","pito\u0301n","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesi\u0301a","poeta","polen","polici\u0301a","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porcio\u0301n","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","pri\u0301ncipe","prisio\u0301n","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","pro\u0301ximo","prueba","pu\u0301blico","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmo\u0301n","pulpo","pulso","puma","punto","pun\u0303al","pun\u0303o","pupa","pupila","pure\u0301","quedar","queja","quemar","querer","queso","quieto","qui\u0301mica","quince","quitar","ra\u0301bano","rabia","rabo","racio\u0301n","radical","rai\u0301z","rama","rampa","rancho","rango","rapaz","ra\u0301pido","rapto","rasgo","raspa","rato","rayo","raza","razo\u0301n","reaccio\u0301n","realidad","reban\u0303o","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refra\u0301n","refugio","regalo","regir","regla","regreso","rehe\u0301n","reino","rei\u0301r","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","reve\u0301s","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","ri\u0301gido","rigor","rinco\u0301n","rin\u0303o\u0301n","ri\u0301o","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubi\u0301","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sa\u0301bado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmo\u0301n","salo\u0301n","salsa","salto","salud","salvar","samba","sancio\u0301n","sandi\u0301a","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sarte\u0301n","sastre","sata\u0301n","sauna","saxofo\u0301n","seccio\u0301n","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","sen\u0303al","sen\u0303or","separar","sepia","sequi\u0301a","ser","serie","sermo\u0301n","servir","sesenta","sesio\u0301n","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","si\u0301laba","silbar","silencio","silla","si\u0301mbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","so\u0301lido","soltar","solucio\u0301n","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","soste\u0301n","so\u0301tano","suave","subir","suceso","sudor","suegra","suelo","suen\u0303o","suerte","sufrir","sujeto","sulta\u0301n","sumar","superar","suplir","suponer","supremo","sur","surco","suren\u0303o","surgir","susto","sutil","tabaco","tabique","tabla","tabu\u0301","taco","tacto","tajo","talar","talco","talento","talla","talo\u0301n","taman\u0303o","tambor","tango","tanque","tapa","tapete","tapia","tapo\u0301n","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazo\u0301n","teatro","techo","tecla","te\u0301cnica","tejado","tejer","tejido","tela","tele\u0301fono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teori\u0301a","terapia","terco","te\u0301rmino","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburo\u0301n","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","ti\u0301mido","timo","tinta","ti\u0301o","ti\u0301pico","tipo","tira","tiro\u0301n","tita\u0301n","ti\u0301tere","ti\u0301tulo","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","to\u0301rax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","to\u0301xico","trabajo","tractor","traer","tra\u0301fico","trago","traje","tramo","trance","trato","trauma","trazar","tre\u0301bol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tuberi\u0301a","tubo","tuerto","tumba","tumor","tu\u0301nel","tu\u0301nica","turbina","turismo","turno","tutor","ubicar","u\u0301lcera","umbral","unidad","unir","universo","uno","untar","un\u0303a","urbano","urbe","urgente","urna","usar","usuario","u\u0301til","utopi\u0301a","uva","vaca","vaci\u0301o","vacuna","vagar","vago","vaina","vajilla","vale","va\u0301lido","valle","valor","va\u0301lvula","vampiro","vara","variar","varo\u0301n","vaso","vecino","vector","vehi\u0301culo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vi\u0301a","viaje","vibrar","vicio","vi\u0301ctima","vida","vi\u0301deo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","vin\u0303edo","violi\u0301n","viral","virgo","virtud","visor","vi\u0301spera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volca\u0301n","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"];AN.exports=G9});var RN=P((cue,PN)=>{g();PN.exports={CHINESE:yN(),ENGLISH:_N(),FRENCH:SN(),ITALIAN:xN(),JAPANESE:IN(),SPANISH:TN()}});var S_=P((lue,kN)=>{"use strict";g();kN.exports="9.10.0"});var NN=P((E_,BN)=>{g();(function(e,t){"use strict";typeof define=="function"&&define.amd?define([],function(){return e.secrets=t()}):typeof E_=="object"?BN.exports=t(Kt()):e.secrets=t(e.crypto)})(E_,function(e){"use strict";var t,r,i,n,o;function a(){t={bits:8,radix:16,minBits:3,maxBits:20,bytesPerChar:2,maxBytesPerChar:6,primitivePolynomials:[null,null,1,3,3,5,3,3,29,17,9,5,83,27,43,3,45,9,39,39,9,5,3,33,27,9,71,39,9,5,83]},r={},i=new Array(1024).join("0"),n=!0,o=["nodeCryptoRandomBytes","browserCryptoGetRandomValues","testRandom"]}function s(){return!!(r&&r.rng&&typeof r.rng=="function")}function u(I,k){var D;if(k===0||k===1)return I;if(k&&k>1024)throw new Error("Padding must be multiples of no larger than 1024 bits.");return k=k||r.bits,I&&(D=I.length%k),D?(i+I).slice(-(k-D+I.length)):I}function c(I){var k="",D,j;for(j=I.length-1;j>=0;j--){if(D=parseInt(I[j],16),isNaN(D))throw new Error("Invalid hex character.");k=u(D.toString(2),4)+k}return k}function l(I){var k="",D,j;for(I=u(I,4),j=I.length;j>=4;j-=4){if(D=parseInt(I.slice(j-4,j),2),isNaN(D))throw new Error("Invalid binary character.");k=D.toString(16)+k}return k}function d(){return!!(e&&typeof e=="object"&&(typeof e.getRandomValues=="function"||typeof e.getRandomValues=="object")&&(typeof Uint32Array=="function"||typeof Uint32Array=="object"))}function p(){return typeof e=="object"&&typeof e.randomBytes=="function"}function y(I){function k(G,S,h,v){var w=0,E,A="",L;for(S&&(E=S.length-1);w<E||A.length<G;)L=Math.abs(parseInt(S[w],h)),A=A+u(L.toString(2),v),w++;return A=A.substr(-G),(A.match(/0/g)||[]).length===A.length?null:A}function D(G){var S,h,v,w,E=null;for(v=16,w=4,h=Math.ceil(G/8);E===null;)S=e.randomBytes(h),E=k(G,S.toString("hex"),v,w);return E}function j(G){var S,h,v,w=null;for(h=10,v=32,S=Math.ceil(G/32);w===null;)w=k(G,e.getRandomValues(new Uint32Array(S)),h,v);return w}function K(G){var S,h,v,w,E,A=null;w=10,E=32,h=Math.ceil(G/32),v=123456789,S=new Uint32Array(h);for(var L=0;L<S.length;L++)S[L]=v;for(;A===null;)A=k(G,S,w,E);return A}if(I&&I==="testRandom")return r.typeCSPRNG=I,K;if(I&&I==="nodeCryptoRandomBytes")return r.typeCSPRNG=I,D;if(I&&I==="browserCryptoGetRandomValues")return r.typeCSPRNG=I,j;if(p())return r.typeCSPRNG="nodeCryptoRandomBytes",D;if(d())return r.typeCSPRNG="browserCryptoGetRandomValues",j}function _(I,k){var D=[],j;for(k&&(I=u(I,k)),j=I.length;j>r.bits;j-=r.bits)D.push(parseInt(I.slice(j-r.bits,j),2));return D.push(parseInt(I.slice(0,j),2)),D}function T(I,k){var D=r.logs[I],j=0,K;for(K=k.length-1;K>=0;K--)j!==0?j=r.exps[(D+r.logs[j])%r.maxShares]^k[K]:j=k[K];return j}function R(I,k,D){var j=0,K,G,S,h;for(S=0,K=k.length;S<K;S++)if(D[S]){for(G=r.logs[D[S]],h=0;h<K;h++)if(S!==h){if(I===k[h]){G=-1;break}G=(G+r.logs[I^k[h]]-r.logs[k[S]^k[h]]+r.maxShares)%r.maxShares}j=G===-1?j:j^r.exps[G]}return j}function B(I,k,D){var j=[],K=[I],G,S;for(G=1;G<D;G++)K[G]=parseInt(r.rng(r.bits),2);for(G=1,S=k+1;G<S;G++)j[G-1]={x:G,y:T(G,K)};return j}function H(I,k,D){var j,K,G,S,h;if(k=parseInt(k,r.radix),I=parseInt(I,10)||r.bits,j=I.toString(36).toUpperCase(),G=Math.pow(2,I)-1,S=G.toString(r.radix).length,K=u(k.toString(r.radix),S),typeof k!="number"||k%1!==0||k<1||k>G)throw new Error("Share id must be an integer between 1 and "+G+", inclusive.");return h=j+K+D,h}var F={init:function(I,k){var D=[],j=[],K=1,G,S;if(a(),I&&(typeof I!="number"||I%1!==0||I<t.minBits||I>t.maxBits))throw new Error("Number of bits must be an integer between "+t.minBits+" and "+t.maxBits+", inclusive.");if(k&&o.indexOf(k)===-1)throw new Error("Invalid RNG type argument : '"+k+"'");for(r.radix=t.radix,r.bits=I||t.bits,r.size=Math.pow(2,r.bits),r.maxShares=r.size-1,G=t.primitivePolynomials[r.bits],S=0;S<r.size;S++)j[S]=K,D[K]=S,K=K<<1,K>=r.size&&(K=K^G,K=K&r.maxShares);if(r.logs=D,r.exps=j,k&&this.setRNG(k),s()||this.setRNG(),!s()||!r.bits||!r.size||!r.maxShares||!r.logs||!r.exps||r.logs.length!==r.size||r.exps.length!==r.size)throw new Error("Initialization failed.")},combine:function(I,k){var D,j,K,G,S="",h,v,w,E=[],A=[];for(k=k||0,D=0,K=I.length;D<K;D++){if(v=this.extractShareComponents(I[D]),h===void 0)h=v.bits;else if(v.bits!==h)throw new Error("Mismatched shares: Different bit settings.");if(r.bits!==h&&this.init(h),E.indexOf(v.id)===-1)for(E.push(v.id),w=_(c(v.data)),j=0,G=w.length;j<G;j++)A[j]=A[j]||[],A[j][E.length-1]=w[j]}for(D=0,K=A.length;D<K;D++)S=u(R(k,E,A[D]).toString(2))+S;return l(k>=1?S:S.slice(S.indexOf("1")+1))},getConfig:function(){var I={};return I.radix=r.radix,I.bits=r.bits,I.maxShares=r.maxShares,I.hasCSPRNG=s(),I.typeCSPRNG=r.typeCSPRNG,I},extractShareComponents:function(I){var k,D,j,K,G={},S,h;if(k=parseInt(I.substr(0,1),36),k&&(typeof k!="number"||k%1!==0||k<t.minBits||k>t.maxBits))throw new Error("Invalid share : Number of bits must be an integer between "+t.minBits+" and "+t.maxBits+", inclusive.");if(K=Math.pow(2,k)-1,j=(Math.pow(2,k)-1).toString(r.radix).length,S="^([a-kA-K3-9]{1})([a-fA-F0-9]{"+j+"})([a-fA-F0-9]+)$",h=new RegExp(S).exec(I),h&&(D=parseInt(h[2],r.radix)),typeof D!="number"||D%1!==0||D<1||D>K)throw new Error("Invalid share : Share id must be an integer between 1 and "+r.maxShares+", inclusive.");if(h&&h[3])return G.bits=k,G.id=D,G.data=h[3],G;throw new Error("The share data provided is invalid : "+I)},setRNG:function(I){var k="Random number generator is invalid ",D=" Supply an CSPRNG of the form function(bits){} that returns a string containing 'bits' number of random 1's and 0's.";if(I&&typeof I=="string"&&o.indexOf(I)===-1)throw new Error("Invalid RNG type argument : '"+I+"'");if(I||(I=y()),I&&typeof I=="string"&&(I=y(I)),n){if(I&&typeof I!="function")throw new Error(k+"(Not a function)."+D);if(I&&typeof I(r.bits)!="string")throw new Error(k+"(Output is not a string)."+D);if(I&&!parseInt(I(r.bits),2))throw new Error(k+"(Binary string output not parseable to an Integer)."+D);if(I&&I(r.bits).length>r.bits)throw new Error(k+"(Output length is greater than config.bits)."+D);if(I&&I(r.bits).length<r.bits)throw new Error(k+"(Output length is less than config.bits)."+D)}return r.rng=I,!0},str2hex:function(I,k){var D,j,K="",G,S,h,v;if(typeof I!="string")throw new Error("Input must be a character string.");if(k||(k=t.bytesPerChar),typeof k!="number"||k<1||k>t.maxBytesPerChar||k%1!==0)throw new Error("Bytes per character must be an integer between 1 and "+t.maxBytesPerChar+", inclusive.");for(D=2*k,j=Math.pow(16,D)-1,h=0,v=I.length;h<v;h++){if(S=I[h].charCodeAt(),isNaN(S))throw new Error("Invalid character: "+I[h]);if(S>j)throw G=Math.ceil(Math.log(S+1)/Math.log(256)),new Error("Invalid character code ("+S+"). Maximum allowable is 256^bytes-1 ("+j+"). To convert this character, use at least "+G+" bytes.");K=u(S.toString(16),D)+K}return K},hex2str:function(I,k){var D,j="",K,G;if(typeof I!="string")throw new Error("Input must be a hexadecimal string.");if(k=k||t.bytesPerChar,typeof k!="number"||k%1!==0||k<1||k>t.maxBytesPerChar)throw new Error("Bytes per character must be an integer between 1 and "+t.maxBytesPerChar+", inclusive.");for(D=2*k,I=u(I,D),K=0,G=I.length;K<G;K+=D)j=String.fromCharCode(parseInt(I.slice(K,K+D),16))+j;return j},random:function(I){if(typeof I!="number"||I%1!==0||I<2||I>65536)throw new Error("Number of bits must be an Integer between 1 and 65536.");return l(r.rng(I))},share:function(I,k,D,j){var K,G,S=new Array(k),h=new Array(k),v,w,E;if(j=j||128,typeof I!="string")throw new Error("Secret must be a string.");if(typeof k!="number"||k%1!==0||k<2)throw new Error("Number of shares must be an integer between 2 and 2^bits-1 ("+r.maxShares+"), inclusive.");if(k>r.maxShares)throw K=Math.ceil(Math.log(k+1)/Math.LN2),new Error("Number of shares must be an integer between 2 and 2^bits-1 ("+r.maxShares+"), inclusive. To create "+k+" shares, use at least "+K+" bits.");if(typeof D!="number"||D%1!==0||D<2)throw new Error("Threshold number of shares must be an integer between 2 and 2^bits-1 ("+r.maxShares+"), inclusive.");if(D>r.maxShares)throw K=Math.ceil(Math.log(D+1)/Math.LN2),new Error("Threshold number of shares must be an integer between 2 and 2^bits-1 ("+r.maxShares+"), inclusive. To use a threshold of "+D+", use at least "+K+" bits.");if(D>k)throw new Error("Threshold number of shares was "+D+" but must be less than or equal to the "+k+" shares specified as the total to generate.");if(typeof j!="number"||j%1!==0||j<0||j>1024)throw new Error("Zero-pad length must be an integer between 0 and 1024 inclusive.");for(I="1"+c(I),I=_(I,j),v=0,E=I.length;v<E;v++)for(G=B(I[v],k,D),w=0;w<k;w++)S[w]=S[w]||G[w].x.toString(r.radix),h[w]=u(G[w].y.toString(2))+(h[w]||"");for(v=0;v<k;v++)S[v]=H(r.bits,S[v],l(h[v]));return S},newShare:function(I,k){var D,j;if(I&&typeof I=="string"&&(I=parseInt(I,r.radix)),j=I.toString(r.radix),I&&j&&k&&k[0])return D=this.extractShareComponents(k[0]),H(D.bits,j,this.combine(k,I));throw new Error("Invalid 'id' or 'shares' Array argument to newShare().")},_reset:a,_padLeft:u,_hex2bin:c,_bin2hex:l,_hasCryptoGetRandomValues:d,_hasCryptoRandomBytes:p,_getRNG:y,_isSetRNG:s,_splitNumStringToIntArray:_,_horner:T,_lagrange:R,_getShares:B,_constructPublicShareString:H};return F.init(),F})});var O_=P((pue,DN)=>{"use strict";g();var hi=Ze(),CN=Ui(),LN=Be(),im=null;function x_(){if(im)return im;var e=NN();return e.setRNG(function(t){for(var r=64,i=0;i<r;i++){for(var n=CN.getRandomBuffer(Math.ceil(t/8)),o="",a=0;a<n.length;a++)o+=("00000000"+n[a].toString(2)).slice(-8);if(o=o.slice(0,t),/1/.test(o))return o}throw new Error("shamir: CSPRNG returned all-zero draws "+r+" times in a row \u2014 refusing to hang on a degenerate/stubbed random source")}),im=e,im}var nm="ff",MN=2;function Tr(e){return this instanceof Tr?(this.options=e||{},this):new Tr(e)}Tr.split=function(e,t,r,i){if(i=i||{},e==null)throw new Error("Secret is required");if(t<2)throw new Error("Threshold must be at least 2");if(r<t)throw new Error("Number of shares must be at least threshold");if(t>255||r>255)throw new Error("Threshold and shares must be <= 255");for(var n=f.Buffer.isBuffer(e)?e:f.Buffer.from(e,"utf8"),o=nm+n.toString("hex"),a=x_().share(o,r,t),s=CN.getRandomBuffer(8).toString("hex"),u=i.checksum===!0,c=u?LN.sha256(n).slice(0,4).toString("hex"):null,l=[],d=0;d<a.length;d++)l.push({v:MN,id:d+1,threshold:t,shares:r,length:n.length,splitId:s,share:a[d],checksum:c});return l};Tr.combine=function(e){if(!e||e.length===0)throw new Error("Shares array is required");if(e[0]&&Array.isArray(e[0].bytes)&&e[0].share===void 0)return Tr._combineLegacy(e);var t=e[0].threshold,r=e[0].splitId;if(e.length<t)throw new Error("Insufficient shares: need "+t+", got "+e.length);for(var i=[],n=0;n<e.length;n++){var o=e[n];if(!o||typeof o.share!="string")throw new Error("Invalid share at index "+n);if(r!==void 0&&o.splitId!==r)throw new Error("Shares are from different splits (splitId mismatch)");if(o.threshold!==t)throw new Error("Shares have inconsistent threshold");i.push(o.share)}var a=x_().combine(i);if(a.slice(0,nm.length)!==nm)throw new Error("Reconstruction failed: invalid or insufficient shares");var s=f.Buffer.from(a.slice(nm.length),"hex"),u=e[0].checksum;if(u){var c=LN.sha256(s).slice(0,4).toString("hex");if(c!==u)throw new Error("Integrity check failed: shares are inconsistent or tampered")}return s};Tr.verifyShare=function(e){try{return!e||typeof e!="object"?!1:Array.isArray(e.bytes)&&e.share===void 0?Tr._verifyLegacyShare(e):e.v!==MN||typeof e.share!="string"||!/^[0-9a-fA-F]+$/.test(e.share)||typeof e.threshold!="number"||typeof e.shares!="number"||e.threshold<2||e.shares<e.threshold||e.shares>255||e.id<1||e.id>e.shares||e.checksum!==null&&e.checksum!==void 0&&!/^[0-9a-fA-F]{8}$/.test(e.checksum)?!1:(x_().extractShareComponents(e.share),!0)}catch{return!1}};Tr.generateTestVectors=function(){var e="Hello, Bitcoin SV!",t=3,r=5,i=Tr.split(e,t,r),n=Tr.combine(i.slice(0,t));return{secret:e,threshold:t,totalShares:r,shares:i,reconstructed:n.toString("utf8"),valid:n.toString("utf8")===e}};var es=new hi(2147483647);Tr._combineLegacy=function(e){var t=e[0].threshold,r=e[0].shares,i=e[0].length;if(e.length<t)throw new Error("Insufficient shares: need "+t+", got "+e.length);for(var n=0;n<e.length;n++){if(e[n].threshold!==t||e[n].shares!==r)throw new Error("Shares have inconsistent parameters");if(e[n].length!==i)throw new Error("Shares have different secret lengths")}for(var o=[],a=0;a<i;a++){for(var s=[],u=0;u<Math.min(e.length,t);u++)s.push(e[u].bytes[a]);o.push(Tr._combineByteLegacy(s))}return f.Buffer.from(o)};Tr._combineByteLegacy=function(e){for(var t=new hi(0),r=0;r<e.length;r++){for(var i=new hi(e[r].x),n=new hi(e[r].y,16),o=new hi(1),a=new hi(1),s=0;s<e.length;s++)if(r!==s){var u=new hi(e[s].x),c=new hi(0).sub(u);c.lt(new hi(0))&&(c=c.add(es)),o=o.mul(c).mod(es);var l=i.sub(u);l.lt(new hi(0))&&(l=l.add(es)),a=a.mul(l).mod(es)}var d=Tr._modInverseLegacy(a,es),p=o.mul(d).mod(es);t=t.add(n.mul(p)).mod(es)}return t.mod(es).mod(new hi(256)).toNumber()};Tr._modInverseLegacy=function(e,t){e.lt(new hi(0))&&(e=e.mod(t).add(t));var r=Tr._extendedGCDLegacy(e,t);if(!r.gcd.eq(new hi(1)))throw new Error("Modular inverse does not exist");return r.x.mod(t).add(t).mod(t)};Tr._extendedGCDLegacy=function(e,t){if(e.eq(new hi(0)))return{gcd:t,x:new hi(0),y:new hi(1)};var r=Tr._extendedGCDLegacy(t.mod(e),e);return{gcd:r.gcd,x:r.y.sub(t.div(e).mul(r.x)),y:r.x}};Tr._verifyLegacyShare=function(e){if(!e.id||!e.threshold||!e.shares||!e.bytes||typeof e.length!="number"||e.threshold<2||e.shares<e.threshold||!Array.isArray(e.bytes)||e.bytes.length!==e.length)return!1;for(var t=0;t<e.bytes.length;t++){var r=e.bytes[t];if(!r||!r.x||!r.y||r.x<1||r.x>e.shares||!/^[0-9a-fA-F]+$/.test(r.y))return!1}return!0};DN.exports=Tr});var am=P((mue,qN)=>{"use strict";g();var ho=Ze(),W9=nn(),Y9=fn(),ch=W9.getN(),om=ch.shrn(1);function Z9(e,t,r){if(!f.Buffer.isBuffer(e)||e.length!==32)throw new Error("Invalid message hash: must be 32-byte buffer");if(!t)return!1;let i=t;if(f.Buffer.isBuffer(t))try{i=ut().fromDER(t)}catch{return!1}if(!i||!i.r||!i.s)return!1;let n=ho.isBN(i.r)?i.r:new ho(i.r),o=ho.isBN(i.s)?i.s:new ho(i.s);if(n.isZero()||o.isZero()||n.gte(ch)||o.gte(ch)||o.gt(om))return!1;let a=ut(),s=new a({r:n,s:o});return Y9.verify(e,s,r)}function $9(e){if(!e)return!1;let t=e;if(f.Buffer.isBuffer(e))try{t=ut().fromDER(e)}catch{return!1}return!t||!t.s?!1:(ho.isBN(t.s)?t.s:new ho(t.s)).lte(om)}function X9(e){if(!e||!e.r||!e.s)throw new Error("Invalid signature object");let t=ho.isBN(e.r)?e.r:new ho(e.r),r=ho.isBN(e.s)?e.s:new ho(e.s),i=r;return r.gt(om)&&(i=ch.sub(r)),{r:t,s:i}}qN.exports={smartVerify:Z9,isCanonical:$9,canonicalize:X9,constants:{n:ch,nh:om}}});var sm=P((yue,FN)=>{"use strict";g();var J9=Ze(),{secp256k1:Lc}=(Il(),$i(Ol)),HN=Lc.Point,Q9=HN.Fn.ORDER;function I_(e){var t=e.toString(16);return t.length%2&&(t="0"+t),new J9(t,16)}function A_(e){return f.Buffer.isBuffer(e)?Uint8Array.from(e):e instanceof Uint8Array?e:Uint8Array.from(f.Buffer.from(e,"hex"))}function T_(e){this._p=e}T_.prototype.eq=function(e){var t=e&&e._p?e._p:e;return this._p.equals(t)};var UN={curve:{n:I_(Q9)},keyFromPrivate:function(e,t){var r;f.Buffer.isBuffer(e)?r=e:e instanceof Uint8Array?r=f.Buffer.from(e):r=f.Buffer.from(e,t||"hex");var i=Uint8Array.from(r);return{_priv:i,getPublic:function(){return new T_(HN.fromBytes(Lc.getPublicKey(i,!0)))}}},sign:function(e,t){var r=Lc.sign(A_(e),t._priv,{lowS:!0,prehash:!1,format:"recovered"}),i=r[0],n=I_(BigInt("0x"+f.Buffer.from(r.subarray(1,33)).toString("hex"))),o=I_(BigInt("0x"+f.Buffer.from(r.subarray(33,65)).toString("hex")));return{r:n,s:o,recoveryParam:i}},verify:function(e,t,r){try{if(!t||typeof t!="object")return!1;var i=t.r,n=t.s;if(!i||!n||typeof i.cmp!="function"||typeof n.cmp!="function"||i.isZero()||n.isZero())return!1;var o=UN.curve.n;if(i.cmp(o)>=0||n.cmp(o)>=0)return!1;var a=f.Buffer.concat([i.toBuffer({size:32}),n.toBuffer({size:32})]),s=r._priv?Lc.getPublicKey(r._priv,!0):r._p?r._p.toBytes(!0):r;return Lc.verify(Uint8Array.from(a),A_(e),Uint8Array.from(s),{lowS:!1,prehash:!1})}catch{return!1}},recoverPubKey:function(e,t,r){var i=f.Buffer.concat([t.r.toBuffer({size:32}),t.s.toBuffer({size:32})]),n=Lc.Signature.fromBytes(Uint8Array.from(i),"compact").addRecoveryBit(r);return new T_(n.recoverPublicKey(A_(e)))}};FN.exports=UN});var Mc=P((_ue,zN)=>{"use strict";g();var P_=Object.create(null),R_=[],k_=!(typeof b.default<"u"&&b.default.env&&b.default.env.BSV_NO_DEPRECATION_WARNINGS==="1");function jN(e,t){if(!e||typeof e.what!="string"||e.what==="")throw new TypeError(t+"() requires { what: string }")}function eW(e){var t="[@smartledger/bsv] "+e.what+" is deprecated";return e.since&&(t+=" since "+e.since),t+=".",e.why&&(t+=" "+e.why.charAt(0).toUpperCase()+e.why.slice(1)+"."),e.use&&(t+=" Use "+e.use+" instead."),t+=e.removeIn?" It will be removed in "+e.removeIn+".":" A removal version has not been set; it will not be removed in a 9.x release.",t}function ua(e){if(!e||!e.what)throw new TypeError("deprecate() requires { what }");if(P_[e.what])return!1;P_[e.what]=!0;var t=eW(e);return R_.push({what:e.what,since:e.since||null,removeIn:e.removeIn||null,use:e.use||null,message:t}),k_&&console.warn(t),!0}ua.fn=function(e,t){if(typeof e!="function")throw new TypeError("deprecate.fn() requires a function");jN(t,"deprecate.fn");var r=function(){return ua(t),e.apply(this,arguments)};return Object.defineProperty(r,"name",{value:e.name,configurable:!0}),Object.defineProperty(r,"length",{value:e.length,configurable:!0}),r.__wrapped=e,r.__deprecation=t,r};ua.property=function(e,t,r,i){jN(i,"deprecate.property");var n,o=!1;return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return ua(i),o||(n=r(),o=!0),n}}),e};ua.fired=function(){return R_.slice()};ua.setEnabled=function(e){k_=!!e};ua.isEnabled=function(){return k_};ua.reset=function(){P_=Object.create(null),R_.length=0};zN.exports=ua});var iu=P((Sue,GN)=>{"use strict";g();var um=Qe(),fh=Ze(),cm=oo(),tW=sn(),rW=Be(),KN=Oe(),iW=486604799,Xe=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.version=r.version,this.prevHash=r.prevHash,this.merkleRoot=r.merkleRoot,this.time=r.time,this.timestamp=r.time,this.bits=r.bits,this.nonce=r.nonce,r.hash&&KN.checkState(this.hash===r.hash,"Argument object hash property does not match block hash."),this};Xe._from=function(t){var r={};if(f.Buffer.isBuffer(t))r=Xe._fromBufferReader(cm(t));else if(um.isObject(t))r=Xe._fromObject(t);else throw new TypeError("Unrecognized argument for BlockHeader");return r};Xe._fromObject=function(t){KN.checkArgument(t,"data is required");var r=t.prevHash,i=t.merkleRoot;um.isString(t.prevHash)&&(r=f.Buffer.from(t.prevHash,"hex").reverse()),um.isString(t.merkleRoot)&&(i=f.Buffer.from(t.merkleRoot,"hex").reverse());var n={hash:t.hash,version:t.version,prevHash:r,merkleRoot:i,time:t.time,timestamp:t.time,bits:t.bits,nonce:t.nonce};return n};Xe.fromObject=function(t){var r=Xe._fromObject(t);return new Xe(r)};Xe.fromRawBlock=function(t){f.Buffer.isBuffer(t)||(t=f.Buffer.from(t,"binary"));var r=cm(t);r.pos=Xe.Constants.START_OF_HEADER;var i=Xe._fromBufferReader(r);return new Xe(i)};Xe.fromBuffer=function(t){var r=Xe._fromBufferReader(cm(t));return new Xe(r)};Xe.fromString=function(t){var r=f.Buffer.from(t,"hex");return Xe.fromBuffer(r)};Xe._fromBufferReader=function(t){var r={};return r.version=t.readInt32LE(),r.prevHash=t.read(32),r.merkleRoot=t.read(32),r.time=t.readUInt32LE(),r.bits=t.readUInt32LE(),r.nonce=t.readUInt32LE(),r};Xe.fromBufferReader=function(t){var r=Xe._fromBufferReader(t);return new Xe(r)};Xe.prototype.toObject=Xe.prototype.toJSON=function(){return{hash:this.hash,version:this.version,prevHash:f.Buffer.from(this.prevHash).reverse().toString("hex"),merkleRoot:f.Buffer.from(this.merkleRoot).reverse().toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}};Xe.prototype.toBuffer=function(){return this.toBufferWriter().concat()};Xe.prototype.toString=function(){return this.toBuffer().toString("hex")};Xe.prototype.toBufferWriter=function(t){return t||(t=new tW),t.writeInt32LE(this.version),t.write(this.prevHash),t.write(this.merkleRoot),t.writeUInt32LE(this.time),t.writeUInt32LE(this.bits),t.writeUInt32LE(this.nonce),t};Xe.prototype.getTargetDifficulty=function(t){t=t||this.bits;for(var r=new fh(t&16777215),i=8*((t>>>24)-3);i-- >0;)r=r.mul(new fh(2));return r};Xe.prototype.getDifficulty=function(){var t=this.getTargetDifficulty(iW).mul(new fh(Math.pow(10,8))),r=this.getTargetDifficulty(),i=t.div(r).toString(10),n=i.length-8;return i=i.slice(0,n)+"."+i.slice(n),parseFloat(i)};Xe.prototype._getHash=function(){var t=this.toBuffer();return rW.sha256sha256(t)};var VN={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=cm(this._getHash()).readReverse().toString("hex")),this._id},set:um.noop};Object.defineProperty(Xe.prototype,"id",VN);Object.defineProperty(Xe.prototype,"hash",VN);Xe.prototype.validTimestamp=function(){var t=Math.round(new Date().getTime()/1e3);return!(this.time>t+Xe.Constants.MAX_TIME_OFFSET)};Xe.prototype.validProofOfWork=function(){var t=new fh(this.id,"hex"),r=this.getTargetDifficulty();return!(t.cmp(r)>0)};Xe.prototype.inspect=function(){return"<BlockHeader "+this.id+">"};Xe.Constants={START_OF_HEADER:8,MAX_TIME_OFFSET:7200,LARGEST_HASH:new fh("10000000000000000000000000000000000000000000000000000000000000000","hex")};GN.exports=Xe});var JN=P((xue,XN)=>{"use strict";g();var N_=Qe(),YN=iu(),WN=Ze(),C_=oo(),nW=sn(),oW=Be(),B_=Tt(),ZN=Oe();function De(e){return this instanceof De?(N_.extend(this,De._from(e)),this):new De(e)}De.MAX_BLOCK_SIZE=128e6;De._from=function(t){var r={};if(f.Buffer.isBuffer(t))r=De._fromBufferReader(C_(t));else if(N_.isObject(t))r=De._fromObject(t);else throw new TypeError("Unrecognized argument for Block");return r};De._fromObject=function(t){var r=[];t.transactions.forEach(function(n){n instanceof B_?r.push(n):r.push(B_().fromObject(n))});var i={header:YN.fromObject(t.header),transactions:r};return i};De.fromObject=function(t){var r=De._fromObject(t);return new De(r)};De._fromBufferReader=function(t){var r={};ZN.checkState(!t.finished(),"No block data received"),r.header=YN.fromBufferReader(t);var i=t.readVarintNum();r.transactions=[];for(var n=0;n<i;n++)r.transactions.push(B_().fromBufferReader(t));return r};De.fromBufferReader=function(t){ZN.checkArgument(t,"br is required");var r=De._fromBufferReader(t);return new De(r)};De.fromBuffer=function(t){return De.fromBufferReader(new C_(t))};De.fromString=function(t){var r=f.Buffer.from(t,"hex");return De.fromBuffer(r)};De.fromRawBlock=function(t){f.Buffer.isBuffer(t)||(t=f.Buffer.from(t,"binary"));var r=C_(t);r.pos=De.Values.START_OF_BLOCK;var i=De._fromBufferReader(r);return new De(i)};De.prototype.toObject=De.prototype.toJSON=function(){var t=[];return this.transactions.forEach(function(r){t.push(r.toObject())}),{header:this.header.toObject(),transactions:t}};De.prototype.toBuffer=function(){return this.toBufferWriter().concat()};De.prototype.toString=function(){return this.toBuffer().toString("hex")};De.prototype.toBufferWriter=function(t){t||(t=new nW),t.write(this.header.toBuffer()),t.writeVarintNum(this.transactions.length);for(var r=0;r<this.transactions.length;r++)this.transactions[r].toBufferWriter(t);return t};De.prototype.getTransactionHashes=function(){var t=[];if(this.transactions.length===0)return[De.Values.NULL_HASH];for(var r=0;r<this.transactions.length;r++)t.push(this.transactions[r]._getHash());return t};De.prototype.getMerkleTree=function(){for(var t=this.getTransactionHashes(),r=0,i=this.transactions.length;i>1;i=Math.floor((i+1)/2)){for(var n=0;n<i;n+=2){var o=Math.min(n+1,i-1),a=f.Buffer.concat([t[r+n],t[r+o]]);t.push(oW.sha256sha256(a))}r+=i}return t};De.prototype.getMerkleRoot=function(){var t=this.getMerkleTree();return t[t.length-1]};De.prototype.validMerkleRoot=function(){var t=new WN(this.header.merkleRoot.toString("hex"),"hex"),r=new WN(this.getMerkleRoot().toString("hex"),"hex");return t.cmp(r)===0};De.prototype._getHash=function(){return this.header._getHash()};var $N={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=this.header.id),this._id},set:N_.noop};Object.defineProperty(De.prototype,"id",$N);Object.defineProperty(De.prototype,"hash",$N);De.prototype.inspect=function(){return"<Block "+this.id+">"};De.Values={START_OF_BLOCK:8,NULL_HASH:f.Buffer.from("0000000000000000000000000000000000000000000000000000000000000000","hex")};XN.exports=De});var D_=P((Iue,tC)=>{"use strict";g();var nu=Qe(),M_=iu(),eC=oo(),aW=sn(),sW=Be(),QN=Tt(),L_=ci(),ou=Oe(),uW=Mc();function fm(e){return Array.isArray(e)?e.slice():e}function Dt(e){if(!(this instanceof Dt))return new Dt(e);var t={};if(f.Buffer.isBuffer(e))t=Dt._fromBufferReader(eC(e));else if(nu.isObject(e)){var r;e.header instanceof M_?r=e.header:r=M_.fromObject(e.header),t={header:r,numTransactions:e.numTransactions,hashes:fm(e.hashes),flags:fm(e.flags)}}else throw new TypeError("Unrecognized argument for MerkleBlock");return nu.extend(this,t),this._flagBitsUsed=0,this._hashesUsed=0,this}Dt.fromBuffer=function(t){return Dt.fromBufferReader(eC(t))};Dt.fromBufferReader=function(t){return new Dt(Dt._fromBufferReader(t))};Dt.prototype.toBuffer=function(){return this.toBufferWriter().concat()};Dt.prototype.toBufferWriter=function(t){t||(t=new aW),t.write(this.header.toBuffer()),t.writeUInt32LE(this.numTransactions),t.writeVarintNum(this.hashes.length);for(var r=0;r<this.hashes.length;r++)t.write(f.Buffer.from(this.hashes[r],"hex"));for(t.writeVarintNum(this.flags.length),r=0;r<this.flags.length;r++)t.writeUInt8(this.flags[r]);return t};Dt.prototype.toObject=Dt.prototype.toJSON=function(){return{header:this.header.toObject(),numTransactions:this.numTransactions,hashes:fm(this.hashes),flags:fm(this.flags)}};Dt.prototype.validMerkleTree=function(){if(ou.checkState(nu.isArray(this.flags),"MerkleBlock flags is not an array"),ou.checkState(nu.isArray(this.hashes),"MerkleBlock hashes is not an array"),this.hashes.length>this.numTransactions||this.flags.length*8<this.hashes.length)return!1;var t=this._calcTreeHeight(),r={hashesUsed:0,flagBitsUsed:0},i=this._traverseMerkleTree(t,0,r);return r.hashesUsed!==this.hashes.length?!1:i.equals(this.header.merkleRoot)};Dt.prototype.filterdTxsHash=uW.fn(function(){return this.filteredTxsHash()},{what:"MerkleBlock#filterdTxsHash",since:"9.1.0",removeIn:"10.0.0",use:"MerkleBlock#filteredTxsHash",why:"the name is a misspelling"});Dt.prototype.filteredTxsHash=function(){if(ou.checkState(nu.isArray(this.flags),"MerkleBlock flags is not an array"),ou.checkState(nu.isArray(this.hashes),"MerkleBlock hashes is not an array"),this.hashes.length>this.numTransactions)throw new L_.MerkleBlock.InvalidMerkleTree;if(this.flags.length*8<this.hashes.length)throw new L_.MerkleBlock.InvalidMerkleTree;if(this.hashes.length===1)return[];var t=this._calcTreeHeight(),r={hashesUsed:0,flagBitsUsed:0},i=this._traverseMerkleTree(t,0,r,!0);if(r.hashesUsed!==this.hashes.length)throw new L_.MerkleBlock.InvalidMerkleTree;return i};Dt.prototype._traverseMerkleTree=function(t,r,i,n){if(i=i||{},i.txs=i.txs||[],i.flagBitsUsed=i.flagBitsUsed||0,i.hashesUsed=i.hashesUsed||0,n=n||!1,i.flagBitsUsed>this.flags.length*8)return null;var o=this.flags[i.flagBitsUsed>>3]>>>(i.flagBitsUsed++&7)&1;if(t===0||!o){if(i.hashesUsed>=this.hashes.length)return null;var a=this.hashes[i.hashesUsed++];return t===0&&o&&i.txs.push(a),f.Buffer.from(a,"hex")}else{var s=this._traverseMerkleTree(t-1,r*2,i),u=s;return r*2+1<this._calcTreeWidth(t-1)&&(u=this._traverseMerkleTree(t-1,r*2+1,i)),n?i.txs:sW.sha256sha256(f.Buffer.concat([s,u]))}};Dt.prototype._calcTreeWidth=function(t){return this.numTransactions+(1<<t)-1>>t};Dt.prototype._calcTreeHeight=function(){for(var t=0;this._calcTreeWidth(t)>1;)t++;return t};Dt.prototype.hasTransaction=function(t){ou.checkArgument(!nu.isUndefined(t),"tx cannot be undefined"),ou.checkArgument(t instanceof QN||typeof t=="string",'Invalid tx given, tx must be a "string" or "Transaction"');var r=t;t instanceof QN&&(r=f.Buffer.from(t.id,"hex").reverse().toString("hex"));var i=[],n=this._calcTreeHeight();return this._traverseMerkleTree(n,0,{txs:i}),i.indexOf(r)!==-1};Dt._fromBufferReader=function(t){ou.checkState(!t.finished(),"No merkleblock data received");var r={};r.header=M_.fromBufferReader(t),r.numTransactions=t.readUInt32LE();var i=t.readVarintNum();r.hashes=[];for(var n=0;n<i;n++)r.hashes.push(t.read(32).toString("hex"));var o=t.readVarintNum();for(r.flags=[],n=0;n<o;n++)r.flags.push(t.readUInt8());return r};Dt.fromObject=function(t){return new Dt(t)};tC.exports=Dt});var rC=P((Tue,lm)=>{g();lm.exports=JN();lm.exports.BlockHeader=iu();lm.exports.MerkleBlock=D_()});var cC=P((Rue,uC)=>{"use strict";g();var cW=iu(),iC=Be(),nC=/^[0-9a-fA-F]{64}$/;function aC(e){return f.Buffer.from(e).reverse()}function oC(e){return aC(f.Buffer.from(e,"hex"))}function sC(e){return aC(e).toString("hex")}function q_(e,t,r){if(!nC.test(String(e)))throw new Error("txid must be 32-byte hex");if(!Number.isInteger(t)||t<0)throw new Error("index must be a non-negative integer");r=r||[];for(var i=oC(e),n=t,o=0;o<r.length;o++){var a=r[o],s;if(a==="*"||a===""||a==null)s=i;else{if(!nC.test(String(a)))throw new Error("proof node "+o+' must be 32-byte hex or "*"');s=oC(a)}i=n&1?iC.sha256sha256(f.Buffer.concat([s,i])):iC.sha256sha256(f.Buffer.concat([i,s])),n=Math.floor(n/2)}return sC(i)}function fW(e){if(!e||!e.merkleRoot)throw new Error("proof.merkleRoot is required");var t=q_(e.txid,e.index,e.nodes);return t.toLowerCase()===String(e.merkleRoot).toLowerCase()}function lW(e){var t=e.header;if((f.Buffer.isBuffer(t)||typeof t=="string")&&(t=cW.fromBuffer(f.Buffer.isBuffer(t)?t:f.Buffer.from(t,"hex"))),!t||!t.merkleRoot)throw new Error("a valid block header is required");var r=sC(t.merkleRoot),i=q_(e.txid,e.index,e.nodes),n=i.toLowerCase()===r.toLowerCase(),o=e.requirePow!==!1,a=t.validProofOfWork();return{valid:n&&(!o||a),rootMatches:n,powValid:a,merkleRoot:i,blockHash:t.id}}uC.exports={merkleRootFromBranch:q_,verifyMerkleProof:fW,verifyTxInclusion:lW}});var hC=P((Bue,lC)=>{"use strict";g();var fC=iu();function hW(e){return f.Buffer.from(e).reverse()}function dW(e){if(e&&typeof e.validProofOfWork=="function")return e;if(f.Buffer.isBuffer(e))return fC.fromBuffer(e);if(typeof e=="string")return fC.fromBuffer(f.Buffer.from(e,"hex"));throw new Error("each header must be a BlockHeader, an 80-byte Buffer, or hex")}function pW(e,t){if(t=t||{},!Array.isArray(e)||e.length===0)throw new Error("headers must be a non-empty array");for(var r=e.map(dW),i=t.requirePow!==!1,n=0,o=0;o<r.length;o++){if(i&&!r[o].validProofOfWork())return{valid:!1,reason:"invalid proof-of-work at index "+o,count:r.length};if(n+=r[o].getDifficulty(),o>0){var a=hW(r[o].prevHash).toString("hex").toLowerCase()===r[o-1].id.toLowerCase();if(!a)return{valid:!1,reason:"broken link at index "+o,count:r.length}}}var s=r[0].id,u=r[r.length-1].id;if(t.trustedHash){var c=String(t.trustedHash).toLowerCase();if(c!==u.toLowerCase()&&c!==s.toLowerCase())return{valid:!1,reason:"chain is not anchored at the trusted hash",count:r.length,anchorHash:s,tipHash:u}}return{valid:!0,count:r.length,anchorHash:s,tipHash:u,work:n}}lC.exports={verifyHeaderChain:pW}});var hm=P((Cue,dC)=>{"use strict";g();var H_=cC(),gW=hC();dC.exports={merkleRootFromBranch:H_.merkleRootFromBranch,verifyMerkleProof:H_.verifyMerkleProof,verifyTxInclusion:H_.verifyTxInclusion,verifyHeaderChain:gW.verifyHeaderChain}});var F_=P((Mue,pC)=>{"use strict";g();var mW=Be(),au=Oe(),$r={};$r.PROTOCOL_PREFIX="NotaryHash/1.0";$r.VERSION=1;$r.lp=function(e){var t=f.Buffer.isBuffer(e)?e:f.Buffer.from(String(e),"utf8"),r=f.Buffer.alloc(4);return r.writeUInt32BE(t.length,0),f.Buffer.concat([r,t])};function U_(e,t){if(!f.Buffer.isBuffer(e))throw new Error(t+" must be a Buffer of raw bytes, not "+typeof e+". Certificates store this field as hex; decode it with Buffer.from(hex, 'hex') before hashing, or the length prefix covers the wrong number of bytes.");return e}$r.u64be=function(e){au.checkArgument(typeof e=="number"&&isFinite(e),"createdAtUnix must be a finite number"),au.checkArgument(Number.isInteger(e),"createdAtUnix must be whole seconds, not milliseconds or a fraction"),au.checkArgument(e>=0,"createdAtUnix must not be negative");var t=f.Buffer.alloc(8);return t.writeBigUInt64BE(BigInt(e),0),t};$r.toUnixSeconds=function(e){var t=e instanceof Date?e:new Date(e);return au.checkArgument(!isNaN(t.getTime()),"createdAt is not a valid date: "+e),Math.floor(t.getTime()/1e3)};$r.canonicalBytes=function(e){return au.checkArgument(e&&typeof e=="object","fields object is required"),au.checkArgument(typeof e.algorithm=="string"&&e.algorithm.length>0,"algorithm must be a non-empty string"),au.checkArgument(typeof e.hashAlgorithm=="string"&&e.hashAlgorithm.length>0,"hashAlgorithm must be a non-empty string"),f.Buffer.concat([$r.lp($r.PROTOCOL_PREFIX),f.Buffer.from([$r.VERSION]),$r.lp(e.algorithm),$r.lp(e.hashAlgorithm),$r.lp(U_(e.payloadHash,"payloadHash")),$r.lp(U_(e.publicKey,"publicKey")),$r.lp(U_(e.signature,"signature")),$r.u64be(e.createdAtUnix)])};$r.proofHash=function(e){return mW.sha256($r.canonicalBytes(e))};pC.exports=$r});var j_=P((que,bC)=>{"use strict";g();var dm=Lg(),dn=Or(),gC=Be(),Dc=Oe(),Ct={};Ct.PREFIX="NOTARYHASH";Ct.VERSION=1;Ct.MODE={FULL:0,HYBRID:1,BATCH:2};var mC={full:Ct.MODE.FULL,hybrid:Ct.MODE.HYBRID,batch:Ct.MODE.BATCH};function vC(e){return f.Buffer.from([e])}function vW(e){var t=f.Buffer.alloc(4);return t.writeUInt32BE(e,0),t}function po(e,t,r){if(!f.Buffer.isBuffer(e))throw new Error(t+" must be a Buffer of raw bytes, not "+typeof e+". Decode hex with Buffer.from(hex, 'hex') first.");if(r!=null&&e.length!==r)throw new Error(t+" must be exactly "+r+" bytes, got "+e.length);return e}function yC(e,t){if(e.buf&&e.buf.length===1)return e.buf[0];if(e.opcodenum===dn.OP_0)return 0;if(e.opcodenum>=dn.OP_1&&e.opcodenum<=dn.OP_16)return e.opcodenum-dn.OP_1+1;throw new Error(t+" must be a single byte at this push")}function Ln(e,t){if(!e||!e.buf)throw new Error(t+" push is missing or carries no data");return e.buf}Ct.build=function(e){Dc.checkArgument(e&&typeof e=="object","record is required");var t=typeof e.mode=="string"&&Object.prototype.hasOwnProperty.call(mC,e.mode)?mC[e.mode]:e.mode;Dc.checkArgument(t===Ct.MODE.FULL||t===Ct.MODE.HYBRID||t===Ct.MODE.BATCH,"mode must be 0 (full), 1 (hybrid) or 2 (batch)");var r=new dm().add(dn.OP_FALSE).add(dn.OP_RETURN).add(f.Buffer.from(Ct.PREFIX,"ascii")).add(vC(Ct.VERSION)).add(vC(t));if(t===Ct.MODE.BATCH)return Dc.checkArgument(typeof e.leafCount=="number"&&Number.isInteger(e.leafCount)&&e.leafCount>=0,"leafCount must be a non-negative integer"),r.add(po(e.merkleRoot,"merkleRoot",32)),r.add(vW(e.leafCount)),r;Dc.checkArgument(typeof e.algorithm=="string"&&e.algorithm.length>0,"algorithm must be a non-empty string"),Dc.checkArgument(typeof e.hashAlgorithm=="string"&&e.hashAlgorithm.length>0,"hashAlgorithm must be a non-empty string"),r.add(f.Buffer.from(e.algorithm,"utf8")),r.add(f.Buffer.from(e.hashAlgorithm,"utf8")),r.add(po(e.payloadHash,"payloadHash",32)),r.add(po(e.proofHash,"proofHash",32));var i=po(e.publicKey,"publicKey"),n=po(e.signature,"signature");return t===Ct.MODE.HYBRID?(r.add(gC.sha256(i)),r.add(gC.sha256(n))):(r.add(i),r.add(n)),r};Ct.parse=function(e){typeof e=="string"&&(e=dm.fromHex(e)),Dc.checkArgument(e instanceof dm,"script must be a Script or hex string");var t=e.chunks;if(t.length<5)throw new Error("not a NotaryHash record: too few pushes");if(t[0].opcodenum!==dn.OP_FALSE&&t[0].opcodenum!==dn.OP_0)throw new Error("not a NotaryHash record: does not start with OP_FALSE");if(t[1].opcodenum!==dn.OP_RETURN)throw new Error("not a NotaryHash record: no OP_RETURN");var r=Ln(t[2],"prefix");if(r.toString("ascii")!==Ct.PREFIX)throw new Error("not a NotaryHash record: prefix is "+JSON.stringify(r.toString("ascii")));var i=yC(t[3],"version");if(i!==Ct.VERSION)throw new Error("unsupported NotaryHash version: "+i);var n=yC(t[4],"mode");if(n===Ct.MODE.BATCH){if(t.length!==7)throw new Error("batch record must have exactly 7 pushes, got "+t.length);var o=Ln(t[6],"leafCount");if(o.length!==4)throw new Error("leafCount must be 4 bytes (u32be), got "+o.length);return{mode:n,version:i,merkleRoot:po(Ln(t[5],"merkleRoot"),"merkleRoot",32),leafCount:o.readUInt32BE(0)}}if(n!==Ct.MODE.FULL&&n!==Ct.MODE.HYBRID)throw new Error("unknown NotaryHash mode: "+n);if(t.length!==11)throw new Error("full/hybrid record must have exactly 11 pushes, got "+t.length);var a={mode:n,version:i,algorithm:Ln(t[5],"algorithm").toString("utf8"),hashAlgorithm:Ln(t[6],"hashAlgorithm").toString("utf8"),payloadHash:po(Ln(t[7],"payloadHash"),"payloadHash",32),proofHash:po(Ln(t[8],"proofHash"),"proofHash",32)};return n===Ct.MODE.HYBRID?(a.publicKeyHash=po(Ln(t[9],"publicKeyHash"),"publicKeyHash",32),a.signatureHash=po(Ln(t[10],"signatureHash"),"signatureHash",32)):(a.publicKey=Ln(t[9],"publicKey"),a.signature=Ln(t[10],"signature")),a};Ct.isNotaryHash=function(e){try{typeof e=="string"&&(e=dm.fromHex(e));var t=e.chunks;return t.length>=5&&(t[0].opcodenum===dn.OP_FALSE||t[0].opcodenum===dn.OP_0)&&t[1].opcodenum===dn.OP_RETURN&&!!t[2].buf&&t[2].buf.toString("ascii")===Ct.PREFIX}catch{return!1}};bC.exports=Ct});var K_=P((Uue,_C)=>{"use strict";g();var z_=Be(),ki=Oe(),qe={};qe.LEAF_PREFIX=0;qe.NODE_PREFIX=1;qe.hashLeaf=function(e){return ki.checkArgument(f.Buffer.isBuffer(e),"leaf data must be a Buffer"),z_.sha256(f.Buffer.concat([f.Buffer.from([qe.LEAF_PREFIX]),e]))};qe.hashNode=function(e,t){return z_.sha256(f.Buffer.concat([f.Buffer.from([qe.NODE_PREFIX]),e,t]))};qe.largestPowerOfTwoBelow=function(e){ki.checkArgument(Number.isInteger(e)&&e>=2,"n must be an integer >= 2");for(var t=1;t*2<e;)t*=2;return t};qe.root=function(e){if(ki.checkArgument(Array.isArray(e),"leaves must be an array"),e.length===0)return z_.sha256(f.Buffer.alloc(0));if(e.length===1)return qe.hashLeaf(e[0]);var t=qe.largestPowerOfTwoBelow(e.length);return qe.hashNode(qe.root(e.slice(0,t)),qe.root(e.slice(t)))};qe.path=function(e,t){if(ki.checkArgument(Array.isArray(e)&&e.length>0,"leaves must be a non-empty array"),ki.checkArgument(Number.isInteger(t)&&t>=0&&t<e.length,"index must be within the leaves"),e.length===1)return[];var r=qe.largestPowerOfTwoBelow(e.length);return t<r?qe.path(e.slice(0,r),t).concat([qe.root(e.slice(r))]):qe.path(e.slice(r),t-r).concat([qe.root(e.slice(0,r))])};qe.foldPath=function(e,t,r,i){ki.checkArgument(f.Buffer.isBuffer(e),"leafData must be a Buffer"),ki.checkArgument(Number.isInteger(t)&&t>=0,"index must be a non-negative integer"),ki.checkArgument(Number.isInteger(r)&&r>0,"leafCount must be a positive integer"),ki.checkArgument(t<r,"index must be less than leafCount"),ki.checkArgument(Array.isArray(i),"path must be an array");for(var n=qe.hashLeaf(e),o=t,a=r-1,s=0;s<i.length;s++){if(a===0)throw new Error("audit path is too long for a tree of "+r+" leaves");if((o&1)===1||o===a)for(n=qe.hashNode(i[s],n);(o&1)===0&&o!==0;)o>>=1,a>>=1;else n=qe.hashNode(n,i[s]);o>>=1,a>>=1}if(a!==0)throw new Error("audit path is too short for a tree of "+r+" leaves");return n};qe.verifyInclusion=function(e,t,r,i,n){try{return f.Buffer.isBuffer(n)?qe.foldPath(e,t,r,i).equals(n):!1}catch{return!1}};qe.pathSides=function(e,t){if(ki.checkArgument(Number.isInteger(t)&&t>0,"leafCount must be a positive integer"),ki.checkArgument(Number.isInteger(e)&&e>=0&&e<t,"index must be within the tree"),t===1)return[];var r=qe.largestPowerOfTwoBelow(t);return e<r?qe.pathSides(e,r).concat(["right"]):qe.pathSides(e-r,t-r).concat(["left"])};qe.auditPath=function(e,t){var r=qe.pathSides(t,e.length);return qe.path(e,t).map(function(i,n){return{hash:i,side:r[n]}})};function yW(e,t){var r=f.Buffer.isBuffer(e)?e:null;if(!r){if(typeof e!="string")throw new Error("audit path node "+t+" has no hash");var i=e.slice(0,2)==="0x"?e.slice(2):e;if(!/^[0-9a-fA-F]*$/.test(i))throw new Error("audit path node "+t+" is not hex");r=f.Buffer.from(i,"hex")}if(r.length!==32)throw new Error("audit path node "+t+" is not 32 bytes");return r}qe.rootFromPath=function(e,t){ki.checkArgument(f.Buffer.isBuffer(e),"leafData must be a Buffer"),ki.checkArgument(Array.isArray(t),"path must be an array");for(var r=qe.hashLeaf(e),i=0;i<t.length;i++){var n=t[i];if(!n||typeof n!="object")throw new Error("audit path node "+i+" is not an object");var o=yW(n.hash,i);if(n.side==="left")r=qe.hashNode(o,r);else if(n.side==="right")r=qe.hashNode(r,o);else throw new Error("audit path node "+i+" has side "+JSON.stringify(n.side))}return r};qe.verifyAuditPath=function(e,t,r){try{return f.Buffer.isBuffer(r)?qe.rootFromPath(e,t).equals(r):!1}catch{return!1}};_C.exports=qe});var AC=P((jue,IC)=>{"use strict";g();var bW=nh(),qc=F_(),_W=K_(),lh=j_(),wW=Mc(),Xr=Oe(),he={};he.PROTOCOL="NotaryHash";he.VERSION=1;he.REFERENCE_VERSION="1.0";he.FORMAT={REFERENCE:"reference",LEGACY:"legacy"};he.MODE={FULL:"full",HYBRID:"hybrid"};he.ENCODING={HEX:"hex",BASE64:"base64",RAW:"raw",DER:"der"};he.ANCHOR_TYPE={DIRECT:"direct",BATCH:"batch"};he.DEFAULT_NETWORK="bsv-mainnet";var Y_=1,wC={0:"full",1:"hybrid",2:"full"},xC=/^[0-9a-fA-F]*$/,SW=/^[A-Za-z0-9+/_-]*={0,2}$/;he.decodeBytes=function(e,t,r){if(r=r||"value",typeof e!="string")throw new Error(r+" must be a string");if(t===he.ENCODING.HEX){var i=e.slice(0,2)==="0x"?e.slice(2):e;if(i.length%2!==0||!xC.test(i))throw new Error(r+" must be a hex string");return f.Buffer.from(i,"hex")}if(t===he.ENCODING.BASE64){if(!SW.test(e))throw new Error(r+" must be base64");var n=e.replace(/=+$/,"");if(n.length!==e.length&&e.length%4!==0||n.length%4===1)throw new Error(r+" is not a valid base64 length");return f.Buffer.from(e,"base64")}throw new Error('encoding must be "hex" or "base64", not '+JSON.stringify(t))};function V_(e,t,r){if(!f.Buffer.isBuffer(e))throw new Error(r+" must be a Buffer of raw bytes, not "+typeof e);return t===he.ENCODING.BASE64?e.toString("base64"):e.toString("hex")}function W_(e,t){var r=f.Buffer.isBuffer(e)?e:he.decodeBytes(e,"hex",t);if(r.length!==32)throw new Error(t+" must be 32 bytes");return r.toString("hex")}function EW(e){if(e===he.MODE.FULL||e===he.MODE.HYBRID)return{mode:e,batch:!1};if(e===lh.MODE.FULL)return{mode:"full",batch:!1};if(e===lh.MODE.HYBRID)return{mode:"hybrid",batch:!1};if(e===lh.MODE.BATCH)return{mode:"full",batch:!0};throw e==="batch"?new Error('batch is an anchor type, not a mode: pass mode "full" or "hybrid" with a merkle proof'):new Error('mode is required: "full" or "hybrid"')}function xW(e){if(e===void 0)return he.ENCODING.HEX;if(e===he.ENCODING.HEX||e===he.ENCODING.BASE64)return e;if(e===he.ENCODING.RAW||e===he.ENCODING.DER)return he.ENCODING.HEX;throw new Error('encoding must be "hex" or "base64"')}function OC(e,t,r){if(!Array.isArray(e))throw new Error("merkle.path must be an array");var i=e.length>0&&e.every(function(o){return o&&typeof o=="object"&&!f.Buffer.isBuffer(o)&&"side"in o});if(i||e.length===0)return e.map(function(o,a){if(o.side!=="left"&&o.side!=="right")throw new Error("merkle.path["+a+'].side must be "left" or "right"');return{hash:W_(o.hash,"merkle.path["+a+"].hash"),side:o.side}});var n=_W.pathSides(t,r);if(n.length!==e.length)throw new Error("merkle.path has "+e.length+" nodes; a tree of "+r+" leaves needs "+n.length+" for leaf "+t);return e.map(function(o,a){return{hash:W_(o,"merkle.path["+a+"]"),side:n[a]}})}function OW(e){return Xr.checkArgument(e&&typeof e=="object","batch certificates require a merkle inclusion proof"),Xr.checkArgument(Number.isInteger(e.leafIndex)&&e.leafIndex>=0,"merkle.leafIndex must be a non-negative integer"),Xr.checkArgument(Number.isInteger(e.leafCount)&&e.leafCount>e.leafIndex,"merkle.leafCount must be an integer greater than leafIndex"),{root:W_(e.root,"merkle.root"),leafIndex:e.leafIndex,leafCount:e.leafCount,path:OC(e.path,e.leafIndex,e.leafCount)}}function IW(e,t){Xr.checkArgument(e&&typeof e=="object","anchor is required"),Xr.checkArgument(typeof e.txid=="string","anchor.txid must be a string");var r=e.type||(t?he.ANCHOR_TYPE.BATCH:he.ANCHOR_TYPE.DIRECT);return Xr.checkArgument(r===he.ANCHOR_TYPE.DIRECT||r===he.ANCHOR_TYPE.BATCH,'anchor.type must be "direct" or "batch"'),Xr.checkArgument(r===he.ANCHOR_TYPE.BATCH===t,'anchor.type is "batch" exactly when a merkle inclusion proof is given'),{type:r,network:e.network||he.DEFAULT_NETWORK,txid:e.txid,vout:e.vout===void 0?0:e.vout,blockHeight:e.blockHeight===void 0?null:e.blockHeight,blockTime:e.blockTime===void 0?null:e.blockTime}}function AW(e){var t=EW(e.mode),r=t.batch||e.merkle!==void 0||!!(e.anchor&&e.anchor.type===he.ANCHOR_TYPE.BATCH);r&&Xr.checkArgument(e.merkle&&typeof e.merkle=="object","batch certificates require a merkle inclusion proof");var i=xW(e.encoding),n=IW(e.anchor,r),o=e.createdAtUnix!==void 0?e.createdAtUnix:qc.toUnixSeconds(e.createdAt===void 0?new Date:e.createdAt);Xr.checkArgument(Number.isInteger(o)&&o>=0,"createdAtUnix must be a non-negative whole number of seconds");var a=qc.proofHash({algorithm:e.algorithm,hashAlgorithm:e.hashAlgorithm,payloadHash:e.payloadHash,publicKey:e.publicKey,signature:e.signature,createdAtUnix:o}),s={protocol:he.PROTOCOL,version:he.REFERENCE_VERSION,mode:t.mode,algorithm:e.algorithm,hashAlgorithm:e.hashAlgorithm,payloadHash:V_(e.payloadHash,"hex","payloadHash"),publicKey:V_(e.publicKey,i,"publicKey"),signature:V_(e.signature,i,"signature"),encoding:i,proofHash:a.toString("hex"),createdAt:new Date(o*1e3).toISOString(),anchor:n};return r&&(s.merkle=OW(e.merkle)),s}function G_(e,t){if(!f.Buffer.isBuffer(e))throw new Error(t+" must be a Buffer of raw bytes, not "+typeof e);return e.toString("hex")}function SC(e){Xr.checkArgument(e.anchor&&typeof e.anchor=="object","anchor is required"),Xr.checkArgument(typeof e.anchor.txid=="string","anchor.txid must be a string");var t=e.encoding||he.ENCODING.RAW;Xr.checkArgument(t===he.ENCODING.RAW||t===he.ENCODING.DER,'encoding must be "raw" or "der"');var r=e.createdAt?e.createdAt instanceof Date?e.createdAt.toISOString():e.createdAt:new Date().toISOString(),i=qc.toUnixSeconds(r),n=qc.proofHash({algorithm:e.algorithm,hashAlgorithm:e.hashAlgorithm,payloadHash:e.payloadHash,publicKey:e.publicKey,signature:e.signature,createdAtUnix:i}),o={protocol:he.PROTOCOL,version:Y_,mode:e.mode,algorithm:e.algorithm,hashAlgorithm:e.hashAlgorithm,payloadHash:G_(e.payloadHash,"payloadHash"),publicKey:G_(e.publicKey,"publicKey"),signature:G_(e.signature,"signature"),encoding:t,proofHash:n.toString("hex"),createdAt:r,anchor:{txid:e.anchor.txid,blockHeight:e.anchor.blockHeight}};return e.mode===lh.MODE.BATCH&&(Xr.checkArgument(e.merkle&&typeof e.merkle=="object","batch certificates require a merkle inclusion proof"),o.merkle={root:e.merkle.root,leafIndex:e.merkle.leafIndex,leafCount:e.merkle.leafCount,path:e.merkle.path}),o}he.build=function(e){Xr.checkArgument(e&&typeof e=="object","params is required");var t=e.format;return t===void 0?(wW({what:"NotaryHash.Certificate.build() without a format",since:"9.9.0",removeIn:"10.0.0",use:"NotaryHash.Certificate.build({ ...params, format: 'reference' })",why:"the default format is this library's own, which the BRC-220 reference implementation cannot verify"}),SC(e)):(Xr.checkArgument(t===he.FORMAT.REFERENCE||t===he.FORMAT.LEGACY,"Unknown certificate format: "+t+". Expected 'reference' or 'legacy' (NotaryHash.Certificate.FORMAT)"),t===he.FORMAT.REFERENCE?AW(e):SC(e))};he.isLegacy=function(e){return!!e&&typeof e=="object"&&(e.version===Y_||e.version===void 0&&typeof e.mode=="number")};he.normalize=function(e){if(!he.isLegacy(e))return e;var t=e.mode===lh.MODE.BATCH,r=Object.assign({},e);r.version=e.version===Y_?he.REFERENCE_VERSION:e.version,r.mode=wC[e.mode]!==void 0?wC[e.mode]:e.mode,(e.encoding===he.ENCODING.RAW||e.encoding===he.ENCODING.DER)&&(r.encoding=he.ENCODING.HEX);var i=e.anchor&&typeof e.anchor=="object"?e.anchor:{};if(r.anchor={type:t?he.ANCHOR_TYPE.BATCH:he.ANCHOR_TYPE.DIRECT,network:i.network||he.DEFAULT_NETWORK,txid:i.txid,vout:i.vout===void 0?0:i.vout,blockHeight:i.blockHeight===void 0?null:i.blockHeight,blockTime:i.blockTime===void 0?null:i.blockTime},e.merkle&&typeof e.merkle=="object"){var n=e.merkle,o=n.path;try{o=OC(n.path,n.leafIndex,n.leafCount)}catch{}r.merkle={root:n.root,leafIndex:n.leafIndex,leafCount:n.leafCount,path:o}}return r};he.toProofInput=function(e){Xr.checkArgument(e&&typeof e=="object","certificate is required");var t=he.normalize(e);return{algorithm:t.algorithm,hashAlgorithm:t.hashAlgorithm,payloadHash:he.decodeBytes(t.payloadHash,"hex","payloadHash"),publicKey:he.decodeBytes(t.publicKey,t.encoding,"publicKey"),signature:he.decodeBytes(t.signature,t.encoding,"signature"),createdAtUnix:qc.toUnixSeconds(t.createdAt)}};he.recomputeProofHash=function(e){return qc.proofHash(he.toProofInput(e))};he.proofHashMatches=function(e){try{if(!e||typeof e.proofHash!="string")return!1;var t=he.decodeBytes(e.proofHash,"hex","proofHash");return t.length!==32?!1:he.recomputeProofHash(e).equals(t)}catch{return!1}};he.REQUIRED_FIELDS=["protocol","version","mode","algorithm","hashAlgorithm","payloadHash","publicKey","signature","encoding","proofHash","createdAt","anchor"];function pm(e,t,r){if(e!==void 0){var i=typeof e=="string"&&e.slice(0,2)==="0x"?e.slice(2):e;typeof i!="string"||!xC.test(i)||i.length%2!==0?r.push(t+" must be a hex string"):i.length!==64&&r.push(t+" must be 32 bytes (64 hex chars)")}}function EC(e){return e===null||Number.isInteger(e)}he.validateShape=function(e){if(!e||typeof e!="object")return["certificate must be an object"];var t=he.normalize(e),r=[];if(he.REQUIRED_FIELDS.forEach(function(o){t[o]===void 0&&r.push("missing required field: "+o)}),t.protocol!==void 0&&t.protocol!==he.PROTOCOL&&r.push('protocol must be "'+he.PROTOCOL+'"'),t.version!==void 0&&t.version!==he.REFERENCE_VERSION&&r.push("unsupported version: "+JSON.stringify(t.version)),t.mode!==void 0&&t.mode!==he.MODE.FULL&&t.mode!==he.MODE.HYBRID&&r.push('mode must be "full" or "hybrid"'),["algorithm","hashAlgorithm"].forEach(function(o){t[o]!==void 0&&(typeof t[o]!="string"||t[o].length===0)&&r.push(o+" must be a non-empty string")}),pm(t.payloadHash,"payloadHash",r),pm(t.proofHash,"proofHash",r),t.encoding!==void 0&&(t.encoding!==he.ENCODING.HEX&&t.encoding!==he.ENCODING.BASE64?r.push('encoding must be "hex" or "base64"'):["publicKey","signature"].forEach(function(o){if(t[o]!==void 0)try{he.decodeBytes(t[o],t.encoding,o).length===0&&r.push(o+" must not be empty")}catch{r.push(o+" is not valid "+t.encoding)}})),t.createdAt!==void 0&&(typeof t.createdAt!="string"||isNaN(new Date(t.createdAt).getTime()))&&r.push("createdAt must be an ISO 8601 date"),t.anchor!==void 0){var i=t.anchor;!i||typeof i!="object"?r.push("anchor must be an object"):(i.type!==he.ANCHOR_TYPE.DIRECT&&i.type!==he.ANCHOR_TYPE.BATCH&&r.push('anchor.type must be "direct" or "batch"'),(typeof i.txid!="string"||!/^[0-9a-fA-F]{64}$/.test(i.txid))&&r.push("anchor.txid must be a 32-byte hex string"),i.vout!==void 0&&!(Number.isInteger(i.vout)&&i.vout>=0)&&r.push("anchor.vout must be a non-negative integer"),i.blockHeight!==void 0&&!EC(i.blockHeight)&&r.push("anchor.blockHeight must be an integer or null"),i.blockTime!==void 0&&!EC(i.blockTime)&&r.push("anchor.blockTime must be an integer or null"),i.type===he.ANCHOR_TYPE.BATCH&&t.merkle===void 0&&r.push("batch certificates require a merkle inclusion proof"))}if(t.merkle!==void 0){var n=t.merkle;!n||typeof n!="object"?r.push("merkle must be an object"):(pm(n.root,"merkle.root",r),Number.isInteger(n.leafIndex)&&n.leafIndex>=0||r.push("merkle.leafIndex must be a non-negative integer"),Number.isInteger(n.leafCount)&&n.leafCount>=1?Number.isInteger(n.leafIndex)&&n.leafIndex>=n.leafCount&&r.push("merkle.leafIndex must be less than leafCount"):r.push("merkle.leafCount must be a positive integer"),Array.isArray(n.path)?n.path.forEach(function(o,a){!o||typeof o!="object"||o.side!=="left"&&o.side!=="right"?r.push("merkle.path["+a+'] must be { hash, side: "left" | "right" }'):pm(o.hash,"merkle.path["+a+"].hash",r)}):r.push("merkle.path must be an array"))}return r};he.attachSPV=function(e,t){Xr.checkArgument(e&&typeof e=="object","certificate is required"),Xr.checkArgument(t&&typeof t=="object","spv envelope is required");var r=e.proofHash,i=Object.assign({},e,{spv:{rawTx:t.rawTx,blockHash:t.blockHash,blockHeight:t.blockHeight,merkleProof:t.merkleProof,format:t.format||"TSC"}});if(i.proofHash!==r)throw new Error("attaching the SPV envelope changed proofHash; this must never happen");return i};he.canonicalize=function(e){return bW.stringify(e)};IC.exports=he});var BC=P((Kue,kC)=>{"use strict";g();var TC=Ze(),TW=fn(),PC=ut(),PW=Gt(),RC=Oe(),ca={},hh={};ca.register=function(e,t){return RC.checkArgument(typeof e=="string"&&e.length>0,"algorithm must be a non-empty string"),RC.checkArgument(t&&typeof t.verify=="function","suite must provide a verify(payloadHash, signature, publicKey) function"),hh[e]=t,ca};ca.get=function(e){return hh[e]};ca.list=function(){return Object.keys(hh).sort()};ca.unregister=function(e){return delete hh[e],ca};ca.verify=function(e,t,r,i){var n=hh[e];if(!n||!f.Buffer.isBuffer(t)||!f.Buffer.isBuffer(r)||!f.Buffer.isBuffer(i))return!1;try{return n.verify(t,r,i)===!0}catch{return!1}};ca.register("ECDSA-secp256k1",{verify:function(e,t,r){if(e.length!==32)return!1;var i;if(t.length===64)i=new PC(TC.fromBuffer(t.slice(0,32)),TC.fromBuffer(t.slice(32,64)));else if(t[0]===48)try{i=PC.fromDER(t)}catch{return!1}else return!1;var n;try{n=PW.fromBuffer(r)}catch{return!1}var o=new TW;return o.hashbuf=e,o.pubkey=n,o.sig=i,o.verify()===!0}});kC.exports=ca});var MC=P((Gue,LC)=>{"use strict";g();var RW=Tt(),Z_=Be(),kW=hm(),BW=F_(),ts=j_(),qr=AC(),$_=BC(),NC=K_(),qt={};qt.Encoding=BW;qt.Script=ts;qt.Certificate=qr;qt.Suites=$_;qt.Merkle=NC;qt.MODE=ts.MODE;qt.registerSuite=function(e,t){return $_.register(e,t)};qt.verifySignature=function(e){try{if(!e||typeof e!="object")return!1;var t=qr.toProofInput(e);return $_.verify(t.algorithm,t.payloadHash,t.signature,t.publicKey)}catch{return!1}};qt.txidFromRawTx=function(e){var t=f.Buffer.isBuffer(e)?e:f.Buffer.from(e,"hex");return f.Buffer.from(Z_.sha256sha256(t)).reverse().toString("hex")};qt.recordFromRawTx=function(e){try{for(var t=new RW(f.Buffer.isBuffer(e)?e.toString("hex"):e),r=0;r<t.outputs.length;r++){var i=t.outputs[r].script;if(ts.isNotaryHash(i))return ts.parse(i)}return null}catch{return null}};qt.recordMatchesCertificate=function(e,t){try{if(!e||!t)return!1;var r=qr.normalize(t),i=e.mode===ts.MODE.BATCH,n=!!(r.anchor&&r.anchor.type===qr.ANCHOR_TYPE.BATCH);if(i||n)return!i||!n||!r.merkle||!e.merkleRoot.equals(qr.decodeBytes(r.merkle.root,"hex","merkle.root"))?!1:e.leafCount===r.merkle.leafCount;var o=r.mode===qr.MODE.FULL?ts.MODE.FULL:r.mode===qr.MODE.HYBRID?ts.MODE.HYBRID:-1;if(e.mode!==o)return!1;var a=qr.toProofInput(r);return e.algorithm!==a.algorithm||e.hashAlgorithm!==a.hashAlgorithm||!e.payloadHash.equals(a.payloadHash)||!e.proofHash.equals(qr.decodeBytes(r.proofHash,"hex","proofHash"))?!1:e.mode===ts.MODE.HYBRID?e.publicKeyHash.equals(Z_.sha256(a.publicKey))&&e.signatureHash.equals(Z_.sha256(a.signature)):e.publicKey.equals(a.publicKey)&&e.signature.equals(a.signature)}catch{return!1}};qt.verifyAnchorSPV=function(e,t){var r=[];t=t||{};try{var i=qr.normalize(e),n=i&&i.spv;if(!n)return{valid:!1,errors:["certificate has no SPV envelope"]};if(!t.header)return{valid:!1,errors:["a block header is required: the verifier must obtain one itself rather than trust the certificate or its issuer for the anchor"]};var o=qt.txidFromRawTx(n.rawTx);(!i.anchor||o!==String(i.anchor.txid).toLowerCase())&&r.push("rawTx does not hash to anchor.txid");var a=qt.recordFromRawTx(n.rawTx);a?qt.recordMatchesCertificate(a,i)||r.push("on-chain record does not match the certificate"):r.push("no NotaryHash record found in rawTx");var s=n.merkleProof||{},u=kW.verifyTxInclusion({header:t.header,txid:o,index:s.index,nodes:s.nodes,requirePow:t.requirePow!==!1});return u.valid!==!0&&r.push(u.rootMatches===!1?"merkle proof does not fold to the header's root":"block header failed proof-of-work validation"),n.blockHash!==void 0&&String(n.blockHash).toLowerCase()!==String(u.blockHash).toLowerCase()&&r.push("the supplied header is not the block the SPV envelope names"),t.height!==void 0&&t.height!==n.blockHeight&&r.push("the supplied header is not at the height the SPV envelope names"),{valid:r.length===0,errors:r}}catch(c){return{valid:!1,errors:["anchor verification error: "+c.message]}}};qt.verifyBatchInclusion=function(e){try{var t=qr.normalize(e);return!t||!t.anchor||t.anchor.type!==qr.ANCHOR_TYPE.BATCH?{valid:!1,errors:['certificate is not batch-anchored (anchor.type is not "batch")']}:t.merkle?CC(t,"merkle inclusion proof does not fold to the batch root"):{valid:!1,errors:["batch certificate has no merkle proof"]}}catch(r){return{valid:!1,errors:["batch inclusion error: "+r.message]}}};function CC(e,t){try{var r=e.merkle,i=qr.decodeBytes(e.proofHash,"hex","proofHash"),n=qr.decodeBytes(r.root,"hex","merkle.root");return NC.verifyAuditPath(i,r.path,n)?{valid:!0,errors:[]}:{valid:!1,errors:[t]}}catch(o){return{valid:!1,errors:["batch inclusion error: "+o.message]}}}qt.verify=function(e,t){t=t||{};var r={valid:!1,shape:[],signature:!1,proofIntegrity:!1,anchor:!1,errors:[]};if(r.legacy=qr.isLegacy(e),e=qr.normalize(e),r.shape=qr.validateShape(e),r.shape.length)return r.errors=r.shape.slice(),r;if(r.signature=qt.verifySignature(e),r.signature||r.errors.push("signature does not verify"),r.proofIntegrity=qr.proofHashMatches(e),r.proofIntegrity||r.errors.push("proofHash does not match the certificate fields"),t.skipAnchor)return r.errors.push("anchor not checked (skipAnchor): this certificate is NOT verified"),r;var i=qt.verifyAnchorSPV(e,t);r.anchor=i.valid,i.errors.forEach(function(a){r.errors.push(a)}),r.batchInclusion=!0;var n=!!(e.anchor&&e.anchor.type===qr.ANCHOR_TYPE.BATCH);if(n||e.merkle!==void 0){var o=n?qt.verifyBatchInclusion(e):CC(e,"merkle proof does not fold to its stated root");r.batchInclusion=o.valid,o.errors.forEach(function(a){r.errors.push(a)})}return r.valid=r.signature&&r.proofIntegrity&&r.anchor&&r.batchInclusion,r};qt.isValid=function(e,t){return qt.verify(e,t).valid===!0};LC.exports=qt});var FC=P((Yue,UC)=>{"use strict";g();var NW=Be(),gm=Qe(),CW=Zr(),LW=Gt(),DC=Ti(),qC=sn(),X_=fn(),HC=ut(),MW=NW.sha256sha256,DW=ei(),Hc=Oe(),Ht=function e(t){return this instanceof e?(Hc.checkArgument(gm.isString(t)||f.Buffer.isBuffer(t),"First argument should be a string or Buffer"),gm.isString(t)&&(this.messageBuffer=f.Buffer.from(t)),f.Buffer.isBuffer(t)&&(this.messageBuffer=t),this):new e(t)};Ht.sign=function(e,t){return new Ht(e).sign(t)};Ht.verify=function(e,t,r){return new Ht(e).verify(t,r)};Ht.MAGIC_BYTES=f.Buffer.from(`Bitcoin Signed Message:
|
|
74
|
+
`))}}};M.prototype.verify=function(e,t,r,i,n,o){this.eraHint=null;var a=this._verifyCore(e,t,r,i,n,o);return a||this._eraDiagnose(n),a};M._resetEraWarning=function(){c_=!1};M.mainnetFlags=function(e){e=e||{};var t=M.SCRIPT_VERIFY_P2SH|M.SCRIPT_VERIFY_STRICTENC|M.SCRIPT_VERIFY_DERSIG|M.SCRIPT_VERIFY_SIGPUSHONLY|M.SCRIPT_VERIFY_LOW_S|M.SCRIPT_VERIFY_NULLFAIL|M.SCRIPT_VERIFY_MINIMALDATA|M.SCRIPT_ENABLE_SIGHASH_FORKID|M.SCRIPT_ENABLE_MAGNETIC_OPCODES|M.SCRIPT_ENABLE_MONOLITH_OPCODES|M.SCRIPT_GENESIS|M.SCRIPT_UTXO_AFTER_GENESIS;return e.afterChronicle!==!1&&(t|=M.SCRIPT_ENABLE_CHRONICLE|M.SCRIPT_UTXO_AFTER_CHRONICLE),t};M.currentConsensusFlags=function(){return M.SCRIPT_ENABLE_MONOLITH_OPCODES|M.SCRIPT_ENABLE_MAGNETIC_OPCODES|M.SCRIPT_GENESIS|M.SCRIPT_UTXO_AFTER_GENESIS|M.SCRIPT_ENABLE_CHRONICLE|M.SCRIPT_UTXO_AFTER_CHRONICLE|M.SCRIPT_ENABLE_SIGHASH_FORKID|M.SCRIPT_VERIFY_SIGPUSHONLY|M.SCRIPT_VERIFY_LOW_S|M.SCRIPT_VERIFY_NULLFAIL};M.useMainnetConsensus=function(e){return e=e||{},M.useGenesisLimits(e.max),M.mainnetFlags(e)};M.SEQUENCE_LOCKTIME_DISABLE_FLAG=1<<31;M.SEQUENCE_LOCKTIME_TYPE_FLAG=1<<22;M.SEQUENCE_LOCKTIME_MASK=65535;M.castToBool=function(e){for(var t=0;t<e.length;t++)if(e[t]!==0)return!(t===e.length-1&&e[t]===128);return!1};M.prototype.checkSignatureEncoding=function(e){var t;if(e.length===0)return!0;if((this.flags&(M.SCRIPT_VERIFY_DERSIG|M.SCRIPT_VERIFY_LOW_S|M.SCRIPT_VERIFY_STRICTENC))!==0&&!Ya.isTxDER(e))return this.errstr="SCRIPT_ERR_SIG_DER_INVALID_FORMAT",!1;if((this.flags&M.SCRIPT_VERIFY_LOW_S)!==0){if(t=Ya.fromTxFormat(e),!t.hasLowS())return this.errstr="SCRIPT_ERR_SIG_DER_HIGH_S",!1}else if((this.flags&M.SCRIPT_VERIFY_STRICTENC)!==0){if(t=Ya.fromTxFormat(e),!t.hasDefinedHashtype())return this.errstr="SCRIPT_ERR_SIG_HASHTYPE",!1;if(!(this.flags&M.SCRIPT_ENABLE_SIGHASH_FORKID)&&t.nhashtype&Ya.SIGHASH_FORKID)return this.errstr="SCRIPT_ERR_ILLEGAL_FORKID",!1;if(!(this.flags&M.SCRIPT_CHRONICLE)&&t.nhashtype&Ya.SIGHASH_CHRONICLE)return this.errstr="SCRIPT_ERR_ILLEGAL_CHRONICLE",!1;if(this.flags&M.SCRIPT_ENABLE_SIGHASH_FORKID&&!(t.nhashtype&Ya.SIGHASH_FORKID))return this.errstr="SCRIPT_ERR_MUST_USE_FORKID",!1}return!0};M.prototype.checkPubkeyEncoding=function(e){return(this.flags&M.SCRIPT_VERIFY_STRICTENC)!==0&&!u_.isValid(e)?(this.errstr="SCRIPT_ERR_PUBKEYTYPE",!1):!0};M.prototype.isAfterGenesis=function(){return(this.flags&M.SCRIPT_UTXO_AFTER_GENESIS)!==0};M.prototype.isAfterChronicle=function(){return(this.flags&(M.SCRIPT_UTXO_AFTER_CHRONICLE|M.SCRIPT_ENABLE_CHRONICLE))!==0};M.prototype.maxScriptElementSize=function(){return this.isAfterGenesis()?M.UNLIMITED:M.MAX_SCRIPT_ELEMENT_SIZE};M.prototype.maxScriptSize=function(){return this.isAfterGenesis()?M.UNLIMITED:M.MAX_SCRIPT_SIZE};M.prototype.maxOpsPerScript=function(){return this.isAfterGenesis()?M.UNLIMITED:M.MAX_OPS_PER_SCRIPT};M.prototype.maxScriptNumLength=function(){return this.isAfterChronicle()?M.MAX_SCRIPT_NUM_LENGTH_AFTER_CHRONICLE:this.isAfterGenesis()?M.MAX_SCRIPT_NUM_LENGTH_AFTER_GENESIS:M.MAXIMUM_ELEMENT_SIZE};M.prototype.maxStackSize=function(){return this.isAfterGenesis()?M.UNLIMITED:M.MAX_STACK_SIZE};M.prototype.maxStackMemoryUsage=function(){return this.isAfterGenesis()?M.MAX_STACK_MEMORY_USAGE_AFTER_GENESIS:M.UNLIMITED};M.prototype.stackMemoryUsage=function(){let e=M.STACK_ELEMENT_OVERHEAD,t=(this.stack.length+this.altstack.length)*e;for(let r=0;r<this.stack.length;r++)t+=this.stack[r].length;for(let r=0;r<this.altstack.length;r++)t+=this.altstack[r].length;return t};M.prototype.checkStackLimits=function(){if(this.stack.length+this.altstack.length>this.maxStackSize())return"SCRIPT_ERR_STACK_SIZE";let e=this.maxStackMemoryUsage();return e!==M.UNLIMITED&&this.stackMemoryUsage()>e?"SCRIPT_ERR_STACK_SIZE":null};M.prototype.maxPubKeysPerMultisig=function(){return this.isAfterGenesis()?M.MAX_PUBKEYS_PER_MULTISIG_AFTER_GENESIS:20};M._isMinimallyEncoded=function(e,t){return t=t||M.MAXIMUM_ELEMENT_SIZE,!(e.length>t||e.length>0&&(e[e.length-1]&127)===0&&(e.length<=1||(e[e.length-2]&128)===0))};M._minimallyEncode=function(e){if(e.length===0)return e;var t=e[e.length-1];if(t&127)return e;if(e.length===1)return f.Buffer.from("");if(e[e.length-2]&128)return e;e=f.Buffer.from(e);for(var r=e.length-1;r>0;r--)if(e[r-1]!==0)return e[r-1]&128?e[r++]=t:e[r-1]|=t,e.slice(0,r);return f.Buffer.from("")};M.prototype.evaluate=function(){if(this.script.toBuffer().length>this.maxScriptSize())return this.errstr="SCRIPT_ERR_SCRIPT_SIZE",!1;try{for(;this.pc<this.script.chunks.length;){let r={pc:this.pc,opcode:U.fromNumber(this.script.chunks[this.pc].opcodenum)};var e=this.step();if(!e)return!1;if(this._callbackStep(r),this.returned)return!0;let i=this.checkStackLimits();if(i)return this.errstr=i,!1}let t=this.checkStackLimits();if(t)return this.errstr=t,!1}catch(t){return this.errstr=t.scriptErr||"SCRIPT_ERR_UNKNOWN_ERROR: "+t,!1}return this.vfExec.length>0?(this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1):!0};M.prototype._callbackStep=function(e){if(typeof this.stepListener=="function")try{this.stepListener(e,SB(this.stack),SB(this.altstack))}catch(t){console.log(`Error in Step callback:${t}`)}};M.prototype.checkLockTime=function(e){if(!(this.tx.nLockTime<M.LOCKTIME_THRESHOLD&&e.lt(M.LOCKTIME_THRESHOLD_BN)||this.tx.nLockTime>=M.LOCKTIME_THRESHOLD&&e.gte(M.LOCKTIME_THRESHOLD_BN))||e.gt(new Se(this.tx.nLockTime)))return!1;var t=this.tx.inputs[this.nin];return!(!t||t.isFinal())};M.prototype.checkSequence=function(e){var t=this.tx.inputs[this.nin];if(!t)return!1;var r=t.sequenceNumber;if(this.tx.version<2||r&M.SEQUENCE_LOCKTIME_DISABLE_FLAG)return!1;var i=M.SEQUENCE_LOCKTIME_TYPE_FLAG|M.SEQUENCE_LOCKTIME_MASK,n=new Se(r&i),o=e.and(new Se(i)),a=new Se(M.SEQUENCE_LOCKTIME_TYPE_FLAG);return!(!(n.lt(a)&&o.lt(a)||n.gte(a)&&o.gte(a))||o.gt(n))};function d9(e,t){let r=e;for(;r.length<t;)r=f.Buffer.concat([f.Buffer.from([0]),r]);return r}function EB(e){var t=f.Buffer.alloc(4);return t.writeInt32LE(e|0,0),t}M.prototype.step=function(){var e=this;function t(me){return e.stack[e.stack.length+me]}function r(me){switch(me){case U.OP_2MUL:case U.OP_2DIV:if(!e.isAfterChronicle())return!0;break;case U.OP_INVERT:case U.OP_MUL:case U.OP_LSHIFT:case U.OP_RSHIFT:if((e.flags&M.SCRIPT_ENABLE_MAGNETIC_OPCODES)===0)return!0;break;case U.OP_DIV:case U.OP_MOD:case U.OP_SPLIT:case U.OP_CAT:case U.OP_AND:case U.OP_OR:case U.OP_XOR:case U.OP_BIN2NUM:case U.OP_NUM2BIN:return!1;default:break}return!1}var i=(this.flags&M.SCRIPT_VERIFY_MINIMALDATA)!==0,n,o,a,s,u,c,l,d,p,y,_,T,R,B,H,F,I,k=this.script.chunks[this.pc];this.pc++;var D=k.opcodenum,j=this.vfExec.indexOf(!1)===-1&&(!this.nonTopLevelReturnAfterGenesis||D===U.OP_RETURN);if(Wg.isUndefined(D))return this.errstr="SCRIPT_ERR_UNDEFINED_OPCODE",!1;if(k.buf&&k.buf.length>this.maxScriptElementSize())return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;if(D>U.OP_16&&++this.nOpCount>this.maxOpsPerScript())return this.errstr="SCRIPT_ERR_OP_COUNT",!1;if(r(D)&&(!this.isAfterGenesis()||j))return this.errstr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(j&&D>=0&&D<=U.OP_PUSHDATA4){if(i&&!this.script.checkMinimalPush(this.pc-1))return this.errstr="SCRIPT_ERR_MINIMALDATA",!1;if(!k.buf)this.stack.push(M.false);else{if(k.len!==k.buf.length)return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1;this.stack.push(k.buf)}}else if(j||U.OP_IF<=D&&D<=U.OP_ENDIF)switch(D){case U.OP_1NEGATE:case U.OP_1:case U.OP_2:case U.OP_3:case U.OP_4:case U.OP_5:case U.OP_6:case U.OP_7:case U.OP_8:case U.OP_9:case U.OP_10:case U.OP_11:case U.OP_12:case U.OP_13:case U.OP_14:case U.OP_15:case U.OP_16:u=D-(U.OP_1-1),n=new Se(u).toScriptNumBuffer(),this.stack.push(n);break;case U.OP_NOP:break;case U.OP_NOP2:case U.OP_CHECKLOCKTIMEVERIFY:if(!(this.flags&M.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)||this.isAfterGenesis()){if(this.flags&M.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var K=Se.fromScriptNumBuffer(this.stack[this.stack.length-1],i,5);if(K.lt(new Se(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(K))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case U.OP_NOP3:case U.OP_CHECKSEQUENCEVERIFY:if(!(this.flags&M.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY)||this.isAfterGenesis()){if(this.flags&M.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var G=Se.fromScriptNumBuffer(t(-1),i,5);if(G.lt(new Se(0)))return this.errstr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if((G&M.SEQUENCE_LOCKTIME_DISABLE_FLAG)!==0)break;if(!this.checkSequence(G))return this.errstr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1;break;case U.OP_NOP1:case U.OP_NOP9:case U.OP_NOP10:if(this.flags&M.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case U.OP_LSHIFTNUM:case U.OP_RSHIFTNUM:if(!this.isAfterChronicle()){if(this.flags&M.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var S=this.maxScriptNumLength(),h=Se.fromScriptNumBuffer(t(-1),i,S);if(h.isNeg())return this.errstr="SCRIPT_ERR_INVALID_NUMBER_RANGE",!1;this.stack.pop();var v=Se.fromScriptNumBuffer(t(-1),i,S);this.stack.pop();var w=h.toNumber(),E=v.isNeg(),A=v.abs(),L;if(D===U.OP_LSHIFTNUM){var N=v.toScriptNumBuffer().length;if(N+Math.floor(w/8)>S)return this.errstr="SCRIPT_ERR_SCRIPTNUM_OVERFLOW",!1;L=A.shln(w)}else L=w>=A.bitLength()?new Se(0):A.shrn(w);if(E&&!L.isZero()&&(L=L.neg()),L.toScriptNumBuffer().length>S)return this.errstr="SCRIPT_ERR_SCRIPTNUM_OVERFLOW",!1;this.stack.push(L.toScriptNumBuffer());break;case U.OP_VER:if(!this.isAfterChronicle())return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1;if(this.tx==null)return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR",!1;this.stack.push(EB(this.tx.version));break;case U.OP_VERIF:case U.OP_VERNOTIF:if(!this.isAfterChronicle()){if(this.isAfterGenesis()&&!j)break;return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}if(F=!1,j){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;if(this.tx==null)return this.errstr="SCRIPT_ERR_UNKNOWN_ERROR",!1;n=t(-1),F=n.length===4&&n.equals(EB(this.tx.version)),D===U.OP_VERNOTIF&&(F=!F),this.stack.pop()}this.vfExec.push(F),this.vfElse.push(!1);break;case U.OP_IF:case U.OP_NOTIF:if(F=!1,j){if(this.stack.length<1)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;if(n=t(-1),this.flags&M.SCRIPT_VERIFY_MINIMALIF){if(n.length>1)return this.errstr="SCRIPT_ERR_MINIMALIF",!1;if(n.length===1&&n[0]!==1)return this.errstr="SCRIPT_ERR_MINIMALIF",!1}F=M.castToBool(n),D===U.OP_NOTIF&&(F=!F),this.stack.pop()}this.vfExec.push(F),this.vfElse.push(!1);break;case U.OP_ELSE:if(this.vfExec.length===0||this.vfElse[this.vfElse.length-1]&&this.isAfterGenesis())return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec[this.vfExec.length-1]=!this.vfExec[this.vfExec.length-1],this.vfElse[this.vfElse.length-1]=!0;break;case U.OP_ENDIF:if(this.vfExec.length===0)return this.errstr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.vfExec.pop(),this.vfElse.pop();break;case U.OP_VERIFY:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(n=t(-1),F=M.castToBool(n),F)this.stack.pop();else return this.errstr="SCRIPT_ERR_VERIFY",!1;break;case U.OP_RETURN:if(this.isAfterGenesis()){if(this.vfExec.length===0){this.returned=!0;break}this.nonTopLevelReturnAfterGenesis=!0;break}return this.errstr="SCRIPT_ERR_OP_RETURN",!1;case U.OP_TOALTSTACK:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altstack.push(this.stack.pop());break;case U.OP_FROMALTSTACK:if(this.altstack.length<1)return this.errstr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altstack.pop());break;case U.OP_2DROP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case U.OP_2DUP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;o=t(-2),a=t(-1),this.stack.push(f.Buffer.from(o)),this.stack.push(f.Buffer.from(a));break;case U.OP_3DUP:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;o=t(-3),a=t(-2);var x=t(-1);this.stack.push(f.Buffer.from(o)),this.stack.push(f.Buffer.from(a)),this.stack.push(f.Buffer.from(x));break;case U.OP_2OVER:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;o=t(-4),a=t(-3),this.stack.push(f.Buffer.from(o)),this.stack.push(f.Buffer.from(a));break;case U.OP_2ROT:if(this.stack.length<6)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;s=this.stack.splice(this.stack.length-6,2),this.stack.push(s[0]),this.stack.push(s[1]);break;case U.OP_2SWAP:if(this.stack.length<4)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;s=this.stack.splice(this.stack.length-4,2),this.stack.push(s[0]),this.stack.push(s[1]);break;case U.OP_IFDUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;n=t(-1),F=M.castToBool(n),F&&this.stack.push(f.Buffer.from(n));break;case U.OP_DEPTH:n=new Se(this.stack.length).toScriptNumBuffer(),this.stack.push(n);break;case U.OP_DROP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case U.OP_DUP:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(f.Buffer.from(t(-1)));break;case U.OP_NIP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case U.OP_OVER:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(f.Buffer.from(t(-2)));break;case U.OP_PICK:case U.OP_ROLL:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(n=t(-1),d=Se.fromScriptNumBuffer(n,i,this.maxScriptNumLength()),u=d.toNumber(),this.stack.pop(),u<0||u>=this.stack.length)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;n=t(-u-1),D===U.OP_ROLL&&this.stack.splice(this.stack.length-u-1,1),this.stack.push(f.Buffer.from(n));break;case U.OP_ROT:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;c=t(-3),l=t(-2);var m=t(-1);this.stack[this.stack.length-3]=l,this.stack[this.stack.length-2]=m,this.stack[this.stack.length-1]=c;break;case U.OP_SWAP:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;c=t(-2),l=t(-1),this.stack[this.stack.length-2]=l,this.stack[this.stack.length-1]=c;break;case U.OP_TUCK:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,f.Buffer.from(t(-1)));break;case U.OP_SIZE:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;d=new Se(t(-1).length),this.stack.push(d.toScriptNumBuffer());break;case U.OP_AND:case U.OP_OR:case U.OP_XOR:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(o=t(-2),a=t(-1),o.length!==a.length)return this.errstr="SCRIPT_ERR_INVALID_OPERAND_SIZE",!1;switch(s=f.Buffer.alloc(o.length),D){case U.OP_AND:for(let me=0;me<o.length;me++)s[me]=o[me]&a[me];break;case U.OP_OR:for(let me=0;me<o.length;me++)s[me]=o[me]|a[me];break;case U.OP_XOR:for(let me=0;me<o.length;me++)s[me]=o[me]^a[me];break;default:break}this.stack.pop(),this.stack[this.stack.length-1]=s;break;case U.OP_INVERT:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;n=t(-1),o=f.Buffer.alloc(n.length);for(let me=0;me<n.length;me++)o[me]=~n[me]&255;this.stack[this.stack.length-1]=o;break;case U.OP_LSHIFT:case U.OP_RSHIFT:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(o=t(-2),o.length===0)this.stack.pop();else{if(p=new Se(o),y=Se.fromScriptNumBuffer(t(-1),i,this.maxScriptNumLength()),u=y.toNumber(),u<0)return this.errstr="SCRIPT_ERR_INVALID_NUMBER_RANGE",!1;this.stack.pop(),this.stack.pop();let me;D===U.OP_LSHIFT&&(me=p.ushln(u)),D===U.OP_RSHIFT&&(me=p.ushrn(u));let Ee=d9(f.Buffer.from(me.toArray().slice(o.length*-1)),o.length);this.stack.push(Ee)}break;case U.OP_EQUAL:case U.OP_EQUALVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;o=t(-2),a=t(-1);var O=o.toString("hex")===a.toString("hex");if(this.stack.pop(),this.stack.pop(),this.stack.push(O?M.true:M.false),D===U.OP_EQUALVERIFY)if(O)this.stack.pop();else return this.errstr="SCRIPT_ERR_EQUALVERIFY",!1;break;case U.OP_2MUL:case U.OP_2DIV:case U.OP_1ADD:case U.OP_1SUB:case U.OP_NEGATE:case U.OP_ABS:case U.OP_NOT:case U.OP_0NOTEQUAL:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(n=t(-1),d=Se.fromScriptNumBuffer(n,i,this.maxScriptNumLength()),D){case U.OP_2MUL:d=d.mul(new Se(2));break;case U.OP_2DIV:d=d.div(new Se(2));break;case U.OP_1ADD:d=d.add(Se.One);break;case U.OP_1SUB:d=d.sub(Se.One);break;case U.OP_NEGATE:d=d.neg();break;case U.OP_ABS:d.cmp(Se.Zero)<0&&(d=d.neg());break;case U.OP_NOT:d=new Se((d.cmp(Se.Zero)===0)+0);break;case U.OP_0NOTEQUAL:d=new Se((d.cmp(Se.Zero)!==0)+0);break}this.stack.pop(),this.stack.push(d.toScriptNumBuffer());break;case U.OP_ADD:case U.OP_SUB:case U.OP_MUL:case U.OP_MOD:case U.OP_DIV:case U.OP_BOOLAND:case U.OP_BOOLOR:case U.OP_NUMEQUAL:case U.OP_NUMEQUALVERIFY:case U.OP_NUMNOTEQUAL:case U.OP_LESSTHAN:case U.OP_GREATERTHAN:case U.OP_LESSTHANOREQUAL:case U.OP_GREATERTHANOREQUAL:case U.OP_MIN:case U.OP_MAX:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;switch(p=Se.fromScriptNumBuffer(t(-2),i,this.maxScriptNumLength()),y=Se.fromScriptNumBuffer(t(-1),i,this.maxScriptNumLength()),d=new Se(0),D){case U.OP_ADD:d=p.add(y);break;case U.OP_SUB:d=p.sub(y);break;case U.OP_MUL:d=p.mul(y);break;case U.OP_DIV:if(y.cmp(Se.Zero)===0)return this.errstr="SCRIPT_ERR_DIV_BY_ZERO",!1;d=p.div(y);break;case U.OP_MOD:if(y.cmp(Se.Zero)===0)return this.errstr="SCRIPT_ERR_MOD_BY_ZERO",!1;d=p.mod(y);break;case U.OP_BOOLAND:d=new Se((p.cmp(Se.Zero)!==0&&y.cmp(Se.Zero)!==0)+0);break;case U.OP_BOOLOR:d=new Se((p.cmp(Se.Zero)!==0||y.cmp(Se.Zero)!==0)+0);break;case U.OP_NUMEQUAL:d=new Se((p.cmp(y)===0)+0);break;case U.OP_NUMEQUALVERIFY:d=new Se((p.cmp(y)===0)+0);break;case U.OP_NUMNOTEQUAL:d=new Se((p.cmp(y)!==0)+0);break;case U.OP_LESSTHAN:d=new Se((p.cmp(y)<0)+0);break;case U.OP_GREATERTHAN:d=new Se((p.cmp(y)>0)+0);break;case U.OP_LESSTHANOREQUAL:d=new Se((p.cmp(y)<=0)+0);break;case U.OP_GREATERTHANOREQUAL:d=new Se((p.cmp(y)>=0)+0);break;case U.OP_MIN:d=p.cmp(y)<0?p:y;break;case U.OP_MAX:d=p.cmp(y)>0?p:y;break}if(this.stack.pop(),this.stack.pop(),this.stack.push(d.toScriptNumBuffer()),D===U.OP_NUMEQUALVERIFY)if(M.castToBool(t(-1)))this.stack.pop();else return this.errstr="SCRIPT_ERR_NUMEQUALVERIFY",!1;break;case U.OP_WITHIN:if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;p=Se.fromScriptNumBuffer(t(-3),i,this.maxScriptNumLength()),y=Se.fromScriptNumBuffer(t(-2),i,this.maxScriptNumLength());var z=Se.fromScriptNumBuffer(t(-1),i,this.maxScriptNumLength());F=y.cmp(p)<=0&&p.cmp(z)<0,this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(F?M.true:M.false);break;case U.OP_RIPEMD160:case U.OP_SHA1:case U.OP_SHA256:case U.OP_HASH160:case U.OP_HASH256:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;n=t(-1);var W;D===U.OP_RIPEMD160?W=eh.ripemd160(n):D===U.OP_SHA1?W=eh.sha1(n):D===U.OP_SHA256?W=eh.sha256(n):D===U.OP_HASH160?W=eh.sha256ripemd160(n):D===U.OP_HASH256&&(W=eh.sha256sha256(n)),this.stack.pop(),this.stack.push(W);break;case U.OP_CODESEPARATOR:this.pbegincodehash=this.pc;break;case U.OP_CHECKSIG:case U.OP_CHECKSIGVERIFY:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(_=t(-2),T=t(-1),!this.checkSignatureEncoding(_)||!this.checkPubkeyEncoding(T))return!1;R=new th().set({chunks:this.script.chunks.slice(this.pbegincodehash)});var te=new th().add(_);R.findAndDelete(te);try{B=Ya.fromTxFormat(_),H=u_.fromBuffer(T,!1),I=this.tx.verifySignature(B,H,this.nin,R,this.satoshisBN,this.flags)}catch{I=!1}if(!I&&this.flags&M.SCRIPT_VERIFY_NULLFAIL&&_.length)return this.errstr="SCRIPT_ERR_NULLFAIL",!1;if(this.stack.pop(),this.stack.pop(),this.stack.push(I?M.true:M.false),D===U.OP_CHECKSIGVERIFY)if(I)this.stack.pop();else return this.errstr="SCRIPT_ERR_CHECKSIGVERIFY",!1;break;case U.OP_CHECKMULTISIG:case U.OP_CHECKMULTISIGVERIFY:var ie=1;if(this.stack.length<ie)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var se=Se.fromScriptNumBuffer(t(-ie),i,this.maxScriptNumLength()).toNumber();if(se<0||se>this.maxPubKeysPerMultisig())return this.errstr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=se,this.nOpCount>this.maxOpsPerScript())return this.errstr="SCRIPT_ERR_OP_COUNT",!1;var ae=++ie;ie+=se;var we=se+2;if(this.stack.length<ie)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var ve=Se.fromScriptNumBuffer(t(-ie),i,this.maxScriptNumLength()).toNumber();if(ve<0||ve>se)return this.errstr="SCRIPT_ERR_SIG_COUNT",!1;var C=++ie;if(ie+=ve,this.stack.length<ie)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;R=new th().set({chunks:this.script.chunks.slice(this.pbegincodehash)});for(var V=0;V<ve;V++)_=t(-C-V),R.findAndDelete(new th().add(_));for(I=!0;I&&ve>0;){if(_=t(-C),T=t(-ae),!this.checkSignatureEncoding(_)||!this.checkPubkeyEncoding(T))return!1;var Y;try{B=Ya.fromTxFormat(_),H=u_.fromBuffer(T,!1),Y=this.tx.verifySignature(B,H,this.nin,R,this.satoshisBN,this.flags)}catch{Y=!1}Y&&(C++,ve--),ae++,se--,ve>se&&(I=!1)}for(;ie-- >1;){if(!I&&this.flags&M.SCRIPT_VERIFY_NULLFAIL&&!we&&t(-1).length)return this.errstr="SCRIPT_ERR_NULLFAIL",!1;we>0&&we--,this.stack.pop()}if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&M.SCRIPT_VERIFY_NULLDUMMY&&t(-1).length)return this.errstr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(I?M.true:M.false),D===U.OP_CHECKMULTISIGVERIFY)if(I)this.stack.pop();else return this.errstr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1;break;case U.OP_CAT:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(o=t(-2),a=t(-1),o.length+a.length>this.maxScriptElementSize())return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;this.stack[this.stack.length-2]=f.Buffer.concat([o,a]),this.stack.pop();break;case U.OP_SPLIT:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;o=t(-2);var X=Se.fromScriptNumBuffer(t(-1),i,this.maxScriptNumLength()).toNumber();if(X<0||X>o.length)return this.errstr="SCRIPT_ERR_INVALID_SPLIT_RANGE",!1;var de=f.Buffer.from(o);this.stack[this.stack.length-2]=de.slice(0,X),this.stack[this.stack.length-1]=de.slice(X);break;case U.OP_LEFT:case U.OP_RIGHT:if(!this.isAfterChronicle()){if(this.flags&M.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(o=t(-2),u=Se.fromScriptNumBuffer(t(-1),i,this.maxScriptNumLength()).toNumber(),u<0||u>o.length)return this.errstr="SCRIPT_ERR_INVALID_NUMBER_RANGE",!1;this.stack.pop(),D===U.OP_LEFT?this.stack[this.stack.length-1]=f.Buffer.from(o).slice(0,u):this.stack[this.stack.length-1]=f.Buffer.from(o).slice(o.length-u);break;case U.OP_SUBSTR:if(!this.isAfterChronicle()){if(this.flags&M.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errstr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<3)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;o=t(-3);var ue=Se.fromScriptNumBuffer(t(-1),i,this.maxScriptNumLength()).toNumber(),le=Se.fromScriptNumBuffer(t(-2),i,this.maxScriptNumLength()).toNumber();if(le<0||le>=o.length||ue<0||ue>o.length-le)return this.errstr="SCRIPT_ERR_INVALID_NUMBER_RANGE",!1;this.stack.pop(),this.stack.pop(),this.stack[this.stack.length-1]=f.Buffer.from(o).slice(le,le+ue);break;case U.OP_NUM2BIN:if(this.stack.length<2)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;var ye=Se.fromScriptNumBuffer(t(-1),i,this.maxScriptNumLength()).toNumber();if(ye<0||ye>this.maxScriptElementSize())return this.errstr="SCRIPT_ERR_PUSH_SIZE",!1;this.stack.pop();var ge=t(-1);if(ge=M._minimallyEncode(ge),ge.length>ye)return this.errstr="SCRIPT_ERR_IMPOSSIBLE_ENCODING",!1;if(ge.length===ye){this.stack[this.stack.length-1]=ge;break}var be=0;ge.length>0&&(ge=f.Buffer.from(ge),be=ge[ge.length-1]&128,ge[ge.length-1]&=127);var ke=f.Buffer.alloc(ye);ge.copy(ke,0);for(var Le=ge.length-1;Le++<ye-2;)ke[Le]=0;ke[Le]=be,this.stack[this.stack.length-1]=ke;break;case U.OP_BIN2NUM:if(this.stack.length<1)return this.errstr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(o=t(-1),a=M._minimallyEncode(o),this.stack[this.stack.length-1]=a,!M._isMinimallyEncoded(a,this.maxScriptNumLength()))return this.errstr="SCRIPT_ERR_INVALID_NUMBER_RANGE",!1;break;default:return this.errstr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}});var tt=P((dse,f_)=>{g();f_.exports=Lg();f_.exports.Interpreter=cn()});var Ti=P((gse,TB)=>{"use strict";g();var l_=Qe(),aa=Oe(),p9=ci(),OB=wc(),ln=ta(),IB=Be(),AB=ei(),h_=Gt();function pe(e,t,r){if(!(this instanceof pe))return new pe(e,t,r);if(l_.isArray(e)&&l_.isNumber(t))return pe.createMultisig(e,t,r);if(e instanceof pe)return e;if(aa.checkArgument(e,"First argument is required, please include address data.","guide/address.html"),t&&!ln.get(t))throw new TypeError('Second argument must be "livenet", "testnet", or "regtest".');if(r&&r!==pe.PayToPublicKeyHash&&r!==pe.PayToScriptHash)throw new TypeError('Third argument must be "pubkeyhash" or "scripthash".');var i=this._classifyArguments(e,t,r);return i.network=i.network||ln.get(t)||ln.defaultNetwork,i.type=i.type||r||pe.PayToPublicKeyHash,AB.defineImmutable(this,{hashBuffer:i.hashBuffer,network:i.network,type:i.type}),this}pe.prototype._classifyArguments=function(e,t,r){if((e instanceof f.Buffer||e instanceof Uint8Array)&&e.length===20)return pe._transformHash(e);if((e instanceof f.Buffer||e instanceof Uint8Array)&&e.length===21)return pe._transformBuffer(e,t,r);if(e instanceof h_)return pe._transformPublicKey(e);if(e instanceof rh())return pe._transformScript(e,t);if(typeof e=="string")return pe._transformString(e,t,r);if(l_.isObject(e))return pe._transformObject(e);throw new TypeError("First argument is an unrecognized data format.")};pe.PayToPublicKeyHash="pubkeyhash";pe.PayToScriptHash="scripthash";pe._transformHash=function(e){var t={};if(!(e instanceof f.Buffer)&&!(e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(e.length!==20)throw new TypeError("Address hashbuffers must be exactly 20 bytes.");return t.hashBuffer=e,t};pe._transformObject=function(e){return aa.checkArgument(e.hash||e.hashBuffer,"Must provide a `hash` or `hashBuffer` property"),aa.checkArgument(e.type,"Must provide a `type` property"),{hashBuffer:e.hash?f.Buffer.from(e.hash,"hex"):e.hashBuffer,network:ln.get(e.network)||ln.defaultNetwork,type:e.type}};pe._classifyFromVersion=function(e){var t={},r=ln.get(e[0],"pubkeyhash"),i=ln.get(e[0],"scripthash");return r?(t.network=r,t.type=pe.PayToPublicKeyHash):i&&(t.network=i,t.type=pe.PayToScriptHash),t};pe._transformBuffer=function(e,t,r){var i={};if(!(e instanceof f.Buffer)&&!(e instanceof Uint8Array))throw new TypeError("Address supplied is not a buffer.");if(e.length!==21)throw new TypeError("Address buffers must be exactly 21 bytes.");var n=ln.get(t),o=pe._classifyFromVersion(e);if(t&&!n)throw new TypeError("Unknown network");if(!o.network||n&&n!==o.network)throw new TypeError("Address has mismatched network type.");if(!o.type||r&&r!==o.type)throw new TypeError("Address has mismatched type.");return i.hashBuffer=e.slice(1),i.network=o.network,i.type=o.type,i};pe._transformPublicKey=function(e){var t={};if(!(e instanceof h_))throw new TypeError("Address must be an instance of PublicKey.");return t.hashBuffer=IB.sha256ripemd160(e.toBuffer()),t.type=pe.PayToPublicKeyHash,t};pe._transformScript=function(e,t){aa.checkArgument(e instanceof rh(),"script must be a Script instance");var r=e.getAddressInfo(t);if(!r)throw new p9.Script.CantDeriveAddress(e);return r};pe.createMultisig=function(e,t,r){return r=r||e[0].network||ln.defaultNetwork,pe.payingTo(rh().buildMultisigOut(e,t),r)};pe._transformString=function(e,t,r){if(typeof e!="string")throw new TypeError("data parameter supplied is not a string.");if(e.length<27)throw new Error("Invalid Address string provided");e=e.trim();var i=ln.get(t);if(t&&!i)throw new TypeError("Unknown network");var n=OB.decode(e);return pe._transformBuffer(n,t,r)};pe.fromPublicKey=function(e,t){var r=pe._transformPublicKey(e);return t=t||ln.defaultNetwork,new pe(r.hashBuffer,t,r.type)};pe.fromPrivateKey=function(e,t){let r=h_.fromPrivateKey(e);return t=t||e.network||ln.defaultNetwork,pe.fromPublicKey(r,t)};pe.fromPublicKeyHash=function(e,t){var r=pe._transformHash(e);return new pe(r.hashBuffer,t,pe.PayToPublicKeyHash)};pe.fromScriptHash=function(e,t){aa.checkArgument(e,"hash parameter is required");var r=pe._transformHash(e);return new pe(r.hashBuffer,t,pe.PayToScriptHash)};pe.payingTo=function(e,t){return aa.checkArgument(e,"script is required"),aa.checkArgument(e instanceof rh(),"script must be instance of Script"),pe.fromScriptHash(IB.sha256ripemd160(e.toBuffer()),t)};pe.fromScript=function(e,t){aa.checkArgument(e instanceof rh(),"script must be a Script instance");var r=pe._transformScript(e,t);return new pe(r.hashBuffer,t,r.type)};pe.fromBuffer=function(e,t,r){var i=pe._transformBuffer(e,t,r);return new pe(i.hashBuffer,i.network,i.type)};pe.fromHex=function(e,t,r){return pe.fromBuffer(f.Buffer.from(e,"hex"),t,r)};pe.fromString=function(e,t,r){var i=pe._transformString(e,t,r);return new pe(i.hashBuffer,i.network,i.type)};pe.fromObject=function(t){aa.checkState(AB.isHexa(t.hash),'Unexpected hash property, "'+t.hash+'", expected to be hex.');var r=f.Buffer.from(t.hash,"hex");return new pe(r,t.network,t.type)};pe.getValidationError=function(e,t,r){var i;try{new pe(e,t,r)}catch(n){i=n}return i};pe.isValid=function(e,t,r){return!pe.getValidationError(e,t,r)};pe.prototype.isPayToPublicKeyHash=function(){return this.type===pe.PayToPublicKeyHash};pe.prototype.isPayToScriptHash=function(){return this.type===pe.PayToScriptHash};pe.prototype.toBuffer=function(){var e=f.Buffer.from([this.network[this.type]]),t=f.Buffer.concat([e,this.hashBuffer]);return t};pe.prototype.toHex=function(){return this.toBuffer().toString("hex")};pe.prototype.toObject=pe.prototype.toJSON=function(){return{hash:this.hashBuffer.toString("hex"),type:this.type,network:this.network.toString()}};pe.prototype.inspect=function(){return"<Address: "+this.toString()+", type: "+this.type+", network: "+this.network+">"};pe.prototype.toString=function(){return OB.encode(this.toBuffer())};TB.exports=pe;function rh(){return tt()}});var Zr=P((vse,BB)=>{"use strict";g();var Yg=Qe(),g9=Ti(),PB=wc(),Za=Ze(),RB=ei(),uo=ta(),p_=nn(),m9=Gt(),v9=Ui(),kB=Oe(),d_="[REDACTED]";function Pe(e,t){if(!(this instanceof Pe))return new Pe(e,t);if(e instanceof Pe)return e;var r=this._classifyArguments(e,t);if(!r.bn||r.bn.cmp(new Za(0))===0)throw new TypeError("Number can not be equal to zero, undefined, null or false");if(!r.bn.lt(p_.getN()))throw new TypeError("Number must be less than N");if(typeof r.network>"u")throw new TypeError('Must specify the network ("livenet" or "testnet")');return RB.defineImmutable(this,{bn:r.bn,compressed:r.compressed,network:r.network}),Object.defineProperty(this,"publicKey",{configurable:!1,enumerable:!0,get:this.toPublicKey.bind(this)}),this}Pe.prototype._classifyArguments=function(e,t){var r={compressed:!0,network:t?uo.get(t):uo.defaultNetwork};if(Yg.isUndefined(e)||Yg.isNull(e))r.bn=Pe._getRandomBN();else if(e instanceof Za)r.bn=e;else if(e instanceof f.Buffer||e instanceof Uint8Array)r=Pe._transformBuffer(e,t);else if(e.bn&&e.network)r=Pe._transformObject(e);else if(!t&&uo.get(e))r.bn=Pe._getRandomBN(),r.network=uo.get(e);else if(typeof e=="string")RB.isHexa(e)?r.bn=new Za(f.Buffer.from(e,"hex")):r=Pe._transformWIF(e,t);else throw new TypeError("First argument is an unrecognized data type.");return r};Pe._getRandomBN=function(){var e,t;do{var r=v9.getRandomBuffer(32);t=Za.fromBuffer(r),e=t.lt(p_.getN())}while(!e);return t};Pe._transformBuffer=function(e,t){var r={};if(e.length===32)return Pe._transformBNBuffer(e,t);if(r.network=uo.get(e[0],"privatekey"),!r.network)throw new Error("Invalid network");if(t&&r.network!==uo.get(t))throw new TypeError("Private key network mismatch");if(e.length===34&&e[33]===1)r.compressed=!0;else if(e.length===33)r.compressed=!1;else throw new Error("Length of buffer must be 33 (uncompressed) or 34 (compressed)");return r.bn=Za.fromBuffer(e.slice(1,33)),r};Pe._transformBNBuffer=function(e,t,r){var i={};return i.network=uo.get(t)||uo.defaultNetwork,i.bn=Za.fromBuffer(e),i.compressed=r===void 0?!0:!!r,i};Pe._transformWIF=function(e,t){return Pe._transformBuffer(PB.decode(e),t)};Pe.fromBuffer=function(e,t,r){return r!==void 0&&e&&e.length===32?new Pe(Pe._transformBNBuffer(e,t,r)):new Pe(e,t)};Pe.fromHex=function(e,t,r){return Pe.fromBuffer(f.Buffer.from(e,"hex"),t,r)};Pe._transformObject=function(e){if(e.bn instanceof Za)return{bn:e.bn,network:uo.get(e.network),compressed:e.compressed};if(typeof e.bn!="string"||!e.bn.length)throw new TypeError("Invalid private key: `bn` must be a hex string");if(e.bn===d_)throw new TypeError('Invalid private key: `bn` is "'+d_+'". JSON.stringify() redacts the secret on purpose \u2014 use toObject() for a round-trippable export, or toWIF().');if(!/^[0-9a-fA-F]+$/.test(e.bn))throw new TypeError("Invalid private key: `bn` is not hexadecimal");var t=new Za(e.bn,"hex");if(t.isZero()||t.gte(p_.getN()))throw new TypeError("Invalid private key: outside the range of valid keys");var r=uo.get(e.network);return{bn:t,network:r,compressed:e.compressed}};Pe.fromString=Pe.fromWIF=function(e,t){return kB.checkArgument(Yg.isString(e),"First argument is expected to be a string."),new Pe(e,t)};Pe.fromObject=Pe.fromJSON=function(e){return kB.checkArgument(Yg.isObject(e),"First argument is expected to be an object."),new Pe(e)};Pe.fromRandom=function(e){var t=Pe._getRandomBN();return new Pe(t,e)};Pe.getValidationError=function(e,t){var r;try{new Pe(e,t)}catch(i){r=i}return r};Pe.isValid=function(e,t){return e?!Pe.getValidationError(e,t):!1};Pe.prototype.toString=function(){return this.toWIF()};Pe.prototype.toWIF=function(){var e=this.network,t=this.compressed,r;return t?r=f.Buffer.concat([f.Buffer.from([e.privatekey]),this.bn.toBuffer({size:32}),f.Buffer.from([1])]):r=f.Buffer.concat([f.Buffer.from([e.privatekey]),this.bn.toBuffer({size:32})]),PB.encode(r)};Pe.prototype.toBigNumber=function(){return this.bn};Pe.prototype.toBuffer=function(){return this.bn.toBuffer({size:32})};Pe.prototype.toHex=function(){return this.toBuffer().toString("hex")};Pe.prototype.toPublicKey=function(){return this._pubkey||(this._pubkey=m9.fromPrivateKey(this)),this._pubkey};Pe.prototype.toAddress=function(e){var t=this.toPublicKey();return g9.fromPublicKey(t,e||this.network)};Pe.prototype.toObject=function(){return{bn:this.bn.toString("hex"),compressed:this.compressed,network:this.network.toString()}};Pe.prototype.toJSON=function(){return{bn:d_,compressed:this.compressed,network:this.network.toString()}};Pe.prototype.inspect=function(){var e=this.compressed?"":", uncompressed";return"<PrivateKey: "+this.toHex()+", network: "+this.network+e+">"};BB.exports=Pe});var Gt=P((bse,CB)=>{"use strict";g();var Bc=Ze(),Nc=nn(),y9=Be(),b9=ei(),NB=ta(),g_=Qe(),eu=Oe();function xe(e,t){if(!(this instanceof xe))return new xe(e,t);if(eu.checkArgument(e,"First argument is required, please include public key data."),e instanceof xe)return e;t=t||{};var r=this._classifyArgs(e,t);return r.point.validate(),b9.defineImmutable(this,{point:r.point,compressed:r.compressed,network:r.network||NB.defaultNetwork}),this}xe.prototype._classifyArgs=function(e,t){var r={compressed:g_.isUndefined(t.compressed)||t.compressed};if(e instanceof Nc)r.point=e;else if(e.x&&e.y)r=xe._transformObject(e);else if(typeof e=="string")r=xe._transformDER(f.Buffer.from(e,"hex"));else if(xe._isBuffer(e))r=xe._transformDER(e);else if(xe._isPrivateKey(e))r=xe._transformPrivateKey(e);else throw new TypeError("First argument is an unrecognized data format.");return r.network||(r.network=g_.isUndefined(t.network)?void 0:NB.get(t.network)),r};xe._isPrivateKey=function(e){var t=Zr();return e instanceof t};xe._isBuffer=function(e){return e instanceof f.Buffer||e instanceof Uint8Array};xe._transformPrivateKey=function(e){eu.checkArgument(xe._isPrivateKey(e),"Must be an instance of PrivateKey");var t={};return t.point=Nc.getG().mul(e.bn),t.compressed=e.compressed,t.network=e.network,t};xe._transformDER=function(e,t){eu.checkArgument(xe._isBuffer(e),"Must be a buffer of DER encoded public key");var r={};t=g_.isUndefined(t)?!0:t;var i,n,o,a;if(e[0]===4||!t&&(e[0]===6||e[0]===7)){if(o=e.slice(1,33),a=e.slice(33,65),o.length!==32||a.length!==32||e.length!==65)throw new TypeError("Length of x and y must be 32 bytes");i=new Bc(o),n=new Bc(a),r.point=new Nc(i,n),r.compressed=!1}else if(e[0]===3)o=e.slice(1),i=new Bc(o),r=xe._transformX(!0,i),r.compressed=!0;else if(e[0]===2)o=e.slice(1),i=new Bc(o),r=xe._transformX(!1,i),r.compressed=!0;else throw new TypeError("Invalid DER format public key");return r};xe._transformX=function(e,t){eu.checkArgument(typeof e=="boolean","Must specify whether y is odd or not (true or false)");var r={};return r.point=Nc.fromX(e,t),r};xe._transformObject=function(e){var t=new Bc(e.x,"hex"),r=new Bc(e.y,"hex"),i=new Nc(t,r);return new xe(i,{compressed:e.compressed})};xe.fromPrivateKey=function(e){eu.checkArgument(xe._isPrivateKey(e),"Must be an instance of PrivateKey");var t=xe._transformPrivateKey(e);return new xe(t.point,{compressed:t.compressed,network:t.network})};xe.fromDER=xe.fromBuffer=function(e,t){eu.checkArgument(xe._isBuffer(e),"Must be a buffer of DER encoded public key");var r=xe._transformDER(e,t);return new xe(r.point,{compressed:r.compressed})};xe.fromPoint=function(e,t){return eu.checkArgument(e instanceof Nc,"First argument must be an instance of Point."),new xe(e,{compressed:t})};xe.fromHex=xe.fromString=function(e,t){var r=f.Buffer.from(e,t||"hex"),i=xe._transformDER(r);return new xe(i.point,{compressed:i.compressed})};xe.fromX=function(e,t){var r=xe._transformX(e,t);return new xe(r.point,{compressed:r.compressed})};xe.getValidationError=function(e){var t;try{new xe(e)}catch(r){t=r}return t};xe.isValid=function(e){return!xe.getValidationError(e)};xe.prototype.toObject=xe.prototype.toJSON=function(){return{x:this.point.getX().toString("hex",2),y:this.point.getY().toString("hex",2),compressed:this.compressed}};xe.prototype.toBuffer=xe.prototype.toDER=function(){var e=this.point.getX(),t=this.point.getY(),r=e.toBuffer({size:32}),i=t.toBuffer({size:32}),n;if(this.compressed){var o=i[i.length-1]%2;return o?n=f.Buffer.from([3]):n=f.Buffer.from([2]),f.Buffer.concat([n,r])}else return n=f.Buffer.from([4]),f.Buffer.concat([n,r,i])};xe.prototype._getID=function(){return y9.sha256ripemd160(this.toBuffer())};xe.prototype.toAddress=function(e){var t=Ti();return t.fromPublicKey(this,e||this.network)};xe.prototype.toString=xe.prototype.toHex=function(){return this.toDER().toString("hex")};xe.prototype.inspect=function(){return"<PublicKey: "+this.toHex()+(this.compressed?"":", uncompressed")+">"};CB.exports=xe});var fn=P((wse,LB)=>{"use strict";g();var ji=Ze(),co=nn(),_9=ut(),w9=Gt(),S9=Ui(),$a=Be(),E9=Qe(),m_=Oe(),St=function e(t){if(!(this instanceof e))return new e(t);t&&this.set(t)};Object.defineProperty(St.prototype,"k",{get:function(){return this._k},set:function(e){this._k=e,this._kFresh=!0},enumerable:!0,configurable:!0});St.prototype.set=function(e){if(this.hashbuf=e.hashbuf||this.hashbuf,this.endian=e.endian||this.endian,this.privkey=e.privkey||this.privkey,this.pubkey=e.pubkey||(this.privkey?this.privkey.publicKey:this.pubkey),e.sig)if(f.Buffer.isBuffer(e.sig)){var t=ut();this.sig=t.fromDER(e.sig)}else this.sig=e.sig;else this.sig=this.sig;return e.k&&(this.k=e.k),this.verified=e.verified||this.verified,this};St.prototype.privkey2pubkey=function(){this.pubkey=this.privkey.toPublicKey()};St.prototype.calci=function(){for(var e=0;e<4;e++){this.sig.i=e;var t;try{t=this.toPublicKey()}catch(r){console.error(r);continue}if(t.point.eq(this.pubkey.point))return this.sig.compressed=this.pubkey.compressed,this}throw this.sig.i=void 0,new Error("Unable to find valid recovery factor")};St.fromString=function(e){var t=JSON.parse(e);return new St(t)};St.prototype.randomK=function(){var e=co.getN(),t;do t=ji.fromBuffer(S9.getRandomBuffer(32));while(!(t.lt(e)&&t.gt(ji.Zero)));return this.k=t,this};St.prototype.deterministicK=function(e){E9.isUndefined(e)&&(e=0);var t=f.Buffer.alloc(32);t.fill(1);var r=f.Buffer.alloc(32);r.fill(0);var i=this.privkey.bn.toBuffer({size:32}),n=this.endian==="little"?f.Buffer.from(this.hashbuf).reverse():this.hashbuf;r=$a.sha256hmac(f.Buffer.concat([t,f.Buffer.from([0]),i,n]),r),t=$a.sha256hmac(t,r),r=$a.sha256hmac(f.Buffer.concat([t,f.Buffer.from([1]),i,n]),r),t=$a.sha256hmac(t,r),t=$a.sha256hmac(t,r);for(var o=ji.fromBuffer(t),a=co.getN(),s=0;s<e||!(o.lt(a)&&o.gt(ji.Zero));s++)r=$a.sha256hmac(f.Buffer.concat([t,f.Buffer.from([0])]),r),t=$a.sha256hmac(t,r),t=$a.sha256hmac(t,r),o=ji.fromBuffer(t);return this.k=o,this};St.prototype.toPublicKey=function(){var e=this.sig.i;m_.checkArgument(e===0||e===1||e===2||e===3,new Error("i must be equal to 0, 1, 2, or 3"));var t=ji.fromBuffer(this.hashbuf),r=this.sig.r,i=this.sig.s,n=e&1,o=e>>1,a=co.getN(),s=co.getG(),u=o?r.add(a):r,c=co.fromX(n,u),l=c.mul(a);if(!l.isInfinity())throw new Error("nR is not a valid curve point");var d=t.neg().umod(a),p=r.invm(a),y=c.mul(i).add(s.mul(d)).mul(p),_=w9.fromPoint(y,this.sig.compressed);return _};St.prototype.sigError=function(){if(!f.Buffer.isBuffer(this.hashbuf)||this.hashbuf.length!==32)return"hashbuf must be a 32 byte buffer";var e=this.sig.r,t=this.sig.s,r=co.getN();try{if(e.lte(ji.Zero)||t.lte(ji.Zero)||e.gte(r)||t.gte(r))return"r and s not in range";var i=ji.fromBuffer(this.hashbuf,this.endian?{endian:this.endian}:void 0),n=t.invm(r),o=n.mul(i).umod(r),a=n.mul(e).umod(r),s=co.getG().mulAdd(o,this.pubkey.point,a);return s.isInfinity()?"p is infinity":s.getX().umod(r).cmp(e)!==0?"Invalid signature":!1}catch(u){return"Signature security validation failed: "+u.message}};St.toLowS=function(e){return e.gt(ji.fromBuffer(f.Buffer.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(e=co.getN().sub(e)),e};St.prototype._findSignature=function(e,t){var r=co.getN(),i=co.getG(),n=0,o,a,s,u;do(!this.k||!this._kFresh||n>0)&&this.deterministicK(n),n++,o=this.k,a=i.mul(o),s=a.x.umod(r),u=o.invm(r).mul(t.add(e.mul(s))).umod(r);while(s.cmp(ji.Zero)<=0||u.cmp(ji.Zero)<=0);return this._kFresh=!1,u=St.toLowS(u),{s:u,r:s}};St.prototype.sign=function(){var e=this.hashbuf,t=this.privkey,r=t.bn;m_.checkState(e&&t&&r,new Error("invalid parameters")),m_.checkState(f.Buffer.isBuffer(e)&&e.length===32,new Error("hashbuf must be a 32 byte buffer"));var i=ji.fromBuffer(e,this.endian?{endian:this.endian}:void 0),n=this._findSignature(r,i);return n.compressed=this.pubkey.compressed,this.sig=new _9(n),this};St.prototype.signRandomK=function(){return this.randomK(),this.sign()};St.prototype.toString=function(){var e={};return this.hashbuf&&(e.hashbuf=this.hashbuf.toString("hex")),this.privkey&&(e.privkey=this.privkey.toString()),this.pubkey&&(e.pubkey=this.pubkey.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)};St.prototype.verify=function(){return this.verified=!this.sigError(),this.verified};St.prototype.verifyBool=function(){return this.verify()===!0};St.sign=function(e,t,r){return St().set({hashbuf:e,endian:r,privkey:t}).sign().sig};St.signWithCalcI=function(e,t,r){return St().set({hashbuf:e,endian:r,privkey:t}).sign().calci().sig};St.signRandomK=function(e,t,r){return St().set({hashbuf:e,endian:r,privkey:t}).signRandomK().sig};St.verify=function(e,t,r,i){return St().set({hashbuf:e,endian:i,sig:t,pubkey:r}).verify()};LB.exports=St});var Zg=P((xse,qB)=>{"use strict";g();var x9=ut(),MB=fn(),v_=Gt(),ih=Zr(),DB=Be(),hn=Oe(),Ese=ci();function dt(e){return this instanceof dt?(this.options=e||{},this.network=this.options.network||"mainnet",this.registry=this.options.registry||null,this):new dt(e)}dt.fromPublicKey=function(e,t){t=t||{},typeof e=="string"&&(e=v_.fromString(e)),hn.checkArgument(e instanceof v_,"Invalid public key");var r=e.toString("hex"),i=t.network||"mainnet",n=t.path||"",o="did:smartledger:"+r;return i!=="mainnet"&&(o+=":"+i),n&&(o+=":"+n),o};dt.fromPrivateKey=function(e,t){return typeof e=="string"&&(e=ih.fromWIF(e)),hn.checkArgument(e instanceof ih,"Invalid private key"),dt.fromPublicKey(e.toPublicKey(),t)};dt.parseDID=function(e){if(hn.checkArgument(typeof e=="string","DID must be a string"),!e.startsWith("did:smartledger:"))throw new Error("Invalid SmartLedger DID format");var t=e.split(":");if(t.length<3)throw new Error("Invalid DID format");var r={method:"smartledger",identifier:t[2],network:"mainnet",path:""};return t.length>3&&t[3]!==""&&(r.network=t[3]),t.length>4&&(r.path=t.slice(4).join(":")),r};dt.isValidDID=function(e){try{var t=dt.parseDID(e);return!(!/^[0-9a-fA-F]{66}$/.test(t.identifier)&&!/^[0-9a-fA-F]{130}$/.test(t.identifier)||!["mainnet","testnet","regtest"].includes(t.network))}catch{return!1}};dt.getPublicKey=function(e){var t=dt.parseDID(e);return v_.fromString(t.identifier)};dt.createDocument=function(e,t){t=t||{},hn.checkArgument(dt.isValidDID(e),"Invalid DID");var r=dt.getPublicKey(e),i=e+"#keys-1",n={"@context":["https://www.w3.org/ns/did/v1","https://w3id.org/security/suites/secp256k1-2019/v1"],id:e,verificationMethod:[{id:i,type:"EcdsaSecp256k1VerificationKey2019",controller:e,publicKeyHex:r.toString("hex")}],authentication:[i],assertionMethod:[i],keyAgreement:[i],capabilityInvocation:[i],capabilityDelegation:[i]};return t.services&&Array.isArray(t.services)&&(n.service=t.services),t.verificationMethods&&(n.verificationMethod=n.verificationMethod.concat(t.verificationMethods)),t.created&&(n.created=t.created),t.updated&&(n.updated=t.updated),n};dt.resolve=async function(e,t){t=t||{};try{hn.checkArgument(dt.isValidDID(e),"Invalid DID");var r=dt.createDocument(e,t);return{"@context":"https://w3id.org/did-resolution/v1",didDocument:r,didResolutionMetadata:{contentType:"application/did+ld+json",retrieved:new Date().toISOString()},didDocumentMetadata:{method:{published:!0,recoveryCommitment:null,updateCommitment:null}}}}catch(i){return{"@context":"https://w3id.org/did-resolution/v1",didDocument:null,didResolutionMetadata:{error:"notFound",errorMessage:i.message},didDocumentMetadata:{}}}};dt.verifyOwnership=function(e,t,r){try{var i=dt.getPublicKey(e),n=DB.sha256(f.Buffer.isBuffer(r)?r:f.Buffer.from(r,"utf8")),o=x9.fromString(t),a=new MB;return a.hashbuf=n,a.pubkey=i,a.sig=o,a.verify()===!0}catch{return!1}};dt.signMessage=function(e,t){hn.checkArgument(t instanceof ih,"Invalid private key");var r=DB.sha256(f.Buffer.isBuffer(e)?e:f.Buffer.from(e,"utf8")),i=new MB;return i.hashbuf=r,i.privkey=t,i.pubkey=t.toPublicKey(),i.sign().toString()};dt.createProofOfOwnership=function(e,t){hn.checkArgument(e instanceof ih,"Invalid private key"),hn.checkArgument(typeof t=="string","Challenge must be a string");var r=dt.fromPrivateKey(e),i=new Date().toISOString(),n=t+":"+i+":"+r,o=dt.signMessage(n,e);return{type:"EcdsaSecp256k1Signature2019",created:i,verificationMethod:r+"#keys-1",proofPurpose:"authentication",challenge:t,jws:o}};dt.verifyProofOfOwnership=function(e,t){try{hn.checkArgument(e&&typeof e=="object","Invalid proof object"),hn.checkArgument(typeof t=="string","DID must be a string");var r=e.challenge+":"+e.created+":"+t;return dt.verifyOwnership(t,e.jws,r)}catch{return!1}};dt.createDIDURL=function(e,t){return hn.checkArgument(typeof e=="string","DID must be a string"),hn.checkArgument(typeof t=="string","Fragment must be a string"),e+"#"+t};dt.generateTestDID=function(e){e=e||{};var t=new ih,r=dt.fromPrivateKey(t,e),i=dt.createDocument(r,e);return{did:r,privateKey:t.toWIF(),publicKey:t.toPublicKey().toString("hex"),document:i}};qB.exports=dt});var nh=P((Ise,UB)=>{"use strict";g();var HB={};HB.stringify=function(e){return y_(e,[])};function y_(e,t){if(e===null)return"null";var r=typeof e;if(r==="boolean")return e?"true":"false";if(r==="number"){if(!isFinite(e))throw new Error("Cannot canonicalize non-finite number: "+e);return JSON.stringify(e)}if(r==="string")return JSON.stringify(e);if(r==="bigint")throw new Error("Cannot canonicalize bigint; represent it as a string");if(Array.isArray(e)||r==="object"){if(t.indexOf(e)!==-1)throw new Error("Cannot canonicalize a circular structure");t.push(e);var i;if(Array.isArray(e))i="["+e.map(function(o){return o===void 0?"null":y_(o,t)}).join(",")+"]";else{var n=Object.keys(e).filter(function(o){return e[o]!==void 0&&typeof e[o]!="function"}).sort();i="{"+n.map(function(o){return JSON.stringify(o)+":"+y_(e[o],t)}).join(",")+"}"}return t.pop(),i}throw new Error("Cannot canonicalize value of type: "+r)}UB.exports=HB});var $g=P((Rse,zB)=>{"use strict";g();var O9=Ui(),I9=Zg(),FB=Zr(),Xa=Be(),jB=fn(),Tse=ut(),Ja=Oe(),A9=nh(),Pse=Qe();function It(e,t){return this instanceof It?(typeof e=="string"&&(e=FB.fromWIF(e)),Ja.checkArgument(e instanceof FB,"Invalid private key"),this.privateKey=e,this.publicKey=e.toPublicKey(),this.options=t||{},this.did=I9.fromPrivateKey(e,this.options),this):new It(e,t)}It._sortValue=function(e){return Array.isArray(e)?e.map(function(t){return It._sortValue(t)}):e!==null&&typeof e=="object"?Object.keys(e).sort().reduce(function(t,r){return t[r]=It._sortValue(e[r]),t},{}):e};It._canonicalizeJSON=function(e){return JSON.stringify(It._sortValue(e))};It._canonicalizeJCS=function(e){return A9.stringify(e)};It._hashCredential=function(e,t){var r=t===It.CANONICALIZATION.LEGACY?It._canonicalizeJSON(e):It._canonicalizeJCS(e);return Xa.sha256(f.Buffer.from(r,"utf8"))};It.CANONICALIZATION={JCS:"jcs",LEGACY:"legacy"};It.prototype.createCredential=function(e,t){t=t||{},Ja.checkArgument(e&&typeof e=="object","Invalid credential subject");var r=new Date().toISOString(),i=t.id||"urn:uuid:"+this._generateUUID(),n={"@context":["https://www.w3.org/2018/credentials/v1"],id:i,type:["VerifiableCredential"],issuer:this.did,issuanceDate:r,credentialSubject:e};return t.type&&(Array.isArray(t.type)?n.type=n.type.concat(t.type):n.type.push(t.type)),t.context&&(Array.isArray(t.context)?n["@context"]=n["@context"].concat(t.context):n["@context"].push(t.context)),t.expirationDate&&(n.expirationDate=t.expirationDate),t.termsOfUse&&(n.termsOfUse=t.termsOfUse),t.evidence&&(n.evidence=t.evidence),t.refreshService&&(n.refreshService=t.refreshService),n};It.prototype.signCredential=function(e,t){t=t||{},Ja.checkArgument(e&&typeof e=="object","Invalid credential");var r=JSON.parse(JSON.stringify(e));delete r.proof;var i=It._hashCredential(r),n=new jB;n.hashbuf=i,n.privkey=this.privateKey,n.pubkey=this.publicKey,n.sign();var o=n.sig,a=this._createJWSSignature(i,o),s={type:"EcdsaSecp256k1Signature2019",created:new Date().toISOString(),verificationMethod:this.did+"#keys-1",proofPurpose:t.proofPurpose||"assertionMethod",jws:a};t.challenge&&(s.challenge=t.challenge),t.domain&&(s.domain=t.domain);var u=JSON.parse(JSON.stringify(r));return u.proof=s,u.rootHash=i.toString("hex"),u};It.prototype._createJWSSignature=function(e,t){var r={alg:"ES256K",typ:"JWT"},i=f.Buffer.from(JSON.stringify(r)).toString("base64url"),n=e.toString("base64url"),o=t.toDER().toString("base64url");return i+".."+o};It.prototype.createEmailCredential=function(e,t){t=t||{},Ja.checkArgument(typeof e=="string"&&e.includes("@"),"Invalid email address");var r={id:t.subjectId||"did:smartledger:"+Xa.sha256(f.Buffer.from(e)).toString("hex"),email:e,verified:!0,verificationMethod:"email_verification",verificationTimestamp:new Date().toISOString()},i={type:"EmailVerifiedCredential",context:"https://smartledger.technology/contexts/email/v1",...t},n=this.createCredential(r,i);return this.signCredential(n,t)};It.prototype.createAgeCredential=function(e,t,r){r=r||{},Ja.checkArgument(typeof e=="number"&&e>0,"Invalid age");var i={id:r.subjectId||"urn:uuid:"+this._generateUUID(),ageOver:e,verified:!0,verificationMethod:"age_verification"};t&&(i.birthDateHash=Xa.sha256(f.Buffer.from(t.toISOString())).toString("hex"));var n={type:"AgeVerifiedCredential",context:"https://smartledger.technology/contexts/age/v1",...r},o=this.createCredential(i,n);return this.signCredential(o,r)};It.prototype.createKYCCredential=function(e,t){t=t||{},Ja.checkArgument(e&&typeof e=="object","Invalid KYC data");var r={id:t.subjectId||"urn:uuid:"+this._generateUUID(),kycLevel:e.level||"basic",verified:!0,verificationMethod:"kyc_verification",verificationTimestamp:new Date().toISOString(),verifyingAuthority:e.authority||this.did};e.firstName&&(r.firstNameHash=Xa.sha256(f.Buffer.from(e.firstName)).toString("hex")),e.lastName&&(r.lastNameHash=Xa.sha256(f.Buffer.from(e.lastName)).toString("hex")),e.ssn&&(r.ssnHash=Xa.sha256(f.Buffer.from(e.ssn)).toString("hex"));var i={type:"KYCVerifiedCredential",context:"https://smartledger.technology/contexts/kyc/v1",...t},n=this.createCredential(r,i);return this.signCredential(n,t)};It.prototype.createOrganizationCredential=function(e,t){t=t||{},Ja.checkArgument(e&&typeof e=="object","Invalid organization data");var r={id:t.subjectId||"did:smartledger:org:"+Xa.sha256(f.Buffer.from(e.name||"")).toString("hex"),name:e.name,type:e.type||"Organization",verified:!0,verificationMethod:"organization_verification",verificationTimestamp:new Date().toISOString()};e.taxId&&(r.taxIdHash=Xa.sha256(f.Buffer.from(e.taxId)).toString("hex")),e.incorporationState&&(r.incorporationState=e.incorporationState),e.industry&&(r.industry=e.industry);var i={type:"OrganizationCredential",context:"https://smartledger.technology/contexts/organization/v1",...t},n=this.createCredential(r,i);return this.signCredential(n,t)};It.prototype._generateUUID=function(){var e=O9.getRandomBuffer(16);e[6]=e[6]&15|64,e[8]=e[8]&63|128;var t=e.toString("hex");return[t.substring(0,8),t.substring(8,12),t.substring(12,16),t.substring(16,20),t.substring(20,32)].join("-")};It.prototype.createPresentation=function(e,t){t=t||{},Ja.checkArgument(Array.isArray(e),"Credentials must be an array");var r={"@context":["https://www.w3.org/2018/credentials/v1"],type:["VerifiablePresentation"],id:t.id||"urn:uuid:"+this._generateUUID(),holder:this.did,verifiableCredential:e};t.context&&(Array.isArray(t.context)?r["@context"]=r["@context"].concat(t.context):r["@context"].push(t.context));var i=It._hashCredential(r),n=new jB;n.hashbuf=i,n.privkey=this.privateKey,n.pubkey=this.publicKey,n.sign();var o=n.sig,a=this._createJWSSignature(i,o),s={type:"EcdsaSecp256k1Signature2019",created:new Date().toISOString(),verificationMethod:this.did+"#keys-1",proofPurpose:"authentication",jws:a};return t.challenge&&(s.challenge=t.challenge),t.domain&&(s.domain=t.domain),r.proof=s,r};It.prototype.getIssuerInfo=function(){return{did:this.did,publicKey:this.publicKey.toString("hex"),verificationMethod:this.did+"#keys-1"}};zB.exports=It});var WB=P((Cse,GB)=>{"use strict";g();var Xg=Zg(),sa=$g(),Bse=Gt(),Nse=Be(),KB=fn(),T9=ut(),VB=Oe();function ht(e){return this instanceof ht?(this.options=e||{},this.trustedIssuers=this.options.trustedIssuers||[],this):new ht(e)}ht.verifyCredential=async function(e,t){t=t||{};try{VB.checkArgument(e&&typeof e=="object","Invalid credential");var r={valid:!1,errors:[],warnings:[],checks:{structure:!1,signature:!1,issuer:!1,temporal:!1,schema:!1}},i=ht._validateStructure(e);r.checks.structure=i.valid,i.valid||(r.errors=r.errors.concat(i.errors));var n=await ht._verifySignature(e);r.checks.signature=n.valid,n.valid?(r.issuerDID=n.issuerDID,r.verificationMethod=n.verificationMethod):r.errors=r.errors.concat(n.errors);var o=await ht._validateIssuer(e,t);r.checks.issuer=o.valid,o.valid||(r.errors=r.errors.concat(o.errors)),o.warnings&&(r.warnings=r.warnings.concat(o.warnings));var a=ht._validateTemporal(e);if(r.checks.temporal=a.valid,a.valid||(r.errors=r.errors.concat(a.errors)),a.warnings&&(r.warnings=r.warnings.concat(a.warnings)),t.schema){var s=ht._validateSchema(e,t.schema);r.checks.schema=s.valid,s.valid||(r.errors=r.errors.concat(s.errors))}else r.checks.schema=!0;return r.valid=Object.values(r.checks).every(u=>u===!0),r}catch(u){return{valid:!1,errors:["Verification failed: "+u.message],warnings:[],checks:{structure:!1,signature:!1,issuer:!1,temporal:!1,schema:!1}}}};ht.verifyPresentation=async function(e,t){t=t||{};try{VB.checkArgument(e&&typeof e=="object","Invalid presentation");var r={valid:!1,errors:[],warnings:[],credentialResults:[],presentationValid:!1};if(!e.type||!e.type.includes("VerifiablePresentation"))return r.errors.push("Invalid presentation type"),r;if(!e.holder)return r.errors.push("Missing presentation holder"),r;var i=await ht._verifyPresentationSignature(e);if(r.presentationValid=i.valid,i.valid||(r.errors=r.errors.concat(i.errors)),e.verifiableCredential&&Array.isArray(e.verifiableCredential))for(var n=0;n<e.verifiableCredential.length;n++){var o=e.verifiableCredential[n],a=await ht.verifyCredential(o,t);r.credentialResults.push({index:n,result:a}),a.valid||r.errors.push("Credential "+n+" is invalid")}var s=r.credentialResults.every(u=>u.result.valid);return r.valid=r.presentationValid&&s,r}catch(u){return{valid:!1,errors:["Presentation verification failed: "+u.message],warnings:[],credentialResults:[],presentationValid:!1}}};ht._validateStructure=function(e){var t=[];return e["@context"]?Array.isArray(e["@context"])?e["@context"].includes("https://www.w3.org/2018/credentials/v1")||t.push("Missing required W3C credentials context"):t.push("@context must be an array"):t.push("Missing @context"),e.type?Array.isArray(e.type)?e.type.includes("VerifiableCredential")||t.push("Must include VerifiableCredential type"):t.push("type must be an array"):t.push("Missing type"),e.issuer||t.push("Missing issuer"),e.issuanceDate||t.push("Missing issuanceDate"),e.credentialSubject||t.push("Missing credentialSubject"),e.proof||t.push("Missing proof"),{valid:t.length===0,errors:t}};ht._normalizeDID=function(e){var t=e&&typeof e=="object"?e.id:e;return typeof t!="string"||t.length===0?null:t.split("#")[0]};ht._verifySignature=async function(e){try{var t=e.proof;if(!t)return{valid:!1,errors:["Missing proof"]};if(t.type!=="EcdsaSecp256k1Signature2019")return{valid:!1,errors:["Unsupported proof type: "+t.type]};if(!t.verificationMethod)return{valid:!1,errors:["Missing verification method"]};if(!t.jws)return{valid:!1,errors:["Missing JWS signature"]};var r=t.verificationMethod,i=r.split("#")[0],n=ht._normalizeDID(e.issuer);if(!n)return{valid:!1,errors:["Missing or invalid credential issuer"]};if(n!==i)return{valid:!1,errors:["Verification method DID ("+i+") does not match credential issuer ("+n+")"]};var o=Xg.getPublicKey(i),a=JSON.parse(JSON.stringify(e));delete a.proof,delete a.rootHash;var s=ht._parseJWSSignature(t.jws),u=[sa.CANONICALIZATION.JCS,sa.CANONICALIZATION.LEGACY].some(function(c){var l=new KB;return l.hashbuf=sa._hashCredential(a,c),l.pubkey=o,l.sig=s,l.verify()===!0});return u?{valid:!0,issuerDID:i,verificationMethod:r}:{valid:!1,errors:["Signature verification failed"]}}catch(c){return{valid:!1,errors:["Signature verification error: "+c.message]}}};ht._parseJWSSignature=function(e){var t=e.split(".");if(t.length!==3)throw new Error("Invalid JWS format");var r=t[2],i=f.Buffer.from(r,"base64url");return T9.fromDER(i)};ht._verifyPresentationSignature=async function(e){try{var t=e.proof;if(!t)return{valid:!1,errors:["Missing presentation proof"]};var r=e.holder,i=Xg.getPublicKey(r),n=JSON.parse(JSON.stringify(e));delete n.proof;var o=ht._parseJWSSignature(t.jws),a=[sa.CANONICALIZATION.JCS,sa.CANONICALIZATION.LEGACY].some(function(s){var u=new KB;return u.hashbuf=sa._hashCredential(n,s),u.pubkey=i,u.sig=o,u.verify()===!0});return{valid:a,errors:a?[]:["Presentation signature verification failed"]}}catch(s){return{valid:!1,errors:["Presentation signature error: "+s.message]}}};ht._validateIssuer=async function(e,t){var r=[],i=[];try{var n=e.issuer;if(!Xg.isValidDID(n))return r.push("Invalid issuer DID format"),{valid:!1,errors:r};var o=await Xg.resolve(n);if(!o.didDocument)return r.push("Unable to resolve issuer DID"),{valid:!1,errors:r};if(t.trustedIssuers&&Array.isArray(t.trustedIssuers)){var a=ht._normalizeDID(n),s=t.trustedIssuers.map(function(u){return ht._normalizeDID(u)}).filter(Boolean);if(!a||s.indexOf(a)===-1)return r.push("Issuer not in trusted list"),{valid:!1,errors:r,warnings:i}}return{valid:r.length===0,errors:r,warnings:i}}catch(u){return{valid:!1,errors:["Issuer validation error: "+u.message],warnings:i}}};ht._validateTemporal=function(e){var t=[],r=[],i=new Date;if(e.issuanceDate){var n=new Date(e.issuanceDate);isNaN(n.getTime())?t.push("Invalid issuanceDate format"):n>i&&t.push("Credential issued in the future")}if(e.expirationDate){var o=new Date(e.expirationDate);isNaN(o.getTime())?t.push("Invalid expirationDate format"):o<=i?t.push("Credential has expired"):o<=new Date(i.getTime()+1440*60*1e3)&&r.push("Credential expires within 24 hours")}return{valid:t.length===0,errors:t,warnings:r}};ht._validateSchema=function(e,t){var r=[];if(t.requiredFields&&t.requiredFields.forEach(function(n){ht._getNestedProperty(e,n)||r.push("Missing required field: "+n)}),t.requiredTypes){var i=t.requiredTypes.some(function(n){return e.type&&e.type.includes(n)});i||r.push("Missing required credential type")}return{valid:r.length===0,errors:r}};ht._getNestedProperty=function(e,t){return t.split(".").reduce(function(r,i){return r&&r[i]},e)};ht.verifyCredentialHash=function(e){try{if(!e.rootHash)return!1;var t=JSON.parse(JSON.stringify(e));delete t.proof,delete t.rootHash;var r=f.Buffer.from(e.rootHash,"hex");return[sa.CANONICALIZATION.JCS,sa.CANONICALIZATION.LEGACY].some(function(i){return f.Buffer.compare(sa._hashCredential(t,i),r)===0})}catch{return!1}};ht.extractClaims=function(e){try{var t={issuer:e.issuer,subject:e.credentialSubject.id||"unknown",types:e.type||[],issuanceDate:e.issuanceDate,expirationDate:e.expirationDate,claims:{}};return Object.keys(e.credentialSubject).forEach(function(r){r!=="id"&&(t.claims[r]=e.credentialSubject[r])}),t}catch{return null}};ht.createReport=function(e){var t=[];return t.push("=== Credential Verification Report ==="),t.push("Overall Status: "+(e.valid?"VALID":"INVALID")),t.push(""),t.push("Verification Checks:"),Object.keys(e.checks).forEach(function(r){var i=e.checks[r]?"\u2713":"\u2717";t.push(" "+i+" "+r.charAt(0).toUpperCase()+r.slice(1))}),t.push(""),e.errors.length>0&&(t.push("Errors:"),e.errors.forEach(function(r){t.push(" \u2022 "+r)}),t.push("")),e.warnings.length>0&&(t.push("Warnings:"),e.warnings.forEach(function(r){t.push(" \u2022 "+r)}),t.push("")),e.issuerDID&&t.push("Issuer: "+e.issuerDID),e.verificationMethod&&t.push("Verification Method: "+e.verificationMethod),t.join(`
|
|
75
|
+
`)};GB.exports=ht});var ZB=P((Dse,YB)=>{"use strict";g();var Jg=Ui(),P9=$g(),Ri=Be(),Mse=Ze(),ri=Oe();function Nt(e){return this instanceof Nt?(this.options=e||{},this):new Nt(e)}Nt.createMerkleTree=function(e,t){ri.checkArgument(e&&typeof e=="object","Invalid credential");var r=Nt._extractFields(e),i=t||Jg.getRandomBuffer(32).toString("hex"),n=r.map(function(a,s){var u=Ri.sha256(f.Buffer.from(i+":"+s+":"+a.path,"utf8")).toString("hex"),c=a.path+":"+JSON.stringify(a.value)+":"+u;return{path:a.path,value:a.value,hash:Ri.sha256(f.Buffer.from(c,"utf8")).toString("hex"),salt:u}}),o=Nt._buildMerkleTree(n.map(a=>a.hash));return{salt:i,leaves:n,tree:o,root:o[o.length-1][0]}};Nt.generateSelectiveProof=function(e,t,r){ri.checkArgument(e&&typeof e=="object","Invalid credential"),typeof t=="string"&&(t=[t]),ri.checkArgument(Array.isArray(t),"Disclose paths must be array");var i=Nt.createMerkleTree(e,r),n=[],o=[];return t.forEach(function(a){var s=i.leaves.find(l=>l.path===a);if(s){n.push(s);var u=i.leaves.findIndex(l=>l.path===a),c=Nt._generateMerkleProof(i.tree,u);o.push({path:a,leafIndex:u,proof:c})}}),{type:"SelectiveDisclosureProof",created:new Date().toISOString(),proofPurpose:"selectiveDisclosure",verificationMethod:e.proof?e.proof.verificationMethod:null,credentialRoot:i.root,credentialHash:e.rootHash||P9._hashCredential(e).toString("hex"),disclosedFields:n.map(function(a){return{path:a.path,value:a.value,hash:a.hash,salt:a.salt}}),merkleProofs:o}};Nt.verifySelectiveProof=function(e,t){try{ri.checkArgument(e&&typeof e=="object","Invalid proof"),ri.checkArgument(typeof t=="string","Expected root must be string");for(var r={valid:!1,errors:[],verifiedFields:[]},i=0;i<e.disclosedFields.length;i++){var n=e.disclosedFields[i],o=e.merkleProofs.find(c=>c.path===n.path);if(!o){r.errors.push("Missing Merkle proof for field: "+n.path);continue}if(typeof n.salt!="string"||!n.salt){r.errors.push("Missing per-field salt for: "+n.path);continue}var a=n.path+":"+JSON.stringify(n.value)+":"+n.salt,s=Ri.sha256(f.Buffer.from(a,"utf8")).toString("hex");if(s!==n.hash){r.errors.push("Field hash mismatch for: "+n.path);continue}var u=Nt._verifyMerkleProof(n.hash,o.proof,t);if(!u){r.errors.push("Invalid Merkle proof for: "+n.path);continue}r.verifiedFields.push({path:n.path,value:n.value,verified:!0})}return r.valid=r.errors.length===0&&r.verifiedFields.length>0,r}catch(c){return{valid:!1,errors:["Proof verification failed: "+c.message],verifiedFields:[]}}};Nt.generateAgeProof=function(e,t,r){ri.checkArgument(e instanceof Date,"Birth date must be Date object"),ri.checkArgument(typeof t=="number","Minimum age must be number"),r=r||Jg.getRandomBuffer(32).toString("hex");var i=new Date,n=Math.floor((i-e)/(365.25*24*60*60*1e3));if(n<t)throw new Error("Age requirement not met");var o=e.toISOString().split("T")[0],a=Ri.sha256(f.Buffer.from(o+":"+r,"utf8")).toString("hex"),s={minimumAge:t,ageAttestation:n>=t,timestamp:i.toISOString(),salt:r},u=Ri.sha256(f.Buffer.from(JSON.stringify(s),"utf8")).toString("hex");return{type:"AgeProof",created:new Date().toISOString(),proofPurpose:"ageVerification",minimumAge:t,meetsRequirement:!0,birthDateCommitment:a,ageProofHash:u,challengeResponse:Nt._generateAgeChallenge(e,t,r),opening:{birthDate:o,salt:r}}};Nt.verifyAgeProof=function(e,t,r){try{if(ri.checkArgument(e&&typeof e=="object","Invalid proof"),ri.checkArgument(typeof t=="number","Required age must be number"),e.type!=="AgeProof"||e.minimumAge!==t||!r||typeof r!="object")return!1;var i=r.birthDate;if(typeof i=="string"&&(i=new Date(i)),!(i instanceof Date)||isNaN(i.getTime())||typeof r.salt!="string")return!1;var n=i.toISOString().split("T")[0],o=Ri.sha256(f.Buffer.from(n+":"+r.salt,"utf8")).toString("hex");if(o!==e.birthDateCommitment)return!1;var a=Math.floor((Date.now()-i.getTime())/(365.25*24*60*60*1e3));return a>=t}catch{return!1}};Nt.generateRangeProof=function(e,t,r,i){ri.checkArgument(typeof e=="number","Value must be number"),ri.checkArgument(typeof t=="number","Min must be number"),ri.checkArgument(typeof r=="number","Max must be number"),ri.checkArgument(e>=t&&e<=r,"Value not in range"),i=i||Jg.getRandomBuffer(32).toString("hex");var n=Ri.sha256(f.Buffer.from(e.toString()+":"+i,"utf8")).toString("hex"),o={min:t,max:r,inRange:!0,timestamp:new Date().toISOString(),salt:i},a=Ri.sha256(f.Buffer.from(JSON.stringify(o),"utf8")).toString("hex");return{type:"RangeProof",created:new Date().toISOString(),proofPurpose:"rangeVerification",range:{min:t,max:r},valueCommitment:n,proofHash:a,inRange:!0,opening:{value:e,salt:i}}};Nt.verifyRangeProof=function(e,t,r,i){try{if(ri.checkArgument(e&&typeof e=="object","Invalid proof"),e.type!=="RangeProof"||!e.range||e.range.min!==t||e.range.max!==r||!i||typeof i!="object"||typeof i.value!="number"||typeof i.salt!="string")return!1;var n=Ri.sha256(f.Buffer.from(i.value.toString()+":"+i.salt,"utf8")).toString("hex");return n!==e.valueCommitment?!1:i.value>=t&&i.value<=r}catch{return!1}};Nt._extractFields=function(e,t){t=t||"";var r=[];return Object.keys(e).forEach(function(i){var n=t?t+"."+i:i,o=e[i];o&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)?r=r.concat(Nt._extractFields(o,n)):r.push({path:n,value:o})}),r};Nt._buildMerkleTree=function(e){if(e.length===0)throw new Error("Cannot build tree from empty leaves");for(var t=[e];t[t.length-1].length>1;){for(var r=t[t.length-1],i=[],n=0;n<r.length;n+=2){var o=r[n],a=n+1<r.length?r[n+1]:o,s=o+a,u=Ri.sha256(f.Buffer.from(s,"hex")).toString("hex");i.push(u)}t.push(i)}return t};Nt._generateMerkleProof=function(e,t){for(var r=[],i=t,n=0;n<e.length-1;n++){var o=e[n],a=i%2===0,s=a?i+1:i-1;s<o.length&&r.push({hash:o[s],isLeft:!a}),i=Math.floor(i/2)}return r};Nt._verifyMerkleProof=function(e,t,r){for(var i=e,n=0;n<t.length;n++){var o=t[n],a=o.isLeft?o.hash+i:i+o.hash;i=Ri.sha256(f.Buffer.from(a,"hex")).toString("hex")}return i===r};Nt._generateAgeChallenge=function(e,t,r){var i=Ri.sha256(f.Buffer.from(e.toISOString()+t+r,"utf8"));return i.toString("hex")};Nt.generateMembershipProof=function(e,t,r){ri.checkArgument(Array.isArray(e),"Set must be array"),ri.checkArgument(e.includes(t),"Value not in set"),r=r||Jg.getRandomBuffer(32).toString("hex");var i=e.map(function(o){return Ri.sha256(f.Buffer.from(JSON.stringify(o)+":"+r,"utf8")).toString("hex")}),n=Ri.sha256(f.Buffer.from(JSON.stringify(t)+":"+r,"utf8")).toString("hex");return{type:"MembershipProof",created:new Date().toISOString(),proofPurpose:"membershipVerification",setCommitments:i,valueCommitment:n,isMember:!0}};Nt.verifyMembershipProof=function(e){try{return ri.checkArgument(e&&typeof e=="object","Invalid proof"),e.type!=="MembershipProof"||!Array.isArray(e.setCommitments)?!1:e.setCommitments.includes(e.valueCommitment)&&e.isMember}catch{return!1}};YB.exports=Nt});var __=P((Hse,tN)=>{"use strict";g();var Ar=Qe(),$B=Oe(),XB=Ze(),R9=_c(),Qg=wc(),JB=Be(),em=ah(),tu=ta(),b_=nn(),QB=Gt(),eN=ci(),oh=eN,Cn=eN.HDPublicKey,tm=ja(),Qa=ei();function re(e){if(e instanceof re)return e;if(!(this instanceof re))return new re(e);if(e)if(Ar.isString(e)||f.Buffer.isBuffer(e)){var t=re.getSerializedError(e);if(t){if(f.Buffer.isBuffer(e)&&!re.getSerializedError(e.toString()))return this._buildFromSerialized(e.toString());if(t instanceof Cn.ArgumentIsPrivateExtended)return new em(e).hdPublicKey;throw t}else return this._buildFromSerialized(e)}else{if(Ar.isObject(e))return e instanceof em?this._buildFromPrivate(e):this._buildFromObject(e);throw new Cn.UnrecognizedArgument(e)}else throw new Cn.MustSupplyArgument}re.fromHDPrivateKey=function(e){return new re(e)};re.isValidPath=function(e){if(Ar.isString(e)){var t=em._getDerivationIndexes(e);return t!==null&&Ar.every(t,re.isValidPath)}return Ar.isNumber(e)?e>=0&&e<re.Hardened:!1};re.prototype.derive=function(){throw new Error("derive has been deprecated. use deriveChild or, for the old way, deriveNonCompliantChild.")};re.prototype.deriveChild=function(e,t){if(Ar.isNumber(e))return this._deriveWithNumber(e,t);if(Ar.isString(e))return this._deriveFromString(e);throw new Cn.InvalidDerivationArgument(e)};re.prototype._deriveWithNumber=function(e,t){if(e>=re.Hardened||t)throw new Cn.InvalidIndexCantDeriveHardened;if(e<0)throw new Cn.InvalidPath(e);var r=Qa.integerAsBuffer(e),i=f.Buffer.concat([this.publicKey.toBuffer(),r]),n=JB.sha512hmac(i,this._buffers.chainCode),o=XB.fromBuffer(n.slice(0,32),{size:32}),a=n.slice(32,64),s;try{s=QB.fromPoint(b_.getG().mul(o).add(this.publicKey.point))}catch{return this._deriveWithNumber(e+1)}var u=new re({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:a,publicKey:s});return u};re.prototype._deriveFromString=function(e){if(Ar.includes(e,"'"))throw new Cn.InvalidIndexCantDeriveHardened;if(!re.isValidPath(e))throw new Cn.InvalidPath(e);var t=em._getDerivationIndexes(e),r=t.reduce(function(i,n){return i._deriveWithNumber(n)},this);return r};re.isValidSerialized=function(e,t){return Ar.isNull(re.getSerializedError(e,t))};re.getSerializedError=function(e,t){if(!(Ar.isString(e)||f.Buffer.isBuffer(e)))return new Cn.UnrecognizedArgument("expected buffer or string");if(!R9.validCharacters(e))return new oh.InvalidB58Char("(unknown)",e);try{e=Qg.decode(e)}catch{return new oh.InvalidB58Checksum(e)}if(e.length!==re.DataSize)return new Cn.InvalidLength(e);if(!Ar.isUndefined(t)){var r=re._validateNetwork(e,t);if(r)return r}var i=e.readUInt32BE(0);return i===tu.livenet.xprivkey||i===tu.testnet.xprivkey?new Cn.ArgumentIsPrivateExtended:null};re._validateNetwork=function(e,t){var r=tu.get(t);if(!r)return new oh.InvalidNetworkArgument(t);var i=e.slice(re.VersionStart,re.VersionEnd);return i.readUInt32BE(0)!==r.xpubkey?new oh.InvalidNetwork(i):null};re.prototype._buildFromPrivate=function(e){var t=Ar.clone(e._buffers),r=b_.getG().mul(XB.fromBuffer(t.privateKey));return t.publicKey=b_.pointToCompressed(r),t.version=Qa.integerAsBuffer(tu.get(t.version.readUInt32BE(0)).xpubkey),t.privateKey=void 0,t.checksum=void 0,t.xprivkey=void 0,this._buildFromBuffers(t)};re.prototype._buildFromObject=function(e){var t={version:e.network?Qa.integerAsBuffer(tu.get(e.network).xpubkey):e.version,depth:Ar.isNumber(e.depth)?f.Buffer.from([e.depth&255]):e.depth,parentFingerPrint:Ar.isNumber(e.parentFingerPrint)?Qa.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:Ar.isNumber(e.childIndex)?Qa.integerAsBuffer(e.childIndex):e.childIndex,chainCode:Ar.isString(e.chainCode)?f.Buffer.from(e.chainCode,"hex"):e.chainCode,publicKey:Ar.isString(e.publicKey)?f.Buffer.from(e.publicKey,"hex"):f.Buffer.isBuffer(e.publicKey)?e.publicKey:e.publicKey.toBuffer(),checksum:Ar.isNumber(e.checksum)?Qa.integerAsBuffer(e.checksum):e.checksum};return this._buildFromBuffers(t)};re.prototype._buildFromSerialized=function(e){var t=Qg.decode(e),r={version:t.slice(re.VersionStart,re.VersionEnd),depth:t.slice(re.DepthStart,re.DepthEnd),parentFingerPrint:t.slice(re.ParentFingerPrintStart,re.ParentFingerPrintEnd),childIndex:t.slice(re.ChildIndexStart,re.ChildIndexEnd),chainCode:t.slice(re.ChainCodeStart,re.ChainCodeEnd),publicKey:t.slice(re.PublicKeyStart,re.PublicKeyEnd),checksum:t.slice(re.ChecksumStart,re.ChecksumEnd),xpubkey:e};return this._buildFromBuffers(r)};re.prototype._buildFromBuffers=function(e){re._validateBufferArguments(e),Qa.defineImmutable(this,{_buffers:e});var t=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,e.publicKey],r=f.Buffer.concat(t),i=Qg.checksum(r);if(!e.checksum||!e.checksum.length)e.checksum=i;else if(e.checksum.toString("hex")!==i.toString("hex"))throw new oh.InvalidB58Checksum(r,i);var n=tu.get(e.version.readUInt32BE(0)),o;o=Qg.encode(f.Buffer.concat(t)),e.xpubkey=f.Buffer.from(o);var a=new QB(e.publicKey,{network:n}),s=re.ParentFingerPrintSize,u=JB.sha256ripemd160(a.toBuffer()).slice(0,s);return Qa.defineImmutable(this,{xpubkey:o,network:n,depth:e.depth[0],publicKey:a,fingerPrint:u}),this};re._validateBufferArguments=function(e){var t=function(r,i){var n=e[r];tm(f.Buffer.isBuffer(n),r+" argument is not a buffer, it's "+typeof n),tm(n.length===i,r+" has not the expected size: found "+n.length+", expected "+i)};t("version",re.VersionSize),t("depth",re.DepthSize),t("parentFingerPrint",re.ParentFingerPrintSize),t("childIndex",re.ChildIndexSize),t("chainCode",re.ChainCodeSize),t("publicKey",re.PublicKeySize),e.checksum&&e.checksum.length&&t("checksum",re.CheckSumSize)};re.fromString=function(e){return $B.checkArgument(Ar.isString(e),"No valid string was provided"),new re(e)};re.fromObject=function(e){return $B.checkArgument(Ar.isObject(e),"No valid argument was provided"),new re(e)};re.prototype.toString=function(){return this.xpubkey};re.prototype.inspect=function(){return"<HDPublicKey: "+this.xpubkey+">"};re.prototype.toObject=re.prototype.toJSON=function(){return{network:tu.get(this._buffers.version.readUInt32BE(0)).name,depth:this._buffers.depth[0],fingerPrint:this.fingerPrint.readUInt32BE(0),parentFingerPrint:this._buffers.parentFingerPrint.readUInt32BE(0),childIndex:this._buffers.childIndex.readUInt32BE(0),chainCode:this._buffers.chainCode.toString("hex"),publicKey:this.publicKey.toString(),checksum:this._buffers.checksum.readUInt32BE(0),xpubkey:this.xpubkey}};re.fromBuffer=function(e){return new re(e)};re.fromHex=function(e){return re.fromBuffer(f.Buffer.from(e,"hex"))};re.prototype.toBuffer=function(){return f.Buffer.from(this._buffers.xpubkey)};re.prototype.toHex=function(){return this.toBuffer().toString("hex")};re.Hardened=2147483648;re.RootElementAlias=["m","M"];re.VersionSize=4;re.DepthSize=1;re.ParentFingerPrintSize=4;re.ChildIndexSize=4;re.ChainCodeSize=32;re.PublicKeySize=33;re.CheckSumSize=4;re.DataSize=78;re.SerializedByteSize=82;re.VersionStart=0;re.VersionEnd=re.VersionStart+re.VersionSize;re.DepthStart=re.VersionEnd;re.DepthEnd=re.DepthStart+re.DepthSize;re.ParentFingerPrintStart=re.DepthEnd;re.ParentFingerPrintEnd=re.ParentFingerPrintStart+re.ParentFingerPrintSize;re.ChildIndexStart=re.ParentFingerPrintEnd;re.ChildIndexEnd=re.ChildIndexStart+re.ChildIndexSize;re.ChainCodeStart=re.ChildIndexEnd;re.ChainCodeEnd=re.ChainCodeStart+re.ChainCodeSize;re.PublicKeyStart=re.ChainCodeEnd;re.PublicKeyEnd=re.PublicKeyStart+re.PublicKeySize;re.ChecksumStart=re.PublicKeyEnd;re.ChecksumEnd=re.ChecksumStart+re.CheckSumSize;tm(re.PublicKeyEnd===re.DataSize);tm(re.ChecksumEnd===re.SerializedByteSize);tN.exports=re});var ah=P((Fse,aN)=>{"use strict";g();var rm=ja(),uh=jt(),er=Qe(),iN=Oe(),nN=Ze(),k9=_c(),sh=wc(),w_=Be(),ru=ta(),B9=nn(),oN=Zr(),N9=Ui(),Cc=ci(),lo=Cc.HDPrivateKey,fo=ei(),C9=128,rN=1/8,L9=512;function Z(e){if(e instanceof Z)return e;if(!(this instanceof Z))return new Z(e);if(!e)return this._generateRandomly();if(ru.get(e))return this._generateRandomly(e);if(er.isString(e)||f.Buffer.isBuffer(e))if(Z.isValidSerialized(e))this._buildFromSerialized(e);else if(fo.isValidJSON(e))this._buildFromJSON(e);else if(f.Buffer.isBuffer(e)&&Z.isValidSerialized(e.toString()))this._buildFromSerialized(e.toString());else throw Z.getSerializedError(e);else if(er.isObject(e))this._buildFromObject(e);else throw new lo.UnrecognizedArgument(e)}Z.fromRandom=function(e){return new Z(e)};Z.isValidPath=function(e,t){if(er.isString(e)){var r=Z._getDerivationIndexes(e);return r!==null&&er.every(r,Z.isValidPath)}return er.isNumber(e)?(e<Z.Hardened&&t===!0&&(e+=Z.Hardened),e>=0&&e<Z.MaxIndex):!1};Z._getDerivationIndexes=function(e){var t=e.split("/");if(er.includes(Z.RootElementAlias,e))return[];if(!er.includes(Z.RootElementAlias,t[0]))return null;var r=t.slice(1).map(function(i){var n=i.slice(-1)==="'";if(n&&(i=i.slice(0,-1)),!i||i[0]==="-")return NaN;var o=+i;return n&&(o+=Z.Hardened),o});return er.some(r,isNaN)?null:r};Z.prototype.derive=function(){throw new Error("derive has been deprecated. use deriveChild or, for the old way, deriveNonCompliantChild.")};Z.prototype.deriveChild=function(e,t){if(er.isNumber(e))return this._deriveWithNumber(e,t);if(er.isString(e))return this._deriveFromString(e);throw new lo.InvalidDerivationArgument(e)};Z.prototype.deriveNonCompliantChild=function(e,t){if(er.isNumber(e))return this._deriveWithNumber(e,t,!0);if(er.isString(e))return this._deriveFromString(e,!0);throw new lo.InvalidDerivationArgument(e)};Z.prototype._deriveWithNumber=function(e,t,r){if(!Z.isValidPath(e,t))throw new lo.InvalidPath(e);t=e>=Z.Hardened?!0:t,e<Z.Hardened&&t===!0&&(e+=Z.Hardened);var i=fo.integerAsBuffer(e),n;if(t&&r){var o=this.privateKey.bn.toBuffer();n=f.Buffer.concat([uh.Buffer.from([0]),o,i])}else if(t){var a=this.privateKey.bn.toBuffer({size:32});rm(a.length===32,"length of private key buffer is expected to be 32 bytes"),n=f.Buffer.concat([uh.Buffer.from([0]),a,i])}else n=f.Buffer.concat([this.publicKey.toBuffer(),i]);var s=w_.sha512hmac(n,this._buffers.chainCode),u=nN.fromBuffer(s.slice(0,32),{size:32}),c=s.slice(32,64),l=u.add(this.privateKey.toBigNumber()).umod(B9.getN()).toBuffer({size:32});if(!oN.isValid(l))return this._deriveWithNumber(e+1,null,r);var d=new Z({network:this.network,depth:this.depth+1,parentFingerPrint:this.fingerPrint,childIndex:e,chainCode:c,privateKey:l});return d};Z.prototype._deriveFromString=function(e,t){if(!Z.isValidPath(e))throw new lo.InvalidPath(e);var r=Z._getDerivationIndexes(e),i=r.reduce(function(n,o){return n._deriveWithNumber(o,null,t)},this);return i};Z.isValidSerialized=function(e,t){return!Z.getSerializedError(e,t)};Z.getSerializedError=function(e,t){if(!(er.isString(e)||f.Buffer.isBuffer(e)))return new lo.UnrecognizedArgument("Expected string or buffer");if(!k9.validCharacters(e))return new Cc.InvalidB58Char("(unknown)",e);try{e=sh.decode(e)}catch{return new Cc.InvalidB58Checksum(e)}if(e.length!==Z.DataLength)return new lo.InvalidLength(e);if(!er.isUndefined(t)){var r=Z._validateNetwork(e,t);if(r)return r}return null};Z._validateNetwork=function(e,t){var r=ru.get(t);if(!r)return new Cc.InvalidNetworkArgument(t);var i=e.slice(0,4);return i.readUInt32BE(0)!==r.xprivkey?new Cc.InvalidNetwork(i):null};Z.fromString=function(e){return iN.checkArgument(er.isString(e),"No valid string was provided"),new Z(e)};Z.fromObject=function(e){return iN.checkArgument(er.isObject(e),"No valid argument was provided"),new Z(e)};Z.prototype._buildFromJSON=function(e){return this._buildFromObject(JSON.parse(e))};Z.prototype._buildFromObject=function(e){var t={version:e.network?fo.integerAsBuffer(ru.get(e.network).xprivkey):e.version,depth:er.isNumber(e.depth)?f.Buffer.from([e.depth&255]):e.depth,parentFingerPrint:er.isNumber(e.parentFingerPrint)?fo.integerAsBuffer(e.parentFingerPrint):e.parentFingerPrint,childIndex:er.isNumber(e.childIndex)?fo.integerAsBuffer(e.childIndex):e.childIndex,chainCode:er.isString(e.chainCode)?f.Buffer.from(e.chainCode,"hex"):e.chainCode,privateKey:er.isString(e.privateKey)&&fo.isHexa(e.privateKey)?f.Buffer.from(e.privateKey,"hex"):e.privateKey,checksum:e.checksum?e.checksum.length?e.checksum:fo.integerAsBuffer(e.checksum):void 0};return this._buildFromBuffers(t)};Z.prototype._buildFromSerialized=function(e){var t=sh.decode(e),r={version:t.slice(Z.VersionStart,Z.VersionEnd),depth:t.slice(Z.DepthStart,Z.DepthEnd),parentFingerPrint:t.slice(Z.ParentFingerPrintStart,Z.ParentFingerPrintEnd),childIndex:t.slice(Z.ChildIndexStart,Z.ChildIndexEnd),chainCode:t.slice(Z.ChainCodeStart,Z.ChainCodeEnd),privateKey:t.slice(Z.PrivateKeyStart,Z.PrivateKeyEnd),checksum:t.slice(Z.ChecksumStart,Z.ChecksumEnd),xprivkey:e};return this._buildFromBuffers(r)};Z.prototype._generateRandomly=function(e){return Z.fromSeed(N9.getRandomBuffer(64),e)};Z.fromSeed=function(e,t){if(fo.isHexaString(e)&&(e=f.Buffer.from(e,"hex")),!f.Buffer.isBuffer(e))throw new lo.InvalidEntropyArgument(e);if(e.length<C9*rN)throw new lo.InvalidEntropyArgument.NotEnoughEntropy(e);if(e.length>L9*rN)throw new lo.InvalidEntropyArgument.TooMuchEntropy(e);var r=w_.sha512hmac(e,uh.Buffer.from("Bitcoin seed"));return new Z({network:ru.get(t)||ru.defaultNetwork,depth:0,parentFingerPrint:0,childIndex:0,privateKey:r.slice(0,32),chainCode:r.slice(32,64)})};Z.prototype._calcHDPublicKey=function(){if(!this._hdPublicKey){var e=__();this._hdPublicKey=new e(this)}};Z.prototype._buildFromBuffers=function(e){Z._validateBufferArguments(e),fo.defineImmutable(this,{_buffers:e});var t=[e.version,e.depth,e.parentFingerPrint,e.childIndex,e.chainCode,f.Buffer.alloc(1),e.privateKey],r=uh.Buffer.concat(t);if(!e.checksum||!e.checksum.length)e.checksum=sh.checksum(r);else if(e.checksum.toString()!==sh.checksum(r).toString())throw new Cc.InvalidB58Checksum(r);var i=ru.get(e.version.readUInt32BE(0)),n;n=sh.encode(uh.Buffer.concat(t)),e.xprivkey=f.Buffer.from(n);var o=new oN(nN.fromBuffer(e.privateKey),i),a=o.toPublicKey(),s=Z.ParentFingerPrintSize,u=w_.sha256ripemd160(a.toBuffer()).slice(0,s);return fo.defineImmutable(this,{xprivkey:n,network:i,depth:e.depth[0],privateKey:o,publicKey:a,fingerPrint:u}),this._hdPublicKey=null,Object.defineProperty(this,"hdPublicKey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey}}),Object.defineProperty(this,"xpubkey",{configurable:!1,enumerable:!0,get:function(){return this._calcHDPublicKey(),this._hdPublicKey.xpubkey}}),this};Z._validateBufferArguments=function(e){var t=function(r,i){var n=e[r];rm(f.Buffer.isBuffer(n),r+" argument is not a buffer"),rm(n.length===i,r+" has not the expected size: found "+n.length+", expected "+i)};t("version",Z.VersionSize),t("depth",Z.DepthSize),t("parentFingerPrint",Z.ParentFingerPrintSize),t("childIndex",Z.ChildIndexSize),t("chainCode",Z.ChainCodeSize),t("privateKey",Z.PrivateKeySize),e.checksum&&e.checksum.length&&t("checksum",Z.CheckSumSize)};Z.prototype.toString=function(){return this.xprivkey};Z.prototype.inspect=function(){return"<HDPrivateKey: "+this.xprivkey+">"};Z.prototype.toObject=Z.prototype.toJSON=function(){return{network:ru.get(this._buffers.version.readUInt32BE(0),"xprivkey").name,depth:this._buffers.depth[0],fingerPrint:this.fingerPrint.readUInt32BE(0),parentFingerPrint:this._buffers.parentFingerPrint.readUInt32BE(0),childIndex:this._buffers.childIndex.readUInt32BE(0),chainCode:this._buffers.chainCode.toString("hex"),privateKey:this.privateKey.toBuffer().toString("hex"),checksum:this._buffers.checksum.readUInt32BE(0),xprivkey:this.xprivkey}};Z.fromBuffer=function(e){return new Z(e.toString())};Z.fromHex=function(e){return Z.fromBuffer(f.Buffer.from(e,"hex"))};Z.prototype.toBuffer=function(){return f.Buffer.from(this.toString())};Z.prototype.toHex=function(){return this.toBuffer().toString("hex")};Z.DefaultDepth=0;Z.DefaultFingerprint=0;Z.DefaultChildIndex=0;Z.Hardened=2147483648;Z.MaxIndex=2*Z.Hardened;Z.RootElementAlias=["m","M","m'","M'"];Z.VersionSize=4;Z.DepthSize=1;Z.ParentFingerPrintSize=4;Z.ChildIndexSize=4;Z.ChainCodeSize=32;Z.PrivateKeySize=32;Z.CheckSumSize=4;Z.DataLength=78;Z.SerializedByteSize=82;Z.VersionStart=0;Z.VersionEnd=Z.VersionStart+Z.VersionSize;Z.DepthStart=Z.VersionEnd;Z.DepthEnd=Z.DepthStart+Z.DepthSize;Z.ParentFingerPrintStart=Z.DepthEnd;Z.ParentFingerPrintEnd=Z.ParentFingerPrintStart+Z.ParentFingerPrintSize;Z.ChildIndexStart=Z.ParentFingerPrintEnd;Z.ChildIndexEnd=Z.ChildIndexStart+Z.ChildIndexSize;Z.ChainCodeStart=Z.ChildIndexEnd;Z.ChainCodeEnd=Z.ChainCodeStart+Z.ChainCodeSize;Z.PrivateKeyStart=Z.ChainCodeEnd+1;Z.PrivateKeyEnd=Z.PrivateKeyStart+Z.PrivateKeySize;Z.ChecksumStart=Z.PrivateKeyEnd;Z.ChecksumEnd=Z.ChecksumStart+Z.CheckSumSize;rm(Z.ChecksumEnd===Z.SerializedByteSize);aN.exports=Z});var cN=P((zse,uN)=>{"use strict";g();var sN=Kt();function M9(e,t,r,i){var n=64;if(i>(Math.pow(2,32)-1)*n)throw Error("Requested key length too long");if(typeof e!="string"&&!f.Buffer.isBuffer(e))throw new TypeError("key must a string or Buffer");if(typeof t!="string"&&!f.Buffer.isBuffer(t))throw new TypeError("salt must a string or Buffer");typeof e=="string"&&(e=f.Buffer.from(e)),typeof t=="string"&&(t=f.Buffer.from(t));var o=f.Buffer.alloc(i),a=f.Buffer.alloc(n),s=f.Buffer.alloc(n),u=f.Buffer.alloc(t.length+4),c=Math.ceil(i/n),l=i-(c-1)*n;t.copy(u,0,0,t.length);for(var d=1;d<=c;d++){u[t.length+0]=d>>24&255,u[t.length+1]=d>>16&255,u[t.length+2]=d>>8&255,u[t.length+3]=d>>0&255,a=sN.createHmac("sha512",e).update(u).digest(),a.copy(s,0,0,n);for(var p=1;p<r;p++){a=sN.createHmac("sha512",e).update(a).digest();for(var y=0;y<n;y++)s[y]^=a[y]}var _=(d-1)*n,T=d===c?l:n;s.copy(o,_,0,T)}return o}uN.exports=M9});var hN=P((Vse,lN)=>{"use strict";g();var fN=Be();function D9(e,t,r,i){var n=64;if(i>(Math.pow(2,32)-1)*n)throw Error("Requested key length too long");if(typeof e!="string"&&!f.Buffer.isBuffer(e))throw new TypeError("key must a string or Buffer");if(typeof t!="string"&&!f.Buffer.isBuffer(t))throw new TypeError("salt must a string or Buffer");typeof e=="string"&&(e=f.Buffer.from(e)),typeof t=="string"&&(t=f.Buffer.from(t));var o=f.Buffer.alloc(i),a=f.Buffer.alloc(n),s=f.Buffer.alloc(n),u=f.Buffer.alloc(t.length+4),c=Math.ceil(i/n),l=i-(c-1)*n;t.copy(u,0,0,t.length);for(var d=1;d<=c;d++){u[t.length+0]=d>>24&255,u[t.length+1]=d>>16&255,u[t.length+2]=d>>8&255,u[t.length+3]=d>>0&255,a=fN.sha512hmac(u,e),a.copy(s,0,0,n);for(var p=1;p<r;p++){a=fN.sha512hmac(a,e);for(var y=0;y<n;y++)s[y]^=a[y]}var _=(d-1)*n,T=d===c?l:n;s.copy(o,_,0,T)}return o}lN.exports=D9});var pN=P((Wse,dN)=>{"use strict";g();var q9="87aa7cdea5ef619d4ff0b4241a1d6cb02379f4e2ce4ec2787ad0b30545e17cdedaa833b7d6b8a702038b274eaea3f4e4be9d914eeb61f1702e696c203a126854";function H9(){var e;try{e=Kt()}catch{return!1}if(!e||typeof e.createHmac!="function")return!1;try{var t=e.createHmac("sha512",f.Buffer.alloc(20,11)).update("Hi There").digest("hex");return t===q9}catch{return!1}}dN.exports=H9()?cN():hN()});var mN=P((Zse,gN)=>{"use strict";g();var U9={name:"Mnemonic",message:"Internal Error on bsv-mnemonic module {0}",errors:[{name:"InvalidEntropy",message:"Entropy length must be an even multiple of 11 bits: {0}"},{name:"UnknownWordlist",message:"Could not detect the used word list: {0}"},{name:"InvalidMnemonic",message:"Mnemonic string is invalid: {0}"}]};gN.exports=ci().extend(U9)});var yN=P((Xse,vN)=>{"use strict";g();var F9=["\u7684","\u4E00","\u662F","\u5728","\u4E0D","\u4E86","\u6709","\u548C","\u4EBA","\u8FD9","\u4E2D","\u5927","\u4E3A","\u4E0A","\u4E2A","\u56FD","\u6211","\u4EE5","\u8981","\u4ED6","\u65F6","\u6765","\u7528","\u4EEC","\u751F","\u5230","\u4F5C","\u5730","\u4E8E","\u51FA","\u5C31","\u5206","\u5BF9","\u6210","\u4F1A","\u53EF","\u4E3B","\u53D1","\u5E74","\u52A8","\u540C","\u5DE5","\u4E5F","\u80FD","\u4E0B","\u8FC7","\u5B50","\u8BF4","\u4EA7","\u79CD","\u9762","\u800C","\u65B9","\u540E","\u591A","\u5B9A","\u884C","\u5B66","\u6CD5","\u6240","\u6C11","\u5F97","\u7ECF","\u5341","\u4E09","\u4E4B","\u8FDB","\u7740","\u7B49","\u90E8","\u5EA6","\u5BB6","\u7535","\u529B","\u91CC","\u5982","\u6C34","\u5316","\u9AD8","\u81EA","\u4E8C","\u7406","\u8D77","\u5C0F","\u7269","\u73B0","\u5B9E","\u52A0","\u91CF","\u90FD","\u4E24","\u4F53","\u5236","\u673A","\u5F53","\u4F7F","\u70B9","\u4ECE","\u4E1A","\u672C","\u53BB","\u628A","\u6027","\u597D","\u5E94","\u5F00","\u5B83","\u5408","\u8FD8","\u56E0","\u7531","\u5176","\u4E9B","\u7136","\u524D","\u5916","\u5929","\u653F","\u56DB","\u65E5","\u90A3","\u793E","\u4E49","\u4E8B","\u5E73","\u5F62","\u76F8","\u5168","\u8868","\u95F4","\u6837","\u4E0E","\u5173","\u5404","\u91CD","\u65B0","\u7EBF","\u5185","\u6570","\u6B63","\u5FC3","\u53CD","\u4F60","\u660E","\u770B","\u539F","\u53C8","\u4E48","\u5229","\u6BD4","\u6216","\u4F46","\u8D28","\u6C14","\u7B2C","\u5411","\u9053","\u547D","\u6B64","\u53D8","\u6761","\u53EA","\u6CA1","\u7ED3","\u89E3","\u95EE","\u610F","\u5EFA","\u6708","\u516C","\u65E0","\u7CFB","\u519B","\u5F88","\u60C5","\u8005","\u6700","\u7ACB","\u4EE3","\u60F3","\u5DF2","\u901A","\u5E76","\u63D0","\u76F4","\u9898","\u515A","\u7A0B","\u5C55","\u4E94","\u679C","\u6599","\u8C61","\u5458","\u9769","\u4F4D","\u5165","\u5E38","\u6587","\u603B","\u6B21","\u54C1","\u5F0F","\u6D3B","\u8BBE","\u53CA","\u7BA1","\u7279","\u4EF6","\u957F","\u6C42","\u8001","\u5934","\u57FA","\u8D44","\u8FB9","\u6D41","\u8DEF","\u7EA7","\u5C11","\u56FE","\u5C71","\u7EDF","\u63A5","\u77E5","\u8F83","\u5C06","\u7EC4","\u89C1","\u8BA1","\u522B","\u5979","\u624B","\u89D2","\u671F","\u6839","\u8BBA","\u8FD0","\u519C","\u6307","\u51E0","\u4E5D","\u533A","\u5F3A","\u653E","\u51B3","\u897F","\u88AB","\u5E72","\u505A","\u5FC5","\u6218","\u5148","\u56DE","\u5219","\u4EFB","\u53D6","\u636E","\u5904","\u961F","\u5357","\u7ED9","\u8272","\u5149","\u95E8","\u5373","\u4FDD","\u6CBB","\u5317","\u9020","\u767E","\u89C4","\u70ED","\u9886","\u4E03","\u6D77","\u53E3","\u4E1C","\u5BFC","\u5668","\u538B","\u5FD7","\u4E16","\u91D1","\u589E","\u4E89","\u6D4E","\u9636","\u6CB9","\u601D","\u672F","\u6781","\u4EA4","\u53D7","\u8054","\u4EC0","\u8BA4","\u516D","\u5171","\u6743","\u6536","\u8BC1","\u6539","\u6E05","\u7F8E","\u518D","\u91C7","\u8F6C","\u66F4","\u5355","\u98CE","\u5207","\u6253","\u767D","\u6559","\u901F","\u82B1","\u5E26","\u5B89","\u573A","\u8EAB","\u8F66","\u4F8B","\u771F","\u52A1","\u5177","\u4E07","\u6BCF","\u76EE","\u81F3","\u8FBE","\u8D70","\u79EF","\u793A","\u8BAE","\u58F0","\u62A5","\u6597","\u5B8C","\u7C7B","\u516B","\u79BB","\u534E","\u540D","\u786E","\u624D","\u79D1","\u5F20","\u4FE1","\u9A6C","\u8282","\u8BDD","\u7C73","\u6574","\u7A7A","\u5143","\u51B5","\u4ECA","\u96C6","\u6E29","\u4F20","\u571F","\u8BB8","\u6B65","\u7FA4","\u5E7F","\u77F3","\u8BB0","\u9700","\u6BB5","\u7814","\u754C","\u62C9","\u6797","\u5F8B","\u53EB","\u4E14","\u7A76","\u89C2","\u8D8A","\u7EC7","\u88C5","\u5F71","\u7B97","\u4F4E","\u6301","\u97F3","\u4F17","\u4E66","\u5E03","\u590D","\u5BB9","\u513F","\u987B","\u9645","\u5546","\u975E","\u9A8C","\u8FDE","\u65AD","\u6DF1","\u96BE","\u8FD1","\u77FF","\u5343","\u5468","\u59D4","\u7D20","\u6280","\u5907","\u534A","\u529E","\u9752","\u7701","\u5217","\u4E60","\u54CD","\u7EA6","\u652F","\u822C","\u53F2","\u611F","\u52B3","\u4FBF","\u56E2","\u5F80","\u9178","\u5386","\u5E02","\u514B","\u4F55","\u9664","\u6D88","\u6784","\u5E9C","\u79F0","\u592A","\u51C6","\u7CBE","\u503C","\u53F7","\u7387","\u65CF","\u7EF4","\u5212","\u9009","\u6807","\u5199","\u5B58","\u5019","\u6BDB","\u4EB2","\u5FEB","\u6548","\u65AF","\u9662","\u67E5","\u6C5F","\u578B","\u773C","\u738B","\u6309","\u683C","\u517B","\u6613","\u7F6E","\u6D3E","\u5C42","\u7247","\u59CB","\u5374","\u4E13","\u72B6","\u80B2","\u5382","\u4EAC","\u8BC6","\u9002","\u5C5E","\u5706","\u5305","\u706B","\u4F4F","\u8C03","\u6EE1","\u53BF","\u5C40","\u7167","\u53C2","\u7EA2","\u7EC6","\u5F15","\u542C","\u8BE5","\u94C1","\u4EF7","\u4E25","\u9996","\u5E95","\u6DB2","\u5B98","\u5FB7","\u968F","\u75C5","\u82CF","\u5931","\u5C14","\u6B7B","\u8BB2","\u914D","\u5973","\u9EC4","\u63A8","\u663E","\u8C08","\u7F6A","\u795E","\u827A","\u5462","\u5E2D","\u542B","\u4F01","\u671B","\u5BC6","\u6279","\u8425","\u9879","\u9632","\u4E3E","\u7403","\u82F1","\u6C27","\u52BF","\u544A","\u674E","\u53F0","\u843D","\u6728","\u5E2E","\u8F6E","\u7834","\u4E9A","\u5E08","\u56F4","\u6CE8","\u8FDC","\u5B57","\u6750","\u6392","\u4F9B","\u6CB3","\u6001","\u5C01","\u53E6","\u65BD","\u51CF","\u6811","\u6EB6","\u600E","\u6B62","\u6848","\u8A00","\u58EB","\u5747","\u6B66","\u56FA","\u53F6","\u9C7C","\u6CE2","\u89C6","\u4EC5","\u8D39","\u7D27","\u7231","\u5DE6","\u7AE0","\u65E9","\u671D","\u5BB3","\u7EED","\u8F7B","\u670D","\u8BD5","\u98DF","\u5145","\u5175","\u6E90","\u5224","\u62A4","\u53F8","\u8DB3","\u67D0","\u7EC3","\u5DEE","\u81F4","\u677F","\u7530","\u964D","\u9ED1","\u72AF","\u8D1F","\u51FB","\u8303","\u7EE7","\u5174","\u4F3C","\u4F59","\u575A","\u66F2","\u8F93","\u4FEE","\u6545","\u57CE","\u592B","\u591F","\u9001","\u7B14","\u8239","\u5360","\u53F3","\u8D22","\u5403","\u5BCC","\u6625","\u804C","\u89C9","\u6C49","\u753B","\u529F","\u5DF4","\u8DDF","\u867D","\u6742","\u98DE","\u68C0","\u5438","\u52A9","\u5347","\u9633","\u4E92","\u521D","\u521B","\u6297","\u8003","\u6295","\u574F","\u7B56","\u53E4","\u5F84","\u6362","\u672A","\u8DD1","\u7559","\u94A2","\u66FE","\u7AEF","\u8D23","\u7AD9","\u7B80","\u8FF0","\u94B1","\u526F","\u5C3D","\u5E1D","\u5C04","\u8349","\u51B2","\u627F","\u72EC","\u4EE4","\u9650","\u963F","\u5BA3","\u73AF","\u53CC","\u8BF7","\u8D85","\u5FAE","\u8BA9","\u63A7","\u5DDE","\u826F","\u8F74","\u627E","\u5426","\u7EAA","\u76CA","\u4F9D","\u4F18","\u9876","\u7840","\u8F7D","\u5012","\u623F","\u7A81","\u5750","\u7C89","\u654C","\u7565","\u5BA2","\u8881","\u51B7","\u80DC","\u7EDD","\u6790","\u5757","\u5242","\u6D4B","\u4E1D","\u534F","\u8BC9","\u5FF5","\u9648","\u4ECD","\u7F57","\u76D0","\u53CB","\u6D0B","\u9519","\u82E6","\u591C","\u5211","\u79FB","\u9891","\u9010","\u9760","\u6DF7","\u6BCD","\u77ED","\u76AE","\u7EC8","\u805A","\u6C7D","\u6751","\u4E91","\u54EA","\u65E2","\u8DDD","\u536B","\u505C","\u70C8","\u592E","\u5BDF","\u70E7","\u8FC5","\u5883","\u82E5","\u5370","\u6D32","\u523B","\u62EC","\u6FC0","\u5B54","\u641E","\u751A","\u5BA4","\u5F85","\u6838","\u6821","\u6563","\u4FB5","\u5427","\u7532","\u6E38","\u4E45","\u83DC","\u5473","\u65E7","\u6A21","\u6E56","\u8D27","\u635F","\u9884","\u963B","\u6BEB","\u666E","\u7A33","\u4E59","\u5988","\u690D","\u606F","\u6269","\u94F6","\u8BED","\u6325","\u9152","\u5B88","\u62FF","\u5E8F","\u7EB8","\u533B","\u7F3A","\u96E8","\u5417","\u9488","\u5218","\u554A","\u6025","\u5531","\u8BEF","\u8BAD","\u613F","\u5BA1","\u9644","\u83B7","\u8336","\u9C9C","\u7CAE","\u65A4","\u5B69","\u8131","\u786B","\u80A5","\u5584","\u9F99","\u6F14","\u7236","\u6E10","\u8840","\u6B22","\u68B0","\u638C","\u6B4C","\u6C99","\u521A","\u653B","\u8C13","\u76FE","\u8BA8","\u665A","\u7C92","\u4E71","\u71C3","\u77DB","\u4E4E","\u6740","\u836F","\u5B81","\u9C81","\u8D35","\u949F","\u7164","\u8BFB","\u73ED","\u4F2F","\u9999","\u4ECB","\u8FEB","\u53E5","\u4E30","\u57F9","\u63E1","\u5170","\u62C5","\u5F26","\u86CB","\u6C89","\u5047","\u7A7F","\u6267","\u7B54","\u4E50","\u8C01","\u987A","\u70DF","\u7F29","\u5F81","\u8138","\u559C","\u677E","\u811A","\u56F0","\u5F02","\u514D","\u80CC","\u661F","\u798F","\u4E70","\u67D3","\u4E95","\u6982","\u6162","\u6015","\u78C1","\u500D","\u7956","\u7687","\u4FC3","\u9759","\u8865","\u8BC4","\u7FFB","\u8089","\u8DF5","\u5C3C","\u8863","\u5BBD","\u626C","\u68C9","\u5E0C","\u4F24","\u64CD","\u5782","\u79CB","\u5B9C","\u6C22","\u5957","\u7763","\u632F","\u67B6","\u4EAE","\u672B","\u5BAA","\u5E86","\u7F16","\u725B","\u89E6","\u6620","\u96F7","\u9500","\u8BD7","\u5EA7","\u5C45","\u6293","\u88C2","\u80DE","\u547C","\u5A18","\u666F","\u5A01","\u7EFF","\u6676","\u539A","\u76DF","\u8861","\u9E21","\u5B59","\u5EF6","\u5371","\u80F6","\u5C4B","\u4E61","\u4E34","\u9646","\u987E","\u6389","\u5440","\u706F","\u5C81","\u63AA","\u675F","\u8010","\u5267","\u7389","\u8D75","\u8DF3","\u54E5","\u5B63","\u8BFE","\u51EF","\u80E1","\u989D","\u6B3E","\u7ECD","\u5377","\u9F50","\u4F1F","\u84B8","\u6B96","\u6C38","\u5B97","\u82D7","\u5DDD","\u7089","\u5CA9","\u5F31","\u96F6","\u6768","\u594F","\u6CBF","\u9732","\u6746","\u63A2","\u6ED1","\u9547","\u996D","\u6D53","\u822A","\u6000","\u8D76","\u5E93","\u593A","\u4F0A","\u7075","\u7A0E","\u9014","\u706D","\u8D5B","\u5F52","\u53EC","\u9F13","\u64AD","\u76D8","\u88C1","\u9669","\u5EB7","\u552F","\u5F55","\u83CC","\u7EAF","\u501F","\u7CD6","\u76D6","\u6A2A","\u7B26","\u79C1","\u52AA","\u5802","\u57DF","\u67AA","\u6DA6","\u5E45","\u54C8","\u7ADF","\u719F","\u866B","\u6CFD","\u8111","\u58E4","\u78B3","\u6B27","\u904D","\u4FA7","\u5BE8","\u6562","\u5F7B","\u8651","\u659C","\u8584","\u5EAD","\u7EB3","\u5F39","\u9972","\u4F38","\u6298","\u9EA6","\u6E7F","\u6697","\u8377","\u74E6","\u585E","\u5E8A","\u7B51","\u6076","\u6237","\u8BBF","\u5854","\u5947","\u900F","\u6881","\u5200","\u65CB","\u8FF9","\u5361","\u6C2F","\u9047","\u4EFD","\u6BD2","\u6CE5","\u9000","\u6D17","\u6446","\u7070","\u5F69","\u5356","\u8017","\u590F","\u62E9","\u5FD9","\u94DC","\u732E","\u786C","\u4E88","\u7E41","\u5708","\u96EA","\u51FD","\u4EA6","\u62BD","\u7BC7","\u9635","\u9634","\u4E01","\u5C3A","\u8FFD","\u5806","\u96C4","\u8FCE","\u6CDB","\u7238","\u697C","\u907F","\u8C0B","\u5428","\u91CE","\u732A","\u65D7","\u7D2F","\u504F","\u5178","\u9986","\u7D22","\u79E6","\u8102","\u6F6E","\u7237","\u8C46","\u5FFD","\u6258","\u60CA","\u5851","\u9057","\u6108","\u6731","\u66FF","\u7EA4","\u7C97","\u503E","\u5C1A","\u75DB","\u695A","\u8C22","\u594B","\u8D2D","\u78E8","\u541B","\u6C60","\u65C1","\u788E","\u9AA8","\u76D1","\u6355","\u5F1F","\u66B4","\u5272","\u8D2F","\u6B8A","\u91CA","\u8BCD","\u4EA1","\u58C1","\u987F","\u5B9D","\u5348","\u5C18","\u95FB","\u63ED","\u70AE","\u6B8B","\u51AC","\u6865","\u5987","\u8B66","\u7EFC","\u62DB","\u5434","\u4ED8","\u6D6E","\u906D","\u5F90","\u60A8","\u6447","\u8C37","\u8D5E","\u7BB1","\u9694","\u8BA2","\u7537","\u5439","\u56ED","\u7EB7","\u5510","\u8D25","\u5B8B","\u73BB","\u5DE8","\u8015","\u5766","\u8363","\u95ED","\u6E7E","\u952E","\u51E1","\u9A7B","\u9505","\u6551","\u6069","\u5265","\u51DD","\u78B1","\u9F7F","\u622A","\u70BC","\u9EBB","\u7EBA","\u7981","\u5E9F","\u76DB","\u7248","\u7F13","\u51C0","\u775B","\u660C","\u5A5A","\u6D89","\u7B52","\u5634","\u63D2","\u5CB8","\u6717","\u5E84","\u8857","\u85CF","\u59D1","\u8D38","\u8150","\u5974","\u5566","\u60EF","\u4E58","\u4F19","\u6062","\u5300","\u7EB1","\u624E","\u8FA9","\u8033","\u5F6A","\u81E3","\u4EBF","\u7483","\u62B5","\u8109","\u79C0","\u8428","\u4FC4","\u7F51","\u821E","\u5E97","\u55B7","\u7EB5","\u5BF8","\u6C57","\u6302","\u6D2A","\u8D3A","\u95EA","\u67EC","\u7206","\u70EF","\u6D25","\u7A3B","\u5899","\u8F6F","\u52C7","\u50CF","\u6EDA","\u5398","\u8499","\u82B3","\u80AF","\u5761","\u67F1","\u8361","\u817F","\u4EEA","\u65C5","\u5C3E","\u8F67","\u51B0","\u8D21","\u767B","\u9ECE","\u524A","\u94BB","\u52D2","\u9003","\u969C","\u6C28","\u90ED","\u5CF0","\u5E01","\u6E2F","\u4F0F","\u8F68","\u4EA9","\u6BD5","\u64E6","\u83AB","\u523A","\u6D6A","\u79D8","\u63F4","\u682A","\u5065","\u552E","\u80A1","\u5C9B","\u7518","\u6CE1","\u7761","\u7AE5","\u94F8","\u6C64","\u9600","\u4F11","\u6C47","\u820D","\u7267","\u7ED5","\u70B8","\u54F2","\u78F7","\u7EE9","\u670B","\u6DE1","\u5C16","\u542F","\u9677","\u67F4","\u5448","\u5F92","\u989C","\u6CEA","\u7A0D","\u5FD8","\u6CF5","\u84DD","\u62D6","\u6D1E","\u6388","\u955C","\u8F9B","\u58EE","\u950B","\u8D2B","\u865A","\u5F2F","\u6469","\u6CF0","\u5E7C","\u5EF7","\u5C0A","\u7A97","\u7EB2","\u5F04","\u96B6","\u7591","\u6C0F","\u5BAB","\u59D0","\u9707","\u745E","\u602A","\u5C24","\u7434","\u5FAA","\u63CF","\u819C","\u8FDD","\u5939","\u8170","\u7F18","\u73E0","\u7A77","\u68EE","\u679D","\u7AF9","\u6C9F","\u50AC","\u7EF3","\u5FC6","\u90A6","\u5269","\u5E78","\u6D46","\u680F","\u62E5","\u7259","\u8D2E","\u793C","\u6EE4","\u94A0","\u7EB9","\u7F62","\u62CD","\u54B1","\u558A","\u8896","\u57C3","\u52E4","\u7F5A","\u7126","\u6F5C","\u4F0D","\u58A8","\u6B32","\u7F1D","\u59D3","\u520A","\u9971","\u4EFF","\u5956","\u94DD","\u9B3C","\u4E3D","\u8DE8","\u9ED8","\u6316","\u94FE","\u626B","\u559D","\u888B","\u70AD","\u6C61","\u5E55","\u8BF8","\u5F27","\u52B1","\u6885","\u5976","\u6D01","\u707E","\u821F","\u9274","\u82EF","\u8BBC","\u62B1","\u6BC1","\u61C2","\u5BD2","\u667A","\u57D4","\u5BC4","\u5C4A","\u8DC3","\u6E21","\u6311","\u4E39","\u8270","\u8D1D","\u78B0","\u62D4","\u7239","\u6234","\u7801","\u68A6","\u82BD","\u7194","\u8D64","\u6E14","\u54ED","\u656C","\u9897","\u5954","\u94C5","\u4EF2","\u864E","\u7A00","\u59B9","\u4E4F","\u73CD","\u7533","\u684C","\u9075","\u5141","\u9686","\u87BA","\u4ED3","\u9B4F","\u9510","\u6653","\u6C2E","\u517C","\u9690","\u788D","\u8D6B","\u62E8","\u5FE0","\u8083","\u7F38","\u7275","\u62A2","\u535A","\u5DE7","\u58F3","\u5144","\u675C","\u8BAF","\u8BDA","\u78A7","\u7965","\u67EF","\u9875","\u5DE1","\u77E9","\u60B2","\u704C","\u9F84","\u4F26","\u7968","\u5BFB","\u6842","\u94FA","\u5723","\u6050","\u6070","\u90D1","\u8DA3","\u62AC","\u8352","\u817E","\u8D34","\u67D4","\u6EF4","\u731B","\u9614","\u8F86","\u59BB","\u586B","\u64A4","\u50A8","\u7B7E","\u95F9","\u6270","\u7D2B","\u7802","\u9012","\u620F","\u540A","\u9676","\u4F10","\u5582","\u7597","\u74F6","\u5A46","\u629A","\u81C2","\u6478","\u5FCD","\u867E","\u8721","\u90BB","\u80F8","\u5DE9","\u6324","\u5076","\u5F03","\u69FD","\u52B2","\u4E73","\u9093","\u5409","\u4EC1","\u70C2","\u7816","\u79DF","\u4E4C","\u8230","\u4F34","\u74DC","\u6D45","\u4E19","\u6682","\u71E5","\u6A61","\u67F3","\u8FF7","\u6696","\u724C","\u79E7","\u80C6","\u8BE6","\u7C27","\u8E0F","\u74F7","\u8C31","\u5446","\u5BBE","\u7CCA","\u6D1B","\u8F89","\u6124","\u7ADE","\u9699","\u6012","\u7C98","\u4E43","\u7EEA","\u80A9","\u7C4D","\u654F","\u6D82","\u7199","\u7686","\u4FA6","\u60AC","\u6398","\u4EAB","\u7EA0","\u9192","\u72C2","\u9501","\u6DC0","\u6068","\u7272","\u9738","\u722C","\u8D4F","\u9006","\u73A9","\u9675","\u795D","\u79D2","\u6D59","\u8C8C","\u5F79","\u5F7C","\u6089","\u9E2D","\u8D8B","\u51E4","\u6668","\u755C","\u8F88","\u79E9","\u5375","\u7F72","\u68AF","\u708E","\u6EE9","\u68CB","\u9A71","\u7B5B","\u5CE1","\u5192","\u5565","\u5BFF","\u8BD1","\u6D78","\u6CC9","\u5E3D","\u8FDF","\u7845","\u7586","\u8D37","\u6F0F","\u7A3F","\u51A0","\u5AE9","\u80C1","\u82AF","\u7262","\u53DB","\u8680","\u5965","\u9E23","\u5CAD","\u7F8A","\u51ED","\u4E32","\u5858","\u7ED8","\u9175","\u878D","\u76C6","\u9521","\u5E99","\u7B79","\u51BB","\u8F85","\u6444","\u88AD","\u7B4B","\u62D2","\u50DA","\u65F1","\u94BE","\u9E1F","\u6F06","\u6C88","\u7709","\u758F","\u6DFB","\u68D2","\u7A57","\u785D","\u97E9","\u903C","\u626D","\u4FA8","\u51C9","\u633A","\u7897","\u683D","\u7092","\u676F","\u60A3","\u998F","\u529D","\u8C6A","\u8FBD","\u52C3","\u9E3F","\u65E6","\u540F","\u62DC","\u72D7","\u57CB","\u8F8A","\u63A9","\u996E","\u642C","\u9A82","\u8F9E","\u52FE","\u6263","\u4F30","\u848B","\u7ED2","\u96FE","\u4E08","\u6735","\u59C6","\u62DF","\u5B87","\u8F91","\u9655","\u96D5","\u507F","\u84C4","\u5D07","\u526A","\u5021","\u5385","\u54AC","\u9A76","\u85AF","\u5237","\u65A5","\u756A","\u8D4B","\u5949","\u4F5B","\u6D47","\u6F2B","\u66FC","\u6247","\u9499","\u6843","\u6276","\u4ED4","\u8FD4","\u4FD7","\u4E8F","\u8154","\u978B","\u68F1","\u8986","\u6846","\u6084","\u53D4","\u649E","\u9A97","\u52D8","\u65FA","\u6CB8","\u5B64","\u5410","\u5B5F","\u6E20","\u5C48","\u75BE","\u5999","\u60DC","\u4EF0","\u72E0","\u80C0","\u8C10","\u629B","\u9709","\u6851","\u5C97","\u561B","\u8870","\u76D7","\u6E17","\u810F","\u8D56","\u6D8C","\u751C","\u66F9","\u9605","\u808C","\u54E9","\u5389","\u70C3","\u7EAC","\u6BC5","\u6628","\u4F2A","\u75C7","\u716E","\u53F9","\u9489","\u642D","\u830E","\u7B3C","\u9177","\u5077","\u5F13","\u9525","\u6052","\u6770","\u5751","\u9F3B","\u7FFC","\u7EB6","\u53D9","\u72F1","\u902E","\u7F50","\u7EDC","\u68DA","\u6291","\u81A8","\u852C","\u5BFA","\u9AA4","\u7A46","\u51B6","\u67AF","\u518C","\u5C38","\u51F8","\u7EC5","\u576F","\u727A","\u7130","\u8F70","\u6B23","\u664B","\u7626","\u5FA1","\u952D","\u9526","\u4E27","\u65EC","\u953B","\u5784","\u641C","\u6251","\u9080","\u4EAD","\u916F","\u8FC8","\u8212","\u8106","\u9176","\u95F2","\u5FE7","\u915A","\u987D","\u7FBD","\u6DA8","\u5378","\u4ED7","\u966A","\u8F9F","\u60E9","\u676D","\u59DA","\u809A","\u6349","\u98D8","\u6F02","\u6606","\u6B3A","\u543E","\u90CE","\u70F7","\u6C41","\u5475","\u9970","\u8427","\u96C5","\u90AE","\u8FC1","\u71D5","\u6492","\u59FB","\u8D74","\u5BB4","\u70E6","\u503A","\u5E10","\u6591","\u94C3","\u65E8","\u9187","\u8463","\u997C","\u96CF","\u59FF","\u62CC","\u5085","\u8179","\u59A5","\u63C9","\u8D24","\u62C6","\u6B6A","\u8461","\u80FA","\u4E22","\u6D69","\u5FBD","\u6602","\u57AB","\u6321","\u89C8","\u8D2A","\u6170","\u7F34","\u6C6A","\u614C","\u51AF","\u8BFA","\u59DC","\u8C0A","\u51F6","\u52A3","\u8BEC","\u8000","\u660F","\u8EBA","\u76C8","\u9A91","\u4E54","\u6EAA","\u4E1B","\u5362","\u62B9","\u95F7","\u54A8","\u522E","\u9A7E","\u7F06","\u609F","\u6458","\u94D2","\u63B7","\u9887","\u5E7B","\u67C4","\u60E0","\u60E8","\u4F73","\u4EC7","\u814A","\u7A9D","\u6DA4","\u5251","\u77A7","\u5821","\u6CFC","\u8471","\u7F69","\u970D","\u635E","\u80CE","\u82CD","\u6EE8","\u4FE9","\u6345","\u6E58","\u780D","\u971E","\u90B5","\u8404","\u75AF","\u6DEE","\u9042","\u718A","\u7CAA","\u70D8","\u5BBF","\u6863","\u6208","\u9A73","\u5AC2","\u88D5","\u5F99","\u7BAD","\u6350","\u80A0","\u6491","\u6652","\u8FA8","\u6BBF","\u83B2","\u644A","\u6405","\u9171","\u5C4F","\u75AB","\u54C0","\u8521","\u5835","\u6CAB","\u76B1","\u7545","\u53E0","\u9601","\u83B1","\u6572","\u8F96","\u94A9","\u75D5","\u575D","\u5DF7","\u997F","\u7978","\u4E18","\u7384","\u6E9C","\u66F0","\u903B","\u5F6D","\u5C1D","\u537F","\u59A8","\u8247","\u541E","\u97E6","\u6028","\u77EE","\u6B47"];vN.exports=F9});var _N=P((Qse,bN)=>{"use strict";g();var j9=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];bN.exports=j9});var SN=P((tue,wN)=>{"use string";g();var z9=["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","acade\u0301mie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acque\u0301rir","acronyme","acteur","actif","actuel","adepte","ade\u0301quat","adhe\u0301sif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","ae\u0301rer","ae\u0301ronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agre\u0301able","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","alge\u0300bre","algue","alie\u0301ner","aliment","alle\u0301ger","alliage","allouer","allumer","alourdir","alpaga","altesse","alve\u0301ole","amateur","ambigu","ambre","ame\u0301nager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","ane\u0301antir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","ape\u0301ritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","arte\u0301riel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannie\u0300re","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","be\u0301lier","belote","be\u0301ne\u0301fice","berceau","berger","berline","bermuda","besace","besogne","be\u0301tail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","bre\u0300che","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","cafe\u0301ine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","came\u0301ra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","ce\u0301dille","ceinture","ce\u0301leste","cellule","cendrier","censurer","central","cercle","ce\u0301re\u0301bral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","che\u0301quier","chercher","cheval","chien","chiffre","chignon","chime\u0300re","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cine\u0301ma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohe\u0301sion","coiffer","coincer","cole\u0300re","colibri","colline","colmater","colonel","combat","come\u0301die","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","corte\u0300ge","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","cre\u0301ature","cre\u0301diter","cre\u0301meux","creuser","crevette","cribler","crier","cristal","crite\u0300re","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuille\u0300re","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","de\u0301battre","de\u0301biter","de\u0301border","de\u0301brider","de\u0301butant","de\u0301caler","de\u0301cembre","de\u0301chirer","de\u0301cider","de\u0301clarer","de\u0301corer","de\u0301crire","de\u0301cupler","de\u0301dale","de\u0301ductif","de\u0301esse","de\u0301fensif","de\u0301filer","de\u0301frayer","de\u0301gager","de\u0301givrer","de\u0301glutir","de\u0301grafer","de\u0301jeuner","de\u0301lice","de\u0301loger","demander","demeurer","de\u0301molir","de\u0301nicher","de\u0301nouer","dentelle","de\u0301nuder","de\u0301part","de\u0301penser","de\u0301phaser","de\u0301placer","de\u0301poser","de\u0301ranger","de\u0301rober","de\u0301sastre","descente","de\u0301sert","de\u0301signer","de\u0301sobe\u0301ir","dessiner","destrier","de\u0301tacher","de\u0301tester","de\u0301tourer","de\u0301tresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","diffe\u0301rer","dige\u0301rer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","e\u0301blouir","e\u0301carter","e\u0301charpe","e\u0301chelle","e\u0301clairer","e\u0301clipse","e\u0301clore","e\u0301cluse","e\u0301cole","e\u0301conomie","e\u0301corce","e\u0301couter","e\u0301craser","e\u0301cre\u0301mer","e\u0301crivain","e\u0301crou","e\u0301cume","e\u0301cureuil","e\u0301difier","e\u0301duquer","effacer","effectif","effigie","effort","effrayer","effusion","e\u0301galiser","e\u0301garer","e\u0301jecter","e\u0301laborer","e\u0301largir","e\u0301lectron","e\u0301le\u0301gant","e\u0301le\u0301phant","e\u0301le\u0300ve","e\u0301ligible","e\u0301litisme","e\u0301loge","e\u0301lucider","e\u0301luder","emballer","embellir","embryon","e\u0301meraude","e\u0301mission","emmener","e\u0301motion","e\u0301mouvoir","empereur","employer","emporter","emprise","e\u0301mulsion","encadrer","enche\u0300re","enclave","encoche","endiguer","endosser","endroit","enduire","e\u0301nergie","enfance","enfermer","enfouir","engager","engin","englober","e\u0301nigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","e\u0301nume\u0301rer","envahir","enviable","envoyer","enzyme","e\u0301olien","e\u0301paissir","e\u0301pargne","e\u0301patant","e\u0301paule","e\u0301picerie","e\u0301pide\u0301mie","e\u0301pier","e\u0301pilogue","e\u0301pine","e\u0301pisode","e\u0301pitaphe","e\u0301poque","e\u0301preuve","e\u0301prouver","e\u0301puisant","e\u0301querre","e\u0301quipe","e\u0301riger","e\u0301rosion","erreur","e\u0301ruption","escalier","espadon","espe\u0300ce","espie\u0300gle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","e\u0301tage\u0300re","e\u0301taler","e\u0301tanche","e\u0301tatique","e\u0301teindre","e\u0301tendoir","e\u0301ternel","e\u0301thanol","e\u0301thique","ethnie","e\u0301tirer","e\u0301toffer","e\u0301toile","e\u0301tonnant","e\u0301tourdir","e\u0301trange","e\u0301troit","e\u0301tude","euphorie","e\u0301valuer","e\u0301vasion","e\u0301ventail","e\u0301vidence","e\u0301viter","e\u0301volutif","e\u0301voquer","exact","exage\u0301rer","exaucer","exceller","excitant","exclusif","excuse","exe\u0301cuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expe\u0301dier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fe\u0301brile","fe\u0301conder","fe\u0301de\u0301rer","fe\u0301lin","femme","fe\u0301mur","fendoir","fe\u0301odal","fermer","fe\u0301roce","ferveur","festival","feuille","feutre","fe\u0301vrier","fiasco","ficeler","fictif","fide\u0300le","figure","filature","filetage","filie\u0300re","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fle\u0301au","fle\u0300che","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fouge\u0300re","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","fre\u0301gate","freiner","frelon","fre\u0301mir","fre\u0301ne\u0301sie","fre\u0300re","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","ge\u0301ant","ge\u0301latine","ge\u0301lule","gendarme","ge\u0301ne\u0301ral","ge\u0301nie","genou","gentil","ge\u0301ologie","ge\u0301ome\u0300tre","ge\u0301ranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruye\u0300re","gue\u0301pard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","he\u0301lium","he\u0301matome","herbe","he\u0301risson","hermine","he\u0301ron","he\u0301siter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homoge\u0300ne","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygie\u0300ne","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impe\u0301rial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","ine\u0301dit","ineptie","inexact","infini","infliger","informer","infusion","inge\u0301rer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irre\u0301el","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juve\u0301nile","kayak","kimono","kiosque","label","labial","labourer","lace\u0301rer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","le\u0301gal","le\u0301ger","le\u0301gume","lessive","lettre","levier","lexique","le\u0301zard","liasse","libe\u0301rer","libre","licence","licorne","lie\u0300ge","lie\u0300vre","ligature","ligoter","ligue","limer","limite","limonade","limpide","line\u0301aire","lingot","lionceau","liquide","lisie\u0300re","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumie\u0300re","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","male\u0301fice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","mate\u0301riel","matie\u0300re","matraque","maudire","maussade","mauve","maximal","me\u0301chant","me\u0301connu","me\u0301daille","me\u0301decin","me\u0301diter","me\u0301duse","meilleur","me\u0301lange","me\u0301lodie","membre","me\u0301moire","menacer","mener","menhir","mensonge","mentor","mercredi","me\u0301rite","merle","messager","mesure","me\u0301tal","me\u0301te\u0301ore","me\u0301thode","me\u0301tier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","mine\u0301ral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","mure\u0300ne","murmure","muscle","muse\u0301um","musicien","mutation","muter","mutuel","myriade","myrtille","myste\u0300re","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","ne\u0301buleux","nectar","ne\u0301faste","ne\u0301gation","ne\u0301gliger","ne\u0301gocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","nume\u0301ro","nuptial","nuque","nutritif","obe\u0301ir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","oce\u0301an","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","one\u0301reux","onirique","opale","opaque","ope\u0301rer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxyge\u0300ne","ozone","paisible","palace","palmare\u0300s","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","paste\u0300que","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pe\u0301lican","pelle","pelouse","peluche","pendule","pe\u0301ne\u0301trer","pe\u0301nible","pensif","pe\u0301nurie","pe\u0301pite","pe\u0301plum","perdrix","perforer","pe\u0301riode","permuter","perplexe","persil","perte","peser","pe\u0301tale","petit","pe\u0301trir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pie\u0300ce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poe\u0301sie","poe\u0300te","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","ponde\u0301rer","poney","portique","position","posse\u0301der","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","pre\u0301cieux","pre\u0301dire","pre\u0301fixe","pre\u0301lude","pre\u0301nom","pre\u0301sence","pre\u0301texte","pre\u0301voir","primitif","prince","prison","priver","proble\u0300me","proce\u0301der","prodige","profond","progre\u0300s","proie","projeter","prologue","promener","propre","prospe\u0300re","prote\u0301ger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quie\u0301tude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","re\u0301actif","re\u0301agir","re\u0301aliser","re\u0301animer","recevoir","re\u0301citer","re\u0301clamer","re\u0301colter","recruter","reculer","recycler","re\u0301diger","redouter","refaire","re\u0301flexe","re\u0301former","refrain","refuge","re\u0301galien","re\u0301gion","re\u0301glage","re\u0301gulier","re\u0301ite\u0301rer","rejeter","rejouer","relatif","relever","relief","remarque","reme\u0300de","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","re\u0301serve","re\u0301sineux","re\u0301soudre","respect","rester","re\u0301sultat","re\u0301tablir","retenir","re\u0301ticule","retomber","retracer","re\u0301union","re\u0301ussir","revanche","revivre","re\u0301volte","re\u0301vulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivie\u0300re","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","sce\u0301le\u0301rat","sce\u0301nario","sceptre","sche\u0301ma","science","scinder","score","scrutin","sculpter","se\u0301ance","se\u0301cable","se\u0301cher","secouer","se\u0301cre\u0301ter","se\u0301datif","se\u0301duire","seigneur","se\u0301jour","se\u0301lectif","semaine","sembler","semence","se\u0301minal","se\u0301nateur","sensible","sentence","se\u0301parer","se\u0301quence","serein","sergent","se\u0301rieux","serrure","se\u0301rum","service","se\u0301same","se\u0301vir","sevrage","sextuple","side\u0301ral","sie\u0300cle","sie\u0301ger","siffler","sigle","signal","silence","silicium","simple","since\u0300re","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spe\u0301cial","sphe\u0300re","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succe\u0300s","sucre","suffixe","sugge\u0301rer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","syme\u0301trie","synapse","syntaxe","syste\u0300me","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","te\u0301moin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","te\u0301tine","texte","the\u0300me","the\u0301orie","the\u0301rapie","thorax","tibia","tie\u0300de","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tole\u0301rant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","tre\u0300fle","tremper","tre\u0301sor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","ve\u0301ge\u0301tal","ve\u0301hicule","veinard","ve\u0301loce","vendredi","ve\u0301ne\u0301rer","venger","venimeux","ventouse","verdure","ve\u0301rin","vernir","verrou","verser","vertu","veston","ve\u0301te\u0301ran","ve\u0301tuste","vexant","vexer","viaduc","viande","victoire","vidange","vide\u0301o","vignette","vigueur","vilain","village","vinaigre","violon","vipe\u0300re","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xe\u0301non","yacht","ze\u0300bre","ze\u0301nith","zeste","zoologie"];wN.exports=z9});var xN=P((iue,EN)=>{"use strict";g();var K9=["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"];EN.exports=K9});var IN=P((oue,ON)=>{"use strict";g();var V9=["\u3042\u3044\u3053\u304F\u3057\u3093","\u3042\u3044\u3055\u3064","\u3042\u3044\u305F\u3099","\u3042\u304A\u305D\u3099\u3089","\u3042\u304B\u3061\u3083\u3093","\u3042\u304D\u308B","\u3042\u3051\u304B\u3099\u305F","\u3042\u3051\u308B","\u3042\u3053\u304B\u3099\u308C\u308B","\u3042\u3055\u3044","\u3042\u3055\u3072","\u3042\u3057\u3042\u3068","\u3042\u3057\u3099\u308F\u3046","\u3042\u3059\u3099\u304B\u308B","\u3042\u3059\u3099\u304D","\u3042\u305D\u3075\u3099","\u3042\u305F\u3048\u308B","\u3042\u305F\u305F\u3081\u308B","\u3042\u305F\u308A\u307E\u3048","\u3042\u305F\u308B","\u3042\u3064\u3044","\u3042\u3064\u304B\u3046","\u3042\u3063\u3057\u3085\u304F","\u3042\u3064\u307E\u308A","\u3042\u3064\u3081\u308B","\u3042\u3066\u306A","\u3042\u3066\u306F\u307E\u308B","\u3042\u3072\u308B","\u3042\u3075\u3099\u3089","\u3042\u3075\u3099\u308B","\u3042\u3075\u308C\u308B","\u3042\u307E\u3044","\u3042\u307E\u3068\u3099","\u3042\u307E\u3084\u304B\u3059","\u3042\u307E\u308A","\u3042\u307F\u3082\u306E","\u3042\u3081\u308A\u304B","\u3042\u3084\u307E\u308B","\u3042\u3086\u3080","\u3042\u3089\u3044\u304F\u3099\u307E","\u3042\u3089\u3057","\u3042\u3089\u3059\u3057\u3099","\u3042\u3089\u305F\u3081\u308B","\u3042\u3089\u3086\u308B","\u3042\u3089\u308F\u3059","\u3042\u308A\u304B\u3099\u3068\u3046","\u3042\u308F\u305B\u308B","\u3042\u308F\u3066\u308B","\u3042\u3093\u3044","\u3042\u3093\u304B\u3099\u3044","\u3042\u3093\u3053","\u3042\u3093\u305B\u3099\u3093","\u3042\u3093\u3066\u3044","\u3042\u3093\u306A\u3044","\u3042\u3093\u307E\u308A","\u3044\u3044\u305F\u3099\u3059","\u3044\u304A\u3093","\u3044\u304B\u3099\u3044","\u3044\u304B\u3099\u304F","\u3044\u304D\u304A\u3044","\u3044\u304D\u306A\u308A","\u3044\u304D\u3082\u306E","\u3044\u304D\u308B","\u3044\u304F\u3057\u3099","\u3044\u304F\u3075\u3099\u3093","\u3044\u3051\u306F\u3099\u306A","\u3044\u3051\u3093","\u3044\u3053\u3046","\u3044\u3053\u304F","\u3044\u3053\u3064","\u3044\u3055\u307E\u3057\u3044","\u3044\u3055\u3093","\u3044\u3057\u304D","\u3044\u3057\u3099\u3085\u3046","\u3044\u3057\u3099\u3087\u3046","\u3044\u3057\u3099\u308F\u308B","\u3044\u3059\u3099\u307F","\u3044\u3059\u3099\u308C","\u3044\u305B\u3044","\u3044\u305B\u3048\u3072\u3099","\u3044\u305B\u304B\u3044","\u3044\u305B\u304D","\u3044\u305B\u3099\u3093","\u3044\u305D\u3046\u308D\u3046","\u3044\u305D\u304B\u3099\u3057\u3044","\u3044\u305F\u3099\u3044","\u3044\u305F\u3099\u304F","\u3044\u305F\u3059\u3099\u3089","\u3044\u305F\u307F","\u3044\u305F\u308A\u3042","\u3044\u3061\u304A\u3046","\u3044\u3061\u3057\u3099","\u3044\u3061\u3068\u3099","\u3044\u3061\u306F\u3099","\u3044\u3061\u3075\u3099","\u3044\u3061\u308A\u3085\u3046","\u3044\u3064\u304B","\u3044\u3063\u3057\u3085\u3093","\u3044\u3063\u305B\u3044","\u3044\u3063\u305D\u3046","\u3044\u3063\u305F\u3093","\u3044\u3063\u3061","\u3044\u3063\u3066\u3044","\u3044\u3063\u307B\u309A\u3046","\u3044\u3066\u3055\u3099","\u3044\u3066\u3093","\u3044\u3068\u3099\u3046","\u3044\u3068\u3053","\u3044\u306A\u3044","\u3044\u306A\u304B","\u3044\u306D\u3080\u308A","\u3044\u306E\u3061","\u3044\u306E\u308B","\u3044\u306F\u3064","\u3044\u306F\u3099\u308B","\u3044\u306F\u3093","\u3044\u3072\u3099\u304D","\u3044\u3072\u3093","\u3044\u3075\u304F","\u3044\u3078\u3093","\u3044\u307B\u3046","\u3044\u307F\u3093","\u3044\u3082\u3046\u3068","\u3044\u3082\u305F\u308C","\u3044\u3082\u308A","\u3044\u3084\u304B\u3099\u308B","\u3044\u3084\u3059","\u3044\u3088\u304B\u3093","\u3044\u3088\u304F","\u3044\u3089\u3044","\u3044\u3089\u3059\u3068","\u3044\u308A\u304F\u3099\u3061","\u3044\u308A\u3087\u3046","\u3044\u308C\u3044","\u3044\u308C\u3082\u306E","\u3044\u308C\u308B","\u3044\u308D\u3048\u3093\u3072\u309A\u3064","\u3044\u308F\u3044","\u3044\u308F\u3046","\u3044\u308F\u304B\u3093","\u3044\u308F\u306F\u3099","\u3044\u308F\u3086\u308B","\u3044\u3093\u3051\u3099\u3093\u307E\u3081","\u3044\u3093\u3055\u3064","\u3044\u3093\u3057\u3087\u3046","\u3044\u3093\u3088\u3046","\u3046\u3048\u304D","\u3046\u3048\u308B","\u3046\u304A\u3055\u3099","\u3046\u304B\u3099\u3044","\u3046\u304B\u3075\u3099","\u3046\u304B\u3078\u3099\u308B","\u3046\u304D\u308F","\u3046\u304F\u3089\u3044\u306A","\u3046\u304F\u308C\u308C","\u3046\u3051\u305F\u307E\u308F\u308B","\u3046\u3051\u3064\u3051","\u3046\u3051\u3068\u308B","\u3046\u3051\u3082\u3064","\u3046\u3051\u308B","\u3046\u3053\u3099\u304B\u3059","\u3046\u3053\u3099\u304F","\u3046\u3053\u3093","\u3046\u3055\u304D\u3099","\u3046\u3057\u306A\u3046","\u3046\u3057\u308D\u304B\u3099\u307F","\u3046\u3059\u3044","\u3046\u3059\u304D\u3099","\u3046\u3059\u304F\u3099\u3089\u3044","\u3046\u3059\u3081\u308B","\u3046\u305B\u3064","\u3046\u3061\u3042\u308F\u305B","\u3046\u3061\u304B\u3099\u308F","\u3046\u3061\u304D","\u3046\u3061\u3085\u3046","\u3046\u3063\u304B\u308A","\u3046\u3064\u304F\u3057\u3044","\u3046\u3063\u305F\u3048\u308B","\u3046\u3064\u308B","\u3046\u3068\u3099\u3093","\u3046\u306A\u304D\u3099","\u3046\u306A\u3057\u3099","\u3046\u306A\u3059\u3099\u304F","\u3046\u306A\u308B","\u3046\u306D\u308B","\u3046\u306E\u3046","\u3046\u3075\u3099\u3051\u3099","\u3046\u3075\u3099\u3053\u3099\u3048","\u3046\u307E\u308C\u308B","\u3046\u3081\u308B","\u3046\u3082\u3046","\u3046\u3084\u307E\u3046","\u3046\u3088\u304F","\u3046\u3089\u304B\u3099\u3048\u3059","\u3046\u3089\u304F\u3099\u3061","\u3046\u3089\u306A\u3044","\u3046\u308A\u3042\u3051\u3099","\u3046\u308A\u304D\u308C","\u3046\u308B\u3055\u3044","\u3046\u308C\u3057\u3044","\u3046\u308C\u3086\u304D","\u3046\u308C\u308B","\u3046\u308D\u3053","\u3046\u308F\u304D","\u3046\u308F\u3055","\u3046\u3093\u3053\u3046","\u3046\u3093\u3061\u3093","\u3046\u3093\u3066\u3093","\u3046\u3093\u3068\u3099\u3046","\u3048\u3044\u3048\u3093","\u3048\u3044\u304B\u3099","\u3048\u3044\u304D\u3087\u3046","\u3048\u3044\u3053\u3099","\u3048\u3044\u305B\u3044","\u3048\u3044\u3075\u3099\u3093","\u3048\u3044\u3088\u3046","\u3048\u3044\u308F","\u3048\u304A\u308A","\u3048\u304B\u3099\u304A","\u3048\u304B\u3099\u304F","\u3048\u304D\u305F\u3044","\u3048\u304F\u305B\u308B","\u3048\u3057\u3083\u304F","\u3048\u3059\u3066","\u3048\u3064\u3089\u3093","\u3048\u306E\u304F\u3099","\u3048\u307B\u3046\u307E\u304D","\u3048\u307B\u3093","\u3048\u307E\u304D","\u3048\u3082\u3057\u3099","\u3048\u3082\u306E","\u3048\u3089\u3044","\u3048\u3089\u3075\u3099","\u3048\u308A\u3042","\u3048\u3093\u3048\u3093","\u3048\u3093\u304B\u3044","\u3048\u3093\u304D\u3099","\u3048\u3093\u3051\u3099\u304D","\u3048\u3093\u3057\u3085\u3046","\u3048\u3093\u305B\u3099\u3064","\u3048\u3093\u305D\u304F","\u3048\u3093\u3061\u3087\u3046","\u3048\u3093\u3068\u3064","\u304A\u3044\u304B\u3051\u308B","\u304A\u3044\u3053\u3059","\u304A\u3044\u3057\u3044","\u304A\u3044\u3064\u304F","\u304A\u3046\u3048\u3093","\u304A\u3046\u3055\u307E","\u304A\u3046\u3057\u3099","\u304A\u3046\u305B\u3064","\u304A\u3046\u305F\u3044","\u304A\u3046\u3075\u304F","\u304A\u3046\u3078\u3099\u3044","\u304A\u3046\u3088\u3046","\u304A\u3048\u308B","\u304A\u304A\u3044","\u304A\u304A\u3046","\u304A\u304A\u3068\u3099\u304A\u308A","\u304A\u304A\u3084","\u304A\u304A\u3088\u305D","\u304A\u304B\u3048\u308A","\u304A\u304B\u3059\u3099","\u304A\u304B\u3099\u3080","\u304A\u304B\u308F\u308A","\u304A\u304D\u3099\u306A\u3046","\u304A\u304D\u308B","\u304A\u304F\u3055\u307E","\u304A\u304F\u3057\u3099\u3087\u3046","\u304A\u304F\u308A\u304B\u3099\u306A","\u304A\u304F\u308B","\u304A\u304F\u308C\u308B","\u304A\u3053\u3059","\u304A\u3053\u306A\u3046","\u304A\u3053\u308B","\u304A\u3055\u3048\u308B","\u304A\u3055\u306A\u3044","\u304A\u3055\u3081\u308B","\u304A\u3057\u3044\u308C","\u304A\u3057\u3048\u308B","\u304A\u3057\u3099\u304D\u3099","\u304A\u3057\u3099\u3055\u3093","\u304A\u3057\u3083\u308C","\u304A\u305D\u3089\u304F","\u304A\u305D\u308F\u308B","\u304A\u305F\u304B\u3099\u3044","\u304A\u305F\u304F","\u304A\u305F\u3099\u3084\u304B","\u304A\u3061\u3064\u304F","\u304A\u3063\u3068","\u304A\u3064\u308A","\u304A\u3066\u3099\u304B\u3051","\u304A\u3068\u3057\u3082\u306E","\u304A\u3068\u306A\u3057\u3044","\u304A\u3068\u3099\u308A","\u304A\u3068\u3099\u308D\u304B\u3059","\u304A\u306F\u3099\u3055\u3093","\u304A\u307E\u3044\u308A","\u304A\u3081\u3066\u3099\u3068\u3046","\u304A\u3082\u3044\u3066\u3099","\u304A\u3082\u3046","\u304A\u3082\u305F\u3044","\u304A\u3082\u3061\u3083","\u304A\u3084\u3064","\u304A\u3084\u3086\u3072\u3099","\u304A\u3088\u307B\u3099\u3059","\u304A\u3089\u3093\u305F\u3099","\u304A\u308D\u3059","\u304A\u3093\u304B\u3099\u304F","\u304A\u3093\u3051\u3044","\u304A\u3093\u3057\u3083","\u304A\u3093\u305B\u3093","\u304A\u3093\u305F\u3099\u3093","\u304A\u3093\u3061\u3085\u3046","\u304A\u3093\u3068\u3099\u3051\u3044","\u304B\u3042\u3064","\u304B\u3044\u304B\u3099","\u304B\u3099\u3044\u304D","\u304B\u3099\u3044\u3051\u3093","\u304B\u3099\u3044\u3053\u3046","\u304B\u3044\u3055\u3064","\u304B\u3044\u3057\u3083","\u304B\u3044\u3059\u3044\u3088\u304F","\u304B\u3044\u305B\u3099\u3093","\u304B\u3044\u305D\u3099\u3046\u3068\u3099","\u304B\u3044\u3064\u3046","\u304B\u3044\u3066\u3093","\u304B\u3044\u3068\u3046","\u304B\u3044\u3075\u304F","\u304B\u3099\u3044\u3078\u304D","\u304B\u3044\u307B\u3046","\u304B\u3044\u3088\u3046","\u304B\u3099\u3044\u3089\u3044","\u304B\u3044\u308F","\u304B\u3048\u308B","\u304B\u304A\u308A","\u304B\u304B\u3048\u308B","\u304B\u304B\u3099\u304F","\u304B\u304B\u3099\u3057","\u304B\u304B\u3099\u307F","\u304B\u304F\u3053\u3099","\u304B\u304F\u3068\u304F","\u304B\u3055\u3099\u308B","\u304B\u3099\u305D\u3099\u3046","\u304B\u305F\u3044","\u304B\u305F\u3061","\u304B\u3099\u3061\u3087\u3046","\u304B\u3099\u3063\u304D\u3085\u3046","\u304B\u3099\u3063\u3053\u3046","\u304B\u3099\u3063\u3055\u3093","\u304B\u3099\u3063\u3057\u3087\u3046","\u304B\u306A\u3055\u3099\u308F\u3057","\u304B\u306E\u3046","\u304B\u3099\u306F\u304F","\u304B\u3075\u3099\u304B","\u304B\u307B\u3046","\u304B\u307B\u3053\u3099","\u304B\u307E\u3046","\u304B\u307E\u307B\u3099\u3053","\u304B\u3081\u308C\u304A\u3093","\u304B\u3086\u3044","\u304B\u3088\u3046\u3072\u3099","\u304B\u3089\u3044","\u304B\u308B\u3044","\u304B\u308D\u3046","\u304B\u308F\u304F","\u304B\u308F\u3089","\u304B\u3099\u3093\u304B","\u304B\u3093\u3051\u3044","\u304B\u3093\u3053\u3046","\u304B\u3093\u3057\u3083","\u304B\u3093\u305D\u3046","\u304B\u3093\u305F\u3093","\u304B\u3093\u3061","\u304B\u3099\u3093\u306F\u3099\u308B","\u304D\u3042\u3044","\u304D\u3042\u3064","\u304D\u3044\u308D","\u304D\u3099\u3044\u3093","\u304D\u3046\u3044","\u304D\u3046\u3093","\u304D\u3048\u308B","\u304D\u304A\u3046","\u304D\u304A\u304F","\u304D\u304A\u3061","\u304D\u304A\u3093","\u304D\u304B\u3044","\u304D\u304B\u304F","\u304D\u304B\u3093\u3057\u3083","\u304D\u304D\u3066","\u304D\u304F\u306F\u3099\u308A","\u304D\u304F\u3089\u3051\u3099","\u304D\u3051\u3093\u305B\u3044","\u304D\u3053\u3046","\u304D\u3053\u3048\u308B","\u304D\u3053\u304F","\u304D\u3055\u3044","\u304D\u3055\u304F","\u304D\u3055\u307E","\u304D\u3055\u3089\u304D\u3099","\u304D\u3099\u3057\u3099\u304B\u304B\u3099\u304F","\u304D\u3099\u3057\u304D","\u304D\u3099\u3057\u3099\u305F\u3044\u3051\u3093","\u304D\u3099\u3057\u3099\u306B\u3063\u3066\u3044","\u304D\u3099\u3057\u3099\u3085\u3064\u3057\u3083","\u304D\u3059\u3046","\u304D\u305B\u3044","\u304D\u305B\u304D","\u304D\u305B\u3064","\u304D\u305D\u3046","\u304D\u305D\u3099\u304F","\u304D\u305D\u3099\u3093","\u304D\u305F\u3048\u308B","\u304D\u3061\u3087\u3046","\u304D\u3064\u3048\u3093","\u304D\u3099\u3063\u3061\u308A","\u304D\u3064\u3064\u304D","\u304D\u3064\u306D","\u304D\u3066\u3044","\u304D\u3068\u3099\u3046","\u304D\u3068\u3099\u304F","\u304D\u306A\u3044","\u304D\u306A\u304B\u3099","\u304D\u306A\u3053","\u304D\u306C\u3053\u3099\u3057","\u304D\u306D\u3093","\u304D\u306E\u3046","\u304D\u306E\u3057\u305F","\u304D\u306F\u304F","\u304D\u3072\u3099\u3057\u3044","\u304D\u3072\u3093","\u304D\u3075\u304F","\u304D\u3075\u3099\u3093","\u304D\u307B\u3099\u3046","\u304D\u307B\u3093","\u304D\u307E\u308B","\u304D\u307F\u3064","\u304D\u3080\u3059\u3099\u304B\u3057\u3044","\u304D\u3081\u308B","\u304D\u3082\u305F\u3099\u3081\u3057","\u304D\u3082\u3061","\u304D\u3082\u306E","\u304D\u3083\u304F","\u304D\u3084\u304F","\u304D\u3099\u3085\u3046\u306B\u304F","\u304D\u3088\u3046","\u304D\u3087\u3046\u308A\u3085\u3046","\u304D\u3089\u3044","\u304D\u3089\u304F","\u304D\u308A\u3093","\u304D\u308C\u3044","\u304D\u308C\u3064","\u304D\u308D\u304F","\u304D\u3099\u308D\u3093","\u304D\u308F\u3081\u308B","\u304D\u3099\u3093\u3044\u308D","\u304D\u3093\u304B\u304F\u3057\u3099","\u304D\u3093\u3057\u3099\u3087","\u304D\u3093\u3088\u3046\u3072\u3099","\u304F\u3099\u3042\u3044","\u304F\u3044\u3059\u3099","\u304F\u3046\u304B\u3093","\u304F\u3046\u304D","\u304F\u3046\u304F\u3099\u3093","\u304F\u3046\u3053\u3046","\u304F\u3099\u3046\u305B\u3044","\u304F\u3046\u305D\u3046","\u304F\u3099\u3046\u305F\u3089","\u304F\u3046\u3075\u304F","\u304F\u3046\u307B\u3099","\u304F\u304B\u3093","\u304F\u304D\u3087\u3046","\u304F\u3051\u3099\u3093","\u304F\u3099\u3053\u3046","\u304F\u3055\u3044","\u304F\u3055\u304D","\u304F\u3055\u306F\u3099\u306A","\u304F\u3055\u308B","\u304F\u3057\u3083\u307F","\u304F\u3057\u3087\u3046","\u304F\u3059\u306E\u304D","\u304F\u3059\u308A\u3086\u3072\u3099","\u304F\u305B\u3051\u3099","\u304F\u305B\u3093","\u304F\u3099\u305F\u3044\u3066\u304D","\u304F\u305F\u3099\u3055\u308B","\u304F\u305F\u3072\u3099\u308C\u308B","\u304F\u3061\u3053\u307F","\u304F\u3061\u3055\u304D","\u304F\u3064\u3057\u305F","\u304F\u3099\u3063\u3059\u308A","\u304F\u3064\u308D\u304F\u3099","\u304F\u3068\u3046\u3066\u3093","\u304F\u3068\u3099\u304F","\u304F\u306A\u3093","\u304F\u306D\u304F\u306D","\u304F\u306E\u3046","\u304F\u3075\u3046","\u304F\u307F\u3042\u308F\u305B","\u304F\u307F\u305F\u3066\u308B","\u304F\u3081\u308B","\u304F\u3084\u304F\u3057\u3087","\u304F\u3089\u3059","\u304F\u3089\u3078\u3099\u308B","\u304F\u308B\u307E","\u304F\u308C\u308B","\u304F\u308D\u3046","\u304F\u308F\u3057\u3044","\u304F\u3099\u3093\u304B\u3093","\u304F\u3099\u3093\u3057\u3087\u304F","\u304F\u3099\u3093\u305F\u3044","\u304F\u3099\u3093\u3066","\u3051\u3042\u306A","\u3051\u3044\u304B\u304F","\u3051\u3044\u3051\u3093","\u3051\u3044\u3053","\u3051\u3044\u3055\u3064","\u3051\u3099\u3044\u3057\u3099\u3085\u3064","\u3051\u3044\u305F\u3044","\u3051\u3099\u3044\u306E\u3046\u3057\u3099\u3093","\u3051\u3044\u308C\u304D","\u3051\u3044\u308D","\u3051\u304A\u3068\u3059","\u3051\u304A\u308A\u3082\u306E","\u3051\u3099\u304D\u304B","\u3051\u3099\u304D\u3051\u3099\u3093","\u3051\u3099\u304D\u305F\u3099\u3093","\u3051\u3099\u304D\u3061\u3093","\u3051\u3099\u304D\u3068\u3064","\u3051\u3099\u304D\u306F","\u3051\u3099\u304D\u3084\u304F","\u3051\u3099\u3053\u3046","\u3051\u3099\u3053\u304F\u3057\u3099\u3087\u3046","\u3051\u3099\u3055\u3099\u3044","\u3051\u3055\u304D","\u3051\u3099\u3055\u3099\u3093","\u3051\u3057\u304D","\u3051\u3057\u3053\u3099\u3080","\u3051\u3057\u3087\u3046","\u3051\u3099\u3059\u3068","\u3051\u305F\u306F\u3099","\u3051\u3061\u3083\u3063\u3075\u309A","\u3051\u3061\u3089\u3059","\u3051\u3064\u3042\u3064","\u3051\u3064\u3044","\u3051\u3064\u3048\u304D","\u3051\u3063\u3053\u3093","\u3051\u3064\u3057\u3099\u3087","\u3051\u3063\u305B\u304D","\u3051\u3063\u3066\u3044","\u3051\u3064\u307E\u3064","\u3051\u3099\u3064\u3088\u3046\u3072\u3099","\u3051\u3099\u3064\u308C\u3044","\u3051\u3064\u308D\u3093","\u3051\u3099\u3068\u3099\u304F","\u3051\u3068\u306F\u3099\u3059","\u3051\u3068\u308B","\u3051\u306A\u3051\u3099","\u3051\u306A\u3059","\u3051\u306A\u307F","\u3051\u306C\u304D","\u3051\u3099\u306D\u3064","\u3051\u306D\u3093","\u3051\u306F\u3044","\u3051\u3099\u3072\u3093","\u3051\u3075\u3099\u304B\u3044","\u3051\u3099\u307B\u3099\u304F","\u3051\u307E\u308A","\u3051\u307F\u304B\u308B","\u3051\u3080\u3057","\u3051\u3080\u308A","\u3051\u3082\u306E","\u3051\u3089\u3044","\u3051\u308D\u3051\u308D","\u3051\u308F\u3057\u3044","\u3051\u3093\u3044","\u3051\u3093\u3048\u3064","\u3051\u3093\u304A","\u3051\u3093\u304B","\u3051\u3099\u3093\u304D","\u3051\u3093\u3051\u3099\u3093","\u3051\u3093\u3053\u3046","\u3051\u3093\u3055\u304F","\u3051\u3093\u3057\u3085\u3046","\u3051\u3093\u3059\u3046","\u3051\u3099\u3093\u305D\u3046","\u3051\u3093\u3061\u304F","\u3051\u3093\u3066\u3044","\u3051\u3093\u3068\u3046","\u3051\u3093\u306A\u3044","\u3051\u3093\u306B\u3093","\u3051\u3099\u3093\u3075\u3099\u3064","\u3051\u3093\u307E","\u3051\u3093\u307F\u3093","\u3051\u3093\u3081\u3044","\u3051\u3093\u3089\u3093","\u3051\u3093\u308A","\u3053\u3042\u304F\u307E","\u3053\u3044\u306C","\u3053\u3044\u3072\u3099\u3068","\u3053\u3099\u3046\u3044","\u3053\u3046\u3048\u3093","\u3053\u3046\u304A\u3093","\u3053\u3046\u304B\u3093","\u3053\u3099\u3046\u304D\u3085\u3046","\u3053\u3099\u3046\u3051\u3044","\u3053\u3046\u3053\u3046","\u3053\u3046\u3055\u3044","\u3053\u3046\u3057\u3099","\u3053\u3046\u3059\u3044","\u3053\u3099\u3046\u305B\u3044","\u3053\u3046\u305D\u304F","\u3053\u3046\u305F\u3044","\u3053\u3046\u3061\u3083","\u3053\u3046\u3064\u3046","\u3053\u3046\u3066\u3044","\u3053\u3046\u3068\u3099\u3046","\u3053\u3046\u306A\u3044","\u3053\u3046\u306F\u3044","\u3053\u3099\u3046\u307B\u3046","\u3053\u3099\u3046\u307E\u3093","\u3053\u3046\u3082\u304F","\u3053\u3046\u308A\u3064","\u3053\u3048\u308B","\u3053\u304A\u308A","\u3053\u3099\u304B\u3044","\u3053\u3099\u304B\u3099\u3064","\u3053\u3099\u304B\u3093","\u3053\u304F\u3053\u3099","\u3053\u304F\u3055\u3044","\u3053\u304F\u3068\u3046","\u3053\u304F\u306A\u3044","\u3053\u304F\u306F\u304F","\u3053\u304F\u3099\u307E","\u3053\u3051\u3044","\u3053\u3051\u308B","\u3053\u3053\u306E\u304B","\u3053\u3053\u308D","\u3053\u3055\u3081","\u3053\u3057\u3064","\u3053\u3059\u3046","\u3053\u305B\u3044","\u3053\u305B\u304D","\u3053\u305B\u3099\u3093","\u3053\u305D\u305F\u3099\u3066","\u3053\u305F\u3044","\u3053\u305F\u3048\u308B","\u3053\u305F\u3064","\u3053\u3061\u3087\u3046","\u3053\u3063\u304B","\u3053\u3064\u3053\u3064","\u3053\u3064\u306F\u3099\u3093","\u3053\u3064\u3075\u3099","\u3053\u3066\u3044","\u3053\u3066\u3093","\u3053\u3068\u304B\u3099\u3089","\u3053\u3068\u3057","\u3053\u3068\u306F\u3099","\u3053\u3068\u308A","\u3053\u306A\u3053\u3099\u306A","\u3053\u306D\u3053\u306D","\u3053\u306E\u307E\u307E","\u3053\u306E\u307F","\u3053\u306E\u3088","\u3053\u3099\u306F\u3093","\u3053\u3072\u3064\u3057\u3099","\u3053\u3075\u3046","\u3053\u3075\u3093","\u3053\u307B\u3099\u308C\u308B","\u3053\u3099\u307E\u3042\u3075\u3099\u3089","\u3053\u307E\u304B\u3044","\u3053\u3099\u307E\u3059\u308A","\u3053\u307E\u3064\u306A","\u3053\u307E\u308B","\u3053\u3080\u304D\u3099\u3053","\u3053\u3082\u3057\u3099","\u3053\u3082\u3061","\u3053\u3082\u306E","\u3053\u3082\u3093","\u3053\u3084\u304F","\u3053\u3084\u307E","\u3053\u3086\u3046","\u3053\u3086\u3072\u3099","\u3053\u3088\u3044","\u3053\u3088\u3046","\u3053\u308A\u308B","\u3053\u308C\u304F\u3057\u3087\u3093","\u3053\u308D\u3063\u3051","\u3053\u308F\u3082\u3066","\u3053\u308F\u308C\u308B","\u3053\u3093\u3044\u3093","\u3053\u3093\u304B\u3044","\u3053\u3093\u304D","\u3053\u3093\u3057\u3085\u3046","\u3053\u3093\u3059\u3044","\u3053\u3093\u305F\u3099\u3066","\u3053\u3093\u3068\u3093","\u3053\u3093\u306A\u3093","\u3053\u3093\u3072\u3099\u306B","\u3053\u3093\u307B\u309A\u3093","\u3053\u3093\u307E\u3051","\u3053\u3093\u3084","\u3053\u3093\u308C\u3044","\u3053\u3093\u308F\u304F","\u3055\u3099\u3044\u3048\u304D","\u3055\u3044\u304B\u3044","\u3055\u3044\u304D\u3093","\u3055\u3099\u3044\u3051\u3099\u3093","\u3055\u3099\u3044\u3053","\u3055\u3044\u3057\u3087","\u3055\u3044\u305B\u3044","\u3055\u3099\u3044\u305F\u304F","\u3055\u3099\u3044\u3061\u3085\u3046","\u3055\u3044\u3066\u304D","\u3055\u3099\u3044\u308A\u3087\u3046","\u3055\u3046\u306A","\u3055\u304B\u3044\u3057","\u3055\u304B\u3099\u3059","\u3055\u304B\u306A","\u3055\u304B\u307F\u3061","\u3055\u304B\u3099\u308B","\u3055\u304D\u3099\u3087\u3046","\u3055\u304F\u3057","\u3055\u304F\u3072\u3093","\u3055\u304F\u3089","\u3055\u3053\u304F","\u3055\u3053\u3064","\u3055\u3059\u3099\u304B\u308B","\u3055\u3099\u305B\u304D","\u3055\u305F\u3093","\u3055\u3064\u3048\u3044","\u3055\u3099\u3064\u304A\u3093","\u3055\u3099\u3063\u304B","\u3055\u3099\u3064\u304B\u3099\u304F","\u3055\u3063\u304D\u3087\u304F","\u3055\u3099\u3063\u3057","\u3055\u3064\u3057\u3099\u3093","\u3055\u3099\u3063\u305D\u3046","\u3055\u3064\u305F\u306F\u3099","\u3055\u3064\u307E\u3044\u3082","\u3055\u3066\u3044","\u3055\u3068\u3044\u3082","\u3055\u3068\u3046","\u3055\u3068\u304A\u3084","\u3055\u3068\u3057","\u3055\u3068\u308B","\u3055\u306E\u3046","\u3055\u306F\u3099\u304F","\u3055\u3072\u3099\u3057\u3044","\u3055\u3078\u3099\u3064","\u3055\u307B\u3046","\u3055\u307B\u3068\u3099","\u3055\u307E\u3059","\u3055\u307F\u3057\u3044","\u3055\u307F\u305F\u3099\u308C","\u3055\u3080\u3051","\u3055\u3081\u308B","\u3055\u3084\u3048\u3093\u3068\u3099\u3046","\u3055\u3086\u3046","\u3055\u3088\u3046","\u3055\u3088\u304F","\u3055\u3089\u305F\u3099","\u3055\u3099\u308B\u305D\u306F\u3099","\u3055\u308F\u3084\u304B","\u3055\u308F\u308B","\u3055\u3093\u3044\u3093","\u3055\u3093\u304B","\u3055\u3093\u304D\u3083\u304F","\u3055\u3093\u3053\u3046","\u3055\u3093\u3055\u3044","\u3055\u3099\u3093\u3057\u3087","\u3055\u3093\u3059\u3046","\u3055\u3093\u305B\u3044","\u3055\u3093\u305D","\u3055\u3093\u3061","\u3055\u3093\u307E","\u3055\u3093\u307F","\u3055\u3093\u3089\u3093","\u3057\u3042\u3044","\u3057\u3042\u3051\u3099","\u3057\u3042\u3055\u3063\u3066","\u3057\u3042\u308F\u305B","\u3057\u3044\u304F","\u3057\u3044\u3093","\u3057\u3046\u3061","\u3057\u3048\u3044","\u3057\u304A\u3051","\u3057\u304B\u3044","\u3057\u304B\u304F","\u3057\u3099\u304B\u3093","\u3057\u3053\u3099\u3068","\u3057\u3059\u3046","\u3057\u3099\u305F\u3099\u3044","\u3057\u305F\u3046\u3051","\u3057\u305F\u304D\u3099","\u3057\u305F\u3066","\u3057\u305F\u307F","\u3057\u3061\u3087\u3046","\u3057\u3061\u308A\u3093","\u3057\u3063\u304B\u308A","\u3057\u3064\u3057\u3099","\u3057\u3064\u3082\u3093","\u3057\u3066\u3044","\u3057\u3066\u304D","\u3057\u3066\u3064","\u3057\u3099\u3066\u3093","\u3057\u3099\u3068\u3099\u3046","\u3057\u306A\u304D\u3099\u308C","\u3057\u306A\u3082\u306E","\u3057\u306A\u3093","\u3057\u306D\u307E","\u3057\u306D\u3093","\u3057\u306E\u304F\u3099","\u3057\u306E\u3075\u3099","\u3057\u306F\u3044","\u3057\u306F\u3099\u304B\u308A","\u3057\u306F\u3064","\u3057\u306F\u3089\u3044","\u3057\u306F\u3093","\u3057\u3072\u3087\u3046","\u3057\u3075\u304F","\u3057\u3099\u3075\u3099\u3093","\u3057\u3078\u3044","\u3057\u307B\u3046","\u3057\u307B\u3093","\u3057\u307E\u3046","\u3057\u307E\u308B","\u3057\u307F\u3093","\u3057\u3080\u3051\u308B","\u3057\u3099\u3080\u3057\u3087","\u3057\u3081\u3044","\u3057\u3081\u308B","\u3057\u3082\u3093","\u3057\u3083\u3044\u3093","\u3057\u3083\u3046\u3093","\u3057\u3083\u304A\u3093","\u3057\u3099\u3083\u304B\u3099\u3044\u3082","\u3057\u3084\u304F\u3057\u3087","\u3057\u3083\u304F\u307B\u3046","\u3057\u3083\u3051\u3093","\u3057\u3083\u3053","\u3057\u3083\u3055\u3099\u3044","\u3057\u3083\u3057\u3093","\u3057\u3083\u305B\u3093","\u3057\u3083\u305D\u3046","\u3057\u3083\u305F\u3044","\u3057\u3083\u3061\u3087\u3046","\u3057\u3083\u3063\u304D\u3093","\u3057\u3099\u3083\u307E","\u3057\u3083\u308A\u3093","\u3057\u3083\u308C\u3044","\u3057\u3099\u3086\u3046","\u3057\u3099\u3085\u3046\u3057\u3087","\u3057\u3085\u304F\u306F\u304F","\u3057\u3099\u3085\u3057\u3093","\u3057\u3085\u3063\u305B\u304D","\u3057\u3085\u307F","\u3057\u3085\u3089\u306F\u3099","\u3057\u3099\u3085\u3093\u306F\u3099\u3093","\u3057\u3087\u3046\u304B\u3044","\u3057\u3087\u304F\u305F\u304F","\u3057\u3087\u3063\u3051\u3093","\u3057\u3087\u3068\u3099\u3046","\u3057\u3087\u3082\u3064","\u3057\u3089\u305B\u308B","\u3057\u3089\u3078\u3099\u308B","\u3057\u3093\u304B","\u3057\u3093\u3053\u3046","\u3057\u3099\u3093\u3057\u3099\u3083","\u3057\u3093\u305B\u3044\u3057\u3099","\u3057\u3093\u3061\u304F","\u3057\u3093\u308A\u3093","\u3059\u3042\u3051\u3099","\u3059\u3042\u3057","\u3059\u3042\u306A","\u3059\u3099\u3042\u3093","\u3059\u3044\u3048\u3044","\u3059\u3044\u304B","\u3059\u3044\u3068\u3046","\u3059\u3099\u3044\u3075\u3099\u3093","\u3059\u3044\u3088\u3046\u3072\u3099","\u3059\u3046\u304B\u3099\u304F","\u3059\u3046\u3057\u3099\u3064","\u3059\u3046\u305B\u3093","\u3059\u304A\u3068\u3099\u308A","\u3059\u304D\u307E","\u3059\u304F\u3046","\u3059\u304F\u306A\u3044","\u3059\u3051\u308B","\u3059\u3053\u3099\u3044","\u3059\u3053\u3057","\u3059\u3099\u3055\u3093","\u3059\u3059\u3099\u3057\u3044","\u3059\u3059\u3080","\u3059\u3059\u3081\u308B","\u3059\u3063\u304B\u308A","\u3059\u3099\u3063\u3057\u308A","\u3059\u3099\u3063\u3068","\u3059\u3066\u304D","\u3059\u3066\u308B","\u3059\u306D\u308B","\u3059\u306E\u3053","\u3059\u306F\u305F\u3099","\u3059\u306F\u3099\u3089\u3057\u3044","\u3059\u3099\u3072\u3087\u3046","\u3059\u3099\u3075\u3099\u306C\u308C","\u3059\u3075\u3099\u308A","\u3059\u3075\u308C","\u3059\u3078\u3099\u3066","\u3059\u3078\u3099\u308B","\u3059\u3099\u307B\u3046","\u3059\u307B\u3099\u3093","\u3059\u307E\u3044","\u3059\u3081\u3057","\u3059\u3082\u3046","\u3059\u3084\u304D","\u3059\u3089\u3059\u3089","\u3059\u308B\u3081","\u3059\u308C\u3061\u304B\u3099\u3046","\u3059\u308D\u3063\u3068","\u3059\u308F\u308B","\u3059\u3093\u305B\u3099\u3093","\u3059\u3093\u307B\u309A\u3046","\u305B\u3042\u3075\u3099\u3089","\u305B\u3044\u304B\u3064","\u305B\u3044\u3051\u3099\u3093","\u305B\u3044\u3057\u3099","\u305B\u3044\u3088\u3046","\u305B\u304A\u3046","\u305B\u304B\u3044\u304B\u3093","\u305B\u304D\u306B\u3093","\u305B\u304D\u3080","\u305B\u304D\u3086","\u305B\u304D\u3089\u3093\u3046\u3093","\u305B\u3051\u3093","\u305B\u3053\u3046","\u305B\u3059\u3057\u3099","\u305B\u305F\u3044","\u305B\u305F\u3051","\u305B\u3063\u304B\u304F","\u305B\u3063\u304D\u3083\u304F","\u305B\u3099\u3063\u304F","\u305B\u3063\u3051\u3093","\u305B\u3063\u3053\u3064","\u305B\u3063\u3055\u305F\u304F\u307E","\u305B\u3064\u305D\u3099\u304F","\u305B\u3064\u305F\u3099\u3093","\u305B\u3064\u3066\u3099\u3093","\u305B\u3063\u306F\u309A\u3093","\u305B\u3064\u3072\u3099","\u305B\u3064\u3075\u3099\u3093","\u305B\u3064\u3081\u3044","\u305B\u3064\u308A\u3064","\u305B\u306A\u304B","\u305B\u306E\u3072\u3099","\u305B\u306F\u306F\u3099","\u305B\u3072\u3099\u308D","\u305B\u307B\u3099\u306D","\u305B\u307E\u3044","\u305B\u307E\u308B","\u305B\u3081\u308B","\u305B\u3082\u305F\u308C","\u305B\u308A\u3075","\u305B\u3099\u3093\u3042\u304F","\u305B\u3093\u3044","\u305B\u3093\u3048\u3044","\u305B\u3093\u304B","\u305B\u3093\u304D\u3087","\u305B\u3093\u304F","\u305B\u3093\u3051\u3099\u3093","\u305B\u3099\u3093\u3053\u3099","\u305B\u3093\u3055\u3044","\u305B\u3093\u3057\u3085","\u305B\u3093\u3059\u3044","\u305B\u3093\u305B\u3044","\u305B\u3093\u305D\u3099","\u305B\u3093\u305F\u304F","\u305B\u3093\u3061\u3087\u3046","\u305B\u3093\u3066\u3044","\u305B\u3093\u3068\u3046","\u305B\u3093\u306C\u304D","\u305B\u3093\u306D\u3093","\u305B\u3093\u306F\u309A\u3044","\u305B\u3099\u3093\u3075\u3099","\u305B\u3099\u3093\u307B\u309A\u3046","\u305B\u3093\u3080","\u305B\u3093\u3081\u3093\u3057\u3099\u3087","\u305B\u3093\u3082\u3093","\u305B\u3093\u3084\u304F","\u305B\u3093\u3086\u3046","\u305B\u3093\u3088\u3046","\u305B\u3099\u3093\u3089","\u305B\u3099\u3093\u308A\u3083\u304F","\u305B\u3093\u308C\u3044","\u305B\u3093\u308D","\u305D\u3042\u304F","\u305D\u3044\u3068\u3051\u3099\u308B","\u305D\u3044\u306D","\u305D\u3046\u304B\u3099\u3093\u304D\u3087\u3046","\u305D\u3046\u304D","\u305D\u3046\u3053\u3099","\u305D\u3046\u3057\u3093","\u305D\u3046\u305F\u3099\u3093","\u305D\u3046\u306A\u3093","\u305D\u3046\u3072\u3099","\u305D\u3046\u3081\u3093","\u305D\u3046\u308A","\u305D\u3048\u3082\u306E","\u305D\u3048\u3093","\u305D\u304B\u3099\u3044","\u305D\u3051\u3099\u304D","\u305D\u3053\u3046","\u305D\u3053\u305D\u3053","\u305D\u3055\u3099\u3044","\u305D\u3057\u306A","\u305D\u305B\u3044","\u305D\u305B\u3093","\u305D\u305D\u304F\u3099","\u305D\u305F\u3099\u3066\u308B","\u305D\u3064\u3046","\u305D\u3064\u3048\u3093","\u305D\u3063\u304B\u3093","\u305D\u3064\u304D\u3099\u3087\u3046","\u305D\u3063\u3051\u3064","\u305D\u3063\u3053\u3046","\u305D\u3063\u305B\u3093","\u305D\u3063\u3068","\u305D\u3068\u304B\u3099\u308F","\u305D\u3068\u3064\u3099\u3089","\u305D\u306A\u3048\u308B","\u305D\u306A\u305F","\u305D\u3075\u307B\u3099","\u305D\u307B\u3099\u304F","\u305D\u307B\u3099\u308D","\u305D\u307E\u3064","\u305D\u307E\u308B","\u305D\u3080\u304F","\u305D\u3080\u308A\u3048","\u305D\u3081\u308B","\u305D\u3082\u305D\u3082","\u305D\u3088\u304B\u305B\u3099","\u305D\u3089\u307E\u3081","\u305D\u308D\u3046","\u305D\u3093\u304B\u3044","\u305D\u3093\u3051\u3044","\u305D\u3093\u3055\u3099\u3044","\u305D\u3093\u3057\u3064","\u305D\u3093\u305D\u3099\u304F","\u305D\u3093\u3061\u3087\u3046","\u305D\u3099\u3093\u3072\u3099","\u305D\u3099\u3093\u3075\u3099\u3093","\u305D\u3093\u307F\u3093","\u305F\u3042\u3044","\u305F\u3044\u3044\u3093","\u305F\u3044\u3046\u3093","\u305F\u3044\u3048\u304D","\u305F\u3044\u304A\u3046","\u305F\u3099\u3044\u304B\u3099\u304F","\u305F\u3044\u304D","\u305F\u3044\u304F\u3099\u3046","\u305F\u3044\u3051\u3093","\u305F\u3044\u3053","\u305F\u3044\u3055\u3099\u3044","\u305F\u3099\u3044\u3057\u3099\u3087\u3046\u3075\u3099","\u305F\u3099\u3044\u3059\u304D","\u305F\u3044\u305B\u3064","\u305F\u3044\u305D\u3046","\u305F\u3099\u3044\u305F\u3044","\u305F\u3044\u3061\u3087\u3046","\u305F\u3044\u3066\u3044","\u305F\u3099\u3044\u3068\u3099\u3053\u308D","\u305F\u3044\u306A\u3044","\u305F\u3044\u306D\u3064","\u305F\u3044\u306E\u3046","\u305F\u3044\u306F\u3093","\u305F\u3099\u3044\u3072\u3087\u3046","\u305F\u3044\u3075\u3046","\u305F\u3044\u3078\u3093","\u305F\u3044\u307B","\u305F\u3044\u307E\u3064\u306F\u3099\u306A","\u305F\u3044\u307F\u3093\u304F\u3099","\u305F\u3044\u3080","\u305F\u3044\u3081\u3093","\u305F\u3044\u3084\u304D","\u305F\u3044\u3088\u3046","\u305F\u3044\u3089","\u305F\u3044\u308A\u3087\u304F","\u305F\u3044\u308B","\u305F\u3044\u308F\u3093","\u305F\u3046\u3048","\u305F\u3048\u308B","\u305F\u304A\u3059","\u305F\u304A\u308B","\u305F\u304A\u308C\u308B","\u305F\u304B\u3044","\u305F\u304B\u306D","\u305F\u304D\u3072\u3099","\u305F\u304F\u3055\u3093","\u305F\u3053\u304F","\u305F\u3053\u3084\u304D","\u305F\u3055\u3044","\u305F\u3057\u3055\u3099\u3093","\u305F\u3099\u3057\u3099\u3083\u308C","\u305F\u3059\u3051\u308B","\u305F\u3059\u3099\u3055\u308F\u308B","\u305F\u305D\u304B\u3099\u308C","\u305F\u305F\u304B\u3046","\u305F\u305F\u304F","\u305F\u305F\u3099\u3057\u3044","\u305F\u305F\u307F","\u305F\u3061\u306F\u3099\u306A","\u305F\u3099\u3063\u304B\u3044","\u305F\u3099\u3063\u304D\u3083\u304F","\u305F\u3099\u3063\u3053","\u305F\u3099\u3063\u3057\u3085\u3064","\u305F\u3099\u3063\u305F\u3044","\u305F\u3066\u308B","\u305F\u3068\u3048\u308B","\u305F\u306A\u306F\u3099\u305F","\u305F\u306B\u3093","\u305F\u306C\u304D","\u305F\u306E\u3057\u307F","\u305F\u306F\u3064","\u305F\u3075\u3099\u3093","\u305F\u3078\u3099\u308B","\u305F\u307B\u3099\u3046","\u305F\u307E\u3053\u3099","\u305F\u307E\u308B","\u305F\u3099\u3080\u308B","\u305F\u3081\u3044\u304D","\u305F\u3081\u3059","\u305F\u3081\u308B","\u305F\u3082\u3064","\u305F\u3084\u3059\u3044","\u305F\u3088\u308B","\u305F\u3089\u3059","\u305F\u308A\u304D\u307B\u3093\u304B\u3099\u3093","\u305F\u308A\u3087\u3046","\u305F\u308A\u308B","\u305F\u308B\u3068","\u305F\u308C\u308B","\u305F\u308C\u3093\u3068","\u305F\u308D\u3063\u3068","\u305F\u308F\u3080\u308C\u308B","\u305F\u3099\u3093\u3042\u3064","\u305F\u3093\u3044","\u305F\u3093\u304A\u3093","\u305F\u3093\u304B","\u305F\u3093\u304D","\u305F\u3093\u3051\u3093","\u305F\u3093\u3053\u3099","\u305F\u3093\u3055\u3093","\u305F\u3093\u3057\u3099\u3087\u3046\u3072\u3099","\u305F\u3099\u3093\u305B\u3044","\u305F\u3093\u305D\u304F","\u305F\u3093\u305F\u3044","\u305F\u3099\u3093\u3061","\u305F\u3093\u3066\u3044","\u305F\u3093\u3068\u3046","\u305F\u3099\u3093\u306A","\u305F\u3093\u306B\u3093","\u305F\u3099\u3093\u306D\u3064","\u305F\u3093\u306E\u3046","\u305F\u3093\u3072\u309A\u3093","\u305F\u3099\u3093\u307B\u3099\u3046","\u305F\u3093\u307E\u3064","\u305F\u3093\u3081\u3044","\u305F\u3099\u3093\u308C\u3064","\u305F\u3099\u3093\u308D","\u305F\u3099\u3093\u308F","\u3061\u3042\u3044","\u3061\u3042\u3093","\u3061\u3044\u304D","\u3061\u3044\u3055\u3044","\u3061\u3048\u3093","\u3061\u304B\u3044","\u3061\u304B\u3089","\u3061\u304D\u3085\u3046","\u3061\u304D\u3093","\u3061\u3051\u3044\u3059\u3099","\u3061\u3051\u3093","\u3061\u3053\u304F","\u3061\u3055\u3044","\u3061\u3057\u304D","\u3061\u3057\u308A\u3087\u3046","\u3061\u305B\u3044","\u3061\u305D\u3046","\u3061\u305F\u3044","\u3061\u305F\u3093","\u3061\u3061\u304A\u3084","\u3061\u3064\u3057\u3099\u3087","\u3061\u3066\u304D","\u3061\u3066\u3093","\u3061\u306C\u304D","\u3061\u306C\u308A","\u3061\u306E\u3046","\u3061\u3072\u3087\u3046","\u3061\u3078\u3044\u305B\u3093","\u3061\u307B\u3046","\u3061\u307E\u305F","\u3061\u307F\u3064","\u3061\u307F\u3068\u3099\u308D","\u3061\u3081\u3044\u3068\u3099","\u3061\u3083\u3093\u3053\u306A\u3078\u3099","\u3061\u3085\u3046\u3044","\u3061\u3086\u308A\u3087\u304F","\u3061\u3087\u3046\u3057","\u3061\u3087\u3055\u304F\u3051\u3093","\u3061\u3089\u3057","\u3061\u3089\u307F","\u3061\u308A\u304B\u3099\u307F","\u3061\u308A\u3087\u3046","\u3061\u308B\u3068\u3099","\u3061\u308F\u308F","\u3061\u3093\u305F\u3044","\u3061\u3093\u3082\u304F","\u3064\u3044\u304B","\u3064\u3044\u305F\u3061","\u3064\u3046\u304B","\u3064\u3046\u3057\u3099\u3087\u3046","\u3064\u3046\u306F\u3093","\u3064\u3046\u308F","\u3064\u304B\u3046","\u3064\u304B\u308C\u308B","\u3064\u304F\u306D","\u3064\u304F\u308B","\u3064\u3051\u306D","\u3064\u3051\u308B","\u3064\u3053\u3099\u3046","\u3064\u305F\u3048\u308B","\u3064\u3064\u3099\u304F","\u3064\u3064\u3057\u3099","\u3064\u3064\u3080","\u3064\u3068\u3081\u308B","\u3064\u306A\u304B\u3099\u308B","\u3064\u306A\u307F","\u3064\u306D\u3064\u3099\u306D","\u3064\u306E\u308B","\u3064\u3075\u3099\u3059","\u3064\u307E\u3089\u306A\u3044","\u3064\u307E\u308B","\u3064\u307F\u304D","\u3064\u3081\u305F\u3044","\u3064\u3082\u308A","\u3064\u3082\u308B","\u3064\u3088\u3044","\u3064\u308B\u307B\u3099","\u3064\u308B\u307F\u304F","\u3064\u308F\u3082\u306E","\u3064\u308F\u308A","\u3066\u3042\u3057","\u3066\u3042\u3066","\u3066\u3042\u307F","\u3066\u3044\u304A\u3093","\u3066\u3044\u304B","\u3066\u3044\u304D","\u3066\u3044\u3051\u3044","\u3066\u3044\u3053\u304F","\u3066\u3044\u3055\u3064","\u3066\u3044\u3057","\u3066\u3044\u305B\u3044","\u3066\u3044\u305F\u3044","\u3066\u3044\u3068\u3099","\u3066\u3044\u306D\u3044","\u3066\u3044\u3072\u3087\u3046","\u3066\u3044\u3078\u3093","\u3066\u3044\u307B\u3099\u3046","\u3066\u3046\u3061","\u3066\u304A\u304F\u308C","\u3066\u304D\u3068\u3046","\u3066\u304F\u3072\u3099","\u3066\u3099\u3053\u307B\u3099\u3053","\u3066\u3055\u304D\u3099\u3087\u3046","\u3066\u3055\u3051\u3099","\u3066\u3059\u308A","\u3066\u305D\u3046","\u3066\u3061\u304B\u3099\u3044","\u3066\u3061\u3087\u3046","\u3066\u3064\u304B\u3099\u304F","\u3066\u3064\u3064\u3099\u304D","\u3066\u3099\u3063\u306F\u309A","\u3066\u3064\u307B\u3099\u3046","\u3066\u3064\u3084","\u3066\u3099\u306C\u304B\u3048","\u3066\u306C\u304D","\u3066\u306C\u304F\u3099\u3044","\u3066\u306E\u3072\u3089","\u3066\u306F\u3044","\u3066\u3075\u3099\u304F\u308D","\u3066\u3075\u305F\u3099","\u3066\u307B\u3068\u3099\u304D","\u3066\u307B\u3093","\u3066\u307E\u3048","\u3066\u307E\u304D\u3059\u3099\u3057","\u3066\u307F\u3057\u3099\u304B","\u3066\u307F\u3084\u3051\u3099","\u3066\u3089\u3059","\u3066\u308C\u3072\u3099","\u3066\u308F\u3051","\u3066\u308F\u305F\u3057","\u3066\u3099\u3093\u3042\u3064","\u3066\u3093\u3044\u3093","\u3066\u3093\u304B\u3044","\u3066\u3093\u304D","\u3066\u3093\u304F\u3099","\u3066\u3093\u3051\u3093","\u3066\u3093\u3053\u3099\u304F","\u3066\u3093\u3055\u3044","\u3066\u3093\u3057","\u3066\u3093\u3059\u3046","\u3066\u3099\u3093\u3061","\u3066\u3093\u3066\u304D","\u3066\u3093\u3068\u3046","\u3066\u3093\u306A\u3044","\u3066\u3093\u3075\u309A\u3089","\u3066\u3093\u307B\u3099\u3046\u305F\u3099\u3044","\u3066\u3093\u3081\u3064","\u3066\u3093\u3089\u3093\u304B\u3044","\u3066\u3099\u3093\u308A\u3087\u304F","\u3066\u3099\u3093\u308F","\u3068\u3099\u3042\u3044","\u3068\u3044\u308C","\u3068\u3099\u3046\u304B\u3093","\u3068\u3046\u304D\u3085\u3046","\u3068\u3099\u3046\u304F\u3099","\u3068\u3046\u3057","\u3068\u3046\u3080\u304D\u3099","\u3068\u304A\u3044","\u3068\u304A\u304B","\u3068\u304A\u304F","\u3068\u304A\u3059","\u3068\u304A\u308B","\u3068\u304B\u3044","\u3068\u304B\u3059","\u3068\u304D\u304A\u308A","\u3068\u304D\u3068\u3099\u304D","\u3068\u304F\u3044","\u3068\u304F\u3057\u3085\u3046","\u3068\u304F\u3066\u3093","\u3068\u304F\u306B","\u3068\u304F\u3078\u3099\u3064","\u3068\u3051\u3044","\u3068\u3051\u308B","\u3068\u3053\u3084","\u3068\u3055\u304B","\u3068\u3057\u3087\u304B\u3093","\u3068\u305D\u3046","\u3068\u305F\u3093","\u3068\u3061\u3085\u3046","\u3068\u3063\u304D\u3085\u3046","\u3068\u3063\u304F\u3093","\u3068\u3064\u305B\u3099\u3093","\u3068\u3064\u306B\u3085\u3046","\u3068\u3068\u3099\u3051\u308B","\u3068\u3068\u306E\u3048\u308B","\u3068\u306A\u3044","\u3068\u306A\u3048\u308B","\u3068\u306A\u308A","\u3068\u306E\u3055\u307E","\u3068\u306F\u3099\u3059","\u3068\u3099\u3075\u3099\u304B\u3099\u308F","\u3068\u307B\u3046","\u3068\u307E\u308B","\u3068\u3081\u308B","\u3068\u3082\u305F\u3099\u3061","\u3068\u3082\u308B","\u3068\u3099\u3088\u3046\u3072\u3099","\u3068\u3089\u3048\u308B","\u3068\u3093\u304B\u3064","\u3068\u3099\u3093\u3075\u3099\u308A","\u306A\u3044\u304B\u304F","\u306A\u3044\u3053\u3046","\u306A\u3044\u3057\u3087","\u306A\u3044\u3059","\u306A\u3044\u305B\u3093","\u306A\u3044\u305D\u3046","\u306A\u304A\u3059","\u306A\u304B\u3099\u3044","\u306A\u304F\u3059","\u306A\u3051\u3099\u308B","\u306A\u3053\u3046\u3068\u3099","\u306A\u3055\u3051","\u306A\u305F\u3066\u3099\u3053\u3053","\u306A\u3063\u3068\u3046","\u306A\u3064\u3084\u3059\u307F","\u306A\u306A\u304A\u3057","\u306A\u306B\u3053\u3099\u3068","\u306A\u306B\u3082\u306E","\u306A\u306B\u308F","\u306A\u306E\u304B","\u306A\u3075\u305F\u3099","\u306A\u307E\u3044\u304D","\u306A\u307E\u3048","\u306A\u307E\u307F","\u306A\u307F\u305F\u3099","\u306A\u3081\u3089\u304B","\u306A\u3081\u308B","\u306A\u3084\u3080","\u306A\u3089\u3046","\u306A\u3089\u3072\u3099","\u306A\u3089\u3075\u3099","\u306A\u308C\u308B","\u306A\u308F\u3068\u3072\u3099","\u306A\u308F\u306F\u3099\u308A","\u306B\u3042\u3046","\u306B\u3044\u304B\u3099\u305F","\u306B\u3046\u3051","\u306B\u304A\u3044","\u306B\u304B\u3044","\u306B\u304B\u3099\u3066","\u306B\u304D\u3072\u3099","\u306B\u304F\u3057\u307F","\u306B\u304F\u307E\u3093","\u306B\u3051\u3099\u308B","\u306B\u3055\u3093\u304B\u305F\u3093\u305D","\u306B\u3057\u304D","\u306B\u305B\u3082\u306E","\u306B\u3061\u3057\u3099\u3087\u3046","\u306B\u3061\u3088\u3046\u3072\u3099","\u306B\u3063\u304B","\u306B\u3063\u304D","\u306B\u3063\u3051\u3044","\u306B\u3063\u3053\u3046","\u306B\u3063\u3055\u3093","\u306B\u3063\u3057\u3087\u304F","\u306B\u3063\u3059\u3046","\u306B\u3063\u305B\u304D","\u306B\u3063\u3066\u3044","\u306B\u306A\u3046","\u306B\u307B\u3093","\u306B\u307E\u3081","\u306B\u3082\u3064","\u306B\u3084\u308A","\u306B\u3085\u3046\u3044\u3093","\u306B\u308A\u3093\u3057\u3083","\u306B\u308F\u3068\u308A","\u306B\u3093\u3044","\u306B\u3093\u304B","\u306B\u3093\u304D","\u306B\u3093\u3051\u3099\u3093","\u306B\u3093\u3057\u304D","\u306B\u3093\u3059\u3099\u3046","\u306B\u3093\u305D\u3046","\u306B\u3093\u305F\u3044","\u306B\u3093\u3061","\u306B\u3093\u3066\u3044","\u306B\u3093\u306B\u304F","\u306B\u3093\u3075\u309A","\u306B\u3093\u307E\u308A","\u306B\u3093\u3080","\u306B\u3093\u3081\u3044","\u306B\u3093\u3088\u3046","\u306C\u3044\u304F\u304D\u3099","\u306C\u304B\u3059","\u306C\u304F\u3099\u3044\u3068\u308B","\u306C\u304F\u3099\u3046","\u306C\u304F\u3082\u308A","\u306C\u3059\u3080","\u306C\u307E\u3048\u3072\u3099","\u306C\u3081\u308A","\u306C\u3089\u3059","\u306C\u3093\u3061\u3083\u304F","\u306D\u3042\u3051\u3099","\u306D\u3044\u304D","\u306D\u3044\u308B","\u306D\u3044\u308D","\u306D\u304F\u3099\u305B","\u306D\u304F\u305F\u3044","\u306D\u304F\u3089","\u306D\u3053\u305B\u3099","\u306D\u3053\u3080","\u306D\u3055\u3051\u3099","\u306D\u3059\u3053\u3099\u3059","\u306D\u305D\u3078\u3099\u308B","\u306D\u305F\u3099\u3093","\u306D\u3064\u3044","\u306D\u3063\u3057\u3093","\u306D\u3064\u305D\u3099\u3046","\u306D\u3063\u305F\u3044\u304D\u3099\u3087","\u306D\u3075\u3099\u305D\u304F","\u306D\u3075\u305F\u3099","\u306D\u307B\u3099\u3046","\u306D\u307B\u308A\u306F\u307B\u308A","\u306D\u307E\u304D","\u306D\u307E\u308F\u3057","\u306D\u307F\u307F","\u306D\u3080\u3044","\u306D\u3080\u305F\u3044","\u306D\u3082\u3068","\u306D\u3089\u3046","\u306D\u308F\u3055\u3099","\u306D\u3093\u3044\u308A","\u306D\u3093\u304A\u3057","\u306D\u3093\u304B\u3093","\u306D\u3093\u304D\u3093","\u306D\u3093\u304F\u3099","\u306D\u3093\u3055\u3099","\u306D\u3093\u3057","\u306D\u3093\u3061\u3083\u304F","\u306D\u3093\u3068\u3099","\u306D\u3093\u3072\u309A","\u306D\u3093\u3075\u3099\u3064","\u306D\u3093\u307E\u3064","\u306D\u3093\u308A\u3087\u3046","\u306D\u3093\u308C\u3044","\u306E\u3044\u3059\u3099","\u306E\u304A\u3064\u3099\u307E","\u306E\u304B\u3099\u3059","\u306E\u304D\u306A\u307F","\u306E\u3053\u304D\u3099\u308A","\u306E\u3053\u3059","\u306E\u3053\u308B","\u306E\u305B\u308B","\u306E\u305D\u3099\u304F","\u306E\u305D\u3099\u3080","\u306E\u305F\u307E\u3046","\u306E\u3061\u307B\u3068\u3099","\u306E\u3063\u304F","\u306E\u306F\u3099\u3059","\u306E\u306F\u3089","\u306E\u3078\u3099\u308B","\u306E\u307B\u3099\u308B","\u306E\u307F\u3082\u306E","\u306E\u3084\u307E","\u306E\u3089\u3044\u306C","\u306E\u3089\u306D\u3053","\u306E\u308A\u3082\u306E","\u306E\u308A\u3086\u304D","\u306E\u308C\u3093","\u306E\u3093\u304D","\u306F\u3099\u3042\u3044","\u306F\u3042\u304F","\u306F\u3099\u3042\u3055\u3093","\u306F\u3099\u3044\u304B","\u306F\u3099\u3044\u304F","\u306F\u3044\u3051\u3093","\u306F\u3044\u3053\u3099","\u306F\u3044\u3057\u3093","\u306F\u3044\u3059\u3044","\u306F\u3044\u305B\u3093","\u306F\u3044\u305D\u3046","\u306F\u3044\u3061","\u306F\u3099\u3044\u306F\u3099\u3044","\u306F\u3044\u308C\u3064","\u306F\u3048\u308B","\u306F\u304A\u308B","\u306F\u304B\u3044","\u306F\u3099\u304B\u308A","\u306F\u304B\u308B","\u306F\u304F\u3057\u3085","\u306F\u3051\u3093","\u306F\u3053\u3075\u3099","\u306F\u3055\u307F","\u306F\u3055\u3093","\u306F\u3057\u3053\u3099","\u306F\u3099\u3057\u3087","\u306F\u3057\u308B","\u306F\u305B\u308B","\u306F\u309A\u305D\u3053\u3093","\u306F\u305D\u3093","\u306F\u305F\u3093","\u306F\u3061\u307F\u3064","\u306F\u3064\u304A\u3093","\u306F\u3063\u304B\u304F","\u306F\u3064\u3099\u304D","\u306F\u3063\u304D\u308A","\u306F\u3063\u304F\u3064","\u306F\u3063\u3051\u3093","\u306F\u3063\u3053\u3046","\u306F\u3063\u3055\u3093","\u306F\u3063\u3057\u3093","\u306F\u3063\u305F\u3064","\u306F\u3063\u3061\u3085\u3046","\u306F\u3063\u3066\u3093","\u306F\u3063\u3072\u309A\u3087\u3046","\u306F\u3063\u307B\u309A\u3046","\u306F\u306A\u3059","\u306F\u306A\u3072\u3099","\u306F\u306B\u304B\u3080","\u306F\u3075\u3099\u3089\u3057","\u306F\u307F\u304B\u3099\u304D","\u306F\u3080\u304B\u3046","\u306F\u3081\u3064","\u306F\u3084\u3044","\u306F\u3084\u3057","\u306F\u3089\u3046","\u306F\u308D\u3046\u3043\u3093","\u306F\u308F\u3044","\u306F\u3093\u3044","\u306F\u3093\u3048\u3044","\u306F\u3093\u304A\u3093","\u306F\u3093\u304B\u304F","\u306F\u3093\u304D\u3087\u3046","\u306F\u3099\u3093\u304F\u3099\u307F","\u306F\u3093\u3053","\u306F\u3093\u3057\u3083","\u306F\u3093\u3059\u3046","\u306F\u3093\u305F\u3099\u3093","\u306F\u309A\u3093\u3061","\u306F\u309A\u3093\u3064","\u306F\u3093\u3066\u3044","\u306F\u3093\u3068\u3057","\u306F\u3093\u306E\u3046","\u306F\u3093\u306F\u309A","\u306F\u3093\u3075\u3099\u3093","\u306F\u3093\u3078\u309A\u3093","\u306F\u3093\u307B\u3099\u3046\u304D","\u306F\u3093\u3081\u3044","\u306F\u3093\u3089\u3093","\u306F\u3093\u308D\u3093","\u3072\u3044\u304D","\u3072\u3046\u3093","\u3072\u3048\u308B","\u3072\u304B\u304F","\u3072\u304B\u308A","\u3072\u304B\u308B","\u3072\u304B\u3093","\u3072\u304F\u3044","\u3072\u3051\u3064","\u3072\u3053\u3046\u304D","\u3072\u3053\u304F","\u3072\u3055\u3044","\u3072\u3055\u3057\u3075\u3099\u308A","\u3072\u3055\u3093","\u3072\u3099\u3057\u3099\u3085\u3064\u304B\u3093","\u3072\u3057\u3087","\u3072\u305D\u304B","\u3072\u305D\u3080","\u3072\u305F\u3080\u304D","\u3072\u305F\u3099\u308A","\u3072\u305F\u308B","\u3072\u3064\u304D\u3099","\u3072\u3063\u3053\u3057","\u3072\u3063\u3057","\u3072\u3064\u3057\u3099\u3085\u3072\u3093","\u3072\u3063\u3059","\u3072\u3064\u305B\u3099\u3093","\u3072\u309A\u3063\u305F\u308A","\u3072\u309A\u3063\u3061\u308A","\u3072\u3064\u3088\u3046","\u3072\u3066\u3044","\u3072\u3068\u3053\u3099\u307F","\u3072\u306A\u307E\u3064\u308A","\u3072\u306A\u3093","\u3072\u306D\u308B","\u3072\u306F\u3093","\u3072\u3072\u3099\u304F","\u3072\u3072\u3087\u3046","\u3072\u307B\u3046","\u3072\u307E\u308F\u308A","\u3072\u307E\u3093","\u3072\u307F\u3064","\u3072\u3081\u3044","\u3072\u3081\u3057\u3099\u3057","\u3072\u3084\u3051","\u3072\u3084\u3059","\u3072\u3088\u3046","\u3072\u3099\u3087\u3046\u304D","\u3072\u3089\u304B\u3099\u306A","\u3072\u3089\u304F","\u3072\u308A\u3064","\u3072\u308A\u3087\u3046","\u3072\u308B\u307E","\u3072\u308B\u3084\u3059\u307F","\u3072\u308C\u3044","\u3072\u308D\u3044","\u3072\u308D\u3046","\u3072\u308D\u304D","\u3072\u308D\u3086\u304D","\u3072\u3093\u304B\u304F","\u3072\u3093\u3051\u3064","\u3072\u3093\u3053\u3093","\u3072\u3093\u3057\u3085","\u3072\u3093\u305D\u3046","\u3072\u309A\u3093\u3061","\u3072\u3093\u306F\u309A\u3093","\u3072\u3099\u3093\u307B\u3099\u3046","\u3075\u3042\u3093","\u3075\u3044\u3046\u3061","\u3075\u3046\u3051\u3044","\u3075\u3046\u305B\u3093","\u3075\u309A\u3046\u305F\u308D\u3046","\u3075\u3046\u3068\u3046","\u3075\u3046\u3075","\u3075\u3048\u308B","\u3075\u304A\u3093","\u3075\u304B\u3044","\u3075\u304D\u3093","\u3075\u304F\u3055\u3099\u3064","\u3075\u304F\u3075\u3099\u304F\u308D","\u3075\u3053\u3046","\u3075\u3055\u3044","\u3075\u3057\u304D\u3099","\u3075\u3057\u3099\u307F","\u3075\u3059\u307E","\u3075\u305B\u3044","\u3075\u305B\u304F\u3099","\u3075\u305D\u304F","\u3075\u3099\u305F\u306B\u304F","\u3075\u305F\u3093","\u3075\u3061\u3087\u3046","\u3075\u3064\u3046","\u3075\u3064\u304B","\u3075\u3063\u304B\u3064","\u3075\u3063\u304D","\u3075\u3063\u3053\u304F","\u3075\u3099\u3068\u3099\u3046","\u3075\u3068\u308B","\u3075\u3068\u3093","\u3075\u306E\u3046","\u3075\u306F\u3044","\u3075\u3072\u3087\u3046","\u3075\u3078\u3093","\u3075\u307E\u3093","\u3075\u307F\u3093","\u3075\u3081\u3064","\u3075\u3081\u3093","\u3075\u3088\u3046","\u3075\u308A\u3053","\u3075\u308A\u308B","\u3075\u308B\u3044","\u3075\u3093\u3044\u304D","\u3075\u3099\u3093\u304B\u3099\u304F","\u3075\u3099\u3093\u304F\u3099","\u3075\u3093\u3057\u3064","\u3075\u3099\u3093\u305B\u304D","\u3075\u3093\u305D\u3046","\u3075\u3099\u3093\u307B\u309A\u3046","\u3078\u3044\u3042\u3093","\u3078\u3044\u304A\u3093","\u3078\u3044\u304B\u3099\u3044","\u3078\u3044\u304D","\u3078\u3044\u3051\u3099\u3093","\u3078\u3044\u3053\u3046","\u3078\u3044\u3055","\u3078\u3044\u3057\u3083","\u3078\u3044\u305B\u3064","\u3078\u3044\u305D","\u3078\u3044\u305F\u304F","\u3078\u3044\u3066\u3093","\u3078\u3044\u306D\u3064","\u3078\u3044\u308F","\u3078\u304D\u304B\u3099","\u3078\u3053\u3080","\u3078\u3099\u306B\u3044\u308D","\u3078\u3099\u306B\u3057\u3087\u3046\u304B\u3099","\u3078\u3089\u3059","\u3078\u3093\u304B\u3093","\u3078\u3099\u3093\u304D\u3087\u3046","\u3078\u3099\u3093\u3053\u3099\u3057","\u3078\u3093\u3055\u3044","\u3078\u3093\u305F\u3044","\u3078\u3099\u3093\u308A","\u307B\u3042\u3093","\u307B\u3044\u304F","\u307B\u3099\u3046\u304D\u3099\u3087","\u307B\u3046\u3053\u304F","\u307B\u3046\u305D\u3046","\u307B\u3046\u307B\u3046","\u307B\u3046\u3082\u3093","\u307B\u3046\u308A\u3064","\u307B\u3048\u308B","\u307B\u304A\u3093","\u307B\u304B\u3093","\u307B\u304D\u3087\u3046","\u307B\u3099\u304D\u3093","\u307B\u304F\u308D","\u307B\u3051\u3064","\u307B\u3051\u3093","\u307B\u3053\u3046","\u307B\u3053\u308B","\u307B\u3057\u3044","\u307B\u3057\u3064","\u307B\u3057\u3085","\u307B\u3057\u3087\u3046","\u307B\u305B\u3044","\u307B\u305D\u3044","\u307B\u305D\u304F","\u307B\u305F\u3066","\u307B\u305F\u308B","\u307B\u309A\u3061\u3075\u3099\u304F\u308D","\u307B\u3063\u304D\u3087\u304F","\u307B\u3063\u3055","\u307B\u3063\u305F\u3093","\u307B\u3068\u3093\u3068\u3099","\u307B\u3081\u308B","\u307B\u3093\u3044","\u307B\u3093\u304D","\u307B\u3093\u3051","\u307B\u3093\u3057\u3064","\u307B\u3093\u3084\u304F","\u307E\u3044\u306B\u3061","\u307E\u304B\u3044","\u307E\u304B\u305B\u308B","\u307E\u304B\u3099\u308B","\u307E\u3051\u308B","\u307E\u3053\u3068","\u307E\u3055\u3064","\u307E\u3057\u3099\u3081","\u307E\u3059\u304F","\u307E\u305B\u3099\u308B","\u307E\u3064\u308A","\u307E\u3068\u3081","\u307E\u306A\u3075\u3099","\u307E\u306C\u3051","\u307E\u306D\u304F","\u307E\u307B\u3046","\u307E\u3082\u308B","\u307E\u3086\u3051\u3099","\u307E\u3088\u3046","\u307E\u308D\u3084\u304B","\u307E\u308F\u3059","\u307E\u308F\u308A","\u307E\u308F\u308B","\u307E\u3093\u304B\u3099","\u307E\u3093\u304D\u3064","\u307E\u3093\u305D\u3099\u304F","\u307E\u3093\u306A\u304B","\u307F\u3044\u3089","\u307F\u3046\u3061","\u307F\u3048\u308B","\u307F\u304B\u3099\u304F","\u307F\u304B\u305F","\u307F\u304B\u3093","\u307F\u3051\u3093","\u307F\u3053\u3093","\u307F\u3057\u3099\u304B\u3044","\u307F\u3059\u3044","\u307F\u3059\u3048\u308B","\u307F\u305B\u308B","\u307F\u3063\u304B","\u307F\u3064\u304B\u308B","\u307F\u3064\u3051\u308B","\u307F\u3066\u3044","\u307F\u3068\u3081\u308B","\u307F\u306A\u3068","\u307F\u306A\u307F\u304B\u3055\u3044","\u307F\u306D\u3089\u308B","\u307F\u306E\u3046","\u307F\u306E\u304B\u3099\u3059","\u307F\u307B\u3093","\u307F\u3082\u3068","\u307F\u3084\u3051\u3099","\u307F\u3089\u3044","\u307F\u308A\u3087\u304F","\u307F\u308F\u304F","\u307F\u3093\u304B","\u307F\u3093\u305D\u3099\u304F","\u3080\u3044\u304B","\u3080\u3048\u304D","\u3080\u3048\u3093","\u3080\u304B\u3044","\u3080\u304B\u3046","\u3080\u304B\u3048","\u3080\u304B\u3057","\u3080\u304D\u3099\u3061\u3083","\u3080\u3051\u308B","\u3080\u3051\u3099\u3093","\u3080\u3055\u307B\u3099\u308B","\u3080\u3057\u3042\u3064\u3044","\u3080\u3057\u306F\u3099","\u3080\u3057\u3099\u3085\u3093","\u3080\u3057\u308D","\u3080\u3059\u3046","\u3080\u3059\u3053","\u3080\u3059\u3075\u3099","\u3080\u3059\u3081","\u3080\u305B\u308B","\u3080\u305B\u3093","\u3080\u3061\u3085\u3046","\u3080\u306A\u3057\u3044","\u3080\u306E\u3046","\u3080\u3084\u307F","\u3080\u3088\u3046","\u3080\u3089\u3055\u304D","\u3080\u308A\u3087\u3046","\u3080\u308D\u3093","\u3081\u3044\u3042\u3093","\u3081\u3044\u3046\u3093","\u3081\u3044\u3048\u3093","\u3081\u3044\u304B\u304F","\u3081\u3044\u304D\u3087\u304F","\u3081\u3044\u3055\u3044","\u3081\u3044\u3057","\u3081\u3044\u305D\u3046","\u3081\u3044\u3075\u3099\u3064","\u3081\u3044\u308C\u3044","\u3081\u3044\u308F\u304F","\u3081\u304F\u3099\u307E\u308C\u308B","\u3081\u3055\u3099\u3059","\u3081\u3057\u305F","\u3081\u3059\u3099\u3089\u3057\u3044","\u3081\u305F\u3099\u3064","\u3081\u307E\u3044","\u3081\u3084\u3059","\u3081\u3093\u304D\u3087","\u3081\u3093\u305B\u304D","\u3081\u3093\u3068\u3099\u3046","\u3082\u3046\u3057\u3042\u3051\u3099\u308B","\u3082\u3046\u3068\u3099\u3046\u3051\u3093","\u3082\u3048\u308B","\u3082\u304F\u3057","\u3082\u304F\u3066\u304D","\u3082\u304F\u3088\u3046\u3072\u3099","\u3082\u3061\u308D\u3093","\u3082\u3068\u3099\u308B","\u3082\u3089\u3046","\u3082\u3093\u304F","\u3082\u3093\u305F\u3099\u3044","\u3084\u304A\u3084","\u3084\u3051\u308B","\u3084\u3055\u3044","\u3084\u3055\u3057\u3044","\u3084\u3059\u3044","\u3084\u3059\u305F\u308D\u3046","\u3084\u3059\u307F","\u3084\u305B\u308B","\u3084\u305D\u3046","\u3084\u305F\u3044","\u3084\u3061\u3093","\u3084\u3063\u3068","\u3084\u3063\u306F\u309A\u308A","\u3084\u3075\u3099\u308B","\u3084\u3081\u308B","\u3084\u3084\u3053\u3057\u3044","\u3084\u3088\u3044","\u3084\u308F\u3089\u304B\u3044","\u3086\u3046\u304D","\u3086\u3046\u3072\u3099\u3093\u304D\u3087\u304F","\u3086\u3046\u3078\u3099","\u3086\u3046\u3081\u3044","\u3086\u3051\u3064","\u3086\u3057\u3085\u3064","\u3086\u305B\u3093","\u3086\u305D\u3046","\u3086\u305F\u304B","\u3086\u3061\u3083\u304F","\u3086\u3066\u3099\u308B","\u3086\u306B\u3085\u3046","\u3086\u3072\u3099\u308F","\u3086\u3089\u3044","\u3086\u308C\u308B","\u3088\u3046\u3044","\u3088\u3046\u304B","\u3088\u3046\u304D\u3085\u3046","\u3088\u3046\u3057\u3099","\u3088\u3046\u3059","\u3088\u3046\u3061\u3048\u3093","\u3088\u304B\u305B\u3099","\u3088\u304B\u3093","\u3088\u304D\u3093","\u3088\u304F\u305B\u3044","\u3088\u304F\u307B\u3099\u3046","\u3088\u3051\u3044","\u3088\u3053\u3099\u308C\u308B","\u3088\u3055\u3093","\u3088\u3057\u3085\u3046","\u3088\u305D\u3046","\u3088\u305D\u304F","\u3088\u3063\u304B","\u3088\u3066\u3044","\u3088\u3068\u3099\u304B\u3099\u308F\u304F","\u3088\u306D\u3064","\u3088\u3084\u304F","\u3088\u3086\u3046","\u3088\u308D\u3053\u3075\u3099","\u3088\u308D\u3057\u3044","\u3089\u3044\u3046","\u3089\u304F\u304B\u3099\u304D","\u3089\u304F\u3053\u3099","\u3089\u304F\u3055\u3064","\u3089\u304F\u305F\u3099","\u3089\u3057\u3093\u306F\u3099\u3093","\u3089\u305B\u3093","\u3089\u305D\u3099\u304F","\u3089\u305F\u3044","\u3089\u3063\u304B","\u3089\u308C\u3064","\u308A\u3048\u304D","\u308A\u304B\u3044","\u308A\u304D\u3055\u304F","\u308A\u304D\u305B\u3064","\u308A\u304F\u304F\u3099\u3093","\u308A\u304F\u3064","\u308A\u3051\u3093","\u308A\u3053\u3046","\u308A\u305B\u3044","\u308A\u305D\u3046","\u308A\u305D\u304F","\u308A\u3066\u3093","\u308A\u306D\u3093","\u308A\u3086\u3046","\u308A\u3085\u3046\u304B\u3099\u304F","\u308A\u3088\u3046","\u308A\u3087\u3046\u308A","\u308A\u3087\u304B\u3093","\u308A\u3087\u304F\u3061\u3083","\u308A\u3087\u3053\u3046","\u308A\u308A\u304F","\u308A\u308C\u304D","\u308A\u308D\u3093","\u308A\u3093\u3053\u3099","\u308B\u3044\u3051\u3044","\u308B\u3044\u3055\u3044","\u308B\u3044\u3057\u3099","\u308B\u3044\u305B\u304D","\u308B\u3059\u306F\u3099\u3093","\u308B\u308A\u304B\u3099\u308F\u3089","\u308C\u3044\u304B\u3093","\u308C\u3044\u304D\u3099","\u308C\u3044\u305B\u3044","\u308C\u3044\u305D\u3099\u3046\u3053","\u308C\u3044\u3068\u3046","\u308C\u3044\u307B\u3099\u3046","\u308C\u304D\u3057","\u308C\u304D\u305F\u3099\u3044","\u308C\u3093\u3042\u3044","\u308C\u3093\u3051\u3044","\u308C\u3093\u3053\u3093","\u308C\u3093\u3055\u3044","\u308C\u3093\u3057\u3085\u3046","\u308C\u3093\u305D\u3099\u304F","\u308C\u3093\u3089\u304F","\u308D\u3046\u304B","\u308D\u3046\u3053\u3099","\u308D\u3046\u3057\u3099\u3093","\u308D\u3046\u305D\u304F","\u308D\u304F\u304B\u3099","\u308D\u3053\u3064","\u308D\u3057\u3099\u3046\u3089","\u308D\u3057\u3085\u3064","\u308D\u305B\u3093","\u308D\u3066\u3093","\u308D\u3081\u3093","\u308D\u308C\u3064","\u308D\u3093\u304D\u3099","\u308D\u3093\u306F\u309A","\u308D\u3093\u3075\u3099\u3093","\u308D\u3093\u308A","\u308F\u304B\u3059","\u308F\u304B\u3081","\u308F\u304B\u3084\u307E","\u308F\u304B\u308C\u308B","\u308F\u3057\u3064","\u308F\u3057\u3099\u307E\u3057","\u308F\u3059\u308C\u3082\u306E","\u308F\u3089\u3046","\u308F\u308C\u308B"];ON.exports=V9});var TN=P((sue,AN)=>{"use strict";g();var G9=["a\u0301baco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","accio\u0301n","aceite","acelga","acento","aceptar","a\u0301cido","aclarar","acne\u0301","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","ae\u0301reo","afectar","aficio\u0301n","afinar","afirmar","a\u0301gil","agitar","agoni\u0301a","agosto","agotar","agregar","agrio","agua","agudo","a\u0301guila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacra\u0301n","alambre","alarma","alba","a\u0301lbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodo\u0301n","aliado","aliento","alivio","alma","almeja","almi\u0301bar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","a\u0301mbar","a\u0301mbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","ande\u0301n","anemia","a\u0301ngulo","anillo","a\u0301nimo","ani\u0301s","anotar","antena","antiguo","antojo","anual","anular","anuncio","an\u0303adir","an\u0303ejo","an\u0303o","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","aran\u0303a","arar","a\u0301rbitro","a\u0301rbol","arbusto","archivo","arco","arder","ardilla","arduo","a\u0301rea","a\u0301rido","aries","armoni\u0301a","arne\u0301s","aroma","arpa","arpo\u0301n","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","a\u0301spero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","a\u0301tico","atleta","a\u0301tomo","atraer","atroz","atu\u0301n","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avio\u0301n","aviso","ayer","ayuda","ayuno","azafra\u0301n","azar","azote","azu\u0301car","azufre","azul","baba","babor","bache","bahi\u0301a","baile","bajar","balanza","balco\u0301n","balde","bambu\u0301","banco","banda","ban\u0303o","barba","barco","barniz","barro","ba\u0301scula","basto\u0301n","basura","batalla","bateri\u0301a","batir","batuta","bau\u0301l","bazar","bebe\u0301","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsa\u0301i","borde","borrar","bosque","bote","boti\u0301n","bo\u0301veda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufo\u0301n","bu\u0301ho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzo\u0301n","caballo","cabeza","cabina","cabra","cacao","cada\u0301ver","cadena","caer","cafe\u0301","cai\u0301da","caima\u0301n","caja","cajo\u0301n","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","ca\u0301ncer","candil","canela","canguro","canica","canto","can\u0303a","can\u0303o\u0301n","caoba","caos","capaz","capita\u0301n","capote","captar","capucha","cara","carbo\u0301n","ca\u0301rcel","careta","carga","carin\u0303o","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","ce\u0301lebre","celoso","ce\u0301lula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","ce\u0301sped","cetro","chacal","chaleco","champu\u0301","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclo\u0301n","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","cipre\u0301s","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","cli\u0301nica","cobre","coccio\u0301n","cochino","cocina","coco","co\u0301digo","codo","cofre","coger","cohete","coji\u0301n","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","co\u0301modo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazo\u0301n","corbata","corcho","cordo\u0301n","corona","correr","coser","cosmos","costa","cra\u0301neo","cra\u0301ter","crear","crecer","crei\u0301do","crema","cri\u0301a","crimen","cripta","crisis","cromo","cro\u0301nica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupo\u0301n","cu\u0301pula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","da\u0301til","deber","de\u0301bil","de\u0301cada","decir","dedo","defensa","definir","dejar","delfi\u0301n","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvi\u0301o","detalle","detener","deuda","di\u0301a","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difi\u0301cil","digno","dilema","diluir","dinero","directo","dirigir","disco","disen\u0303o","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","drago\u0301n","droga","ducha","duda","duelo","duen\u0303o","dulce","du\u0301o","duque","durar","dureza","duro","e\u0301bano","ebrio","echar","eco","ecuador","edad","edicio\u0301n","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","e\u0301lite","elixir","elogio","eludir","embudo","emitir","emocio\u0301n","empate","empen\u0303o","empleo","empresa","enano","encargo","enchufe","enci\u0301a","enemigo","enero","enfado","enfermo","engan\u0303o","enigma","enlace","enorme","enredo","ensayo","ensen\u0303ar","entero","entrar","envase","envi\u0301o","e\u0301poca","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espi\u0301a","esposa","espuma","esqui\u0301","estar","este","estilo","estufa","etapa","eterno","e\u0301tica","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","e\u0301xito","experto","explicar","exponer","extremo","fa\u0301brica","fa\u0301bula","fachada","fa\u0301cil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","farao\u0301n","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fe\u0301rtil","fervor","festi\u0301n","fiable","fianza","fiar","fibra","ficcio\u0301n","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flu\u0301or","fobia","foca","fogata","fogo\u0301n","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","fra\u0301gil","franja","frase","fraude","frei\u0301r","freno","fresa","fri\u0301o","frito","fruta","fuego","fuente","fuerza","fuga","fumar","funcio\u0301n","funda","furgo\u0301n","furia","fusil","fu\u0301tbol","futuro","gacela","gafas","gaita","gajo","gala","galeri\u0301a","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavila\u0301n","gemelo","gemir","gen","ge\u0301nero","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gra\u0301fico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","gru\u0301a","grueso","grumo","grupo","guante","guapo","guardia","guerra","gui\u0301a","guin\u0303o","guion","guiso","guitarra","gusano","gustar","haber","ha\u0301bil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazan\u0303a","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","he\u0301roe","hervir","hielo","hierro","hi\u0301gado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","hu\u0301medo","humilde","humo","hundir","huraca\u0301n","hurto","icono","ideal","idioma","i\u0301dolo","iglesia","iglu\u0301","igual","ilegal","ilusio\u0301n","imagen","ima\u0301n","imitar","impar","imperio","imponer","impulso","incapaz","i\u0301ndice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","intere\u0301s","i\u0301ntimo","intuir","inu\u0301til","invierno","ira","iris","ironi\u0301a","isla","islote","jabali\u0301","jabo\u0301n","jamo\u0301n","jarabe","jardi\u0301n","jarra","jaula","jazmi\u0301n","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","ju\u0301piter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladro\u0301n","lagarto","la\u0301grima","laguna","laico","lamer","la\u0301mina","la\u0301mpara","lana","lancha","langosta","lanza","la\u0301piz","largo","larva","la\u0301stima","lata","la\u0301tex","latir","laurel","lavar","lazo","leal","leccio\u0301n","leche","lector","leer","legio\u0301n","legumbre","lejano","lengua","lento","len\u0303a","leo\u0301n","leopardo","lesio\u0301n","letal","letra","leve","leyenda","libertad","libro","licor","li\u0301der","lidiar","lienzo","liga","ligero","lima","li\u0301mite","limo\u0301n","limpio","lince","lindo","li\u0301nea","lingote","lino","linterna","li\u0301quido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","locio\u0301n","loco","locura","lo\u0301gica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","mai\u0301z","maldad","maleta","malla","malo","mama\u0301","mambo","mamut","manco","mando","manejar","manga","maniqui\u0301","manjar","mano","manso","manta","man\u0303ana","mapa","ma\u0301quina","mar","marco","marea","marfil","margen","marido","ma\u0301rmol","marro\u0301n","martes","marzo","masa","ma\u0301scara","masivo","matar","materia","matiz","matriz","ma\u0301ximo","mayor","mazorca","mecha","medalla","medio","me\u0301dula","mejilla","mejor","melena","melo\u0301n","memoria","menor","mensaje","mente","menu\u0301","mercado","merengue","me\u0301rito","mes","meso\u0301n","meta","meter","me\u0301todo","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millo\u0301n","mimo","mina","minero","mi\u0301nimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","mocio\u0301n","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","mon\u0303o","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","mo\u0301vil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","mun\u0303eca","mural","muro","mu\u0301sculo","museo","musgo","mu\u0301sica","muslo","na\u0301car","nacio\u0301n","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","na\u0301usea","naval","nave","navidad","necio","ne\u0301ctar","negar","negocio","negro","neo\u0301n","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","nin\u0303ez","nin\u0303o","ni\u0301tido","nivel","nobleza","noche","no\u0301mina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","nu\u0301cleo","nudillo","nudo","nuera","nueve","nuez","nulo","nu\u0301mero","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","oce\u0301ano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oi\u0301do","oi\u0301r","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opcio\u0301n","o\u0301pera","opinar","oponer","optar","o\u0301ptica","opuesto","oracio\u0301n","orador","oral","o\u0301rbita","orca","orden","oreja","o\u0301rgano","orgi\u0301a","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadi\u0301a","oscuro","osezno","oso","ostra","oton\u0303o","otro","oveja","o\u0301vulo","o\u0301xido","oxi\u0301geno","oyente","ozono","pacto","padre","paella","pa\u0301gina","pago","pai\u0301s","pa\u0301jaro","palabra","palco","paleta","pa\u0301lido","palma","paloma","palpar","pan","panal","pa\u0301nico","pantera","pan\u0303uelo","papa\u0301","papel","papilla","paquete","parar","parcela","pared","parir","paro","pa\u0301rpado","parque","pa\u0301rrafo","parte","pasar","paseo","pasio\u0301n","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peato\u0301n","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldan\u0303o","pelea","peligro","pellejo","pelo","peluca","pena","pensar","pen\u0303o\u0301n","peo\u0301n","peor","pepino","pequen\u0303o","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pe\u0301simo","pestan\u0303a","pe\u0301talo","petro\u0301leo","pez","pezun\u0303a","picar","picho\u0301n","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","pin\u0303a","piojo","pipa","pirata","pisar","piscina","piso","pista","pito\u0301n","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesi\u0301a","poeta","polen","polici\u0301a","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porcio\u0301n","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","pri\u0301ncipe","prisio\u0301n","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","pro\u0301ximo","prueba","pu\u0301blico","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmo\u0301n","pulpo","pulso","puma","punto","pun\u0303al","pun\u0303o","pupa","pupila","pure\u0301","quedar","queja","quemar","querer","queso","quieto","qui\u0301mica","quince","quitar","ra\u0301bano","rabia","rabo","racio\u0301n","radical","rai\u0301z","rama","rampa","rancho","rango","rapaz","ra\u0301pido","rapto","rasgo","raspa","rato","rayo","raza","razo\u0301n","reaccio\u0301n","realidad","reban\u0303o","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refra\u0301n","refugio","regalo","regir","regla","regreso","rehe\u0301n","reino","rei\u0301r","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","reve\u0301s","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","ri\u0301gido","rigor","rinco\u0301n","rin\u0303o\u0301n","ri\u0301o","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubi\u0301","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sa\u0301bado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmo\u0301n","salo\u0301n","salsa","salto","salud","salvar","samba","sancio\u0301n","sandi\u0301a","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sarte\u0301n","sastre","sata\u0301n","sauna","saxofo\u0301n","seccio\u0301n","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","sen\u0303al","sen\u0303or","separar","sepia","sequi\u0301a","ser","serie","sermo\u0301n","servir","sesenta","sesio\u0301n","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","si\u0301laba","silbar","silencio","silla","si\u0301mbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","so\u0301lido","soltar","solucio\u0301n","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","soste\u0301n","so\u0301tano","suave","subir","suceso","sudor","suegra","suelo","suen\u0303o","suerte","sufrir","sujeto","sulta\u0301n","sumar","superar","suplir","suponer","supremo","sur","surco","suren\u0303o","surgir","susto","sutil","tabaco","tabique","tabla","tabu\u0301","taco","tacto","tajo","talar","talco","talento","talla","talo\u0301n","taman\u0303o","tambor","tango","tanque","tapa","tapete","tapia","tapo\u0301n","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazo\u0301n","teatro","techo","tecla","te\u0301cnica","tejado","tejer","tejido","tela","tele\u0301fono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teori\u0301a","terapia","terco","te\u0301rmino","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburo\u0301n","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","ti\u0301mido","timo","tinta","ti\u0301o","ti\u0301pico","tipo","tira","tiro\u0301n","tita\u0301n","ti\u0301tere","ti\u0301tulo","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","to\u0301rax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","to\u0301xico","trabajo","tractor","traer","tra\u0301fico","trago","traje","tramo","trance","trato","trauma","trazar","tre\u0301bol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tuberi\u0301a","tubo","tuerto","tumba","tumor","tu\u0301nel","tu\u0301nica","turbina","turismo","turno","tutor","ubicar","u\u0301lcera","umbral","unidad","unir","universo","uno","untar","un\u0303a","urbano","urbe","urgente","urna","usar","usuario","u\u0301til","utopi\u0301a","uva","vaca","vaci\u0301o","vacuna","vagar","vago","vaina","vajilla","vale","va\u0301lido","valle","valor","va\u0301lvula","vampiro","vara","variar","varo\u0301n","vaso","vecino","vector","vehi\u0301culo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vi\u0301a","viaje","vibrar","vicio","vi\u0301ctima","vida","vi\u0301deo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","vin\u0303edo","violi\u0301n","viral","virgo","virtud","visor","vi\u0301spera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volca\u0301n","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"];AN.exports=G9});var RN=P((cue,PN)=>{g();PN.exports={CHINESE:yN(),ENGLISH:_N(),FRENCH:SN(),ITALIAN:xN(),JAPANESE:IN(),SPANISH:TN()}});var S_=P((lue,kN)=>{"use strict";g();kN.exports="9.10.1"});var NN=P((E_,BN)=>{g();(function(e,t){"use strict";typeof define=="function"&&define.amd?define([],function(){return e.secrets=t()}):typeof E_=="object"?BN.exports=t(Kt()):e.secrets=t(e.crypto)})(E_,function(e){"use strict";var t,r,i,n,o;function a(){t={bits:8,radix:16,minBits:3,maxBits:20,bytesPerChar:2,maxBytesPerChar:6,primitivePolynomials:[null,null,1,3,3,5,3,3,29,17,9,5,83,27,43,3,45,9,39,39,9,5,3,33,27,9,71,39,9,5,83]},r={},i=new Array(1024).join("0"),n=!0,o=["nodeCryptoRandomBytes","browserCryptoGetRandomValues","testRandom"]}function s(){return!!(r&&r.rng&&typeof r.rng=="function")}function u(I,k){var D;if(k===0||k===1)return I;if(k&&k>1024)throw new Error("Padding must be multiples of no larger than 1024 bits.");return k=k||r.bits,I&&(D=I.length%k),D?(i+I).slice(-(k-D+I.length)):I}function c(I){var k="",D,j;for(j=I.length-1;j>=0;j--){if(D=parseInt(I[j],16),isNaN(D))throw new Error("Invalid hex character.");k=u(D.toString(2),4)+k}return k}function l(I){var k="",D,j;for(I=u(I,4),j=I.length;j>=4;j-=4){if(D=parseInt(I.slice(j-4,j),2),isNaN(D))throw new Error("Invalid binary character.");k=D.toString(16)+k}return k}function d(){return!!(e&&typeof e=="object"&&(typeof e.getRandomValues=="function"||typeof e.getRandomValues=="object")&&(typeof Uint32Array=="function"||typeof Uint32Array=="object"))}function p(){return typeof e=="object"&&typeof e.randomBytes=="function"}function y(I){function k(G,S,h,v){var w=0,E,A="",L;for(S&&(E=S.length-1);w<E||A.length<G;)L=Math.abs(parseInt(S[w],h)),A=A+u(L.toString(2),v),w++;return A=A.substr(-G),(A.match(/0/g)||[]).length===A.length?null:A}function D(G){var S,h,v,w,E=null;for(v=16,w=4,h=Math.ceil(G/8);E===null;)S=e.randomBytes(h),E=k(G,S.toString("hex"),v,w);return E}function j(G){var S,h,v,w=null;for(h=10,v=32,S=Math.ceil(G/32);w===null;)w=k(G,e.getRandomValues(new Uint32Array(S)),h,v);return w}function K(G){var S,h,v,w,E,A=null;w=10,E=32,h=Math.ceil(G/32),v=123456789,S=new Uint32Array(h);for(var L=0;L<S.length;L++)S[L]=v;for(;A===null;)A=k(G,S,w,E);return A}if(I&&I==="testRandom")return r.typeCSPRNG=I,K;if(I&&I==="nodeCryptoRandomBytes")return r.typeCSPRNG=I,D;if(I&&I==="browserCryptoGetRandomValues")return r.typeCSPRNG=I,j;if(p())return r.typeCSPRNG="nodeCryptoRandomBytes",D;if(d())return r.typeCSPRNG="browserCryptoGetRandomValues",j}function _(I,k){var D=[],j;for(k&&(I=u(I,k)),j=I.length;j>r.bits;j-=r.bits)D.push(parseInt(I.slice(j-r.bits,j),2));return D.push(parseInt(I.slice(0,j),2)),D}function T(I,k){var D=r.logs[I],j=0,K;for(K=k.length-1;K>=0;K--)j!==0?j=r.exps[(D+r.logs[j])%r.maxShares]^k[K]:j=k[K];return j}function R(I,k,D){var j=0,K,G,S,h;for(S=0,K=k.length;S<K;S++)if(D[S]){for(G=r.logs[D[S]],h=0;h<K;h++)if(S!==h){if(I===k[h]){G=-1;break}G=(G+r.logs[I^k[h]]-r.logs[k[S]^k[h]]+r.maxShares)%r.maxShares}j=G===-1?j:j^r.exps[G]}return j}function B(I,k,D){var j=[],K=[I],G,S;for(G=1;G<D;G++)K[G]=parseInt(r.rng(r.bits),2);for(G=1,S=k+1;G<S;G++)j[G-1]={x:G,y:T(G,K)};return j}function H(I,k,D){var j,K,G,S,h;if(k=parseInt(k,r.radix),I=parseInt(I,10)||r.bits,j=I.toString(36).toUpperCase(),G=Math.pow(2,I)-1,S=G.toString(r.radix).length,K=u(k.toString(r.radix),S),typeof k!="number"||k%1!==0||k<1||k>G)throw new Error("Share id must be an integer between 1 and "+G+", inclusive.");return h=j+K+D,h}var F={init:function(I,k){var D=[],j=[],K=1,G,S;if(a(),I&&(typeof I!="number"||I%1!==0||I<t.minBits||I>t.maxBits))throw new Error("Number of bits must be an integer between "+t.minBits+" and "+t.maxBits+", inclusive.");if(k&&o.indexOf(k)===-1)throw new Error("Invalid RNG type argument : '"+k+"'");for(r.radix=t.radix,r.bits=I||t.bits,r.size=Math.pow(2,r.bits),r.maxShares=r.size-1,G=t.primitivePolynomials[r.bits],S=0;S<r.size;S++)j[S]=K,D[K]=S,K=K<<1,K>=r.size&&(K=K^G,K=K&r.maxShares);if(r.logs=D,r.exps=j,k&&this.setRNG(k),s()||this.setRNG(),!s()||!r.bits||!r.size||!r.maxShares||!r.logs||!r.exps||r.logs.length!==r.size||r.exps.length!==r.size)throw new Error("Initialization failed.")},combine:function(I,k){var D,j,K,G,S="",h,v,w,E=[],A=[];for(k=k||0,D=0,K=I.length;D<K;D++){if(v=this.extractShareComponents(I[D]),h===void 0)h=v.bits;else if(v.bits!==h)throw new Error("Mismatched shares: Different bit settings.");if(r.bits!==h&&this.init(h),E.indexOf(v.id)===-1)for(E.push(v.id),w=_(c(v.data)),j=0,G=w.length;j<G;j++)A[j]=A[j]||[],A[j][E.length-1]=w[j]}for(D=0,K=A.length;D<K;D++)S=u(R(k,E,A[D]).toString(2))+S;return l(k>=1?S:S.slice(S.indexOf("1")+1))},getConfig:function(){var I={};return I.radix=r.radix,I.bits=r.bits,I.maxShares=r.maxShares,I.hasCSPRNG=s(),I.typeCSPRNG=r.typeCSPRNG,I},extractShareComponents:function(I){var k,D,j,K,G={},S,h;if(k=parseInt(I.substr(0,1),36),k&&(typeof k!="number"||k%1!==0||k<t.minBits||k>t.maxBits))throw new Error("Invalid share : Number of bits must be an integer between "+t.minBits+" and "+t.maxBits+", inclusive.");if(K=Math.pow(2,k)-1,j=(Math.pow(2,k)-1).toString(r.radix).length,S="^([a-kA-K3-9]{1})([a-fA-F0-9]{"+j+"})([a-fA-F0-9]+)$",h=new RegExp(S).exec(I),h&&(D=parseInt(h[2],r.radix)),typeof D!="number"||D%1!==0||D<1||D>K)throw new Error("Invalid share : Share id must be an integer between 1 and "+r.maxShares+", inclusive.");if(h&&h[3])return G.bits=k,G.id=D,G.data=h[3],G;throw new Error("The share data provided is invalid : "+I)},setRNG:function(I){var k="Random number generator is invalid ",D=" Supply an CSPRNG of the form function(bits){} that returns a string containing 'bits' number of random 1's and 0's.";if(I&&typeof I=="string"&&o.indexOf(I)===-1)throw new Error("Invalid RNG type argument : '"+I+"'");if(I||(I=y()),I&&typeof I=="string"&&(I=y(I)),n){if(I&&typeof I!="function")throw new Error(k+"(Not a function)."+D);if(I&&typeof I(r.bits)!="string")throw new Error(k+"(Output is not a string)."+D);if(I&&!parseInt(I(r.bits),2))throw new Error(k+"(Binary string output not parseable to an Integer)."+D);if(I&&I(r.bits).length>r.bits)throw new Error(k+"(Output length is greater than config.bits)."+D);if(I&&I(r.bits).length<r.bits)throw new Error(k+"(Output length is less than config.bits)."+D)}return r.rng=I,!0},str2hex:function(I,k){var D,j,K="",G,S,h,v;if(typeof I!="string")throw new Error("Input must be a character string.");if(k||(k=t.bytesPerChar),typeof k!="number"||k<1||k>t.maxBytesPerChar||k%1!==0)throw new Error("Bytes per character must be an integer between 1 and "+t.maxBytesPerChar+", inclusive.");for(D=2*k,j=Math.pow(16,D)-1,h=0,v=I.length;h<v;h++){if(S=I[h].charCodeAt(),isNaN(S))throw new Error("Invalid character: "+I[h]);if(S>j)throw G=Math.ceil(Math.log(S+1)/Math.log(256)),new Error("Invalid character code ("+S+"). Maximum allowable is 256^bytes-1 ("+j+"). To convert this character, use at least "+G+" bytes.");K=u(S.toString(16),D)+K}return K},hex2str:function(I,k){var D,j="",K,G;if(typeof I!="string")throw new Error("Input must be a hexadecimal string.");if(k=k||t.bytesPerChar,typeof k!="number"||k%1!==0||k<1||k>t.maxBytesPerChar)throw new Error("Bytes per character must be an integer between 1 and "+t.maxBytesPerChar+", inclusive.");for(D=2*k,I=u(I,D),K=0,G=I.length;K<G;K+=D)j=String.fromCharCode(parseInt(I.slice(K,K+D),16))+j;return j},random:function(I){if(typeof I!="number"||I%1!==0||I<2||I>65536)throw new Error("Number of bits must be an Integer between 1 and 65536.");return l(r.rng(I))},share:function(I,k,D,j){var K,G,S=new Array(k),h=new Array(k),v,w,E;if(j=j||128,typeof I!="string")throw new Error("Secret must be a string.");if(typeof k!="number"||k%1!==0||k<2)throw new Error("Number of shares must be an integer between 2 and 2^bits-1 ("+r.maxShares+"), inclusive.");if(k>r.maxShares)throw K=Math.ceil(Math.log(k+1)/Math.LN2),new Error("Number of shares must be an integer between 2 and 2^bits-1 ("+r.maxShares+"), inclusive. To create "+k+" shares, use at least "+K+" bits.");if(typeof D!="number"||D%1!==0||D<2)throw new Error("Threshold number of shares must be an integer between 2 and 2^bits-1 ("+r.maxShares+"), inclusive.");if(D>r.maxShares)throw K=Math.ceil(Math.log(D+1)/Math.LN2),new Error("Threshold number of shares must be an integer between 2 and 2^bits-1 ("+r.maxShares+"), inclusive. To use a threshold of "+D+", use at least "+K+" bits.");if(D>k)throw new Error("Threshold number of shares was "+D+" but must be less than or equal to the "+k+" shares specified as the total to generate.");if(typeof j!="number"||j%1!==0||j<0||j>1024)throw new Error("Zero-pad length must be an integer between 0 and 1024 inclusive.");for(I="1"+c(I),I=_(I,j),v=0,E=I.length;v<E;v++)for(G=B(I[v],k,D),w=0;w<k;w++)S[w]=S[w]||G[w].x.toString(r.radix),h[w]=u(G[w].y.toString(2))+(h[w]||"");for(v=0;v<k;v++)S[v]=H(r.bits,S[v],l(h[v]));return S},newShare:function(I,k){var D,j;if(I&&typeof I=="string"&&(I=parseInt(I,r.radix)),j=I.toString(r.radix),I&&j&&k&&k[0])return D=this.extractShareComponents(k[0]),H(D.bits,j,this.combine(k,I));throw new Error("Invalid 'id' or 'shares' Array argument to newShare().")},_reset:a,_padLeft:u,_hex2bin:c,_bin2hex:l,_hasCryptoGetRandomValues:d,_hasCryptoRandomBytes:p,_getRNG:y,_isSetRNG:s,_splitNumStringToIntArray:_,_horner:T,_lagrange:R,_getShares:B,_constructPublicShareString:H};return F.init(),F})});var O_=P((pue,DN)=>{"use strict";g();var hi=Ze(),CN=Ui(),LN=Be(),im=null;function x_(){if(im)return im;var e=NN();return e.setRNG(function(t){for(var r=64,i=0;i<r;i++){for(var n=CN.getRandomBuffer(Math.ceil(t/8)),o="",a=0;a<n.length;a++)o+=("00000000"+n[a].toString(2)).slice(-8);if(o=o.slice(0,t),/1/.test(o))return o}throw new Error("shamir: CSPRNG returned all-zero draws "+r+" times in a row \u2014 refusing to hang on a degenerate/stubbed random source")}),im=e,im}var nm="ff",MN=2;function Tr(e){return this instanceof Tr?(this.options=e||{},this):new Tr(e)}Tr.split=function(e,t,r,i){if(i=i||{},e==null)throw new Error("Secret is required");if(t<2)throw new Error("Threshold must be at least 2");if(r<t)throw new Error("Number of shares must be at least threshold");if(t>255||r>255)throw new Error("Threshold and shares must be <= 255");for(var n=f.Buffer.isBuffer(e)?e:f.Buffer.from(e,"utf8"),o=nm+n.toString("hex"),a=x_().share(o,r,t),s=CN.getRandomBuffer(8).toString("hex"),u=i.checksum===!0,c=u?LN.sha256(n).slice(0,4).toString("hex"):null,l=[],d=0;d<a.length;d++)l.push({v:MN,id:d+1,threshold:t,shares:r,length:n.length,splitId:s,share:a[d],checksum:c});return l};Tr.combine=function(e){if(!e||e.length===0)throw new Error("Shares array is required");if(e[0]&&Array.isArray(e[0].bytes)&&e[0].share===void 0)return Tr._combineLegacy(e);var t=e[0].threshold,r=e[0].splitId;if(e.length<t)throw new Error("Insufficient shares: need "+t+", got "+e.length);for(var i=[],n=0;n<e.length;n++){var o=e[n];if(!o||typeof o.share!="string")throw new Error("Invalid share at index "+n);if(r!==void 0&&o.splitId!==r)throw new Error("Shares are from different splits (splitId mismatch)");if(o.threshold!==t)throw new Error("Shares have inconsistent threshold");i.push(o.share)}var a=x_().combine(i);if(a.slice(0,nm.length)!==nm)throw new Error("Reconstruction failed: invalid or insufficient shares");var s=f.Buffer.from(a.slice(nm.length),"hex"),u=e[0].checksum;if(u){var c=LN.sha256(s).slice(0,4).toString("hex");if(c!==u)throw new Error("Integrity check failed: shares are inconsistent or tampered")}return s};Tr.verifyShare=function(e){try{return!e||typeof e!="object"?!1:Array.isArray(e.bytes)&&e.share===void 0?Tr._verifyLegacyShare(e):e.v!==MN||typeof e.share!="string"||!/^[0-9a-fA-F]+$/.test(e.share)||typeof e.threshold!="number"||typeof e.shares!="number"||e.threshold<2||e.shares<e.threshold||e.shares>255||e.id<1||e.id>e.shares||e.checksum!==null&&e.checksum!==void 0&&!/^[0-9a-fA-F]{8}$/.test(e.checksum)?!1:(x_().extractShareComponents(e.share),!0)}catch{return!1}};Tr.generateTestVectors=function(){var e="Hello, Bitcoin SV!",t=3,r=5,i=Tr.split(e,t,r),n=Tr.combine(i.slice(0,t));return{secret:e,threshold:t,totalShares:r,shares:i,reconstructed:n.toString("utf8"),valid:n.toString("utf8")===e}};var es=new hi(2147483647);Tr._combineLegacy=function(e){var t=e[0].threshold,r=e[0].shares,i=e[0].length;if(e.length<t)throw new Error("Insufficient shares: need "+t+", got "+e.length);for(var n=0;n<e.length;n++){if(e[n].threshold!==t||e[n].shares!==r)throw new Error("Shares have inconsistent parameters");if(e[n].length!==i)throw new Error("Shares have different secret lengths")}for(var o=[],a=0;a<i;a++){for(var s=[],u=0;u<Math.min(e.length,t);u++)s.push(e[u].bytes[a]);o.push(Tr._combineByteLegacy(s))}return f.Buffer.from(o)};Tr._combineByteLegacy=function(e){for(var t=new hi(0),r=0;r<e.length;r++){for(var i=new hi(e[r].x),n=new hi(e[r].y,16),o=new hi(1),a=new hi(1),s=0;s<e.length;s++)if(r!==s){var u=new hi(e[s].x),c=new hi(0).sub(u);c.lt(new hi(0))&&(c=c.add(es)),o=o.mul(c).mod(es);var l=i.sub(u);l.lt(new hi(0))&&(l=l.add(es)),a=a.mul(l).mod(es)}var d=Tr._modInverseLegacy(a,es),p=o.mul(d).mod(es);t=t.add(n.mul(p)).mod(es)}return t.mod(es).mod(new hi(256)).toNumber()};Tr._modInverseLegacy=function(e,t){e.lt(new hi(0))&&(e=e.mod(t).add(t));var r=Tr._extendedGCDLegacy(e,t);if(!r.gcd.eq(new hi(1)))throw new Error("Modular inverse does not exist");return r.x.mod(t).add(t).mod(t)};Tr._extendedGCDLegacy=function(e,t){if(e.eq(new hi(0)))return{gcd:t,x:new hi(0),y:new hi(1)};var r=Tr._extendedGCDLegacy(t.mod(e),e);return{gcd:r.gcd,x:r.y.sub(t.div(e).mul(r.x)),y:r.x}};Tr._verifyLegacyShare=function(e){if(!e.id||!e.threshold||!e.shares||!e.bytes||typeof e.length!="number"||e.threshold<2||e.shares<e.threshold||!Array.isArray(e.bytes)||e.bytes.length!==e.length)return!1;for(var t=0;t<e.bytes.length;t++){var r=e.bytes[t];if(!r||!r.x||!r.y||r.x<1||r.x>e.shares||!/^[0-9a-fA-F]+$/.test(r.y))return!1}return!0};DN.exports=Tr});var am=P((mue,qN)=>{"use strict";g();var ho=Ze(),W9=nn(),Y9=fn(),ch=W9.getN(),om=ch.shrn(1);function Z9(e,t,r){if(!f.Buffer.isBuffer(e)||e.length!==32)throw new Error("Invalid message hash: must be 32-byte buffer");if(!t)return!1;let i=t;if(f.Buffer.isBuffer(t))try{i=ut().fromDER(t)}catch{return!1}if(!i||!i.r||!i.s)return!1;let n=ho.isBN(i.r)?i.r:new ho(i.r),o=ho.isBN(i.s)?i.s:new ho(i.s);if(n.isZero()||o.isZero()||n.gte(ch)||o.gte(ch)||o.gt(om))return!1;let a=ut(),s=new a({r:n,s:o});return Y9.verify(e,s,r)}function $9(e){if(!e)return!1;let t=e;if(f.Buffer.isBuffer(e))try{t=ut().fromDER(e)}catch{return!1}return!t||!t.s?!1:(ho.isBN(t.s)?t.s:new ho(t.s)).lte(om)}function X9(e){if(!e||!e.r||!e.s)throw new Error("Invalid signature object");let t=ho.isBN(e.r)?e.r:new ho(e.r),r=ho.isBN(e.s)?e.s:new ho(e.s),i=r;return r.gt(om)&&(i=ch.sub(r)),{r:t,s:i}}qN.exports={smartVerify:Z9,isCanonical:$9,canonicalize:X9,constants:{n:ch,nh:om}}});var sm=P((yue,FN)=>{"use strict";g();var J9=Ze(),{secp256k1:Lc}=(Il(),$i(Ol)),HN=Lc.Point,Q9=HN.Fn.ORDER;function I_(e){var t=e.toString(16);return t.length%2&&(t="0"+t),new J9(t,16)}function A_(e){return f.Buffer.isBuffer(e)?Uint8Array.from(e):e instanceof Uint8Array?e:Uint8Array.from(f.Buffer.from(e,"hex"))}function T_(e){this._p=e}T_.prototype.eq=function(e){var t=e&&e._p?e._p:e;return this._p.equals(t)};var UN={curve:{n:I_(Q9)},keyFromPrivate:function(e,t){var r;f.Buffer.isBuffer(e)?r=e:e instanceof Uint8Array?r=f.Buffer.from(e):r=f.Buffer.from(e,t||"hex");var i=Uint8Array.from(r);return{_priv:i,getPublic:function(){return new T_(HN.fromBytes(Lc.getPublicKey(i,!0)))}}},sign:function(e,t){var r=Lc.sign(A_(e),t._priv,{lowS:!0,prehash:!1,format:"recovered"}),i=r[0],n=I_(BigInt("0x"+f.Buffer.from(r.subarray(1,33)).toString("hex"))),o=I_(BigInt("0x"+f.Buffer.from(r.subarray(33,65)).toString("hex")));return{r:n,s:o,recoveryParam:i}},verify:function(e,t,r){try{if(!t||typeof t!="object")return!1;var i=t.r,n=t.s;if(!i||!n||typeof i.cmp!="function"||typeof n.cmp!="function"||i.isZero()||n.isZero())return!1;var o=UN.curve.n;if(i.cmp(o)>=0||n.cmp(o)>=0)return!1;var a=f.Buffer.concat([i.toBuffer({size:32}),n.toBuffer({size:32})]),s=r._priv?Lc.getPublicKey(r._priv,!0):r._p?r._p.toBytes(!0):r;return Lc.verify(Uint8Array.from(a),A_(e),Uint8Array.from(s),{lowS:!1,prehash:!1})}catch{return!1}},recoverPubKey:function(e,t,r){var i=f.Buffer.concat([t.r.toBuffer({size:32}),t.s.toBuffer({size:32})]),n=Lc.Signature.fromBytes(Uint8Array.from(i),"compact").addRecoveryBit(r);return new T_(n.recoverPublicKey(A_(e)))}};FN.exports=UN});var Mc=P((_ue,zN)=>{"use strict";g();var P_=Object.create(null),R_=[],k_=!(typeof b.default<"u"&&b.default.env&&b.default.env.BSV_NO_DEPRECATION_WARNINGS==="1");function jN(e,t){if(!e||typeof e.what!="string"||e.what==="")throw new TypeError(t+"() requires { what: string }")}function eW(e){var t="[@smartledger/bsv] "+e.what+" is deprecated";return e.since&&(t+=" since "+e.since),t+=".",e.why&&(t+=" "+e.why.charAt(0).toUpperCase()+e.why.slice(1)+"."),e.use&&(t+=" Use "+e.use+" instead."),t+=e.removeIn?" It will be removed in "+e.removeIn+".":" A removal version has not been set; it will not be removed in a 9.x release.",t}function ua(e){if(!e||!e.what)throw new TypeError("deprecate() requires { what }");if(P_[e.what])return!1;P_[e.what]=!0;var t=eW(e);return R_.push({what:e.what,since:e.since||null,removeIn:e.removeIn||null,use:e.use||null,message:t}),k_&&console.warn(t),!0}ua.fn=function(e,t){if(typeof e!="function")throw new TypeError("deprecate.fn() requires a function");jN(t,"deprecate.fn");var r=function(){return ua(t),e.apply(this,arguments)};return Object.defineProperty(r,"name",{value:e.name,configurable:!0}),Object.defineProperty(r,"length",{value:e.length,configurable:!0}),r.__wrapped=e,r.__deprecation=t,r};ua.property=function(e,t,r,i){jN(i,"deprecate.property");var n,o=!1;return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return ua(i),o||(n=r(),o=!0),n}}),e};ua.fired=function(){return R_.slice()};ua.setEnabled=function(e){k_=!!e};ua.isEnabled=function(){return k_};ua.reset=function(){P_=Object.create(null),R_.length=0};zN.exports=ua});var iu=P((Sue,GN)=>{"use strict";g();var um=Qe(),fh=Ze(),cm=oo(),tW=sn(),rW=Be(),KN=Oe(),iW=486604799,Xe=function e(t){if(!(this instanceof e))return new e(t);var r=e._from(t);return this.version=r.version,this.prevHash=r.prevHash,this.merkleRoot=r.merkleRoot,this.time=r.time,this.timestamp=r.time,this.bits=r.bits,this.nonce=r.nonce,r.hash&&KN.checkState(this.hash===r.hash,"Argument object hash property does not match block hash."),this};Xe._from=function(t){var r={};if(f.Buffer.isBuffer(t))r=Xe._fromBufferReader(cm(t));else if(um.isObject(t))r=Xe._fromObject(t);else throw new TypeError("Unrecognized argument for BlockHeader");return r};Xe._fromObject=function(t){KN.checkArgument(t,"data is required");var r=t.prevHash,i=t.merkleRoot;um.isString(t.prevHash)&&(r=f.Buffer.from(t.prevHash,"hex").reverse()),um.isString(t.merkleRoot)&&(i=f.Buffer.from(t.merkleRoot,"hex").reverse());var n={hash:t.hash,version:t.version,prevHash:r,merkleRoot:i,time:t.time,timestamp:t.time,bits:t.bits,nonce:t.nonce};return n};Xe.fromObject=function(t){var r=Xe._fromObject(t);return new Xe(r)};Xe.fromRawBlock=function(t){f.Buffer.isBuffer(t)||(t=f.Buffer.from(t,"binary"));var r=cm(t);r.pos=Xe.Constants.START_OF_HEADER;var i=Xe._fromBufferReader(r);return new Xe(i)};Xe.fromBuffer=function(t){var r=Xe._fromBufferReader(cm(t));return new Xe(r)};Xe.fromString=function(t){var r=f.Buffer.from(t,"hex");return Xe.fromBuffer(r)};Xe._fromBufferReader=function(t){var r={};return r.version=t.readInt32LE(),r.prevHash=t.read(32),r.merkleRoot=t.read(32),r.time=t.readUInt32LE(),r.bits=t.readUInt32LE(),r.nonce=t.readUInt32LE(),r};Xe.fromBufferReader=function(t){var r=Xe._fromBufferReader(t);return new Xe(r)};Xe.prototype.toObject=Xe.prototype.toJSON=function(){return{hash:this.hash,version:this.version,prevHash:f.Buffer.from(this.prevHash).reverse().toString("hex"),merkleRoot:f.Buffer.from(this.merkleRoot).reverse().toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}};Xe.prototype.toBuffer=function(){return this.toBufferWriter().concat()};Xe.prototype.toString=function(){return this.toBuffer().toString("hex")};Xe.prototype.toBufferWriter=function(t){return t||(t=new tW),t.writeInt32LE(this.version),t.write(this.prevHash),t.write(this.merkleRoot),t.writeUInt32LE(this.time),t.writeUInt32LE(this.bits),t.writeUInt32LE(this.nonce),t};Xe.prototype.getTargetDifficulty=function(t){t=t||this.bits;for(var r=new fh(t&16777215),i=8*((t>>>24)-3);i-- >0;)r=r.mul(new fh(2));return r};Xe.prototype.getDifficulty=function(){var t=this.getTargetDifficulty(iW).mul(new fh(Math.pow(10,8))),r=this.getTargetDifficulty(),i=t.div(r).toString(10),n=i.length-8;return i=i.slice(0,n)+"."+i.slice(n),parseFloat(i)};Xe.prototype._getHash=function(){var t=this.toBuffer();return rW.sha256sha256(t)};var VN={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=cm(this._getHash()).readReverse().toString("hex")),this._id},set:um.noop};Object.defineProperty(Xe.prototype,"id",VN);Object.defineProperty(Xe.prototype,"hash",VN);Xe.prototype.validTimestamp=function(){var t=Math.round(new Date().getTime()/1e3);return!(this.time>t+Xe.Constants.MAX_TIME_OFFSET)};Xe.prototype.validProofOfWork=function(){var t=new fh(this.id,"hex"),r=this.getTargetDifficulty();return!(t.cmp(r)>0)};Xe.prototype.inspect=function(){return"<BlockHeader "+this.id+">"};Xe.Constants={START_OF_HEADER:8,MAX_TIME_OFFSET:7200,LARGEST_HASH:new fh("10000000000000000000000000000000000000000000000000000000000000000","hex")};GN.exports=Xe});var JN=P((xue,XN)=>{"use strict";g();var N_=Qe(),YN=iu(),WN=Ze(),C_=oo(),nW=sn(),oW=Be(),B_=Tt(),ZN=Oe();function De(e){return this instanceof De?(N_.extend(this,De._from(e)),this):new De(e)}De.MAX_BLOCK_SIZE=128e6;De._from=function(t){var r={};if(f.Buffer.isBuffer(t))r=De._fromBufferReader(C_(t));else if(N_.isObject(t))r=De._fromObject(t);else throw new TypeError("Unrecognized argument for Block");return r};De._fromObject=function(t){var r=[];t.transactions.forEach(function(n){n instanceof B_?r.push(n):r.push(B_().fromObject(n))});var i={header:YN.fromObject(t.header),transactions:r};return i};De.fromObject=function(t){var r=De._fromObject(t);return new De(r)};De._fromBufferReader=function(t){var r={};ZN.checkState(!t.finished(),"No block data received"),r.header=YN.fromBufferReader(t);var i=t.readVarintNum();r.transactions=[];for(var n=0;n<i;n++)r.transactions.push(B_().fromBufferReader(t));return r};De.fromBufferReader=function(t){ZN.checkArgument(t,"br is required");var r=De._fromBufferReader(t);return new De(r)};De.fromBuffer=function(t){return De.fromBufferReader(new C_(t))};De.fromString=function(t){var r=f.Buffer.from(t,"hex");return De.fromBuffer(r)};De.fromRawBlock=function(t){f.Buffer.isBuffer(t)||(t=f.Buffer.from(t,"binary"));var r=C_(t);r.pos=De.Values.START_OF_BLOCK;var i=De._fromBufferReader(r);return new De(i)};De.prototype.toObject=De.prototype.toJSON=function(){var t=[];return this.transactions.forEach(function(r){t.push(r.toObject())}),{header:this.header.toObject(),transactions:t}};De.prototype.toBuffer=function(){return this.toBufferWriter().concat()};De.prototype.toString=function(){return this.toBuffer().toString("hex")};De.prototype.toBufferWriter=function(t){t||(t=new nW),t.write(this.header.toBuffer()),t.writeVarintNum(this.transactions.length);for(var r=0;r<this.transactions.length;r++)this.transactions[r].toBufferWriter(t);return t};De.prototype.getTransactionHashes=function(){var t=[];if(this.transactions.length===0)return[De.Values.NULL_HASH];for(var r=0;r<this.transactions.length;r++)t.push(this.transactions[r]._getHash());return t};De.prototype.getMerkleTree=function(){for(var t=this.getTransactionHashes(),r=0,i=this.transactions.length;i>1;i=Math.floor((i+1)/2)){for(var n=0;n<i;n+=2){var o=Math.min(n+1,i-1),a=f.Buffer.concat([t[r+n],t[r+o]]);t.push(oW.sha256sha256(a))}r+=i}return t};De.prototype.getMerkleRoot=function(){var t=this.getMerkleTree();return t[t.length-1]};De.prototype.validMerkleRoot=function(){var t=new WN(this.header.merkleRoot.toString("hex"),"hex"),r=new WN(this.getMerkleRoot().toString("hex"),"hex");return t.cmp(r)===0};De.prototype._getHash=function(){return this.header._getHash()};var $N={configurable:!1,enumerable:!0,get:function(){return this._id||(this._id=this.header.id),this._id},set:N_.noop};Object.defineProperty(De.prototype,"id",$N);Object.defineProperty(De.prototype,"hash",$N);De.prototype.inspect=function(){return"<Block "+this.id+">"};De.Values={START_OF_BLOCK:8,NULL_HASH:f.Buffer.from("0000000000000000000000000000000000000000000000000000000000000000","hex")};XN.exports=De});var D_=P((Iue,tC)=>{"use strict";g();var nu=Qe(),M_=iu(),eC=oo(),aW=sn(),sW=Be(),QN=Tt(),L_=ci(),ou=Oe(),uW=Mc();function fm(e){return Array.isArray(e)?e.slice():e}function Dt(e){if(!(this instanceof Dt))return new Dt(e);var t={};if(f.Buffer.isBuffer(e))t=Dt._fromBufferReader(eC(e));else if(nu.isObject(e)){var r;e.header instanceof M_?r=e.header:r=M_.fromObject(e.header),t={header:r,numTransactions:e.numTransactions,hashes:fm(e.hashes),flags:fm(e.flags)}}else throw new TypeError("Unrecognized argument for MerkleBlock");return nu.extend(this,t),this._flagBitsUsed=0,this._hashesUsed=0,this}Dt.fromBuffer=function(t){return Dt.fromBufferReader(eC(t))};Dt.fromBufferReader=function(t){return new Dt(Dt._fromBufferReader(t))};Dt.prototype.toBuffer=function(){return this.toBufferWriter().concat()};Dt.prototype.toBufferWriter=function(t){t||(t=new aW),t.write(this.header.toBuffer()),t.writeUInt32LE(this.numTransactions),t.writeVarintNum(this.hashes.length);for(var r=0;r<this.hashes.length;r++)t.write(f.Buffer.from(this.hashes[r],"hex"));for(t.writeVarintNum(this.flags.length),r=0;r<this.flags.length;r++)t.writeUInt8(this.flags[r]);return t};Dt.prototype.toObject=Dt.prototype.toJSON=function(){return{header:this.header.toObject(),numTransactions:this.numTransactions,hashes:fm(this.hashes),flags:fm(this.flags)}};Dt.prototype.validMerkleTree=function(){if(ou.checkState(nu.isArray(this.flags),"MerkleBlock flags is not an array"),ou.checkState(nu.isArray(this.hashes),"MerkleBlock hashes is not an array"),this.hashes.length>this.numTransactions||this.flags.length*8<this.hashes.length)return!1;var t=this._calcTreeHeight(),r={hashesUsed:0,flagBitsUsed:0},i=this._traverseMerkleTree(t,0,r);return r.hashesUsed!==this.hashes.length?!1:i.equals(this.header.merkleRoot)};Dt.prototype.filterdTxsHash=uW.fn(function(){return this.filteredTxsHash()},{what:"MerkleBlock#filterdTxsHash",since:"9.1.0",removeIn:"10.0.0",use:"MerkleBlock#filteredTxsHash",why:"the name is a misspelling"});Dt.prototype.filteredTxsHash=function(){if(ou.checkState(nu.isArray(this.flags),"MerkleBlock flags is not an array"),ou.checkState(nu.isArray(this.hashes),"MerkleBlock hashes is not an array"),this.hashes.length>this.numTransactions)throw new L_.MerkleBlock.InvalidMerkleTree;if(this.flags.length*8<this.hashes.length)throw new L_.MerkleBlock.InvalidMerkleTree;if(this.hashes.length===1)return[];var t=this._calcTreeHeight(),r={hashesUsed:0,flagBitsUsed:0},i=this._traverseMerkleTree(t,0,r,!0);if(r.hashesUsed!==this.hashes.length)throw new L_.MerkleBlock.InvalidMerkleTree;return i};Dt.prototype._traverseMerkleTree=function(t,r,i,n){if(i=i||{},i.txs=i.txs||[],i.flagBitsUsed=i.flagBitsUsed||0,i.hashesUsed=i.hashesUsed||0,n=n||!1,i.flagBitsUsed>this.flags.length*8)return null;var o=this.flags[i.flagBitsUsed>>3]>>>(i.flagBitsUsed++&7)&1;if(t===0||!o){if(i.hashesUsed>=this.hashes.length)return null;var a=this.hashes[i.hashesUsed++];return t===0&&o&&i.txs.push(a),f.Buffer.from(a,"hex")}else{var s=this._traverseMerkleTree(t-1,r*2,i),u=s;return r*2+1<this._calcTreeWidth(t-1)&&(u=this._traverseMerkleTree(t-1,r*2+1,i)),n?i.txs:sW.sha256sha256(f.Buffer.concat([s,u]))}};Dt.prototype._calcTreeWidth=function(t){return this.numTransactions+(1<<t)-1>>t};Dt.prototype._calcTreeHeight=function(){for(var t=0;this._calcTreeWidth(t)>1;)t++;return t};Dt.prototype.hasTransaction=function(t){ou.checkArgument(!nu.isUndefined(t),"tx cannot be undefined"),ou.checkArgument(t instanceof QN||typeof t=="string",'Invalid tx given, tx must be a "string" or "Transaction"');var r=t;t instanceof QN&&(r=f.Buffer.from(t.id,"hex").reverse().toString("hex"));var i=[],n=this._calcTreeHeight();return this._traverseMerkleTree(n,0,{txs:i}),i.indexOf(r)!==-1};Dt._fromBufferReader=function(t){ou.checkState(!t.finished(),"No merkleblock data received");var r={};r.header=M_.fromBufferReader(t),r.numTransactions=t.readUInt32LE();var i=t.readVarintNum();r.hashes=[];for(var n=0;n<i;n++)r.hashes.push(t.read(32).toString("hex"));var o=t.readVarintNum();for(r.flags=[],n=0;n<o;n++)r.flags.push(t.readUInt8());return r};Dt.fromObject=function(t){return new Dt(t)};tC.exports=Dt});var rC=P((Tue,lm)=>{g();lm.exports=JN();lm.exports.BlockHeader=iu();lm.exports.MerkleBlock=D_()});var cC=P((Rue,uC)=>{"use strict";g();var cW=iu(),iC=Be(),nC=/^[0-9a-fA-F]{64}$/;function aC(e){return f.Buffer.from(e).reverse()}function oC(e){return aC(f.Buffer.from(e,"hex"))}function sC(e){return aC(e).toString("hex")}function q_(e,t,r){if(!nC.test(String(e)))throw new Error("txid must be 32-byte hex");if(!Number.isInteger(t)||t<0)throw new Error("index must be a non-negative integer");r=r||[];for(var i=oC(e),n=t,o=0;o<r.length;o++){var a=r[o],s;if(a==="*"||a===""||a==null)s=i;else{if(!nC.test(String(a)))throw new Error("proof node "+o+' must be 32-byte hex or "*"');s=oC(a)}i=n&1?iC.sha256sha256(f.Buffer.concat([s,i])):iC.sha256sha256(f.Buffer.concat([i,s])),n=Math.floor(n/2)}return sC(i)}function fW(e){if(!e||!e.merkleRoot)throw new Error("proof.merkleRoot is required");var t=q_(e.txid,e.index,e.nodes);return t.toLowerCase()===String(e.merkleRoot).toLowerCase()}function lW(e){var t=e.header;if((f.Buffer.isBuffer(t)||typeof t=="string")&&(t=cW.fromBuffer(f.Buffer.isBuffer(t)?t:f.Buffer.from(t,"hex"))),!t||!t.merkleRoot)throw new Error("a valid block header is required");var r=sC(t.merkleRoot),i=q_(e.txid,e.index,e.nodes),n=i.toLowerCase()===r.toLowerCase(),o=e.requirePow!==!1,a=t.validProofOfWork();return{valid:n&&(!o||a),rootMatches:n,powValid:a,merkleRoot:i,blockHash:t.id}}uC.exports={merkleRootFromBranch:q_,verifyMerkleProof:fW,verifyTxInclusion:lW}});var hC=P((Bue,lC)=>{"use strict";g();var fC=iu();function hW(e){return f.Buffer.from(e).reverse()}function dW(e){if(e&&typeof e.validProofOfWork=="function")return e;if(f.Buffer.isBuffer(e))return fC.fromBuffer(e);if(typeof e=="string")return fC.fromBuffer(f.Buffer.from(e,"hex"));throw new Error("each header must be a BlockHeader, an 80-byte Buffer, or hex")}function pW(e,t){if(t=t||{},!Array.isArray(e)||e.length===0)throw new Error("headers must be a non-empty array");for(var r=e.map(dW),i=t.requirePow!==!1,n=0,o=0;o<r.length;o++){if(i&&!r[o].validProofOfWork())return{valid:!1,reason:"invalid proof-of-work at index "+o,count:r.length};if(n+=r[o].getDifficulty(),o>0){var a=hW(r[o].prevHash).toString("hex").toLowerCase()===r[o-1].id.toLowerCase();if(!a)return{valid:!1,reason:"broken link at index "+o,count:r.length}}}var s=r[0].id,u=r[r.length-1].id;if(t.trustedHash){var c=String(t.trustedHash).toLowerCase();if(c!==u.toLowerCase()&&c!==s.toLowerCase())return{valid:!1,reason:"chain is not anchored at the trusted hash",count:r.length,anchorHash:s,tipHash:u}}return{valid:!0,count:r.length,anchorHash:s,tipHash:u,work:n}}lC.exports={verifyHeaderChain:pW}});var hm=P((Cue,dC)=>{"use strict";g();var H_=cC(),gW=hC();dC.exports={merkleRootFromBranch:H_.merkleRootFromBranch,verifyMerkleProof:H_.verifyMerkleProof,verifyTxInclusion:H_.verifyTxInclusion,verifyHeaderChain:gW.verifyHeaderChain}});var F_=P((Mue,pC)=>{"use strict";g();var mW=Be(),au=Oe(),$r={};$r.PROTOCOL_PREFIX="NotaryHash/1.0";$r.VERSION=1;$r.lp=function(e){var t=f.Buffer.isBuffer(e)?e:f.Buffer.from(String(e),"utf8"),r=f.Buffer.alloc(4);return r.writeUInt32BE(t.length,0),f.Buffer.concat([r,t])};function U_(e,t){if(!f.Buffer.isBuffer(e))throw new Error(t+" must be a Buffer of raw bytes, not "+typeof e+". Certificates store this field as hex; decode it with Buffer.from(hex, 'hex') before hashing, or the length prefix covers the wrong number of bytes.");return e}$r.u64be=function(e){au.checkArgument(typeof e=="number"&&isFinite(e),"createdAtUnix must be a finite number"),au.checkArgument(Number.isInteger(e),"createdAtUnix must be whole seconds, not milliseconds or a fraction"),au.checkArgument(e>=0,"createdAtUnix must not be negative");var t=f.Buffer.alloc(8);return t.writeBigUInt64BE(BigInt(e),0),t};$r.toUnixSeconds=function(e){var t=e instanceof Date?e:new Date(e);return au.checkArgument(!isNaN(t.getTime()),"createdAt is not a valid date: "+e),Math.floor(t.getTime()/1e3)};$r.canonicalBytes=function(e){return au.checkArgument(e&&typeof e=="object","fields object is required"),au.checkArgument(typeof e.algorithm=="string"&&e.algorithm.length>0,"algorithm must be a non-empty string"),au.checkArgument(typeof e.hashAlgorithm=="string"&&e.hashAlgorithm.length>0,"hashAlgorithm must be a non-empty string"),f.Buffer.concat([$r.lp($r.PROTOCOL_PREFIX),f.Buffer.from([$r.VERSION]),$r.lp(e.algorithm),$r.lp(e.hashAlgorithm),$r.lp(U_(e.payloadHash,"payloadHash")),$r.lp(U_(e.publicKey,"publicKey")),$r.lp(U_(e.signature,"signature")),$r.u64be(e.createdAtUnix)])};$r.proofHash=function(e){return mW.sha256($r.canonicalBytes(e))};pC.exports=$r});var j_=P((que,bC)=>{"use strict";g();var dm=Lg(),dn=Or(),gC=Be(),Dc=Oe(),Ct={};Ct.PREFIX="NOTARYHASH";Ct.VERSION=1;Ct.MODE={FULL:0,HYBRID:1,BATCH:2};var mC={full:Ct.MODE.FULL,hybrid:Ct.MODE.HYBRID,batch:Ct.MODE.BATCH};function vC(e){return f.Buffer.from([e])}function vW(e){var t=f.Buffer.alloc(4);return t.writeUInt32BE(e,0),t}function po(e,t,r){if(!f.Buffer.isBuffer(e))throw new Error(t+" must be a Buffer of raw bytes, not "+typeof e+". Decode hex with Buffer.from(hex, 'hex') first.");if(r!=null&&e.length!==r)throw new Error(t+" must be exactly "+r+" bytes, got "+e.length);return e}function yC(e,t){if(e.buf&&e.buf.length===1)return e.buf[0];if(e.opcodenum===dn.OP_0)return 0;if(e.opcodenum>=dn.OP_1&&e.opcodenum<=dn.OP_16)return e.opcodenum-dn.OP_1+1;throw new Error(t+" must be a single byte at this push")}function Ln(e,t){if(!e||!e.buf)throw new Error(t+" push is missing or carries no data");return e.buf}Ct.build=function(e){Dc.checkArgument(e&&typeof e=="object","record is required");var t=typeof e.mode=="string"&&Object.prototype.hasOwnProperty.call(mC,e.mode)?mC[e.mode]:e.mode;Dc.checkArgument(t===Ct.MODE.FULL||t===Ct.MODE.HYBRID||t===Ct.MODE.BATCH,"mode must be 0 (full), 1 (hybrid) or 2 (batch)");var r=new dm().add(dn.OP_FALSE).add(dn.OP_RETURN).add(f.Buffer.from(Ct.PREFIX,"ascii")).add(vC(Ct.VERSION)).add(vC(t));if(t===Ct.MODE.BATCH)return Dc.checkArgument(typeof e.leafCount=="number"&&Number.isInteger(e.leafCount)&&e.leafCount>=0,"leafCount must be a non-negative integer"),r.add(po(e.merkleRoot,"merkleRoot",32)),r.add(vW(e.leafCount)),r;Dc.checkArgument(typeof e.algorithm=="string"&&e.algorithm.length>0,"algorithm must be a non-empty string"),Dc.checkArgument(typeof e.hashAlgorithm=="string"&&e.hashAlgorithm.length>0,"hashAlgorithm must be a non-empty string"),r.add(f.Buffer.from(e.algorithm,"utf8")),r.add(f.Buffer.from(e.hashAlgorithm,"utf8")),r.add(po(e.payloadHash,"payloadHash",32)),r.add(po(e.proofHash,"proofHash",32));var i=po(e.publicKey,"publicKey"),n=po(e.signature,"signature");return t===Ct.MODE.HYBRID?(r.add(gC.sha256(i)),r.add(gC.sha256(n))):(r.add(i),r.add(n)),r};Ct.parse=function(e){typeof e=="string"&&(e=dm.fromHex(e)),Dc.checkArgument(e instanceof dm,"script must be a Script or hex string");var t=e.chunks;if(t.length<5)throw new Error("not a NotaryHash record: too few pushes");if(t[0].opcodenum!==dn.OP_FALSE&&t[0].opcodenum!==dn.OP_0)throw new Error("not a NotaryHash record: does not start with OP_FALSE");if(t[1].opcodenum!==dn.OP_RETURN)throw new Error("not a NotaryHash record: no OP_RETURN");var r=Ln(t[2],"prefix");if(r.toString("ascii")!==Ct.PREFIX)throw new Error("not a NotaryHash record: prefix is "+JSON.stringify(r.toString("ascii")));var i=yC(t[3],"version");if(i!==Ct.VERSION)throw new Error("unsupported NotaryHash version: "+i);var n=yC(t[4],"mode");if(n===Ct.MODE.BATCH){if(t.length!==7)throw new Error("batch record must have exactly 7 pushes, got "+t.length);var o=Ln(t[6],"leafCount");if(o.length!==4)throw new Error("leafCount must be 4 bytes (u32be), got "+o.length);return{mode:n,version:i,merkleRoot:po(Ln(t[5],"merkleRoot"),"merkleRoot",32),leafCount:o.readUInt32BE(0)}}if(n!==Ct.MODE.FULL&&n!==Ct.MODE.HYBRID)throw new Error("unknown NotaryHash mode: "+n);if(t.length!==11)throw new Error("full/hybrid record must have exactly 11 pushes, got "+t.length);var a={mode:n,version:i,algorithm:Ln(t[5],"algorithm").toString("utf8"),hashAlgorithm:Ln(t[6],"hashAlgorithm").toString("utf8"),payloadHash:po(Ln(t[7],"payloadHash"),"payloadHash",32),proofHash:po(Ln(t[8],"proofHash"),"proofHash",32)};return n===Ct.MODE.HYBRID?(a.publicKeyHash=po(Ln(t[9],"publicKeyHash"),"publicKeyHash",32),a.signatureHash=po(Ln(t[10],"signatureHash"),"signatureHash",32)):(a.publicKey=Ln(t[9],"publicKey"),a.signature=Ln(t[10],"signature")),a};Ct.isNotaryHash=function(e){try{typeof e=="string"&&(e=dm.fromHex(e));var t=e.chunks;return t.length>=5&&(t[0].opcodenum===dn.OP_FALSE||t[0].opcodenum===dn.OP_0)&&t[1].opcodenum===dn.OP_RETURN&&!!t[2].buf&&t[2].buf.toString("ascii")===Ct.PREFIX}catch{return!1}};bC.exports=Ct});var K_=P((Uue,_C)=>{"use strict";g();var z_=Be(),ki=Oe(),qe={};qe.LEAF_PREFIX=0;qe.NODE_PREFIX=1;qe.hashLeaf=function(e){return ki.checkArgument(f.Buffer.isBuffer(e),"leaf data must be a Buffer"),z_.sha256(f.Buffer.concat([f.Buffer.from([qe.LEAF_PREFIX]),e]))};qe.hashNode=function(e,t){return z_.sha256(f.Buffer.concat([f.Buffer.from([qe.NODE_PREFIX]),e,t]))};qe.largestPowerOfTwoBelow=function(e){ki.checkArgument(Number.isInteger(e)&&e>=2,"n must be an integer >= 2");for(var t=1;t*2<e;)t*=2;return t};qe.root=function(e){if(ki.checkArgument(Array.isArray(e),"leaves must be an array"),e.length===0)return z_.sha256(f.Buffer.alloc(0));if(e.length===1)return qe.hashLeaf(e[0]);var t=qe.largestPowerOfTwoBelow(e.length);return qe.hashNode(qe.root(e.slice(0,t)),qe.root(e.slice(t)))};qe.path=function(e,t){if(ki.checkArgument(Array.isArray(e)&&e.length>0,"leaves must be a non-empty array"),ki.checkArgument(Number.isInteger(t)&&t>=0&&t<e.length,"index must be within the leaves"),e.length===1)return[];var r=qe.largestPowerOfTwoBelow(e.length);return t<r?qe.path(e.slice(0,r),t).concat([qe.root(e.slice(r))]):qe.path(e.slice(r),t-r).concat([qe.root(e.slice(0,r))])};qe.foldPath=function(e,t,r,i){ki.checkArgument(f.Buffer.isBuffer(e),"leafData must be a Buffer"),ki.checkArgument(Number.isInteger(t)&&t>=0,"index must be a non-negative integer"),ki.checkArgument(Number.isInteger(r)&&r>0,"leafCount must be a positive integer"),ki.checkArgument(t<r,"index must be less than leafCount"),ki.checkArgument(Array.isArray(i),"path must be an array");for(var n=qe.hashLeaf(e),o=t,a=r-1,s=0;s<i.length;s++){if(a===0)throw new Error("audit path is too long for a tree of "+r+" leaves");if((o&1)===1||o===a)for(n=qe.hashNode(i[s],n);(o&1)===0&&o!==0;)o>>=1,a>>=1;else n=qe.hashNode(n,i[s]);o>>=1,a>>=1}if(a!==0)throw new Error("audit path is too short for a tree of "+r+" leaves");return n};qe.verifyInclusion=function(e,t,r,i,n){try{return f.Buffer.isBuffer(n)?qe.foldPath(e,t,r,i).equals(n):!1}catch{return!1}};qe.pathSides=function(e,t){if(ki.checkArgument(Number.isInteger(t)&&t>0,"leafCount must be a positive integer"),ki.checkArgument(Number.isInteger(e)&&e>=0&&e<t,"index must be within the tree"),t===1)return[];var r=qe.largestPowerOfTwoBelow(t);return e<r?qe.pathSides(e,r).concat(["right"]):qe.pathSides(e-r,t-r).concat(["left"])};qe.auditPath=function(e,t){var r=qe.pathSides(t,e.length);return qe.path(e,t).map(function(i,n){return{hash:i,side:r[n]}})};function yW(e,t){var r=f.Buffer.isBuffer(e)?e:null;if(!r){if(typeof e!="string")throw new Error("audit path node "+t+" has no hash");var i=e.slice(0,2)==="0x"?e.slice(2):e;if(!/^[0-9a-fA-F]*$/.test(i))throw new Error("audit path node "+t+" is not hex");r=f.Buffer.from(i,"hex")}if(r.length!==32)throw new Error("audit path node "+t+" is not 32 bytes");return r}qe.rootFromPath=function(e,t){ki.checkArgument(f.Buffer.isBuffer(e),"leafData must be a Buffer"),ki.checkArgument(Array.isArray(t),"path must be an array");for(var r=qe.hashLeaf(e),i=0;i<t.length;i++){var n=t[i];if(!n||typeof n!="object")throw new Error("audit path node "+i+" is not an object");var o=yW(n.hash,i);if(n.side==="left")r=qe.hashNode(o,r);else if(n.side==="right")r=qe.hashNode(r,o);else throw new Error("audit path node "+i+" has side "+JSON.stringify(n.side))}return r};qe.verifyAuditPath=function(e,t,r){try{return f.Buffer.isBuffer(r)?qe.rootFromPath(e,t).equals(r):!1}catch{return!1}};_C.exports=qe});var AC=P((jue,IC)=>{"use strict";g();var bW=nh(),qc=F_(),_W=K_(),lh=j_(),wW=Mc(),Xr=Oe(),he={};he.PROTOCOL="NotaryHash";he.VERSION=1;he.REFERENCE_VERSION="1.0";he.FORMAT={REFERENCE:"reference",LEGACY:"legacy"};he.MODE={FULL:"full",HYBRID:"hybrid"};he.ENCODING={HEX:"hex",BASE64:"base64",RAW:"raw",DER:"der"};he.ANCHOR_TYPE={DIRECT:"direct",BATCH:"batch"};he.DEFAULT_NETWORK="bsv-mainnet";var Y_=1,wC={0:"full",1:"hybrid",2:"full"},xC=/^[0-9a-fA-F]*$/,SW=/^[A-Za-z0-9+/_-]*={0,2}$/;he.decodeBytes=function(e,t,r){if(r=r||"value",typeof e!="string")throw new Error(r+" must be a string");if(t===he.ENCODING.HEX){var i=e.slice(0,2)==="0x"?e.slice(2):e;if(i.length%2!==0||!xC.test(i))throw new Error(r+" must be a hex string");return f.Buffer.from(i,"hex")}if(t===he.ENCODING.BASE64){if(!SW.test(e))throw new Error(r+" must be base64");var n=e.replace(/=+$/,"");if(n.length!==e.length&&e.length%4!==0||n.length%4===1)throw new Error(r+" is not a valid base64 length");return f.Buffer.from(e,"base64")}throw new Error('encoding must be "hex" or "base64", not '+JSON.stringify(t))};function V_(e,t,r){if(!f.Buffer.isBuffer(e))throw new Error(r+" must be a Buffer of raw bytes, not "+typeof e);return t===he.ENCODING.BASE64?e.toString("base64"):e.toString("hex")}function W_(e,t){var r=f.Buffer.isBuffer(e)?e:he.decodeBytes(e,"hex",t);if(r.length!==32)throw new Error(t+" must be 32 bytes");return r.toString("hex")}function EW(e){if(e===he.MODE.FULL||e===he.MODE.HYBRID)return{mode:e,batch:!1};if(e===lh.MODE.FULL)return{mode:"full",batch:!1};if(e===lh.MODE.HYBRID)return{mode:"hybrid",batch:!1};if(e===lh.MODE.BATCH)return{mode:"full",batch:!0};throw e==="batch"?new Error('batch is an anchor type, not a mode: pass mode "full" or "hybrid" with a merkle proof'):new Error('mode is required: "full" or "hybrid"')}function xW(e){if(e===void 0)return he.ENCODING.HEX;if(e===he.ENCODING.HEX||e===he.ENCODING.BASE64)return e;if(e===he.ENCODING.RAW||e===he.ENCODING.DER)return he.ENCODING.HEX;throw new Error('encoding must be "hex" or "base64"')}function OC(e,t,r){if(!Array.isArray(e))throw new Error("merkle.path must be an array");var i=e.length>0&&e.every(function(o){return o&&typeof o=="object"&&!f.Buffer.isBuffer(o)&&"side"in o});if(i||e.length===0)return e.map(function(o,a){if(o.side!=="left"&&o.side!=="right")throw new Error("merkle.path["+a+'].side must be "left" or "right"');return{hash:W_(o.hash,"merkle.path["+a+"].hash"),side:o.side}});var n=_W.pathSides(t,r);if(n.length!==e.length)throw new Error("merkle.path has "+e.length+" nodes; a tree of "+r+" leaves needs "+n.length+" for leaf "+t);return e.map(function(o,a){return{hash:W_(o,"merkle.path["+a+"]"),side:n[a]}})}function OW(e){return Xr.checkArgument(e&&typeof e=="object","batch certificates require a merkle inclusion proof"),Xr.checkArgument(Number.isInteger(e.leafIndex)&&e.leafIndex>=0,"merkle.leafIndex must be a non-negative integer"),Xr.checkArgument(Number.isInteger(e.leafCount)&&e.leafCount>e.leafIndex,"merkle.leafCount must be an integer greater than leafIndex"),{root:W_(e.root,"merkle.root"),leafIndex:e.leafIndex,leafCount:e.leafCount,path:OC(e.path,e.leafIndex,e.leafCount)}}function IW(e,t){Xr.checkArgument(e&&typeof e=="object","anchor is required"),Xr.checkArgument(typeof e.txid=="string","anchor.txid must be a string");var r=e.type||(t?he.ANCHOR_TYPE.BATCH:he.ANCHOR_TYPE.DIRECT);return Xr.checkArgument(r===he.ANCHOR_TYPE.DIRECT||r===he.ANCHOR_TYPE.BATCH,'anchor.type must be "direct" or "batch"'),Xr.checkArgument(r===he.ANCHOR_TYPE.BATCH===t,'anchor.type is "batch" exactly when a merkle inclusion proof is given'),{type:r,network:e.network||he.DEFAULT_NETWORK,txid:e.txid,vout:e.vout===void 0?0:e.vout,blockHeight:e.blockHeight===void 0?null:e.blockHeight,blockTime:e.blockTime===void 0?null:e.blockTime}}function AW(e){var t=EW(e.mode),r=t.batch||e.merkle!==void 0||!!(e.anchor&&e.anchor.type===he.ANCHOR_TYPE.BATCH);r&&Xr.checkArgument(e.merkle&&typeof e.merkle=="object","batch certificates require a merkle inclusion proof");var i=xW(e.encoding),n=IW(e.anchor,r),o=e.createdAtUnix!==void 0?e.createdAtUnix:qc.toUnixSeconds(e.createdAt===void 0?new Date:e.createdAt);Xr.checkArgument(Number.isInteger(o)&&o>=0,"createdAtUnix must be a non-negative whole number of seconds");var a=qc.proofHash({algorithm:e.algorithm,hashAlgorithm:e.hashAlgorithm,payloadHash:e.payloadHash,publicKey:e.publicKey,signature:e.signature,createdAtUnix:o}),s={protocol:he.PROTOCOL,version:he.REFERENCE_VERSION,mode:t.mode,algorithm:e.algorithm,hashAlgorithm:e.hashAlgorithm,payloadHash:V_(e.payloadHash,"hex","payloadHash"),publicKey:V_(e.publicKey,i,"publicKey"),signature:V_(e.signature,i,"signature"),encoding:i,proofHash:a.toString("hex"),createdAt:new Date(o*1e3).toISOString(),anchor:n};return r&&(s.merkle=OW(e.merkle)),s}function G_(e,t){if(!f.Buffer.isBuffer(e))throw new Error(t+" must be a Buffer of raw bytes, not "+typeof e);return e.toString("hex")}function SC(e){Xr.checkArgument(e.anchor&&typeof e.anchor=="object","anchor is required"),Xr.checkArgument(typeof e.anchor.txid=="string","anchor.txid must be a string");var t=e.encoding||he.ENCODING.RAW;Xr.checkArgument(t===he.ENCODING.RAW||t===he.ENCODING.DER,'encoding must be "raw" or "der"');var r=e.createdAt?e.createdAt instanceof Date?e.createdAt.toISOString():e.createdAt:new Date().toISOString(),i=qc.toUnixSeconds(r),n=qc.proofHash({algorithm:e.algorithm,hashAlgorithm:e.hashAlgorithm,payloadHash:e.payloadHash,publicKey:e.publicKey,signature:e.signature,createdAtUnix:i}),o={protocol:he.PROTOCOL,version:Y_,mode:e.mode,algorithm:e.algorithm,hashAlgorithm:e.hashAlgorithm,payloadHash:G_(e.payloadHash,"payloadHash"),publicKey:G_(e.publicKey,"publicKey"),signature:G_(e.signature,"signature"),encoding:t,proofHash:n.toString("hex"),createdAt:r,anchor:{txid:e.anchor.txid,blockHeight:e.anchor.blockHeight}};return e.mode===lh.MODE.BATCH&&(Xr.checkArgument(e.merkle&&typeof e.merkle=="object","batch certificates require a merkle inclusion proof"),o.merkle={root:e.merkle.root,leafIndex:e.merkle.leafIndex,leafCount:e.merkle.leafCount,path:e.merkle.path}),o}he.build=function(e){Xr.checkArgument(e&&typeof e=="object","params is required");var t=e.format;return t===void 0?(wW({what:"NotaryHash.Certificate.build() without a format",since:"9.9.0",removeIn:"10.0.0",use:"NotaryHash.Certificate.build({ ...params, format: 'reference' })",why:"the default format is this library's own, which the BRC-220 reference implementation cannot verify"}),SC(e)):(Xr.checkArgument(t===he.FORMAT.REFERENCE||t===he.FORMAT.LEGACY,"Unknown certificate format: "+t+". Expected 'reference' or 'legacy' (NotaryHash.Certificate.FORMAT)"),t===he.FORMAT.REFERENCE?AW(e):SC(e))};he.isLegacy=function(e){return!!e&&typeof e=="object"&&(e.version===Y_||e.version===void 0&&typeof e.mode=="number")};he.normalize=function(e){if(!he.isLegacy(e))return e;var t=e.mode===lh.MODE.BATCH,r=Object.assign({},e);r.version=e.version===Y_?he.REFERENCE_VERSION:e.version,r.mode=wC[e.mode]!==void 0?wC[e.mode]:e.mode,(e.encoding===he.ENCODING.RAW||e.encoding===he.ENCODING.DER)&&(r.encoding=he.ENCODING.HEX);var i=e.anchor&&typeof e.anchor=="object"?e.anchor:{};if(r.anchor={type:t?he.ANCHOR_TYPE.BATCH:he.ANCHOR_TYPE.DIRECT,network:i.network||he.DEFAULT_NETWORK,txid:i.txid,vout:i.vout===void 0?0:i.vout,blockHeight:i.blockHeight===void 0?null:i.blockHeight,blockTime:i.blockTime===void 0?null:i.blockTime},e.merkle&&typeof e.merkle=="object"){var n=e.merkle,o=n.path;try{o=OC(n.path,n.leafIndex,n.leafCount)}catch{}r.merkle={root:n.root,leafIndex:n.leafIndex,leafCount:n.leafCount,path:o}}return r};he.toProofInput=function(e){Xr.checkArgument(e&&typeof e=="object","certificate is required");var t=he.normalize(e);return{algorithm:t.algorithm,hashAlgorithm:t.hashAlgorithm,payloadHash:he.decodeBytes(t.payloadHash,"hex","payloadHash"),publicKey:he.decodeBytes(t.publicKey,t.encoding,"publicKey"),signature:he.decodeBytes(t.signature,t.encoding,"signature"),createdAtUnix:qc.toUnixSeconds(t.createdAt)}};he.recomputeProofHash=function(e){return qc.proofHash(he.toProofInput(e))};he.proofHashMatches=function(e){try{if(!e||typeof e.proofHash!="string")return!1;var t=he.decodeBytes(e.proofHash,"hex","proofHash");return t.length!==32?!1:he.recomputeProofHash(e).equals(t)}catch{return!1}};he.REQUIRED_FIELDS=["protocol","version","mode","algorithm","hashAlgorithm","payloadHash","publicKey","signature","encoding","proofHash","createdAt","anchor"];function pm(e,t,r){if(e!==void 0){var i=typeof e=="string"&&e.slice(0,2)==="0x"?e.slice(2):e;typeof i!="string"||!xC.test(i)||i.length%2!==0?r.push(t+" must be a hex string"):i.length!==64&&r.push(t+" must be 32 bytes (64 hex chars)")}}function EC(e){return e===null||Number.isInteger(e)}he.validateShape=function(e){if(!e||typeof e!="object")return["certificate must be an object"];var t=he.normalize(e),r=[];if(he.REQUIRED_FIELDS.forEach(function(o){t[o]===void 0&&r.push("missing required field: "+o)}),t.protocol!==void 0&&t.protocol!==he.PROTOCOL&&r.push('protocol must be "'+he.PROTOCOL+'"'),t.version!==void 0&&t.version!==he.REFERENCE_VERSION&&r.push("unsupported version: "+JSON.stringify(t.version)),t.mode!==void 0&&t.mode!==he.MODE.FULL&&t.mode!==he.MODE.HYBRID&&r.push('mode must be "full" or "hybrid"'),["algorithm","hashAlgorithm"].forEach(function(o){t[o]!==void 0&&(typeof t[o]!="string"||t[o].length===0)&&r.push(o+" must be a non-empty string")}),pm(t.payloadHash,"payloadHash",r),pm(t.proofHash,"proofHash",r),t.encoding!==void 0&&(t.encoding!==he.ENCODING.HEX&&t.encoding!==he.ENCODING.BASE64?r.push('encoding must be "hex" or "base64"'):["publicKey","signature"].forEach(function(o){if(t[o]!==void 0)try{he.decodeBytes(t[o],t.encoding,o).length===0&&r.push(o+" must not be empty")}catch{r.push(o+" is not valid "+t.encoding)}})),t.createdAt!==void 0&&(typeof t.createdAt!="string"||isNaN(new Date(t.createdAt).getTime()))&&r.push("createdAt must be an ISO 8601 date"),t.anchor!==void 0){var i=t.anchor;!i||typeof i!="object"?r.push("anchor must be an object"):(i.type!==he.ANCHOR_TYPE.DIRECT&&i.type!==he.ANCHOR_TYPE.BATCH&&r.push('anchor.type must be "direct" or "batch"'),(typeof i.txid!="string"||!/^[0-9a-fA-F]{64}$/.test(i.txid))&&r.push("anchor.txid must be a 32-byte hex string"),i.vout!==void 0&&!(Number.isInteger(i.vout)&&i.vout>=0)&&r.push("anchor.vout must be a non-negative integer"),i.blockHeight!==void 0&&!EC(i.blockHeight)&&r.push("anchor.blockHeight must be an integer or null"),i.blockTime!==void 0&&!EC(i.blockTime)&&r.push("anchor.blockTime must be an integer or null"),i.type===he.ANCHOR_TYPE.BATCH&&t.merkle===void 0&&r.push("batch certificates require a merkle inclusion proof"))}if(t.merkle!==void 0){var n=t.merkle;!n||typeof n!="object"?r.push("merkle must be an object"):(pm(n.root,"merkle.root",r),Number.isInteger(n.leafIndex)&&n.leafIndex>=0||r.push("merkle.leafIndex must be a non-negative integer"),Number.isInteger(n.leafCount)&&n.leafCount>=1?Number.isInteger(n.leafIndex)&&n.leafIndex>=n.leafCount&&r.push("merkle.leafIndex must be less than leafCount"):r.push("merkle.leafCount must be a positive integer"),Array.isArray(n.path)?n.path.forEach(function(o,a){!o||typeof o!="object"||o.side!=="left"&&o.side!=="right"?r.push("merkle.path["+a+'] must be { hash, side: "left" | "right" }'):pm(o.hash,"merkle.path["+a+"].hash",r)}):r.push("merkle.path must be an array"))}return r};he.attachSPV=function(e,t){Xr.checkArgument(e&&typeof e=="object","certificate is required"),Xr.checkArgument(t&&typeof t=="object","spv envelope is required");var r=e.proofHash,i=Object.assign({},e,{spv:{rawTx:t.rawTx,blockHash:t.blockHash,blockHeight:t.blockHeight,merkleProof:t.merkleProof,format:t.format||"TSC"}});if(i.proofHash!==r)throw new Error("attaching the SPV envelope changed proofHash; this must never happen");return i};he.canonicalize=function(e){return bW.stringify(e)};IC.exports=he});var BC=P((Kue,kC)=>{"use strict";g();var TC=Ze(),TW=fn(),PC=ut(),PW=Gt(),RC=Oe(),ca={},hh={};ca.register=function(e,t){return RC.checkArgument(typeof e=="string"&&e.length>0,"algorithm must be a non-empty string"),RC.checkArgument(t&&typeof t.verify=="function","suite must provide a verify(payloadHash, signature, publicKey) function"),hh[e]=t,ca};ca.get=function(e){return hh[e]};ca.list=function(){return Object.keys(hh).sort()};ca.unregister=function(e){return delete hh[e],ca};ca.verify=function(e,t,r,i){var n=hh[e];if(!n||!f.Buffer.isBuffer(t)||!f.Buffer.isBuffer(r)||!f.Buffer.isBuffer(i))return!1;try{return n.verify(t,r,i)===!0}catch{return!1}};ca.register("ECDSA-secp256k1",{verify:function(e,t,r){if(e.length!==32)return!1;var i;if(t.length===64)i=new PC(TC.fromBuffer(t.slice(0,32)),TC.fromBuffer(t.slice(32,64)));else if(t[0]===48)try{i=PC.fromDER(t)}catch{return!1}else return!1;var n;try{n=PW.fromBuffer(r)}catch{return!1}var o=new TW;return o.hashbuf=e,o.pubkey=n,o.sig=i,o.verify()===!0}});kC.exports=ca});var MC=P((Gue,LC)=>{"use strict";g();var RW=Tt(),Z_=Be(),kW=hm(),BW=F_(),ts=j_(),qr=AC(),$_=BC(),NC=K_(),qt={};qt.Encoding=BW;qt.Script=ts;qt.Certificate=qr;qt.Suites=$_;qt.Merkle=NC;qt.MODE=ts.MODE;qt.registerSuite=function(e,t){return $_.register(e,t)};qt.verifySignature=function(e){try{if(!e||typeof e!="object")return!1;var t=qr.toProofInput(e);return $_.verify(t.algorithm,t.payloadHash,t.signature,t.publicKey)}catch{return!1}};qt.txidFromRawTx=function(e){var t=f.Buffer.isBuffer(e)?e:f.Buffer.from(e,"hex");return f.Buffer.from(Z_.sha256sha256(t)).reverse().toString("hex")};qt.recordFromRawTx=function(e){try{for(var t=new RW(f.Buffer.isBuffer(e)?e.toString("hex"):e),r=0;r<t.outputs.length;r++){var i=t.outputs[r].script;if(ts.isNotaryHash(i))return ts.parse(i)}return null}catch{return null}};qt.recordMatchesCertificate=function(e,t){try{if(!e||!t)return!1;var r=qr.normalize(t),i=e.mode===ts.MODE.BATCH,n=!!(r.anchor&&r.anchor.type===qr.ANCHOR_TYPE.BATCH);if(i||n)return!i||!n||!r.merkle||!e.merkleRoot.equals(qr.decodeBytes(r.merkle.root,"hex","merkle.root"))?!1:e.leafCount===r.merkle.leafCount;var o=r.mode===qr.MODE.FULL?ts.MODE.FULL:r.mode===qr.MODE.HYBRID?ts.MODE.HYBRID:-1;if(e.mode!==o)return!1;var a=qr.toProofInput(r);return e.algorithm!==a.algorithm||e.hashAlgorithm!==a.hashAlgorithm||!e.payloadHash.equals(a.payloadHash)||!e.proofHash.equals(qr.decodeBytes(r.proofHash,"hex","proofHash"))?!1:e.mode===ts.MODE.HYBRID?e.publicKeyHash.equals(Z_.sha256(a.publicKey))&&e.signatureHash.equals(Z_.sha256(a.signature)):e.publicKey.equals(a.publicKey)&&e.signature.equals(a.signature)}catch{return!1}};qt.verifyAnchorSPV=function(e,t){var r=[];t=t||{};try{var i=qr.normalize(e),n=i&&i.spv;if(!n)return{valid:!1,errors:["certificate has no SPV envelope"]};if(!t.header)return{valid:!1,errors:["a block header is required: the verifier must obtain one itself rather than trust the certificate or its issuer for the anchor"]};var o=qt.txidFromRawTx(n.rawTx);(!i.anchor||o!==String(i.anchor.txid).toLowerCase())&&r.push("rawTx does not hash to anchor.txid");var a=qt.recordFromRawTx(n.rawTx);a?qt.recordMatchesCertificate(a,i)||r.push("on-chain record does not match the certificate"):r.push("no NotaryHash record found in rawTx");var s=n.merkleProof||{},u=kW.verifyTxInclusion({header:t.header,txid:o,index:s.index,nodes:s.nodes,requirePow:t.requirePow!==!1});return u.valid!==!0&&r.push(u.rootMatches===!1?"merkle proof does not fold to the header's root":"block header failed proof-of-work validation"),n.blockHash!==void 0&&String(n.blockHash).toLowerCase()!==String(u.blockHash).toLowerCase()&&r.push("the supplied header is not the block the SPV envelope names"),t.height!==void 0&&t.height!==n.blockHeight&&r.push("the supplied header is not at the height the SPV envelope names"),{valid:r.length===0,errors:r}}catch(c){return{valid:!1,errors:["anchor verification error: "+c.message]}}};qt.verifyBatchInclusion=function(e){try{var t=qr.normalize(e);return!t||!t.anchor||t.anchor.type!==qr.ANCHOR_TYPE.BATCH?{valid:!1,errors:['certificate is not batch-anchored (anchor.type is not "batch")']}:t.merkle?CC(t,"merkle inclusion proof does not fold to the batch root"):{valid:!1,errors:["batch certificate has no merkle proof"]}}catch(r){return{valid:!1,errors:["batch inclusion error: "+r.message]}}};function CC(e,t){try{var r=e.merkle,i=qr.decodeBytes(e.proofHash,"hex","proofHash"),n=qr.decodeBytes(r.root,"hex","merkle.root");return NC.verifyAuditPath(i,r.path,n)?{valid:!0,errors:[]}:{valid:!1,errors:[t]}}catch(o){return{valid:!1,errors:["batch inclusion error: "+o.message]}}}qt.verify=function(e,t){t=t||{};var r={valid:!1,shape:[],signature:!1,proofIntegrity:!1,anchor:!1,errors:[]};if(r.legacy=qr.isLegacy(e),e=qr.normalize(e),r.shape=qr.validateShape(e),r.shape.length)return r.errors=r.shape.slice(),r;if(r.signature=qt.verifySignature(e),r.signature||r.errors.push("signature does not verify"),r.proofIntegrity=qr.proofHashMatches(e),r.proofIntegrity||r.errors.push("proofHash does not match the certificate fields"),t.skipAnchor)return r.errors.push("anchor not checked (skipAnchor): this certificate is NOT verified"),r;var i=qt.verifyAnchorSPV(e,t);r.anchor=i.valid,i.errors.forEach(function(a){r.errors.push(a)}),r.batchInclusion=!0;var n=!!(e.anchor&&e.anchor.type===qr.ANCHOR_TYPE.BATCH);if(n||e.merkle!==void 0){var o=n?qt.verifyBatchInclusion(e):CC(e,"merkle proof does not fold to its stated root");r.batchInclusion=o.valid,o.errors.forEach(function(a){r.errors.push(a)})}return r.valid=r.signature&&r.proofIntegrity&&r.anchor&&r.batchInclusion,r};qt.isValid=function(e,t){return qt.verify(e,t).valid===!0};LC.exports=qt});var FC=P((Yue,UC)=>{"use strict";g();var NW=Be(),gm=Qe(),CW=Zr(),LW=Gt(),DC=Ti(),qC=sn(),X_=fn(),HC=ut(),MW=NW.sha256sha256,DW=ei(),Hc=Oe(),Ht=function e(t){return this instanceof e?(Hc.checkArgument(gm.isString(t)||f.Buffer.isBuffer(t),"First argument should be a string or Buffer"),gm.isString(t)&&(this.messageBuffer=f.Buffer.from(t)),f.Buffer.isBuffer(t)&&(this.messageBuffer=t),this):new e(t)};Ht.sign=function(e,t){return new Ht(e).sign(t)};Ht.verify=function(e,t,r){return new Ht(e).verify(t,r)};Ht.MAGIC_BYTES=f.Buffer.from(`Bitcoin Signed Message:
|
|
76
76
|
`);Ht.prototype.magicHash=function(){var t=qC.varintBufNum(Ht.MAGIC_BYTES.length),r=qC.varintBufNum(this.messageBuffer.length),i=f.Buffer.concat([t,Ht.MAGIC_BYTES,r,this.messageBuffer]),n=MW(i);return n};Ht.prototype._sign=function(t){Hc.checkArgument(t instanceof CW,"First argument should be an instance of PrivateKey");var r=this.magicHash();return X_.signWithCalcI(r,t)};Ht.prototype.sign=function(t){var r=this._sign(t);return r.toCompact().toString("base64")};Ht.prototype._verify=function(t,r){Hc.checkArgument(t instanceof LW,"First argument should be an instance of PublicKey"),Hc.checkArgument(r instanceof HC,"Second argument should be an instance of Signature");var i=this.magicHash(),n=X_.verify(i,r,t);return n||(this.error="The signature was invalid"),n};Ht.prototype.verify=function(t,r){Hc.checkArgument(t),Hc.checkArgument(r&&gm.isString(r)),gm.isString(t)&&(t=DC.fromString(t));var i=HC.fromCompact(f.Buffer.from(r,"base64")),n=new X_;n.hashbuf=this.magicHash(),n.sig=i;var o=n.toPublicKey(),a=DC.fromPublicKey(o,t.network);return t.toString()!==a.toString()?(this.error="The signature did not match the message digest",!1):this._verify(o,i)};Ht.fromString=function(e){return new Ht(e)};Ht.fromJSON=function(t){return DW.isValidJSON(t)&&(t=JSON.parse(t)),Ht.fromObject(t)};Ht.prototype.toObject=function(){return{messageHex:this.messageBuffer.toString("hex")}};Ht.fromObject=function(e){let t=f.Buffer.from(e.messageHex,"hex");return new Ht(t)};Ht.prototype.toJSON=function(){return JSON.stringify(this.toObject())};Ht.prototype.toString=function(){return this.messageBuffer.toString()};Ht.prototype.inspect=function(){return"<Message: "+this.toString()+">"};UC.exports=Ht});var zC=P(($ue,jC)=>{g();jC.exports=FC()});function J_(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in e&&e.BYTES_PER_ELEMENT===1}function qW(e,t=""){if(typeof e!="boolean")throw new TypeError(mm(t)+"expected boolean, got type="+typeof e);return e}function dh(e,t=""){if(typeof e!="number")throw new TypeError(mm(t)+"expected number, got "+typeof e);if(!Number.isSafeInteger(e)||e<0)throw new RangeError(mm(t)+"expected integer >= 0, got "+e);return e}function Me(e,t,r=""){if(J_(e)&&(t===void 0||e.length===t))return e;t!==void 0&&dh(t,"length");let i=J_(e),n=t!==void 0?` of length ${t}`:"",o=i?`length=${e.length}`:`type=${typeof e}`,a=mm(r)+"expected Uint8Array"+n+", got "+o;throw i?new RangeError(a):new TypeError(a)}function rs(e,t=!0){if(e.destroyed)throw new Error("hash was destroyed");if(t&&e.finished)throw new Error("digest() was already called")}function HW(e,t){Me(e,void 0,"output");let r=t.outputLen;if(!(e.length>=r))throw new RangeError('"output" expected length >= '+r)}function ph(e,t){if(HW(e,t),!Jr(e))throw new Error("invalid output, must be aligned")}function vm(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function Fe(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Je(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Uc(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function su(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function UW(e){for(let t=0;t<e.length;t++)e[t]=su(e[t]);return e}function Q_(e,t){return!e.byteLength||!t.byteLength?!1:e.buffer===t.buffer&&e.byteOffset<t.byteOffset+t.byteLength&&t.byteOffset<e.byteOffset+e.byteLength}function ym(e,t){if(Q_(e,t)&&e.byteOffset<t.byteOffset)throw new Error("complex overlap of input and output is not supported")}function ew(...e){let t=0;for(let i=0;i<e.length;i++){let n=e[i];Me(n),t+=n.length}let r=new Uint8Array(t);for(let i=0,n=0;i<e.length;i++){let o=e[i];r.set(o,n),n+=o.length}return r}function gh(e,t){if(e=Me(e),t=Me(t),e.length!==t.length)return!1;let r=0;for(let i=0;i<e.length;i++)r|=e[i]^t[i];return r===0}function mh(e,t,r){let i=t,n=r||(()=>[]),o=(s,u)=>i(u,...n(s)).update(s).digest(),a=i(new Uint8Array(e),...n(new Uint8Array(0)));return o.outputLen=a.outputLen,o.blockLen=a.blockLen,o.create=(s,...u)=>i(s,...u),o}function Fc(e,t,r=!0){if(t===void 0)return new Uint8Array(e);if(Me(t,e,"output"),r&&!Jr(t))throw new Error("invalid output, must be aligned");return t}function KC(e,t,r){dh(e),dh(t),qW(r);let i=new Uint8Array(16),n=Uc(i);return n.setBigUint64(0,BigInt(t),r),n.setBigUint64(8,BigInt(e),r),i}function Jr(e){return e.byteOffset%4===0}function Lt(e){return Uint8Array.from(Me(e))}var mm,di,He,je,go,tw=Br(()=>{g();mm=e=>e?`"${e}" `:"";di=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;He=di?e=>e:e=>su(e)>>>0;je=di?e=>e:UW;go=(e,t)=>{function r(i,...n){if(Me(i,void 0,"key"),e.nonceLength!==void 0){let d=n[0];Me(d,e.varSizeNonce?void 0:e.nonceLength,"nonce")}let o=e.tagLength,a=e.nonceLength!==void 0?1:0;if(!e.withAAD){for(let d=a;d<n.length;d++)if(J_(n[d]))throw new Error("AAD not supported")}e.withAAD&&n[a]!==void 0&&Me(n[a],void 0,"AAD");let s=t(i,...n),u=(d,p)=>{if(p!==void 0){if(d!==2)throw new Error("cipher output not supported");Me(p,void 0,"output")}},c=!1;return{encrypt(d,p){if(c)throw new Error("cannot encrypt() twice with same key + nonce");return c=!0,Me(d,void 0,"data"),u(s.encrypt.length,p),s.encrypt(d,p)},decrypt(d,p){if(Me(d,void 0,"data"),o&&d.length<o)throw new Error('"ciphertext" expected length >= tagLength='+o);return u(s.decrypt.length,p),s.decrypt(d,p)}}}return Object.assign(r,e),r}});function zW(e){e.reverse();let t=e[15]&1,r=0;for(let i=0;i<e.length;i++){let n=e[i];e[i]=n>>>1|r,r=(n&1)<<7}return e[0]^=-t&225,e}var mo,iw,vo,FW,jW,vh,is,KW,bm,rw,nw,VC,GC=Br(()=>{g();tw();mo=16,iw=new Uint8Array(16),vo=Fe(iw),FW=225,jW=(e,t,r,i)=>{let n=i&1;return{s3:r<<31|i>>>1,s2:t<<31|r>>>1,s1:e<<31|t>>>1,s0:e>>>1^FW<<24&-(n&1)}},vh=e=>(e>>>0&255)<<24|(e>>>8&255)<<16|(e>>>16&255)<<8|e>>>24&255|0,is=e=>He(vh(e));KW=e=>e>64*1024?8:e>1024?4:2,bm=class{constructor(t,r){ee(this,"blockLen",mo);ee(this,"outputLen",mo);ee(this,"s0",0);ee(this,"s1",0);ee(this,"s2",0);ee(this,"s3",0);ee(this,"finished",!1);ee(this,"destroyed",!1);ee(this,"t");ee(this,"W");ee(this,"windowSize");Me(t,16,"key"),t=Lt(t);let i=Uc(t),n=i.getUint32(0,!1),o=i.getUint32(4,!1),a=i.getUint32(8,!1),s=i.getUint32(12,!1),u=[];for(let _=0;_<128;_++)u.push({s0:vh(n),s1:vh(o),s2:vh(a),s3:vh(s)}),{s0:n,s1:o,s2:a,s3:s}=jW(n,o,a,s);let c=KW(r||1024);if(![1,2,4,8].includes(c))throw new Error("ghash: invalid window size, expected 2, 4 or 8");this.W=c;let d=128/c,p=this.windowSize=2**c,y=[];for(let _=0;_<d;_++)for(let T=0;T<p;T++){let R=0,B=0,H=0,F=0;for(let I=0;I<c;I++){if(!(T>>>c-I-1&1))continue;let{s0:D,s1:j,s2:K,s3:G}=u[c*_+I];R^=D,B^=j,H^=K,F^=G}y.push({s0:R,s1:B,s2:H,s3:F})}this.t=y}_updateBlock(t,r,i,n){t^=this.s0,r^=this.s1,i^=this.s2,n^=this.s3;let{W:o,t:a,windowSize:s}=this,u=0,c=0,l=0,d=0,p=(1<<o)-1,y=0;for(let _ of[t,r,i,n])for(let T=0;T<4;T++){let R=_>>>8*T&255;for(let B=8/o-1;B>=0;B--){let H=R>>>o*B&p,{s0:F,s1:I,s2:k,s3:D}=a[y*s+H];u^=F,c^=I,l^=k,d^=D,y+=1}}this.s0=u,this.s1=c,this.s2=l,this.s3=d}update(t){rs(this),Me(t),t=Lt(t);let r=Fe(t),i=Math.floor(t.length/mo),n=t.length%mo;for(let o=0;o<i;o++)this._updateBlock(He(r[o*4+0]),He(r[o*4+1]),He(r[o*4+2]),He(r[o*4+3]));return n&&(iw.set(t.subarray(i*mo)),this._updateBlock(He(vo[0]),He(vo[1]),He(vo[2]),He(vo[3])),Je(vo)),this}destroy(){this.destroyed=!0;let{t}=this;for(let r of t)r.s0=0,r.s1=0,r.s2=0,r.s3=0}digestInto(t){rs(this),ph(t,this),this.finished=!0;let{s0:r,s1:i,s2:n,s3:o}=this,a=Fe(t);a[0]=r,a[1]=i,a[2]=n,a[3]=o,di||je(a.subarray(0,mo/4))}digest(){let t=new Uint8Array(mo);return this.digestInto(t),this.destroy(),t}},rw=class extends bm{constructor(t,r){Me(t);let i=zW(Lt(t));super(i,r),Je(i)}update(t){rs(this),Me(t),t=Lt(t);let r=Fe(t),i=t.length%mo,n=Math.floor(t.length/mo);for(let o=0;o<n;o++)this._updateBlock(is(r[o*4+3]),is(r[o*4+2]),is(r[o*4+1]),is(r[o*4+0]));return i&&(iw.set(t.subarray(n*mo)),this._updateBlock(is(vo[3]),is(vo[2]),is(vo[1]),is(vo[0])),Je(vo)),this}digestInto(t){rs(this),ph(t,this),this.finished=!0;let r=t.subarray(0,this.outputLen),{s0:i,s1:n,s2:o,s3:a}=this,s=Fe(r);s[0]=i,s[1]=n,s[2]=o,s[3]=a,je(s),r.reverse()}},nw=mh(16,(e,t)=>new bm(e,t),e=>[e.length]),VC=mh(16,(e,t)=>new rw(e,t),e=>[e.length])});var dw={};Pf(dw,{__TESTS:()=>uY,aeskw:()=>tY,aeskwp:()=>rY,aessiv:()=>aY,cbc:()=>XW,cfb:()=>JW,cmac:()=>bh,ctr:()=>Vc,ecb:()=>$W,gcm:()=>QW,gcmsiv:()=>eY,rngAesCtrDrbg128:()=>iY,rngAesCtrDrbg256:()=>nY,siv:()=>oY,unsafe:()=>sY});function Em(e){if(![16,24,32].includes(e.length))throw new Error('"aes key" expected Uint8Array of length 16/24/32, got length='+e.length)}function lw(e){return e<<1^GW&-(e>>7)}function jc(e,t){let r=0;for(;t>0;t>>=1)r^=e&-(t&1),e=lw(e);return r}function ZC(e,t){if(e.length!==256)throw new Error("wrong sbox length");let r=new Uint32Array(256).map((c,l)=>t(e[l])),i=r.map(ow),n=i.map(ow),o=n.map(ow),a=new Uint32Array(256*256),s=new Uint32Array(256*256),u=new Uint16Array(256*256);for(let c=0;c<256;c++)for(let l=0;l<256;l++){let d=c*256+l;a[d]=r[c]^i[l],s[d]=n[c]^o[l],u[d]=e[c]<<8|e[l]}return{sbox:e,sbox2:u,T0:r,T1:i,T2:n,T3:o,T01:a,T23:s}}function Mn(e){Me(e);let t=e.length;Em(e);let{sbox2:r}=hw,i=[];(!di||!Jr(e))&&i.push(e=Lt(e));let n=je(Fe(e)),o=n.length,a=u=>yo(r,u,u,u,u),s=new Uint32Array(t+28);s.set(n);for(let u=o;u<s.length;u++){let c=s[u-1];u%o===0?c=a(YW(c))^ZW[u/o-1]:o>6&&u%o===4&&(c=a(c)),s[u]=s[u-o]^c}return Je(...i),s}function xm(e){let t=Mn(e),r=t.slice(),i=t.length,{sbox2:n}=hw,{T0:o,T1:a,T2:s,T3:u}=$C;for(let c=0;c<i;c+=4)for(let l=0;l<4;l++)r[c+l]=t[i-c-4+l];Je(t);for(let c=4;c<i-4;c++){let l=r[c],d=yo(n,l,l,l,l);r[c]=o[d&255]^a[d>>>8&255]^s[d>>>16&255]^u[d>>>24]}return r}function ns(e,t,r,i,n,o){return e[r<<8&65280|i>>>8&255]^t[n>>>8&65280|o>>>24&255]}function yo(e,t,r,i,n){return e[t&255|r&65280]|e[i>>>16&255|n>>>16&65280]<<16}function pi(e,t,r,i,n){let{sbox2:o,T01:a,T23:s}=hw,u=0;t^=e[u++],r^=e[u++],i^=e[u++],n^=e[u++];let c=e.length/4-2;for(let _=0;_<c;_++){let T=e[u++]^ns(a,s,t,r,i,n),R=e[u++]^ns(a,s,r,i,n,t),B=e[u++]^ns(a,s,i,n,t,r),H=e[u++]^ns(a,s,n,t,r,i);t=T,r=R,i=B,n=H}let l=e[u++]^yo(o,t,r,i,n),d=e[u++]^yo(o,r,i,n,t),p=e[u++]^yo(o,i,n,t,r),y=e[u++]^yo(o,n,t,r,i);return{s0:l,s1:d,s2:p,s3:y}}function wh(e,t,r,i,n){let{sbox2:o,T01:a,T23:s}=$C,u=0;t^=e[u++],r^=e[u++],i^=e[u++],n^=e[u++];let c=e.length/4-2;for(let _=0;_<c;_++){let T=e[u++]^ns(a,s,t,n,i,r),R=e[u++]^ns(a,s,r,t,n,i),B=e[u++]^ns(a,s,i,r,t,n),H=e[u++]^ns(a,s,n,i,r,t);t=T,r=R,i=B,n=H}let l=e[u++]^yo(o,t,n,i,r),d=e[u++]^yo(o,r,t,n,i),p=e[u++]^yo(o,i,r,t,n),y=e[u++]^yo(o,n,i,r,t);return{s0:l,s1:d,s2:p,s3:y}}function XC(e,t,r,i){Me(t,it,"nonce"),Me(r);let n=r.length;i=Fc(n,i),ym(r,i);let o=t,a=Fe(o),s=Fe(r),u=Fe(i);for(let l=0;l+4<=s.length;l+=4){let{s0:d,s1:p,s2:y,s3:_}=pi(e,He(a[0]),He(a[1]),He(a[2]),He(a[3]));u[l+0]=s[l+0]^He(d),u[l+1]=s[l+1]^He(p),u[l+2]=s[l+2]^He(y),u[l+3]=s[l+3]^He(_);for(let T=it-1,R=1;T>=0;T--)R=R+o[T]|0,o[T]=R&255,R>>>=8}let c=it*Math.floor(s.length/fw);if(c<n){let{s0:l,s1:d,s2:p,s3:y}=pi(e,He(a[0]),He(a[1]),He(a[2]),He(a[3])),_=new Uint32Array([l,d,p,y]);je(_);let T=vm(_);for(let R=c,B=0;R<n;R++,B++)i[R]=r[R]^T[B];Je(_)}return i}function zc(e,t,r,i,n){Me(r,it,"nonce"),Me(i),n=Fc(i.length,n);let o=r,a=Fe(o),s=Uc(o),u=Fe(i),c=Fe(n),l=t?0:12,d=i.length,p=s.getUint32(l,t);for(let _=0;_+4<=u.length;_+=4){let{s0:T,s1:R,s2:B,s3:H}=pi(e,He(a[0]),He(a[1]),He(a[2]),He(a[3]));c[_+0]=u[_+0]^He(T),c[_+1]=u[_+1]^He(R),c[_+2]=u[_+2]^He(B),c[_+3]=u[_+3]^He(H),p=p+1>>>0,s.setUint32(l,p,t)}let y=it*Math.floor(u.length/fw);if(y<d){let{s0:_,s1:T,s2:R,s3:B}=pi(e,He(a[0]),He(a[1]),He(a[2]),He(a[3])),H=new Uint32Array([_,T,R,B]);je(H);let F=vm(H);for(let I=y,k=0;I<d;I++,k++)n[I]=i[I]^F[k];Je(H)}return n}function JC(e,t){if(Me(e),e.length%it!==0)throw new Error("ciphertext must be multiple of "+it);t!==void 0&&(Fc(e.length,t),ym(e,t))}function QC(e,t,r){Me(e);let i=e.length,n=i%it;if(!t&&n!==0)throw new Error("plaintext must be multiple of "+it);if(t){let o=it-n;o||(o=it),i=i+o}return r!==void 0&&(Fc(i,r),ym(e,r)),i}function eL(e,t,r){r===void 0&&(r=new Uint8Array(t)),(!di||!Jr(e))&&(e=Lt(e));let i=Fe(r);return{b:e,o:i,out:r}}function tL(e,t){if(!t)return e;let r=e.length;if(r===0)throw new Error("pkcs7: empty ciphertext not allowed");let i=e[r-1],n=1;n&=i-1>>>31^1,n&=16-i>>>31^1;for(let o=0;o<16;o++){let a=o-i>>>31,s=(e[r-1-o]^i)===0?1:0;n&=s|a^1}if(!n)throw new Error("aes: bad decrypt");return e.subarray(0,r-i)}function rL(e){let t=new Uint8Array(16),r=Fe(t);t.set(e);let i=it-e.length;for(let n=it-i;n<it;n++)t[n]=i;return r}function iL(e,t,r,i,n){let o=n?n.length:0,a=e.create(r,i.length+o);n&&a.update(n);let s=KC(8*i.length,8*o,t);a.update(i),a.update(s);let u=a.digest();return Je(s),u}function nL(e){return e instanceof Uint32Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint32Array"}function wm(e,t){if(Me(t,16,"block"),!nL(e))throw new Error("_encryptBlock accepts result of expandKeyLE");let r=Fe(t);je(r);let{s0:i,s1:n,s2:o,s3:a}=pi(e,r[0],r[1],r[2],r[3]);return r[0]=i,r[1]=n,r[2]=o,r[3]=a,je(r),t}function oL(e,t){if(Me(t,16,"block"),!nL(e))throw new Error("_decryptBlock accepts result of expandKeyLE");let r=Fe(t);je(r);let{s0:i,s1:n,s2:o,s3:a}=wh(e,r[0],r[1],r[2],r[3]);return r[0]=i,r[1]=n,r[2]=o,r[3]=a,je(r),t}function _h(e){let t=0;for(let r=it-1;r>=0;r--){let i=(e[r]&128)>>>7;e[r]=e[r]<<1|t,t=i}return e[it-1]^=135&-t,e}function Gc(e,t){if(e.length!==t.length)throw new Error("xorBlock: blocks must have same length");for(let r=0;r<e.length;r++)e[r]=e[r]^t[r];return e}function sL(e,t){if(t.length>e.length)throw new Error("xorend: expected len(B) <= len(A)");let r=e.length-t.length;for(let i=0;i<t.length;i++)e[r+i]=e[r+i]^t[i];return e}function cw(e,t){Em(e);let r=t.length;if(r>127)throw new Error("s2v: expected <= 127 inputs");if(r===0)return bh(VW,e);let i=bh(yh,e);for(let s=0;s<r-1;s++){_h(i);let u=bh(t[s],e);Gc(i,u),Je(u)}let n=t[r-1];Me(n);let o;if(n.byteLength>=it)o=sL(Uint8Array.from(n),i);else{let s=new Uint8Array(it);s.set(n),s[n.length]=128,o=Gc(_h(i),s),Je(s)}let a=bh(o,e);return Je(i,o),a}var it,fw,yh,VW,GW,_m,aw,WW,YW,ow,hw,$C,ZW,Vc,$W,XW,JW,QW,Kc,eY,Sm,WC,tY,YC,rY,sw,aL,iY,nY,uw,bh,oY,aY,sY,uY,pw=Br(()=>{g();GC();tw();it=16,fw=4,yh=new Uint8Array(it),VW=Uint8Array.from([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1]),GW=283;_m=(e,t,r=1)=>{if(!Number.isSafeInteger(r)||r<0||r>4294967040)throw new Error("incBytes: wrong carry "+r);Me(e);for(let i=0;i<e.length;i++){let n=t?i:e.length-1-i;r=r+(e[n]&255)|0,e[n]=r&255,r>>>=8}},aw=(()=>{let e=new Uint8Array(256);for(let r=0,i=1;r<256;r++,i^=lw(i))e[r]=i;let t=new Uint8Array(256);t[0]=99;for(let r=0;r<255;r++){let i=e[255-r];i|=i<<8,t[e[r]]=(i^i>>4^i>>5^i>>6^i>>7^99)&255}return Je(e),t})(),WW=aw.map((e,t)=>aw.indexOf(t)),YW=e=>e<<24|e>>>8,ow=e=>e<<8|e>>>24;hw=ZC(aw,e=>jc(e,3)<<24|e<<16|e<<8|jc(e,2)),$C=ZC(WW,e=>jc(e,11)<<24|jc(e,13)<<16|jc(e,9)<<8|jc(e,14)),ZW=(()=>{let e=new Uint8Array(16);for(let t=0,r=1;t<16;t++,r=lw(r))e[t]=r;return e})();Vc=go({blockSize:16,nonceLength:16},function(t,r){function i(n,o){if(Me(n),o!==void 0&&(Me(o),!Jr(o)))throw new Error("unaligned destination");let a=Mn(t),s=Lt(r),u=[a,s];Jr(n)||u.push(n=Lt(n));let c=XC(a,s,n,o);return Je(...u),c}return{encrypt:(n,o)=>i(n,o),decrypt:(n,o)=>i(n,o)}});$W=go({blockSize:16},function(t,r={}){let i=!r.disablePadding;return{encrypt(n,o){let a=QC(n,i,o),s=Mn(t),{b:u,o:c,out:l}=eL(n,a,o),d=Fe(u);je(d);let p=0;for(;p+4<=d.length;){let{s0:y,s1:_,s2:T,s3:R}=pi(s,d[p+0],d[p+1],d[p+2],d[p+3]);c[p++]=y,c[p++]=_,c[p++]=T,c[p++]=R}if(i){let y=rL(n.subarray(p*4));je(y);let{s0:_,s1:T,s2:R,s3:B}=pi(s,y[0],y[1],y[2],y[3]);c[p++]=_,c[p++]=T,c[p++]=R,c[p++]=B,Je(y)}return je(c),Je(s),u!==n&&Je(u),l},decrypt(n,o){JC(n,o);let a=xm(t);o===void 0&&(o=new Uint8Array(n.length));let s=[a];(!di||!Jr(n))&&s.push(n=Lt(n));let u=Fe(n),c=Fe(o);je(u);for(let l=0;l+4<=u.length;){let{s0:d,s1:p,s2:y,s3:_}=wh(a,u[l+0],u[l+1],u[l+2],u[l+3]);c[l++]=d,c[l++]=p,c[l++]=y,c[l++]=_}return je(c),Je(...s),tL(o,i)}}}),XW=go({blockSize:16,nonceLength:16},function(t,r,i={}){let n=!i.disablePadding;return{encrypt(o,a){let s=QC(o,n,a),u=Mn(t),{b:c,o:l,out:d}=eL(o,s,a),p=Fe(c);je(p);let y=r,_=[u];(!di||!Jr(y))&&_.push(y=Lt(y));let T=Fe(y);je(T);let R=T[0],B=T[1],H=T[2],F=T[3],I=0;for(;I+4<=p.length;)R^=p[I+0],B^=p[I+1],H^=p[I+2],F^=p[I+3],{s0:R,s1:B,s2:H,s3:F}=pi(u,R,B,H,F),l[I++]=R,l[I++]=B,l[I++]=H,l[I++]=F;if(n){let k=rL(o.subarray(I*4));je(k),R^=k[0],B^=k[1],H^=k[2],F^=k[3],{s0:R,s1:B,s2:H,s3:F}=pi(u,R,B,H,F),l[I++]=R,l[I++]=B,l[I++]=H,l[I++]=F,Je(k)}return je(l),Je(..._),c!==o&&Je(c),d},decrypt(o,a){JC(o,a);let s=xm(t);a===void 0&&(a=new Uint8Array(o.length));let u=r,c=[s];(!di||!Jr(u))&&c.push(u=Lt(u));let l=Fe(u);je(l),(!di||!Jr(o))&&c.push(o=Lt(o));let d=Fe(o),p=Fe(a);je(d);let y=l[0],_=l[1],T=l[2],R=l[3];for(let B=0;B+4<=d.length;){let H=y,F=_,I=T,k=R;y=d[B+0],_=d[B+1],T=d[B+2],R=d[B+3];let{s0:D,s1:j,s2:K,s3:G}=wh(s,y,_,T,R);p[B++]=D^H,p[B++]=j^F,p[B++]=K^I,p[B++]=G^k}return je(p),Je(...c),tL(a,n)}}}),JW=go({blockSize:16,nonceLength:16},function(t,r){function i(n,o,a){Me(n);let s=n.length;if(a=Fc(s,a),Q_(n,a))throw new Error("overlapping src and dst not supported");let u=Mn(t),c=r,l=[u];(!di||!Jr(c))&&l.push(c=Lt(c)),(!di||!Jr(n))&&l.push(n=Lt(n));let d=Fe(n),p=Fe(a),y=o?p:d,_=Fe(c);je(d),je(_);let T=_[0],R=_[1],B=_[2],H=_[3];for(let I=0;I+4<=d.length;){let{s0:k,s1:D,s2:j,s3:K}=pi(u,T,R,B,H);p[I+0]=d[I+0]^k,p[I+1]=d[I+1]^D,p[I+2]=d[I+2]^j,p[I+3]=d[I+3]^K,T=y[I++],R=y[I++],B=y[I++],H=y[I++]}let F=it*Math.floor(d.length/fw);if(F<s){di||je(d.subarray(F/4)),{s0:T,s1:R,s2:B,s3:H}=pi(u,T,R,B,H);let I=new Uint32Array([T,R,B,H]);je(I);let k=vm(I);for(let D=F,j=0;D<s;D++,j++)a[D]=n[D]^k[j];Je(k)}return di||je(p.subarray(0,F/4)),Je(...l),a}return{encrypt:(n,o)=>i(n,!0,o),decrypt:(n,o)=>i(n,!1,o)}});QW=go({blockSize:16,nonceLength:12,tagLength:16,withAAD:!0,varSizeNonce:!0},function(t,r,i){if(r.length<8)throw new Error("aes/gcm: invalid nonce length");let n=16;function o(s,u,c){let l=iL(nw,!1,s,c,i);for(let d=0;d<u.length;d++)l[d]^=u[d];return l}function a(){let s=Mn(t),u=yh.slice(),c=yh.slice();if(zc(s,!1,c,c,u),r.length===12)c.set(r);else{let d=yh.slice();Uc(d).setBigUint64(8,BigInt(r.length*8),!1);let y=nw.create(u).update(r).update(d);y.digestInto(c),y.destroy()}let l=zc(s,!1,c,yh);return{xk:s,authKey:u,counter:c,tagMask:l}}return{encrypt(s){let{xk:u,authKey:c,counter:l,tagMask:d}=a(),p=new Uint8Array(s.length+n),y=[u,c,l,d];Jr(s)||y.push(s=Lt(s)),zc(u,!1,l,s,p.subarray(0,s.length));let _=o(c,d,p.subarray(0,p.length-n));return y.push(_),p.set(_,s.length),Je(...y),p},decrypt(s){let{xk:u,authKey:c,counter:l,tagMask:d}=a(),p=[u,c,d,l];Jr(s)||p.push(s=Lt(s));let y=s.subarray(0,-n),_=s.subarray(-n),T=o(c,d,y);if(p.push(T),!gh(T,_))throw Je(...p),new Error("aes-gcm: invalid tag");let R=zc(u,!1,l,y);return Je(...p),R}}}),Kc=(e,t,r)=>i=>{if(!Number.isSafeInteger(i)||t>i||i>r){let n="["+t+".."+r+"]";throw new Error(""+e+": expected value in range "+n+", got "+i)}},eY=go({blockSize:16,nonceLength:12,tagLength:16,withAAD:!0,varSizeNonce:!0},function(t,r,i){let o=Kc("AAD",0,68719476736),a=Kc("plaintext",0,2**36),s=Kc("nonce",12,12),u=Kc("ciphertext",16,2**36+16);Me(t),Em(t),s(r.length),i!==void 0&&o(i.length);function c(){let p=Mn(t),y=new Uint8Array(t.length),_=new Uint8Array(16),T=[p,y],R=r;(!di||!Jr(R))&&T.push(R=Lt(R));let B=Fe(R);je(B);let H=0,F=B[0],I=B[1],k=B[2],D=0;for(let K of[_,y].map(Fe)){let G=Fe(K);for(let S=0;S<G.length;S+=2){let{s0:h,s1:v}=pi(p,H,F,I,k);G[S+0]=h,G[S+1]=v,H=++D}je(G)}let j={authKey:_,encKey:Mn(y)};return Je(...T),j}function l(p,y,_){let T=iL(VC,!0,y,_,i);for(let k=0;k<12;k++)T[k]^=r[k];T[15]&=127;let R=Fe(T);je(R);let B=R[0],H=R[1],F=R[2],I=R[3];return{s0:B,s1:H,s2:F,s3:I}=pi(p,B,H,F,I),R[0]=B,R[1]=H,R[2]=F,R[3]=I,je(R),T}function d(p,y,_){let T=Lt(y);T[15]|=128;let R=zc(p,!0,T,_);return Je(T),R}return{encrypt(p){a(p.length);let{encKey:y,authKey:_}=c(),T=l(y,_,p),R=[y,_,T];Jr(p)||R.push(p=Lt(p));let B=new Uint8Array(p.length+16);return B.set(T,p.length),B.set(d(y,T,p)),Je(...R),B},decrypt(p){u(p.length);let y=p.subarray(-16),{encKey:_,authKey:T}=c(),R=[_,T];Jr(p)||R.push(p=Lt(p));let B=d(_,y,p.subarray(0,-16)),H=l(_,T,B);if(R.push(H),!gh(y,H))throw Je(B,...R),new Error("invalid polyval tag");return Je(...R),B}}});Sm={encrypt(e,t){if(t.length>=2**32)throw new Error("plaintext should be less than 4gb");let r=Mn(e);if(t.length===16)wm(r,t);else{let i=Fe(t);je(i);let n=i[0],o=i[1];for(let a=0,s=1;a<6;a++)for(let u=2;u<i.length;u+=2,s++){let{s0:c,s1:l,s2:d,s3:p}=pi(r,n,o,i[u],i[u+1]);n=c,o=l^su(s),i[u]=d,i[u+1]=p}i[0]=n,i[1]=o,je(i)}r.fill(0)},decrypt(e,t){if(t.length-8>=2**32)throw new Error("ciphertext should be less than 4gb");let r=xm(e),i=t.length/8-1;if(i===1)oL(r,t);else{let n=Fe(t);je(n);let o=n[0],a=n[1];for(let s=0,u=i*6;s<6;s++)for(let c=i*2;c>=1;c-=2,u--){a^=su(u);let{s0:l,s1:d,s2:p,s3:y}=wh(r,o,a,n[c],n[c+1]);o=l,a=d,n[c]=p,n[c+1]=y}n[0]=o,n[1]=a,je(n)}r.fill(0)}},WC=new Uint8Array(8).fill(166),tY=go({blockSize:8},e=>({encrypt(t){if(!t.length||t.length%8!==0)throw new Error("invalid plaintext length");if(t.length===8)throw new Error("8-byte keys not allowed, use AESKWP");let r=ew(WC,t);return Sm.encrypt(e,r),r},decrypt(t){if(t.length%8!==0||t.length<24)throw new Error("invalid ciphertext length");let r=Lt(t);if(Sm.decrypt(e,r),!gh(r.subarray(0,8),WC))throw new Error("integrity check failed");return r.subarray(0,8).fill(0),r.subarray(8)}})),YC=2790873510,rY=go({blockSize:8},e=>({encrypt(t){if(!t.length)throw new Error("invalid plaintext length");let r=Math.ceil(t.length/8)*8,i=new Uint8Array(8+r);i.set(t,8);let n=Fe(i);return n[0]=He(YC),n[1]=He(su(t.length)),Sm.encrypt(e,i),i},decrypt(t){if(t.length<16)throw new Error("invalid ciphertext length");let r=Lt(t),i=Fe(r);Sm.decrypt(e,r);let n=su(He(i[1]))>>>0,o=Math.ceil(n/8)*8;if(He(i[0])!==YC||r.length-8!==o)throw new Error("integrity check failed");for(let a=n;a<o;a++)if(r[8+a]!==0)throw new Error("integrity check failed");return r.subarray(0,8).fill(0),r.subarray(8,8+n)}})),sw=class{constructor(t,r,i){ee(this,"blockLen");ee(this,"key");ee(this,"nonce");ee(this,"state");ee(this,"reseedCnt");this.blockLen=Vc.blockSize;let n=t/8,o=16;this.state=new Uint8Array(n+o),this.key=this.state.subarray(0,n),this.nonce=this.state.subarray(n,n+o),this.reseedCnt=1,_m(this.nonce,!1,1),this.addEntropy(r,i)}update(t){if(Vc(this.key,this.nonce).encrypt(new Uint8Array(this.state.length),this.state),t){Me(t);for(let r=0;r<t.length;r++)this.state[r]^=t[r]}_m(this.nonce,!1,1)}addEntropy(t,r){Me(t,this.state.length,"seed");let i=t.slice();if(r){if(Me(r),r.length>i.length)throw new Error("info length is too big");for(let n=0;n<r.length;n++)i[n]^=r[n]}this.update(i),i.fill(0),this.reseedCnt=1}randomBytes(t,r){if(dh(t),t>2**16)throw new Error("requested output is too big");if(this.reseedCnt>2**48)throw new Error("entropy exhausted");if(r){if(Me(r),r.length>this.state.length)throw new Error("info length is too big");this.update(r)}let i=new Uint8Array(t);return Vc(this.key,this.nonce).encrypt(i,i),_m(this.nonce,!1,Math.ceil(t/this.blockLen)),this.update(r),this.reseedCnt++,i}clean(){this.state.fill(0),this.reseedCnt=0}},aL=e=>(t,r=void 0)=>new sw(e,t,r),iY=aL(128),nY=aL(256);uw=class{constructor(t){ee(this,"blockLen",it);ee(this,"outputLen",it);ee(this,"buffer");ee(this,"pos");ee(this,"finished");ee(this,"destroyed");ee(this,"k1");ee(this,"k2");ee(this,"x");ee(this,"x32");ee(this,"xk");Me(t),Em(t),this.xk=Mn(t),this.buffer=new Uint8Array(it),this.pos=0,this.finished=!1,this.destroyed=!1,this.x=new Uint8Array(it),this.x32=Fe(this.x);let r=new Uint8Array(it);wm(this.xk,r),this.k1=_h(r),this.k2=_h(new Uint8Array(this.k1))}process(t,r){let{x:i,x32:n,xk:o}=this;for(let l=0;l<it;l++)i[l]^=t[r+l];je(n);let{s0:a,s1:s,s2:u,s3:c}=pi(o,n[0],n[1],n[2],n[3]);n[0]=a,n[1]=s,n[2]=u,n[3]=c,je(n)}update(t){rs(this),Me(t);let r=0;if(this.pos){let i=Math.min(it-this.pos,t.length);this.buffer.set(t.subarray(0,i),this.pos),this.pos+=i,r=i,this.pos===it&&r<t.length&&(this.process(this.buffer,0),this.pos=0)}for(;r+it<t.length;)this.process(t,r),r+=it;return r<t.length&&(this.buffer.set(t.subarray(r),0),this.pos=t.length-r),this}digestInto(t){rs(this),ph(t,this),this.finished=!0;let r=t.subarray(0,this.outputLen),i=new Uint8Array(it);this.pos===it?(i.set(this.buffer),Gc(i,this.k1)):(i.set(this.buffer.subarray(0,this.pos)),i[this.pos]=128,Gc(i,this.k2)),r.set(this.x),Gc(r,i),wm(this.xk,r),Je(i)}digest(){let{buffer:t,outputLen:r}=this;this.digestInto(t);let i=t.slice(0,r);return this.destroy(),i}destroy(){let{buffer:t,destroyed:r,x:i,xk:n,k1:o,k2:a}=this;r||(this.destroyed=!0,Je(t,i,n,o,a))}},bh=mh(16,e=>new uw(e));oY=()=>{throw new Error('"siv" from v1 is now "gcmsiv"')},aY=go({blockSize:16,tagLength:16,withAAD:!0},function(t,...r){let i=Kc("plaintext",0,5444517870735016e24),n=Kc("ciphertext",16,2**132+16);if(r.length>126)throw new Error('"AAD" expected <= 126 items');if(r.forEach(s=>Me(s)),Me(t),![32,48,64].includes(t.length))throw new Error('"aes key" expected Uint8Array of length 32/48/64, got length='+t.length);let o=t.subarray(0,t.length/2),a=t.subarray(t.length/2);return{encrypt(s){i(s.length);let u=cw(o,[...r,s]),c=Uint8Array.from(u);c[8]&=127,c[12]&=127;let l=Vc(a,c).encrypt(s);return ew(u,l)},decrypt(s){n(s.length);let u=s.subarray(0,it),c=s.subarray(it),l=Uint8Array.from(u);l[8]&=127,l[12]&=127;let d=Vc(a,l).decrypt(c),p=cw(o,[...r,d]);if(gh(p,u))return d;throw Je(d),new Error("invalid siv tag")}}}),sY=Object.freeze({expandKeyLE:Mn,expandKeyDecLE:xm,encrypt:pi,decrypt:wh,encryptBlock:wm,decryptBlock:oL,ctrCounter:XC,ctr32:zc,dbl:_h,xorBlock:Gc,xorend:sL,s2v:cw}),uY=Object.freeze({incBytes:_m})});var lL=P((uce,fL)=>{"use strict";g();var{secp256k1:uL}=(Il(),$i(Ol)),{sha512:cY,sha256:fY}=(vl(),$i(Wp)),{hmac:lY}=(ig(),$i(fb)),{cbc:cL}=(pw(),$i(dw)),hY=Gt(),os=Oe(),dY=Ui();function Sh(e){return f.Buffer.from(e.buffer,e.byteOffset,e.byteLength)}function gw(e,t){return Sh(lY(fY,e,t))}function pY(e,t){if(e.length!==t.length)return!1;for(var r=0,i=0;i<e.length;i++)r|=e[i]^t[i];return r===0}var Om=function(){};Om.encrypt=function(e,t,r){os.checkArgument(e),os.checkArgument(t),os.checkArgument(r),r=r||dY.getRandomBuffer(128/8);var i=cL(Uint8Array.from(t),Uint8Array.from(r)).encrypt(Uint8Array.from(e));return f.Buffer.concat([f.Buffer.from(r),Sh(i)])};Om.decrypt=function(e,t){os.checkArgument(e),os.checkArgument(t);var r=e.slice(0,128/8),i=e.slice(128/8),n=cL(Uint8Array.from(t),Uint8Array.from(r)).decrypt(Uint8Array.from(i));return Sh(n)};var Wc=function e(t){if(!(this instanceof e))return new e(t);this.opts=t||{}};Wc.prototype.privateKey=function(e){return os.checkArgument(e,"no private key provided"),this._privateKey=e||null,this};Wc.prototype.publicKey=function(e){return os.checkArgument(e,"no public key provided"),this._publicKey=e||null,this};var Im=function(e,t){var r="_"+e;Object.defineProperty(Wc.prototype,e,{configurable:!1,enumerable:!0,get:function(){var i=this[r];return i||(i=this[r]=t.apply(this)),i}})};Im("Rbuf",function(){var e=this._privateKey.bn.toBuffer({size:32});return Sh(uL.getPublicKey(Uint8Array.from(e),!0))});Im("kEkM",function(){var e=this._privateKey.bn.toBuffer({size:32}),t=this._publicKey.toDER(),r=uL.getSharedSecret(Uint8Array.from(e),Uint8Array.from(t),!0),i=r.slice(1);return Sh(cY(i))});Im("kE",function(){return this.kEkM.slice(0,32)});Im("kM",function(){return this.kEkM.slice(32,64)});Wc.prototype.encrypt=function(e,t){f.Buffer.isBuffer(e)||(e=f.Buffer.from(e)),t===void 0&&(t=gw(this._privateKey.toBuffer(),e).slice(0,16));var r=Om.encrypt(e,this.kE,t),i=gw(this.kM,r);return this.opts.shortTag&&(i=i.slice(0,4)),this.opts.noKey?f.Buffer.concat([r,i]):f.Buffer.concat([this.Rbuf,r,i])};Wc.prototype.decrypt=function(e){os.checkArgument(e);var t=0,r=this.opts.shortTag?4:32;if(!this.opts.noKey){var i;switch(e[0]){case 4:i=e.slice(0,65);break;case 3:case 2:i=e.slice(0,33);break;default:throw new Error("Invalid type: "+e[0])}this._publicKey=hY.fromDER(i),t+=i.length}var n=e.slice(t,e.length-r),o=e.slice(e.length-r,e.length),a=gw(this.kM,n);if(this.opts.shortTag&&(a=a.slice(0,4)),!pY(o,a))throw new Error("Invalid checksum");return Om.decrypt(n,this.kE)};fL.exports=Wc});var dL=P((fce,hL)=>{"use strict";g();var gY={name:"ECIES",message:"Internal Error on bsv-ecies Module {0}",errors:[{name:"DecryptionError",message:"Invalid Message: {0}"},{name:"UnsupportAlgorithm",message:"Unsupport Algorithm: {0}"}]};hL.exports=ci().extend(gY)});var yL=P((hce,vL)=>{"use strict";g();var mw=Gt(),vw=Zr(),zi=Oe(),mY=lL(),Am=dL(),{secp256k1:pL}=(Il(),$i(Ol)),{sha512:vY,sha256:yY}=(vl(),$i(Wp)),{hmac:bY}=(ig(),$i(fb)),{cbc:gL}=(pw(),$i(dw));function Eh(e){return f.Buffer.from(e.buffer,e.byteOffset,e.byteLength)}function mL(e,t){return Eh(bY(yY,t,e))}var Tm=function(){};Tm.encrypt=function(e,t,r){return zi.checkArgument(e),zi.checkArgument(t),zi.checkArgument(r),zi.checkArgument(t.length===16,"keybuf length must be 16"),zi.checkArgument(r.length===16,"ivbuf length must be 16"),Eh(gL(Uint8Array.from(t),Uint8Array.from(r)).encrypt(Uint8Array.from(e)))};Tm.decrypt=function(e,t,r){return zi.checkArgument(e),zi.checkArgument(t),zi.checkArgument(r),zi.checkArgument(t.length===16,"keybuf length must be 16"),zi.checkArgument(r.length===16,"ivbuf length must be 16"),Eh(gL(Uint8Array.from(t),Uint8Array.from(r)).decrypt(Uint8Array.from(e)))};var uu=function e(t,r="BIE1"){if(r!=="BIE1")throw new Am.UnsupportAlgorithm(r);if(!(this instanceof e))return new e(t,r);this._privateKey=new vw,this.opts=t||{},this.opts.ephemeralKey=!0};uu.prototype.privateKey=function(e){return zi.checkArgument(vw.isValid(e),"no private key provided"),this._privateKey=vw(e.toHex())||null,this.opts.ephemeralKey=!1,this};uu.prototype.publicKey=function(e){return zi.checkArgument(mw.isValid(e),"no public key provided"),this._publicKey=mw(e.toString())||null,this._publicKey!=null&&(this.opts.fixedPublicKey=!0),this};var xh=function(e,t){var r="_"+e;Object.defineProperty(uu.prototype,e,{configurable:!1,enumerable:!0,get:function(){var i=this[r];return i=this[r]=t.apply(this),i}})};xh("Rbuf",function(){var e=this._privateKey.bn.toBuffer({size:32});return Eh(pL.getPublicKey(Uint8Array.from(e),!0))});xh("ivkEkM",function(){var e=this._privateKey.bn.toBuffer({size:32}),t=this._publicKey.toDER(),r=pL.getSharedSecret(Uint8Array.from(e),Uint8Array.from(t),!0);return Eh(vY(r))});xh("iv",function(){return this.ivkEkM.slice(0,16)});xh("kE",function(){return this.ivkEkM.slice(16,32)});xh("kM",function(){return this.ivkEkM.slice(32,64)});uu.prototype.encrypt=function(e){f.Buffer.isBuffer(e)||(e=f.Buffer.from(e));var t=Tm.encrypt(e,this.kE,this.iv),r,i=f.Buffer.from("BIE1");this.opts.noKey&&!this.opts.ephemeralKey?r=f.Buffer.concat([i,t]):r=f.Buffer.concat([i,this.Rbuf,t]);var n=mL(r,this.kM);return this.opts.shortTag&&(n=n.slice(0,4)),f.Buffer.concat([r,n])};uu.prototype.decrypt=function(e){zi.checkArgument(f.Buffer.isBuffer(e),"ciphetext must be a buffer");var t=this.opts.shortTag?4:32,r=4,i=e.slice(0,4);if(!i.equals(f.Buffer.from("BIE1")))throw new Am.DecryptionError("Invalid Magic");if(!this.opts.noKey){var n=e.slice(4,37);this.opts.fixedPublicKey?console.log('Notice: Overriding PublicKey in message. Consider use "noKey" option if you are not sending message to electrum and do not want to use ephemeral key'):this._publicKey=mw.fromDER(n),r=37}var o=e.slice(r,e.length-t),a=e.slice(e.length-t,e.length),s=mL(e.slice(0,e.length-t),this.kM);if(this.opts.shortTag&&(s=s.slice(0,4)),a.length!==s.length)throw new Am.DecryptionError("Invalid checksum");for(var u=0,c=0;c<s.length;c++)u|=a[c]^s[c];if(u!==0)throw new Am.DecryptionError("Invalid checksum");return Tm.decrypt(o,this.kE,this.iv)};uu.bitcoreECIES=mY;vL.exports=uu});var _L=P((pce,bL)=>{g();bL.exports=yL()});var Pm=P((mce,SL)=>{"use strict";g();function bo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function wL(e,t){for(var r="",i=0,n=-1,o=0,a,s=0;s<=e.length;++s){if(s<e.length)a=e.charCodeAt(s);else{if(a===47)break;a=47}if(a===47){if(!(n===s-1||o===1))if(n!==s-1&&o===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var u=r.lastIndexOf("/");if(u!==r.length-1){u===-1?(r="",i=0):(r=r.slice(0,u),i=r.length-1-r.lastIndexOf("/")),n=s,o=0;continue}}else if(r.length===2||r.length===1){r="",i=0,n=s,o=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(n+1,s):r=e.slice(n+1,s),i=s-n-1;n=s,o=0}else a===46&&o!==-1?++o:o=-1}return r}function _Y(e,t){var r=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+i:r+e+i:i}var Yc={resolve:function(){for(var t="",r=!1,i,n=arguments.length-1;n>=-1&&!r;n--){var o;n>=0?o=arguments[n]:(i===void 0&&(i=b.default.cwd()),o=i),bo(o),o.length!==0&&(t=o+"/"+t,r=o.charCodeAt(0)===47)}return t=wL(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(bo(t),t.length===0)return".";var r=t.charCodeAt(0)===47,i=t.charCodeAt(t.length-1)===47;return t=wL(t,!r),t.length===0&&!r&&(t="."),t.length>0&&i&&(t+="/"),r?"/"+t:t},isAbsolute:function(t){return bo(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,r=0;r<arguments.length;++r){var i=arguments[r];bo(i),i.length>0&&(t===void 0?t=i:t+="/"+i)}return t===void 0?".":Yc.normalize(t)},relative:function(t,r){if(bo(t),bo(r),t===r||(t=Yc.resolve(t),r=Yc.resolve(r),t===r))return"";for(var i=1;i<t.length&&t.charCodeAt(i)===47;++i);for(var n=t.length,o=n-i,a=1;a<r.length&&r.charCodeAt(a)===47;++a);for(var s=r.length,u=s-a,c=o<u?o:u,l=-1,d=0;d<=c;++d){if(d===c){if(u>c){if(r.charCodeAt(a+d)===47)return r.slice(a+d+1);if(d===0)return r.slice(a+d)}else o>c&&(t.charCodeAt(i+d)===47?l=d:d===0&&(l=0));break}var p=t.charCodeAt(i+d),y=r.charCodeAt(a+d);if(p!==y)break;p===47&&(l=d)}var _="";for(d=i+l+1;d<=n;++d)(d===n||t.charCodeAt(d)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+r.slice(a+l):(a+=l,r.charCodeAt(a)===47&&++a,r.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(bo(t),t.length===0)return".";for(var r=t.charCodeAt(0),i=r===47,n=-1,o=!0,a=t.length-1;a>=1;--a)if(r=t.charCodeAt(a),r===47){if(!o){n=a;break}}else o=!1;return n===-1?i?"/":".":i&&n===1?"//":t.slice(0,n)},basename:function(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');bo(t);var i=0,n=-1,o=!0,a;if(r!==void 0&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var s=r.length-1,u=-1;for(a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){i=a+1;break}}else u===-1&&(o=!1,u=a+1),s>=0&&(c===r.charCodeAt(s)?--s===-1&&(n=a):(s=-1,n=u))}return i===n?n=u:n===-1&&(n=t.length),t.slice(i,n)}else{for(a=t.length-1;a>=0;--a)if(t.charCodeAt(a)===47){if(!o){i=a+1;break}}else n===-1&&(o=!1,n=a+1);return n===-1?"":t.slice(i,n)}},extname:function(t){bo(t);for(var r=-1,i=0,n=-1,o=!0,a=0,s=t.length-1;s>=0;--s){var u=t.charCodeAt(s);if(u===47){if(!o){i=s+1;break}continue}n===-1&&(o=!1,n=s+1),u===46?r===-1?r=s:a!==1&&(a=1):r!==-1&&(a=-1)}return r===-1||n===-1||a===0||a===1&&r===n-1&&r===i+1?"":t.slice(r,n)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return _Y("/",t)},parse:function(t){bo(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return r;var i=t.charCodeAt(0),n=i===47,o;n?(r.root="/",o=1):o=0;for(var a=-1,s=0,u=-1,c=!0,l=t.length-1,d=0;l>=o;--l){if(i=t.charCodeAt(l),i===47){if(!c){s=l+1;break}continue}u===-1&&(c=!1,u=l+1),i===46?a===-1?a=l:d!==1&&(d=1):a!==-1&&(d=-1)}return a===-1||u===-1||d===0||d===1&&a===u-1&&a===s+1?u!==-1&&(s===0&&n?r.base=r.name=t.slice(1,u):r.base=r.name=t.slice(s,u)):(s===0&&n?(r.name=t.slice(1,a),r.base=t.slice(1,u)):(r.name=t.slice(s,a),r.base=t.slice(s,u)),r.ext=t.slice(a,u)),s>0?r.dir=t.slice(0,s-1):n&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};Yc.posix=Yc;SL.exports=Yc});var Oh=P((yce,EL)=>{"use strict";g();EL.exports={}});var PL=P((_ce,TL)=>{"use strict";g();var IL=li(),wY=ao(),Zc=cn(),xL=ut(),SY=Be(),yw=Ze(),AL=Tt(),as=tt(),OL=Pm(),fa;try{fa=Oh()}catch{fa=null}var EY=function(){var e=typeof b.default<"u"&&b.default.env&&b.default.env.BSV_DEBUG||typeof window<"u"&&window.BSV_DEBUG;e&&console.log.apply(console,arguments)};function Bi(e,t){if(!(this instanceof Bi))return new Bi(e,t);this.privateKey=e,this.publicKey=e.publicKey,this.address=e.toAddress(),t=t||{},this.storageDir=t.storageDir||(typeof b.default<"u"?OL.join(b.default.cwd(),".bsv-covenants"):".bsv-covenants"),this.covenantUtxoPath=OL.join(this.storageDir,"covenant_utxos.json"),this.sighashType=xL.SIGHASH_ALL|xL.SIGHASH_FORKID,this.allowNonEnforcing=t.allowNonEnforcing===!0,fa&&this._ensureStorageDir()}Bi.prototype.createFromP2PKH=function(e){if(!this.allowNonEnforcing)throw new Error("SmartContract.Covenant builds a NON-ENFORCING script that reduces to plain P2PK \u2014 it does not constrain the spend. Use SmartContract.PushTx.valueCovenant (output binding) or SmartContract.Token / perpetualCovenant (stateful covenants) for real covenants. To use this demo anyway, construct with { allowNonEnforcing: true }.");e.script||(e.script=Bi.reconstructP2pkhScript(this.address));var t=new AL().from({txId:e.txid,outputIndex:e.vout,script:e.script,satoshis:e.satoshis}).to(this.address,e.satoshis-1e3),r=as.fromHex(e.script),i=IL.sighashPreimage(t,this.sighashType,0,r,new yw(e.satoshis)),n=SY.sha256sha256(i),o=new as().add("OP_DUP").add("OP_HASH256").add(n).add("OP_EQUALVERIFY").add("OP_DROP").add(this.publicKey.toBuffer()).add("OP_CHECKSIG");t.outputs[0].setScript(o),t.sign(this.privateKey);var a={txid:t.id,vout:0,satoshis:e.satoshis-1e3,script:o.toHex(),scriptPubKey:o.toHex(),preimageHash:n.toString("hex"),originalPreimage:i.toString("hex"),status:"local",createdAt:new Date().toISOString(),type:"preimage_covenant"};return{transaction:t,covenantUtxo:a}};Bi.prototype.createSpendingTx=function(e,t,r){var i=t||this.address,n=r||e.satoshis-500,o=new AL;o.addInput(new wY({prevTxId:e.txid,outputIndex:e.vout,script:as.empty()}),as.fromHex(e.script),e.satoshis),o.to(i,n);var a=as.fromHex(e.script),s=IL.sign(o,this.privateKey,this.sighashType,0,a,new yw(e.satoshis)),u=f.Buffer.concat([s.toDER(),f.Buffer.from([this.sighashType])]),c=f.Buffer.from(e.originalPreimage,"hex"),l=new as().add(u).add(c);return o.inputs[0].setScript(l),o};Bi.prototype.validate=function(e,t){var r=new Zc,i=Zc.SCRIPT_VERIFY_P2SH|Zc.SCRIPT_VERIFY_STRICTENC|Zc.SCRIPT_VERIFY_DERSIG|Zc.SCRIPT_VERIFY_LOW_S|Zc.SCRIPT_ENABLE_SIGHASH_FORKID,n=e.inputs[0].script,o=as.fromHex(t.script),a=r.verify(n,o,e,0,i,new yw(t.satoshis));return{valid:a,error:a?null:r.errstr}};Bi.prototype.save=function(e){if(!fa)return EY("File system operations not available in browser environment"),e;var t=this.list();return t.push(e),fa.writeFileSync(this.covenantUtxoPath,JSON.stringify(t,null,2)),e};Bi.prototype.load=function(e){var t=this.list();if(e){var r=t.find(function(i){return i.txid===e});if(!r)throw new Error("Covenant UTXO with TXID "+e+" not found");return r}else{var r=t.find(function(n){return n.type==="preimage_covenant"});if(!r)throw new Error("No preimage covenant UTXO found");return r}};Bi.prototype.list=function(){return fa.existsSync(this.covenantUtxoPath)?JSON.parse(fa.readFileSync(this.covenantUtxoPath,"utf8")):[]};Bi.prototype.getPortfolio=function(){var e=this.list(),t={total:e.length,totalValue:e.reduce(function(r,i){return r+i.satoshis},0),byStatus:{},recent:e.slice(-5)};return e.forEach(function(r){var i=r.status||"local";t.byStatus[i]||(t.byStatus[i]={count:0,value:0}),t.byStatus[i].count++,t.byStatus[i].value+=r.satoshis}),t};Bi.prototype.completeFlow=function(e,t){var r=this.createFromP2PKH(e),i=this.save(r.covenantUtxo);t&&t(r.transaction,"creation");var n=this.createSpendingTx(i),o=this.validate(n,i);return t&&o.valid&&t(n,"spending"),{creationTx:r.transaction,spendingTx:n,covenantUtxo:i,validation:o,success:o.valid}};Bi.prototype._ensureStorageDir=function(){fa.existsSync(this.storageDir)||fa.mkdirSync(this.storageDir,{recursive:!0})};Bi.reconstructP2pkhScript=function(e){return as.buildPublicKeyHashOut(e).toHex()};TL.exports=Bi});var _o=P((Ece,kL)=>{"use strict";g();var xY=li(),OY=Ze(),IY=Tt(),AY=Zr(),RL=tt(),Sce=Kt();function Ae(e,t){if(!(this instanceof Ae))return new Ae(e,t);this.preimage=f.Buffer.isBuffer(e)?e:f.Buffer.from(e,"hex"),this.options=t||{},this.strategy=this.options.strategy||"DYNAMIC",this.fields=null,this.sighashInfo=null,this.options.deferExtraction||this._extractFields()}Ae.LEFT_FIXED_LENGTH=104;Ae.RIGHT_FIXED_LENGTH=52;Ae.MIN_PREIMAGE_LENGTH=Ae.LEFT_FIXED_LENGTH+1+Ae.RIGHT_FIXED_LENGTH;Ae.prototype.extract=function(e){return this.strategy=e||this.strategy,this._extractFields(),this.fields};Ae.prototype.getSighashInfo=function(){return this.fields||this._extractFields(),this.sighashInfo};Ae.prototype.getField=function(e){return this.fields||this._extractFields(),this.fields[e]};Ae.prototype.extractField=function(e,t){t=t||{},this.fields||this._extractFields();var r=this._parsePreimageStructure(),i=this._generateBidirectionalASM(e,r,t.includeComments),n=this._extractSpecificField(e,r),o=this._interpretField(e,n,r);return{field:e,value:n?n.toString("hex"):null,buffer:n,asm:i,interpretation:o,strategy:this._getExtractionStrategy(e),structure:r._structure}};Ae.prototype.generateASM=function(e,t){var r=this._parsePreimageStructure();return this._generateBidirectionalASM(e,r,t)};Ae.prototype.extractFields=function(e){var t={};return e.forEach(function(r){t[r]=this.extractField(r)}.bind(this)),t};Ae.prototype.validate=function(){var e=[],t=[];if(this.preimage.length<Ae.MIN_PREIMAGE_LENGTH)return e.push("Preimage too short: "+this.preimage.length+" bytes (BIP-143 preimage requires at least "+Ae.MIN_PREIMAGE_LENGTH+")"),{valid:!1,errors:e,warnings:t,sighashInfo:this.sighashInfo};this.fields||this._extractFields();var r=["version","hashPrevouts","hashSequence","outpoint","scriptCode","amount","sequence","hashOutputs","locktime","sighash"];return r.forEach(function(i){this.fields[i]||e.push("Missing required field: "+i)}.bind(this)),this.sighashInfo.hasZeroHashes&&t.push("Zero hashes detected - check SIGHASH flags: "+this.sighashInfo.zeroFields.join(", ")),{valid:e.length===0,errors:e,warnings:t,sighashInfo:this.sighashInfo}};Ae.prototype.toObject=function(){return this.fields||this._extractFields(),{preimage:this.preimage.toString("hex"),length:this.preimage.length,strategy:this.strategy,fields:{version:this.fields.version?this.fields.version.toString("hex"):null,hashPrevouts:this.fields.hashPrevouts?this.fields.hashPrevouts.toString("hex"):null,hashSequence:this.fields.hashSequence?this.fields.hashSequence.toString("hex"):null,outpoint:this.fields.outpoint?this.fields.outpoint.toString("hex"):null,scriptCode:this.fields.scriptCode?this.fields.scriptCode.toString("hex"):null,scriptCodeLength:this.fields.scriptCodeLength,amount:this.fields.amount?this.fields.amount.toString("hex"):null,sequence:this.fields.sequence?this.fields.sequence.toString("hex"):null,hashOutputs:this.fields.hashOutputs?this.fields.hashOutputs.toString("hex"):null,locktime:this.fields.locktime?this.fields.locktime.toString("hex"):null,sighash:this.fields.sighash?this.fields.sighash.toString("hex"):null},sighashInfo:this.sighashInfo,validation:this.validate()}};Ae.prototype._extractFields=function(){if(this.fields={},this.sighashInfo={flag:null,hasZeroHashes:!1,zeroFields:[],warnings:[]},this.preimage.length<Ae.MIN_PREIMAGE_LENGTH)throw new Error("Preimage too short: "+this.preimage.length+" bytes (BIP-143 preimage requires at least "+Ae.MIN_PREIMAGE_LENGTH+")");try{this.strategy==="LEFT"||this.strategy==="DYNAMIC"?this._extractFromLeft():this.strategy==="RIGHT"&&this._extractFromRight(),this._analyzeSighash()}catch(e){if(this.strategy==="DYNAMIC")try{this.strategy="RIGHT",this._extractFromRight(),this._analyzeSighash()}catch{throw new Error("Failed to extract preimage fields with any strategy: "+e.message)}else throw e}};Ae.prototype._extractFromLeft=function(){var e=0;this.fields.version=this.preimage.slice(e,e+4),e+=4,this.fields.hashPrevouts=this.preimage.slice(e,e+32),e+=32,this.fields.hashSequence=this.preimage.slice(e,e+32),e+=32,this.fields.outpoint=this.preimage.slice(e,e+36),e+=36;var t=Ae.decodeCompactSize(this.preimage,e);this.fields.scriptCodeLength=t.value,e=t.nextOffset,this.fields.scriptCode=this.preimage.slice(e,e+this.fields.scriptCodeLength),e+=this.fields.scriptCodeLength,this.fields.amount=this.preimage.slice(e,e+8),e+=8,this.fields.sequence=this.preimage.slice(e,e+4),e+=4,this.fields.hashOutputs=this.preimage.slice(e,e+32),e+=32,this.fields.locktime=this.preimage.slice(e,e+4),e+=4,this.fields.sighash=this.preimage.slice(e,e+4)};Ae.prototype._extractFromRight=function(){var e=this.preimage.length,t=e;t-=4,this.fields.sighash=this.preimage.slice(t,t+4),t-=4,this.fields.locktime=this.preimage.slice(t,t+4),t-=32,this.fields.hashOutputs=this.preimage.slice(t,t+32),t-=4,this.fields.sequence=this.preimage.slice(t,t+4),t-=8,this.fields.amount=this.preimage.slice(t,t+8);var r=104,i=Ae.decodeCompactSize(this.preimage,r);this.fields.scriptCodeLength=i.value,this.fields.scriptCode=this.preimage.slice(i.nextOffset,i.nextOffset+this.fields.scriptCodeLength),this.fields.version=this.preimage.slice(0,4),this.fields.hashPrevouts=this.preimage.slice(4,36),this.fields.hashSequence=this.preimage.slice(36,68),this.fields.outpoint=this.preimage.slice(68,104)};Ae.prototype._analyzeSighash=function(){if(this.fields.sighash){var e=this.fields.sighash.readUInt32LE(0);this.sighashInfo.flag=e;var t=e&31,r=(e&128)!==0,i=(e&64)!==0,n=f.Buffer.alloc(32);r&&this.fields.hashPrevouts.equals(n)&&(this.sighashInfo.hasZeroHashes=!0,this.sighashInfo.zeroFields.push("hashPrevouts"),this.sighashInfo.warnings.push("ANYONECANPAY flag detected - hashPrevouts is zero")),t===2&&this.fields.hashSequence.equals(n)&&(this.sighashInfo.hasZeroHashes=!0,this.sighashInfo.zeroFields.push("hashSequence"),this.sighashInfo.warnings.push("SIGHASH_NONE flag detected - hashSequence is zero")),(t===2||t===3)&&this.fields.hashOutputs.equals(n)&&(this.sighashInfo.hasZeroHashes=!0,this.sighashInfo.zeroFields.push("hashOutputs"),this.sighashInfo.warnings.push("SIGHASH_NONE/SINGLE flag detected - hashOutputs is zero"));var o=[];t===1?o.push("ALL"):t===2?o.push("NONE"):t===3&&o.push("SINGLE"),r&&o.push("ANYONECANPAY"),i&&o.push("FORKID"),this.sighashInfo.flagName=o.join(" | ")}};Ae.prototype._parsePreimageStructure=function(){for(var e=this.preimage,t=0,r={},i=[{name:"nVersion",len:4},{name:"hashPrevouts",len:32},{name:"hashSequence",len:32},{name:"outpoint_txid",len:32},{name:"outpoint_vout",len:4}],n=[{name:"value",len:8},{name:"nSequence",len:4},{name:"hashOutputs",len:32},{name:"nLocktime",len:4},{name:"sighashType",len:4}],o=0;o<i.length;o++){var a=i[o];r[a.name]=e.slice(t,t+a.len).toString("hex"),t+=a.len}var s=Ae.decodeCompactSize(e,t);r.scriptLen=s.value,r.scriptLenSize=s.bytes,r.scriptLenRaw=e.slice(t,t+s.bytes).toString("hex"),t+=s.bytes,r.scriptCode=e.slice(t,t+r.scriptLen).toString("hex"),t+=r.scriptLen;for(var u=0;u<n.length;u++){var c=n[u];r[c.name]=e.slice(t,t+c.len).toString("hex"),t+=c.len}var l=i.reduce(function(p,y){return p+y.len},0),d=n.reduce(function(p,y){return p+y.len},0);return r._structure={leftFixed:l,scriptLenVarint:s.bytes,scriptCode:r.scriptLen,rightFixed:d,totalCalculated:l+s.bytes+r.scriptLen+d,totalActual:e.length},r};Ae.prototype._generateBidirectionalASM=function(e,t,r){var i=["value","nSequence","hashOutputs","nLocktime","sighashType"],n=["nVersion","hashPrevouts","hashSequence","outpoint_txid","outpoint_vout"];if(i.includes(e))return this._generateRightExtractionASM(e,r);if(n.includes(e))return this._generateLeftExtractionASM(e,r);if(e==="scriptCode")return this._generateDynamicExtractionASM(t,r);if(e==="scriptLen")return this._generateScriptLenExtractionASM(t,r);throw new Error("Unknown field: "+e)};Ae.prototype._generateRightExtractionASM=function(e,t){for(var r=[{name:"value",len:8},{name:"nSequence",len:4},{name:"hashOutputs",len:32},{name:"nLocktime",len:4},{name:"sighashType",len:4}],i=0,n=0,o=!1,a=0;a<r.length;a++){var s=r[a];if(s.name===e){n=s.len,o=!0;break}i+=s.len}if(!o)throw new Error("Field not found in RIGHT fields: "+e);var u=52,c=u-i,l=[];return t?(l.push("# \u{1F504} Extract "+e+" from RIGHT side (bidirectional strategy)"),l.push("OP_SIZE # Push preimage size: [preimage, size]")):l.push("OP_SIZE"),t?l=l.concat([c+" OP_SUB # Calculate split point: [preimage, split_point]","OP_SPLIT # Split: [left_part, right_part]","OP_NIP # Drop left (OP_SPLIT leaves right on top): [right_part]",n+" OP_SPLIT # Extract field: ["+e+", remaining]","OP_DROP # Clean up: ["+e+"]","# \u2705 Result: "+e+" is now on top of stack"]):l=l.concat([c+" OP_SUB","OP_SPLIT","OP_NIP",n+" OP_SPLIT","OP_DROP"]),l.join(`
|
|
77
77
|
`)};Ae.prototype._generateLeftExtractionASM=function(e,t){var r=[{name:"nVersion",len:4,offset:0},{name:"hashPrevouts",len:32,offset:4},{name:"hashSequence",len:32,offset:36},{name:"outpoint_txid",len:32,offset:68},{name:"outpoint_vout",len:4,offset:100}],i=r.find(function(o){return o.name===e});if(!i)throw new Error("Field not found in LEFT fields: "+e);var n=[];return t?n=["# \u{1F504} Extract "+e+" from LEFT side (bidirectional strategy)",i.offset+" OP_SPLIT # Skip to field: [prefix, remainder]","OP_NIP # Drop prefix (OP_SPLIT leaves remainder on top): [remainder]",i.len+" OP_SPLIT # Extract field: ["+e+", suffix]","OP_DROP # Clean up: ["+e+"]","# \u2705 Result: "+e+" is now on top of stack"]:n=[i.offset+" OP_SPLIT","OP_NIP",i.len+" OP_SPLIT","OP_DROP"],n.join(`
|
|
78
78
|
`)};Ae.prototype._generateDynamicExtractionASM=function(e,t){var r=104+e.scriptLenSize;return["# \u{1F3AF} Extract scriptCode DYNAMICALLY with CompactSize varint support",r+" OP_SPLIT # Skip left zone + scriptLen varint: [left_zone, remainder]","OP_NIP # Drop left (OP_SPLIT leaves remainder on top): [remainder]",e.scriptLen+" OP_SPLIT # Extract scriptCode: [scriptCode, right_zone]","OP_DROP # Clean up: [scriptCode]","# \u2705 Result: scriptCode extracted with "+e.scriptLenSize+"-byte varint awareness"].join(`
|