mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-30 04:58:01 +00:00
2 lines
148 KiB
JavaScript
2 lines
148 KiB
JavaScript
/*! For license information please see modu.ca884b0213574af1.js.LICENSE.txt */
|
||
(("undefined"!=typeof self?self:this).webpackChunk_pezkuwi_apps=("undefined"!=typeof self?self:this).webpackChunk_pezkuwi_apps||[]).push([[2843],{919(e,t,n){"use strict";n.d(t,{TO:()=>N,br:()=>i,L8:()=>r});var r={};n.r(r),n.d(r,{decode:()=>A,encodeTo:()=>O,encodingLength:()=>T});var i={};n.r(i),n.d(i,{Digest:()=>H,create:()=>C,decode:()=>F,equals:()=>P}),new Uint8Array(0);const o=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")};class s{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class c{constructor(e,t,n){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return u(this,e)}}class a{constructor(e){this.decoders=e}or(e){return u(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const u=(e,t)=>new a({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class l{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new s(e,t,n),this.decoder=new c(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const f=({name:e,prefix:t,encode:n,decode:r})=>new l(e,t,n,r),h=({prefix:e,name:t,alphabet:n})=>{const{encode:r,decode:i}=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(255!==n[s])throw new TypeError(o+" is ambiguous");n[s]=i}var c=e.length,a=e.charAt(0),u=Math.log(c)/Math.log(256),l=Math.log(256)/Math.log(c);function f(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[t]){for(var r=0,i=0;e[t]===a;)r++,t++;for(var o=(e.length-t)*u+1>>>0,s=new Uint8Array(o);e[t];){var l=n[e.charCodeAt(t)];if(255===l)return;for(var f=0,h=o-1;(0!==l||f<i)&&-1!==h;h--,f++)l+=c*s[h]>>>0,s[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=f,t++}if(" "!==e[t]){for(var d=o-i;d!==o&&0===s[d];)d++;for(var p=new Uint8Array(r+(o-d)),g=r;d!==o;)p[g++]=s[d++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var s=(o-i)*l+1>>>0,u=new Uint8Array(s);i!==o;){for(var f=t[i],h=0,d=s-1;(0!==f||h<r)&&-1!==d;d--,h++)f+=256*u[d]>>>0,u[d]=f%c>>>0,f=f/c>>>0;if(0!==f)throw new Error("Non-zero carry");r=h,i++}for(var p=s-r;p!==s&&0===u[p];)p++;for(var g=a.repeat(n);p<s;++p)g+=e.charAt(u[p]);return g},decodeUnsafe:f,decode:function(e){var n=f(e);if(n)return n;throw new Error(`Non-${t} character`)}}}(n,t);return f({prefix:e,name:t,encode:r,decode:e=>o(i(e))})},d=({name:e,prefix:t,bitsPerChar:n,alphabet:r})=>f({prefix:t,name:e,encode:e=>((e,t,n)=>{const r="="===t[t.length-1],i=(1<<n)-1;let o="",s=0,c=0;for(let r=0;r<e.length;++r)for(c=c<<8|e[r],s+=8;s>n;)s-=n,o+=t[i&c>>s];if(s&&(o+=t[i&c<<n-s]),r)for(;o.length*n&7;)o+="=";return o})(e,r,n),decode:t=>((e,t,n,r)=>{const i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;const s=new Uint8Array(o*n/8|0);let c=0,a=0,u=0;for(let t=0;t<o;++t){const o=i[e[t]];if(void 0===o)throw new SyntaxError(`Non-${r} character`);a=a<<n|o,c+=n,c>=8&&(c-=8,s[u++]=255&a>>c)}if(c>=n||255&a<<8-c)throw new SyntaxError("Unexpected end of data");return s})(t,r,n,e)}),p=d({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),g=(d({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),d({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),d({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),d({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),d({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),d({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),d({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),d({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),h({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}));h({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var m=Math.pow(2,31),y=Math.pow(2,7),b=Math.pow(2,14),w=Math.pow(2,21),x=Math.pow(2,28),v=Math.pow(2,35),k=Math.pow(2,42),E=Math.pow(2,49),B=Math.pow(2,56),I=Math.pow(2,63);const S={encode:function e(t,n,r){n=n||[];for(var i=r=r||0;t>=m;)n[r++]=255&t|128,t/=128;for(;-128&t;)n[r++]=255&t|128,t>>>=7;return n[r]=0|t,e.bytes=r-i+1,n},decode:function e(t,n){var r,i=0,o=0,s=n=n||0,c=t.length;do{if(s>=c)throw e.bytes=0,new RangeError("Could not decode varint");r=t[s++],i+=o<28?(127&r)<<o:(127&r)*Math.pow(2,o),o+=7}while(r>=128);return e.bytes=s-n,i},encodingLength:function(e){return e<y?1:e<b?2:e<w?3:e<x?4:e<v?5:e<k?6:e<E?7:e<B?8:e<I?9:10}},A=(e,t=0)=>[S.decode(e,t),S.decode.bytes],O=(e,t,n=0)=>(S.encode(e,t,n),t),T=e=>S.encodingLength(e),C=(e,t)=>{const n=t.byteLength,r=T(e),i=r+T(n),o=new Uint8Array(i+n);return O(e,o,0),O(n,o,r),o.set(t,i),new H(e,n,t,o)},F=e=>{const t=o(e),[n,r]=A(t),[i,s]=A(t.subarray(r)),c=t.subarray(r+s);if(c.byteLength!==i)throw new Error("Incorrect length");return new H(n,i,c,t)},P=(e,t)=>{if(e===t)return!0;{const n=t;return e.code===n.code&&e.size===n.size&&n.bytes instanceof Uint8Array&&((e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0})(e.bytes,n.bytes)}};class H{constructor(e,t,n,r){this.code=e,this.size=t,this.digest=n,this.bytes=r}}const z=(e,t)=>{const{bytes:n,version:r}=e;return 0===r?U(n,D(e),t||g.encoder):q(n,D(e),t||p.encoder)},L=new WeakMap,D=e=>{const t=L.get(e);if(null==t){const t=new Map;return L.set(e,t),t}return t};class N{constructor(e,t,n,r){this.code=t,this.version=e,this.multihash=n,this.bytes=r,this["/"]=r}get asCID(){return this}get byteOffset(){return this.bytes.byteOffset}get byteLength(){return this.bytes.byteLength}toV0(){switch(this.version){case 0:return this;case 1:{const{code:e,multihash:t}=this;if(e!==V)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==M)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return N.createV0(t)}default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}toV1(){switch(this.version){case 0:{const{code:e,digest:t}=this.multihash,n=C(e,t);return N.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 1. This is a bug please report`)}}equals(e){return N.equals(this,e)}static equals(e,t){const n=t;return n&&e.code===n.code&&e.version===n.version&&P(e.multihash,n.multihash)}toString(e){return z(this,e)}toJSON(){return{"/":z(this)}}link(){return this}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return`CID(${this.toString()})`}static asCID(e){if(null==e)return null;const t=e;if(t instanceof N)return t;if(null!=t["/"]&&t["/"]===t.bytes||t.asCID===t){const{version:e,code:n,multihash:r,bytes:i}=t;return new N(e,n,r,i||_(e,n,r.bytes))}if(!0===t[Z]){const{version:e,multihash:n,code:r}=t,i=F(n);return N.create(e,r,i)}return null}static create(e,t,n){if("number"!=typeof t)throw new Error("String codecs are no longer supported");if(!(n.bytes instanceof Uint8Array))throw new Error("Invalid digest");switch(e){case 0:if(t!==V)throw new Error(`Version 0 CID must use dag-pb (code: ${V}) block encoding`);return new N(e,t,n,n.bytes);case 1:{const r=_(e,t,n.bytes);return new N(e,t,n,r)}default:throw new Error("Invalid version")}}static createV0(e){return N.create(0,V,e)}static createV1(e,t){return N.create(1,e,t)}static decode(e){const[t,n]=N.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return t}static decodeFirst(e){const t=N.inspectBytes(e),n=t.size-t.multihashSize,r=o(e.subarray(n,n+t.multihashSize));if(r.byteLength!==t.multihashSize)throw new Error("Incorrect length");const i=r.subarray(t.multihashSize-t.digestSize),s=new H(t.multihashCode,t.digestSize,i,r);return[0===t.version?N.createV0(s):N.createV1(t.codec,s),e.subarray(t.size)]}static inspectBytes(e){let t=0;const n=()=>{const[n,r]=A(e.subarray(t));return t+=r,n};let r=n(),i=V;if(18===r?(r=0,t=0):i=n(),0!==r&&1!==r)throw new RangeError(`Invalid CID version ${r}`);const o=t,s=n(),c=n(),a=t+c;return{version:r,codec:i,multihashCode:s,digestSize:c,multihashSize:a-o,size:a}}static parse(e,t){const[n,r]=R(e,t),i=N.decode(r);if(0===i.version&&"Q"!==e[0])throw Error("Version 0 CID string must not include multibase prefix");return D(i).set(n,e),i}}const R=(e,t)=>{switch(e[0]){case"Q":{const n=t||g;return[g.prefix,n.decode(`${g.prefix}${e}`)]}case g.prefix:{const n=t||g;return[g.prefix,n.decode(e)]}case p.prefix:{const n=t||p;return[p.prefix,n.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},U=(e,t,n)=>{const{prefix:r}=n;if(r!==g.prefix)throw Error(`Cannot string encode V0 in ${n.name} encoding`);const i=t.get(r);if(null==i){const i=n.encode(e).slice(1);return t.set(r,i),i}return i},q=(e,t,n)=>{const{prefix:r}=n,i=t.get(r);if(null==i){const i=n.encode(e);return t.set(r,i),i}return i},V=112,M=18,_=(e,t,n)=>{const r=T(e),i=r+T(t),o=new Uint8Array(i+n.byteLength);return O(e,o,0),O(t,o,r),o.set(n,i),o},Z=Symbol.for("@ipld/js-cid/CID")},7076(e,t,n){"use strict";n.d(t,{t$:()=>R,ev:()=>A});var r=n(76210),i=n(38628),o=n(43556),s=n(81633),c=n(26681);const a=BigInt(0),u=BigInt(1),l=BigInt(2),f=BigInt(8);class h{constructor(e){this.ep=e}static fromBytes(e){(0,s.SJ)()}static fromHex(e){(0,s.SJ)()}get x(){return this.toAffine().x}get y(){return this.toAffine().y}clearCofactor(){return this}assertValidity(){this.ep.assertValidity()}toAffine(e){return this.ep.toAffine(e)}toHex(){return(0,i.My)(this.toBytes())}toString(){return this.toHex()}isTorsionFree(){return!0}isSmallOrder(){return!1}add(e){return this.assertSame(e),this.init(this.ep.add(e.ep))}subtract(e){return this.assertSame(e),this.init(this.ep.subtract(e.ep))}multiply(e){return this.init(this.ep.multiply(e))}multiplyUnsafe(e){return this.init(this.ep.multiplyUnsafe(e))}double(){return this.init(this.ep.double())}negate(){return this.init(this.ep.negate())}precompute(e,t){return this.init(this.ep.precompute(e,t))}toRawBytes(){return this.toBytes()}}function d(e){const{CURVE:t,curveOpts:n,hash:r,eddsaOpts:h}=function(e){const t={a:e.a,d:e.d,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n={Fp:e.Fp,Fn:(0,c.D0)(t.n,e.nBitLength,!0),uvRatio:e.uvRatio},r={randomBytes:e.randomBytes,adjustScalarBytes:e.adjustScalarBytes,domain:e.domain,prehash:e.prehash,mapToCurve:e.mapToCurve};return{CURVE:t,curveOpts:n,hash:e.hash,eddsaOpts:r}}(e),d=function(e,t={}){const n=(0,o.UT)("edwards",e,t,t.FpFnLE),{Fp:r,Fn:c}=n;let h=n.CURVE;const{h:d}=h;(0,s.DS)(t,{},{uvRatio:"function"});const p=l<<BigInt(8*c.BYTES)-u,g=e=>r.create(e),m=t.uvRatio||((e,t)=>{try{return{isValid:!0,value:r.sqrt(r.div(e,t))}}catch(e){return{isValid:!1,value:a}}});if(!function(e,t,n,r){const i=e.sqr(n),o=e.sqr(r),s=e.add(e.mul(t.a,i),o),c=e.add(e.ONE,e.mul(t.d,e.mul(i,o)));return e.eql(s,c)}(r,h,h.Gx,h.Gy))throw new Error("bad curve params: generator point");function y(e,t,n=!1){const r=n?u:a;return(0,s.aK)("coordinate "+e,t,r,p),t}function b(e){if(!(e instanceof v))throw new Error("ExtendedPoint expected")}const w=(0,s.x)((e,t)=>{const{X:n,Y:i,Z:o}=e,s=e.is0();null==t&&(t=s?f:r.inv(o));const c=g(n*t),l=g(i*t),h=r.mul(o,t);if(s)return{x:a,y:u};if(h!==u)throw new Error("invZ was invalid");return{x:c,y:l}}),x=(0,s.x)(e=>{const{a:t,d:n}=h;if(e.is0())throw new Error("bad point: ZERO");const{X:r,Y:i,Z:o,T:s}=e,c=g(r*r),a=g(i*i),u=g(o*o),l=g(u*u),f=g(c*t);if(g(u*g(f+a))!==g(l+g(n*g(c*a))))throw new Error("bad point: equation left != right (1)");if(g(r*i)!==g(o*s))throw new Error("bad point: equation left != right (2)");return!0});class v{constructor(e,t,n,r){this.X=y("x",e),this.Y=y("y",t),this.Z=y("z",n,!0),this.T=y("t",r),Object.freeze(this)}static CURVE(){return h}static fromAffine(e){if(e instanceof v)throw new Error("extended point not allowed");const{x:t,y:n}=e||{};return y("x",t),y("y",n),new v(t,n,u,g(t*n))}static fromBytes(e,t=!1){const n=r.BYTES,{a:i,d:o}=h;e=(0,s.nC)((0,s.eV)(e,n,"point")),(0,s.d6)(t,"zip215");const c=(0,s.nC)(e),l=e[n-1];c[n-1]=-129&l;const f=(0,s.lX)(c),d=t?p:r.ORDER;(0,s.aK)("point.y",f,a,d);const y=g(f*f),b=g(y-u),w=g(o*y-i);let{isValid:x,value:k}=m(b,w);if(!x)throw new Error("bad point: invalid y coordinate");const E=(k&u)===u,B=!!(128&l);if(!t&&k===a&&B)throw new Error("bad point: x=0 and x_0=1");return B!==E&&(k=g(-k)),v.fromAffine({x:k,y:f})}static fromHex(e,t=!1){return v.fromBytes((0,s.qj)("point",e),t)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return k.createCache(this,e),t||this.multiply(l),this}assertValidity(){x(this)}equals(e){b(e);const{X:t,Y:n,Z:r}=this,{X:i,Y:o,Z:s}=e,c=g(t*s),a=g(i*r),u=g(n*s),l=g(o*r);return c===a&&u===l}is0(){return this.equals(v.ZERO)}negate(){return new v(g(-this.X),this.Y,this.Z,g(-this.T))}double(){const{a:e}=h,{X:t,Y:n,Z:r}=this,i=g(t*t),o=g(n*n),s=g(l*g(r*r)),c=g(e*i),a=t+n,u=g(g(a*a)-i-o),f=c+o,d=f-s,p=c-o,m=g(u*d),y=g(f*p),b=g(u*p),w=g(d*f);return new v(m,y,w,b)}add(e){b(e);const{a:t,d:n}=h,{X:r,Y:i,Z:o,T:s}=this,{X:c,Y:a,Z:u,T:l}=e,f=g(r*c),d=g(i*a),p=g(s*n*l),m=g(o*u),y=g((r+i)*(c+a)-f-d),w=m-p,x=m+p,k=g(d-t*f),E=g(y*w),B=g(x*k),I=g(y*k),S=g(w*x);return new v(E,B,S,I)}subtract(e){return this.add(e.negate())}multiply(e){if(!c.isValidNot0(e))throw new Error("invalid scalar: expected 1 <= sc < curve.n");const{p:t,f:n}=k.cached(this,e,e=>(0,o.Ak)(v,e));return(0,o.Ak)(v,[t,n])[0]}multiplyUnsafe(e,t=v.ZERO){if(!c.isValid(e))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return e===a?v.ZERO:this.is0()||e===u?this:k.unsafe(this,e,e=>(0,o.Ak)(v,e),t)}isSmallOrder(){return this.multiplyUnsafe(d).is0()}isTorsionFree(){return k.unsafe(this,h.n).is0()}toAffine(e){return w(this,e)}clearCofactor(){return d===u?this:this.multiplyUnsafe(d)}toBytes(){const{x:e,y:t}=this.toAffine(),n=r.toBytes(t);return n[n.length-1]|=e&u?128:0,n}toHex(){return(0,i.My)(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(e){return(0,o.Ak)(v,e)}static msm(e,t){return(0,o.Xf)(v,c,e,t)}_setWindowSize(e){this.precompute(e)}toRawBytes(){return this.toBytes()}}v.BASE=new v(h.Gx,h.Gy,u,g(h.Gx*h.Gy)),v.ZERO=new v(a,u,u,a),v.Fp=r,v.Fn=c;const k=new o.hT(v,c.BITS);return v.BASE.precompute(8),v}(t,n);return function(e,t){const n=t.Point;return Object.assign({},t,{ExtendedPoint:n,CURVE:e,nBitLength:n.Fn.BITS,nByteLength:n.Fn.BYTES})}(e,function(e,t,n={}){if("function"!=typeof t)throw new Error('"hash" function param is required');(0,s.DS)(n,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:r}=n,{BASE:o,Fp:c,Fn:a}=e,l=n.randomBytes||i.po,f=n.adjustScalarBytes||(e=>e),h=n.domain||((e,t,n)=>{if((0,s.d6)(n,"phflag"),t.length||n)throw new Error("Contexts/pre-hash are not supported");return e});function d(e){return a.create((0,s.lX)(e))}function p(e){const{head:n,prefix:r,scalar:i}=function(e){const n=w.secretKey;e=(0,s.qj)("private key",e,n);const r=(0,s.qj)("hashed private key",t(e),2*n),i=f(r.slice(0,n));return{head:i,prefix:r.slice(n,2*n),scalar:d(i)}}(e),c=o.multiply(i),a=c.toBytes();return{head:n,prefix:r,scalar:i,point:c,pointBytes:a}}function g(e){return p(e).pointBytes}function m(e=Uint8Array.of(),...n){const o=(0,i.Id)(...n);return d(t(h(o,(0,s.qj)("context",e),!!r)))}const y={zip215:!0},b=c.BYTES,w={secretKey:b,publicKey:b,signature:2*b,seed:b};function x(e=l(w.seed)){return(0,s.eV)(e,w.seed,"seed")}const v={getExtendedPublicKey:p,randomSecretKey:x,isValidSecretKey:function(e){return(0,i.aY)(e)&&e.length===a.BYTES},isValidPublicKey:function(t,n){try{return!!e.fromBytes(t,n)}catch(e){return!1}},toMontgomery(t){const{y:n}=e.fromBytes(t),r=w.publicKey,i=32===r;if(!i&&57!==r)throw new Error("only defined for 25519 and 448");const o=i?c.div(u+n,u-n):c.div(n-u,n+u);return c.toBytes(o)},toMontgomerySecret(e){const n=w.secretKey;(0,s.eV)(e,n);const r=t(e.subarray(0,n));return f(r).subarray(0,n)},randomPrivateKey:x,precompute:(t=8,n=e.BASE)=>n.precompute(t,!1)};return Object.freeze({keygen:function(e){const t=v.randomSecretKey(e);return{secretKey:t,publicKey:g(t)}},getPublicKey:g,sign:function(e,t,n={}){e=(0,s.qj)("message",e),r&&(e=r(e));const{prefix:c,scalar:u,pointBytes:l}=p(t),f=m(n.context,c,e),h=o.multiply(f).toBytes(),d=m(n.context,h,l,e),g=a.create(f+d*u);if(!a.isValid(g))throw new Error("sign failed: invalid s");const y=(0,i.Id)(h,a.toBytes(g));return(0,s.eV)(y,w.signature,"result")},verify:function(t,n,i,c=y){const{context:a,zip215:u}=c,l=w.signature;t=(0,s.qj)("signature",t,l),n=(0,s.qj)("message",n),i=(0,s.qj)("publicKey",i,w.publicKey),void 0!==u&&(0,s.d6)(u,"zip215"),r&&(n=r(n));const f=l/2,h=t.subarray(0,f),d=(0,s.lX)(t.subarray(f,l));let p,g,b;try{p=e.fromBytes(i,u),g=e.fromBytes(h,u),b=o.multiplyUnsafe(d)}catch(e){return!1}if(!u&&p.isSmallOrder())return!1;const x=m(a,g.toBytes(),p.toBytes(),n);return g.add(p.multiplyUnsafe(x)).subtract(b).clearCofactor().is0()},utils:v,Point:e,lengths:w})}(d,r,h))}(0,i.AI)("HashToScalar-");const p=BigInt(0),g=BigInt(1),m=BigInt(2),y=(BigInt(3),BigInt(5)),b=BigInt(8),w=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),x=(()=>({p:w,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:b,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")}))();function v(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}const k=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function E(e,t){const n=w,r=(0,c.zi)(t*t*t,n),i=function(e){const t=BigInt(10),n=BigInt(20),r=BigInt(40),i=BigInt(80),o=w,s=e*e%o*e%o,a=(0,c.zH)(s,m,o)*s%o,u=(0,c.zH)(a,g,o)*e%o,l=(0,c.zH)(u,y,o)*u%o,f=(0,c.zH)(l,t,o)*l%o,h=(0,c.zH)(f,n,o)*f%o,d=(0,c.zH)(h,r,o)*h%o,p=(0,c.zH)(d,i,o)*d%o,b=(0,c.zH)(p,i,o)*d%o,x=(0,c.zH)(b,t,o)*l%o;return{pow_p_5_8:(0,c.zH)(x,m,o)*e%o,b2:s}}(e*(0,c.zi)(r*r*t,n)).pow_p_5_8;let o=(0,c.zi)(e*r*i,n);const s=(0,c.zi)(t*o*o,n),a=o,u=(0,c.zi)(o*k,n),l=s===e,f=s===(0,c.zi)(-e,n),h=s===(0,c.zi)(-e*k,n);return l&&(o=a),(f||h)&&(o=u),(0,c.dQ)(o,n)&&(o=(0,c.zi)(-o,n)),{isValid:l||f,value:o}}const B=(()=>(0,c.D0)(x.p,{isLE:!0}))(),I=(()=>(0,c.D0)(x.n,{isLE:!0}))(),S=(()=>({...x,Fp:B,hash:r.Zf,adjustScalarBytes:v,uvRatio:E}))(),A=(()=>d(S))(),O=k,T=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),C=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),F=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),P=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),H=e=>E(g,e),z=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),L=e=>A.Point.Fp.create((0,s.lX)(e)&z);function D(e){const{d:t}=x,n=w,r=e=>B.create(e),i=r(O*e*e),o=r((i+g)*F);let s=BigInt(-1);const a=r((s-t*i)*r(i+t));let{isValid:u,value:l}=E(o,a),f=r(l*e);(0,c.dQ)(f,n)||(f=r(-f)),u||(l=f),u||(s=i);const h=r(s*(i-g)*P-a),d=l*l,p=r((l+l)*a),m=r(h*T),y=r(g-d),b=r(g+d);return new A.Point(r(p*b),r(y*m),r(m*b),r(p*y))}class N extends h{constructor(e){super(e)}static fromAffine(e){return new N(A.Point.fromAffine(e))}assertSame(e){if(!(e instanceof N))throw new Error("RistrettoPoint expected")}init(e){return new N(e)}static hashToCurve(e){return function(e){(0,i.DO)(e,64);const t=D(L(e.subarray(0,32))),n=D(L(e.subarray(32,64)));return new N(t.add(n))}((0,s.qj)("ristrettoHash",e,64))}static fromBytes(e){(0,i.DO)(e,32);const{a:t,d:n}=x,r=w,o=e=>B.create(e),a=L(e);if(!(0,s.ex)(B.toBytes(a),e)||(0,c.dQ)(a,r))throw new Error("invalid ristretto255 encoding 1");const u=o(a*a),l=o(g+t*u),f=o(g-t*u),h=o(l*l),d=o(f*f),m=o(t*n*h-d),{isValid:y,value:b}=H(o(m*d)),v=o(b*f),k=o(b*v*m);let E=o((a+a)*v);(0,c.dQ)(E,r)&&(E=o(-E));const I=o(l*k),S=o(E*I);if(!y||(0,c.dQ)(S,r)||I===p)throw new Error("invalid ristretto255 encoding 2");return new N(new A.Point(E,I,g,S))}static fromHex(e){return N.fromBytes((0,s.qj)("ristrettoHex",e,32))}static msm(e,t){return(0,o.Xf)(N,A.Point.Fn,e,t)}toBytes(){let{X:e,Y:t,Z:n,T:r}=this.ep;const i=w,o=e=>B.create(e),s=o(o(n+t)*o(n-t)),a=o(e*t),u=o(a*a),{value:l}=H(o(s*u)),f=o(l*s),h=o(l*a),d=o(f*h*r);let p;if((0,c.dQ)(r*d,i)){let n=o(t*O),r=o(e*O);e=n,t=r,p=o(f*C)}else p=h;(0,c.dQ)(e*d,i)&&(t=o(-t));let g=o((n-t)*p);return(0,c.dQ)(g,i)&&(g=o(-g)),B.toBytes(g)}equals(e){this.assertSame(e);const{X:t,Y:n}=this.ep,{X:r,Y:i}=e.ep,o=e=>B.create(e),s=o(t*i)===o(n*r),c=o(n*i)===o(t*r);return s||c}is0(){return this.equals(N.ZERO)}}N.BASE=(()=>new N(A.Point.BASE))(),N.ZERO=(()=>new N(A.Point.ZERO))(),N.Fp=(()=>B)(),N.Fn=(()=>I)();const R=N},7784(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},15460(e,t,n){"use strict";n.d(t,{Zf:()=>r});const r=n(76210).Zf},16856(e,t,n){"use strict";n.d(t,{_:()=>E});var r=n(69820),i=n(34882),o=n(57949);function s(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let c="";if(37===s&&(0,o.lV)(e.charCodeAt(n+1))&&(0,o.lV)(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const t=e.charCodeAt(n+1);s<56320&&t>56319&&t<57344?(c=String.fromCharCode(s,t),i=1):c="�"}else c=String.fromCharCode(s);c&&(t.push(e.slice(r,n),encodeURIComponent(c)),r=n+i+1,c=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function c(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function a(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var u=n(84967),l=n(44585);function f(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function h(e){const t=e.spread;return null==t?e.children.length>1:t}var d=n(60549);const p={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=s(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let c,a=e.footnoteCounts.get(r);void 0===a?(a=0,e.footnoteOrder.push(r),c=e.footnoteOrder.length):c=o+1,a+=1,e.footnoteCounts.set(r,a);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return f(e,t);const i={src:s(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:s(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return f(e,t);const i={href:s(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:s(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=h(n[r])}return t}(n):h(t),o={},s=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const e=r[c];(i||0!==c||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?s.push(e):s.push(...e.children)}const a=r[r.length-1];a&&(i||"element"!==a.type||"p"!==a.tagName)&&s.push({type:"text",value:"\n"});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=(0,l.PW)(t.children[1]),s=(0,l.Y)(t.children[t.children.length-1]);o&&s&&(r.position={start:o,end:s}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length;let c=-1;const a=[];for(;++c<s;){const n=t.children[c],r={},s=o?o[c]:void 0;s&&(r.align=s);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),a.push(u)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){const n={type:"text",value:(0,d.E)(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:g,yaml:g,definition:g,footnoteDefinition:g};function g(){}const m={}.hasOwnProperty,y={};function b(e,t){e.position&&(t.position=(0,l.G1)(e))}function w(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&o&&Object.assign(n.properties,(0,i.Ay)(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function x(e,t){const n=t.data||{},r=!("value"in t)||m.call(n,"hProperties")||m.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function v(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function k(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function E(e,t){const n=function(e,t){const n=t||y,r=new Map,o=new Map,s=new Map,c={...p,...n.handlers},a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=k(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=k(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:w,definitionById:r,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:function(e,t){const n=e.type,r=a.handlers[n];if(m.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=(0,i.Ay)(n);return r.children=a.all(e),r}return(0,i.Ay)(e)}return(a.options.unknownHandler||x)(a,e,t)},options:n,patch:b,wrap:v};return(0,u.YR)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),o=n.one(e,void 0),l=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||c,r=e.options.footnoteBackLabel||a,o=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[h]);if(!i)continue;const o=e.all(i),c=String(i.identifier).toUpperCase(),a=s(c.toLowerCase());let u=0;const l=[],d=e.footnoteCounts.get(c);for(;void 0!==d&&++u<=d;){l.length>0&&l.push({type:"text",value:" "});let e="string"==typeof n?n:n(h,u);"string"==typeof e&&(e={type:"text",value:e}),l.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+a+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(h,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=o[o.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...l)}else o.push(...l);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+a},children:e.wrap(o,!0)};e.patch(i,g),f.push(g)}if(0!==f.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...(0,i.Ay)(l),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:"\n"}]}}(n),f=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return l&&((0,r.ok)("children"in f),f.children.push({type:"text",value:"\n"},l)),f}},26681(e,t,n){"use strict";n.d(t,{D0:()=>O,LH:()=>A,Tp:()=>C,dQ:()=>k,jr:()=>B,pS:()=>I,qy:()=>F,zH:()=>m,zi:()=>g});var r=n(81633),i=n(38628);const o=BigInt(0),s=BigInt(1),c=BigInt(2),a=BigInt(3),u=BigInt(4),l=BigInt(5),f=BigInt(7),h=BigInt(8),d=BigInt(9),p=BigInt(16);function g(e,t){const n=e%t;return n>=o?n:t+n}function m(e,t,n){let r=e;for(;t-- >o;)r*=r,r%=n;return r}function y(e,t){if(e===o)throw new Error("invert: expected non-zero number");if(t<=o)throw new Error("invert: expected positive modulus, got "+t);let n=g(e,t),r=t,i=o,c=s,a=s,u=o;for(;n!==o;){const e=r/n,t=r%n,o=i-a*e,s=c-u*e;r=n,n=t,i=a,c=u,a=o,u=s}if(r!==s)throw new Error("invert: does not exist");return g(i,t)}function b(e,t,n){if(!e.eql(e.sqr(t),n))throw new Error("Cannot find square root")}function w(e,t){const n=(e.ORDER+s)/u,r=e.pow(t,n);return b(e,r,t),r}function x(e,t){const n=(e.ORDER-l)/h,r=e.mul(t,c),i=e.pow(r,n),o=e.mul(t,i),s=e.mul(e.mul(o,c),i),a=e.mul(o,e.sub(s,e.ONE));return b(e,a,t),a}function v(e){if(e<a)throw new Error("sqrt is not defined for small field");let t=e-s,n=0;for(;t%c===o;)t/=c,n++;let r=c;const i=O(e);for(;1===S(i,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return w;let u=i.pow(r,t);const l=(t+s)/c;return function(e,r){if(e.is0(r))return r;if(1!==S(e,r))throw new Error("Cannot find square root");let i=n,o=e.mul(e.ONE,u),c=e.pow(r,t),a=e.pow(r,l);for(;!e.eql(c,e.ONE);){if(e.is0(c))return e.ZERO;let t=1,n=e.sqr(c);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===i)throw new Error("Cannot find square root");const r=s<<BigInt(i-t-1),u=e.pow(o,r);i=t,o=e.sqr(u),c=e.mul(c,o),a=e.mul(a,u)}return a}}const k=(e,t)=>(g(e,t)&s)===s,E=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function B(e){const t=E.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"});return(0,r.DS)(e,t),e}function I(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),o=e.inv(i);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),o),r}function S(e,t){const n=(e.ORDER-s)/c,r=e.pow(t,n),i=e.eql(r,e.ONE),o=e.eql(r,e.ZERO),a=e.eql(r,e.neg(e.ONE));if(!i&&!o&&!a)throw new Error("invalid Legendre symbol result");return i?1:o?0:-1}function A(e,t){void 0!==t&&(0,i.Fe)(t);const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function O(e,t,n=!1,i={}){if(e<=o)throw new Error("invalid field: expected ORDER > 0, got "+e);let c,m,k,E=!1;if("object"==typeof t&&null!=t){if(i.sqrt||n)throw new Error("cannot specify opts in two arguments");const e=t;e.BITS&&(c=e.BITS),e.sqrt&&(m=e.sqrt),"boolean"==typeof e.isLE&&(n=e.isLE),"boolean"==typeof e.modFromBytes&&(E=e.modFromBytes),k=e.allowedLengths}else"number"==typeof t&&(c=t),i.sqrt&&(m=i.sqrt);const{nBitLength:B,nByteLength:S}=A(e,c);if(S>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let T;const C=Object.freeze({ORDER:e,isLE:n,BITS:B,BYTES:S,MASK:(0,r.OG)(B),ZERO:o,ONE:s,allowedLengths:k,create:t=>g(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return o<=t&&t<e},is0:e=>e===o,isValidNot0:e=>!C.is0(e)&&C.isValid(e),isOdd:e=>(e&s)===s,neg:t=>g(-t,e),eql:(e,t)=>e===t,sqr:t=>g(t*t,e),add:(t,n)=>g(t+n,e),sub:(t,n)=>g(t-n,e),mul:(t,n)=>g(t*n,e),pow:(e,t)=>function(e,t,n){if(n<o)throw new Error("invalid exponent, negatives unsupported");if(n===o)return e.ONE;if(n===s)return t;let r=e.ONE,i=t;for(;n>o;)n&s&&(r=e.mul(r,i)),i=e.sqr(i),n>>=s;return r}(C,e,t),div:(t,n)=>g(t*y(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>y(t,e),sqrt:m||(t=>{return T||(T=(n=e)%u===a?w:n%h===l?x:n%p===d?function(e){const t=O(e),n=v(e),r=n(t,t.neg(t.ONE)),i=n(t,r),o=n(t,t.neg(r)),s=(e+f)/p;return(e,t)=>{let n=e.pow(t,s),c=e.mul(n,r);const a=e.mul(n,i),u=e.mul(n,o),l=e.eql(e.sqr(c),t),f=e.eql(e.sqr(a),t);n=e.cmov(n,c,l),c=e.cmov(u,a,f);const h=e.eql(e.sqr(c),t),d=e.cmov(n,c,h);return b(e,d,t),d}}(n):v(n)),T(C,t);var n}),toBytes:e=>n?(0,r.z)(e,S):(0,r.lq)(e,S),fromBytes:(t,i=!0)=>{if(k){if(!k.includes(t.length)||t.length>S)throw new Error("Field.fromBytes: expected "+k+" bytes, got "+t.length);const e=new Uint8Array(S);e.set(t,n?0:e.length-t.length),t=e}if(t.length!==S)throw new Error("Field.fromBytes: expected "+S+" bytes, got "+t.length);let o=n?(0,r.lX)(t):(0,r.Ph)(t);if(E&&(o=g(o,e)),!i&&!C.isValid(o))throw new Error("invalid field element: outside of range 0..ORDER");return o},invertBatch:e=>I(C,e),cmov:(e,t,n)=>n?t:e});return Object.freeze(C)}function T(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function C(e){const t=T(e);return t+Math.ceil(t/2)}function F(e,t,n=!1){const i=e.length,o=T(t),c=C(t);if(i<16||i<c||i>1024)throw new Error("expected "+c+"-1024 bytes of input, got "+i);const a=g(n?(0,r.lX)(e):(0,r.Ph)(e),t-s)+s;return n?(0,r.z)(a,o):(0,r.lq)(a,o)}},27816(e,t,n){"use strict";n.d(t,{Az:()=>u,DM:()=>a,TQ:()=>o,ol:()=>s,r9:()=>i,tT:()=>l,yc:()=>c});var r=n(38628);function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}class s extends r.Vw{constructor(e,t,n,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(e),this.view=(0,r.O8)(this.buffer)}update(e){(0,r.CC)(this),e=(0,r.ZJ)(e),(0,r.DO)(e);const{view:t,buffer:n,blockLen:i}=this,o=e.length;for(let s=0;s<o;){const c=Math.min(i-this.pos,o-s);if(c===i){const t=(0,r.O8)(e);for(;i<=o-s;s+=i)this.process(t,s);continue}n.set(e.subarray(s,s+c),this.pos),this.pos+=c,s+=c,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.CC)(this),(0,r.Ht)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:i,isLE:o}=this;let{pos:s}=this;t[s++]=128,(0,r.uH)(this.buffer.subarray(s)),this.padOffset>i-s&&(this.process(n,0),s=0);for(let e=s;e<i;e++)t[e]=0;!function(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),c=Number(n&o),a=r?4:0,u=r?0:4;e.setUint32(t+a,s,r),e.setUint32(t+u,c,r)}(n,i-8,BigInt(8*this.length),o),this.process(n,0);const c=(0,r.O8)(e),a=this.outputLen;if(a%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=a/4,l=this.get();if(u>l.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)c.setUint32(4*e,l[e],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:i,destroyed:o,pos:s}=this;return e.destroyed=o,e.finished=i,e.length=r,e.pos=s,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}}const c=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),a=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),u=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),l=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},30113(e,t,n){"use strict";n.d(t,{a0:()=>E,lY:()=>k,tM:()=>w});var r=n(49964),i=n(38628);const o=BigInt(0),s=BigInt(1),c=BigInt(2),a=BigInt(7),u=BigInt(256),l=BigInt(113),f=[],h=[],d=[];for(let e=0,t=s,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],f.push(2*(5*r+n)),h.push((e+1)*(e+2)/2%64);let i=o;for(let e=0;e<7;e++)t=(t<<s^(t>>a)*l)%u,t&c&&(i^=s<<(s<<BigInt(e))-s);d.push(i)}const p=(0,r.lD)(d,!0),g=p[0],m=p[1],y=(e,t,n)=>n>32?(0,r.WM)(e,t,n):(0,r.P5)(e,t,n),b=(e,t,n)=>n>32?(0,r.im)(e,t,n):(0,r.B4)(e,t,n);function w(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const r=(t+8)%10,i=(t+2)%10,o=n[i],s=n[i+1],c=y(o,s,1)^n[r],a=b(o,s,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=c,e[t+n+1]^=a}let t=e[2],i=e[3];for(let n=0;n<24;n++){const r=h[n],o=y(t,i,r),s=b(t,i,r),c=f[n];t=e[c],i=e[c+1],e[c]=o,e[c+1]=s}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=g[r],e[1]^=m[r]}(0,i.uH)(n)}class x extends i.Vw{constructor(e,t,n,r=!1,o=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=o,(0,i.Fe)(n),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,i.DH)(this.state)}clone(){return this._cloneInto()}keccak(){(0,i.fd)(this.state32),w(this.state32,this.rounds),(0,i.fd)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.CC)(this),e=(0,i.ZJ)(e),(0,i.DO)(e);const{blockLen:t,state:n}=this,r=e.length;for(let i=0;i<r;){const o=Math.min(t-this.pos,r-i);for(let t=0;t<o;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,128&t&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,i.CC)(this,!1),(0,i.DO)(e),this.finish();const t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.Fe)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.Ht)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,i.uH)(this.state)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:o}=this;return e||(e=new x(t,n,r,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=o,e.destroyed=this.destroyed,e}}const v=(e,t,n)=>(0,i.qj)(()=>new x(t,e,n)),k=(()=>v(1,136,32))(),E=(()=>v(1,72,64))()},38628(e,t,n){"use strict";n.d(t,{Vw:()=>C,DO:()=>s,CC:()=>a,sd:()=>c,Fe:()=>o,Ht:()=>u,My:()=>v,AE:()=>I,tY:()=>T,uH:()=>f,Id:()=>O,qj:()=>F,ZG:()=>P,O8:()=>h,aT:()=>E,aY:()=>i,K_:()=>A,po:()=>H,aZ:()=>p,Ow:()=>d,fd:()=>b,Y1:()=>y,ZJ:()=>S,DH:()=>l,AI:()=>B});const r="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function s(e,...t){if(!i(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function c(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");o(e.outputLen),o(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function u(e,t){s(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function l(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function f(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function h(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function d(e,t){return e<<32-t|e>>>t}function p(e,t){return e<<t|e>>>32-t>>>0}const g=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])();function m(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const y=g?e=>e:e=>m(e),b=g?e=>e:function(e){for(let t=0;t<e.length;t++)e[t]=m(e[t]);return e},w=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),x=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function v(e){if(s(e),w)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=x[e[n]];return t}function k(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function E(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(w)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){const n=k(e.charCodeAt(i)),o=k(e.charCodeAt(i+1));if(void 0===n||void 0===o){const t=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+i)}r[t]=16*n+o}return r}function B(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function I(e){return(new TextDecoder).decode(e)}function S(e){return"string"==typeof e&&(e=B(e)),s(e),e}function A(e){return"string"==typeof e&&(e=B(e)),s(e),e}function O(...e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];s(r),t+=r.length}const n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){const i=e[t];n.set(i,r),r+=i.length}return n}function T(e,t){if(void 0!==t&&"[object Object]"!=={}.toString.call(t))throw new Error("options should be object or undefined");return Object.assign(e,t)}class C{}function F(e){const t=t=>e().update(S(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function P(e){const t=(t,n)=>e(n).update(S(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t}function H(e=32){if(r&&"function"==typeof r.getRandomValues)return r.getRandomValues(new Uint8Array(e));if(r&&"function"==typeof r.randomBytes)return Uint8Array.from(r.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}},40382(e,t){var n,r;void 0===(r="function"==typeof(n=function(){var e={configs:{allowPassphrases:!0,maxLength:128,minLength:10,minPhraseLength:20,minOptionalTestsToPass:4},config:function(e){for(var t in e)e.hasOwnProperty(t)&&this.configs.hasOwnProperty(t)&&(this.configs[t]=e[t])}};return e.tests={required:[function(t){if(t.length<e.configs.minLength)return"The password must be at least "+e.configs.minLength+" characters long."},function(t){if(t.length>e.configs.maxLength)return"The password must be fewer than "+e.configs.maxLength+" characters."},function(e){if(/(.)\1{2,}/.test(e))return"The password may not contain sequences of three or more repeated characters."}],optional:[function(e){if(!/[a-z]/.test(e))return"The password must contain at least one lowercase letter."},function(e){if(!/[A-Z]/.test(e))return"The password must contain at least one uppercase letter."},function(e){if(!/[0-9]/.test(e))return"The password must contain at least one number."},function(e){if(!/[^A-Za-z0-9]/.test(e))return"The password must contain at least one special character."}]},e.test=function(e){var t={errors:[],failedTests:[],passedTests:[],requiredTestErrors:[],optionalTestErrors:[],isPassphrase:!1,strong:!0,optionalTestsPassed:0},n=0;if(this.tests.required.forEach(function(r){var i=r(e);"string"==typeof i?(t.strong=!1,t.errors.push(i),t.requiredTestErrors.push(i),t.failedTests.push(n)):t.passedTests.push(n),n++}),!0===this.configs.allowPassphrases&&e.length>=this.configs.minPhraseLength&&(t.isPassphrase=!0),!t.isPassphrase){var r=this.tests.required.length;this.tests.optional.forEach(function(n){var i=n(e);"string"==typeof i?(t.errors.push(i),t.optionalTestErrors.push(i),t.failedTests.push(r)):(t.optionalTestsPassed++,t.passedTests.push(r)),r++})}return!t.isPassphrase&&t.optionalTestsPassed<this.configs.minOptionalTestsToPass&&(t.strong=!1),t},e})?n.apply(t,[]):n)||(e.exports=r)},43556(e,t,n){"use strict";n.d(t,{Ak:()=>a,UT:()=>x,Xf:()=>b,fH:()=>y,hT:()=>m,u0:()=>c});var r=n(81633),i=n(26681);const o=BigInt(0),s=BigInt(1);function c(e,t){const n=t.negate();return e?n:t}function a(e,t){const n=(0,i.pS)(e.Fp,t.map(e=>e.Z));return t.map((t,r)=>e.fromAffine(t.toAffine(n[r])))}function u(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function l(e,t){u(e,t);const n=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:(0,r.OG)(e),maxNumber:n,shiftBy:BigInt(e)}}function f(e,t,n){const{windowSize:r,mask:i,maxNumber:o,shiftBy:c}=n;let a=Number(e&i),u=e>>c;a>r&&(a-=o,u+=s);const l=t*r;return{nextN:u,offset:l+Math.abs(a)-1,isZero:0===a,isNeg:a<0,isNegF:t%2!=0,offsetF:l}}const h=new WeakMap,d=new WeakMap;function p(e){return d.get(e)||1}function g(e){if(e!==o)throw new Error("invalid wNAF")}class m{constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t,n=this.ZERO){let r=e;for(;t>o;)t&s&&(n=n.add(r)),r=r.double(),t>>=s;return n}precomputeWindow(e,t){const{windows:n,windowSize:r}=l(t,this.bits),i=[];let o=e,s=o;for(let e=0;e<n;e++){s=o,i.push(s);for(let e=1;e<r;e++)s=s.add(o),i.push(s);o=s.double()}return i}wNAF(e,t,n){if(!this.Fn.isValid(n))throw new Error("invalid scalar");let r=this.ZERO,i=this.BASE;const o=l(e,this.bits);for(let e=0;e<o.windows;e++){const{nextN:s,offset:a,isZero:u,isNeg:l,isNegF:h,offsetF:d}=f(n,e,o);n=s,u?i=i.add(c(h,t[d])):r=r.add(c(l,t[a]))}return g(n),{p:r,f:i}}wNAFUnsafe(e,t,n,r=this.ZERO){const i=l(e,this.bits);for(let e=0;e<i.windows&&n!==o;e++){const{nextN:o,offset:s,isZero:c,isNeg:a}=f(n,e,i);if(n=o,!c){const e=t[s];r=r.add(a?e.negate():e)}}return g(n),r}getPrecomputes(e,t,n){let r=h.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&("function"==typeof n&&(r=n(r)),h.set(t,r))),r}cached(e,t,n){const r=p(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)}unsafe(e,t,n,r){const i=p(e);return 1===i?this._unsafeLadder(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)}createCache(e,t){u(t,this.bits),d.set(e,t),h.delete(e)}hasCache(e){return 1!==p(e)}}function y(e,t,n,r){let i=t,c=e.ZERO,a=e.ZERO;for(;n>o||r>o;)n&s&&(c=c.add(i)),r&s&&(a=a.add(i)),i=i.double(),n>>=s,r>>=s;return{p1:c,p2:a}}function b(e,t,n,i){(function(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((e,n)=>{if(!(e instanceof t))throw new Error("invalid point at index "+n)})})(n,e),function(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((e,n)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+n)})}(i,t);const o=n.length,s=i.length;if(o!==s)throw new Error("arrays of points and scalars must have equal length");const c=e.ZERO,a=(0,r.dJ)(BigInt(o));let u=1;a>12?u=a-3:a>4?u=a-2:a>0&&(u=2);const l=(0,r.OG)(u),f=new Array(Number(l)+1).fill(c);let h=c;for(let e=Math.floor((t.BITS-1)/u)*u;e>=0;e-=u){f.fill(c);for(let t=0;t<s;t++){const r=i[t],o=Number(r>>BigInt(e)&l);f[o]=f[o].add(n[t])}let t=c;for(let e=f.length-1,n=c;e>0;e--)n=n.add(f[e]),t=t.add(n);if(h=h.add(t),0!==e)for(let e=0;e<u;e++)h=h.double()}return h}function w(e,t,n){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,i.jr)(t),t}return(0,i.D0)(e,{isLE:n})}function x(e,t,n={},r){if(void 0===r&&(r="edwards"===e),!t||"object"!=typeof t)throw new Error(`expected valid ${e} CURVE object`);for(const e of["p","n","h"]){const n=t[e];if(!("bigint"==typeof n&&n>o))throw new Error(`CURVE.${e} must be positive bigint`)}const i=w(t.p,n.Fp,r),s=w(t.n,n.Fn,r),c=["Gx","Gy","a","weierstrass"===e?"b":"d"];for(const e of c)if(!i.isValid(t[e]))throw new Error(`CURVE.${e} must be valid field element of CURVE.Fp`);return{CURVE:t=Object.freeze(Object.assign({},t)),Fp:i,Fn:s}}},49964(e,t,n){"use strict";n.d(t,{B4:()=>m,CQ:()=>E,CW:()=>k,Ei:()=>h,F6:()=>o,F8:()=>B,P5:()=>g,R$:()=>d,R5:()=>p,TH:()=>I,Vl:()=>x,Vr:()=>v,WM:()=>y,WQ:()=>w,im:()=>b,jm:()=>a,lD:()=>s,qh:()=>f,rE:()=>u,ry:()=>l,xn:()=>c});const r=BigInt(2**32-1),i=BigInt(32);function o(e,t=!1){return t?{h:Number(e&r),l:Number(e>>i&r)}:{h:0|Number(e>>i&r),l:0|Number(e&r)}}function s(e,t=!1){const n=e.length;let r=new Uint32Array(n),i=new Uint32Array(n);for(let s=0;s<n;s++){const{h:n,l:c}=o(e[s],t);[r[s],i[s]]=[n,c]}return[r,i]}const c=(e,t,n)=>e>>>n,a=(e,t,n)=>e<<32-n|t>>>n,u=(e,t,n)=>e>>>n|t<<32-n,l=(e,t,n)=>e<<32-n|t>>>n,f=(e,t,n)=>e<<64-n|t>>>n-32,h=(e,t,n)=>e>>>n-32|t<<64-n,d=(e,t)=>t,p=(e,t)=>e,g=(e,t,n)=>e<<n|t>>>32-n,m=(e,t,n)=>t<<n|e>>>32-n,y=(e,t,n)=>t<<n-32|e>>>64-n,b=(e,t,n)=>e<<n-32|t>>>64-n;function w(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:0|i}}const x=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),v=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,k=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),E=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0,B=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0),I=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0},49981(e,t,n){"use strict";n.d(t,{S:()=>p});var r=n(38628);const i=Uint8Array.from([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9]);var o=n(27816),s=n(49964);const c=Uint32Array.from([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),a=new Uint32Array(32);function u(e,t,n,r,i,o){const c=i[o],u=i[o+1];let l=a[2*e],f=a[2*e+1],h=a[2*t],d=a[2*t+1],p=a[2*n],g=a[2*n+1],m=a[2*r],y=a[2*r+1],b=s.Vl(l,h,c);f=s.Vr(b,f,d,u),l=0|b,({Dh:y,Dl:m}={Dh:y^f,Dl:m^l}),({Dh:y,Dl:m}={Dh:s.R$(y,m),Dl:s.R5(y,m)}),({h:g,l:p}=s.WQ(g,p,y,m)),({Bh:d,Bl:h}={Bh:d^g,Bl:h^p}),({Bh:d,Bl:h}={Bh:s.rE(d,h,24),Bl:s.ry(d,h,24)}),a[2*e]=l,a[2*e+1]=f,a[2*t]=h,a[2*t+1]=d,a[2*n]=p,a[2*n+1]=g,a[2*r]=m,a[2*r+1]=y}function l(e,t,n,r,i,o){const c=i[o],u=i[o+1];let l=a[2*e],f=a[2*e+1],h=a[2*t],d=a[2*t+1],p=a[2*n],g=a[2*n+1],m=a[2*r],y=a[2*r+1],b=s.Vl(l,h,c);f=s.Vr(b,f,d,u),l=0|b,({Dh:y,Dl:m}={Dh:y^f,Dl:m^l}),({Dh:y,Dl:m}={Dh:s.rE(y,m,16),Dl:s.ry(y,m,16)}),({h:g,l:p}=s.WQ(g,p,y,m)),({Bh:d,Bl:h}={Bh:d^g,Bl:h^p}),({Bh:d,Bl:h}={Bh:s.qh(d,h,63),Bl:s.Ei(d,h,63)}),a[2*e]=l,a[2*e+1]=f,a[2*t]=h,a[2*t+1]=d,a[2*n]=p,a[2*n+1]=g,a[2*r]=m,a[2*r+1]=y}class f extends r.Vw{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,this.length=0,this.pos=0,(0,r.Fe)(e),(0,r.Fe)(t),this.blockLen=e,this.outputLen=t,this.buffer=new Uint8Array(e),this.buffer32=(0,r.DH)(this.buffer)}update(e){(0,r.CC)(this),e=(0,r.ZJ)(e),(0,r.DO)(e);const{blockLen:t,buffer:n,buffer32:i}=this,o=e.length,s=e.byteOffset,c=e.buffer;for(let a=0;a<o;){this.pos===t&&((0,r.fd)(i),this.compress(i,0,!1),(0,r.fd)(i),this.pos=0);const u=Math.min(t-this.pos,o-a),l=s+a;if(u===t&&!(l%4)&&a+u<o){const e=new Uint32Array(c,l,Math.floor((o-a)/4));(0,r.fd)(e);for(let n=0;a+t<o;n+=i.length,a+=t)this.length+=t,this.compress(e,n,!1);(0,r.fd)(e);continue}n.set(e.subarray(a,a+u),this.pos),this.pos+=u,this.length+=u,a+=u}return this}digestInto(e){(0,r.CC)(this),(0,r.Ht)(e,this);const{pos:t,buffer32:n}=this;this.finished=!0,(0,r.uH)(this.buffer.subarray(t)),(0,r.fd)(n),this.compress(n,0,!0),(0,r.fd)(n);const i=(0,r.DH)(e);this.get().forEach((e,t)=>i[t]=(0,r.Y1)(e))}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){const{buffer:t,length:n,finished:r,destroyed:i,outputLen:o,pos:s}=this;return e||(e=new this.constructor({dkLen:o})),e.set(...this.get()),e.buffer.set(t),e.destroyed=i,e.finished=r,e.length=n,e.pos=s,e.outputLen=o,e}clone(){return this._cloneInto()}}class h extends f{constructor(e={}){const t=void 0===e.dkLen?64:e.dkLen;super(128,t),this.v0l=0|c[0],this.v0h=0|c[1],this.v1l=0|c[2],this.v1h=0|c[3],this.v2l=0|c[4],this.v2h=0|c[5],this.v3l=0|c[6],this.v3h=0|c[7],this.v4l=0|c[8],this.v4h=0|c[9],this.v5l=0|c[10],this.v5h=0|c[11],this.v6l=0|c[12],this.v6h=0|c[13],this.v7l=0|c[14],this.v7h=0|c[15],function(e,t={},n,i,o){if((0,r.Fe)(n),e<0||e>n)throw new Error("outputLen bigger than keyLen");const{key:s,salt:c,personalization:a}=t;if(void 0!==s&&(s.length<1||s.length>n))throw new Error("key length must be undefined or 1.."+n);if(void 0!==c&&c.length!==i)throw new Error("salt must be undefined or "+i);if(void 0!==a&&a.length!==o)throw new Error("personalization must be undefined or "+o)}(t,e,64,16,16);let{key:n,personalization:i,salt:o}=e,s=0;if(void 0!==n&&(n=(0,r.ZJ)(n),s=n.length),this.v0l^=this.outputLen|s<<8|65536|1<<24,void 0!==o){o=(0,r.ZJ)(o);const e=(0,r.DH)(o);this.v4l^=(0,r.Y1)(e[0]),this.v4h^=(0,r.Y1)(e[1]),this.v5l^=(0,r.Y1)(e[2]),this.v5h^=(0,r.Y1)(e[3])}if(void 0!==i){i=(0,r.ZJ)(i);const e=(0,r.DH)(i);this.v6l^=(0,r.Y1)(e[0]),this.v6h^=(0,r.Y1)(e[1]),this.v7l^=(0,r.Y1)(e[2]),this.v7h^=(0,r.Y1)(e[3])}if(void 0!==n){const e=new Uint8Array(this.blockLen);e.set(n),this.update(e)}}get(){let{v0l:e,v0h:t,v1l:n,v1h:r,v2l:i,v2h:o,v3l:s,v3h:c,v4l:a,v4h:u,v5l:l,v5h:f,v6l:h,v6h:d,v7l:p,v7h:g}=this;return[e,t,n,r,i,o,s,c,a,u,l,f,h,d,p,g]}set(e,t,n,r,i,o,s,c,a,u,l,f,h,d,p,g){this.v0l=0|e,this.v0h=0|t,this.v1l=0|n,this.v1h=0|r,this.v2l=0|i,this.v2h=0|o,this.v3l=0|s,this.v3h=0|c,this.v4l=0|a,this.v4h=0|u,this.v5l=0|l,this.v5h=0|f,this.v6l=0|h,this.v6h=0|d,this.v7l=0|p,this.v7h=0|g}compress(e,t,n){this.get().forEach((e,t)=>a[t]=e),a.set(c,16);let{h:o,l:f}=s.F6(BigInt(this.length));a[24]=c[8]^f,a[25]=c[9]^o,n&&(a[28]=~a[28],a[29]=~a[29]);let h=0;const d=i;for(let n=0;n<12;n++)u(0,4,8,12,e,t+2*d[h++]),l(0,4,8,12,e,t+2*d[h++]),u(1,5,9,13,e,t+2*d[h++]),l(1,5,9,13,e,t+2*d[h++]),u(2,6,10,14,e,t+2*d[h++]),l(2,6,10,14,e,t+2*d[h++]),u(3,7,11,15,e,t+2*d[h++]),l(3,7,11,15,e,t+2*d[h++]),u(0,5,10,15,e,t+2*d[h++]),l(0,5,10,15,e,t+2*d[h++]),u(1,6,11,12,e,t+2*d[h++]),l(1,6,11,12,e,t+2*d[h++]),u(2,7,8,13,e,t+2*d[h++]),l(2,7,8,13,e,t+2*d[h++]),u(3,4,9,14,e,t+2*d[h++]),l(3,4,9,14,e,t+2*d[h++]);this.v0l^=a[0]^a[16],this.v0h^=a[1]^a[17],this.v1l^=a[2]^a[18],this.v1h^=a[3]^a[19],this.v2l^=a[4]^a[20],this.v2h^=a[5]^a[21],this.v3l^=a[6]^a[22],this.v3h^=a[7]^a[23],this.v4l^=a[8]^a[24],this.v4h^=a[9]^a[25],this.v5l^=a[10]^a[26],this.v5h^=a[11]^a[27],this.v6l^=a[12]^a[28],this.v6h^=a[13]^a[29],this.v7l^=a[14]^a[30],this.v7h^=a[15]^a[31],(0,r.uH)(a)}destroy(){this.destroyed=!0,(0,r.uH)(this.buffer32),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const d=(0,r.ZG)(e=>new h(e));o.yc;const p=d},52001(e,t,n){"use strict";n.d(t,{sc:()=>r});const r=n(76210).sc},55080(e,t,n){"use strict";n.d(t,{Y:()=>ze});var r={};n.r(r),n.d(r,{attentionMarkers:()=>Ie,contentInitial:()=>we,disable:()=>Se,document:()=>be,flow:()=>ve,flowInitial:()=>xe,insideSpan:()=>Be,string:()=>ke,text:()=>Ee});const i={};function o(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return s(e.children,t,n)}return Array.isArray(e)?s(e,t,n):""}function s(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=o(e[i],t,n);return r.join("")}function c(e,t,n,r){const i=e.length;let o,s=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function a(e,t){return e.length>0?(c(e,e.length,0,t),e):t}class u{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&l(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),l(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),l(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);l(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);l(this.left,t.reverse())}}}function l(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function f(e){const t={};let n,r,i,o,s,a,l,f=-1;const d=new u(e);for(;++f<d.length;){for(;f in t;)f=t[f];if(n=d.get(f),f&&"chunkFlow"===n[1].type&&"listItemPrefix"===d.get(f-1)[1].type&&(a=n[1]._tokenizer.events,i=0,i<a.length&&"lineEndingBlank"===a[i][1].type&&(i+=2),i<a.length&&"content"===a[i][1].type))for(;++i<a.length&&"content"!==a[i][1].type;)"chunkText"===a[i][1].type&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,h(d,f)),f=t[f],l=!0);else if(n[1]._container){for(i=f,r=void 0;i--;)if(o=d.get(i),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(d.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...d.get(r)[1].start},s=d.slice(r,f),s.unshift(n),d.splice(r,f-r+1,s))}}return c(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!l}function h(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const c=s.events,a=[],u={};let l,f,h=-1,d=n,p=0,g=0;const m=[g];for(;d;){for(;e.get(++i)[1]!==d;);o.push(i),d._tokenizer||(l=r.sliceStream(d),d.next||l.push(null),f&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(l),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++h<c.length;)"exit"===c[h][0]&&"enter"===c[h-1][0]&&c[h][1].type===c[h-1][1].type&&c[h][1].start.line!==c[h][1].end.line&&(g=h+1,m.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):m.pop(),h=m.length;h--;){const t=c.slice(m[h],m[h+1]),n=o.pop();a.push([n,n+t.length-1]),e.splice(n,2,t)}for(a.reverse(),h=-1;++h<a.length;)u[p+a[h][0]]=p+a[h][1],p+=a[h][1]-a[h][0]-1;return u}const d={}.hasOwnProperty;function p(e,t){let n;for(n in t){const r=(d.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){d.call(r,o)||(r[o]=[]);const e=i[o];g(r[o],Array.isArray(e)?e:e?[e]:[])}}}function g(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);c(e,0,0,r)}var m=n(57949);function y(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return(0,m.On)(r)?(e.enter(n),s(r)):t(r)};function s(r){return(0,m.On)(r)&&o++<i?(e.consume(r),s):(e.exit(n),t(r))}}const b={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),y(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):(0,m.HP)(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}},w={tokenize:function(e){const t=this,n=[];let r,i,o,s=0;return a;function a(r){if(s<n.length){const i=n[s];return t.containerState=i[1],e.attempt(i[0].continuation,u,l)(r)}return l(r)}function u(e){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}w(s);let a=n;for(;a<t.events.length;)t.events[a][1].end={...i},a++;return c(t.events,o+1,0,t.events.slice(n)),t.events.length=a,l(e)}return a(e)}function l(i){if(s===n.length){if(!r)return d(i);if(r.currentConstruct&&r.currentConstruct.concrete)return g(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(x,f,h)(i)}function f(e){return r&&v(),w(s),d(e)}function h(e){return t.parser.lazy[t.now().line]=s!==n.length,o=t.now().offset,g(e)}function d(n){return t.containerState={},e.attempt(x,p,g)(n)}function p(e){return s++,n.push([t.currentConstruct,t.containerState]),d(e)}function g(n){return null===n?(r&&v(),w(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),y(n))}function y(n){return null===n?(b(e.exit("chunkFlow"),!0),w(0),void e.consume(n)):(0,m.HP)(n)?(e.consume(n),b(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(n),y)}function b(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,a,u=n;for(;u--;)if("exit"===t.events[u][0]&&"chunkFlow"===t.events[u][1].type){if(i){a=t.events[u][1].end;break}i=!0}for(w(s),e=n;e<t.events.length;)t.events[e][1].end={...a},e++;c(t.events,u+1,0,t.events.slice(n)),t.events.length=e}}function w(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},x={tokenize:function(e,t,n){return y(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},v={partial:!0,tokenize:function(e,t,n){return function(t){return(0,m.On)(t)?y(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||(0,m.HP)(e)?t(e):n(e)}}},k={resolve:function(e){return f(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,m.HP)(t)?e.check(E,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},E={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),y(e,i,"linePrefix")};function i(i){if(null===i||(0,m.HP)(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},B={tokenize:function(e){const t=this,n=e.attempt(v,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,y(e,e.attempt(this.parser.constructs.flow,r,e.attempt(k,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},I={resolveAll:T()},S=O("string"),A=O("text");function O(e){return{resolveAll:T("text"===e?C:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return a(e)?i(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),c;t.consume(e)}function c(e){return a(e)?(t.exit("data"),i(e)):(t.consume(e),c)}function a(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function T(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function C(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,s=i.length,c=-1,a=0;for(;s--;){const e=i[s];if("string"==typeof e){for(c=e.length;32===e.charCodeAt(c-1);)a++,c--;if(c)break;c=-1}else if(-2===e)o=!0,a++;else if(-1!==e){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const i={type:n===e.length||o||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:r.start._bufferIndex+c,_index:r.start._index+s,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}const F={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),s(o)):i>=3&&(null===o||(0,m.HP)(o))?(e.exit("thematicBreak"),t(o)):n(o)}function s(t){return t===r?(e.consume(t),i++,s):(e.exit("thematicBreakSequence"),(0,m.On)(t)?y(e,o,"whitespace")(t):o(t))}}},P={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(v,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,y(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,m.On)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(z,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,y(e,e.attempt(P,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,m.BM)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(F,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(t)}return n(t)};function c(t){return(0,m.BM)(t)&&++s<10?(e.consume(t),c):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),a(t)):n(t)}function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(v,r.interrupt?n:u,e.attempt(H,f,l))}function u(e){return r.containerState.initialBlankLine=!0,o++,f(e)}function l(t){return(0,m.On)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},H={partial:!0,tokenize:function(e,t,n){const r=this;return y(e,function(e){const i=r.events[r.events.length-1];return!(0,m.On)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},z={partial:!0,tokenize:function(e,t,n){const r=this;return y(e,function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},L={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return(0,m.On)(t)?y(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(L,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,m.On)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function D(e,t,n,r,i,o,s,c,a){const u=a||Number.POSITIVE_INFINITY;let l=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f):null===t||32===t||41===t||(0,m.JQ)(t)?n(t):(e.enter(r),e.enter(s),e.enter(c),e.enter("chunkString",{contentType:"string"}),p(t))};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(c),f(t)):null===t||60===t||(0,m.HP)(t)?n(t):(e.consume(t),92===t?d:h)}function d(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function p(i){return l||null!==i&&41!==i&&!(0,m.Ee)(i)?l<u&&40===i?(e.consume(i),l++,p):41===i?(e.consume(i),l--,p):null===i||32===i||40===i||(0,m.JQ)(i)?n(i):(e.consume(i),92===i?g:p):(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(r),t(i))}function g(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function N(e,t,n,r,i,o){const s=this;let c,a=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(f){return a>999||null===f||91===f||93===f&&!c||94===f&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(0,m.HP)(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),l(f))}function l(t){return null===t||91===t||93===t||(0,m.HP)(t)||a++>999?(e.exit("chunkString"),u(t)):(e.consume(t),c||(c=!(0,m.On)(t)),92===t?f:l)}function f(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function R(e,t,n,r,i,o){let s;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,c):n(t)};function c(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),a(n))}function a(t){return t===s?(e.exit(o),c(s)):null===t?n(t):(0,m.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),y(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===s||null===t||(0,m.HP)(t)?(e.exit("chunkString"),a(t)):(e.consume(t),92===t?l:u)}function l(t){return t===s||92===t?(e.consume(t),u):u(t)}}function U(e,t){let n;return function r(i){return(0,m.HP)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,m.On)(i)?y(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function q(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const V={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return N.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=q(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return(0,m.Ee)(t)?U(e,c)(t):c(t)}function c(t){return D(e,a,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function a(t){return e.attempt(M,u,u)(t)}function u(t){return(0,m.On)(t)?y(e,l,"whitespace")(t):l(t)}function l(o){return null===o||(0,m.HP)(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},M={partial:!0,tokenize:function(e,t,n){return function(t){return(0,m.Ee)(t)?U(e,r)(t):n(t)};function r(t){return R(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,m.On)(t)?y(e,o,"whitespace")(t):o(t)}function o(e){return null===e||(0,m.HP)(e)?t(e):n(e)}}},_={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),y(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?c(t):(0,m.HP)(t)?e.attempt(Z,o,c)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||(0,m.HP)(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),s)}function c(n){return e.exit("codeIndented"),t(n)}}},Z={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,m.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):y(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):(0,m.HP)(e)?i(e):n(e)}}},j={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[o][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},c(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||(0,m.Ee)(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||(0,m.HP)(n)?(e.exit("atxHeading"),t(n)):(0,m.On)(n)?y(e,o,"whitespace")(n):(e.enter("atxHeadingText"),c(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function c(t){return null===t||35===t||(0,m.Ee)(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),c)}}},Y={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(t){let s,c=r.events.length;for(;c--;)if("lineEnding"!==r.events[c][1].type&&"linePrefix"!==r.events[c][1].type&&"content"!==r.events[c][1].type){s="paragraph"===r.events[c][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!s?n(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t))};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),(0,m.On)(t)?y(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||(0,m.HP)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},K=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],G=["pre","script","style","textarea"],Q={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let i,o,s,c,a;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(c){return 33===c?(e.consume(c),l):47===c?(e.consume(c),o=!0,d):63===c?(e.consume(c),i=3,r.interrupt?t:L):(0,m.CW)(c)?(e.consume(c),s=String.fromCharCode(c),p):n(c)}function l(o){return 45===o?(e.consume(o),i=2,f):91===o?(e.consume(o),i=5,c=0,h):(0,m.CW)(o)?(e.consume(o),i=4,r.interrupt?t:L):n(o)}function f(i){return 45===i?(e.consume(i),r.interrupt?t:L):n(i)}function h(i){return i==="CDATA[".charCodeAt(c++)?(e.consume(i),6===c?r.interrupt?t:A:h):n(i)}function d(t){return(0,m.CW)(t)?(e.consume(t),s=String.fromCharCode(t),p):n(t)}function p(c){if(null===c||47===c||62===c||(0,m.Ee)(c)){const a=47===c,u=s.toLowerCase();return a||o||!G.includes(u)?K.includes(s.toLowerCase())?(i=6,a?(e.consume(c),g):r.interrupt?t(c):A(c)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(c):o?y(c):b(c)):(i=1,r.interrupt?t(c):A(c))}return 45===c||(0,m.lV)(c)?(e.consume(c),s+=String.fromCharCode(c),p):n(c)}function g(i){return 62===i?(e.consume(i),r.interrupt?t:A):n(i)}function y(t){return(0,m.On)(t)?(e.consume(t),y):I(t)}function b(t){return 47===t?(e.consume(t),I):58===t||95===t||(0,m.CW)(t)?(e.consume(t),w):(0,m.On)(t)?(e.consume(t),b):I(t)}function w(t){return 45===t||46===t||58===t||95===t||(0,m.lV)(t)?(e.consume(t),w):x(t)}function x(t){return 61===t?(e.consume(t),v):(0,m.On)(t)?(e.consume(t),x):b(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,k):(0,m.On)(t)?(e.consume(t),v):E(t)}function k(t){return t===a?(e.consume(t),a=null,B):null===t||(0,m.HP)(t)?n(t):(e.consume(t),k)}function E(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||(0,m.Ee)(t)?x(t):(e.consume(t),E)}function B(e){return 47===e||62===e||(0,m.On)(e)?b(e):n(e)}function I(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||(0,m.HP)(t)?A(t):(0,m.On)(t)?(e.consume(t),S):n(t)}function A(t){return 45===t&&2===i?(e.consume(t),F):60===t&&1===i?(e.consume(t),P):62===t&&4===i?(e.consume(t),D):63===t&&3===i?(e.consume(t),L):93===t&&5===i?(e.consume(t),z):!(0,m.HP)(t)||6!==i&&7!==i?null===t||(0,m.HP)(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),A):(e.exit("htmlFlowData"),e.check(W,N,O)(t))}function O(t){return e.check(X,T,N)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||(0,m.HP)(t)?O(t):(e.enter("htmlFlowData"),A(t))}function F(t){return 45===t?(e.consume(t),L):A(t)}function P(t){return 47===t?(e.consume(t),s="",H):A(t)}function H(t){if(62===t){const n=s.toLowerCase();return G.includes(n)?(e.consume(t),D):A(t)}return(0,m.CW)(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),H):A(t)}function z(t){return 93===t?(e.consume(t),L):A(t)}function L(t){return 62===t?(e.consume(t),D):45===t&&2===i?(e.consume(t),L):A(t)}function D(t){return null===t||(0,m.HP)(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),D)}function N(n){return e.exit("htmlFlow"),t(n)}}},W={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(v,t,n)}}},X={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return(0,m.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},$={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},J={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s};function s(t){return e.enter("codeFencedFence"),(0,m.On)(t)?y(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)}function a(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=c?(e.exit("codeFencedFenceSequence"),(0,m.On)(t)?y(e,l,"whitespace")(t):l(t)):n(t)}function l(r){return null===r||(0,m.HP)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,s=0,c=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(t)}(t)};function a(t){return t===o?(c++,e.consume(t),a):c<3?n(t):(e.exit("codeFencedFenceSequence"),(0,m.On)(t)?y(e,u,"whitespace")(t):u(t))}function u(n){return null===n||(0,m.HP)(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check($,d,x)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),l(n))}function l(t){return null===t||(0,m.HP)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):(0,m.On)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(e,f,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),l)}function f(t){return null===t||(0,m.HP)(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||(0,m.HP)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===o?n(t):(e.consume(t),h)}function d(t){return e.attempt(i,x,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return s>0&&(0,m.On)(t)?y(e,b,"linePrefix",s+1)(t):b(t)}function b(t){return null===t||(0,m.HP)(t)?e.check($,d,x)(t):(e.enter("codeFlowValue"),w(t))}function w(t){return null===t||(0,m.HP)(t)?(e.exit("codeFlowValue"),b(t)):(e.consume(t),w)}function x(n){return e.exit("codeFenced"),t(n)}}};var ee=n(51157);const te={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),c};function c(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),i=31,o=m.lV,u(t))}function a(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=m.ok,u):(e.enter("characterReferenceValue"),i=7,o=m.BM,u(t))}function u(c){if(59===c&&s){const i=e.exit("characterReferenceValue");return o!==m.lV||(0,ee.s)(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(c)}return o(c)&&s++<i?(e.consume(c),u):n(c)}}},ne={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return(0,m.ol)(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},re={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),y(e,t,"linePrefix")}}};function ie(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const oe={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&c(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,s=e.length,u=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){u=2;break}}else"labelEnd"===n.type&&(i=s);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},h={type:"labelText",start:{...e[r+u+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",l,t],["enter",f,t]],o=a(o,e.slice(r+1,r+u+3)),o=a(o,[["enter",h,t]]),o=a(o,ie(t.parser.constructs.insideSpan.null,e.slice(r+u+4,i-3),t)),o=a(o,[["exit",h,t],e[i-2],e[i-1],["exit",f,t]]),o=a(o,e.slice(i+1)),o=a(o,[["exit",l,t]]),c(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let i,o,s=r.events.length;for(;s--;)if(("labelImage"===r.events[s][1].type||"labelLink"===r.events[s][1].type)&&!r.events[s][1]._balanced){i=r.events[s][1];break}return function(t){return i?i._inactive?l(t):(o=r.parser.defined.includes(q(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),c):n(t)};function c(t){return 40===t?e.attempt(se,u,o?u:l)(t):91===t?e.attempt(ce,u,o?a:l)(t):o?u(t):l(t)}function a(t){return e.attempt(ae,u,l)(t)}function u(e){return t(e)}function l(e){return i._balanced=!0,n(e)}}},se={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return(0,m.Ee)(t)?U(e,i)(t):i(t)}function i(t){return 41===t?u(t):D(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return(0,m.Ee)(t)?U(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return 34===t||39===t||40===t?R(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function a(t){return(0,m.Ee)(t)?U(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},ce={tokenize:function(e,t,n){const r=this;return function(t){return N.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(q(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},ae={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},ue={name:"labelStartImage",resolveAll:oe.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function le(e){return null===e||(0,m.Ee)(e)||(0,m.Ny)(e)?1:(0,m.es)(e)?2:void 0}const fe={name:"attention",resolveAll:function(e,t){let n,r,i,o,s,u,l,f,h=-1;for(;++h<e.length;)if("enter"===e[h][0]&&"attentionSequence"===e[h][1].type&&e[h][1]._close)for(n=h;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[h][1]).charCodeAt(0)){if((e[n][1]._close||e[h][1]._open)&&(e[h][1].end.offset-e[h][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[h][1].end.offset-e[h][1].start.offset)%3))continue;u=e[n][1].end.offset-e[n][1].start.offset>1&&e[h][1].end.offset-e[h][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[h][1].start};he(d,-u),he(p,u),o={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},s={type:u>1?"strongSequence":"emphasisSequence",start:{...e[h][1].start},end:p},i={type:u>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[h][1].start}},r={type:u>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[n][1].end={...o.start},e[h][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=a(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=a(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=a(l,ie(t.parser.constructs.insideSpan.null,e.slice(n+1,h),t)),l=a(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[h][1].end.offset-e[h][1].start.offset?(f=2,l=a(l,[["enter",e[h][1],t],["exit",e[h][1],t]])):f=0,c(e,n-1,h-n+3,l),h=n+l.length-f-2;break}for(h=-1;++h<e.length;)"attentionSequence"===e[h][1].type&&(e[h][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=le(r);let o;return function(t){return o=t,e.enter("attentionSequence"),s(t)};function s(c){if(c===o)return e.consume(c),s;const a=e.exit("attentionSequence"),u=le(c),l=!u||2===u&&i||n.includes(c),f=!i||2===i&&u||n.includes(r);return a._open=Boolean(42===o?l:l&&(i||!f)),a._close=Boolean(42===o?f:f&&(u||!l)),t(c)}}};function he(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const de={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,m.CW)(t)?(e.consume(t),o):64===t?n(t):a(t)}function o(e){return 43===e||45===e||46===e||(0,m.lV)(e)?(r=1,s(e)):a(e)}function s(t){return 58===t?(e.consume(t),r=0,c):(43===t||45===t||46===t||(0,m.lV)(t))&&r++<32?(e.consume(t),s):(r=0,a(t))}function c(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,m.JQ)(r)?n(r):(e.consume(r),c)}function a(t){return 64===t?(e.consume(t),u):(0,m.cx)(t)?(e.consume(t),a):n(t)}function u(e){return(0,m.lV)(e)?l(e):n(e)}function l(n){return 46===n?(e.consume(n),r=0,u):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):f(n)}function f(t){if((45===t||(0,m.lV)(t))&&r++<63){const n=45===t?f:l;return e.consume(t),n}return n(t)}}},pe={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),c};function c(t){return 33===t?(e.consume(t),a):47===t?(e.consume(t),k):63===t?(e.consume(t),x):(0,m.CW)(t)?(e.consume(t),I):n(t)}function a(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),o=0,d):(0,m.CW)(t)?(e.consume(t),w):n(t)}function u(t){return 45===t?(e.consume(t),h):n(t)}function l(t){return null===t?n(t):45===t?(e.consume(t),f):(0,m.HP)(t)?(s=l,z(t)):(e.consume(t),l)}function f(t){return 45===t?(e.consume(t),h):l(t)}function h(e){return 62===e?H(e):45===e?f(e):l(e)}function d(t){return t==="CDATA[".charCodeAt(o++)?(e.consume(t),6===o?p:d):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),g):(0,m.HP)(t)?(s=p,z(t)):(e.consume(t),p)}function g(t){return 93===t?(e.consume(t),b):p(t)}function b(t){return 62===t?H(t):93===t?(e.consume(t),b):p(t)}function w(t){return null===t||62===t?H(t):(0,m.HP)(t)?(s=w,z(t)):(e.consume(t),w)}function x(t){return null===t?n(t):63===t?(e.consume(t),v):(0,m.HP)(t)?(s=x,z(t)):(e.consume(t),x)}function v(e){return 62===e?H(e):x(e)}function k(t){return(0,m.CW)(t)?(e.consume(t),E):n(t)}function E(t){return 45===t||(0,m.lV)(t)?(e.consume(t),E):B(t)}function B(t){return(0,m.HP)(t)?(s=B,z(t)):(0,m.On)(t)?(e.consume(t),B):H(t)}function I(t){return 45===t||(0,m.lV)(t)?(e.consume(t),I):47===t||62===t||(0,m.Ee)(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),H):58===t||95===t||(0,m.CW)(t)?(e.consume(t),A):(0,m.HP)(t)?(s=S,z(t)):(0,m.On)(t)?(e.consume(t),S):H(t)}function A(t){return 45===t||46===t||58===t||95===t||(0,m.lV)(t)?(e.consume(t),A):O(t)}function O(t){return 61===t?(e.consume(t),T):(0,m.HP)(t)?(s=O,z(t)):(0,m.On)(t)?(e.consume(t),O):S(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,C):(0,m.HP)(t)?(s=T,z(t)):(0,m.On)(t)?(e.consume(t),T):(e.consume(t),F)}function C(t){return t===i?(e.consume(t),i=void 0,P):null===t?n(t):(0,m.HP)(t)?(s=C,z(t)):(e.consume(t),C)}function F(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,m.Ee)(t)?S(t):(e.consume(t),F)}function P(e){return 47===e||62===e||(0,m.Ee)(e)?S(e):n(e)}function H(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function z(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return(0,m.On)(t)?y(e,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):D(t)}function D(t){return e.enter("htmlTextData"),s(t)}}},ge={name:"labelStartLink",resolveAll:oe.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},me={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,m.HP)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},ye={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),o++,s):(e.exit("codeTextSequence"),c(t))}function c(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),c):96===t?(i=e.enter("codeTextSequence"),r=0,u(t)):(0,m.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c):(e.enter("codeTextData"),a(t))}function a(t){return null===t||32===t||96===t||(0,m.HP)(t)?(e.exit("codeTextData"),c(t)):(e.consume(t),a)}function u(n){return 96===n?(e.consume(n),r++,u):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",a(n))}}},be={42:P,43:P,45:P,48:P,49:P,50:P,51:P,52:P,53:P,54:P,55:P,56:P,57:P,62:L},we={91:V},xe={[-2]:_,[-1]:_,32:_},ve={35:j,42:F,45:[Y,F],60:Q,61:Y,95:F,96:J,126:J},ke={38:te,92:ne},Ee={[-5]:re,[-4]:re,[-3]:re,33:ue,38:te,42:fe,60:[de,pe],91:ge,92:[me,ne],93:oe,95:fe,96:ye},Be={null:[fe,I]},Ie={null:[42,95]},Se={null:[]};function Ae(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],u=[],l=!0;const f={attempt:x(function(e,t){v(e,t.from)}),check:x(w),consume:function(e){(0,m.HP)(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,k()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=y(),h.events.push(["enter",n,h]),u.push(n),n},exit:function(e){const t=u.pop();return t.end=y(),h.events.push(["exit",t,h]),t},interrupt:x(w,{interrupt:!0})},h={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,k()},events:[],now:y,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if("string"==typeof o)s=o;else switch(o){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=t?" ":"\t";break;case-1:if(!t&&i)continue;s=" ";break;default:s=String.fromCharCode(o)}i=-2===o,r.push(s)}return r.join("")}(g(e),t)},sliceStream:g,write:function(e){return s=a(s,e),function(){let e;for(;r._index<s.length;){const t=s[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)b(t.charCodeAt(r._bufferIndex));else b(t)}}(),null!==s[s.length-1]?[]:(v(t,0),h.events=ie(o,h.events,h),h.events)}};let d,p=t.tokenize.call(h,f);return t.resolveAll&&o.push(t),h;function g(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const e=s[0];"string"==typeof e?s[0]=e.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}(s,e)}function y(){const{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function b(e){l=void 0,d=e,p=p(e)}function w(e,t){t.restore()}function x(e,t){return function(n,i,o){let s,c,a,d;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):(p=n,function(e){const t=null!==e&&p[e],n=null!==e&&p.null;return g([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});var p;function g(e){return s=e,c=0,0===e.length?o:m(e[c])}function m(e){return function(n){return d=function(){const e=y(),t=h.previous,n=h.currentConstruct,i=h.events.length,o=Array.from(u);return{from:i,restore:function(){r=e,h.previous=t,h.currentConstruct=n,h.events.length=i,u=o,k()}}}(),a=e,e.partial||(h.currentConstruct=e),e.name&&h.parser.constructs.disable.null.includes(e.name)?w():e.tokenize.call(t?Object.assign(Object.create(h),t):h,f,b,w)(n)}}function b(t){return l=!0,e(a,d),i}function w(e){return l=!0,d.restore(),++c<s.length?m(s[c]):o}}}function v(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&c(h.events,t,h.events.length-t,e.resolve(h.events.slice(t),h)),e.resolveTo&&(h.events=e.resolveTo(h.events,h))}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const Oe=/[\0\t\n\r]/g;function Te(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const Ce=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Fe(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Te(n.slice(t?2:1),t?16:10)}return(0,ee.s)(n)||e}var Pe=n(29993);const He={}.hasOwnProperty;function ze(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(x),autolinkProtocol:h,autolinkEmail:h,atxHeading:s(y),blockQuote:s(function(){return{type:"blockquote",children:[]}}),characterEscape:h,characterReference:h,codeFenced:s(m),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(m,c),codeText:s(function(){return{type:"inlineCode",value:""}},c),codeTextData:h,data:h,codeFlowValue:h,definition:s(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:s(b),hardBreakTrailing:s(b),htmlFlow:s(w,c),htmlFlowData:h,htmlText:s(w,c),htmlTextData:h,image:s(function(){return{type:"image",title:null,url:"",alt:null}}),label:c,link:s(x),listItem:s(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:s(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:s(v),paragraph:s(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(y),strong:s(function(){return{type:"strong",children:[]}}),thematicBreak:s(function(){return{type:"thematicBreak"}})},exit:{atxHeading:u(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:u(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:u(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:g,characterReferenceMarkerNumeric:g,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=Te(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=(0,ee.s)(t);this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=Le(e.end)},codeFenced:u(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:u(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:u(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:u(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=q(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:u(),hardBreakEscape:u(p),hardBreakTrailing:u(p),htmlFlow:u(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:u(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:u(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Ce,Fe)}(t),n.identifier=q(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=Le(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(h.call(this,e),d.call(this,e))},link:u(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=q(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:u(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:u(),thematicBreak:u()}};De(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let i={type:"root",children:[]};const o={stack:[i],tokenStack:[],config:t,enter:a,exit:l,buffer:c,resume:f,data:n},s=[];let u=-1;for(;++u<e.length;)"listOrdered"!==e[u][1].type&&"listUnordered"!==e[u][1].type||("enter"===e[u][0]?s.push(u):u=r(e,s.pop(),u));for(u=-1;++u<e.length;){const n=t[e[u][0]];He.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},o),e[u][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||Re).call(o,void 0,e[0])}for(i.position={start:Le(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Le(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)i=t.transforms[u](i)||i;return i};function r(e,t,n){let r,i,o,s,c=t-1,a=-1,u=!1;for(;++c<=n;){const t=e[c];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?a++:a--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||a||o||(o=c),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!a&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===a&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=c;for(i=void 0;s--;){const t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=s}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||c,0,["exit",r,t[2]]),c++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(c,0,["enter",i,t[2]]),c++,n++,o=void 0,s=!0}}}return e[t][1]._spread=u,n}function s(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function c(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Le(t.start),end:void 0}}function u(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+(0,Pe.L)({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Re).call(this,e,r[0])),n.position.end=Le(e.end)}function f(){return function(e){return o(e,"boolean"!=typeof i.includeImageAlt||i.includeImageAlt,"boolean"!=typeof i.includeHtml||i.includeHtml)}(this.stack.pop())}function h(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:Le(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Le(e.end)}function p(){this.data.atHardBreak=!0}function g(e){this.data.characterReferenceType=e.type}function m(){return{type:"code",lang:null,meta:null,value:""}}function y(){return{type:"heading",depth:0,children:[]}}function b(){return{type:"break"}}function w(){return{type:"html",value:""}}function x(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!f(e););return e}(function(e){const t={constructs:function(e){const t={};let n=-1;for(;++n<e.length;)p(t,e[n]);return t}([r,...(e||{}).extensions||[]]),content:n(b),defined:[],document:n(w),flow:n(B),lazy:{},string:n(S),text:n(A)};return t;function n(e){return function(n){return Ae(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,s){const c=[];let a,u,l,f,h;for(i=n+("string"==typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),l=0,n="",r&&(65279===i.charCodeAt(0)&&l++,r=void 0);l<i.length;){if(Oe.lastIndex=l,a=Oe.exec(i),f=a&&void 0!==a.index?a.index:i.length,h=i.charCodeAt(f),!a){n=i.slice(l);break}if(10===h&&l===f&&e)c.push(-3),e=void 0;else switch(e&&(c.push(-5),e=void 0),l<f&&(c.push(i.slice(l,f)),t+=f-l),h){case 0:c.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),c.push(-2);t++<u;)c.push(-1);break;case 10:c.push(-4),t=1;break;default:e=!0,t=1}l=f+1}return s&&(e&&c.push(-5),n&&c.push(n),c.push(null)),c}}()(e,t,!0))))}function Le(e){return{line:e.line,column:e.column,offset:e.offset}}function De(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?De(e,r):Ne(e,r)}}function Ne(e,t){let n;for(n in t)if(He.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Re(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+(0,Pe.L)({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+(0,Pe.L)({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+(0,Pe.L)({start:t.start,end:t.end})+") is still open")}},57949(e,t,n){"use strict";n.d(t,{BM:()=>c,CW:()=>r,Ee:()=>f,HP:()=>l,JQ:()=>s,Ny:()=>p,On:()=>h,cx:()=>o,es:()=>d,lV:()=>i,ok:()=>a,ol:()=>u});const r=g(/[A-Za-z]/),i=g(/[\dA-Za-z]/),o=g(/[#-'*+\--9=?A-Z^-~]/);function s(e){return null!==e&&(e<32||127===e)}const c=g(/\d/),a=g(/[\dA-Fa-f]/),u=g(/[!-/:-@[-`{-~]/);function l(e){return null!==e&&e<-2}function f(e){return null!==e&&(e<0||32===e)}function h(e){return-2===e||-1===e||32===e}const d=g(/\p{P}|\p{S}/u),p=g(/\s/);function g(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},67342(e,t,n){"use strict";n.d(t,{bI:()=>A});var r=n(76210),i=n(97713),o=n(38628),s=n(81633),c=n(43556),a=n(26681);const u=(e,t)=>(e+(e>=0?t:-t)/m)/t;function l(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function f(e,t){const n={};for(let r of Object.keys(t))n[r]=void 0===e[r]?t[r]:e[r];return(0,s.d6)(n.lowS,"lowS"),(0,s.d6)(n.prehash,"prehash"),void 0!==n.format&&l(n.format),n}class h extends Error{constructor(e=""){super(e)}}const d={Err:h,_tlv:{encode:(e,t)=>{const{Err:n}=d;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&t.length)throw new n("tlv.encode: unpadded data");const r=t.length/2,i=(0,s.zW)(r);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const o=r>127?(0,s.zW)(i.length/2|128):"";return(0,s.zW)(e)+o+i+t},decode(e,t){const{Err:n}=d;let r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");const i=t[r++];let o=0;if(128&i){const e=127&i;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");const s=t.subarray(r,r+e);if(s.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===s[0])throw new n("tlv.decode(long): zero leftmost byte");for(const e of s)o=o<<8|e;if(r+=e,o<128)throw new n("tlv.decode(long): not minimal encoding")}else o=i;const s=t.subarray(r,r+o);if(s.length!==o)throw new n("tlv.decode: wrong value length");return{v:s,l:t.subarray(r+o)}}},_int:{encode(e){const{Err:t}=d;if(e<p)throw new t("integer: negative integers are not allowed");let n=(0,s.zW)(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=d;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return(0,s.Ph)(e)}},toSig(e){const{Err:t,_int:n,_tlv:r}=d,i=(0,s.qj)("signature",e),{v:o,l:c}=r.decode(48,i);if(c.length)throw new t("invalid signature: left bytes after parsing");const{v:a,l:u}=r.decode(2,o),{v:l,l:f}=r.decode(2,u);if(f.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(a),s:n.decode(l)}},hexFromSig(e){const{_tlv:t,_int:n}=d,r=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,r)}},p=BigInt(0),g=BigInt(1),m=BigInt(2),y=BigInt(3),b=BigInt(4);function w(e,t){const{BYTES:n}=e;let r;if("bigint"==typeof t)r=t;else{let i=(0,s.qj)("private key",t);try{r=e.fromBytes(i)}catch(e){throw new Error(`invalid private key: expected ui8a of size ${n}, got ${typeof t}`)}}if(!e.isValidNot0(r))throw new Error("invalid private key: out of range [1..N-1]");return r}function x(e){return Uint8Array.of(e?2:3)}function v(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function k(e){const{CURVE:t,curveOpts:n,hash:r,ecdsaOpts:h}=function(e){const{CURVE:t,curveOpts:n}=function(e){const t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp;let r=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(e=>Math.ceil(e/2)))):void 0;return{CURVE:t,curveOpts:{Fp:n,Fn:(0,a.D0)(t.n,{BITS:e.nBitLength,allowedLengths:r,modFromBytes:e.wrapPrivateKey}),allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes}}}(e),r={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:n,hash:e.hash,ecdsaOpts:r}}(e);return function(e,t){const n=t.Point;return Object.assign({},t,{ProjectivePoint:n,CURVE:Object.assign({},e,(0,a.LH)(n.Fn.ORDER,n.Fn.BITS))})}(e,function(e,t,n={}){(0,o.sd)(t),(0,s.DS)(n,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const r=n.randomBytes||o.po,c=n.hmac||((e,...n)=>(0,i.w)(t,e,(0,o.Id)(...n))),{Fp:u,Fn:h}=e,{ORDER:y,BITS:b}=h,{keygen:k,getPublicKey:E,getSharedSecret:B,utils:I,lengths:S}=function(e,t={}){const{Fn:n}=e,r=t.randomBytes||o.po,i=Object.assign(v(e.Fp,n),{seed:(0,a.Tp)(n.ORDER)});function c(e){try{return!!w(n,e)}catch(e){return!1}}function u(e=r(i.seed)){return(0,a.qy)((0,s.eV)(e,i.seed,"seed"),n.ORDER)}function l(t,r=!0){return e.BASE.multiply(w(n,t)).toBytes(r)}function f(t){if("bigint"==typeof t)return!1;if(t instanceof e)return!0;const{secretKey:r,publicKey:o,publicKeyUncompressed:c}=i;if(n.allowedLengths||r===o)return;const a=(0,s.qj)("key",t).length;return a===o||a===c}const h={isValidSecretKey:c,isValidPublicKey:function(t,n){const{publicKey:r,publicKeyUncompressed:o}=i;try{const i=t.length;return!(!0===n&&i!==r||!1===n&&i!==o||!e.fromBytes(t))}catch(e){return!1}},randomSecretKey:u,isValidPrivateKey:c,randomPrivateKey:u,normPrivateKeyToScalar:e=>w(n,e),precompute:(t=8,n=e.BASE)=>n.precompute(t,!1)};return Object.freeze({getPublicKey:l,getSharedSecret:function(t,r,i=!0){if(!0===f(t))throw new Error("first arg must be private key");if(!1===f(r))throw new Error("second arg must be public key");const o=w(n,t);return e.fromHex(r).multiply(o).toBytes(i)},keygen:function(e){const t=u(e);return{secretKey:t,publicKey:l(t)}},Point:e,utils:h,lengths:i})}(e,n),A={prehash:!1,lowS:"boolean"==typeof n.lowS&&n.lowS,format:void 0,extraEntropy:!1},O="compact";function T(e){return e>y>>g}function C(e,t){if(!h.isValidNot0(t))throw new Error(`invalid signature ${e}: out of range 1..Point.Fn.ORDER`);return t}class F{constructor(e,t,n){this.r=C("r",e),this.s=C("s",t),null!=n&&(this.recovery=n),Object.freeze(this)}static fromBytes(e,t=O){let n;if(function(e,t){l(t);const n=S.signature,r="compact"===t?n:"recovered"===t?n+1:void 0;(0,s.eV)(e,r,`${t} signature`)}(e,t),"der"===t){const{r:t,s:n}=d.toSig((0,s.eV)(e));return new F(t,n)}"recovered"===t&&(n=e[0],t="compact",e=e.subarray(1));const r=h.BYTES,i=e.subarray(0,r),o=e.subarray(r,2*r);return new F(h.fromBytes(i),h.fromBytes(o),n)}static fromHex(e,t){return this.fromBytes((0,o.aT)(e),t)}addRecoveryBit(e){return new F(this.r,this.s,e)}recoverPublicKey(t){const n=u.ORDER,{r,s:i,recovery:c}=this;if(null==c||![0,1,2,3].includes(c))throw new Error("recovery id invalid");if(y*m<n&&c>1)throw new Error("recovery id is ambiguous for h>1 curve");const a=2===c||3===c?r+y:r;if(!u.isValid(a))throw new Error("recovery id 2 or 3 invalid");const l=u.toBytes(a),f=e.fromBytes((0,o.Id)(x(!(1&c)),l)),d=h.inv(a),p=H((0,s.qj)("msgHash",t)),g=h.create(-p*d),b=h.create(i*d),w=e.BASE.multiplyUnsafe(g).add(f.multiplyUnsafe(b));if(w.is0())throw new Error("point at infinify");return w.assertValidity(),w}hasHighS(){return T(this.s)}toBytes(e=O){if(l(e),"der"===e)return(0,o.aT)(d.hexFromSig(this));const t=h.toBytes(this.r),n=h.toBytes(this.s);if("recovered"===e){if(null==this.recovery)throw new Error("recovery bit must be present");return(0,o.Id)(Uint8Array.of(this.recovery),t,n)}return(0,o.Id)(t,n)}toHex(e){return(0,o.My)(this.toBytes(e))}assertValidity(){}static fromCompact(e){return F.fromBytes((0,s.qj)("sig",e),"compact")}static fromDER(e){return F.fromBytes((0,s.qj)("sig",e),"der")}normalizeS(){return this.hasHighS()?new F(this.r,h.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return(0,o.My)(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return(0,o.My)(this.toBytes("compact"))}}const P=n.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const t=(0,s.Ph)(e),n=8*e.length-b;return n>0?t>>BigInt(n):t},H=n.bits2int_modN||function(e){return h.create(P(e))},z=(0,s.OG)(b);function L(e){return(0,s.aK)("num < 2^"+b,e,p,z),h.toBytes(e)}function D(e,n){return(0,s.eV)(e,void 0,"message"),n?(0,s.eV)(t(e),void 0,"prehashed message"):e}return Object.freeze({keygen:k,getPublicKey:E,getSharedSecret:B,utils:I,lengths:S,Point:e,sign:function(n,i,a={}){n=(0,s.qj)("message",n);const{seed:u,k2sig:l}=function(t,n,i){if(["recovered","canonical"].some(e=>e in i))throw new Error("sign() legacy options not supported");const{lowS:c,prehash:a,extraEntropy:u}=f(i,A);t=D(t,a);const l=H(t),d=w(h,n),m=[L(d),L(l)];if(null!=u&&!1!==u){const e=!0===u?r(S.secretKey):u;m.push((0,s.qj)("extraEntropy",e))}const y=(0,o.Id)(...m),b=l;return{seed:y,k2sig:function(t){const n=P(t);if(!h.isValidNot0(n))return;const r=h.inv(n),i=e.BASE.multiply(n).toAffine(),o=h.create(i.x);if(o===p)return;const s=h.create(r*h.create(b+o*d));if(s===p)return;let a=(i.x===o?0:2)|Number(i.y&g),u=s;return c&&T(s)&&(u=h.neg(s),a^=1),new F(o,u,a)}}}(n,i,a);return(0,s.fg)(t.outputLen,h.BYTES,c)(u,l)},verify:function(t,n,r,i={}){const{lowS:c,prehash:a,format:u}=f(i,A);if(r=(0,s.qj)("publicKey",r),n=D((0,s.qj)("message",n),a),"strict"in i)throw new Error("options.strict was renamed to lowS");const l=void 0===u?function(e){let t;const n="string"==typeof e||(0,o.aY)(e),r=!n&&null!==e&&"object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!n&&!r)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(r)t=new F(e.r,e.s);else if(n){try{t=F.fromBytes((0,s.qj)("sig",e),"der")}catch(e){if(!(e instanceof d.Err))throw e}if(!t)try{t=F.fromBytes((0,s.qj)("sig",e),"compact")}catch(e){return!1}}return t||!1}(t):F.fromBytes((0,s.qj)("sig",t),u);if(!1===l)return!1;try{const t=e.fromBytes(r);if(c&&l.hasHighS())return!1;const{r:i,s:o}=l,s=H(n),a=h.inv(o),u=h.create(s*a),f=h.create(i*a),d=e.BASE.multiplyUnsafe(u).add(t.multiplyUnsafe(f));return!d.is0()&&h.create(d.x)===i}catch(e){return!1}},recoverPublicKey:function(e,t,n={}){const{prehash:r}=f(n,A);return t=D(t,r),F.fromBytes(e,"recovered").recoverPublicKey(t).toBytes()},Signature:F,hash:t})}(function(e,t={}){const n=(0,c.UT)("weierstrass",e,t),{Fp:r,Fn:i}=n;let a=n.CURVE;const{h:l,n:f}=a;(0,s.DS)(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:h}=t;if(h&&(!r.is0(a.a)||"bigint"!=typeof h.beta||!Array.isArray(h.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const d=v(r,i);function m(){if(!r.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const k=t.toBytes||function(e,t,n){const{x:i,y:c}=t.toAffine(),a=r.toBytes(i);if((0,s.d6)(n,"isCompressed"),n){m();const e=!r.isOdd(c);return(0,o.Id)(x(e),a)}return(0,o.Id)(Uint8Array.of(4),a,r.toBytes(c))},E=t.fromBytes||function(e){(0,s.eV)(e,void 0,"Point");const{publicKey:t,publicKeyUncompressed:n}=d,i=e.length,o=e[0],c=e.subarray(1);if(i!==t||2!==o&&3!==o){if(i===n&&4===o){const e=r.BYTES,t=r.fromBytes(c.subarray(0,e)),n=r.fromBytes(c.subarray(e,2*e));if(!I(t,n))throw new Error("bad point: is not on curve");return{x:t,y:n}}throw new Error(`bad point: got length ${i}, expected compressed=${t} or uncompressed=${n}`)}{const e=r.fromBytes(c);if(!r.isValid(e))throw new Error("bad point: is not on curve, wrong x");const t=B(e);let n;try{n=r.sqrt(t)}catch(e){const t=e instanceof Error?": "+e.message:"";throw new Error("bad point: is not on curve, sqrt error"+t)}return m(),!(1&~o)!==r.isOdd(n)&&(n=r.neg(n)),{x:e,y:n}}};function B(e){const t=r.sqr(e),n=r.mul(t,e);return r.add(r.add(n,r.mul(e,a.a)),a.b)}function I(e,t){const n=r.sqr(t),i=B(e);return r.eql(n,i)}if(!I(a.Gx,a.Gy))throw new Error("bad curve params: generator point");const S=r.mul(r.pow(a.a,y),b),A=r.mul(r.sqr(a.b),BigInt(27));if(r.is0(r.add(S,A)))throw new Error("bad curve params: a or b");function O(e,t,n=!1){if(!r.isValid(t)||n&&r.is0(t))throw new Error(`bad point coordinate ${e}`);return t}function T(e){if(!(e instanceof z))throw new Error("ProjectivePoint expected")}function C(e){if(!h||!h.basises)throw new Error("no endo");return function(e,t,n){const[[r,i],[o,c]]=t,a=u(c*e,n),l=u(-i*e,n);let f=e-a*r-l*o,h=-a*i-l*c;const d=f<p,m=h<p;d&&(f=-f),m&&(h=-h);const y=(0,s.OG)(Math.ceil((0,s.dJ)(n)/2))+g;if(f<p||f>=y||h<p||h>=y)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:d,k1:f,k2neg:m,k2:h}}(e,h.basises,i.ORDER)}const F=(0,s.x)((e,t)=>{const{X:n,Y:i,Z:o}=e;if(r.eql(o,r.ONE))return{x:n,y:i};const s=e.is0();null==t&&(t=s?r.ONE:r.inv(o));const c=r.mul(n,t),a=r.mul(i,t),u=r.mul(o,t);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw new Error("invZ was invalid");return{x:c,y:a}}),P=(0,s.x)(e=>{if(e.is0()){if(t.allowInfinityPoint&&!r.is0(e.Y))return;throw new Error("bad point: ZERO")}const{x:n,y:i}=e.toAffine();if(!r.isValid(n)||!r.isValid(i))throw new Error("bad point: x or y not field elements");if(!I(n,i))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function H(e,t,n,i,o){return n=new z(r.mul(n.X,e),n.Y,n.Z),t=(0,c.u0)(i,t),n=(0,c.u0)(o,n),t.add(n)}class z{constructor(e,t,n){this.X=O("x",e),this.Y=O("y",t,!0),this.Z=O("z",n),Object.freeze(this)}static CURVE(){return a}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw new Error("invalid affine point");if(e instanceof z)throw new Error("projective point not allowed");return r.is0(t)&&r.is0(n)?z.ZERO:new z(t,n,r.ONE)}static fromBytes(e){const t=z.fromAffine(E((0,s.eV)(e,void 0,"point")));return t.assertValidity(),t}static fromHex(e){return z.fromBytes((0,s.qj)("pointHex",e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return D.createCache(this,e),t||this.multiply(y),this}assertValidity(){P(this)}hasEvenY(){const{y:e}=this.toAffine();if(!r.isOdd)throw new Error("Field doesn't support isOdd");return!r.isOdd(e)}equals(e){T(e);const{X:t,Y:n,Z:i}=this,{X:o,Y:s,Z:c}=e,a=r.eql(r.mul(t,c),r.mul(o,i)),u=r.eql(r.mul(n,c),r.mul(s,i));return a&&u}negate(){return new z(this.X,r.neg(this.Y),this.Z)}double(){const{a:e,b:t}=a,n=r.mul(t,y),{X:i,Y:o,Z:s}=this;let c=r.ZERO,u=r.ZERO,l=r.ZERO,f=r.mul(i,i),h=r.mul(o,o),d=r.mul(s,s),p=r.mul(i,o);return p=r.add(p,p),l=r.mul(i,s),l=r.add(l,l),c=r.mul(e,l),u=r.mul(n,d),u=r.add(c,u),c=r.sub(h,u),u=r.add(h,u),u=r.mul(c,u),c=r.mul(p,c),l=r.mul(n,l),d=r.mul(e,d),p=r.sub(f,d),p=r.mul(e,p),p=r.add(p,l),l=r.add(f,f),f=r.add(l,f),f=r.add(f,d),f=r.mul(f,p),u=r.add(u,f),d=r.mul(o,s),d=r.add(d,d),f=r.mul(d,p),c=r.sub(c,f),l=r.mul(d,h),l=r.add(l,l),l=r.add(l,l),new z(c,u,l)}add(e){T(e);const{X:t,Y:n,Z:i}=this,{X:o,Y:s,Z:c}=e;let u=r.ZERO,l=r.ZERO,f=r.ZERO;const h=a.a,d=r.mul(a.b,y);let p=r.mul(t,o),g=r.mul(n,s),m=r.mul(i,c),b=r.add(t,n),w=r.add(o,s);b=r.mul(b,w),w=r.add(p,g),b=r.sub(b,w),w=r.add(t,i);let x=r.add(o,c);return w=r.mul(w,x),x=r.add(p,m),w=r.sub(w,x),x=r.add(n,i),u=r.add(s,c),x=r.mul(x,u),u=r.add(g,m),x=r.sub(x,u),f=r.mul(h,w),u=r.mul(d,m),f=r.add(u,f),u=r.sub(g,f),f=r.add(g,f),l=r.mul(u,f),g=r.add(p,p),g=r.add(g,p),m=r.mul(h,m),w=r.mul(d,w),g=r.add(g,m),m=r.sub(p,m),m=r.mul(h,m),w=r.add(w,m),p=r.mul(g,w),l=r.add(l,p),p=r.mul(x,w),u=r.mul(b,u),u=r.sub(u,p),p=r.mul(b,g),f=r.mul(x,f),f=r.add(f,p),new z(u,l,f)}subtract(e){return this.add(e.negate())}is0(){return this.equals(z.ZERO)}multiply(e){const{endo:n}=t;if(!i.isValidNot0(e))throw new Error("invalid scalar: out of range");let r,o;const s=e=>D.cached(this,e,e=>(0,c.Ak)(z,e));if(n){const{k1neg:t,k1:i,k2neg:c,k2:a}=C(e),{p:u,f:l}=s(i),{p:f,f:h}=s(a);o=l.add(h),r=H(n.beta,u,f,t,c)}else{const{p:t,f:n}=s(e);r=t,o=n}return(0,c.Ak)(z,[r,o])[0]}multiplyUnsafe(e){const{endo:n}=t,r=this;if(!i.isValid(e))throw new Error("invalid scalar: out of range");if(e===p||r.is0())return z.ZERO;if(e===g)return r;if(D.hasCache(this))return this.multiply(e);if(n){const{k1neg:t,k1:i,k2neg:o,k2:s}=C(e),{p1:a,p2:u}=(0,c.fH)(z,r,i,s);return H(n.beta,a,u,t,o)}return D.unsafe(r,e)}multiplyAndAddUnsafe(e,t,n){const r=this.multiplyUnsafe(t).add(e.multiplyUnsafe(n));return r.is0()?void 0:r}toAffine(e){return F(this,e)}isTorsionFree(){const{isTorsionFree:e}=t;return l===g||(e?e(z,this):D.unsafe(this,f).is0())}clearCofactor(){const{clearCofactor:e}=t;return l===g?this:e?e(z,this):this.multiplyUnsafe(l)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}toBytes(e=!0){return(0,s.d6)(e,"isCompressed"),this.assertValidity(),k(z,this,e)}toHex(e=!0){return(0,o.My)(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(e=!0){return this.toBytes(e)}_setWindowSize(e){this.precompute(e)}static normalizeZ(e){return(0,c.Ak)(z,e)}static msm(e,t){return(0,c.Xf)(z,i,e,t)}static fromPrivateKey(e){return z.BASE.multiply(w(i,e))}}z.BASE=new z(a.Gx,a.Gy,r.ONE),z.ZERO=new z(r.ZERO,r.ONE,r.ZERO),z.Fp=r,z.Fn=i;const L=i.BITS,D=new c.hT(z,t.endo?Math.ceil(L/2):L);return z.BASE.precompute(8),z}(t,n),r,h))}const E={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},B={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},I=BigInt(2),S=(0,a.D0)(E.p,{sqrt:function(e){const t=E.p,n=BigInt(3),r=BigInt(6),i=BigInt(11),o=BigInt(22),s=BigInt(23),c=BigInt(44),u=BigInt(88),l=e*e*e%t,f=l*l*e%t,h=(0,a.zH)(f,n,t)*f%t,d=(0,a.zH)(h,n,t)*f%t,p=(0,a.zH)(d,I,t)*l%t,g=(0,a.zH)(p,i,t)*p%t,m=(0,a.zH)(g,o,t)*g%t,y=(0,a.zH)(m,c,t)*m%t,b=(0,a.zH)(y,u,t)*y%t,w=(0,a.zH)(b,c,t)*m%t,x=(0,a.zH)(w,n,t)*f%t,v=(0,a.zH)(x,s,t)*g%t,k=(0,a.zH)(v,r,t)*l%t,B=(0,a.zH)(k,I,t);if(!S.eql(S.sqr(B),e))throw new Error("Cannot find square root");return B}}),A=function(e,t){const n=t=>k({...e,hash:t});return{...n(t),create:n}}({...E,Fp:S,lowS:!0,endo:B},r.sc)},74689(e,t,n){"use strict";n.d(t,{s:()=>a});var r=n(87971),i=n(76210),o=n(38628);function s(e,t,n,r,i,s){let c=e[t++]^n[r++],a=e[t++]^n[r++],u=e[t++]^n[r++],l=e[t++]^n[r++],f=e[t++]^n[r++],h=e[t++]^n[r++],d=e[t++]^n[r++],p=e[t++]^n[r++],g=e[t++]^n[r++],m=e[t++]^n[r++],y=e[t++]^n[r++],b=e[t++]^n[r++],w=e[t++]^n[r++],x=e[t++]^n[r++],v=e[t++]^n[r++],k=e[t++]^n[r++],E=c,B=a,I=u,S=l,A=f,O=h,T=d,C=p,F=g,P=m,H=y,z=b,L=w,D=x,N=v,R=k;for(let e=0;e<8;e+=2)A^=(0,o.aZ)(E+L|0,7),F^=(0,o.aZ)(A+E|0,9),L^=(0,o.aZ)(F+A|0,13),E^=(0,o.aZ)(L+F|0,18),P^=(0,o.aZ)(O+B|0,7),D^=(0,o.aZ)(P+O|0,9),B^=(0,o.aZ)(D+P|0,13),O^=(0,o.aZ)(B+D|0,18),N^=(0,o.aZ)(H+T|0,7),I^=(0,o.aZ)(N+H|0,9),T^=(0,o.aZ)(I+N|0,13),H^=(0,o.aZ)(T+I|0,18),S^=(0,o.aZ)(R+z|0,7),C^=(0,o.aZ)(S+R|0,9),z^=(0,o.aZ)(C+S|0,13),R^=(0,o.aZ)(z+C|0,18),B^=(0,o.aZ)(E+S|0,7),I^=(0,o.aZ)(B+E|0,9),S^=(0,o.aZ)(I+B|0,13),E^=(0,o.aZ)(S+I|0,18),T^=(0,o.aZ)(O+A|0,7),C^=(0,o.aZ)(T+O|0,9),A^=(0,o.aZ)(C+T|0,13),O^=(0,o.aZ)(A+C|0,18),z^=(0,o.aZ)(H+P|0,7),F^=(0,o.aZ)(z+H|0,9),P^=(0,o.aZ)(F+z|0,13),H^=(0,o.aZ)(P+F|0,18),L^=(0,o.aZ)(R+N|0,7),D^=(0,o.aZ)(L+R|0,9),N^=(0,o.aZ)(D+L|0,13),R^=(0,o.aZ)(N+D|0,18);i[s++]=c+E|0,i[s++]=a+B|0,i[s++]=u+I|0,i[s++]=l+S|0,i[s++]=f+A|0,i[s++]=h+O|0,i[s++]=d+T|0,i[s++]=p+C|0,i[s++]=g+F|0,i[s++]=m+P|0,i[s++]=y+H|0,i[s++]=b+z|0,i[s++]=w+L|0,i[s++]=x+D|0,i[s++]=v+N|0,i[s++]=k+R|0}function c(e,t,n,r,i){let o=r+0,c=r+16*i;for(let r=0;r<16;r++)n[c+r]=e[t+16*(2*i-1)+r];for(let r=0;r<i;r++,o+=16,t+=16)s(n,c,e,t,n,o),r>0&&(c+=16),s(n,o,e,t+=16,n,c)}function a(e,t,n){const{N:s,r:a,p:u,dkLen:l,blockSize32:f,V:h,B32:d,B:p,tmp:g,blockMixCb:m}=function(e,t,n){const s=(0,o.tY)({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:c,r:a,p:u,dkLen:l,asyncTick:f,maxmem:h,onProgress:d}=s;if((0,o.Fe)(c),(0,o.Fe)(a),(0,o.Fe)(u),(0,o.Fe)(l),(0,o.Fe)(f),(0,o.Fe)(h),void 0!==d&&"function"!=typeof d)throw new Error("progressCb should be function");const p=128*a,g=p/4,m=Math.pow(2,32);if(c<=1||c&c-1||c>m)throw new Error("Scrypt: N must be larger than 1, a power of 2, and less than 2^32");if(u<0||u>32*(m-1)/p)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(l<0||l>32*(m-1))throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");if(p*(c+u)>h)throw new Error("Scrypt: memused is bigger than maxMem. Expected 128 * r * (N + p) > maxmem of "+h);const y=(0,r.A)(i.sc,e,t,{c:1,dkLen:p*u}),b=(0,o.DH)(y),w=(0,o.DH)(new Uint8Array(p*c)),x=(0,o.DH)(new Uint8Array(p));let v=()=>{};if(d){const e=2*c*u,t=Math.max(Math.floor(e/1e4),1);let n=0;v=()=>{n++,!d||n%t&&n!==e||d(n/e)}}return{N:c,r:a,p:u,dkLen:l,blockSize32:g,V:w,B32:b,B:y,tmp:x,blockMixCb:v,asyncTick:f}}(e,t,n);(0,o.fd)(d);for(let e=0;e<u;e++){const t=f*e;for(let e=0;e<f;e++)h[e]=d[t+e];for(let e=0,t=0;e<s-1;e++)c(h,t,h,t+=f,a),m();c(h,(s-1)*f,d,t,a),m();for(let e=0;e<s;e++){const e=d[t+f-16]%s;for(let n=0;n<f;n++)g[n]=d[t+n]^h[e*f+n];c(g,0,d,t,a),m()}}return(0,o.fd)(d),function(e,t,n,s,c){const a=(0,r.A)(i.sc,e,n,{c:1,dkLen:t});return(0,o.uH)(n,s,c),a}(e,l,p,h,g)}},76210(e,t,n){"use strict";n.d(t,{Zf:()=>m,sc:()=>g});var r=n(27816),i=n(49964),o=n(38628);const s=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]),c=new Uint32Array(64);class a extends r.ol{constructor(e=32){super(64,e,8,!1),this.A=0|r.yc[0],this.B=0|r.yc[1],this.C=0|r.yc[2],this.D=0|r.yc[3],this.E=0|r.yc[4],this.F=0|r.yc[5],this.G=0|r.yc[6],this.H=0|r.yc[7]}get(){const{A:e,B:t,C:n,D:r,E:i,F:o,G:s,H:c}=this;return[e,t,n,r,i,o,s,c]}set(e,t,n,r,i,o,s,c){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|c}process(e,t){for(let n=0;n<16;n++,t+=4)c[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=c[e-15],n=c[e-2],r=(0,o.Ow)(t,7)^(0,o.Ow)(t,18)^t>>>3,i=(0,o.Ow)(n,17)^(0,o.Ow)(n,19)^n>>>10;c[e]=i+c[e-7]+r+c[e-16]|0}let{A:n,B:i,C:a,D:u,E:l,F:f,G:h,H:d}=this;for(let e=0;e<64;e++){const t=d+((0,o.Ow)(l,6)^(0,o.Ow)(l,11)^(0,o.Ow)(l,25))+(0,r.r9)(l,f,h)+s[e]+c[e]|0,p=((0,o.Ow)(n,2)^(0,o.Ow)(n,13)^(0,o.Ow)(n,22))+(0,r.TQ)(n,i,a)|0;d=h,h=f,f=l,l=u+t|0,u=a,a=i,i=n,n=t+p|0}n=n+this.A|0,i=i+this.B|0,a=a+this.C|0,u=u+this.D|0,l=l+this.E|0,f=f+this.F|0,h=h+this.G|0,d=d+this.H|0,this.set(n,i,a,u,l,f,h,d)}roundClean(){(0,o.uH)(c)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,o.uH)(this.buffer)}}const u=(()=>i.lD(["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))))(),l=(()=>u[0])(),f=(()=>u[1])(),h=new Uint32Array(80),d=new Uint32Array(80);class p extends r.ol{constructor(e=64){super(128,e,16,!1),this.Ah=0|r.tT[0],this.Al=0|r.tT[1],this.Bh=0|r.tT[2],this.Bl=0|r.tT[3],this.Ch=0|r.tT[4],this.Cl=0|r.tT[5],this.Dh=0|r.tT[6],this.Dl=0|r.tT[7],this.Eh=0|r.tT[8],this.El=0|r.tT[9],this.Fh=0|r.tT[10],this.Fl=0|r.tT[11],this.Gh=0|r.tT[12],this.Gl=0|r.tT[13],this.Hh=0|r.tT[14],this.Hl=0|r.tT[15]}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:o,Dh:s,Dl:c,Eh:a,El:u,Fh:l,Fl:f,Gh:h,Gl:d,Hh:p,Hl:g}=this;return[e,t,n,r,i,o,s,c,a,u,l,f,h,d,p,g]}set(e,t,n,r,i,o,s,c,a,u,l,f,h,d,p,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|c,this.Eh=0|a,this.El=0|u,this.Fh=0|l,this.Fl=0|f,this.Gh=0|h,this.Gl=0|d,this.Hh=0|p,this.Hl=0|g}process(e,t){for(let n=0;n<16;n++,t+=4)h[n]=e.getUint32(t),d[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|h[e-15],n=0|d[e-15],r=i.rE(t,n,1)^i.rE(t,n,8)^i.xn(t,n,7),o=i.ry(t,n,1)^i.ry(t,n,8)^i.jm(t,n,7),s=0|h[e-2],c=0|d[e-2],a=i.rE(s,c,19)^i.qh(s,c,61)^i.xn(s,c,6),u=i.ry(s,c,19)^i.Ei(s,c,61)^i.jm(s,c,6),l=i.CW(o,u,d[e-7],d[e-16]),f=i.CQ(l,r,a,h[e-7],h[e-16]);h[e]=0|f,d[e]=0|l}let{Ah:n,Al:r,Bh:o,Bl:s,Ch:c,Cl:a,Dh:u,Dl:p,Eh:g,El:m,Fh:y,Fl:b,Gh:w,Gl:x,Hh:v,Hl:k}=this;for(let e=0;e<80;e++){const t=i.rE(g,m,14)^i.rE(g,m,18)^i.qh(g,m,41),E=i.ry(g,m,14)^i.ry(g,m,18)^i.Ei(g,m,41),B=g&y^~g&w,I=m&b^~m&x,S=i.F8(k,E,I,f[e],d[e]),A=i.TH(S,v,t,B,l[e],h[e]),O=0|S,T=i.rE(n,r,28)^i.qh(n,r,34)^i.qh(n,r,39),C=i.ry(n,r,28)^i.Ei(n,r,34)^i.Ei(n,r,39),F=n&o^n&c^o&c,P=r&s^r&a^s&a;v=0|w,k=0|x,w=0|y,x=0|b,y=0|g,b=0|m,({h:g,l:m}=i.WQ(0|u,0|p,0|A,0|O)),u=0|c,p=0|a,c=0|o,a=0|s,o=0|n,s=0|r;const H=i.Vl(O,C,P);n=i.Vr(H,A,T,F),r=0|H}({h:n,l:r}=i.WQ(0|this.Ah,0|this.Al,0|n,0|r)),({h:o,l:s}=i.WQ(0|this.Bh,0|this.Bl,0|o,0|s)),({h:c,l:a}=i.WQ(0|this.Ch,0|this.Cl,0|c,0|a)),({h:u,l:p}=i.WQ(0|this.Dh,0|this.Dl,0|u,0|p)),({h:g,l:m}=i.WQ(0|this.Eh,0|this.El,0|g,0|m)),({h:y,l:b}=i.WQ(0|this.Fh,0|this.Fl,0|y,0|b)),({h:w,l:x}=i.WQ(0|this.Gh,0|this.Gl,0|w,0|x)),({h:v,l:k}=i.WQ(0|this.Hh,0|this.Hl,0|v,0|k)),this.set(n,r,o,s,c,a,u,p,g,m,y,b,w,x,v,k)}roundClean(){(0,o.uH)(h,d)}destroy(){(0,o.uH)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const g=(0,o.qj)(()=>new a),m=(0,o.qj)(()=>new p)},79506(e,t,n){"use strict";n.d(t,{OG:()=>u,aK:()=>a,aY:()=>o,lX:()=>s,z:()=>c});var r=n(81633),i=n(38628);i.DO,i.Fe,i.My,i.AE,i.Id,i.aT;const o=i.aY,s=(i.po,i.AI,r.e8,r.zW,r.ME,r.Ph,r.lX),c=(r.lq,r.z),a=(r.IV,r.qj,r.ex,r.nC,r.Mh,r.r4,r.aK),u=(r.dJ,r.GU,r.mM,r.OG);r.fg,r.SJ,r.x,r.Q5,r.jN},81633(e,t,n){"use strict";n.d(t,{DS:()=>F,GU:()=>B,IV:()=>g,ME:()=>l,Mh:()=>w,OG:()=>S,Ph:()=>f,Q5:()=>T,SJ:()=>P,aK:()=>k,d6:()=>c,dJ:()=>E,e8:()=>s,eV:()=>a,ex:()=>y,fg:()=>A,jN:()=>C,lX:()=>h,lq:()=>d,mM:()=>I,nC:()=>b,qj:()=>m,r4:()=>v,x:()=>H,z:()=>p,zW:()=>u});var r=n(38628);const i=BigInt(0),o=BigInt(1);function s(e,t){if("boolean"!=typeof t)throw new Error(e+" boolean expected, got "+t)}function c(e,t=""){if("boolean"!=typeof e)throw new Error((t&&`"${t}"`)+"expected boolean, got type="+typeof e);return e}function a(e,t,n=""){const i=(0,r.aY)(e),o=e?.length,s=void 0!==t;if(!i||s&&o!==t)throw new Error((n&&`"${n}" `)+"expected Uint8Array"+(s?` of length ${t}`:"")+", got "+(i?`length=${o}`:"type="+typeof e));return e}function u(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function l(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?i:BigInt("0x"+e)}function f(e){return l((0,r.My)(e))}function h(e){return(0,r.DO)(e),l((0,r.My)(Uint8Array.from(e).reverse()))}function d(e,t){return(0,r.aT)(e.toString(16).padStart(2*t,"0"))}function p(e,t){return d(e,t).reverse()}function g(e){return(0,r.aT)(u(e))}function m(e,t,n){let i;if("string"==typeof t)try{i=(0,r.aT)(t)}catch(t){throw new Error(e+" must be hex string or Uint8Array, cause: "+t)}else{if(!(0,r.aY)(t))throw new Error(e+" must be hex string or Uint8Array");i=Uint8Array.from(t)}const o=i.length;if("number"==typeof n&&o!==n)throw new Error(e+" of length "+n+" expected, got "+o);return i}function y(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return 0===n}function b(e){return Uint8Array.from(e)}function w(e){return Uint8Array.from(e,(t,n)=>{const r=t.charCodeAt(0);if(1!==t.length||r>127)throw new Error(`string contains non-ASCII character "${e[n]}" with code ${r} at position ${n}`);return r})}const x=e=>"bigint"==typeof e&&i<=e;function v(e,t,n){return x(e)&&x(t)&&x(n)&&t<=e&&e<n}function k(e,t,n,r){if(!v(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function E(e){let t;for(t=0;e>i;e>>=o,t+=1);return t}function B(e,t){return e>>BigInt(t)&o}function I(e,t,n){return e|(n?o:i)<<BigInt(t)}const S=e=>(o<<BigInt(e))-o;function A(e,t,n){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");const i=e=>new Uint8Array(e),o=e=>Uint8Array.of(e);let s=i(e),c=i(e),a=0;const u=()=>{s.fill(1),c.fill(0),a=0},l=(...e)=>n(c,s,...e),f=(e=i(0))=>{c=l(o(0),e),s=l(),0!==e.length&&(c=l(o(1),e),s=l())},h=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e<t;){s=l();const t=s.slice();n.push(t),e+=s.length}return(0,r.Id)(...n)};return(e,t)=>{let n;for(u(),f(e);!(n=t(h()));)f();return u(),n}}const O={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||(0,r.aY)(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function T(e,t,n={}){const r=(t,n,r)=>{const i=O[n];if("function"!=typeof i)throw new Error("invalid validator function");const o=e[t];if(!(r&&void 0===o||i(o,e)))throw new Error("param "+String(t)+" is invalid. Expected "+n+", got "+o)};for(const[e,n]of Object.entries(t))r(e,n,!1);for(const[e,t]of Object.entries(n))r(e,t,!0);return e}function C(e){return"function"==typeof e&&Number.isSafeInteger(e.outputLen)}function F(e,t,n={}){if(!e||"object"!=typeof e)throw new Error("expected valid options object");function r(t,n,r){const i=e[t];if(r&&void 0===i)return;const o=typeof i;if(o!==n||null===i)throw new Error(`param "${t}" is invalid: expected ${n}, got ${o}`)}Object.entries(t).forEach(([e,t])=>r(e,t,!1)),Object.entries(n).forEach(([e,t])=>r(e,t,!0))}const P=()=>{throw new Error("not implemented")};function H(e){const t=new WeakMap;return(n,...r)=>{const i=t.get(n);if(void 0!==i)return i;const o=e(n,...r);return t.set(n,o),o}}},87971(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(97713),i=n(38628);function o(e,t,n,o){const{c:s,dkLen:c,DK:a,PRF:u,PRFSalt:l}=function(e,t,n,o){(0,i.sd)(e);const s=(0,i.tY)({dkLen:32,asyncTick:10},o),{c,dkLen:a,asyncTick:u}=s;if((0,i.Fe)(c),(0,i.Fe)(a),(0,i.Fe)(u),c<1)throw new Error("iterations (c) should be >= 1");const l=(0,i.K_)(t),f=(0,i.K_)(n),h=new Uint8Array(a),d=r.w.create(e,l),p=d._cloneInto().update(f);return{c,dkLen:a,asyncTick:u,DK:h,PRF:d,PRFSalt:p}}(e,t,n,o);let f;const h=new Uint8Array(4),d=(0,i.O8)(h),p=new Uint8Array(u.outputLen);for(let e=1,t=0;t<c;e++,t+=u.outputLen){const n=a.subarray(t,t+u.outputLen);d.setInt32(0,e,!1),(f=l._cloneInto(f)).update(h).digestInto(p),n.set(p.subarray(0,n.length));for(let e=1;e<s;e++){u._cloneInto(f).update(p).digestInto(p);for(let e=0;e<n.length;e++)n[e]^=p[e]}}return function(e,t,n,r,o){return e.destroy(),t.destroy(),r&&r.destroy(),(0,i.uH)(o),n}(u,l,a,f,p)}},89042(e,t){"use strict";var n=t;function r(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16));else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>>8,s=255&i;o?n.push(o,s):n.push(s)}return n},n.zero2=r,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}},97713(e,t,n){"use strict";n.d(t,{w:()=>o});var r=n(38628);class i extends r.Vw{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.sd)(e);const n=(0,r.ZJ)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,o=new Uint8Array(i);o.set(n.length>i?e.create().update(n).digest():n);for(let e=0;e<o.length;e++)o[e]^=54;this.iHash.update(o),this.oHash=e.create();for(let e=0;e<o.length;e++)o[e]^=106;this.oHash.update(o),(0,r.uH)(o)}update(e){return(0,r.CC)(this),this.iHash.update(e),this}digestInto(e){(0,r.CC)(this),(0,r.DO)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:o,outputLen:s}=this;return e.finished=r,e.destroyed=i,e.blockLen=o,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const o=(e,t,n)=>new i(e,t).update(n).digest();o.create=(e,t)=>new i(e,t)}}]); |